]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-0
Can't include gtkprivate.h (I added the include yesterday, without really
[~andy/gtk] / ChangeLog.pre-2-0
1 2001-11-04  Tor Lillqvist  <tml@iki.fi>
2
3         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
4         include yesterday, without really thinking), as that defeats the
5         working of correct_libdir_prefix() (it becomes a no-op.). Add
6         comment mentioning that. Thanks to Hans Breuer for noticing.
7         
8 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
9
10         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
11         signal argument (was GtkWidget*).
12
13         * gtk/gtkwindow.c (gtk_window_frame_event),
14           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
15         Fixed argument types as above, removed GTK_WINDOW casts and
16         added some GTK_WIDGET casts instead.
17
18 2001-11-03  Hans Breuer  <hans@breuer.org>
19
20         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
21         finalize to parent class to get removed from the toplevel_list.
22         Should fix 'random' crashes of #63474.
23
24         * gtk/gtktreemodelsort.c : chain finalize() to parent class
25
26 2001-11-03  Tor Lillqvist  <tml@iki.fi>
27
28         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
29         for .dll or .so as appropriate as module suffix.
30
31         * gtk-zip.sh.in: Use correct import library names.
32
33         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
34
35         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
36         Windows to turn build-time paths from a gtk.immodules distributed
37         as part of a binary package into runtime ones in the
38         end-user-chosen installation directory.
39         (gtk_im_module_init): Use it for module path and domain
40         directory.
41
42 2001-11-02  Tor Lillqvist  <tml@iki.fi>
43
44         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
45         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
46         Windows.
47
48 2001-10-30  Tor Lillqvist  <tml@iki.fi>
49
50         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
51         files. Configure on Win32 (running on Cygwin) thinks symlinks
52         exist, but pkg-config is not necesarily a Cygwin program, and
53         doesn't understand them.
54
55 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
56
57         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
58         a bit.  I don't think it's completely correct yet, but it's
59         getting there.
60
61 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
62
63         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
64         random + 5 for width and height. If people want padding,
65         they should add padding. (Note the +5 isn't padding
66         that will always appear - it just appears in the case
67         where the widget is allocated it's requisition.)
68         (#51018, Janet Davis)
69
70 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
71
72         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
73         the structure for future expansion.
74
75 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
76
77         Patch from HideToshi Tajima (#51922)
78         
79         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
80
81         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
82         set_use_preedit().
83         
84         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
85         to destroy the input context because we change the
86         client window or use_preedit, make sure we empty
87         the preedit string.
88
89 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
90
91         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
92         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
93         proposed ordering of buttons with [OK] in the lower
94         right hand corner. Patch from Gregory Merchan,
95         #56331.
96
97 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
98
99         * gtk/gtklabel.c (gtk_label_select_region_index): remove
100         extraneous gtk_label_clear_layout (label)
101
102 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
103
104         * tests/makefile.msc, gtk/makefile.msc.in: Removed
105         -DGTK_DISABLE_COMPAT_H.
106
107         * docs/Changes-2.0.txt:
108         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
109
110         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
111
112 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
113
114         * examples/**/Makefile.am: Convert to use pkg-config
115         rather than gtk-config. (#53375, Skip Montanaro)
116
117 2001-11-02  Matt Wilson  <msw@redhat.com>
118
119         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
120         broken unused, non-compiling, static function.
121
122 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
123
124         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
125         Iterate through children of the action area, not of
126         the vbox. (#58278, Sergey Kuzminov)
127
128 2001-11-01  Havoc Pennington  <hp@pobox.com>
129
130         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
131         order to remove a workaround in Nautilus that forced
132         GTK_ENABLE_BROKEN
133
134         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
135
136 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
137
138         * gtk/gtkrange.c: Patch from George Lebl to 
139         fix division by zero for full scroll bars. (#62114)
140
141 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
142
143         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
144         around gtk_widget_event() if we are going to
145         set a flag afterwards. (#63464)
146
147 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
148
149         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
150         Actually add the missing/broken image icon as the
151         image for the "missing image" stock icon.
152
153 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
154
155         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
156         Set a reasonable default height for the window.
157
158         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
159         bug where subsequent '-' weren't converted to '_'.
160         (#59550, Matthias Clasen)
161
162         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
163         justify the Help menu - just include a comment on
164         how to do it. (#63539,  Marius Andreiana)
165
166         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
167         list GTK_ICON_SIZE_INVALID.
168
169         * demos/gtk-demo/stock_browser.c: Show the biggest available
170         size, not a fixed size. (Often reported, including #63539, 
171         Marius Andreiana)
172
173 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
174
175         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
176         #59583
177
178         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
179         warning.
180
181 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
182
183         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
184         (Daniel Elstner).
185
186 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
187
188         * gtk/gtkimcontext.[ch]: Add:
189           - A ::retrieve_surrounding signal that asks the widget for
190             context around the insertion point.
191           - A ::delete_surrounding signal that asks the widget to 
192             delete context aroudn the insertion point.
193           - gtk_im_context_set_context() for widgets to set context
194             around the insertion point in response to ::retrieve_context.
195           - gtk_im_context_get_context() for context to get context
196             around the insertion point
197
198         * gtkmarshal.list: Add BOOL:INT,INT
199
200         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
201         set_surrounding() methods, and the ::retrieve_surrounding /
202         ::delete_surrounding signals.
203
204         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
205         GtkIMContext::retrieve_surrounding / ::delete_surrounding
206         signals.
207
208 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
209
210         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
211         it's amazing how well things work sometimes, even when they're
212         completely wrong.
213
214         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
215         where you could try to collapse a node w/o it having children.
216
217         (gtk_tree_view_class_init): remove Shift L<->R as they already
218         existed for expand/collapse.
219
220 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
221
222         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
223         found by Matt Wilson.
224
225 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
226
227         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
228         Control, and Shift|Control L<->R, #63475
229
230 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
231
232         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
233         infinite loop noticed by yosh.
234
235 2001-11-01  Michael Meeks  <michael@ximian.com>
236
237         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
238         GTK_REALIZED flag so we don't re-enter when we are
239         destroyed from the plug side.
240
241 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
242
243         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
244         Add a "menu" property and notify on it. (#62798,
245         Padraig O'Briain)
246
247         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
248         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
249         Fix set_text to take a gchar, not a guchar, and to have 
250         a len argument.
251
252 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
253
254         * gtk/gtkstock.c: fix typo to make it compile
255
256 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
257
258         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
259         the widget is insensitive, draw the text insensitively, #63306
260
261 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
262
263         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
264
265 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
266
267         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
268         gtk_selection_data_set_tree_row, #60218
269         (gtk_tree_get_row_drag_data): rename
270         gtk_selection_data_get_tree_row, #60218
271
272         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
273         get this right, after the third try, #63122.
274
275 2001-10-31  jacob berkman  <jacob@ximian.com>
276
277         * gdk/gdkselection.h (GDK_TARGET_STRING): 
278         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
279         for Xatoms (and not using the XA_* macros)!
280
281 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
282
283         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
284         gtk_window_get_focus() getter to determine the currently
285         focused widget within the window. (#63145, request
286         from Damian Ivereigh)
287
288 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
289
290         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
291
292         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
293         GTK_SELECTION_NONE enum.
294         (_gtk_tree_selection_internal_select_node): ditto
295
296         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
297         constness.
298
299         * gtk/gtkcellrenderertoggle.c: more yummy constness.
300
301         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
302         if mode == GTK_SELECTION_NONE
303
304 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
305
306         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
307         "cursor_changed" signal, #62850.
308
309 2001-10-31  Matt Wilson  <msw@redhat.com>
310
311         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
312         allocating the treedatalist, zero it to make sure the values are
313         cleared from any garbage that was in this chunk.
314
315 2001-10-31  Murray Cumming  <murrayc@usa.net>
316
317         * gtk/cellrenderertext.h: "edited" default signal handler
318         gchar* args are now const.
319         gtk/cellrenderertoggle.h: "toggled" default signal handler
320         gchar* arg is now const.
321         Also changed other signal handlers for "edited" and "toggled" to
322         have the same signature.
323
324 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
325
326         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
327         rewrite.  Static models now totally work.  I'm not 100% sure about
328         row_inserted and row_changed, but I'll get those later.
329
330 2001-10-30  Sven Neumann  <sven@gimp.org>
331
332         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
333         output for configure --help.
334
335 2001-10-30  Havoc Pennington  <hp@pobox.com>
336
337         * gtk/gtktextview.c (changed_handler): Update the IM spot location
338         here, if text was invalidated in the visible area, because the
339         scroll offset doesn't normally change in that case, and the mark
340         isn't set, just implicitly moved over as text is added/removed
341         
342 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
343
344         * gtk/gtkseparatormenuitem.c: Code cleanup.
345         (gtk_separator_menu_item_class_init): Fix bugs in this code.
346
347 2001-10-29  jacob berkman  <jacob@ximian.com>
348
349         * gdk/Makefile.am (LDFLAGS): 
350         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
351         LDFLAGS, so put win32 flags in here
352
353 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
354
355         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
356         I can't believe this took this long to fix.
357
358 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
359
360         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
361         reordered signal.
362
363 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
364
365         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
366         the focus to the fileop entry for create dir / rename
367         file. (#62838)
368
369 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
370
371         * configure.in: Don't use AC_CHECK_FILE to check for a 
372         file since it always spits warnings about cross compilation,
373         use -f instead. It's not like we cross compile properly
374         anyways.
375
376         * configure.in (gtktargetlib): Move call to AC_PROG_CC
377         to suppress autoconf warning.
378
379         * acconfig.h: Add some missing #undefs from recent
380         Win32 additions.
381
382 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
383
384         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
385         when we didn't find it. (#62944, Eric Lemings)
386
387         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
388         sign in assignment. (#63209, Arkadiusz Miskiewicz)
389
390 2001-10-29  Anders Carlsson  <andersca@gnu.org>
391
392         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
393         the buttons size request before using it. Fixes #61696.
394
395 2001-10-29  Tor Lillqvist  <tml@iki.fi>
396
397         * README.win32: Updates.
398
399         * gtk-zip.sh.in: New file, used to build distribution package for
400         Windows.
401
402         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
403         applicable with GDKVAR.
404
405         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
406         Wintab library.
407
408         * gdk/win32/gdkwin32.h
409         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
410         X11 headers better, and to enable gdkwin32.h to be installed and
411         included from applications, but not the *-win32.h headers.
412
413         * gdk/win32/*.c: Corresponding small changes, simplifications of
414         #includes.
415         
416         * gdk/win32/gdkregion-win32.c: Remove.
417
418         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
419
420         * gdk/win32/gdkfont-win32.c
421         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
422
423         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
424         GDK_NONE values into hash table.
425
426         * gtk/gtk.def: Update.
427
428         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
429         gethostname().
430
431         * gtk/gtkmain.c 
432         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
433         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
434         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
435         g_win32_get_package_installation_subdirectory() with the actual
436         DLL name saved above. Redefine above directory name macros to call
437         these functions. Remove some ifdefs.
438
439         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
440         variable for export on Win32) also to the _vars file.
441
442         Changes for autoconfiscated build on Win32, and addition of Win32
443         backend to the related files:
444         
445         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
446         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
447         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
448         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
449         win32 target, using pangowin32. Don't use the
450         -export-symbols-regex option on Win32, we use .def files to list
451         exported symbols. Check <winsock.h> (for gethostname() in
452         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
453         prevent premature m4 expansion.
454
455         * acconfig.h: Add HAVE_WINTAB.
456
457         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
458         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
459         MS_LIB_AVAILABLE, build MS import library. Install the import
460         libraries. If HAVE_WINTAB, link with the Wintab library.
461
462         * gdk/win32/Makefile.am: Actually enable building the win32
463         objects here, not just list all files in EXTRA_DIST. Link in the
464         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
465         copy the Wintab library into the .libs directory. 
466
467         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
468         name of the GDK DLL when fetching the icon. Use the HMODULE saved
469         in gdk_dll_hinstance by DllMain.
470
471         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
472         build/win32/lt-compile-resource script.
473
474         * gdk/win32/rc/gdk.rc.in
475         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
476
477         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
478         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
479         file. Install import libraries.
480
481 2001-10-29  Anders Carlsson  <andersca@gnu.org>
482
483         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
484
485 2001-10-28  Hans Breuer  <hans@breuer.org>
486
487         * gdk/gdk.c gdk/gdkevents.c
488           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
489           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
490           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
491           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
492           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
493           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
494           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
495         static correct-ness, underscore prefixing of library internal 
496         functions
497         (applied the undisputed and the win32 part. Of the latter 
498          I'm probably the one who will change it back again, if Owen
499          decides that the Gdk*Impl types should not be private to Gdk)
500
501         * gdk/gdk.def : added the remaining exported functions
502
503 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
504
505         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
506         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
507         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
508
509 2001-10-28  jacob berkman  <jacob@ximian.com>
510
511         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
512         gtk_settings_get_default() here as that requires an X connection
513         (which breaks doc building with no X connection) and is not
514         multihead safe
515         (gtk_color_selection_init): delay palette loading until realize
516         time
517         (gtk_color_selection_realize): load the palette, and initialize
518         the global palette if it hasn't been already
519
520         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
521         visual/cmap fields of klass->info since they are gone
522         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
523         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
524         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
525
526         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
527         cmap fields
528         (gtk_preview_get_visual):
529         (gtk_preview_get_cmap): mark as deprecated
530
531         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
532         changes
533
534 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
535
536         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
537         structure to have GObject not GtkObject as
538         parent_instance. (Jeff Franks.)
539
540 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
541
542         * gdk/x11/gdkinput.c: Typo fix.
543
544 2001-10-26  Havoc Pennington  <hp@pobox.com>
545
546         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
547         update_im_spot_location here explicitly
548         (gtk_text_view_reset_im_context): don't update the spot location
549         here
550
551 2001-10-27  Anders Carlsson  <andersca@gnu.org>
552
553         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
554         This fixes #62942.
555
556         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
557         Clarify that we're returning a spin button in the _new function.
558         This fixes #54097.
559         
560 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
561
562         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
563         Unfortunately, people apparently erroneously connect
564         to ::clicked for GtkToggleButton and expect
565         they know what happened in the default signal handler
566         instead of appropriately connecting to notification
567         signal ::toggled. When the revolution comes, such
568         people will be first against the wall.
569
570         We'll just have to go back to the old less-reliable
571         set-it-back hacks for handling model-view check
572         buttons and radio buttons. :-(. 
573
574 2001-10-27  Hans Breuer  <hans@breuer.org>
575
576         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
577           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
578           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
579           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
580           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
581           gtk/gtktreestore.c gtk/gtkvbbox.c : 
582         to simplify parsing for exported functions:
583         - made implementation signature static, when the local 
584           prototype already was
585         - put the functions return value on it's own line
586         - added as space between the function name and the 
587           opening bracket
588
589         * gtk/gtk.def : added the remaining exported functions
590
591 2001-10-27  Anders Carlsson  <andersca@gnu.org>
592
593         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
594         Add note about width having to be greater than 0. This fixes
595         #55574. 
596
597         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
598         Fix docs to say previous instead of next.
599         (gtk_text_iter_backward_word_start): Likewise.
600         This fixes bug #62980.
601
602         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
603         that the valid width is in range 0-65535 pixels. Fixes bug 
604         #56754.
605
606         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
607         a dot in the documentation. Fixes bug #62632.
608
609         * gdk/x11/gdkmain-x11.c: Replace int and guint with
610         long and gulong in some places to make the code 64-bit
611         clean.
612         (_gdk_windowing_init_check): Replace gint with gulong.
613         This patch was made by George Lebl and fixes bug #62113.
614
615         * tests/testgtk.c (create_range_controls): Don't set a 
616         fixed height on the hscale widget. This fixes "bug" 
617         #55840.
618         (create_window_states): Set up destroy signals so that
619         all windows will be destroyed when one is. This fixes 
620         bug #58133.
621
622 2001-10-26  Anders Carlsson  <andersca@gnu.org>
623
624         * gtk/gtktreeview.c: 
625         (gtk_tree_view_class_init): Create new "indent_expander"
626         style property.
627
628         (gtk_tree_view_get_arrow_xrange): Add a tree argument
629         to the function since the xrange can change depending
630         on where in the tree we are. 
631         
632         (coords_are_over_arrow): Update function call to
633         gtk_tree_view_get_arrow_xrange.
634         (gtk_tree_view_draw_arrow): Likewise.
635         
636         (gtk_tree_view_real_expand_collapse_cursor_row):
637         Call real_{expand|collapse}_row, so that we'll have an
638         animation.
639
640 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
641
642         * tests/Makefile.am: fixed a small typo
643
644 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
645
646         * demos/gtk-demo/list_store.c (create_model): Anders
647         Carlsson suggested to use G_N_ELEMENTS here
648
649 2001-10-26  Sven Neumann  <sven@gimp.org>
650
651         * gtk/gtkbutton.[ch]
652         * gtk/gtkdnd.c: fixed inline comments
653         
654         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
655
656 2001-10-26  Hans Breuer  <hans@breuer.org>
657
658         * gdk-pixbuf/gdk_pixbuf.def : 
659         * gdk/gdk.def : 
660         * gtk/gtk.def : updated externals
661
662         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
663         gdk_window_lookup implementation. It already was in
664         gdk/win32/gdkwindow-win32.c
665
666         * gdk/win32/gdkproperty-win32.c : made it compile again
667         after GdkAtom API change
668
669         * gtk/gtk/makefile.msc.in : updated
670
671 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
672
673         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
674         require GLib 1.3.10.
675
676         * NEWS: updates.
677
678 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
679
680         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
681         invalid nodes.
682          (_gtk_rbnode_rotate_right): Ditto.
683          (_gtk_rbtree_node_mark_invalid): New function.
684          (_gtk_rbtree_node_mark_valid): New function.
685
686         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
687         GObject, not a GtkObject.
688         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
689         correct.
690         (gtk_tree_model_sort_row_deleted): ditto.
691         (gtk_tree_model_sort_{un,}ref_node): Fix.
692
693         * gtk/gtktreeview.c: Protean incremental reflow support (commented
694         out)
695
696         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
697         to const char *key.
698
699         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
700         Important 1 line fix to fix a lot of refcounting woes.
701
702 2001-10-25  Matt Wilson  <msw@redhat.com>
703
704         * gtk/gtktextview.c (gtk_text_view_destroy): call
705         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
706         now invalidates) so that we remove our idle functions.
707         (gtk_text_view_destroy_layout): remove the first_validate_idle as
708         well.
709
710         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
711         the 'indent' property is G_MININT to G_MAXINT.  Don't use
712         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
713         instead.
714
715 2001-10-24  Anders Carlsson  <andersca@gnu.org>
716
717         * gtk/gtktreeview.c: 
718         (gtk_tree_view_real_expand_row): add an animate argument
719         (gtk_tree_view_real_collapse_row): likewise
720         
721         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
722         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
723         (gtk_tree_view_collapse_row): update functions that call
724         real_{expand|collapse}_row to set the animate argument 
725         accordingly.
726         
727 2001-10-24  Alex Larsson  <alexl@redhat.com>
728
729         * gdk/linux-fb/gdkfont-fb.c:
730         Update to new Pango APIs
731
732         * gdk/linux-fb/gdkproperty-fb.c:
733         Update to new GdkAtom APIs
734
735         * gdk/linux-fb/gdkwindow-fb.c:
736         Remove warnings
737
738 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
739
740         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
741
742 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
743
744         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
745         s_path as a child path
746
747 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
748
749         * gtk/gtktreemodelsort.c: more changes in an attempt to get
750         it right. It's not yet ready for general consumption.
751
752         * tests/treestoretest.c: add a button and entry for the new
753         iter_change function
754         (iter_change): new function, to test
755         the row_changed signal implementation of the GtkTreeModelSort
756
757         * tests/testtreesort.c: cleanups, changes to test more features
758         of the GtkTreeModelSort at once
759
760 2001-10-24  Havoc Pennington  <hp@redhat.com>
761
762         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
763         remove hack to strip off the bogus newline, since we killed the
764         bogus newline; fixes #61779
765
766 2001-10-24  Havoc Pennington  <hp@redhat.com>
767
768         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
769         create layout if we didn't have one
770         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
771         as appropriate, avoids blanking the screen 
772         (gtk_text_view_invalidate): new function to do invalidation,
773         containing old guts of invalidated_handler
774
775 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
776
777         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
778         dreadful tooltips.
779
780 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
781
782         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
783         set window->parent (except or the root window itself); if 
784         the window's parent is not a GdkWindow, or is a window of 
785         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
786
787         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
788         windows of type GDK_WINDOW_FOREIGN.
789
790 2001-10-24  Havoc Pennington  <hp@pobox.com>
791
792         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
793         the front of a segment, use the "slow" technique for moving
794         backward, so we don't mess up the any_segment field in the iter. 
795         Fixes #57707
796
797         * tests/testtextbuffer.c: add code to detect #57707, to avoid
798         regression
799
800 2001-10-23  Havoc Pennington  <hp@redhat.com>
801
802         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
803         if selection contains some editable text, #60975
804         (gtk_text_view_scroll_to_iter): remove warning about scrolling
805         prior to map; it should actually be OK to do so in many cases, 
806         it would be nice to warn about scrolling when many lines have
807         height 0, but I don't know what to do about that. Perhaps 
808         move part of flush_scroll into this function? comment added 
809         to consider this.
810
811 2001-10-23  Havoc Pennington  <hp@redhat.com>
812
813         * gtk/gtktextview.c (changed_handler): Correctly keep the same
814         text on the top of the screen, considering that the changed region
815         may have overlapped the first paragraph. Should fix msw's "text
816         widget scrolled to wrong place on map" bug, and probably some
817         other scrolling cases as well.
818         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
819         instead of some random value
820
821         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
822         grab_focus, so #59708 is really fixed
823
824 2001-10-24  Anders Carlsson  <andersca@gnu.org>
825
826         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
827         (popup_targets_received): Call append_action_signal with stock items
828         
829         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
830         (gtk_label_do_popup): Call append_action_signal with stock items
831         
832         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
833         (popup_targets_received): Call append_action_signal with stock items
834
835 2001-10-23  Havoc Pennington  <hp@redhat.com>
836
837         * gtk/gtktextview.c (changed_handler): queue a resize here; will
838         temporarily slow down the widget a lot, until we figure out how to
839         optimize to avoid full redraw everytime we queue a resize.
840
841 2001-10-23  Havoc Pennington  <hp@redhat.com>
842
843         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
844         0 and char_len == 0, bug #61729
845
846 2001-10-23  Havoc Pennington  <hp@redhat.com>
847
848         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
849         return value, #61714 (Vitaly Tishkov)
850         (gtk_text_iter_backward_sentence_starts): ditto
851         (gtk_text_iter_backward_word_starts): ditto
852         (gtk_text_iter_forward_word_ends): ditto
853         (gtk_text_iter_forward_sentence_ends): ditto
854         (gtk_text_iter_backward_cursor_positions): ditto
855
856 2001-10-23  Havoc Pennington  <hp@redhat.com>
857
858         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
859         fix from Dov Grobgeld, #61858
860
861 2001-10-23  Havoc Pennington  <hp@redhat.com>
862
863         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
864         Update IM spot location at appropriate times, #50626
865         (Hidetoshi Tajima)
866
867 2001-10-23  Havoc Pennington  <hp@redhat.com>
868
869         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
870         on grab focus, unless it's caused by button click, #59708
871
872 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
873
874         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
875
876         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
877         G_CONST_RETURN. (Murray Cumming)        
878
879         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
880         Make G_CONST_RETURN.
881
882         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
883         results of g_get_home_dir().
884
885         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
886         copy. Storing the return from gtk_entry_get_text() is evil.
887
888         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
889         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
890         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
891         gtk/gtksignal.c: Add const.
892
893         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
894
895         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
896         if we are setting them on private widgets.
897
898         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
899         Duplicate entry->text before setting it as object data.
900
901 2001-10-22  Havoc Pennington  <hp@redhat.com>
902
903         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
904         up a char from the end iterator, fixes #61859 ("can't put cursor
905         at the end of the buffer")
906
907         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
908         to work with delimiters other than newline.
909
910         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
911         get_bytes_in_line
912
913         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
914         last line, since the newline is no longer counted.
915         (gtk_text_iter_get_bytes_in_line): ditto
916
917 2001-10-22  Havoc Pennington  <hp@redhat.com>
918
919         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
920         #58290 would trigger if it reappeared, I think
921
922 2001-10-22  Havoc Pennington  <hp@redhat.com>
923
924         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
925         add temporary code to dump btree contents on assertion failure
926         described in #62656
927         
928         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
929         assertions that we're getting the right end iter segment
930
931         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
932         verify that we aren't on the end iterator after moving 
933         forward one segment - fixes return value in an obscure case. 
934         Also, some trivial code cleanup/rearranging.
935         
936 2001-10-22  Havoc Pennington  <hp@redhat.com>
937
938         * gtk/gtktextlayout.h: add a #error unless you define
939         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
940
941         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
942         
943 2001-10-22  Havoc Pennington  <hp@redhat.com>
944
945         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
946         #62365
947
948 2001-10-22  Havoc Pennington  <hp@redhat.com>
949
950         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
951         #62436
952
953 2001-10-22  Havoc Pennington  <hp@redhat.com>
954
955         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
956         #62366
957
958 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
959
960         * gtk/gtklabel.c: Add cursor-position, selection-bound 
961         properties. (#62148, reported by Padraig O'Briain)
962
963         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
964         to cursor_position. (1.3.x addition, text_position is an awful
965         name.) Make cursor_position read-only to avoid sticky questions
966         of interaction with selection_bound. (#62636, reported by
967         Padraig O'Briain)
968
969 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
970
971         Fixing popup menus to have "Paste" sensitized correctly. Original
972         patches from Damian Ivereigh, much mangled.
973
974         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
975         gtk_selection_data_targets_include_text(). (#60854)
976
977         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
978         the clipboard has text" function gtk_clipboard_wait_is_text_available.
979         (#60854)
980
981         * gtk/gtkentry.c: Only enable the paste item if the clipboard
982         contains text. (#60973)
983
984         * gtk/gtktextview.c: Only enable the paste item if the clipboard
985         contains text. (#60975)
986
987 2001-10-22  Havoc Pennington  <hp@redhat.com>
988
989         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
990         "height_lines" and "width_columns" properties, it doesn't make
991         sense to set the size request on a text view really. #62103
992
993 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
994
995         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
996         g_node_depth is broken, and that it's not worth being consistent
997         with it.
998
999 2001-10-22  Havoc Pennington  <hp@redhat.com>
1000
1001         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
1002         docs, #61777
1003         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
1004         change the two boolean args to a flags field, so we can extend 
1005         to add case insensitive, regexp searches later. #61852
1006
1007 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
1008
1009         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
1010         reflect reality, #62810
1011
1012 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
1013
1014         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
1015
1016         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
1017         system.  Instead of having a window the size of the tree, we have
1018         a window the size of widget->allocation, and simply draw with the
1019         offset.
1020         (coords_are_over_arrow): ditto.  Move to window coordinates.
1021         (do_prelight): ditto
1022         (do_unprelight): ditto
1023
1024         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
1025         Minor fix from Kristian Rietveld to fix unsorted case.
1026
1027 2001-10-22  jacob berkman  <jacob@ximian.com>
1028
1029         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
1030         a PIXMAP cell (fixes crash when using PIXTEXT cells)
1031
1032 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
1033
1034         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
1035         (#58768, Vitaly Tishkov)
1036         
1037         * gtk/gtkobject.h: Deprecate with abandon. 
1038         (#61942, Vitaly Tishkov, Matthias Clasen)
1039
1040         * gtk/gtksignal.h: Deprecate everything.
1041
1042         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
1043         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
1044         (#61942, Matthias Clasen)
1045
1046         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
1047         Havoc Pennington)
1048
1049         * gtk/gtkitemfactory.h: Deprecate compat functions
1050         for GtkMenuFactory code. (#62071)
1051
1052         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
1053         gdk_draw_text,gdk_draw_text_wc. (#62071)
1054
1055 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
1056
1057         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
1058         g_thread_init(), we don't want to link to -lgthread if we don't
1059         have to.
1060
1061 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
1062
1063         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
1064         Add a function, gdk_threads_init() that must be explicitely 
1065         called to enable the GDK thread mutex.
1066
1067 2001-10-22  Jakub Steiner <jimmac@ximian.com>
1068
1069         * gtk/stock-icons/stock_stop.png: no body parts
1070         
1071 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
1072
1073         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
1074         problem with g_return_if_fail return value.
1075
1076         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
1077         virtual atom code from the gdk-multihead branch, removing the per-display
1078         part. Virtualizing atoms needs to be done now to prevent compat
1079         breakage in direct Xlib accessing code in the future. (#62208)
1080  
1081         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
1082         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
1083  
1084         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
1085         an opaque pointer type so the compiler catches attempts
1086         to mingle it with X atoms.
1087
1088         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
1089           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
1090           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
1091           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
1092           tests/testdnd.c,tests/testselection.c: 
1093         Fix up for above atom changes.
1094
1095         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
1096         now have the ability to add custom predefines.
1097
1098         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
1099         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
1100         to gtk_clipboard_get().
1101
1102         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
1103         for GdkAtom => pointer change.
1104
1105         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
1106         atoms, fix for GdkAtom => pointer change.
1107
1108 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
1109
1110         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
1111         new function spin_button_get_arrow_size() instead.
1112
1113         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
1114         arrow was hardcoded, it's now variable.
1115
1116         Fixes bug #50200
1117
1118 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
1119
1120         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
1121         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
1122         for those
1123
1124 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
1125
1126         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
1127         in favor of g_signal_*, gtk_object_* in favor of 
1128         g_object_*.
1129
1130 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
1131
1132         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
1133         from GObject now, we have to use the g_object_* functions, not
1134         gtk_object_*.
1135
1136 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
1137
1138         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
1139         nailed down now (this code is not yet ready for general consumption)
1140
1141 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
1142
1143         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
1144         for use_align
1145
1146 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
1147
1148         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
1149
1150 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
1151
1152         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
1153         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
1154         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
1155         GObject, not GtkObject. (#62621)
1156
1157 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
1158
1159         * tests/testsocket.c: Remove now useless include of unistd.h,
1160         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
1161         
1162 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
1163
1164         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
1165         Pango font API. #61933. (Untested, even for compilation.)
1166
1167 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
1168
1169         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
1170         export gtk_disable_setlocale(). (Caught by Sven Neumann)
1171
1172 2001-10-18  Havoc Pennington  <hp@redhat.com>
1173
1174         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
1175
1176 2001-10-18  Havoc Pennington  <hp@redhat.com>
1177
1178         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
1179         to GTK_RUN_LAST, #50239
1180
1181 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
1182
1183         * gtk/gtkimmodule.c (match_locale):
1184         Support "*" for all locales with least priority
1185         when to select default im module, #58201
1186
1187 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
1188
1189         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
1190         Fix docs. (#61976)
1191  
1192         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
1193
1194         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
1195
1196         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
1197         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
1198         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
1199         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
1200         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
1201         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
1202         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
1203
1204         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
1205
1206         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
1207         Don't restrict the width of the spinbutton entry field 
1208         to 10 digits. (#58681)
1209
1210 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
1211
1212         * tests/testtreeflow.c: new test program for the tree.
1213
1214 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
1215
1216         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
1217         reported by (Oleg Maiboroda), #62600
1218
1219 2001-10-18  Michael Meeks  <michael@ximian.com>
1220
1221         * gtk/gtkentry.c (gtk_entry_set_property),
1222         (gtk_entry_get_property): impl 'text'
1223         (gtk_entry_class_init): add the 'text' prop.
1224         (gtk_entry_insert_text): notify 'text' changed.
1225         (gtk_entry_delete_text): ditto.
1226
1227 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
1228
1229         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
1230         Documentation updates.
1231
1232 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
1233
1234         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
1235         in truncating length of text to MAX_SIZE. (Found by 
1236         Padraig O'Briain, #62055)
1237
1238 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
1239
1240         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
1241         MNEMONIC_ACTIVATE; signal was changed a long time
1242         ago.
1243
1244         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
1245         Fix wrong return statement. (Reported by HideToshi
1246         Tajima and others.)
1247
1248         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
1249         left over select_all vfunc.
1250
1251 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
1252
1253         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
1254         a utility function to translate coordinates relative to
1255         one widget's allocation to coordinates relative to another
1256         widget's allocation.
1257
1258         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
1259         that:
1260          - only accepts external focus if there is no active
1261            member of the group or the button is active.
1262          - makes arrow keys move the active button as well
1263            as the focus
1264          - make tab tab out directly.
1265         This makes a radio button group act as a single focus location.
1266         (#53577).
1267         
1268         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
1269         it was only a small optimization that didn't matter and made
1270         things more complicated.
1271
1272         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
1273         sorter for FOCUS_TAB as we did for the other focus directions,
1274         sort by center of widgets, not upper-left corner. (Shouldn't
1275         matter in general.)
1276
1277         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
1278         from the different types of focusing: encapsulate sorting the
1279         widgets for the focus direction into one routine
1280         (gtk_container_focus_sort()) and then share the work of moving the
1281         focus between the different focus directions.
1282
1283         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
1284         work correctly with focus chains containing non-immediate
1285         children. Sorting was being done using allocation coordinates for
1286         each widget in the focus chain, and if there were intermediate
1287         window-widgets, these allocations would not be in the same
1288         coordinate system.
1289
1290 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
1291
1292         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
1293         mnemonic_activate function to option menu.
1294
1295 2001-10-15  Murray Cumming <murrayc@usa.net>
1296
1297         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
1298           Corrected the type names used in some calls to g_signal_new().
1299         
1300 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
1301
1302         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
1303         specs, use g_pattern_spec_equal() instead of direct field accesses.
1304         upon compressing two equal paths of the same type, the resulting
1305         priority has to be the maximum.
1306         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
1307         GtkPathPriorityType enum and make it a macro.
1308
1309 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
1310
1311         * gtk/gtkwidget.c: Fix some doc comments.
1312
1313 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
1314
1315         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
1316         on empty models.
1317
1318 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
1319
1320         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
1321         Remove stale gdk backend includes.
1322  
1323 2001-10-10  Michael Meeks  <michael@ximian.com>
1324
1325         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
1326         and value_in_list properties.
1327         (gtk_combo_set_value_in_list): notify change.
1328         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
1329
1330 2001-10-11  James Henstridge  <james@daa.com.au>
1331
1332         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
1333         that gtk+ can be built with automake 1.5 while not breaking
1334         things for automake 1.4.
1335
1336 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
1337
1338         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
1339         (#60606)
1340
1341         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
1342         to disable calling setlocale (LC_ALL, "").
1343
1344         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
1345         docs that this function is not typically useful.
1346
1347         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
1348         Automatically initialize GDK for the current locale
1349         on gdk_init(). Don't reset locale to C when
1350         XSupportsLocale() fails.
1351
1352         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
1353         useless checks for UTF-8 locale breakage that mattered
1354         only for X.
1355
1356         * examples/calendar/calendar.c
1357         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
1358         gtk_set_locale().
1359
1360         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
1361         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
1362
1363 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
1364
1365         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
1366
1367         Fixes bug #61904
1368
1369 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
1370
1371         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
1372         new function, #61923
1373         (gtk_tree_selection_path_is_selected): Ditto
1374
1375 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
1376
1377         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
1378         not a GtkObject.  Thanks andersca.
1379
1380         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
1381
1382 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
1383
1384         * gtk/gtktreeviewcolumn.c
1385         (gtk_tree_view_model_sort_column_changed): fix broken code.
1386
1387 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
1388
1389         * gtk/gtkselection.c: s/succesfully/successfully/g
1390
1391 2001-10-08  Havoc Pennington  <hp@pobox.com>
1392
1393         * demos/gtk-demo/stock_browser.c: remove unused enum
1394
1395         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
1396         pass the current selection state of the node in to the user
1397         selection func
1398
1399 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
1400
1401         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
1402         non-existent function gdk_x11_cursor_get_xid 
1403         by gdk_x11_cursor_get_xcursor.
1404
1405 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
1406
1407         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
1408         warning.
1409
1410         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
1411         unref nodes, #okay61676
1412
1413         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
1414         to the property; no need to clear the other columns.  Also, we go
1415         to 'unsorted' if the model supports it.
1416
1417 2001-10-05  Sven Neumann  <sven@gimp.org>
1418
1419         * demos/testpixbuf-save.c
1420         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
1421         feature.
1422
1423 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
1424
1425         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
1426         destroy the search dialog
1427
1428         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1429         added check to prevent creation of a search dialog if there's
1430         already one around
1431
1432         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
1433         it instead of "search-dialog" (when getting/setting the search dialog
1434         widget).
1435
1436 2001-10-05  Jakub Steiner <jimmac@ximian.com>
1437
1438         * gtk/stock-icons/stock_broken_image.png: broken images icon
1439
1440 2001-10-04  Havoc Pennington  <hp@pobox.com>
1441
1442         Fix #56586
1443         
1444         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
1445         accelerator setting here...
1446
1447         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
1448         because we try to use it when a menu bar hasn't necessarily been 
1449         initialized.
1450
1451 2001-10-03  Havoc Pennington  <hp@redhat.com>
1452
1453         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
1454         it previously verified incorrect behavior
1455
1456         Fixes for #61565
1457         
1458         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
1459         off the end
1460         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
1461         the end
1462         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
1463         the end
1464         (gtk_text_iter_forward_lines): if on the last line, move to end of
1465         it
1466
1467         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
1468         don't return a line off the end
1469
1470 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
1471
1472         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
1473         functions to do_insert_text and do_delete_text, add signals
1474         insert_text, delete_text and changed
1475
1476         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
1477         and changed. Updates to match new situation.
1478
1479         * gtk/gtkspinbutton.c: updates to match new situation
1480
1481         * gtk/gtkoldeditable.h: remove signals changed, insert_text
1482         and delete_text
1483
1484         * gtk/gtkoldeditable.c: updates to match new situation
1485
1486         * gtk/gtktext.c: updates to match new situation
1487
1488         Fixes bug #59803
1489
1490 2001-10-03  Havoc Pennington  <hp@redhat.com>
1491
1492         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
1493         position
1494
1495         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
1496         changes
1497
1498         * tests/testtextbuffer.c (logical_motion_tests): updates
1499
1500 2001-10-03  jacob berkman  <jacob@ximian.com>
1501
1502         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
1503         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
1504         * gtk/gtksettings.c (apply_queued_setting): 
1505         * gtk/gtkmain.c (gtk_init_check): 
1506         * gtk/gtkcontainer.c (gtk_container_child_get_property):
1507         s/retrive/retrieve/
1508
1509 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
1510
1511         * gtk/gtktreemodelsort.[ch]: preparation for surgery
1512         * tests/testtreesort.c: ditto
1513
1514 2001-10-02  Havoc Pennington  <hp@redhat.com>
1515
1516         Throughout: assorted docs
1517         
1518         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
1519         gdk_window_set_geometry_hints() should be used instead.
1520
1521         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
1522         document them
1523
1524         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
1525         seem to exist in any .c files
1526
1527         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
1528         g_return_if_fail (pixel < colormap->size).
1529
1530 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
1531
1532         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
1533         NULL for @target_list to mean, use
1534         gtk_drag_dest_get_target_list (widget).
1535
1536         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
1537         drop could hang when calling gtk_drag_finish with 
1538         success == FALSE and del == TRUE.
1539
1540         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
1541         drops without a matching target found would propagate
1542         to the parent widget rather than being rejected.
1543
1544         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
1545         Use text_view->dnd_mark instead of mark name to be
1546         consistent with the rest of the code.
1547
1548         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
1549         pendantically correct for a drop-only-in-some-places
1550         widget. (Check whether you can insert in drag_drop,
1551         not just in drag_motion ... matters in theory, and
1552         for Motif drag and drop in practice.)
1553
1554         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
1555         Damian Ivereigh to not allow drops on non-editable
1556         entries. (#61124)
1557
1558         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
1559         text to be moved from a non-editable entry.
1560         
1561 2001-10-03  James Henstridge  <james@daa.com.au>
1562
1563         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
1564         s/width/fixed_width/ in order to get things to compile.
1565
1566 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
1567
1568         * gtk/gtkcelleditable.c: docs
1569
1570         * gtk/gtktreemodel.h: more docs.
1571
1572 2001-10-02  Havoc Pennington  <hp@redhat.com>
1573
1574         * gdk/x11/gdkwindow-x11.c: docs
1575
1576         * tests/testtextbuffer.c (logical_motion_tests): add sentence
1577         boundary tests
1578
1579 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
1580
1581         * demos/gtk-demo/Makefile.am: add editable_cells.c,
1582         list_store.c and tree_store.c
1583
1584         * demos/gtk-demo/appwindow.c: remove tearoff item from
1585         File menu, put menubar and toolbar in handle boxes.
1586
1587         * demos/gtk-demo/genincude.pl: various changes to support trees
1588
1589         * demos/gtk-demo/main.c: various changes to support trees
1590
1591         * demos/gtk-demo/stock_browser.c: changed name of demo
1592         to Stock Item and Icon Browser, so geninclude.pl doesn't see
1593         it as child
1594
1595         * demos/gtk-demo/editable_cells.c: new file/demo
1596         * demos/gtk-demo/list_store.c: new file/demo
1597         * demos/gtk-demo/tree_store.c: new file/demo
1598
1599 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
1600
1601         * gtk/gtkrc.c gtk/gtksettings.c: 
1602         g_string_printfa => g_string_append_printf.
1603
1604 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
1605
1606         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
1607         and destroy handler.
1608
1609         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
1610
1611         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
1612         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
1613         Singh <yosh@gimp.org>.
1614
1615 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
1616
1617         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
1618         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
1619
1620         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
1621
1622 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
1623
1624         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
1625         scroll_to_cell delayed code to happen in size_allocate.
1626
1627         * gtk/gtkstyle.c (gtk_default_draw_expander): change
1628         prelight/normal arrow drawing.
1629
1630         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
1631
1632         * gtk/gtktreestore.c: refactor.
1633
1634 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
1635
1636         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
1637         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
1638         centers the child in relation to the to indicator height.
1639
1640 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
1641
1642         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
1643         correct
1644
1645 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
1646
1647         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
1648         property code using g_param_spec_int and changed from
1649         g_value_get_enum to g_value_get_int instead. Probably a better way
1650         to fix the problem :-)
1651
1652 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
1653
1654     * gtk/gtkcellrenderertext.c changed "weight" property type from 
1655       g_param_spec_int to g_param_spec_enum.
1656
1657 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
1658
1659         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
1660         fix: s/Wether/Whether/ in reorderable property description
1661
1662 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
1663
1664         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
1665         start editing when you select with a keyboard.
1666
1667         (gtk_tree_view_button_press_event): much more graceful now.
1668
1669         * gtk/gtkstyle.c: Draw togglebutton better.
1670
1671 2001-09-26  Havoc Pennington  <hp@redhat.com>
1672
1673         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
1674         of passing non-stock label in to gtk_dialog_new_with_buttons
1675
1676         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
1677         debugging updates
1678
1679         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
1680         are private
1681
1682         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
1683         exist, fall back to mnemonic label, not plain label, bug #61184
1684         
1685 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
1686
1687         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
1688         stupid and emitting the signal every time.
1689
1690         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
1691
1692 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
1693
1694        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
1695
1696        * contrib/gdk-pixbuf-xlib/Makefile.am: install
1697        gdk-pixbuf-xlib-2.0.pc.
1698
1699 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
1700
1701         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
1702         problem where menmonic wasn't removed properly when
1703         setting a label when there already is a label.
1704         Also, handle setting the tab label back to the same
1705         value. (#61160, #61161)
1706
1707         * gtk/gtkentry.c (paste_received): Patch from 
1708         Damian Ivereigh to replace selection if there is 
1709         one. (#61121)
1710
1711 2001-09-25  Darin Adler  <darin@bentspoon.com>
1712
1713         * tests/.cvsignore: Ignore new test program.
1714
1715 2001-09-25  Havoc Pennington  <hp@redhat.com>
1716
1717         * gtk/gtktextview.c: fix for #50317
1718         
1719 2001-09-25  Havoc Pennington  <hp@redhat.com>
1720
1721         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
1722         gtk_text_iter_can_insert
1723         
1724         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
1725
1726         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
1727          (gtk_text_iter_can_insert): new function to fix #60282, should
1728         also fix msw's "can paste into empty buffer" bug.
1729
1730         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
1731         "event object,"  #59091
1732
1733         * gtk/gtktextbtree.c: indentation fixes
1734
1735         * gtk/gtktextiter.c (find_by_log_attrs): fixes
1736
1737 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
1738
1739         * configure.in: Version 1.3.9, interface age 0, binary age 0.
1740
1741         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
1742
1743         * NEWS: Updates.
1744
1745 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
1746
1747         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
1748         function for drawing cursors between gtkentry/gtklabel/gtktextview.
1749         Should this be public? It has a bit of an odd interface, but
1750         custom editing widgets probably should be using it.
1751         Function will draw with wider width for taller cursors, and
1752         draws a little indicator arrow to indicate directoin for split 
1753         cursors.
1754
1755         * gtk/gtktextview.c: Add a "cursor_color" property.
1756
1757         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
1758         gtk_text_layout_draw().
1759
1760         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
1761         _gtk_draw_insertion_cursor().
1762
1763 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
1764
1765         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
1766         the behavior where you could turn family_set (etc) back on
1767         and get back the values you had before.
1768
1769         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
1770         g_string_ascii_up() rather than looping through the
1771         string ourself.
1772
1773 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
1774
1775         * gtk/gtktreeviewcolumn.c
1776         (gtk_tree_view_column_set_cell_renderer): Removed
1777         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
1778
1779         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
1780         Patch from Detlef Reichl
1781
1782 2001-09-25  Havoc Pennington  <hp@redhat.com>
1783
1784         * tests/testtextbuffer.c (line_separator_tests): Add tests for
1785         line separators, addresses bug #57428
1786
1787 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
1788
1789         * gtk/gtkentry.c: Make a GtkCellEditable
1790         (get_widget_window_size): Change to let it honor size_allocate
1791         when a CellEditable.
1792
1793         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
1794         editable changes.
1795         (gtk_tree_view_set_cursor): Now you can set the cursor
1796         horizontally, as well as start editing.
1797
1798         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
1799         code to look more like the other check buttons.
1800
1801         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
1802         Change the way we calculate cell size.
1803
1804         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
1805
1806         * demos/gtk-demo/sizegroup.c: Add mnemonics.
1807
1808         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
1809         Fix logic.
1810
1811         * gtk/gtkcellrenderertext.c: Change to be editable.
1812
1813         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
1814
1815         * test/testtreesort.c: Fix misspelling
1816
1817         * test/testreecolumns.c: Add mnemonics.
1818
1819         * test/testreeedit.c: New test program.
1820
1821 2001-09-25  Havoc Pennington  <hp@pobox.com>
1822
1823         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
1824         etc. docs about how these are not going to do what you want for 
1825         the X/win32 ports. Futile attempt to avoid a FAQ...
1826
1827 2001-09-24  James Henstridge  <james@daa.com.au>
1828
1829         * gtk/gtkmarshal.list (VOID): add marshal function types.
1830
1831         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
1832         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
1833         GTK_TYPE_POINTER.
1834         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
1835         with no-op copy/free functions.
1836
1837         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
1838         GtkCTreeNode get_type function.
1839
1840 2001-09-24  Havoc Pennington  <hp@redhat.com>
1841
1842         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
1843         gtktextlayout.c:
1844         Get rid of the newline-that-could-not-be-deleted; buffers may 
1845         now be zero-length. Much easier to fix than expected, once 
1846         I figured out the right way to do it. However, there are 
1847         various subtle bugs introduced by this that will have to get 
1848         sorted out. Please use bugzilla.
1849
1850 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
1851
1852         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
1853         response back from the window manager if our size hasn't changed 
1854         since we won't get a response back from the window manager;
1855         there was code in there to do this, but it was in the wrong
1856         place so if the hints change and the size didn't we'd expect
1857         a response.
1858
1859         Also, optimize the position-only-changed case by running
1860         the resize queue immediately, and clean up some comments
1861         for the changes.
1862
1863 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
1864
1865         * gtk/gtknotebook.h: Add a compat macro that got lost.
1866
1867         * gtk/gtktreestore.c: Doc fixes.
1868
1869         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
1870         leak for windows that receive events after being destroyed.
1871         (#60863, Joshua N. Pritikin)
1872
1873         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
1874         rather than gtk_container_queue_resize().
1875
1876         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
1877         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
1878         gtk_container_child_composite_name. (#60217.)
1879
1880 2001-09-22  Hans Breuer  <hans@breuer.org>
1881
1882         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
1883
1884 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
1885
1886         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
1887         weight value should be an int
1888
1889 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
1890
1891         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
1892         to gtk_menu_scroll_item_visible(). Only call
1893         gtk_menu_scroll_item_visible() if the menu widget has been
1894         realized. Fixes bug #55310.
1895
1896 2001-09-21  Havoc Pennington  <hp@redhat.com>
1897
1898         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
1899         key press to IM context if cursor isn't in an editable location;
1900         bug #58425, patch from Hidetoshi Tajima
1901
1902 2001-09-21  Havoc Pennington  <hp@redhat.com>
1903
1904         Bug #60862
1905         
1906         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
1907         (_gtk_text_btree_unref): fix up mark memory management
1908
1909         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
1910
1911 2001-09-20  Havoc Pennington  <hp@redhat.com>
1912
1913         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
1914         try to handle alignment here, because it's done by PangoLayout
1915         after we set the layout width. Fix from Dov.
1916
1917 2001-09-21  Hans Breuer  <hans@breuer.org>
1918
1919         * gdk/gdk.def :
1920         * gtk/gtk.def : updated externals
1921
1922         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
1923         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
1924         Also handle that Win32 pathes cann't be hard-coded      
1925
1926         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
1927         module, themes etc directory calculations
1928
1929         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
1930         >16 bit right. The size limit within Win9x appears _not_ to be 32767
1931         but slightly smaller ...
1932
1933         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
1934         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
1935
1936         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
1937
1938         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
1939         handling. I'm not sure if it is better now, but at least not worse
1940
1941         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
1942
1943         * gdk/win32/gdkwin32.h : reflect recent API restrictions
1944
1945 2001-09-21  Matt Wilson  <msw@redhat.com>
1946
1947         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
1948         radio_menu_item->group to NULL after removing it from the list, as
1949         it is no longer in the group. (#60869)
1950
1951         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
1952
1953 2001-09-20  Havoc Pennington  <hp@pobox.com>
1954
1955         * configure.in (PANGO_REQUIRED_VERSION)
1956         (ATK_REQUIRED_VERSION): add variables and checks for specific 
1957         versions of dependencies. Previously we didn't verify the 
1958         Pango or ATk versions.
1959
1960 2001-09-09  Havoc Pennington  <hp@pobox.com>
1961
1962         * gtk/gtktextiter.c: fool with indentation
1963         (gtk_text_iter_in_range): add g_return_if_fail
1964
1965 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
1966
1967         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
1968         ref count on new tag to be 1.  Update doc.  (#60836)
1969
1970 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
1971
1972         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
1973         call to gdk_image_new_bitmap(). (#59094, reported by
1974         by Sven Neumann)
1975
1976 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
1977
1978         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
1979         day, as well as the current month and year.
1980         (#59047, reported by Vitaly Tishkov)
1981
1982 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
1983
1984         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
1985         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
1986         
1987 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
1988
1989         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
1990
1991         (build_option_menu): add func argument, connect ::changed
1992         signal to option menu instead of connecting the ::activate
1993         signal to the menu items,
1994
1995         (toplevel): get rid of RADIOMENUTOGGLED macro,
1996
1997         (list_toggle_sel_mode), (clist_toggle_sel_mode),
1998         (ctree_toggle_line_style), (ctree_toggle_expander_style),
1999         (ctree_toggle_justify), (ctree_toggle_sel_mode),
2000         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
2001         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
2002
2003         (notebook_type_changed): merged standard_notebook(),
2004         notabs_notebook(), scrollable_notebook() and borderless_notebook()
2005         into notebook_type_changed()
2006
2007         (create_list), (create_ctree), (create_notebook),
2008         (create_progress_bar): changed OptionMenuItem arrays into
2009         gchar * arrays. Removed "Extended" item where used.
2010
2011         Fixes bug #59885
2012
2013 2001-09-20  Sven Neumann  <sven@gimp.org>
2014
2015         * configure.in
2016         * gdk/Makefile.am
2017         * gtk/Makefile.am
2018         * gtk/gtkselection.c
2019         * gtk/gtktreeview.c
2020         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
2021
2022 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
2023
2024         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
2025         a missing pango_layout_iter_free ().
2026
2027 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
2028
2029         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
2030         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
2031
2032         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
2033         the function definition so we don't accidentally rely on
2034         the compat #define from gtk_radio_menu_item_group.
2035         (#60782, Jeff Franks)
2036
2037 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
2038
2039         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
2040         incorrect values for top, right and bottom due to cut-and-paste
2041         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
2042
2043 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
2044
2045         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
2046         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
2047         window, not just on the client leader. (#58463)
2048
2049 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
2050
2051         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
2052
2053         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
2054         non-public _gtk_menu_item_set_placement.
2055
2056         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
2057
2058 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
2059
2060         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
2061           gdk/linux-fb/gdkcolor-fb.c:
2062         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
2063         (#59723)
2064
2065 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
2066
2067         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
2068         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
2069         #59723)
2070
2071 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
2072
2073         Patch from Frank Belew #59037 for Solaris compilation.
2074
2075         * gtk/maketypes.awk: Change syntax slightly for a call
2076         to sub(), apparently making awk on Solaris happier.
2077
2078         * gtk/gtktreeview.c: Remove C++ comments.
2079
2080 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
2081
2082         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
2083         to handle '99% of the time. (#60473, reported by Christian Rose)
2084
2085         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
2086         which no longer exists. (#60379, reported by Vitaly Tishkov)
2087
2088 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
2089
2090         * Released 1.3.8.
2091
2092         * gdk/Makefile.am: kill EXTRA_DIST clearing.
2093         
2094 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
2095
2096         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
2097         as its broken in automake 1.4, add explicit object rule to
2098         generate this.
2099         
2100         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
2101         get rid of uneccessary stamps, group stuff more logically, and build
2102         sources due to object rules. fix srcdir!=builddir.
2103
2104 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
2105
2106         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
2107         incorrect parameter to compute_double_length
2108         (#58680, patch from Matthias Clasen)
2109
2110         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
2111
2112         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
2113
2114         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
2115         for GDK_RELEASE_MASK to avoid warnings with Forte.
2116
2117         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
2118         break; statements.
2119
2120 2001-09-18  Alex Larsson  <alexl@redhat.com>
2121
2122         * gtk/gtkcheckbutton.c:
2123         * gtk/gtkradiobutton.c:
2124         Don't draw with GTK_STATE_ACTIVE.
2125
2126         * gtk/gtkclist.c:
2127         * gtk/gtkctree.c:
2128         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
2129
2130         * gtk/gtktextdisplay.c:
2131         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2132         unfocused with base_gc [GTK_STATE_ACTIVE].
2133         
2134         * gtk/gtkentry.c:
2135         Add select all menu-item.
2136         Default cursor color is red.
2137         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2138         unfocused with base_gc [GTK_STATE_ACTIVE].
2139
2140         * gtk/gtklabel.[ch]:
2141         Add keynav + menu to selectable lables.
2142         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2143         unfocused with base_gc [GTK_STATE_ACTIVE].
2144
2145         * gtk/gtkfilesel.c:
2146         Add drag and drop support.
2147
2148         * gtk/gtkstyle.c:
2149         (This was checked in earlier)
2150         New default values for text/base SELECTED and ACTIVE
2151         
2152 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
2153
2154         * configure.in: up version to 1.3.8, interface age 0,
2155         binary age 0, depend on glib 1.3.8.
2156
2157         * NEWS: 1.3.8 updates.
2158
2159 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
2160
2161         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
2162         the editing code
2163
2164         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
2165         reason to call it beyond emiting the two signals.
2166
2167         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
2168         to GtkEntry.
2169
2170 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
2171
2172         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
2173           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
2174         PangoFontDescription.
2175
2176         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
2177         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
2178         structure.
2179   
2180         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
2181
2182         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
2183         direct access to style->font. Deprecate gtk_style_ref/unref.
2184   
2185         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
2186         Remove gtk_style_ref/unref with g_object_ref/unref.
2187   
2188         * gtk/gtkcalendar.c: Remove leftover macros accessing
2189         style->font.
2190   
2191         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
2192         variable.
2193   
2194         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
2195         style->font.
2196
2197 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
2198
2199         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
2200         "can_activate" properties in favor of
2201         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
2202         and GTK_CELL_RENDERER_MODE_EDITABLE
2203
2204 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
2205
2206         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
2207         editable widgets.  This function is private, and should only be
2208         used by GtkTreeView.
2209
2210 2001-09-18  Matt Wilson  <msw@redhat.com>
2211
2212         * docs/Makefile.am (EXTRA_DIST): don't use += before =
2213
2214         * docs/faq/Makefile.am (EXTRA_DIST): likewise
2215
2216         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
2217         
2218         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
2219         (EXTRA_HEADERS): likewise
2220
2221         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
2222         (EXTRA_HEADERS): likewise
2223         (EXTRA_DIST): likewise
2224         (CLEANFILES): likewise
2225
2226         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
2227
2228         * tests/Makefile.am (EXTRA_DIST): likewise
2229         
2230         * Makefile.am (install-data-local): changed to use
2231         install-data-hook, which runs after install-pkgconfigDATA, so that
2232         the pkgconfigdir will have been created and populated first.
2233
2234 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
2235
2236         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
2237         be the last big GtkTreeView API change.
2238
2239         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
2240         replace with "activate" and "start_editing".  Also, added a
2241         "can_activate" and "can_edit" property.
2242
2243         * gtk/gtktreeviewcolumn.c: modify to use above.
2244
2245 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
2246
2247         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
2248
2249 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
2250
2251         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
2252         icon instead of one with ugly white background.
2253
2254 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
2255
2256         * demos/gtk-demo/stock_browser.c (id_to_macro): make
2257         the uppercasing work. (#59550)
2258
2259 2001-09-14  Jakub Steiner <jimmac@ximian.com>
2260
2261         * gtk/stock-icons/dialog_error.png:
2262         * gtk/stock-icons/dialog_question.png: more road signs
2263
2264 2001-09-13  Jakub Steiner <jimmac@ximian.com>
2265
2266         * gtk/stock-icons/dialog_question.png:
2267         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
2268           like a road sign.
2269
2270 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
2271
2272         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
2273         signals to make them more clear.  Also, change ::range_changed to
2274         ::row_changed.
2275         * gtk/gtktreemodel.c: Adjust to interface change
2276         * gtk/gtktreemodel.h: ditto
2277         * gtk/gtktreemodelsort.c: ditto
2278         * gtk/gtktreestore.c: ditto
2279         * gtk/gtkliststore.c: ditto
2280         * gtk/gtktreeview.c: ditto
2281         * tests/testtreecolumns.c: ditto
2282         * gtk/gtkmarshal.list: Actually remove a marshaller!
2283
2284 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
2285
2286         * gtk/gtktextview.c
2287         Add support for Ctrl+Up/Down arrow to move cursor to beginning
2288         of previous/next paragraph. If within a paragraph cursor moves to
2289         beginning of that paragraph.
2290
2291 2001-09-12  Jakub Steiner <jimmac@ximian.com>
2292
2293         * gtk/stock-icons/dialog_question.png: replacing the shaky
2294           question mark with a sans-serif one.
2295         * gtk/stock-icons/stock_top.png, stock_bottom.png,
2296      stock_first.png, stock_last.png: using the new style arrows
2297         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
2298      colors.
2299         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
2300      color.
2301         * gtk/stock-icons/stock_zoom*: anti-aliased
2302         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
2303      '-' with a '_', removed the wrong files
2304
2305 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
2306  
2307         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
2308  
2309         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
2310         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
2311         than in gtk-2.0/major.minor.micro/<type>/. This
2312         works better for a search path for modules.
2313  
2314         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
2315         gtk_binary_version variable holding major.minor.(micro-binary_age).
2316  
2317         * modules/input/Makefile.am (moduledir): Fix installation
2318         directory to match change in lookup location.
2319  
2320         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
2321         suffixes. Needs to be handled in g_module_build_path().
2322
2323         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
2324         appropriate.
2325  
2326 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
2327
2328         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
2329         causing RC properties not to work.
2330
2331 2001-09-11  Jakub Steiner <jimmac@ximian.com>
2332
2333         * gtk/stock-icons/dialog-error.png: less drastic
2334         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
2335           "STOP" is international enough.
2336         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
2337         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
2338
2339 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
2340
2341         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
2342         (add|remove)_selection_clipboard symmetric. (bug #59836)
2343
2344         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
2345         Avoid SEGV for empty tree. (bug #60243)
2346
2347 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
2348
2349         * tests/testgtk.c (create_idle_test): slight fix for
2350         g_object_set() not usable for nesting anymore.
2351
2352         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
2353         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
2354         properties, supply ::shadow_type properties instead as most
2355         other widgets do.
2356
2357 2001-09-10  Alex Larsson  <alexl@redhat.com>
2358
2359         * demos/gtk-demo/stock_browser.c:
2360         * gdk/gdkcolor.c:
2361         * gdk/gdkfont.c:
2362         * gdk/gdkcursor.c:
2363         * gdk/gdkevents.c:
2364         * gdk/gdkrectangle.c:
2365         * gtk/gtktypeutils.c:
2366         Update to use the new g_boxed_type_register_static API.
2367
2368 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
2369
2370         * gtk/gtktreestore.c:
2371         Fix looping in gtk_tree_store_init() waiting for zero random int.
2372
2373 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
2374
2375         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
2376         behaviour which havoc broke. they have to default to 1.0 for
2377         expand behaviour.
2378
2379         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
2380
2381 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
2382
2383         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
2384         Amend previous change to avoid runtime error in g_param_spec_ref()
2385
2386 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
2387
2388         * gtk/gtkrc.c (insert_rc_property): Fix blank line
2389         in the wrong place.
2390
2391 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
2392
2393         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
2394         do a lookup immediately after creating style->property_cache,
2395         since bsearch crashes on zero length for Solaris.
2396         (Found by Padraig O'Briain.)
2397
2398 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
2399
2400         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
2401         Really return NULL if not set.
2402         (gtk_widget_init): Remove unused varaible.
2403         
2404 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
2405
2406         * configure.in:
2407         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
2408         in cvs.
2409
2410 2001-09-08  Havoc Pennington  <hp@pobox.com>
2411
2412         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
2413         people might want to use
2414
2415 2001-09-08  Havoc Pennington  <hp@pobox.com>
2416
2417         * gtk/gtkalignment.c (gtk_alignment_class_init): default
2418         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
2419
2420         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
2421
2422         * gtk/gtktextiter.c: fix docs
2423         (gtk_text_iter_spew): get rid of this
2424
2425         * gtk/gtklayout.c: docs
2426
2427         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
2428         to center image and label together, instead of having image on
2429         left and label centered, patch/suggestion from Jacob
2430
2431         * gtk/gtkdialog.c: docs
2432
2433 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
2434
2435         * gtk/gtkliststore.c: Write documentation
2436         * gtk/gtktreestore.c: Write documentation
2437
2438 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
2439
2440         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
2441         with GArray and bsearch(), to remove dependency on a still
2442         evolving interface that we want to keep private to glib/gobject. 
2443
2444 2001-09-08  Havoc Pennington  <hp@pobox.com>
2445
2446         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
2447         docs fixes
2448
2449         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
2450
2451         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
2452
2453         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
2454
2455         * gtk/gtkscrolledwindow.h: docs fixes
2456
2457         * gtk/gtkimage.c (gtk_image_new): docs fixes
2458
2459 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
2460
2461         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
2462         false alarm  constness warning with a cast.
2463
2464         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
2465         for the inside-gdk case.
2466
2467 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
2468
2469         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
2470         remove g_print.
2471
2472         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
2473         change models, #59899
2474
2475 2001-09-07  Havoc Pennington  <hp@pobox.com>
2476
2477         * gtk/gtkmain.c: move some docs inline
2478
2479 2001-09-07  Havoc Pennington  <hp@pobox.com>
2480
2481         * gtk/gtk.h: tsk tsk, jrb broke the build
2482
2483 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
2484
2485         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
2486         Removed 'fill' attribute.  It was silly b/c that was a property of
2487         the cell renderer, anyway.
2488         (gtk_tree_view_column_render): Actually render the packed
2489         renderers.
2490         * doc/tree-column-sizing.txt: initial devel documentation.
2491         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
2492         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
2493
2494         * tests/testtreefocus.c: fix up to reflect above changes.
2495         * tests/testtreeview.c: ditto
2496         * demos/gtk-demo/stock_browser.c: ditto
2497
2498 2001-09-07  Alex Larsson  <alexl@redhat.com>
2499
2500         * gdk/linux-fb/gdkcolor-fb.c:
2501         Removed unused function.
2502         
2503         * gdk/linux-fb/gdkdrawable-fb2.c
2504         * gdk/linux-fb/gdkfont-fb.c:
2505         Use PangoLanguage functions.
2506
2507         * gdk/linux-fb/gdkinput.c:
2508         * gdk/linux-fb/gdkselection-fb.c:
2509         Fix const warnings.
2510         
2511         * gdk/linux-fb/gdkwindow-fb.c:
2512         Fix warning. Implement gdk_window_set_icon_list() and
2513         gdk_window_get_frame_extents(). (No icon support yet though.)
2514
2515         * gtk/gtkwindow.c (gtk_window_get_position):
2516         If window->frame is set get the extents of it instead.
2517         
2518 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
2519
2520         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
2521         Make the default default colormap the GdkRGB colormap,
2522         not the system colormap.
2523
2524         * gtk/gtkinvisible.c (gtk_invisible_init) 
2525           gtk/gtkwindow.c (gtk_window_init): Set the current
2526         colormap, as returned by _gtk_widget_peek_colormap()
2527         on the widget.
2528
2529         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
2530         to GTK+. Make it return %NULL instead of the default
2531         colormap if no colormap has explicitely been pushed.
2532
2533         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
2534         colormaps on ancestral widgets before defaulting the
2535         the system default colormap.
2536
2537         * docs/Changes-2.0.txt: explain colormap changes.
2538
2539 2001-09-07  Havoc Pennington  <hp@redhat.com>
2540
2541         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
2542         #57424
2543
2544 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
2545
2546         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
2547         make gdk_set_use_xshm a noop. Remove --no-xshm command line
2548         option. If we aren't autodetecting properly, we need
2549         to fix the problem, or at least make it an environment
2550         variable setting, to avoid problems with propagating
2551         to embedded children, plugins, etc.
2552
2553         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
2554
2555         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
2556         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
2557         New function to render a pixmap and mask for a particular colormap.
2558
2559         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
2560         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
2561         of internal implementation of the same.
2562
2563 2001-09-07  Havoc Pennington  <hp@redhat.com>
2564
2565         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
2566         debug code that seems to have caused a breakpoint in valid cases
2567         
2568         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
2569         pointer on the first view when adding the second view, fixes
2570         crash when closing gtk-demo text test with active selection
2571
2572         * gtk/gtktextbuffer.c
2573         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
2574         clipboards in the list of clipboards - probably fixes #59836
2575
2576 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
2577
2578       Make gdkx.h the only installed header from gdk/x11.
2579       All structures in gdk/x11 are opaque.
2580
2581         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
2582         Don't install gdk{drawable,pixmap,window}-x11.h.
2583
2584         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
2585         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
2586         GdkVisualClass into C files.
2587
2588         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
2589
2590         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
2591         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
2592         Add public functions to replace previously exported direct
2593         structure access.
2594         gdk_x11_colormap_get_{xdisplay,xcolormap} 
2595         gdk_x11_cursor_get_{xdisplay,xcursor},
2596         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
2597         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
2598         gdk_x11_gc_get_{xdisplay,ximage}
2599         
2600         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
2601         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
2602
2603       Fix a number of variables and functions that were exported
2604       "accidentally" from GDK.
2605
2606         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
2607         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
2608         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
2609         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
2610         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
2611         gdk_event_queue_find_first, gdk_event_queue_remove_link,
2612         gdk_event_queue_append, gdk_event_button_generate,
2613         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
2614
2615         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
2616            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
2617         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
2618         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
2619         gdk_use_xshm, gdk_input_ignore_core.
2620
2621         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
2622         #defines to namespace functions into the private _gdk_ 
2623         namespace.
2624
2625         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
2626         to replace gdk_parent_root exported variable. Adjust and
2627         deprecate GDK_ROOT_PARENT().
2628
2629         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
2630         GDK_ROOT_PARENT usage, remove includes of port-specific
2631         headers.
2632
2633         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
2634         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
2635         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
2636
2637         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
2638         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
2639         gdk_wm_delete_window functions, gdk_wm_take_focus, 
2640         use gdk_atom_intern() instead.
2641
2642         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
2643           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
2644           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
2645           gtk/gtkselection.c 
2646         Unexport gdk_selection_property, just use 
2647         gdk_atom_intern ("GDK_SELECTION").
2648
2649         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
2650         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
2651         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
2652         GdkVisualprivate, gdk_x11_gc_flush.
2653
2654       Make a number of public exports of variables into functions
2655       to increase encapsulation.
2656
2657         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
2658         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
2659         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
2660
2661         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
2662         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
2663         gdk_error_warnings.
2664
2665         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
2666           docs/Changes-2.0.txt: 
2667         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
2668         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
2669         Add gdk_x11_get_default_xdisplay().
2670
2671         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
2672         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
2673         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
2674         Don't export gdk_progclass, move --class command line
2675         option and handling to common portion of GDK.
2676
2677       Miscellaneous fixes:
2678
2679         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
2680         g_return_val_if_fail that should have been g_return_if_fail.
2681
2682         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
2683         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
2684
2685         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
2686         X11 dependency.
2687
2688         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
2689         Remove unused gdk_key_repeat_disable/restore.
2690
2691         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
2692         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
2693         Remove unused gdk_null_window_warnings variable.
2694
2695         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
2696         it can be retrieved from the repository; it is too far
2697         from functional to be worth having people check out;
2698         it would be easier to start from scratch, I suspect.
2699
2700         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
2701
2702         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
2703         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
2704         Fix some accidentally global variables and unused global variables.
2705
2706         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
2707         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
2708         Fix some accidentally global variables and unused global variables.
2709
2710       Add some space for future expansion to multihead.
2711
2712         * gdk/gdkdrawable.h: Add four reserved function pointers
2713         for future expansion of GdkDrawableClass.
2714
2715         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
2716         where we can put a GdkScreen * later.
2717
2718 2001-09-07  Havoc Pennington  <hp@redhat.com>
2719
2720         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
2721         adjustments after validating destination yrange; fixes #53918
2722         (This may cause other issues, but I hope it won't)
2723         
2724 2001-09-05  Havoc Pennington  <hp@redhat.com>
2725
2726         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
2727         line into start line, update the character counts in parent nodes; 
2728         caused a bug when end and start line had different parent nodes.
2729
2730 2001-08-30  Havoc Pennington  <hp@redhat.com>
2731         
2732         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
2733         assertion that tag is in a table
2734
2735 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
2736
2737         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
2738         g_strcasecmp on NULL strings. (#59058)
2739
2740 2001-09-06  Alex Larsson  <alexl@redhat.com>
2741
2742         * gtk/gtkbin.c:
2743         * gtk/gtkfontsel.c:
2744         * gtk/gtkspinbutton.c:
2745         * gtk/gtktipsquery.c:
2746         Use GtkType/GType instead of uint.
2747
2748 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
2749
2750         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
2751         sort column.
2752
2753         * gtk/gtktreestore.c (gtk_list_store_init): ditto
2754
2755         * gtk/gtktreesortable.c: add docs.
2756
2757 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
2758
2759         * Version 1.3.7
2760
2761         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
2762         docs for gtk-config
2763
2764         * modules/input/Makefile.am (install-data-local): Don't
2765         run gtk-query-immodules if DESTDIR is set.
2766
2767         * NEWS: Various additions.
2768
2769 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
2770
2771         * NEWS: updates for 1.3.7 release.
2772
2773 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
2774
2775         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
2776         handle default sort feature
2777
2778         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
2779         new function to handle default sort.
2780         (gtk_tree_sortable_has_default_sort_func): check if default sort
2781         is set.
2782
2783         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
2784         handle default sort feature
2785
2786 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
2787
2788         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
2789         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
2790         #59731
2791
2792 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
2793
2794         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
2795         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
2796         time, #59727
2797
2798         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
2799         correctly.
2800
2801 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
2802
2803         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
2804         so that we don't eternally update the keymap after we
2805         get a change notification.
2806
2807         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
2808         incorrect cast.
2809
2810 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
2811
2812         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
2813         it working. It mostly works now, although there're still a few issues
2814         to be worked out.
2815
2816         * tests/testtreesort.c (main): changes to have a better test
2817         application for the GtkTreeModelSort.
2818
2819 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
2820
2821         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
2822         fix for bug #59222.
2823
2824         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
2825         gpointer search_data argument to function definition and
2826         prototype, to match GtkTreeViewSearchEqualFunc typedef.
2827
2828 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
2829
2830         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
2831         per jrb's request.
2832
2833 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
2834
2835         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
2836
2837         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
2838
2839 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
2840
2841         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
2842         Instead of always mirroring the selection to a single PRIMARY
2843         selection, allow it to be mirrored to any number of clipboards.
2844
2845         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
2846         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
2847
2848         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
2849         GtkClipboard argument, and for paste_clipboard, the
2850         @override_location argument from @paste_primary.
2851
2852         * gtk/gtktextview.c: Adapt to above change.
2853         
2854 2001-08-30  Havoc Pennington  <hp@redhat.com>
2855
2856         * gtk/gtktextview.c (invalidated_handler): put validate idle at
2857         resize - 2 just for flexibility
2858
2859 2001-08-30  Havoc Pennington  <hp@redhat.com>
2860
2861         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
2862         object from the empty-child-anchor case by drawing a little box.
2863         
2864         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
2865         if the child anchor has no anchored widgets - fixes #59328.
2866
2867         Also, remove bizarre deletion of preedit string that seems to have
2868         gotten in here somehow.
2869
2870 2001-08-30  Havoc Pennington  <hp@redhat.com>
2871
2872         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
2873         to #58420 from Hidetoshi Tajima and Matthias Clasen
2874
2875 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
2876
2877         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
2878         change color when the GtkTreeView loses focus.
2879
2880         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
2881         ditto.
2882         
2883         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
2884
2885 2001-08-28  Havoc Pennington  <hp@pobox.com>
2886
2887         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
2888
2889 2001-08-28  Havoc Pennington  <hp@pobox.com>
2890
2891         * demos/gtk-demo/main.c (setup_default_icon): add default icon
2892
2893         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
2894         warning fix
2895         (gtk_radio_button_new_with_label): warning fix
2896
2897         * gtk/gtkdnd.c: used some random GtkImage private structs, 
2898         update to reflect GtkImage changes
2899
2900         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
2901         whether the hint is supported, just always set the icon. A task
2902         list might want to use it even if the WM doesn't, and the WM may
2903         change over time. Also, XDeleteProperty() if list == NULL.
2904
2905         * gtk/gtkwindow.c (gtk_window_set_icon_list)
2906         (gtk_window_get_icon_list)
2907         (gtk_window_set_icon)
2908         (gtk_window_get_icon)
2909         (gtk_window_set_default_icon_list)
2910         (gtk_window_get_default_icon_list):
2911         new functions
2912
2913         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
2914
2915         * gtk/gtkimage.c: Implement property support, bug #59408
2916
2917         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
2918         on reparent-without-removing-first a bit more helpful.
2919         Let's just destroy this FAQ.
2920
2921 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
2922
2923         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
2924         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
2925
2926 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
2927
2928         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
2929         of use_text_format to the end of the function. (#56447)
2930
2931 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
2932
2933         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
2934         only in response to an area_prepared signal.
2935
2936 2001-08-28  Alex Larsson  <alexl@redhat.com>
2937
2938         * gtk/gtkwidget.c (gtk_widget_class_init):
2939         Make unrealize GTK_RUN_LAST.
2940
2941 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
2942
2943         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
2944         with_label and with_mnemonic should create radio buttons, not
2945         check buttons
2946
2947 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
2948
2949         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
2950         * tests/treestoretest.c (make_window): ditto
2951         * demos/gtk-demo/main.c (create_tree): ditto
2952         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
2953
2954 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
2955
2956         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
2957         GTK selection types rather than GtkTreeSelectionMode.
2958
2959         * docs/Changes-2.0: Add comment about selection change.
2960
2961 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
2962
2963         * gtk/gtkenums.h (GtkSelectionMode): deprecate
2964         GTK_SELECTION_EXTENDED.
2965
2966         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
2967         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
2968
2969         * gtk/gtkctree.c: ditto
2970
2971         * gtk/gtklist.c: ditto
2972
2973         * gtk/gtktree.c: ditto
2974
2975 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
2976
2977         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
2978         of typos in compat macros. (#59624, Skip Montaro)
2979
2980 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
2981
2982         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
2983         macro.
2984
2985          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
2986  
2987         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
2988         interface to be a standard setter from gtk_menu_item_right_justify.
2989         (gtk_menu_item_get_right_justified): a getter to go with the setter
2990
2991         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
2992         gtk_menu_item_right_justify.
2993
2994         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
2995         gtk_menu_item_set_right_justified.
2996  
2997 2001-08-27  Jens Finke <jens@gnome.org>
2998
2999         * gtk+.spec.in: Updated to match gpp requirements, reworked the
3000         files section to make it work with 1.3.x releases.
3001
3002 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
3003
3004         * gtk/gtkbutton.[ch]:
3005         Add properties for labels, mnemonics and stock items.
3006         Added C accessor functions for the properties.
3007         Removed deprecated button->child.
3008
3009         * gtk/gtkradiobutton.c:
3010         * gtk/gtktogglebutton.c:
3011         Update to use the functions in GtkButton.
3012
3013         * gtk/gtkcheckbutton.c:
3014         Update to use the functions in GtkButton.
3015         Changed size allocation of child. Now only gets as much
3016         space as it requests.
3017
3018         * gtk/gtkclist.c:
3019         Don't use GtkButton->child
3020
3021         * gtk/gtklabel.c:
3022         Fixed typo in docs
3023         
3024 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
3025
3026         * tests/testgtk.c:
3027         * tests/Makefile.am:
3028         Ressurect the properties test.
3029         I don't care if it is inferior, I just want to test my property code.
3030
3031 2001-08-25  Chema Celorio  <chema@celorio.com>
3032
3033         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
3034         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
3035         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
3036
3037 2001-08-24  Havoc Pennington  <hp@pobox.com>
3038
3039         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
3040         these are already in gtkmenu.h, and the copies
3041         here were broken.
3042
3043         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
3044
3045         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
3046         special-case bitmaps to allow no colormap
3047         (bitmap1): implement no-colormap bitmap-getting
3048         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
3049         alpha
3050         (rgb8): indentation
3051         (rgb1a, rgb1): change the way we read the data out of the image, 
3052         old way didn't seem to work quite right.
3053
3054         I'm pretty sure a lot of the rgbconvert code is still broken.
3055         
3056         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
3057         above position constraint (I really intended to do this before,
3058         don't know what's up with that)
3059         (gtk_XParseGeometry): shut up gcc
3060
3061         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
3062         and "0" should have been. remove the attempted 4-bytes-at-once
3063         optimization, it was totally broken.
3064
3065 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
3066
3067         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
3068         on push to buttons (based on patch from Soeren Sandmann, #54720)
3069
3070           - Add child_displacement_x/y style properties to control how far the
3071             child moves when the button is depressed.
3072
3073           - Add non-exported function _gtk_button_set_depressed to clean
3074             up the handling of the in/out shadow and separate it frmo
3075             widget->state.
3076
3077           - Lots of code cleanup and simplification of state handling
3078             for GtkButton/GtkToggleButton.
3079  
3080         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
3081         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
3082
3083 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
3084
3085         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
3086         and make gtk_image_new() take no arguments. The compiler will
3087         catch it, and it is vastly more useful than having
3088         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
3089
3090         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
3091         to add tearoff-title property (#51319, Lee Mallabone)
3092
3093 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
3094
3095         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
3096         gtk_menu_item_configure(). (#58925)
3097
3098 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
3099
3100         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
3101         "use_align" to give people the option to just make a cell visible.
3102
3103         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
3104         we were scrolling past the end of the tree.
3105
3106         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
3107         rename gtk_tree_view_column_pack_start_cell_renderer to
3108         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
3109
3110 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
3111
3112         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
3113         a stray g_object_ref() left over from gtk_object_ref/sink.
3114         (Pointed out by Josh Pritikin.)
3115
3116 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
3117
3118         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
3119         to gtk_container_get_children. Added deprecated compatibility
3120         macro. (Suggested by Vitaly Tishkov, #59051)
3121
3122         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
3123         calls.
3124
3125 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
3126
3127         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
3128         gtk_menu_bar_append/prepend/insert, forgot to do this
3129         when we deprecated gtk_menu_append/prepend/insert.
3130
3131         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
3132         compat macros.
3133
3134         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
3135         renamed by compat macro.
3136
3137         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
3138         gtk_font_selection_dialog_get_font(). (Suggested by
3139         Vitaly Tishkov, #59383)
3140
3141 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
3142
3143         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
3144         Rename from gtk_text_tag_table_size(). (#59366)
3145
3146 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
3147
3148         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
3149         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
3150         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
3151         (#59173).
3152
3153 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
3154
3155         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
3156         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
3157         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
3158
3159 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
3160
3161         [ Patch from Sebastian Wilhelmi, 52790 ]
3162
3163         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
3164
3165         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
3166         Move compatibility macros from g[dt]kcompat.h to within 
3167         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
3168
3169         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
3170
3171         * demos/Makefile.am demos/gtk-demo/Makefile.am 
3172           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
3173           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
3174
3175         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
3176                  testpixbuf.c}: Fix usages of deprecated functions.
3177
3178 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
3179
3180         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
3181         when changing models.
3182
3183 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
3184
3185         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
3186         We check the current event for modifiers rather than try to trap
3187         all presses.
3188
3189 2001-08-22  Anders Carlsson  <andersca@gnu.org>
3190
3191         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
3192         It's LIST_STORE, not LISTSTORE.
3193
3194 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
3195
3196         * gtk/gtk.h: Remove commented out gtkpacker reference.
3197
3198 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3199
3200         * configure.in (all_loaders): Add tga loader, 
3201         patch by Nicola Girardi. (#56067)
3202
3203 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
3204
3205         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
3206         a little.  More needs to be done tomorrow.
3207
3208 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
3209
3210         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
3211
3212 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
3213
3214         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
3215         reported by Kristian Rietveld <kristian@planet.nl> to handle row
3216         == NULL.
3217         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
3218         <kristian@planet.nl> to change destroy order.
3219
3220 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
3221
3222         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
3223         correct marshaller.
3224
3225 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
3226
3227         * gtk/gtkliststore.c: Fix up warnings, #58928.
3228
3229         * gtk/gtktreeselection.h: Change signal prototype, #58647
3230
3231         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
3232         #59221.
3233
3234         * gtk/gtkstyle.c: Actually prelight arrow, #50981
3235         
3236 2001-08-18  Hans Breuer  <hans@breuer.org>
3237
3238         * gdk/gdk.def : updated externals
3239
3240         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
3241         is required to get (at least) visible in entry fields. Some selections
3242         are really handled now - even on win32 - but copying via middle
3243         mouse button into a different app needs to wait ... 
3244
3245         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
3246         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
3247
3248         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
3249         handling. I'm not sure if it is better now, but at least not worse
3250
3251         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
3252         with SetWindowPos () which allows more fine-tuning backing-store wise
3253
3254         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
3255         Also changed move/resize to be more like the X version.
3256
3257         * gtk/gtk.def : updated externals
3258
3259 2001-08-19  Sven Neumann  <sven@gimp.org>
3260
3261         * gtk/gtktooltips.c
3262         * tests/testtreesort.c
3263         * tests/treestoretest.c: inserted some casts to get rid of compiler
3264         warnings.
3265
3266 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
3267
3268         * gtk/gtktreeviewcolumn.c
3269         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
3270
3271         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
3272         (_gtk_tree_view_find_node): If *node is NULL,
3273         *tree should be NULL too.
3274
3275         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
3276         column/renderers.
3277         * tests/testtreecolumns.c: ditto
3278         * tests/testtreefocus.c: ditto
3279         * tests/testtreesort.c: ditto
3280         * tests/testtreeview.c: ditto
3281         * tests/treestoretest.c: ditto
3282
3283 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
3284
3285         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
3286         signals; is_expander/is_expanded.
3287
3288         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
3289         pixbufs.
3290
3291         * gtk/gtktreeview.c: set above properties.
3292
3293 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
3294
3295         * gtk/gtkwidget.h: Really remove set_default_style().
3296
3297         * docs/Changes-2.0.txt: added a note about
3298         gtk_widget_push/pop/set_default_style.
3299
3300 2001-08-18  Havoc Pennington  <hp@pobox.com>
3301
3302         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
3303         hints_changed in addition to the other cases.
3304         (gtk_window_move_resize): include last position from configure
3305         notify in debug spew
3306
3307 2001-08-18  James Henstridge  <james@daa.com.au>
3308
3309         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
3310         second argument to the weak ref notify, cleaning up some uglyness.
3311         (gtk_accel_group_attach): remove and add the weak notifier when
3312         changing the accel groups slist.
3313         (gtk_accel_group_detach): same here.
3314
3315 2001-08-17  Darin Adler  <darin@bentspoon.com>
3316
3317         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
3318         missing parameters to utf8 functions to make it compile.
3319
3320 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
3321
3322         * gtk/gtktreeprivate.h:
3323         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3324         (gtk_tree_view_init), (gtk_tree_view_set_property),
3325         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
3326         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
3327         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
3328         (gtk_tree_view_set_destroy_count_func),
3329         (gtk_tree_view_set_enable_search),
3330         (gtk_tree_view_get_enable_search),
3331         (gtk_tree_view_get_search_column),
3332         (gtk_tree_view_set_search_column),
3333         (gtk_tree_view_get_search_equal_func),
3334         (gtk_tree_view_set_search_equal_func),
3335         (gtk_tree_view_search_dialog_destroy),
3336         (gtk_tree_view_search_position_func),
3337         (gtk_tree_view_interactive_search),
3338         (gtk_tree_view_search_delete_event),
3339         (gtk_tree_view_search_button_press_event),
3340         (gtk_tree_view_search_key_press_event),
3341         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
3342         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
3343         * gtk/gtktreeview.h:
3344         Add heavily modified patch from Kristian Rietveld to handle
3345         interactive searching.
3346
3347 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
3348
3349         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
3350         string parameter.
3351
3352         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
3353         GtkMenuShell::selection_done, now that we have it, instead of 
3354         ::deactivate so we're not tearing the menu apart and notify
3355         the user prematurely.
3356
3357 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
3358
3359         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
3360         window, clear window->need_default_position to avoid infinite loops.
3361         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
3362
3363 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
3364
3365         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
3366         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
3367         (gtk_tree_view_set_property): don't cast possible NULL objects.
3368         (gtk_tree_view_destroy): reset the model to NULL.
3369
3370         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
3371         parent_class handler.
3372
3373 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3374
3375         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
3376
3377 2001-08-17  Anders Carlsson  <andersca@gnu.org>
3378
3379         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
3380         point numbers so that the result will be floating point.
3381
3382 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3383
3384         * tests/testgtk.c (create_handle_box): 
3385         (create_toolbar): Replace gtk_window_set_policy calls by
3386         gtk_window_set_resizable.
3387
3388 2001-08-16  Jakub Steiner <jimmac@ximian.com>
3389
3390         * gtk/stock-icons/dialog_info.png: new style bulb
3391         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
3392         * gtk/stock-icons/dialog_warning.png: need a hand?
3393         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
3394           the aa border gets chopped off ok
3395         * gtk/stock-icons/stock_colorselector.png: using the new hand
3396         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
3397           this one is for, but the old icon was butt ugly.
3398         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
3399         * gtk/stock-icons/stock*_insert_object.png: "
3400         * gtk/stock-icons/stock_index.png: using new hand icon
3401         * gtk/stock-icons/stock*_new.png: the document template being used 
3402           elsewhere too
3403         * gtk/stock-icons/stock*_print*.png: new print and print preview 
3404           icons (panel/menu)  
3405         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
3406           icons based on Tuomas' floppy image.
3407         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
3408         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
3409         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
3410         * gtk/stock-icons/stock*_undelete.png: "
3411         * gtk/stock-icons/stock_preferences.png: I have a version with a 
3412           document base if the sliders are no good.
3413         * gtk/stock-icons/stock_properties.png: properties 
3414         
3415
3416         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
3417           (tigert@ximian.com) clipboard icons
3418         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
3419         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
3420         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
3421           little bigger IMHO
3422
3423 2001-08-16  Sven Neumann  <sven@gimp.org>
3424
3425         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
3426
3427 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
3428
3429         * gtk/gtkcellrenderertext.c:
3430         Avoid warning when specifying NULL for "attributes" property
3431
3432 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3433
3434         * docs/debugging.txt: Add a warning about --enable-debug=no,
3435         some editorial changes.
3436
3437 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3438
3439         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
3440         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
3441         debugging info, remove unused debug flags. (#58330)
3442
3443 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
3444
3445         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
3446         (gtk_tree_selection_select_all): Remove strict checking for rows.
3447
3448 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3449         
3450         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
3451         Don't remove the tooltip window when the tip text changes. (#15891)
3452
3453 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
3454
3455         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
3456         $(srcdir).
3457
3458 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
3459
3460         * Makefile.am (EXTRA_DIST): Fix problem with trying to
3461         dist files from intl/, which is no longer there.
3462
3463 2001-08-11  Hans Breuer  <hans@breuer.org>
3464
3465         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
3466           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
3467           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
3468           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
3469           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
3470           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
3471
3472         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
3473           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
3474         GDK_TYPE_EVENT signals
3475
3476         * gtk/gtkalignment.c : removed 'direct allocation bug',
3477         which Tim discovered while reading the patch
3478
3479 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
3480
3481         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
3482         compat macros for push/pop/set_visual that were supposed
3483         to be added a long time ago, but got dropped. 
3484
3485 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
3486
3487         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
3488         property notifies.
3489
3490 2001-08-07  Havoc Pennington  <hp@pobox.com>
3491
3492         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
3493
3494         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
3495         some fixage is needed here, but nothing simple. Owen understands
3496         it. ;-)
3497
3498         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
3499         sizing and positioning.  Also, fix bug in compute_geometry_hints
3500         (width/height confusion for setting min size). 
3501         (gtk_window_move): new function
3502         (gtk_window_resize): new function
3503         (gtk_window_get_size): new function
3504         (gtk_window_get_position): new function
3505         (gtk_window_parse_geometry): new function
3506         
3507         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
3508         (gtk_widget_get_size_request): new function
3509         (gtk_widget_get_usize): delete, that was a short-lived function
3510         ;-)
3511         (gtk_widget_set_usize): deprecate
3512         (gtk_widget_set_uposition): deprecate, make it a trivial 
3513         gtk_window_move() wrapper
3514         (gtk_widget_class_init): remove x/y/width/height properties,
3515         add width_request height_request
3516         
3517         * demos/*: update to avoid deprecated functions
3518         
3519         * gtk/gtklayout.c: add x/y child properties
3520
3521         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
3522         uses of "gint16"
3523
3524         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
3525         sizing test
3526
3527         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
3528         configure events on toplevel windows are always in root window
3529         coordinates, following ICCCM spec that all synthetic events 
3530         are in root window coords already, while real events are 
3531         in parent window coords. Previously the code assumed that 
3532         coords of 0,0 were parent window coords, which was 
3533         really broken.
3534   
3535         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
3536         warning
3537  
3538         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
3539         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
3540         hints in gtk_window_parse_geometry()
3541  
3542         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
3543         new USER_POS USER_SIZE hints    
3544
3545 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3546
3547         * tests/prop-editor.c (properties_from_type): Use 
3548         g_object_class_list_properties to get the param specs 
3549         for a given type. (#58609)
3550
3551 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3552
3553         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
3554         free the text_aa parts. (#57549)
3555
3556 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3557
3558         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
3559         not the foreground color. (#57621)
3560
3561 2001-08-09  Alexander Larsson <alexl@redhat.com>
3562
3563         * gdk/win32/gdkfont-win32.c:
3564         Update to the new pango win32 api.
3565
3566 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
3567
3568         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
3569         COMPOUND_TEXT instead of TEXT
3570         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
3571         interpret the return value of g_string_to_compound_text()
3572         (#55152)
3573
3574 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3575
3576         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
3577         fail if iter is NULL. (#58347)
3578
3579 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3580
3581         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
3582         some off-by-one issues, fixing selection of line-ends. (#50323)
3583
3584 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3585
3586         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
3587         functions in order to make mouse operation work again in the
3588         color wheel. (#58604)
3589
3590 2001-08-07  James Henstridge  <james@daa.com.au>
3591
3592         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
3593         the accelerator when the accel object is changed.  Fixes bug
3594         #58628.
3595
3596 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
3597
3598         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
3599         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
3600         (gnome bugzilla #58202)
3601
3602 2001-08-06  Havoc Pennington  <hp@pobox.com>
3603  
3604         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
3605         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
3606         it was expecting a GdkWindow, not a GdkWindowImplX11.
3607  
3608         Also, we were getting the window rect in screen coords 
3609         and the screen rect in window coords then intersecting 
3610         them; instead, get window rect in window coords.
3611  
3612         Finally, there were codepaths that resulted in a stuck server grab
3613         (when the window was fully onscreen, or on gdk_image_new()
3614         failure); make the server ungrab thing a bit more
3615         robust/consistent.
3616
3617 2001-08-06  Sven Neumann  <sven@gimp.org>
3618
3619         * gdk/gdkpango.c (gdk_pango_context_destroy): 
3620         check if info->colormap != NULL before unref'ing it. It might have
3621         been set to NULL using gdk_pango_context_set_colormap().
3622
3623 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
3624
3625         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
3626         Fix conversion from float to int so that we don't get
3627         skew in the int => float => int roundtrip. 
3628         (#58120, reported by Vitaly Tishkov). Also fix problem
3629         where if no alpha was set, the returned alpha
3630         from (say) set_current_alpha() was returned as 1, not 65535.
3631
3632 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
3633
3634         * gtk/gtklist.c (gtk_list_clear_items): Fix
3635         problem with selecting a new focus child.
3636
3637         * gtk/gtklist.c (gtk_list_clear_items): Clear 
3638         list->undo/list_focus_child after unparenting
3639         child, since unparenting the child can result
3640         in list->last_focus_child being set. (#58024)
3641
3642         * Makefile.am (SUBDIRS): Add target specific pc
3643         files to DISTCLEANFILES.
3644
3645         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
3646         (58327, Matthias Clasen)
3647
3648 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
3649
3650         * tests/testgtk.c: Patch from Hans (with various modifications),
3651         to add the ability to use testgtk as a rough-and-ready
3652         benchmark. Try, 'testgtk --bench all:5' (if you want decent
3653         numbers, run without a window manager)
3654
3655 2001-08-04 Alexander Larsson <alexl@redhat.com>
3656
3657         * gdk/win32/gdkinput.c:
3658         Add #ifdef HAVE_WINTAB around wintab.h include.
3659
3660         * gtk/gtk.def:
3661         Removed marshals that have been moved to glib.
3662         Commented out plug and socket. They didn't compile for me 
3663         on win32.
3664
3665 2001-08-04  Hans Breuer  <hans@breuer.org>
3666
3667         * gtk/stocks-icons/makefile.msc : new file
3668         * gtk/makefile.msc.in : use it
3669
3670         * gtk/gtkstyle.c : not all platforms do provide M_PI and
3671         friends, but luckily there is G_PI
3672
3673         * gtk/gtk.def : updated
3674
3675         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
3676         windows WS_POPUP, but only those without a parent. This fixes the 
3677         mis-alignment between the selectable (temp, input only) window and 
3678         the window text of GtkLabel.
3679
3680         (gdk_window_show) : respect private->state when actually showing
3681         the window.
3682
3683         (gdk_window_set_transient_for) : Implementation from Wolfgang 
3684         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
3685         error handling. Should fix #50586.
3686
3687         * gdk/win32/gdkevents-win32.c : beautify log output
3688
3689 2001-08-04  Michael Natterer  <mitch@gimp.org>
3690
3691         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
3692         Need to show the image after adding it to the GtkImageMenuItem.
3693         This used to work without in testgtk because of the
3694         gtk_widget_show_all() at the end of the function.
3695         (Closes #54978).
3696
3697 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
3698
3699         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
3700         (gtk_notebook_set_child_property): fix finding of child's page,
3701         since we have to validly deal with labels and menus here as well.
3702         (gtk_notebook_get_child_property): fix warning.
3703         (gtk_notebook_class_init): property tab_pack is of type
3704         GTK_TYPE_PACK_TYPE (enum) not boolean.
3705         (gtk_notebook_find_child): don't always warn, we might be looking
3706         for a label or menu child.
3707         (gtk_notebook_map): fix mapping of panel.
3708
3709         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
3710         widget's mapped state, regardless of the value being set equals
3711         old settings, since things like REALIZED(parent) or MAPPED(parent)
3712         may have changed since the old value was set. make it an error to
3713         invoke this function on a toplevel widget.
3714
3715 2001-07-31  Darin Adler  <darin@bentspoon.com>
3716
3717         * gdk/gdkprivate.h:
3718         * gdk/x11/gdkx.h:
3719         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
3720
3721         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
3722         GTK_OBJECT.
3723
3724 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
3725
3726         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
3727         scoping error pointed out by matthiasc@poet.de.
3728
3729 2001-07-31  Sven Neumann  <sven@gimp.org>
3730
3731         * demos/gtk-demo/appwindow.c
3732         * demos/gtk-demo/item_factory.c
3733         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
3734
3735 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
3736
3737         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
3738         argument order for g_signal_has_handler_pending.
3739
3740 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
3741
3742         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
3743         instead of long deprecated g_scanner_stat_mode().
3744
3745 2001-07-29  Hans Breuer  <hans@breuer.org>
3746
3747         * gdk/makefile.msc : build in the backend dir after
3748         auto-generating files
3749
3750         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
3751         with code from win32-production-branch.
3752
3753         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
3754         before calling DestroyWindow, which indirectly calls 
3755         gdk_window_destroy_notify ()
3756
3757         (performance patch merged from win32-production-branch)
3758         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
3759         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
3760         R2_COPYPEN rop). It is claimed to be much faster.
3761
3762 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
3763
3764         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
3765         add an "attributes" property to the text renderer for ATK.
3766
3767 2001-07-26  Alex Larsson  <alexl@redhat.com>
3768
3769         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
3770         Initialize image->bits_per_pixel from the drawable, not from
3771         the root window.
3772
3773         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
3774         Fix cast. argument is an IMPL already.
3775
3776 2001-07-15  James Henstridge  <james@daa.com.au>
3777
3778         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
3779         (gtk_window_remove_accel_group): same here.
3780         (gtk_window_key_press_event): same here.
3781
3782         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
3783         (gtk_widget_remove_accelerator): same here.
3784         (gtk_widget_remove_accelerators): same here.
3785
3786         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
3787
3788         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
3789         instead of GtkObject.
3790
3791         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
3792         now takes GObjects.
3793
3794         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
3795         pass a GObject to gtk_accel_group_entries_from_object.
3796         (gtk_item_factory_create_item): s/accel_widget/accel_object/
3797
3798         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
3799
3800         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
3801
3802         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
3803         GObjects can have accelerators set now.  Add compatibility
3804         defines.
3805
3806         * gtk/gtkmarshal.list: add missing marshallers.
3807
3808         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
3809         accelerators on plain GObjects.  gtk_accel_group_object_destroy
3810         has been converted into a weak reference, and
3811         gtk_accel_group_delete_entries is now a destroy notify for that
3812         piece of data.
3813
3814 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
3815
3816         * gdk/gdkdraw.c: Added a check on the colormap depth to
3817         gdk_drawable_set_colormap()
3818         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
3819         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
3820         for pixmaps without visuals (more specifically, bitmaps)
3821         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
3822         doesn't set a colormap with the wrong depth
3823
3824
3825 2001-07-22  Anders Carlsson  <andersca@gnome.org>
3826
3827         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
3828         expander_height and expander_width properties with a single
3829         property, expander_size.
3830         (gtk_tree_view_init): Set the tab_offset to expander_size
3831         plus some padding.
3832         (gtk_tree_view_unrealize): Remove the expand/collapse
3833         timeout if it exists.
3834         (coords_are_over_arrow): Fix a small bug.
3835         (gtk_tree_view_motion_draw_column_motion_arrow): Use
3836         expander_size.
3837         (gtk_tree_view_draw_focus): Use "treeview" instead of
3838         "add-mode" as detail when drawing the focus.
3839         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
3840         instead of "add-mode" as detail when drawing the focus.
3841         (gtk_tree_view_deleted): If we have a node currently being
3842         expanded or collapsed, remove the timeout and set the node 
3843         to NULL.
3844         (gtk_tree_view_queue_draw_arrow): New function that just
3845         redraws the arrow of a node.
3846         (gtk_tree_view_draw_arrow): Use expander_size instead of
3847         expander_width/expander_height, also pass a different
3848         expander_style to gtk_paint_expander depending on the 
3849         state of the node being drawn.
3850         (expand_collapse_timeout): New function for expanding 
3851         or collapsing a node depending on the previous state.
3852         (gtk_tree_view_real_expand_row): Add timeout and set 
3853         correct state for node being expanded.
3854         (gtk_tree_view_real_collapse_row): Add timeout and set
3855         correct state for node being collapsed.
3856
3857         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
3858         information about the node currently being expanded or
3859         collapsed, and also a timeout id.
3860
3861         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
3862         with expander_style for draw_expander.
3863
3864         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
3865         expander_style.
3866         (create_expander_affine): New function for creating an 
3867         expander affine.
3868         (apply_affine_on_point): New function for applying an 
3869         affine to a point.
3870         (gtk_default_draw_expander): Modified to take expander_style
3871         instead of is_open, and to draw the rectangle rotated differently
3872         depending on the expander style.
3873         (gtk_paint_expander): Replace is_open with expander_style.
3874
3875         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
3876
3877         * gtk/gtkenums.h: Add expander style enum.
3878
3879 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
3880
3881         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
3882         value from gtk_tree_model_get_iter, the model might be empty.
3883
3884 2001-07-20  Hans Breuer  <hans@breuer.org>
3885
3886         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
3887         gdk/gdkinput.c like the other backends
3888
3889         * gdk/win32/gdkinput-win32.h :
3890         * gdk/win32/gdkinput.c :
3891         * gdk/win32/gdkvisual-win32.c :
3892         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
3893         GdkVisual GObjectification. UNTESTED for pen-devices because
3894         I simply have none.
3895
3896         * gdk/gdk.def :
3897         * gtk/gtk.def : updated externals
3898
3899         * gtk/gtkiconfactory.c :
3900         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
3901         before passing &error to functions to avoid strange crashes
3902         
3903         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
3904
3905         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
3906
3907         * gtk/makefile.msc.in : updated
3908
3909 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
3910
3911         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
3912         Add property support. (#51858)
3913
3914 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
3915
3916         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
3917         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
3918         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
3919
3920 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
3921
3922         * gtk/gtkcolorsel.c: Add propery support (roughly
3923         based on patch from Lee Mallabone, #51014)
3924
3925         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
3926         deprecated, since we already g_warning() on it.
3927
3928 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
3929
3930         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
3931         typo that sometimes caused selection not to work properly.
3932
3933         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
3934         entry when tabbing in. (#57743)
3935         
3936         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
3937         user drags up above or down below the entry, move
3938         to the end or the beginning of the entry. (Suggestion
3939         from Jay Cox, #50940)
3940
3941         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
3942         a current selection, then when moving by chars or
3943         words, move to the end of the selection rather than
3944         from entry->current_pos. (Suggestion from Jay Cox,
3945         #50942)
3946         
3947 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
3948
3949         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
3950         set window->decorated. (Patch from Hidetoshi Tajima,
3951         #55846)
3952
3953 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
3954
3955         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
3956         the widget/child realization/mapping invariants.
3957
3958         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
3959         gtk_widget_[get/set]_child_visible() to control
3960         whether visible children of a mapped window are
3961         mapped.
3962
3963         * docs/widget_system.txt: Updated for changes in
3964         container contract, and addition of GTK_CHILD_VISIBLE.
3965
3966         * gtk/gtkcontainer.c: Add generic map()/unmap()
3967         functions that work for almost all containers.
3968
3969         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
3970         gtk_widget_set_child_visible() where necessary.
3971
3972         * gtk/*.c: Remove excess map(), unmap(), and 
3973         realization/mapping invariant enforcing code
3974         from many containers.
3975
3976 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
3977
3978         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
3979         Get the foreground color from 'text', nor 'fg'. (#57568)
3980
3981 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
3982
3983         * gtk/*.c: Patch from Matthias Clasen to remove remove
3984         all instances of g_return_if_fail (foo != NULL); that are
3985         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
3986         since the second check catches the NULL anyways.
3987
3988 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
3989
3990         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
3991         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
3992         GDK_THREADS_ENTER()/LEAVE() pairs.
3993
3994         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
3995         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
3996         pairs. (Problem found by M. Meeks)
3997
3998 2001-07-18  Darin Adler  <darin@bentspoon.com>
3999
4000         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
4001         that we don't get a g_warning message every time we register a new
4002         icon size.
4003
4004         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
4005         using pixel variable of the correct type.
4006         
4007 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
4008
4009         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
4010         so that using X functions on a GdkWindow is possible, if
4011         a little hairy.
4012
4013         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
4014         and ts_origin of a GC, so that external parties can offset/restore
4015         a GC, when using gdk_window_get_internal_paint_info().
4016
4017 2001-07-17  Darin Adler  <darin@bentspoon.com>
4018
4019         * .cvsignore: Ignore the sgml directory made by gtkdoc.
4020         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
4021         instead of the deprecated gtk_window_set_policy.
4022         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
4023         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
4024         function to get rid of warning and some code too.
4025         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
4026         missing const.
4027         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
4028         unused local.
4029         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
4030         const.
4031         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
4032         (gdk_utf8_to_compound_text): Add missing const.
4033         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
4034         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
4035         cast and get rid of an unnecessary one.
4036         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
4037         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
4038         local.
4039         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
4040         Remove unused local.
4041         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
4042         missing const.
4043         * tests/testsocket.c: (add_child): Add cast so the printf format
4044         doesn't make us implicitly depend on what integer type
4045         gtk_socket_get_id returns.
4046         * tests/testtextbuffer.c: Add missing const.
4047         * tests/testtreefocus.c: (main): Remove unused local.
4048         * tests/treestoretest.c: (iter_remove): Remove unused local.
4049         (uppercase_value): Remove unused function.
4050         (make_window): Add statement to quiet the compiler's uninitialized
4051         variable warning.
4052
4053 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
4054
4055         * gtk/gtkrange.c:
4056         (second_timeout): 
4057         (initial_timeout): 
4058         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
4059         (gtk_range_calc_layout): compute the new layout based on an
4060         adjustment->value being passed in as argument.
4061         (gtk_range_button_press): for button2 slider warps, first recalc
4062         the layout, then adjust the value. also, use update_slider_position()
4063         for adjusting the value, so we keep pixel quantisation at which we
4064         usually operate (upon motion or button releases). the reason for this
4065         is that, we can't change the adjustment upon button2 presses to a non
4066         quantised value and upon button2 release re-quantise the value since
4067         that'd alter the value even if we didn't get any motion events (causing
4068         unexpected scroll area warps upon release and/or slider pixel-jitter).
4069         (gtk_range_motion_notify): update the slider position from queried
4070         coordinates, not event coordinates.
4071
4072 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
4073
4074         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
4075         the default gc values are: width=0, CapBut, JoinMiter.
4076
4077 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
4078
4079         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
4080         into account the xpad and ypad when calculating the width and the
4081         height of the pixbuf cel.
4082
4083 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
4084
4085         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
4086         Rename to gtk_radio_menu_item_get_group(), add deprecated
4087         alias. (#57044)
4088
4089         * gtk/gtkfilesel.c: Indentation fix.
4090
4091 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
4092
4093         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
4094         Hasselmann to fix warnings in compat macros. 
4095         (#56773)
4096
4097         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
4098         stupid wrong cast added in last patch.
4099
4100 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
4101
4102         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
4103         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
4104
4105 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
4106
4107         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
4108         missing cast.
4109
4110         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
4111         NULL/FALSE return value confusion.
4112
4113         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
4114         problem when scrollbar completely fills range. (Patch
4115         from  Matthias Clasen, #57047)
4116
4117 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
4118
4119         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
4120         clean up when handling events for move-resize emulation.
4121         (Problem traced down by Matthias Clasen, #57271)
4122
4123 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
4124
4125         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
4126           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
4127           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
4128           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
4129           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
4130           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
4131           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
4132         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
4133
4134 2001-07-09  Peter Williams  <peterw@ximian.com>
4135
4136         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
4137         for when srcdir != builddir
4138
4139 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
4140
4141         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
4142         gtk_tree_model_get_iter_root.
4143
4144         * gtk/gtkliststore.c: Add a bunch of g_return statements.
4145         (gtk_list_store_iter_n_children): Fix up.
4146
4147         * gtk/gtktreestore.c: Add a bunch of g_return statements.
4148
4149 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
4150
4151         * gtk/gtkwidget.c (gtk_widget_class_init):
4152         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
4153         restore some workingness.
4154
4155         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
4156         handle of window type for input-only windows.
4157
4158 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
4159
4160         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
4161         Patch from Gregory Merchan to add 
4162         gtk_button_box_set_secondary(), which separates
4163         the child into a separate group from the normal
4164         buttons. (#56331)
4165
4166         * gtk/gtkdialog.c: Make help buttons secondary by
4167         default.
4168
4169         * gtk/gtkbbox.c: Added a child property "secondary".
4170
4171         * gtk/testgtk.c: Turn on the help button for the 
4172         color selector to check that it properly appears
4173         as secondary.
4174
4175 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
4176  
4177         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
4178         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
4179         Add gdk_set_pointer_hooks() to allow pointer-querying to
4180         be hooked by an event record/playback system like GERD.
4181         (#56914)
4182         
4183 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
4184
4185         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
4186         in the right value of initial_emission to
4187         gtk_widget_set_style_internal (#57091)
4188
4189 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
4190
4191         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
4192         Make compile.
4193
4194         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
4195         with calling gtk_widget_set_style_internal() with
4196         the old style, not the new style. (#56989)
4197
4198 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
4199
4200         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
4201           gtk/gtkwidget.c:
4202         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
4203         not GTK_WIDGET_GET_ANCESTOR ... see 
4204         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
4205         Indicate the best practice in the docs for gtk_widget_get_toplevel().
4206
4207         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
4208         so GtkPlug can give the correct signals when transforming
4209         from a child to a toplevel.
4210         
4211         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
4212         reparentation correctly.
4213
4214         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
4215         Propagate the previous_toplevel argument down properly.
4216
4217         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
4218         of wrong atr list.
4219
4220         * gtk/gtkplug.[ch]: Add an "embedded" signal.
4221
4222         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
4223         signals.
4224
4225         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
4226         functions gtk_plug_get_id(), gtk_socket_get_id(),
4227         to avoid the user having to worry about realization,
4228         and gdkx.h.
4229
4230         * tests/testsocket.c: Extend to try out the new signals
4231         and gtk_plug/socket_get_id().
4232
4233         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
4234         setting of underline attributes.
4235
4236         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
4237         DestroyNotify events from SubstructureNotifyMask
4238
4239         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
4240         Switch GDK_WINDOW_TYPE (window) as needed.
4241
4242         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
4243         allow creation of toplevel windows as children of
4244         foreign windows.
4245
4246         * gtk/gtkplug.c: Remove hacks involving changing private
4247         fields of GdkWindow.
4248
4249         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
4250         exactly the same signals and notification
4251         be emitted for local embedding as for inter-process
4252         embedding.
4253
4254 2001-07-04  James Henstridge  <james@daa.com.au>
4255
4256         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
4257
4258 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
4259
4260         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
4261         XEMBED embedding add a _XEMBED_INFO property to the
4262         client with version number and a "mapped" flags.
4263         Use the mapped flag instead of the racy MapRequestEvent
4264
4265         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
4266         code to reliably set things (when the child is a passive
4267         embedder participating in the XEMBED protocol) intead
4268         of just being a hack for embedding non-participating
4269         programs. Fix various bugs and race conditions.
4270         
4271         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
4272         work by simply making the GtkSocket the gtk parent
4273         of the GtkPlug. Set a flag in this case and make
4274         the GtkPlug work like a normal container by overriding
4275         methods such as check_resize and "chaining past" GtkWindow
4276         to GtkBin.
4277
4278         * gtk/gtkentry.c (gtk_entry_real_activate)
4279           gtk/gtkmain.c (gtk_propagate_event): 
4280         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
4281         
4282         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
4283         gtk_widget_get_ancestor):
4284         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
4285         might not give the expected result and recommend
4286         an alternative.
4287
4288         * tests/testsocket.c tests/testsocket_child.c
4289         tests/testsocket_common.c tests/Makefile.am: Extended
4290         to test different type of adding plugs to sockets
4291         (local,active,passive), and to test mapping/unmapping
4292         the plug.
4293
4294         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
4295         mark the window as destroyed until after we
4296         called _gdk_windowing_window_destroy().
4297         (_gdk_windowing_window_destroy() may use GDK functions
4298         on the window.)
4299
4300         * gdk/x11/gdkinput.c: Remove the check for finalization - 
4301         devices can be finalized under some circumnstances.
4302  
4303         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
4304         small problem with GDK_TYPE_DEVICE.
4305  
4306 2001-07-02  Havoc Pennington  <hp@pobox.com>
4307
4308         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
4309         use constants not atoms.
4310
4311 2001-07-02  James Henstridge  <james@daa.com.au>
4312
4313         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
4314         PANGO_TYPE_TAB_ARRAY.
4315
4316         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
4317         for PANGO_TYPE_TAB_ARRAY.
4318
4319         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4320         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
4321
4322         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
4323         the file.  Remove Pango types from defs -- they are now defined in
4324         libpango.
4325
4326 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
4327
4328         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
4329
4330         * gtk/gtkobject.c (gtk_object_destroy): invoke
4331         g_object_run_dispose().
4332
4333         * gtk/gtkwindow.c: 
4334         * gtk/gtkwidget.c: 
4335         * gtk/gtkobject.c:
4336         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
4337         method.
4338
4339 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
4340
4341         * gtk/gtktypeutils.c (gtk_type_class): Remove
4342         change check for GTK_TYPE_OBJECT derivation to
4343         G_TYPE_OBJECTS - it's Tim-approved to use this 
4344         for arbitary objects.
4345
4346         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
4347         prefix gtk_container_dequeue_resize_handler().
4348
4349         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
4350         to the hierarachy_changed signal, since you otherwise
4351         have to always keep that around.
4352
4353         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
4354         for extra argument to hierarchy_changed.
4355
4356 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
4357
4358         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
4359         for style to mean "revert to default style"
4360
4361         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
4362           gtk_widget_restore_default_style): Make this functions
4363         deprecated aliases for gtk_widget_set_style (widget, NULL).
4364
4365         * gtk/gtkwidget.[ch]: Remove:
4366            gtk_widget_set_default_style ()
4367            gtk_widget_push_style ()
4368            gtk_widget_pop_style ()
4369         These functions interact are overriden by RC files, and
4370         thus virtually useless, and complicated.
4371
4372 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
4373
4374         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
4375         most of the previous global variables in gtkrc.c. This is
4376         in preparation for multi-head, since each screen can
4377         have different GtkSettings and RC information.
4378
4379         * gtk/gtkrc.[ch]: 
4380
4381         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
4382         GtkSettings parameter to GtkRcStyle::parse.
4383
4384         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
4385         Add two new settings gtk-theme-name, gtk-key-theme-name,
4386         for RC files that are loaded by name after reading
4387         the default RC files.
4388         
4389         * gtk/gtkrc.c: Allow priorities for styles, as wll as
4390         bindings.
4391
4392         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
4393         and use it by default for RC files loaded via 
4394         gtk-theme-name, gtk-key-theme-name.
4395
4396         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
4397         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
4398         tests/testgtkrc: Require pathnames to be absolute.
4399
4400         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
4401         the source when parsing, since the operation of looking up a
4402         pixmap from an RC file depends on the parsing context.
4403
4404         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
4405         reset RC styles on all widgets when files are reparsed.
4406
4407         * tests/testgtk.c (create_rc_file) 
4408           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
4409         Simplify, now that gtk_rc_reparse_all() resets styles on
4410         all widgets itself.
4411
4412         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
4413         return value.
4414
4415         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
4416         GtkSettings argument.
4417
4418         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
4419         gtk_settings_get_global().
4420
4421         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
4422         to get the appropriate GtkSettings for a widget. (For now,
4423         just gets the default GtkSetttings.) 
4424
4425         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
4426           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
4427         changes.
4428
4429         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
4430         getting a style for a path without actually having a widget.
4431         (Allows using a style for a subpart of a widget, for
4432         example.)
4433
4434         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
4435         the RC files to be reloaded for just one GtkSettings
4436         (not sure how useful this really is.)
4437
4438         * gtk/gtkrc.h: Deprecate
4439         gtk_rc_add_widget_name/widget_class/class_style
4440
4441 2001-06-30  Alex Larsson  <alexl@redhat.com>
4442
4443         * gdk/linux-fb/gdkinput-none.c:
4444         * gdk/linux-fb/gdkinput.c:
4445         * gdk/linux-fb/gdkinputprivate.h:
4446         Convert GdkDevice to a GObject.
4447
4448         * linux-fb/gdkprivate-fb.h:
4449         * linux-fb/gdkvisual-fb.c:
4450         Convert GdkVisual to a GObject.
4451
4452 2001-06-29  Alex Larsson  <alexl@redhat.com>
4453
4454         * gdk/gdkvisual.h:
4455         * gdk/gdkcolor.c:
4456         * gdk/x11/gdkx.h:
4457         * gdk/x11/gdkvisual-x11.c:
4458         Convert GdkVisual to a GObject.
4459
4460         * gdk/gdkinput.h:
4461         * gdk/gdkevents.c:
4462         * gdk/x11/gdkinputprivate.h:
4463         * gdk/x11/gdkinput-gxi.c:
4464         * gdk/x11/gdkinput-none.c:
4465         * gdk/x11/gdkinput-x11.c:
4466         * gdk/x11/gdkinput-xfree.c:
4467         * gdk/x11/gdkinput.c:
4468         Convert GdkDevice to a GObject.
4469
4470 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
4471
4472         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
4473         to just plain new, fixing the number of columns, and column types
4474         at creation time.
4475
4476         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
4477
4478         * gtk/gtkcellrenderertext.c
4479         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
4480         height to a specific font.
4481
4482         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
4483
4484         * tests/*c: change to work with new store models.
4485
4486 2001-06-29  Havoc Pennington  <hp@redhat.com>
4487
4488        * Throughout: fixes to compile with G_DISABLE_COMPAT
4489         (s/g_signal_connectc/g_signal_connect/,
4490         s/g_signal_newc/g_signal_new/,
4491         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
4492
4493 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
4494
4495         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
4496         add path argument to selection callbacks.
4497
4498 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
4499
4500         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
4501         walk through a model in a depth first manner, with the option to
4502         break out.
4503
4504 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
4505
4506         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
4507         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
4508         column and follow it when draged, rather than a location in the
4509         view. "expander_column" property and drawing functions changed
4510         accordingly.  Fixes bug #55942.
4511
4512         (gtk_tree_view_{set,get}_expander_column): Now works with a
4513         GtkTreeViewColumn* instead of int.
4514
4515 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
4516
4517         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
4518
4519 2001-06-28  Havoc Pennington  <hp@pobox.com>
4520
4521         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
4522         image data to the screen, using a server grab to avoid race
4523         conditions.
4524
4525         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
4526         check for NULL return from gtk_image_new_from_stock(), it never
4527         returns NULL.
4528         (gtk_item_factory_create_item): fix bug where we parsed the stock
4529         ID as an inline pixbuf
4530
4531         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
4532
4533         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
4534         support (should be using binding set here)
4535
4536         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
4537         support (should be using binding set here)
4538
4539         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
4540         support
4541
4542         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
4543
4544         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
4545
4546         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
4547
4548         * gtk/gtkimcontextsimple.c
4549         (gtk_im_context_simple_filter_keypress): keypad
4550
4551         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
4552
4553         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
4554
4555         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
4556
4557         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
4558         should be binding-setted)
4559
4560         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
4561
4562         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
4563
4564         * gtk/gtkcalendar.c: numeric keypad fixes
4565
4566         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
4567         support
4568
4569         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
4570         screwup
4571
4572         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
4573         clip the render area to the drawable's clip region in advance,
4574         so we don't get data from the server that we don't need.
4575
4576         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
4577         check return value of gdk_pixbuf_get_from_drawable(), fall back 
4578         to bilevel alpha if we can't get the pixbuf to composite against.
4579
4580         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
4581
4582         * gdk/gdkimage.c (gdk_image_get_colormap): add
4583         gdk_image_set_colormap, gdk_image_get_colormap
4584
4585         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
4586         take a region of the image, instead of converting the entire
4587         image.
4588
4589         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
4590         keybinding signal. Add default bindings for it. Add default
4591         handler for show_help that shows the tooltip for the widget.
4592
4593         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
4594         "close" keybinding signal, remove key press handler.
4595
4596         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
4597         it's not our usual practice to leave a deprecated function around
4598         with a runtime warning, plus we don't want it to appear in docs,
4599         plus if we make them yellow no one will want to change them
4600         anyhow.
4601
4602 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
4603
4604         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
4605         GTK_WIDGET_REALIZE() for resize queueing.
4606
4607         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
4608         GTK_WIDGET_REALIZE() for post event delivery destruction upon
4609         GDK_DESTROY.
4610         
4611         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
4612         sompensate for former (pre-2.0) connect_after() facility.
4613         (gtk_widget_send_expose): 
4614         (gtk_widget_event): assert the widget is realized, since event delivery
4615         to non-realized widgets is essentially a bug. event handlers should
4616         be able to unconditionally rely on widget->window (unless they
4617         emit events on their own which can trigger widget destruction).
4618         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
4619         logic. event delivery happens as follows:
4620         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
4621         b) if !was_handled in (a) and the widget is still realized, emit event-
4622            specific signal (RUN_LAST handler). returns was_handled.
4623         c) emission of GtkWidget::event-after for notification if the widget is
4624            still realized (regardless of was_handled from previous stages, no
4625            class handler). no return value.
4626         d) was_handled gets passed on to caller, to determine further
4627            propagation. if the widget got unrealized meanwhile, was_handled
4628            is returned as TRUE.
4629
4630         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
4631         gdk_event_get_coords().
4632
4633 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
4634
4635         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
4636         age 0, binary age 0. depend on glib 1.3.7.
4637
4638         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
4639
4640         * gtk/gtkmenubar.c: same here.
4641         
4642         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
4643
4644         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
4645
4646         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
4647         
4648         * gtk/gtkmenubar.c (add_to_window): likewise.
4649         
4650         * gtk/gtktextbtree.c: and here...
4651         
4652         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
4653         
4654         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
4655         
4656         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
4657         
4658         * gtk/gtktreeviewcolumn.c:
4659         (_gtk_tree_view_column_set_tree_view): yet again.
4660
4661         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
4662         signal connections without g_signal_connect_data().
4663         
4664         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
4665         demo of the matter.
4666         
4667         * demos/testpixbuf.c (main): running out of equality phrases for the
4668         ChangeLog, but had to adapt connections here as well.
4669         
4670         * demos/testanimation.c (progressive_timeout): and for the fun of it,
4671         tackled this the same way.
4672         
4673         * tests/testtext.c (create_view): ok, it's becoming a pain at this
4674         point, but had enough enery for one more fix.
4675
4676         * tests/testtreecolumns.c (main): stand up man, do your work!
4677
4678         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
4679         fix, either that's been all of it or CVS gtk is broken yet again.
4680         
4681 2001-06-29  James Henstridge  <james@daa.com.au>
4682
4683         The following changes correspond to bug #56812
4684
4685         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
4686         code for GdkDevice.
4687
4688         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
4689         GdkCursor.
4690
4691 2001-06-19  Havoc Pennington  <hp@pobox.com>
4692
4693         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
4694         for mapping a window without fooling with stacking order, but
4695         updating the "withdrawn" flag
4696
4697         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
4698         filtering as soon as possible, moving move resize and wmspec_check
4699         handling after the event filter.  Make default filter apply to all
4700         events, not just those with no GdkWindow wrapped around the X
4701         window. Fix a FIXME about how the window could be a pixmap using 
4702         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
4703
4704         Also, be robust against events not on a known GdkWindow.
4705
4706         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
4707         gdk_x11_ungrab_server): export reference-counted server grabs, so
4708         other people can grab server over a GDK function that also does
4709         so.
4710
4711 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
4712
4713         * gtk/gtktreeviewcolumn.c
4714         (gtk_tree_view_column_pack_start_cell_renderer): New function to
4715         reflect that you can (hypothetically) pack cell renderers into a
4716         column.
4717         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
4718         (gtk_tree_view_column_cell_is_visible): Move more functionality to
4719         the column.
4720         (gtk_tree_view_column_cell_can_focus): Move more functionality to
4721         the column.
4722
4723         * gtk/gtktreeview.c: Move to use new column-packing code.
4724         (gtk_tree_view_real_expand_row): remove totally braindead code.
4725         (gtk_tree_view_real_collapse_row): ditto.
4726
4727 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
4728
4729         * gtk/gtktreeviewcolumn.c: Fix a typo.
4730         
4731 2001-06-26  Joel Becker  <jlbec@evilplan.org>
4732
4733         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
4734           at the end of the file
4735
4736 2001-06-26  Havoc Pennington  <hp@redhat.com>
4737
4738         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
4739
4740 2001-06-26  Havoc Pennington  <hp@redhat.com>
4741
4742         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
4743         property
4744
4745 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
4746
4747         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
4748         stupid missing statement
4749
4750         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
4751         private function for ATK.  It notifies you of how many _visible_
4752         children are deleted when a node is deleted.  Should be used by
4753         atk only.
4754
4755 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
4756
4757         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
4758         Use new pango_context_get_metrics() to fix problems
4759         with font lists in descriptions. (#56184, reported by
4760         Jonas Borgström)
4761
4762 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
4763
4764         * gtk/gtkiconfactory.c:
4765         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
4766         item factory so inlined pixbufs actually work.
4767
4768 2001-06-25  Havoc Pennington  <hp@redhat.com>
4769
4770         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
4771         s/RESIZEABLE/RESIZABLE/
4772
4773         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
4774
4775 2001-06-25  Alexander Larsson  <alexl@redhat.com>
4776
4777         * configure.in:
4778         Added --enable-fbmanager. This is some experimental code
4779         that lets several GtkFB apps coordinate their access to the
4780         framebuffer.
4781         
4782         * acconfig.h:
4783         Added ENABLE_FB_MANAGER.
4784
4785         * gdk/linux-fb/Makefile.am:
4786         Added gdkfbmanager and gdkfbswitch.
4787
4788         * gdk/linux-fb/gdkkeyboard-fb.c:
4789         * gdk/linux-fb/gdkmouse-fb.c:
4790         * gdk/linux-fb/gdkprivate-fb.h:
4791         Split device init and open so that
4792         they can be opened and closed while switched
4793         away.
4794
4795         * gdk/linux-fb/gdkmain-fb.c:
4796         Add the basic manager communication.
4797
4798         * gdk/linux-fb/gdkrender-fb.c:
4799         Don't update to the shadow fb if we're
4800         blocked by the fb manager.
4801
4802 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
4803
4804         * docs/Changes-2.0.txt: Add note about child property
4805         changes.
4806
4807 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
4808
4809         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
4810         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
4811
4812         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
4813         with un'reffing wrong list reported by Jeff Franks.
4814
4815         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
4816
4817         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
4818         for the default icon. Remove inline XPM.
4819
4820         * gtk/gtkstock.h gtk/gtkiconfactory.c:
4821         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
4822         is used for GTK_STOCK_DND, but it is a bit too small.)
4823
4824         * gtk/stock-icons/stock_dnd_multiple.png
4825         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
4826
4827         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
4828         TRUE when starting a drag. In other cases, we are
4829         just observing. (#52995)
4830
4831         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
4832         function to set the icon for a drag from a GdkPixbuf
4833         or stock ID.
4834
4835         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
4836         Likewise, for drag sources.
4837
4838         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
4839         (Now should be done using the stock system.)
4840
4841 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
4842
4843         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
4844         Removed - didn't work and not particularly useful anyways
4845         if it did. 
4846
4847 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
4848
4849         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
4850         introduced last night that was making things decidedly not work.
4851
4852         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
4853         so that we have getter/setter pairing everywhere it makes
4854         sense. (#55767)
4855
4856         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
4857         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
4858         deprecated compat macro. (#55516)
4859
4860         * gtk/gtklabel.[ch]: Add functions
4861         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
4862         gtk_label_set_label(), which mirror the property API for GtkLabel.
4863         Make gtk_label_get_attributes() only reflect the attributes
4864         set by gtk_label_set_attributes.
4865
4866         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
4867         from gtk_notebook_set_page().
4868
4869 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
4870
4871         * configure.in: Fix tests for XShm.h.
4872
4873         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
4874         gdk_image_new() by use of goto, properly use g_object_unref().
4875
4876 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
4877
4878         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
4879         calls, as GdkImage is an object. these should be g_obejct_unref()
4880         instead but that won't work because of the g_error() statement
4881         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
4882         to spot these places.
4883
4884 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
4885
4886         * modules/input/gtkimcontextxim.c: Fixup some problems with 
4887         text length handling in error cases.
4888
4889         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
4890         a bit to make test actually warn on attempt to allocation
4891         a negative size. (#56101, Matthias Clasen)
4892
4893 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
4894
4895         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
4896         noticed by Brian Cameron.
4897         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
4898         Cameron.
4899
4900 2001-06-22  Hans Breuer  <hans@breuer.org>
4901
4902         * gdk/gdk.def : updated externals
4903
4904         * gdk/win32/gdkdrawable-win32.c : corrected some casts
4905         in GDK_NOTEs
4906
4907         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
4908         to translate coordinates to the internal > 16 bit system
4909         Try to handle WM_WINDOWPOSCHANGED to get better performance for
4910         when moving/resizing
4911
4912         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
4913         and gdk_keymap_get_direction (). The latter is untested for
4914         the RTL case
4915
4916         * gtk/gtk.def : updated externals
4917
4918         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
4919         from pango_language_from_string (), not an already freed pointer
4920
4921         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
4922         binary (-kb) to be useable on windoze
4923  
4924 2001-06-21  Alexander Larsson  <alexl@redhat.com>
4925
4926         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
4927         Update to new PangoLanguage changes.
4928         
4929         * gtk/gtkwindow-decorate.c:
4930         * gtk/gtkwindow.[ch]:
4931         Added setting argument to gtk_window_set_has_frame ()
4932         
4933 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
4934
4935         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
4936         the case without XKB properly.
4937
4938         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
4939         unused gtk_rc_auto_parse variable.
4940
4941         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
4942         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
4943         longer needed with GdkPixbuf.
4944
4945         * gtk/gtkrc.c (_gtk_rc_init): Make private.
4946
4947 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
4948
4949         * gtk/gtkentry.h: Mark deprecated functions with
4950         GTK_DISABLE_DEPRECATED.
4951
4952 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
4953
4954         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
4955
4956         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
4957
4958         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
4959           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
4960           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
4961           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
4962           to recent changes in Pango.
4963
4964         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
4965           to test whether the basic engine honors them.
4966
4967 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
4968
4969         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
4970         gtk_container_child_get_property().
4971
4972 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
4973
4974         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
4975         (gtk_tree_view_move_cursor_page_up_down): implement.
4976
4977 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
4978
4979         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
4980         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
4981         don't use automatic fixed size buffer for printf-ing floats, doubles
4982         can expand to really _huge_ strings, use g_strdup_printf() instead.
4983
4984 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
4985
4986         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
4987         construct property in 1.2 and still needs to be.
4988
4989         * gtk/gtkwidget.c: "composite_child" is not a settable property.
4990
4991 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
4992
4993         * gtk/gtkliststore.c (gtk_list_store_clear): 
4994         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
4995         clear a model.
4996
4997 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
4998
4999         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
5000
5001         * gtk/Makefile.am:
5002         * gtk/gtk.h: disabled GtkPacker compilation.
5003
5004         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
5005
5006         * gtk/gtknotebook.c:
5007         * gtk/gtktable.c:
5008         * gtk/gtkbox.c: ported this over to child properties.
5009
5010         * gtk/gtksettings.c: fetch class properties via
5011         g_object_class_list_properties().
5012
5013         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
5014         child arg interface. use gobjectnotifyqueue.c for child property
5015         notification.
5016
5017         * gtk/gtkwidget.[hc]: provide necessary means for container child
5018         properties, i.e. ::child_notify signal,
5019         gtk_widget_freeze_child_notify(),
5020         gtk_widget_child_notify(),
5021         gtk_widget_thaw_child_notify().
5022
5023         * tests/testgtk.c: removed inferior property handling code, for
5024         property editing, a generic module should be used, and GLE
5025         coincidentally fullfills that purpose.
5026
5027         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
5028         needs to be adapted to g_object_class_list_properties() before this
5029         builds again.
5030
5031 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
5032
5033         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
5034         test if a node is expanded.
5035
5036 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
5037
5038         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
5039         where collapsing a selected row would result in the cursor/anchor
5040         getting screwed up.
5041
5042 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
5043
5044         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
5045         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
5046         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
5047         Now I can really reorder/sort all Store widgets.  treesorttest
5048         seems to just work now.
5049         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
5050         testtreesort worked through a big coincidence all this time.
5051         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
5052         code.
5053         * tests/testtreecolumns.c: Big 'ol warning at the top letting
5054         people know that this code should never ever ever be copied.
5055
5056 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
5057
5058         * gtk/gtkwindow.h: Fixed a small typo, it should be
5059         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
5060         on line 134.
5061
5062 2001-06-14  Havoc Pennington  <hp@redhat.com>
5063
5064         Docs fixups, and:
5065         
5066         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
5067         GTK_DISABLE_DEPRECATED
5068
5069 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
5070
5071         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
5072         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
5073         finish it off tonight, though it basically works now when it's a
5074         list.  Also, I have a sinking feeling neither GtkTreeStore or
5075         GtkListStore actually resort when adding a new item.  I'll look
5076         into it.
5077
5078 2001-06-14  Havoc Pennington  <hp@redhat.com>
5079
5080         * demos/gtk-demo/main.c (load_file): fix bug identified by
5081         warnings I just added to gtktextbuffer
5082
5083 2001-06-14  Havoc Pennington  <hp@redhat.com>
5084
5085         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
5086
5087         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
5088
5089         * gtk/gtktextbtree.c: don't leak node data all over the place.
5090
5091         * demos/gtk-demo/main.c (main): create fontify tags for the right
5092         buffer
5093
5094         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
5095         to mention tags in the same table can't have the same name,
5096         suggested by Skip Montanaro
5097
5098 2001-06-11  Havoc Pennington  <hp@redhat.com>
5099
5100         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
5101         for trying to add two tags with same name to the tag table
5102
5103         * demos/gtk-demo/main.c (main): fix colors ;-)
5104
5105 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
5106
5107         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
5108         that allows grouping together multiple windows so that grabs
5109         within that set of windows only affect those windows.
5110
5111         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
5112         signal for notification when a widget becomes shadowed
5113         by a grab or is no longer shadowed by a grab.
5114
5115         * gtk/gtkwidget.c (gtk_widget_propagate_state)
5116           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
5117         insenstive widgets to maintain a grab.
5118
5119 2001-06-14  Alexander Larsson  <alexl@redhat.com>
5120
5121         * docs/README.linux-fb:
5122         Add some example config files that can be used with the URW fonts.
5123         
5124         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
5125         Set up the color ramps for DirectColor mode.
5126
5127 2001-06-11  Havoc Pennington  <hp@redhat.com>
5128
5129         * Release 1.3.6
5130          
5131 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
5132
5133         * gdk/linux-fb/gdkwindow-fb.c:
5134         Unify shaped window code and make it repaint the area that used
5135         to be part of the shape, but isn't anymore.
5136
5137 2001-06-11  Havoc Pennington  <hp@redhat.com>
5138
5139         * NEWS: Updates
5140
5141         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
5142
5143         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
5144         
5145 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
5146
5147         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
5148         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
5149         passes zero instead, so do we.
5150         
5151 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
5152
5153         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
5154         Deep copy dash_list too.
5155         (_gdk_fb_gc_new): Set default cap_style before
5156         setting values.
5157
5158 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
5159
5160         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
5161         gdk_keymap_get_direction): New functions.
5162
5163 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
5164
5165         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
5166         gtk_tree_model_get_flags by adding a second flag for atk.
5167
5168         * gtk/gtktreemodel.c: make cursor behavior interact better with
5169         mouse presses.
5170
5171 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
5172
5173         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
5174         expand_row/collapse_row to be 2 signals each -- test_expand_row
5175         and row_expanded as well as test_collapse_row and row_collapsed.
5176
5177 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
5178
5179         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
5180         signal name to be changed instead of selection_changed.
5181
5182 2001-06-08  Havoc Pennington  <hp@redhat.com>
5183
5184         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
5185         "scroll_offset" property for notification when the layout offsets
5186         may have changed
5187         (gtk_entry_adjust_scroll): add notify for scroll_offset
5188         (gtk_entry_layout_index_to_text_index): function to compensate for
5189         preedit string when doing coordinate stuff on the entry's layout
5190         (gtk_entry_text_index_to_layout_index): inverse function
5191         (gtk_entry_get_layout_offsets): hook to get current position of
5192         the layout      
5193         (gtk_entry_get_layout): hook to get the layout itself.
5194
5195         * gtk/gtklabel.c (gtk_label_get_layout): new function
5196
5197 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
5198
5199         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
5200         keybinding.
5201         (gtk_tree_view_focus): Fix merge conflict.
5202
5203 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
5204
5205         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
5206         clean up cursor handling.
5207
5208 2001-06-08  Havoc Pennington  <hp@redhat.com>
5209
5210         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
5211         function
5212
5213         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
5214         this function
5215
5216 2001-06-08  Alex Larsson  <alexl@redhat.com>
5217
5218         * gtk/gtkcompat.h.in:
5219         Added compat macros for all old GTK_TYPE_GDK_xxx types.
5220         Fixes bug #52892
5221
5222 2001-06-08  Havoc Pennington  <hp@redhat.com>
5223         
5224         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
5225         parent still
5226
5227 2001-06-08  Havoc Pennington  <hp@redhat.com>
5228
5229         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
5230         don't call g_list funcs on GSList
5231
5232         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
5233         gtk_container_focus(), since some widgets have focusable locations
5234         which are not other widgets. These widgets should not have to be 
5235         containers just to manage the focus. For example, GtkHSV is
5236         currently a container for no good reason. Also, this cleans
5237         up the "if (is_container && is_sensitive && is_drawable)
5238         container_focus ()" mess in widget implementations.
5239
5240         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
5241         function, and have it just call gtk_widget_child_focus().
5242
5243         * gtk/gtkhsv.c: derive from widget not container
5244         
5245         Throughout: fix to reflect GtkContainer::focus change
5246         
5247 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
5248
5249         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
5250         range.  Fix bug #55921
5251
5252         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
5253         (#55920).
5254
5255 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
5256
5257         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
5258         and gdk_keymap_get_current_direction().
5259
5260         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
5261           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
5262         the current locked group, use it to set the keymap
5263         direction.
5264
5265         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
5266         to determine whether we draw a split cursor or use
5267         a jumping cursor based on the current direction.
5268
5269         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
5270         Obey the split cursor setting. 
5271
5272 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
5273
5274         * gtk/gtkimmulticontext.c (activate_cb): Only activate
5275         when toggling on, not when toggling off... (#55906)
5276
5277 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
5278
5279         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
5280         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
5281         in docs. (#55812, Vitaly Tishkov)
5282
5283 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
5284
5285         * demos/gtk-demo/main.c (create_tree): Changed signal name from
5286         selection_changed to changed in signal connection to GtkTreeSelection,
5287         also used g_signal_connectc since GtkTreeSelection is now a GObject.
5288
5289 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
5290
5291         * gtk/gtktreeselection.c: Now it's a GObject instead of a
5292         GtkObject.  The GtkTreeSelection::selection_changed signal is now
5293         the GtkTreeSelection::changed signal.
5294
5295         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
5296         object.
5297
5298         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
5299         object.
5300
5301 2001-06-07  Havoc Pennington  <hp@redhat.com>
5302
5303         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
5304
5305 2001-06-07  Havoc Pennington  <hp@redhat.com>
5306         
5307         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
5308         (not tested yet because with absolute path to srcdir I can't build
5309         atk, but it was broken anyway so this may help) 
5310
5311 2001-06-07  Havoc Pennington  <hp@redhat.com>
5312
5313         * configure.in: output m4macros/Makefile
5314         
5315 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
5316
5317         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
5318         buttons.  Fixes #55460 reported by matthiasc@poet.de.
5319
5320 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
5321
5322         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
5323         expansion/collapsing so it only happens in one place.
5324         (gtk_tree_view_real_expand_row): ditto.
5325
5326 2001-06-07  Havoc Pennington  <hp@redhat.com>
5327
5328         * tests/Makefile.am: add missing -I flag
5329
5330         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
5331
5332         * configure.in: use pkg-config to see if GModule is
5333         supported; fix to properly turn on included loaders 
5334         when GModule isn't supported; don't use AC_CHECK_LIB 
5335         when libs are not installed yet
5336
5337         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
5338
5339         * Makefile.am (SUBDIRS): add m4macros subdir
5340
5341         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
5342         dependencies also.
5343
5344 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
5345
5346         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
5347         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
5348
5349 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
5350
5351         * gtk/gtktreeview.c
5352         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
5353         bindings to expand and collapse rows.
5354         (gtk_tree_view_real_select_cursor_parent): New key binding.
5355         (gtk_tree_view_real_toggle_cursor_row): New key binding.
5356
5357         * gtk/gtkmarshal.list: new
5358         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
5359
5360 2001-06-06  Havoc Pennington  <hp@redhat.com>
5361
5362         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
5363
5364         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
5365         Down to move visually rather than logically, since it confuses 
5366         people. Add -/+ and Ctrl--/+ bindings for logical movement.
5367
5368 2001-06-06  Alex Larsson  <alexl@redhat.com>
5369
5370         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
5371         Fix up error messages.
5372
5373 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
5374
5375         * gtk/gtktooltips.h: Include gtkwidget.h 
5376         (#55798, Karl Nelson)
5377
5378         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
5379         a valid latin-1 character. (Marc Lehmann, #35467)
5380
5381         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
5382         (Marc Lehmann, #35467)
5383         
5384 2001-06-05  Alex Larsson  <alexl@redhat.com>
5385
5386         * demos/gtk-demo/appwindow.c (do_appwindow):
5387         Don't swap the order of the args to gtk_widget_destroyed.
5388
5389         * tests/testgtk.c (destroy_properties):
5390         Don't crash when the properties window is destroyed.
5391
5392         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
5393         Use with_mnemonics to handle the case of stock items with
5394         underscores in them.
5395
5396 2001-06-05  Havoc Pennington  <hp@redhat.com>
5397
5398         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
5399         gtk_text_iter_reorder
5400
5401 2001-06-05  Havoc Pennington  <hp@redhat.com>
5402
5403         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
5404
5405 2001-06-05  Havoc Pennington  <hp@redhat.com>
5406
5407         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
5408         to the range that was set
5409
5410         * gtk/gtkrange.c: add value_changed signal, primarily 
5411         intended for use with GtkScale
5412         (gtk_range_set_increments): new function
5413         (gtk_range_set_range): new function with weird name
5414         (gtk_range_set_value): new function
5415         (gtk_range_get_value): new function
5416
5417         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
5418         from gtk_spin_button_get_value_as_float(). Compat #define
5419         added for get_value_as_float.
5420
5421         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
5422
5423         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
5424
5425 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
5426
5427         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
5428
5429 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
5430
5431         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
5432
5433         * tests/testgtk.c (create_tooltips): Remove usage of
5434         gtk_widget_set().
5435
5436 2001-06-05  Havoc Pennington  <hp@redhat.com>
5437
5438         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
5439
5440         Applying patch from Jeff Franks, with function docs added.
5441         
5442         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
5443         remove call to set_mnemonic_widget, change docs a bit.  
5444
5445         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
5446         new function
5447
5448         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
5449         new function
5450
5451         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
5452
5453         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
5454         function
5455         (gtk_radio_button_new_with_mnemonic_from_widget): new function
5456
5457         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
5458         new function
5459
5460         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
5461         function        
5462
5463         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
5464         auto-selection of mnemonic widget.
5465
5466 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
5467
5468         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
5469         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
5470         (gtk_tree_view_column_set_min_width): ditto.
5471
5472 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
5473
5474         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
5475         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
5476
5477 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
5478
5479         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
5480         gtk_clist_thaw().
5481
5482 2001-06-04  Havoc Pennington  <hp@pobox.com>
5483
5484         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
5485 r       eleases for buttons 6, 7
5486
5487 2001-06-04  Havoc Pennington  <hp@redhat.com>
5488
5489         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
5490         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
5491         #55562
5492
5493 2001-06-04  Havoc Pennington  <hp@redhat.com>
5494
5495         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
5496         where text_view->layout == NULL by assuming its size is 0, 
5497         i.e. same as if we haven't done any reflow. Reported by 
5498         Hidetoshi Tajima #55448 
5499
5500 2001-06-04  Havoc Pennington  <hp@redhat.com>
5501
5502         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
5503         and 7 for scroll left/right, from Thomas Broyer
5504
5505 2001-05-10  Havoc Pennington  <hp@redhat.com>
5506
5507         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
5508         we need to parse the xsetting as if it were an RC file string.
5509
5510         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
5511         value of palette from settings, not from static variable
5512
5513         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
5514         xsettings translation table
5515
5516         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
5517         hardcoding the toolbar style conflicts with new customizable 
5518         toolbar style philosophy
5519         (gtk_toolbar_class_init): add settings for default toolbar style;
5520         these are used unless the app specifically forces a toolbar style
5521
5522         * gtk/gtksettings.c (settings_install_property_parser): only
5523         return at the start if we warn and parser == NULL
5524
5525         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
5526         palette changed handler so we don't notify dead color selections
5527
5528         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
5529         xthickness/ythickness of 0 or 1 properly 
5530         (gtk_default_draw_resize_grip): clear the background behind the
5531         resize grips, and align to bottom right if we square the 
5532         area to be drawn.
5533
5534         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
5535         statusbar label to 1, so it doesn't make toplevels resize oddly
5536         (gtk_statusbar_size_request): add grip size to request
5537         (gtk_statusbar_size_allocate): hack so the hbox still works with 
5538         the grip size in the request
5539
5540         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
5541         bug where showing all on a toplevel makes the toolbar 
5542         button text appear despite the toolbar mode
5543
5544         * gtk/gtkmenubar.c: add internal padding style property
5545
5546         * gtk/gtktoolbar.c: Add internal padding style property; add
5547         shadow type style property
5548
5549         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
5550         state; and put Container::border_width outside the frame
5551
5552         * gtk/gtktextview.c: don't draw focus rectangle if we're in
5553         interior focus mode, we just use blinking cursor
5554
5555 2001-06-04  Havoc Pennington  <hp@redhat.com>
5556
5557         * configure.in: Make gdk-pixbuf have same version number as GTK
5558
5559 2001-06-04  Havoc Pennington  <hp@redhat.com>
5560
5561         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
5562         digits greater than 6. If there actually are limits (which there
5563         likely aren't), should clamp to them not warn.
5564         (gtk_spin_button_new_with_range): don't take log of 0
5565         (gtk_spin_button_size_request): use digits to compute size
5566         request, rather than step increment.
5567
5568         * tests/testgtk.c (create_spins): test larger values of digits
5569         
5570         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
5571         font on map not expose, so we don't get weirdness during scrolling
5572
5573 2001-06-04  Havoc Pennington  <hp@redhat.com>
5574
5575         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
5576         Sam Solon, bug #54577, update value even if not drawable.
5577
5578 2001-06-04  Havoc Pennington  <hp@redhat.com>
5579
5580         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
5581         SCROLL_LEFT, reported by Thomas Broyer.
5582
5583 2001-06-04  Havoc Pennington  <hp@redhat.com>
5584
5585         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
5586         Process updates immediately, to prevent funny lag effect
5587         when scrolling, at some mild potential efficiency cost.
5588
5589 2001-06-04  Havoc Pennington  <hp@redhat.com>
5590
5591         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
5592         slider on the click.
5593
5594 2001-06-03  Havoc Pennington  <hp@pobox.com>
5595
5596         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
5597         hscale/vscale details, so we can use it for scrollbar as well.
5598
5599         * tests/testgtk.c (reformat_value): honor digits from GtkScale
5600
5601         * gtk/gtkenums.h (GtkTroughType): Remove this enum
5602         (GtkScrollType): add START and END from GtkTroughType
5603
5604         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
5605         its x/y arguments
5606
5607         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
5608         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
5609         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
5610         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
5611         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
5612
5613         Notable changes in the process:
5614          
5615         - stepper_size style property is the height for vertical 
5616           ranges, width for horizontal; the other dimension matches
5617           the trough size
5618         - add ability to do NeXT-style steppers (and several other styles
5619           that don't make any sense)
5620         - added min_slider_length, fixed_slider_length properties to
5621           GtkScrollbar
5622         - cleaned some private (or at least useless) functions out of
5623           gtkscale.h    
5624         - moved bindings to GtkScale from subclasses, even arrow keys,
5625           since blind users don't know scale orientation.
5626         - change move_slider action signal to use new GtkScrollType,
5627           remove GtkTroughType argument
5628         - digits rounds the values a range will input to the given 
5629           number of decimals, but will not try to force adjustment 
5630           values set by other controllers. That is, we no longer
5631           modify adjustment->value inside a value_changed handler.
5632         - added getters for GtkScale setters
5633         - middle-click begins a slider drag
5634         
5635 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
5636
5637         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
5638         getting the focus code to work.
5639         (gtk_tree_view_class_init): Add a bunch of keybindings.
5640
5641         * gtk/gtktreeviewcolumn.c
5642         (gtk_tree_view_column_set_cell_data_func):
5643         s/GtkCellDataFunc/GtkTreeCellDataFunc.
5644         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
5645         of "properties_changed" to help justify the death of the latter
5646         signal. (-:
5647
5648         * tests/testtreefocus.c (main): Let some columns be focussable to
5649         test focus better.
5650
5651 2001-06-01  Havoc Pennington  <hp@redhat.com>
5652
5653         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
5654         
5655         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
5656         overwrite in overwrite mode if we already deleted the selection
5657         and replaced it with new text.  
5658
5659         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
5660         selection to an empty range, clear the clipboard if we owned it.
5661         (gtk_label_set_selectable): give up selection if we become
5662         unselectable.
5663         (gtk_label_state_changed): override state changed to unselect text
5664         when insensitive
5665         (get_text_callback): add paranoia check that indexes aren't
5666         outside of label->text
5667         (gtk_label_select_region): make -1 for start_offset mean "end of
5668         label," for consistency with GtkEditable
5669
5670         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
5671         GTK_DIALOG_NO_SEPARATOR flag
5672
5673 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
5674
5675         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
5676         notifications on non-existant "enable_arrow_keys".
5677         (#53753, Skip Montanaro)
5678
5679 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
5680
5681         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
5682         GDK_TYPE_RECTANGLE.
5683
5684         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
5685         of allocation argument be GDK_TYPE_RECTANGLE.
5686
5687 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
5688
5689         * gtk/gtkoptionmenu.c: Account for the fact that the border
5690         width is _outside_ the window. (Fixes #54585, bug found
5691         by Bastien Nocera.)
5692
5693 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
5694
5695         * gtk/gtksettings.c (gtk_settings_get_property): Validate
5696         value from GDK settings against parameter spec.
5697
5698         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
5699         to temporary values and use g_value_transform(), since
5700         thinking that GValue was going to be easy or efficient
5701         to use was, of course, a mistake.
5702
5703         * gtk/gtksettings.c: Add cursor blink setting.
5704         
5705         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
5706
5707         * gtk/gtkentry.c: Add cursor blinking.
5708
5709         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
5710         cursor blink global settings.
5711
5712         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
5713         for :text_position in places where it is missing.
5714
5715 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
5716
5717         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
5718
5719 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
5720
5721         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
5722         not pkg-config. (#51032)
5723
5724         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
5725         (fixes #51952, James Henstridge)
5726         
5727 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
5728
5729         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
5730         Rename to the more correct gtk-go-up.
5731
5732         * gtk/stock-icons/stock_menu_sort_ascending.png:
5733         Added new file.
5734         
5735         * gtk/stock-icons/stock_menu_sort_descending.png:
5736         Changed to show descending instead of ascending.
5737
5738         * gtk/gtkiconfactory.c:
5739         Added menu size icon to sort ascending.
5740
5741         * gtk/stock-icons/Makefile.am:
5742         Added stock_menu_sort_ascending.png.
5743         
5744         * gtk/gtkseparatormenuitem.c:
5745         Use correct typenames.
5746
5747 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
5748
5749         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
5750         gulong as in GSignal.
5751
5752 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
5753
5754         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
5755         instances of GtkCellRenderer in code (all but dnd icon code).
5756         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
5757         there, and I can do multiple Cells per column.
5758
5759         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
5760
5761         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
5762         when model was unreffed prior to removing the row reference.
5763
5764 2001-05-25  Havoc Pennington  <hp@redhat.com>
5765
5766         * gtk/gtkiconfactory.c: fix so that default icons are created if 
5767         you call gtk_stock_list_ids()
5768
5769         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
5770         in list
5771
5772 2001-05-25  Havoc Pennington  <hp@redhat.com>
5773
5774         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
5775         set can render without falling back to missing image icon
5776
5777         * gtk/gtktextview.c (gtk_text_view_size_request): request full
5778         size of text, instead of random values
5779
5780         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
5781         size of tree view, instead of random values
5782
5783         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
5784         image in an appropriate size
5785
5786         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
5787         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
5788
5789         Throughout: fix GTK_STOCK_BUTTON_ instances
5790         
5791         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
5792         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
5793         Add a bunch of new stock items/icons
5794
5795         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
5796         new function, convenience for inserting columns with a data func
5797
5798         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
5799         (_gtk_icon_factory_list_ids): use list of all factories to
5800         generate a list of all known IDs
5801
5802         * gtk/gtkstock.c (gtk_stock_list_ids): replace
5803         gtk_stock_list_items() with a function that returns all IDs known
5804         including those for GtkIconFactory.
5805
5806 2001-05-25  Hans Breuer  <hans@breuer.org>
5807
5808         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
5809         work -> check boxes and radio buttons are drawn now, even on win9x.
5810         Improved line settings a bit, still no clue how to get really dotted
5811         lines on win9x, on NT it's PS_ALTERNATE.
5812
5813         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
5814         GDK_HINT_MIN_SIZE as well
5815
5816         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
5817
5818         * gtk/gtk.def : updated
5819
5820         * gtk/gtktreeprivate.h : change column_drop_func to be a function
5821         pointer not a function pointer pointer
5822
5823         * tests/testdnd.c : include <stdlib.h> for putenv prototype
5824
5825         * tests/testsocket.c : made it compile on win32 again
5826
5827         * tests/makefile.msc : one more test-app uses prop-editor.obj
5828
5829 2001-05-22  Havoc Pennington  <hp@pobox.com>
5830
5831         * gtk/gtkbin.c (gtk_bin_get_child): New function
5832
5833 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
5834
5835         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
5836         to ignore when doing compose processing.
5837
5838 2001-05-22  Joe Shaw  <joe@ximian.com>
5839
5840         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
5841         Simplify as suggested by Havoc. Just get the last iter and work
5842         backward to the tag instead of getting a line and working back from
5843         there. Fixes passing in an invalid offset to
5844         iter_init_from_byte_offset().
5845
5846 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
5847
5848         * gtk/gtktreeview*.h: 
5849         * gtk/gtkcell*.h:
5850         * gtk/gtk*store.h:
5851         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
5852         macros to all objects.
5853
5854 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
5855
5856         * gtk/gtkcellrenderertext.c
5857         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
5858         with very large (TM) amounts of text.  May be moved to
5859         GtkCellRenderer in the future, though I'm not sure it wants to be
5860         this accessible.
5861
5862         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
5863         More sanity brought to this class.  I like it.
5864
5865         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
5866         case.  Kids, don't try this at home.
5867
5868         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
5869         convenience function.
5870
5871         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
5872
5873 2001-05-21  Alexander Larsson  <alexl@redhat.com>
5874
5875         * gtk/gtkfontsel.c:
5876         Added properties. Based on patch by Lee Mallabone.
5877
5878         * gtk/gtkruler.c:
5879         * gtk/gtkhruler.c:
5880         * gtk/gtkvruler.c:
5881         * gtk/gtktext.c:
5882         * gtk/gtktextview.c:
5883         Converted GtkArg to GParam. Based on patches by John Margaglione.
5884
5885         * tests/Makefile.am:
5886         * tests/testtext.c:
5887         Add a property editor to testtext.
5888         
5889 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
5890
5891         * gtk/gtk{h,v,}paned.c: Only show the separator if 
5892
5893         * configure.in: Fixed reversed conditional causing all image
5894         libraries to be linked in.
5895
5896 2001-05-21  Joe Shaw  <joe@ximian.com>
5897
5898         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
5899         that top_y needs to be >= 0.
5900
5901 2001-05-11  Havoc Pennington  <hp@pobox.com>
5902         
5903         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
5904         losing connection to the X server.
5905
5906 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
5907
5908         * configure.in: Start checks for X from pangox/pangoxft
5909         CFLAGS to avoid duplicate libraries.
5910
5911         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
5912
5913         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
5914         to include gobject.
5915         
5916 2001-05-18  Alexander Larsson  <alexl@redhat.com>
5917
5918         * gtk/gtkspinbutton.c:
5919         Convert GtkArgs to GParams. Based on patch by John Margaglione.
5920         Also do size request reasonable for MAXDOUBLE. Previously it printed
5921         the limits to a buffer and overran it. Instead do it using log10() and
5922         limit the width to 10 digits.
5923         
5924         * gtk/gtkwidget.c (gtk_widget_get_property):
5925         Correctly handle setting the parent property to NULL.
5926
5927 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
5928
5929         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
5930         style attributes even if the widget isn't realized.
5931
5932         * demos/gtk-demo/main.c: Use a slightly smaller font.
5933
5934 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
5935
5936         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
5937         This is something that only a widget writer would ever want
5938         to change.
5939
5940         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
5941         gtk_signal_emit_by_name().
5942
5943         * gtk/gtkviewport.c: Fix some warnings.
5944
5945         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
5946         allowing the requisitions of multiple widgets to be grouped
5947         together.
5948
5949         * tests/testgtk.c: Add GtkSizeGroup test
5950
5951         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
5952
5953         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
5954         warnings.
5955
5956         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
5957
5958 2001-04-28  Martin Baulig  <baulig@suse.de>
5959
5960         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
5961         to gtk_image_menu_item_set_icon() and made it work if there's already
5962         an image.
5963         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
5964         (gtk_image_menu_item_new_with_label): New function.
5965
5966 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
5967
5968         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
5969         highlighting code!!!!  The result is okay so long as you don't try
5970         to stress it.  It also highlights a bug in the TextView so it's in
5971         an unproportional font right now until it's fixed.
5972
5973         *demos/gtk-demo/*.c: Clean up code a bit to make it
5974         ugly-parser(TM) friendly. (-:
5975
5976 2001-05-17  Joe Shaw  <joe@ximian.com>
5977
5978         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
5979         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
5980         if it is only partially onscreen.
5981
5982 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
5983
5984         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
5985         not by characters.
5986
5987         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
5988         are not zero or one; that is, when graphemes of multiple characters
5989         are involved.
5990
5991         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
5992         FIXME.
5993
5994 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
5995         
5996         * gtk/gtkbbox.c:
5997         Add properties, based on patch by Lee Mallabone.
5998
5999         * gtk/gtknotebook.c:
6000         * gtk/gtktoolbar.c:
6001         Convert from GtkArg to GParam, based on patch by John Margaglione.
6002         
6003         * gtk/gtkhscale.c:
6004         * gtk/gtkvscale.c:
6005         * gtk/gtkhscrollbar.c:
6006         * gtk/gtkvscrollbar.c:
6007         * gtk/gtkrange.c:
6008         Move adjustment property to GtkRange.
6009
6010         * gtk/gtklabel.c:
6011         Setup mnemonics on property changes
6012
6013         * gtk/gtkwidget.c (gtk_widget_get_property):
6014         GdkExtensionMode is an enum, not a flag. Set it with
6015         g_value_set_enum ().
6016
6017         * tests/prop-editor.c:
6018         Better propery editor.
6019
6020         * tests/testgtk.c:
6021         Add new property test. Pass zero to the property editor to
6022         get properties from all derived types.
6023         
6024 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
6025
6026         * autogen.sh (have_automake): Require libtool-1.4,
6027         automake-1.4p1.
6028
6029         * acinclude.m4: Remove libtool macros.
6030
6031         * gdk-pixbuf/Makefile.am: Add dependencies to loade
6032         modules.
6033
6034         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
6035         for libgdk.
6036
6037         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
6038         libgdk.la for libgtk.
6039
6040         * modules/input/Makefile.am: Make modules have full
6041         dependencies.
6042
6043 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
6044
6045         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
6046         #54699 where paths weren't being checked for correctness.
6047
6048 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
6049
6050         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
6051         in any order you wan, whether or not the column is added to the
6052         tree, or the tree is realized.  Yay!
6053
6054         * gtk/gtktreeviewcolumn.c
6055         (gtk_tree_view_column_setup_sort_column_id_callback): handle
6056         sorting columns a lot saner
6057
6058         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
6059         new function to actually set wether or not a column is
6060         reorderable.
6061
6062         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
6063         if we have 'em.
6064
6065         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
6066         Fix nasty bug where we were showing the button just before
6067         realizing it.  As a result, the parent window was
6068         tree_view->window instead of tree_view->priv->header_window.
6069
6070         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
6071         to let you easily reorder a list or tree.
6072
6073 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
6074
6075         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
6076         from args to properties.
6077
6078 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
6079
6080         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
6081         from args to properties. (#51957)
6082
6083         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
6084         calls to after ->set_property call.
6085
6086 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
6087
6088         * tests/prop-editor.c: Block against redundant changes.
6089
6090         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
6091         properties.
6092
6093 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
6094
6095         * gdk/gdkpixmap.h: Remove creative formatting.
6096
6097 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
6098
6099         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
6100         property API. (#51669)
6101
6102         * gtk/gtkscale.c: Patch from John Margaglione converting to
6103         property API. (#51891)
6104
6105         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
6106         to property API. (#50985)
6107
6108 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
6109
6110         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
6111         buffering state across expose event, so we still call end_paint().
6112
6113 2001-05-11  Alexander Larsson  <alexl@redhat.com>
6114
6115         * gtk/gtkhsv.c (paint_triangle):
6116         Expose the ring in the triangle at the correct place when
6117         exposing just a part of the triangle.
6118
6119         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
6120         Return FALSE, or window focusing will not work.
6121
6122 2001-05-11  Havoc Pennington  <hp@pobox.com>
6123
6124         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
6125         #54144
6126
6127         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
6128         bug #54330
6129
6130 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
6131
6132         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
6133         propagate exposes to NULL child.
6134
6135         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
6136         against not having one of the scrollbars.
6137
6138         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
6139         we don't keep a mnemonic window if we have no mnemonic installed.
6140
6141 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
6142
6143         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
6144         it has the _important_ side effect of initializing a class.
6145
6146 2001-05-10  Alexander Larsson  <alexl@redhat.com>
6147
6148         * gdk/linux-fb/gdkprivate-fb.h:
6149         Make sure you can compile out the implementation/wrapper assert
6150         macros.
6151
6152         * gdk/linux-fb/gdkdrawable-fb2.c:
6153         Check implementation/wrappers, initialize type for pixmap dummys.
6154
6155         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6156         Hide the cursor if reading from the screen.
6157
6158         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
6159         Fix sign bug in tiling code.
6160
6161         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
6162         Handle background pixmaps.
6163
6164 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
6165
6166         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
6167         function to let user control where columns are dragged.
6168
6169         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
6170         Escape is pressed.
6171
6172 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
6173
6174         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
6175         "columns_changed" signal.
6176         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
6177         motion code to draw arrows to the side if indicator is outside the
6178         widget.
6179         (gtk_tree_view_map_expanded_rows): Implement.
6180
6181 2001-05-07  Alexander Larsson  <alexl@redhat.com>
6182
6183         * demos/testpixbuf-save.c: 
6184         * demos/testpixbuf-drawable.c:
6185         Include gdkfb.h on linux-fb.
6186
6187 2001-05-07  Alexander Larsson  <alexl@redhat.com>
6188
6189         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
6190         New function for getting toplevel window at position.
6191         (gdk_drag_find_window): Use get_toplevel_window () instead
6192         of gdk_window_get_pointer(). (gdk_drag_status): Use
6193         correct context for getting window.
6194
6195         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
6196         g_strdup the atom name.
6197
6198         * gdk/linux-fb/gdkwindow-fb.c:
6199         Costmetic fix.
6200
6201         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
6202         Add code for changing cursor on linux-fb backend (same as
6203         win32).
6204
6205 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
6206
6207         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
6208         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
6209         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
6210         report was not for the development branch of GTK+, but it applies
6211         anyways).
6212
6213 2001-05-04  Havoc Pennington  <hp@redhat.com>
6214
6215         * configure.in: fix some shell typos
6216
6217         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
6218
6219         * gtk/gtkimage.c: handle animations
6220
6221         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
6222         border_width * 2, not just border_width
6223
6224         * gtk/gtkscale.c: add "format_value" signal to allow people
6225         to override the way values are drawn.
6226         (gtk_scale_get_value_size): fix width/height mistake,
6227         and compute size from actual displayed text, not 
6228         from made-up text.
6229
6230         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
6231         signal registration
6232
6233         * tests/testtext.c: Add "Remove all tags" menu item for testing
6234
6235         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
6236
6237         * demos/gtk-demo/main.c (main): add hack so we can find modules
6238         without installing gtk
6239
6240         * demos/gtk-demo/textview.c (insert_text): demo font scaling
6241
6242         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
6243         factor)
6244         (gtk_cell_renderer_text_set_property): remove some bogus
6245         g_object_notify
6246
6247         * gtk/gtktexttag.c: add "scale" property which is a font scaling
6248         factor
6249
6250         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
6251         to layout
6252
6253         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
6254         gtk_text_iter_is_first
6255
6256 2001-01-06  Hans Breuer  <hans@breuer.org>
6257
6258         * gdk/gdk.def : updated exports
6259
6260         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
6261         gdk won't compile anymore
6262  
6263         * gdk/win32/gdkevents-win32.c : initialize ret_val when
6264         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
6265         Improved gdk_flush () to not only do pending drawing operations
6266         but also process all currently pending events. This should make
6267         the behaviour more similar to the X11 version.  
6268
6269         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
6270         option needs to be set even if there is no GDK_GC_BACKGROUND.
6271         (gdk_win32_hdc_get) : use predraw_set_background () independent
6272         of value_mask. This allows to draw dashed lines leaving the original
6273         background intact.
6274
6275         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
6276         after processing, because we can't reuse it as the X11 version does.
6277
6278         * gtk/gtk.def : updated exports
6279
6280         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
6281         would like to get rid of this file again, and use straight
6282         makefile.msc again, as the other Gtk+ subdirs do)
6283
6284         * test/makefile.msc (new file) : build the test apps here
6285
6286 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
6287
6288         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
6289         strike-through setting
6290         (gdk_draw_layout_line_with_colors): Render strike-through
6291
6292 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
6293
6294         * Release 1.3.5
6295
6296         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
6297
6298         * NEWS: Updated
6299
6300         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
6301         Makefile breakage.
6302
6303 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
6304
6305         * demos/gtk-demo/images.c (progressive_timeout): Fix
6306         typo in filename.
6307
6308         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
6309         out FIXME warning; just too annoying.
6310
6311 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
6312
6313         * gdk/linux-fb/gdkcolor-fb.c:
6314         Better error messages.
6315
6316         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
6317         Initialize abs_x and abs_y.
6318         
6319         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
6320         Correct handling of stipple offset.
6321
6322         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
6323         Treat directcolor framebuffers as truecolor.
6324         
6325 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
6326
6327         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
6328         dependency on Atk for accessibility support.
6329
6330         * configure.in **/Makefile.am: Major reworking of substituted
6331         variables for CFLAGS/LIBS to make a lot more sane and 
6332         keep the the compile/link lines a bit shorter.
6333
6334         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
6335
6336 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
6337
6338         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
6339         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
6340         use _gtk_boolean_handled_accumulator.
6341
6342 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
6343
6344         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
6345         to fix things so clicking inside selection leaves cursor
6346         at point where clicked. (#50324)
6347
6348         * gtk/gtksettings.c (gtk_settings_class_init): Restore
6349         sane value for default double click time.
6350
6351         * tests/testtext.c (test_init): Really path to input modules.
6352
6353 2001-05-03  Sven Neumann  <sven@convergence.de>
6354
6355         * demos/testpixbuf-save.c: include target-specific headers as
6356         done in testpixbuf-drawable.c
6357
6358 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
6359
6360         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
6361         new_text_length appropriately when we run into the 
6362         size limit for the entry. (#53445, reported by Jeff Franks)
6363
6364         * tests/testgtk.c (create_entry): Remove most of the
6365         property toggle buttons. Replace with a "Props" button
6366         that brings up a property editor.
6367
6368         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
6369         Split the property editor code out for reuse, improve.
6370
6371 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
6372
6373         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
6374         trap errors around calls to XSetInputFocus since we have
6375         no way of knowing reliably whether we are viewable or
6376         not. (#53947)
6377
6378 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
6379
6380         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
6381         fix bug in dropping columns.  Moving columns now basically works
6382         modula some fine tuning.
6383
6384 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
6385
6386         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
6387         autoscroll support.  It mostly works, but could use some fine
6388         tuning.
6389         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
6390         Actually move the column.
6391
6392 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
6393
6394         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
6395           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
6396           New default theme! A slighly improved version of the 2.0 Raleigh
6397           theme, with Windows-esque focus/drawing default. 
6398           (GtkWidget::interior_focus defaults to TRUE.)
6399
6400         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
6401
6402 2001-04-30  Havoc Pennington  <hp@pobox.com>
6403
6404         * tests/testtext.c (line_numbers_expose): fix to work with
6405         gtk_paint_layout change
6406
6407 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
6408
6409         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
6410           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
6411           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
6412           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
6413
6414         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
6415           with GtkWidget::interior_focus = TRUE better.
6416
6417         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
6418         ::default_outside_border for more flexibility.
6419
6420         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
6421         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
6422         change that had to be made with g_object_get.
6423
6424 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
6425
6426         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
6427         (gtk_tree_view_move_column_after): Clean up interface. 
6428
6429 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
6430
6431         * gtk/gtkpacker.h:
6432         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
6433          to gtkenum.h.
6434
6435         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
6436         handled in switch).
6437
6438         * gtk/Makefile.am:
6439         (gtk.defs): generate enum portions with  glib-mkenums.
6440         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
6441         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
6442         
6443         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
6444         addition.
6445
6446         * docs/Changes-2.0.txt: keep a note on signal handlers now
6447         not getting emitted during the emission they were connected within.
6448
6449 2001-04-28  Havoc Pennington  <hp@pobox.com>
6450
6451         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
6452
6453 2001-04-24  Havoc Pennington  <hp@redhat.com>
6454
6455         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
6456         (gtk_text_layout_move_iter_to_next_line): fix these two for
6457         invisible text, lots of other stuff still hosed.
6458
6459         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
6460         new function, replaces the get/set palette stuff. This function 
6461         is intended for use by libgnomeui which should set the hook to a
6462         thing which sets the palette in GConf, and we need the
6463         GConf-to-xsettings proxy which will result in the change being
6464         propagated back to the GTK app.
6465
6466         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
6467         about unusable signals that it may be because the signal has 
6468         parameters.
6469
6470         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
6471         style, otherwise gtkrc.c won't know to create a new GtkStyle for
6472         it.
6473         (gtk_widget_modify_color_component): call
6474         gtk_widget_modify_style() so the rc style will get copied.
6475         (gtk_widget_modify_font): ditto
6476
6477         * gtk/gtkrc.c: make a couple variables static
6478
6479         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
6480         help button by default, since it does nothing
6481
6482         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
6483         around with UI
6484
6485         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
6486         so we can have tooltips
6487
6488         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
6489         can have tooltips
6490
6491         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
6492         GDK_ENABLE_BROKEN, because its memory behavior is completely
6493         hosed.
6494
6495         * gtk/gtknotebook.c: remove key press handler, replace with
6496         binding set, add numeric keypad support
6497
6498         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
6499
6500         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
6501
6502         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
6503         addition to plain Delete
6504
6505         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
6506         GDK_KP_Enter in addition to GDK_Return
6507
6508         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
6509         activate on entry instead of key press
6510         (gtk_font_selection_on_clist_key_press): get
6511         rid of this signal handler, not needed with new font sel.
6512
6513         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
6514         no-longer-needed emit_stop_by_name(), just return TRUE
6515
6516         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
6517         cruft, this widget is no longer focusable.
6518
6519         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
6520         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
6521         move_slider action signal, add binding set for vscale/hscale, in
6522         the process support numeric keypad
6523
6524         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
6525         make GDK_Return and GDK_KP_Enter activate the entry via 
6526         binding set, instead of hardcoded.
6527
6528 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
6529
6530         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
6531         code.  Some documentation added.
6532
6533 2001-04-27  Havoc Pennington  <hp@redhat.com>
6534
6535         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
6536
6537         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
6538
6539         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
6540         line/para separators
6541         (gtk_entry_create_layout): set single paragraph mode on the layout
6542
6543         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
6544         spacing between the image and label; instead, inside a button box 
6545         the button will get extra space that will go there, but if people 
6546         configure button box for 0 chubbiness, then there's no spacing.
6547
6548         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
6549         and min/max size style properties, so people can tune their
6550         chubbiness.
6551
6552         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
6553         functions
6554
6555         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
6556         space_style, and button_relief into style properties, remove
6557         functions for setting them
6558         
6559         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
6560         it back down
6561
6562         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
6563         types from gtk_widget_style_get
6564
6565         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
6566         with a style property.
6567
6568         * gdk/x11/gdkevents-x11.c: namespace the settings
6569
6570         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
6571
6572         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
6573         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
6574         be used. Also, translate doc strings for settings. Also, namespace
6575         the double-click-time property. Also, remove bell properties crap.
6576
6577 2001-04-27  Sven Neumann  <sven@gimp.org>
6578
6579         * Makefile.am: before creating links, check if pkg-config files
6580         exist for the default target. Otherwise link to the pkg-config files
6581         that got installed with this build.
6582
6583 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
6584
6585         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
6586         dragging code.  Revealed some (potential) GdkWindow bugs.
6587
6588         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
6589         _gdk_window_init_position to the end of reparent to fix the case
6590         of reparenting when new_x != old_x and new_y != old_y.
6591
6592 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
6593
6594         * gtk/gtkentry.c (strstr_len): Fix optimization that
6595         was correct for the use here, but completely incorrect
6596         in general.
6597
6598 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
6599
6600         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
6601         until patch adding gtk_window_set_size() is recommitted. 
6602
6603         * **Makefile.am configure.in gdk/x11/gdkim-11.c
6604           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
6605           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
6606           (#10784)
6607
6608 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
6609
6610         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
6611         window == NULL in a number of cases.
6612
6613         * tests/testdnd.c: Set module path for gdk-pixbuf.
6614
6615 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
6616
6617         * gtk/Makefile.am xembed.h: File containing #defines
6618         for XEMBED protocol.
6619
6620         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
6621
6622         - Change protocol from old plug/socket specific protocol
6623           to XEMBED draft
6624         - Various fixes to work with GTK+-2.0
6625
6626         Still quite a bit of work to do here to handle initiation
6627         from the socket side (as specified by XEMBED), to handle
6628         the more advanced features of XEMBED, and to figure out
6629         a good way to handle same-app embedding with less overhead
6630         than using full XEMBED.
6631
6632 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
6633
6634         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
6635         track of whether the toplevel has the focus; only send
6636         focus-in events to the focus widget when the window
6637         actually has the focus.
6638
6639 2001-04-25  Havoc Pennington  <hp@pobox.com>
6640
6641         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
6642         were still in the header
6643
6644 2001-04-24  Alexander Larsson  <alexl@redhat.com>
6645
6646         * gtk/gtkclist.[ch]:
6647         * gtk/gtkctree.c:
6648         When there is a row highlighted for D'n'D it must alse
6649         be painted hightlighted on exposes. Otherwise exposes from
6650         the icon being dragged will mess up the hightlight.
6651
6652         * gtk/gtkfontsel.c:
6653         Don't recenter selected font when exposing the font family
6654         clist. This means you can now actually scroll the font family
6655         list.
6656
6657         * gtk/gtknotebook.c:
6658         Fix focus movement on scrolling tabs that are placed on the left
6659         and right.
6660
6661 2001-04-21  Havoc Pennington  <hp@pobox.com>
6662
6663         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
6664         empty/invisible lines.
6665
6666         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
6667         (gtk_text_iter_set_visible_line_index): new functions to set
6668         indexes excluding invisible text
6669
6670         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
6671         index
6672
6673         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
6674         (gtk_text_iter_get_visible_line_offset): new functions to 
6675         get indexes excluding invisible text
6676
6677         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
6678         bunch of extra padding that served no purpose
6679
6680         * gtk/gtkdialog.c: Make all the spacings configurable via style
6681         properties, for chubbiness configuration in themes
6682
6683         * tests/testtext.c: fix path to the immodules.
6684         
6685 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
6686
6687         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
6688         got munched by #endif.
6689
6690         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
6691
6692         * gtk/gtktreeview.c: Refactored code to clean up a number of
6693         events.
6694
6695         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
6696         values to make consistent with other functions.  Spotted by Jeff
6697         Franks <jcf@tpg.com.au>.
6698
6699         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
6700         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
6701
6702 2001-04-23  Sven Neumann  <sven@gimp.org>
6703
6704         * gtk/Makefile.am
6705         * gtk/gtkplug.c
6706         * gtk/gtksocket.c: on request of Owen, reverted my last change 
6707         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
6708
6709 2001-04-23  Sven Neumann  <sven@gimp.org>
6710
6711         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
6712         compile for non-X11 targets again
6713
6714 2001-04-20  Alexander Larsson  <alexl@redhat.com>
6715
6716         * gtk/gtkcolorsel.[ch]:
6717         API Change. Take GdkColor arguments instead of gdouble *.
6718         Leave the old gtk_color_selection_set_color for compatibility,
6719         but marked deprecated.
6720         Do correct rounding when converting RGB <-> HSV.
6721         
6722         * gtk/gtkcolorseldialog.c:
6723         * tests/testgtk.c:
6724         Use new GtkColorSelection API.
6725
6726         * gtk/gtkhsv.c:
6727         Fix problem selecting colors in triangle when Hue is 330.
6728         Fix some black dots around the HSB triangle.
6729         
6730         * gtk/gtkfilesel.c:
6731         return FALSE from the focus_in_event handler to fix focus problems.
6732
6733 2001-04-18  Havoc Pennington  <hp@redhat.com>
6734
6735         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
6736         set, so keybindings are configurable    
6737         (gtk_window_activate_default): Change to activate the focus widget
6738         instead if there's a focus widget, to be consistent with the
6739         behavior that previously existed in key_press_event
6740
6741 2001-04-18  Havoc Pennington  <hp@redhat.com>
6742
6743         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
6744
6745 2001-04-18  Havoc Pennington  <hp@redhat.com>
6746
6747         Close bug #50615:
6748         
6749         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
6750         the layout
6751
6752         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
6753
6754         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
6755
6756         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
6757         
6758         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
6759         to blue for base, in addition to bg
6760         
6761 2001-04-18  Havoc Pennington  <hp@redhat.com>
6762
6763         * tests/testgtk.c (create_image): allow shrinking the image window
6764         to test that we clip to allocation.
6765
6766         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
6767         #9845
6768
6769         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
6770
6771 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
6772
6773         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
6774         mode on shm segments to 0600. We'll see who complains.
6775
6776         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
6777         _gdk_windowing_window_destroy() AFTER recursing through
6778         children.
6779
6780         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
6781         testsocket_child on X.
6782
6783         * tests/testsocket[_child].c: Fix uses of
6784         gtk_window_get_default_accel_group().
6785
6786         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
6787
6788         * gdk/gdkimage.c: (gdk_image_get):
6789         Deal with the possibility that XGetImage() might return NULL.
6790         Allocate the GdkImagePrivate structure only after XGetImage()
6791         succeeds in order not to dereference a NULL ximage pointer.  This
6792         prevents a core dump when XGetImage() fails - which is unlikely,
6793         but can happen due to race conditions accessing the geometries of
6794         drawables.  An x error will still be triggered, but the gdk image
6795         wrapper at least wont seg fault.
6796         
6797 2001-04-18  Havoc Pennington  <hp@redhat.com>
6798
6799         * gtk/gtkimage.c: fix to properly queue resizes when the image is
6800         set
6801
6802         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
6803         if the insertion point isn't editable
6804
6805         * demos/gtk-demo/images.c: Added a GtkImage demo
6806
6807         * demos/gtk-demo/drawingarea.c: drawing area demo
6808         
6809         * demos/gtk-demo/menus.c (create_menu): cleanups
6810
6811 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
6812
6813         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
6814           gdk/x11/gdkevents-x11.c: Introduce an extra child
6815         of toplevel windows that serves to hold the focus to
6816         avoid events being delivered to embedded windows.
6817
6818         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
6819         some extra variables to clean up code and reduce the
6820         number of casts.
6821
6822         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
6823         guint for 1 bit bit fields, not gboolean.
6824
6825 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
6826
6827         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
6828         not TRUE. (Fixes #52925)
6829
6830 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
6831
6832         * Released 1.3.4
6833
6834         * NEWS: Updated
6835
6836         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
6837         use GTK_TYPE_ENUM.
6838
6839 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
6840
6841         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
6842
6843         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
6844         names to compatibility #defines so docs work.
6845
6846         * gtk/gtkenums.h: Remove GtkMenuFactoryType
6847
6848         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
6849
6850         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
6851
6852         * tests/testgtkrc: No magenta cursors, please.
6853
6854         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
6855
6856         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
6857         
6858 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
6859
6860         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
6861         grabs, since they are no longer necessary.
6862
6863         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
6864         by signal_connect() and call gtk_button_pressed() rather
6865         than signal_connect_after().
6866
6867         * tests/testgtk.c: Restore radio menu items to combos 
6868         since they'll look OK with Raleigh, and it is easier
6869         than finishing the process of removing them that was
6870         started earlier.
6871
6872 2001-04-16  Hans Breuer  <hans@breuer.org>
6873
6874         * gdk/gdk.def :
6875         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
6876
6877         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
6878         we are interested in the functions return value not the function address
6879         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
6880
6881         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
6882
6883 2001-04-14  Hans Breuer  <hans@breuer.org>
6884
6885         * gdk/gdk.def :
6886         * gdk/makefile.msc : updated
6887
6888         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
6889         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
6890         (the testgtk::text backgound pixmap is drawn again)
6891         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
6892         Win32 Pango change
6893         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
6894
6895         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
6896         Not sure if the returned settings have the right unit, because I couldn't
6897         find any docs for the X version ...
6898
6899         * gtk/gtk.def :
6900         * gtk/makefile.msc.in : updated
6901
6902 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
6903
6904         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
6905         wording problems. (Compared to version from Johannes Stezenbach to
6906         check correctness.)
6907
6908 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
6909
6910         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
6911         this to compile.
6912
6913 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
6914
6915         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
6916         not pixbufpos.
6917
6918         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
6919
6920         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
6921         are unsigned insts, therefore use g_value_set_uint.
6922         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
6923
6924 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
6925
6926         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
6927
6928         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
6929         GTK_TYPE_STRING.
6930
6931         * gtk/gtktreeview.c: New functions to allow initial column
6932         dragging work.
6933
6934         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
6935
6936         * tests/testtreefocus.c: give dave some love.
6937
6938         * tests/testtreesort.c: Modify test to check really long samples.
6939
6940 2001-04-11  Alexander Larsson  <alexl@redhat.com>
6941
6942         * gtk-2.0.m4: Pass pkg-config options
6943         before the other args so it works even if
6944         POSIXLY_CORRECT is set.
6945
6946 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
6947
6948         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
6949         0, interface 0).
6950
6951 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
6952
6953         * gtk/gtkcalendar.c (gtk_calendar_button_press):
6954         check for action_func != NULL
6955
6956 2001-04-04  Sven Neumann  <sven@gimp.org>
6957
6958         * tests/testgtk.c (test_init): corrected path to gtk.immodules
6959
6960 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
6961
6962         * Released Gtk+-1.3.3.
6963
6964 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
6965
6966         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
6967
6968 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
6969
6970         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
6971         files to/from source dir. (if we don't stay in builddir, we
6972         can't reach make-inline-pixbuf.
6973
6974         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
6975         deps.
6976
6977         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
6978         ages 0).
6979
6980 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
6981
6982         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
6983         moved to the GtkTreeSortable interface.
6984
6985         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
6986         Make more efficient (fixes #50262).
6987
6988 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
6989
6990         * NEWS: Updated.
6991
6992         * configure.in: Remove support for uninstalled glib.
6993
6994         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
6995         so as not to stop emission.
6996
6997         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
6998         is no longer supported.
6999
7000         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
7001         into tests, change build order to build modules before
7002         gtk/.
7003
7004         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
7005         to here.
7006
7007 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
7008
7009         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
7010         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
7011         GPatternSpec. this is actually unlikely to cause breakage in
7012         third-party apps since except for gle, pretty much ever caller
7013         passes NULL here.
7014
7015         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
7016
7017         * *.c: use g_pattern_*() API.
7018
7019         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
7020
7021         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
7022         directions aren't passed in.
7023
7024         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
7025         functionality to be usable from gtkstyle.c as well, give precedence
7026         for conversion to user-supplied parsers.
7027         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
7028
7029         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
7030         _gtk_settings_parse_convert() for rcporperty value conversion.
7031
7032 2001-04-03  Alexander Larsson  <alexl@redhat.com>
7033
7034         * gdk/linux-fb/gdkevents-fb.c:
7035         Add empty gdk_setting_get().
7036
7037 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
7038
7039         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
7040         variable names.
7041         
7042         * gtk/makeenums.pl: touch this so enum files get remade.
7043
7044 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
7045
7046         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
7047         work again when not sorted.
7048
7049         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
7050         and "expand_row" signal, closing bug 52578.
7051
7052         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
7053         support.
7054
7055         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
7056         support.
7057
7058 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
7059
7060         * gdk/gdkevents.h: Add GdkEventSetting event for notification
7061         of changes to system settings, gdk_setting_get() to retrieve
7062         a single system setting.
7063
7064         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
7065         to the draft XSETTINGS mechanism.
7066
7067         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
7068         XSETTINGS.
7069
7070         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
7071         of GDK settings changes to the GtkSettings object.
7072
7073         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
7074         double-click-timeout property to GDK.
7075
7076         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
7077         Define GDK boxed types here.
7078
7079         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
7080         gdk/gdkenumtypes.[ch] for enum definitions.
7081
7082         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
7083         * gtk/gtk-boxed.defs: Comment out GDK types
7084         * gtk/gtktypeutils.h: Remove GDK types
7085         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
7086
7087 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
7088
7089         * Applied patch from Ron Steinke to add signal accumulators
7090         so that signals with the convention 'TRUE return means
7091         handled' stop emission on a TRUE return.
7092
7093         * gtk/gtkmain.[ch]: Add private accumulator 
7094         _gtk_boolean_handled_accumulator, used throughout GTK+.
7095         
7096         * gtk/gtkspinbutton.c: Add accumulator for ::output.
7097
7098         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
7099         
7100         * gtk/gtkwidget.c: Add accumulators for event signals,
7101         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
7102         for ::mnemonic-activate.
7103
7104         * gtk/gtkwindow.c: Add accumulator for ::frame_event
7105
7106 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
7107
7108         * gtk/gtkwidget.c: Add missing include.
7109
7110 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
7111
7112         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
7113         marshaller.
7114
7115         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
7116         "changed" signal to "range_changed".
7117
7118         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
7119         removing a tree from one model would remove all trees from that
7120         model.
7121         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
7122         changed signal instead.
7123
7124 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
7125
7126         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
7127         chaining up to parent impl, since we have a INPUT_ONLY
7128         window.
7129
7130         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
7131         foreground color for the cursor.
7132
7133 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
7134
7135         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
7136         param spec when caching property values, since we unref it
7137         later when we free the style.
7138
7139         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
7140         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
7141
7142 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
7143
7144         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
7145         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
7146         stupidity.
7147
7148 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
7149
7150         [ First pass at adding style properties. Still needs some definite
7151         fine-tuning. ]
7152
7153         * gtk/gtkbutton.c: Add ::default_spacing style property.
7154          
7155         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
7156         ::indicator_spacing style properties.
7157
7158         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
7159         style properties.
7160
7161         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
7162         rather than a normal property.
7163
7164         * gtk/gtkwidget.c: Add an ::interior_focus style property to
7165         draw focus inside buttons, in the Windows/Java Metal/etc. style.
7166
7167         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
7168         Honor ::interior_focus.
7169         
7170         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
7171         TRUE.
7172
7173         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
7174         Add ::slider_width, ::trough_border, ::stepper_size,
7175         ::stepper_spacing style properties.
7176
7177         * gtk/gtkscale.[ch] Add ::slider-length style property.
7178
7179 2001-04-02 Alexander Larsson   <alexl@redhat.com>
7180
7181         * gdk/linux-fb/gdkwindow-fb.c:
7182         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
7183         warnings that were spewed on startup.
7184
7185         * gtk/gtkwindow-decorate.c:
7186         gtk_window_reposition -> _gtk_window_reposition
7187
7188 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
7189
7190         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
7191         Add boxed type for GtkRequistion. Use it for ::size-request.
7192
7193         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
7194         Add a new GtkBorder structure useful for geometry properties
7195         for widgets. Add corresponding GTK_TYPE_BORDER.
7196         
7197         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
7198         Support automatic parser selection like
7199         gtk_settings_install_property_parser().
7200
7201         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
7202         functionality for use by gtk_widget_class_install_style_property.
7203         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
7204
7205 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
7206
7207         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
7208         g_param_spec_unichar(). 
7209
7210 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
7211
7212         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
7213         _NET window managers.
7214
7215         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
7216
7217 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
7218
7219         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
7220         bad needs to be nuked, not just deprecated.
7221
7222         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
7223         gtk_widget_popup().
7224
7225         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
7226         
7227         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
7228         widget.
7229         
7230         * docs/Changes-2.0.txt: updates.
7231         
7232 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
7233
7234         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
7235         for (i = 0; i < 100; i ++)
7236           g_print ("I will confirm it compile before committing\n");
7237
7238 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
7239
7240         * gtk/gtktreestore.c: Initial work on implementing the
7241         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
7242
7243 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
7244
7245         * gtk/gtkwidget.c: fixed a bunch of notifications, added
7246         reference counts around emissions where the widget is used afterwards.
7247         added freeze/thaws around multiple properties being notified.
7248         (_gtk_widget_get_aux_info): cleanups.
7249         
7250         * gtk/gtksettings.c (gtk_settings_install_property): provide
7251         default parsing functions for gdkcolor, enums and flags.
7252
7253         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
7254         applied by owen.
7255         backed out gtk_window_get_location(), gtk_window_set_location(),
7256         gtk_window_get_size() and gtk_window_set_size(), these
7257         have to be sorted out wrg x/y/width/height/default_with/default_height
7258         properties.
7259         kept a flag in GtkWindowGeometryInfo to handle user
7260         resetting default sizes.
7261         cleaned up ZVT comments.
7262         bunch of assorted bug fixes, notification fixes.
7263         (_gtk_window_reposition): make this a really internal function.
7264         
7265         * gtk/testgtk.c: fixups.
7266         
7267 2001-03-31  Hans Breuer  <hans@breuer.org>
7268
7269         * config.h.win32.in : disable USE_MMX for msvc build cause
7270         the assembler doesn't fit and is out of my scope. Disable
7271         USE_GMODULE for msvc build as wel. The right way to share
7272         binaries on win32 would be to use libtiff.dll etc. To reduce
7273         installation hassles IMO it's better to include all fileformats
7274         builtin to gdk-pixbuf
7275
7276         * gdk-pixbuf/makefile.msc : new file
7277
7278         * gdk/gdk.def : updated
7279
7280         * gdk/win32/gdkevents-win32.c : don't erase the background if
7281         .no_bg is set. It improves the scrolling (e.g. of testgtk main
7282         buttons
7283         * gdk/win32/gdkgeometry-win32.c : added comment about the above
7284
7285         * gdk/win32/gdkwindow-win32.c : added three new functions like
7286         the X version. Only one is implemented, because the other two
7287         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
7288         be default behaviour on win32 anyway ...
7289
7290         * gtk/gtk.def : updated
7291
7292         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
7293         from where it was built and add an additional rule to automagically
7294         build gtkmarshal.[hc]
7295
7296         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
7297         before array access for the current entry isn't finished
7298
7299         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
7300         use g_return_val_if_fail
7301
7302         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
7303         for the static array, but let the compiler calculate it. It
7304         makes me wonder if gcc isn't capable to catch bugs like this ...
7305
7306 2001-03-31  James Henstridge  <james@daa.com.au>
7307
7308         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
7309         constant "-1" in the aux info structure.
7310
7311 2001-03-30  Alexander Larsson  <alexl@redhat.com>
7312
7313         * gtk/gtkbutton.c (gtk_button_get_property):
7314         * gtk/gtklabel.c:
7315         Remove leaks.
7316         
7317         * gtk/gtkcontainer.c:
7318         * gtk/gtkhscale.c:
7319         * gtk/gtkhscrollbar.c:
7320         * gtk/gtklayout.c:
7321         * gtk/gtkmisc.c:
7322         * gtk/gtkprogress.c:
7323         * gtk/gtkprogressbar.c:
7324         * gtk/gtkrange.c:
7325         * gtk/gtktable.c:
7326         * gtk/gtkviewport.c:
7327         * gtk/gtkvscale.c:
7328         * gtk/gtkvscrollbar.c:
7329         * gtk/gtkwidget.c:
7330         Property patches, based on patches from John Margaglione and Lee Mallabone.
7331
7332 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
7333
7334         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
7335         adjustment. Cleaned redundant preconditions (spin != NULL). Added
7336         inline API function docs.
7337         (gtk_spin_button_new_with_range): New convenience constructor.
7338         (gtk_spin_button_set_increments): New adjustment helper.
7339         (gtk_spin_button_set_range): New adjustment helper.
7340
7341         * gtk/testgtk.c : added test of the new convenince constructor and
7342         value_changed signals.
7343
7344 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
7345
7346         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
7347         listen to the reorder signal.
7348
7349 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
7350
7351         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
7352         to get the aux info structure fo the widget.
7353
7354         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
7355         above function.
7356
7357         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
7358
7359         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
7360         to get the size of the window manager frame, basically the same
7361         code that gdk_window_get_root_origin() had
7362         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
7363
7364         * gtk/gtkwindow.c (gtk_window_set_default_size): use
7365         gdk_window_resize() if the window is realized and resizeable
7366
7367         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
7368         typo so that setting gravity works
7369
7370         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
7371         allocation if auto_shrink is on, even if the default size
7372         has not changed.
7373
7374         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
7375         g_return_if_fail
7376
7377 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
7378
7379         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
7380         reordering/sorting work.  Now pretty much works.
7381
7382         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
7383         reorder mostly work.  Still need to get the parity correct.
7384
7385         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
7386         signal, so I can listen for the sort_column_changed signal so I
7387         can change my "sort_indicator" property.  Cool.
7388
7389 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
7390
7391         [ Patch from Havoc Pennington, hp@redhat.com ]
7392
7393         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
7394         Add functions gdk_window_begin_resize_drag/begin_move_drag
7395         to start resizing or moving a toplevel window. This
7396         is done either using the _NET_WM_MOVERESIZE protocol,
7397         or, if that isn't present, by emulation.
7398
7399         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
7400         to export the above to GTK+-land.
7401
7402         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
7403         
7404         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
7405         Move this function into gdkwindow, since we need it
7406         when implementing fallback resizing.
7407
7408         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
7409         Fix typo when setting gravity.
7410
7411         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
7412         Add an optional (but on by default) resize grip for resizing 
7413         the parent window.
7414
7415 01-03-29  Alexander Larsson  <alexl@redhat.com>
7416
7417         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
7418         Don't return TRUE from the event handler, that blocks all
7419         event signals on the tooltip widget. Now you can press buttons
7420         in toolbars again.
7421
7422 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
7423
7424         * gtk/testtext.c (create_buffer): Add missing NULL on
7425         valist.
7426
7427         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
7428         c-n-p problem with INCONSISTENT property.
7429
7430         [ Patch from Havoc Pennington  <hp@redhat.com> ]
7431
7432         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
7433         hook.
7434
7435         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
7436         signal as a hook for extending the default popup menu
7437
7438         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
7439         use radio menu items for the input method menuitems
7440
7441         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
7442         inserted unicode from Ctrl-Shift-hex input method
7443
7444         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
7445         validatation here, already done at GtkTextBuffer level.
7446
7447         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
7448         popup_menu run action signal and Shift+F10 and Menu keybindings.
7449
7450         * gtk/gtkentry.c: implement a default handler for popup_menu
7451
7452         * gtk/gtktextview.c: implement a default handler for popup_menu
7453
7454         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
7455         from a key event
7456         
7457         * gtk/gtklabel.c: remove "trailer" cruft
7458
7459 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
7460
7461         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
7462         handle reordering of trees.  Seems to mostly work w/ the exception
7463         of the parity flag.
7464
7465         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
7466         signal.
7467
7468 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
7469
7470         * gtk/gtkwidget.h: c++ fixes.
7471
7472 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
7473
7474         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
7475         memory.
7476
7477 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
7478
7479         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
7480         Nils Barth fixing event return values. (#51041)
7481
7482         * gtk/gtkwidget.c: Fix some return values for default
7483         functions.
7484
7485         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
7486         return values for trough_keys functions.
7487
7488         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
7489         value for add_accelerator (shoudl have been a void
7490         return.)
7491
7492         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
7493         Fix return type of EVENT.
7494
7495         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
7496         signal return a boolean.
7497
7498 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
7499
7500         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
7501         reordered signal.
7502
7503         * tests/testtreesort.c (main): fix spelling.
7504
7505 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
7506
7507         * gtk/gtkliststore.c: More work on implementing sortable
7508         interface.
7509
7510 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
7511
7512         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
7513         reference the widgets in the resulting list. (#11821)
7514         This makes this consistent with gtk_container_children.
7515
7516         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
7517         uses of gtk_window_list_toplevels.
7518
7519 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
7520
7521         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
7522         a virtual function to set whether the IM context should use 
7523         the preedit string. (#51922)
7524         
7525 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
7526
7527         * gdk/gdkpango.h: Remove stale FIXME comment.
7528
7529 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
7530
7531         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
7532         Fixed bug that returned NULL if a filename was selected.
7533
7534 2001-03-24  Havoc Pennington  <hp@pobox.com>
7535
7536         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
7537         to contain the word "theme"
7538
7539 2001-03-24  Havoc Pennington  <hp@pobox.com>
7540
7541         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
7542         slower but finer-grained
7543         (gtk_hsv_focus): get initial focus on the ring or triangle 
7544         according to tab direction
7545
7546         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
7547
7548 2001-03-23  Havoc Pennington  <hp@pobox.com>
7549
7550         * gtk/gtkhsv.c: make this somewhat key-navigable
7551
7552         * gtk/gtkfontsel.c: mnemonics
7553
7554         * gtk/gtkgamma.c: mnemonics
7555
7556         * gtk/gtkcolorsel.c: add mnemonics to labels
7557
7558 2001-03-22  Havoc Pennington  <hp@pobox.com>
7559
7560         Applied big patch from Seth Lytle to fix event handler return
7561         values, slightly modified.
7562
7563         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
7564         handled.
7565         (gtk_calendar_key_press): return TRUE for GDK_space triggers
7566         select_day
7567
7568         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
7569         (gtk_clist_button_release): return TRUE if handled
7570
7571         * gtk/gtkcolorsel.c (mouse_release):
7572         (palette_activate): 
7573         (palette_press): 
7574         (palette_new): 
7575         (mouse_press): 
7576         (get_screen_color): 
7577         fixed return type (void to gboolean), return TRUE,
7578         added GTK_SIGNAL_FUNC cast
7579
7580         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
7581         (void to gboolean), and return TRUE
7582         (gtk_combo_button_release): changed return value to TRUE after
7583         gtk_grab_add on combo->popwin
7584
7585         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
7586         collapse or expand
7587
7588         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
7589         button/motion
7590
7591         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
7592         press/release and motion that trigger act
7593
7594         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
7595
7596         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
7597         for GDK_Return
7598         
7599         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
7600         (gtk_list_button_release): return TRUE if selection
7601
7602         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
7603         press
7604
7605         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
7606         (gtk_menu_shell_button_release): chain parent_menu_shell retval
7607
7608         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
7609         nothing triggered
7610         (gtk_notebook_button_release): return TRUE if we do anything
7611
7612         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
7613         (gtk_spin_button_button_release): return TRUE or chained retval
7614
7615         * gtk/gtktext.c (gtk_text_button_press): 
7616         (gtk_text_button_release): return TRUE
7617         (gtk_text_key_press): remove redundant retval code
7618         
7619         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
7620         and sensitive
7621         (gtk_tree_item_subtree_button_click): changed type to gint, and return
7622         TRUE if sensitive
7623
7624         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
7625         return TRUE
7626
7627 2001-03-23  Havoc Pennington  <hp@redhat.com>
7628
7629         * gtk/testgtk.c: fix warnings
7630
7631         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
7632
7633         * gtk/gtktextview.c: fix warnings
7634
7635         * gtk/gtktext.c (find_cursor_at_line): fix warning
7636
7637         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
7638
7639         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
7640         of this function
7641
7642         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
7643         fix warning
7644
7645         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
7646
7647         * gtk/gtkfontsel.c: fix warning
7648
7649         * gtk/gtkcolorsel.c: fix warnings
7650
7651 2001-03-23  Havoc Pennington  <hp@redhat.com>
7652
7653         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
7654
7655         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
7656
7657         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
7658         and deprecated gtk_check_menu_item_set_show_toggle().
7659         
7660         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
7661
7662         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
7663
7664         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
7665
7666 2001-03-23  Havoc Pennington  <hp@redhat.com>
7667
7668         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
7669         some docs
7670
7671 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
7672
7673         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
7674         this.
7675
7676         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
7677         set_cell to set_value
7678
7679         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
7680         set_cell to set_value
7681
7682 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
7683
7684         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7685         fix braino.
7686         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
7687         support.
7688
7689         * gtk/gtktreeview.c: Addition of initial sortable support.
7690
7691         * gtk/gtktreestore.c: Addition of initial sortable support.
7692
7693         * gtk/gtkliststore.c: Addition of initial sortable support.
7694
7695         * gtk/gtkmarshal.list: yet another marshaller.
7696
7697         * gtk/gtktreedatallist.[ch]: shared code between the store models
7698         for handling sorting headers.
7699
7700 2001-03-22  Havoc Pennington  <hp@redhat.com>
7701
7702         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
7703         (gtk_container_unset_focus_chain): Add ability to override the 
7704         focus chain for a container explicitly
7705
7706 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
7707
7708         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
7709         added PROP_MNEMONIC_WIDGET.
7710
7711         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
7712         (gtk_window_remove_mnemonic): 
7713         (gtk_window_add_mnemonic): fixed assertions.
7714         (gtk_window_activate_mnemonic): constrain modifier checks to those
7715         permitted by gtk_accelerator_get_default_mod_mask().
7716         got rid of gtk_window_get_default_accel_group().
7717
7718         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
7719         activatable widgets either by focussing or a warning.
7720         added a signal accumulator to ::activate_mnemonic which stops the
7721         emission once a handler returned TRUE.
7722
7723 2001-03-22  Havoc Pennington  <hp@pobox.com>
7724
7725         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
7726         the stock item label
7727
7728         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
7729
7730         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
7731
7732         * demos/gtk-demo/*.c: Add mnemonics all over the place
7733
7734         * gtk/gtklabel.h: mark parse_uline deprecated
7735
7736 2001-03-21  Alexander Larsson  <alexl@redhat.com>
7737
7738         * gtk/gtkitemfactory.[ch]:
7739         Add support for stock and normal imagemenuitems.
7740         
7741         * gtk/testgtk.c:
7742         Add some tests for mnemonics, stock toolbars, stock
7743         and image menuitems in itemfactory and gdk_window_scroll.
7744
7745 2001-03-21  Alexander Larsson  <alexl@redhat.com>
7746
7747         * gtk/gtkbutton.[ch]:
7748         * gtk/gtkdialog.c:
7749         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
7750         removed accel_group argument. Renamed gtk_button_new_accel() to
7751         gtk_button_new_with_mnemonic() and removed accel_group argument.
7752
7753         * gtk/gtkcheckbutton.[ch]:
7754         New function gtk_check_button_new_with_mnemonic().
7755
7756         * gtk/gtkentry.c:
7757         Override activate_mnemonic and just grab focus.
7758
7759         * gtk/gtkitemfactory.c:
7760         Don't add menu uline accel group, instead use mnemonics support.
7761
7762         * gtk/gtklabel.[ch]:
7763         New support for mnemonics.
7764
7765         * gtk/gtkmarshal.list:
7766         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
7767
7768         * gtk/gtkmenu.[c]:
7769         * gtkmenushell.c:
7770         Use mnemonics instead of accel groups for uline
7771         support in menu items.
7772         Removed gtk_menu_get_uline_accel_group() and
7773         gtk_menu_ensure_uline_accel_group().
7774
7775         * gtk/gtkmenuitem.c:
7776         Override activate_mnemonic to handle switching between
7777         menu items if there are collisions.
7778         
7779         * gtk/gtknotebook.c:
7780         Connect to activate_mnemonic on the tab_label, so that
7781         activating it switches to that notebook page.
7782
7783         * gtk/gtkwidget.[ch]:
7784         Add activate_mnemonic signal. New function
7785         gtk_widget_activate_mnemonic() to emit it.
7786         Default implementation does activate/grab_focus.
7787
7788         * gtk/gtkwindow.[ch]:
7789         Add support for mnemonics in windows.
7790         New functions:
7791         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
7792         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
7793
7794         * gtk/testgtk.c:
7795         Update to function name changes.
7796         
7797 2001-03-21  Alexander Larsson  <alexl@redhat.com>
7798
7799         * gtk/gtkimagemenuitem.[c]:
7800         Add gtk_image_menu_item_new_from_stock()
7801
7802 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
7803
7804         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7805         Fix buglet in meeting.
7806
7807 2001-03-19  Havoc Pennington  <hp@redhat.com>
7808
7809         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
7810         add a bunch of accessor functions. This is because we have
7811         reasonable expectations of extending what fields it contains in
7812         the future.
7813
7814         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
7815         changes
7816
7817         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
7818         GtkIconSource   
7819
7820 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
7821
7822         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
7823         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
7824
7825         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
7826           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
7827           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
7828           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
7829         Change float to double everywhere with the exception of 0<->1.0 alignment
7830         and GtkCurve.
7831
7832 2001-03-19  Tor Lillqvist  <tml@iki.fi>
7833
7834         * gdk/win32/gdkdrawable-win32.c
7835         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
7836         output.
7837
7838         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
7839         gdkwin32.h.
7840
7841 2001-03-18  Tor Lillqvist  <tml@iki.fi>
7842
7843         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
7844         print_event_state, print_event): Use preprocessor macro to make
7845         code more compact. Print also GDK_WINDOW_STATE events.
7846         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
7847         
7848         * gtk/gtk.def
7849         * gtk/makefile.mingw.in: Update.
7850
7851         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
7852         to catch also Cygwin.
7853
7854 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
7855
7856         * gtk/gtkspinbutton.[hc]: added rc-style argument
7857         GtkSpinButton::shadow_type.
7858         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
7859         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
7860         rc-style settings.
7861
7862         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
7863
7864         * gtk/gtkwidget.c: quark cleanups.
7865
7866         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
7867         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
7868         to create_rc_style() (we don't do cloning in standard OO sense).
7869         added per rc style properties.
7870         
7871         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
7872         property values and for caching those. some cleanups.
7873         
7874         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
7875         
7876         * gtk/gtksettings.[hc]: new file for global rc-file properties
7877         (at least currently, should get extended to support X properties
7878         and other communication mechanisms).
7879         
7880         * gtk/gtkwidget.[hc]: added style property support:
7881         (gtk_widget_class_install_style_property_parser): install style
7882         property pspec with parser function for rc-file values other
7883         than LONG, DOUBLE or STRING.
7884         (gtk_widget_class_install_style_property): same as above without
7885         parser (parsers are going to be needed quite infrequently).
7886         (gtk_widget_style_get_property): retrive style property value.
7887         (gtk_widget_style_get_valist): same as above with varargs support,
7888         has NOCOPY semantics.
7889         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
7890
7891 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
7892
7893         * demos/gtk-demo/main.c (row_activated_cb): modified to use
7894         "row_activated" signal.
7895
7896         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
7897         stupidity.  Lets actually pass in the row with this signal...
7898
7899 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
7900
7901         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
7902
7903         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
7904
7905         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
7906         everything into the ::destroy function, and freed a lot more.
7907
7908 2001-03-16  Havoc Pennington  <hp@redhat.com>
7909
7910         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
7911         instead of gint16, to avoid overflow issues, since sizes > 16-bit
7912         are now allowed.
7913
7914 2001-03-16  Havoc Pennington  <hp@redhat.com>
7915
7916         * Applied patch from Nils Barth (bug # 51041) to 
7917         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
7918         in various places.
7919
7920 2001-03-15  Havoc Pennington  <hp@redhat.com>
7921         
7922         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
7923         for properties to set on the tag.
7924
7925         * gtk/testtext.c: fixups to reflect create_tag change
7926         
7927         * gtk/gtktexttag.c (gtk_text_tag_set_property):
7928         background/foreground stipple are objects, not boxed.
7929
7930         * demos/gtk-demo/textview.c: intellihancing
7931
7932 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
7933
7934         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
7935         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
7936
7937 2001-03-16  Alexander Larsson  <alexl@redhat.com>
7938
7939         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
7940         Fix sign error with queued region translations.
7941
7942 2001-03-15  HideToshi Tajima  <tajima@happy>
7943
7944         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
7945         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
7946         * gtk/gtkentry.c (update_im_cursor_location): 
7947         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
7948         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
7949         set_cursor_pos to set_cursor_location in GtkInputContext class
7950
7951 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
7952
7953         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
7954         the location of the cell relative to its area.
7955         * gtk/gtkcell*: modified for above change
7956         * gtk/gtktreeview.c: modified for above change.
7957
7958 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
7959
7960         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
7961          (gtk_tree_view_finalize): actually unref the model.  Thanks to
7962         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
7963
7964 2001-03-14  Havoc Pennington  <hp@redhat.com>
7965
7966         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
7967         
7968         * gtk/gtk.h: remove gtkdata.h
7969
7970         * gtk/Makefile.am: remove gtkdata
7971         
7972         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
7973         not "disconnect" on the adjustments.
7974         
7975         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
7976         GtkData
7977
7978         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
7979         not GtkData
7980
7981         * configure.in: handle case where X render exists, but Pango lacks
7982         Xft support.
7983
7984 2001-03-15 Alexander Larsson  <alexl@redhat.com>
7985
7986         * gtk/gtktoolbar.[ch]:
7987         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
7988         to add stock items to toolbars.
7989
7990         * gtk/Makefile.am:
7991         Remove ../gdk/gdkim.h from gdk_headers.
7992
7993 2001-03-15  Sven Neumann  <sven@gimp.org>
7994
7995         * gdk/gdkim.h: removed
7996         
7997         * gdk/gdkprivate.h
7998         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
7999
8000 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
8001
8002         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
8003         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
8004         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
8005         set_cursor_pos() virtual method
8006
8007         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
8008         (gtk_im_context_xim_set_cursor_pos): add implementation for
8009         set_cursor_pos() method
8010
8011         * gtk/gtkentry.c (recompute_idle_func): set current cursor
8012         position to input methods
8013
8014 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
8015
8016         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
8017         code a lot.
8018
8019         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
8020         g_mem_chunk.
8021         (_gtk_tree_data_list_alloc): use g_mem_chunk.
8022         (_gtk_tree_data_list_node_to_value): Fix to switch on
8023         G_TYPE_FUNDAMENTAL.
8024         (_gtk_tree_data_list_value_to_node): Fix to switch on
8025         G_TYPE_FUNDAMENTAL.
8026         (_gtk_tree_data_list_node_copy): Fix to switch on
8027         G_TYPE_FUNDAMENTAL.
8028
8029 2001-03-12  Havoc Pennington  <hp@redhat.com>
8030
8031         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
8032         to convert to new property API. Also, change default_width and
8033         default_height get_property to return 0 as the flag value for
8034         "unset"; -1 is not a valid value for these fields.
8035
8036 2001-03-12  Havoc Pennington  <hp@redhat.com>
8037
8038         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
8039         enum with registration for icon sizes, instead of strings.
8040
8041         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
8042         gtkwidget.c: Fix to reflect GtkIconSize
8043         
8044 2001-03-12  Alexander Larsson  <alexl@redhat.com>
8045
8046         Make GtkFB compile and link.
8047         
8048         * gdk/linux-fb/gdkdrawable-fb2.c:
8049         window->mapped to GDK_WINDOW_IS_MAPPED(). 
8050         
8051         * gdk/linux-fb/gdkwindow-fb.c:
8052         window->mapped to GDK_WINDOW_IS_MAPPED(). 
8053         Added gdk_window_shape_combine_region.
8054         Added assorted placeholders for unimplemented new GdkWindow API calls.
8055
8056 2001-03-12  Alexander Larsson  <alexl@redhat.com>
8057
8058         * gtk/gtkfilesel.c:
8059         Add more test when converting filenames from/to utf-8.
8060         Don't allow entering text in the filename entry which isn't allowed in
8061         a filename. Just beep instead.
8062
8063 2001-03-12  Alexander Larsson  <alexl@redhat.com>
8064
8065         * gtk/gtkclist.c:
8066         Scroll using gdk_window_scroll(). Don't wait for exposes.
8067         Move the column headers in an order that makes them flash less.
8068
8069 2001-03-10  Hans Breuer  <hans@breuer.org>
8070
8071         * gdk/gdk.def : updated
8072
8073         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
8074         to offseting the clip_mask at the right place
8075
8076         * gdk/win32/gdkwindow-win32.c : don't create background brushes
8077         for all the gdkClasses, especially not for the input_only case.
8078         Otherwise flickering wont be avoidable, because we don't get
8079         WM_ERASEBKGND message for these windows.
8080
8081         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
8082         and fixed massive redraw problems apparently triggered by Alexanders 
8083         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
8084         but it seems to work quite well :-)
8085
8086         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
8087         prototype
8088
8089 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
8090
8091         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
8092         (gtk_list_store_set_cell): Fix a stupid typo.
8093
8094 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
8095
8096         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
8097         select_all not work if you're in SINGLE mode (it doesn't make that
8098         much sense, anyway.)
8099
8100         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
8101         handle types more sanely.
8102         (_gtk_tree_data_list_value_to_node): handle types more sanely.
8103         (_gtk_tree_data_list_node_copy): handle types more sanely.
8104
8105         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
8106         GValue better. Converts the type as well.
8107
8108         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
8109         GValue better. Converts the type as well.
8110
8111 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
8112
8113         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
8114         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
8115         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
8116         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
8117
8118         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
8119         gdk_im/gdk_ic.
8120
8121 2001-03-09  Hans Breuer  <hans@breuer.org>
8122
8123         * gdk/gdk.def : updated
8124
8125         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
8126         for their palette
8127
8128         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
8129         removing
8130
8131         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
8132         removing and implemented Havoc's GdkWindow state functions; 
8133         stick/unstick only as no-op, cause I don't know how to emulate 
8134         on win32 ...
8135
8136         * gtk/gtk.def : updated
8137
8138         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
8139
8140         * gtk/gtktypeutils.c : #include <string.h>
8141
8142         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
8143
8144 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
8145
8146         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
8147         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
8148         not a boxed.
8149
8150 2001-03-09  Alexander Larsson  <alexl@redhat.com>
8151
8152         * docs/Changes-2.0.txt:
8153         Document expose event->region change and that gtk_widget_event
8154         doesn't allow passing expose events.
8155
8156         * gdk/gdkevents.h:
8157         Add region to expose event.
8158         
8159         * gdk/gdkevents.c:
8160         Handle event->region in gdk_event_copy() and gdk_event_free().
8161
8162         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
8163         Generate expose_event->region when creating expose events.
8164
8165         * gdk/x11/gdkevents-x11.c:
8166         Generate expose events with regions when translating X events.
8167
8168         * gtk/gtkcontainer.[ch]:
8169         Default expose handler that propagates expose events to NO_WINDOW
8170         children. New function gtk_container_propagate_expose()
8171
8172         * gtk/gtkwidget.[ch]:
8173         Moved gtk_widget_event implementation to gtk_widget_event_internal.
8174         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
8175         expose events. New function gtk_widget_send_expose() to send expose
8176         events. New function gtk_widget_region_intersect() to calculate
8177         window/region intersections.
8178         
8179         * gtk/gtkmain.c (gtk_main_do_event):
8180         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
8181         Use gtk_widget_send_expose() to send expose events.
8182         
8183         * gtk/gtkbin.c:
8184         * gtk/gtkbox.c:
8185         * gtk/gtkfixed.c:
8186         * gtk/gtkimagemenuitem.c:
8187         * gtk/gtklist.c:
8188         * gtk/gtkpacker.c:
8189         * gtk/gtktable.c:
8190         * gtk/gtktree.c:
8191         Remove expose handler, using the default container implementation
8192         instead.
8193         
8194         * gtk/gtkbutton.c:
8195         * gtk/gtkcheckbutton.c:
8196         * gtk/gtkeventbox.c:
8197         * gtk/gtkfixed.c:
8198         * gtk/gtkhandlebox.c:
8199         * gtk/gtklayout.c:
8200         * gtk/gtklistitem.c:
8201         * gtk/gtkmenu.c:
8202         * gtk/gtkmenubar.c:
8203         * gtk/gtkmenuitem.c:
8204         * gtk/gtknotebook.c:
8205         * gtk/gtkoptionmenu.c:
8206         * gtk/gtkpaned.c:
8207         * gtk/gtkscrolledwindow.c:
8208         * gtk/gtktogglebutton.c:
8209         * gtk/gtktoolbar.c:
8210         * gtk/gtktreeitem.c:
8211         * gtk/gtkviewport.c:
8212         Chain expose handler to parent class handler. Use
8213         gtk_container_propagate_expose() to propagate exposes.
8214
8215         * gtk/gtkclist.c (check_exposures):
8216         * gtk/gtktext.c (process_exposes):
8217         Use gtk_widget_send_expose instead of gtk_widget_event.
8218
8219 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
8220
8221         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
8222
8223 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
8224
8225         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
8226         unref the nodes.   Fixes bug #50058.
8227
8228         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
8229         "::ref_iter" to "::ref_node".
8230         (gtk_tree_model_unref_node): change "::unref_iter" to
8231         "::unref_node". Fixes bug #50064.
8232
8233 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
8234
8235         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
8236         support for invisible cells.
8237          (gtk_tree_view_bin_expose): ditto
8238
8239 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
8240
8241         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
8242         on gobjects.
8243
8244         * tests/testtreefocus.c (main): New test file.
8245
8246         * tests/testtreeview.c: update to latest glib changes.
8247
8248         * tests/testtreecolumns.c: update to latest glib changes.
8249
8250 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
8251
8252         * gtk/testgtk.c: re-enabled event watcher emission hooks.
8253
8254 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
8255
8256         * *.c: added accumulator data argument to g_signal_newc()
8257         functions.
8258
8259         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
8260         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
8261         * gtk/treestoretest.c (make_window):
8262         s/g_signal_connect/g_signal_connectc/.
8263
8264         * gtk/gtktextbuffer.c: completed signal arg fixups,
8265         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
8266
8267 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
8268
8269         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
8270         G_CONST_RETURN.
8271
8272         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
8273         ::hierarchy-changed signal when a widget changes
8274         from anchored to unanchored or vice versa.
8275         (anchored means 
8276          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
8277         Use a private flag to keep track of this efficiently.
8278
8279 2001-03-07  Havoc Pennington  <hp@redhat.com>
8280
8281         * gtk/testgtk.c (create_spins): uglify so that size request gets
8282         tested.
8283
8284         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
8285         request on values for upper/lower, completes #6152
8286
8287 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
8288
8289         * Makefile.am: Remove gtk-config-2.0 again.
8290         (Grrrr, pkg-config. And stops make loops.)
8291
8292 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
8293
8294         * gtk/gtksignal.[hc]: removed old emission hook API.
8295         
8296         * docs/Changes-2.0.txt: fixed sections.
8297         
8298         * gtk/gtktextbuffer.c: signal arg fixups.
8299
8300 2001-03-07  Havoc Pennington  <hp@redhat.com>
8301
8302         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
8303
8304         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
8305         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
8306         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
8307         validation and the redraw which is higher priority than the
8308         validation.
8309
8310 2001-03-07  Havoc Pennington  <hp@redhat.com>
8311
8312         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
8313         (gtk_entry_set_property): remove trailer
8314
8315         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
8316         (gtk_entry_get_width_chars): new functions, to set size request to 
8317         a given number of characters
8318
8319         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
8320
8321         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
8322         (gtk_dialog_get_has_separator): new function
8323         (run_delete_handler): fix to not emit "response" signal
8324         because we already did in the delete event handler installed
8325         at dialog creation time.
8326         
8327         * gtk/gtkdialog.h: add a has_separator property,
8328         add GTK_DIALOG_NO_SEPARATOR flag
8329
8330 2001-03-07  Havoc Pennington  <hp@redhat.com>
8331
8332         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
8333         off decorations for a window.
8334
8335         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
8336         changes
8337
8338         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
8339         to get location of PangoLayout inside the label, closes #51198
8340
8341         * gtk/testgtk.c (create_bbox): fix up button box usage
8342
8343         * gtk/testcalendar.c (create_calendar): fix up button box usage
8344
8345         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
8346
8347         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
8348
8349         * gtk/gtkhbbox.h: deprecations
8350
8351         * gtk/gtkvbbox.h: deprecations
8352
8353         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
8354         emulate deprecated gtk_button_box_get_spacing
8355
8356         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
8357         the "set global default" functions
8358         (struct _GtkButtonBox): remove "spacing" field, use the one from 
8359         GtkBox base class
8360
8361         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
8362
8363         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
8364         render the icon, return the missing image icon.
8365
8366         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
8367         image icon if the load fails.   
8368
8369         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
8370         when no image is found; should be the Netscape "missing image"
8371         icon eventually but for now is a random image
8372
8373         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
8374         role for the session manager
8375
8376         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
8377
8378         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
8379         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
8380
8381         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
8382
8383 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
8384
8385         * gtk/*.c: marshaller fixes.
8386         
8387         * gtk/gtkmarshal.list: extreme cleanup.
8388
8389         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
8390         param spec for now.
8391
8392         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
8393         where appliable.
8394
8395         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
8396         special cased autogenerated boxed types from gtktypebuiltins_ids.c
8397         which are not reference counted:
8398         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
8399         PangoFontDescription, GtkTreeIter and GtkTreePath.
8400
8401 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
8402
8403         * gtk/gtktreeselection.h: 
8404         * gtk/gtktreemodel.c:
8405         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
8406         file should be included directly, and gobject/gmarshal.h
8407         as well as gtk/gtkmarshal.h even can't be included directly.
8408
8409         * Makefile.am: grr, install gtk-config-2.0.
8410
8411         * gtk/testgtk.c:
8412         * gtk/simple.c:
8413         * gtk/gtkmenu.c:
8414         * gtk/gtkitemfactory.c: use g_object_connect() instead of
8415         passing "*signal*::*" args to gtk_widget_set().
8416         
8417         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
8418         
8419         * gtk/*.c: removed trailer arg from property setters and getters.
8420         macro fixups.
8421
8422 2001-03-07  Alexander Larsson  <alexl@redhat.com>
8423
8424         * gtk/gtklabel.c (set_markup): Removed warning
8425
8426 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
8427
8428         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
8429         field to allow you to hide cell renderers.
8430
8431         * gtk/gtkcellrenderer.c: Add support for invisible cells.
8432
8433         * gtk/gtktreeview.c: Add support for invisible cells.
8434
8435 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
8436
8437         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
8438         Add "clicked" signal back to columns.
8439
8440         * ChangeLog: remove conflict markers.
8441
8442 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
8443
8444         * gtk/gtkbutton.c: Add animation of activation by, on 
8445         activate, pressing the button, and adding a timeout that 
8446         releases the button after 250ms or on key release and
8447         emits ::clicked. (#51501)
8448
8449         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
8450         action area, we connect to ::clicked instead of ::activate
8451         so the dialog stays up through the animation.
8452
8453 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
8454
8455         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
8456         check the ignore_enter flag for the menu shell that
8457         the item is actually a child of, not for attached
8458         submenus. (#51536)
8459
8460 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
8461
8462         * gtk/gtkmain.c (gtk_propagate_event): Only do special
8463         special key-press grab handling for widgets within
8464         GtkWindows. Otherwise, fall through to normal case.
8465
8466         This prevents key events being sent twice to GtkInvisible
8467         widgets, which can cause all sorts of mischief.
8468
8469 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
8470
8471         * gtk/gtkmain.c (gtk_propagate_event): When a grab
8472         widget is in effect, give the grab widget a first
8473         crack at KEY_PRESS/RELEASE events. (#424)
8474
8475 2001-03-06  James Henstridge  <james@daa.com.au>
8476
8477         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
8478         offset for the window_state_event to point at window_state_event
8479         rather than no_expose_event.
8480
8481 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
8482
8483         * gtk/gtkimmodule.h: fix busted /* comment */
8484
8485 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
8486
8487         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
8488         object properties.
8489
8490 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
8491
8492         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
8493         add object properties.
8494
8495         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
8496         to add object properties.
8497
8498         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
8499         object properties.
8500
8501         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
8502         add object properties.
8503
8504         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
8505         object properties.
8506
8507 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
8508
8509         * gtk/gtktreemodel.c: renamed "child_toggled" to
8510         "has_child_toggled".
8511
8512         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
8513         handle new signal name.
8514
8515         * gtk/gtktreestore.c: Updated to handle new signal name.
8516         * gtk/gtklisttore.c: Updated to handle new signal name.
8517         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
8518
8519 2001-03-05  Alexander Larsson  <alexl@redhat.com>
8520
8521         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
8522         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
8523
8524 2001-03-05  Michael Natterer  <mitch@gimp.org>
8525
8526         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
8527         pixbuf-engine coincidentially also failed to make one of it's
8528         parent_class pointers static, causing overwriting of GtkLabel's
8529         parent_class pointer in pixbuf_style_class_init().
8530         (Will commit the fix to the pixbuf-engine too).
8531
8532 2001-03-05  Alexander Larsson  <alexl@redhat.com>
8533
8534         * gdk/gdkwindow.h:
8535         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
8536         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
8537         gdk_window_set_icon_list for net wmspec functionality.
8538
8539         * gdk/x11/gdkwindow-x11.c:
8540         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
8541         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
8542         gdk_window_set_icon_list.
8543         Added gdk_wmspec_change_state helper function and used it in the code.
8544         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
8545
8546         * gtk/gtkdialog.c (gtk_dialog_init):
8547         Set GDK_WINDOW_TYPE_HINT_DIALOG.
8548
8549         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
8550         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
8551
8552         * gtk/gtkwindow.c:
8553         new function gtk_window_set_type_hint.
8554         On realize, set type hint and modal hint.
8555
8556         * gtk/gtkwindow.h:
8557         Added type_hint field and gtk_window_set_type_hint.
8558
8559 2001-03-05  Alexander Larsson  <alexl@redhat.com>
8560
8561         * gtk/gtklabel.[ch]:
8562         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
8563         New function gtk_label_get_accel_keyval () to get the underline accelerator
8564         of the label. Setting the label pattern overrides other attributes.
8565
8566 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
8567
8568         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
8569         Added missing initializers to gtk_rc_style_init().
8570
8571 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
8572
8573         * gtk/gtktextview.c: fixed bug #51097 about setting 
8574         gtk_text_view_set_border_window_size() if the widget is 
8575         already realized.
8576
8577 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
8578
8579         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
8580
8581         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
8582         comment. Won't do to have duplicated doc comments between
8583         the platform subdirs.
8584
8585 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
8586
8587         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
8588           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
8589
8590         Detectable auto-repeat - make a repeating key generate
8591         press/press/press/release instead of press/release pairs.
8592
8593         If we have Xkb and XkbSetDectableAutoRepeat supports
8594         that, we do it that way. Otherwise, when we get
8595         a release event, we check ahead with XPending to see
8596         if the next key is a KeyPress with the same keycode
8597         and timestamp. (Not 100% reliable, but pretty close.)
8598           
8599 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
8600         
8601         * gtk/gtkmain.c (gtk_propagate_event): Only do special
8602         special key-press grab handling for widgets within
8603         GtkWindows. Otherwise, fall through to normal case.
8604  
8605         This prevents key events being sent twice to GtkInvisible
8606         widgets, which can cause all sorts of mischief.
8607  
8608 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
8609  
8610         * gtk/gtkmain.c (gtk_propagate_event): When a grab
8611         widget is in effect, give the grab widget a first
8612         crack at KEY_PRESS/RELEASE events. (#424)
8613  
8614 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
8615
8616         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
8617         to extend the selection. (Roughly based on patch
8618         from Jay Cox, #50939)
8619
8620         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
8621         to properly handle previous GDK_BUTTON_PRESS. 
8622         (Patch from Jay Cox, #50938)
8623
8624         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
8625         '\0' back along with the deleted text. (#51148)
8626
8627 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
8628
8629         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
8630         the group when extracting it from the X keyboard event.
8631
8632         * modules/input/Makefile.am modules/input/imipa.c: 
8633         Simple module for entering IPA. (Do we need a 
8634         gtk-stupid-input-tricks CVS module?)
8635
8636 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
8637
8638         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
8639         const.
8640
8641         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
8642
8643         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
8644         is no focus widget for the dialog currently, grab the focus as well
8645         as the default.
8646
8647         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
8648         the action area's children to iterate through, not the
8649         dialog's children.
8650
8651 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
8652
8653         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
8654         Add plug-socket tests. (Won't work worth a darn until I commit
8655         the rest of the plug-socket changes, but no reason these
8656         can't go into CVS now.)
8657
8658 2001-03-02  Havoc Pennington  <hp@redhat.com>
8659
8660         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
8661         _gdk_region_get_xrectangles()
8662
8663         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
8664
8665         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
8666
8667         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
8668         function, contributed by Ron Steinke    
8669
8670         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
8671         gdk_net_wm_supports
8672
8673         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
8674         New function, contributed by Ron Steinke
8675
8676         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
8677         used to line up the text in the entry when using the entry for
8678         editable sheet cell hacks
8679
8680         * gtk/testgtk.c (create_entry): test the activate_default setting
8681         on GtkEntry
8682
8683         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
8684         cause the entry to activate the default button for a dialog when 
8685         activated
8686         (gtk_entry_get_activates_default): new function
8687
8688 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
8689
8690         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
8691         Hwang to move call to sync_selection() up a few lines
8692         to before the row list is modified, to fix crash when
8693         removing rows in the undo_selection list.
8694
8695         (Test case provided by Daniel Elstner:
8696
8697         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
8698
8699 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
8700
8701         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
8702         of tree->root_tree in parent_set rather than _map(), 
8703         fixing #50892 in a bit better manner.
8704
8705 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
8706
8707         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
8708
8709 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
8710
8711         * gtk/gtkstyle.c : Remove duplicate fwd decl for
8712         gtk_default_draw_shadow.
8713
8714 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
8715
8716         * gdk/gdkimage.c (gdk_image_new): Remove excess 
8717         warning, make warnings more verbose, treat a error
8718         in shmat as permanent, and don't try again.
8719         (#51163, Ed Randall.)
8720
8721 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
8722
8723         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
8724         delay for the first click before starting to scroll.
8725         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
8726
8727         * gtk/gtktext.c: GtkText should have I-beam cursor. 
8728         (based on gtk-enf-990513-1.patch, Eric Fisher.)
8729
8730 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
8731
8732         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
8733         cleanup to remove some references to unused
8734         ->xoffset, ->yoffset.
8735
8736 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
8737
8738         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
8739         mask. (#51039, fix from Martin Maierhofer)
8740
8741 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
8742
8743         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
8744         for unshifted + and shifted = for non-us keyboards.
8745         Make <Control>+ and <Control>- work as well as 
8746         <Control>KP_Plus, <Control>KP_Minus for recursive
8747         open/close.  (#2682, René Seindal)
8748
8749 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
8750
8751         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
8752         the active menu item before deactivating the menu,
8753         so gtk_menu_popdown doesn't change the history. (#50964)
8754         
8755 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
8756
8757         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
8758         draw lines with text_gc rather than black_gc.
8759         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
8760
8761 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
8762
8763         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
8764         Move handling of buttons fully in gtktreeviewcolumn.  This code is
8765         less interrelated then it was, but it still requires the
8766         GtkTreeView to map it.
8767
8768         * test/testtreecolumn.c: Now I can add a column to one view,
8769         remove it, add it to the another view, remove it, then re-add it
8770         to the first.  Nifty.
8771
8772 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
8773
8774         * docs/tutorial/gtk-tut.sgml: Minor corrections
8775
8776 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
8777
8778         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
8779         GtkRowReference.
8780
8781 2001-02-28  Havoc Pennington  <hp@redhat.com>
8782
8783         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
8784         draw_default
8785         (gtk_widget_draw_focus): remove this function; we could instead
8786         make it just gtk_widget_draw(), but in most cases I think the
8787         result would be broken user code, so think it's better to have
8788         that code not compile and get fixed
8789         (gtk_widget_draw_default): ditto
8790
8791         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
8792         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
8793         
8794         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
8795         widgets lose/get the default, instead of calling draw_default
8796         
8797         * docs/Changes-2.0.txt: note about all this
8798
8799         Then fixed every widget in GTK, I won't list all the filenames.
8800
8801 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
8802
8803         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
8804         _gtk_tree_row_reference_deleted.
8805         (inserted_callback): Proxy out to
8806         _gtk_tree_row_reference_inserted.
8807         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
8808         get around signal emission ordering problem.
8809
8810         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
8811         fix to work with SINGLE 
8812         (_gtk_tree_selection_internal_select_node): Major sanitization on
8813         selections.  SINGLE now seems to work.
8814
8815         * tests/Makefile.am: add testtreecolumn.c:
8816
8817         * tests/testtreecolumn.c: New test.  Mostly points out selection
8818         bugs currently, but will test columns later.
8819
8820         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
8821         selection bug.  I hate touching this code -- it's scary.
8822
8823 2001-02-26  Havoc Pennington  <hp@redhat.com>
8824
8825         * gtk/testgtk.c: test the window state stuff
8826
8827         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
8828         window come to the user's attention as if it were just created
8829         (gtk_window_iconify): new function
8830         (gtk_window_deiconify): new function
8831         (gtk_window_stick): new function
8832         (gtk_window_unstick): new function
8833         (gtk_window_maximize): new function
8834         (gtk_window_unmaximize): new function
8835
8836         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
8837
8838         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
8839
8840         * gdk/x11/gdkevents-x11.c: create window state events when
8841         appropriate
8842         (gdk_wmspec_supported): new function
8843
8844         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
8845         iconification before showing the window
8846         (gdk_window_deiconify): new function
8847         (gdk_window_stick): new function
8848         (gdk_window_unstick): new function
8849         (gdk_window_maximize): new function
8850         (gdk_window_unmaximize): new function
8851
8852         * gdk/gdkwindow.c: store the window state in the window; 
8853         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
8854         window->mapped.
8855         (gdk_window_get_state): return the current window state
8856
8857         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
8858         (gdk_event_get_state): handle GDK_WINDOW_STATE
8859         (gdk_synthesize_window_state): function to create the window state
8860         events
8861
8862         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
8863         event, for changes to "window state" such as maximized, sticky, 
8864         etc.
8865         
8866         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
8867         focuses a window
8868
8869         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
8870         finds out if we support a given WM spec hint
8871
8872 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
8873
8874         * docs/faq/gtk-faq.sgml: New question re memory leaks.
8875
8876 2001-02-25  Hans Breuer  <hans@breuer.org>
8877
8878         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
8879         cause we want to loose those prototypes only in the latter case
8880
8881         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
8882         GdkPixmapImplWin32 because it itsn't derived from it. Use the
8883         impl member variable instead
8884
8885         * gtk/gtk.def : updated
8886
8887         * gtk/gtklist.c : 
8888         * gtk/gtkmenus.c : include <string.h> for memset ()
8889
8890         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
8891         for everthing built here, but for gtk-x.x.dll only. This solves
8892         problem of indifferent gtk type definitions
8893
8894 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
8895
8896         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
8897
8898 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
8899
8900         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
8901         column that is exposed.
8902
8903         (_gtk_tree_view_update_size): Changed name from set_size, and
8904         changed function to do more work, and not force people calling it
8905         to figure out the size.  Simplifies a lot of code elsewhere.
8906
8907 2001-02-23  Alexander Larsson  <alexl@redhat.com>
8908
8909         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
8910         return solid masks for xpms that have no transparent color.
8911         This makes the ..._create_from_xpm... API backwards
8912         compatible.
8913
8914 2001-02-23  Tor Lillqvist  <tml@iki.fi>
8915
8916         * README.win32: Update. Mention the gtk-1-3-win32-production
8917         branch.
8918
8919         * gdk/win32/bdfcursor.c: New file. A program that generates
8920         xcursors.h. Thanks to Stefan Ondrejicka.
8921
8922         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
8923         compact format.
8924
8925         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
8926
8927         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
8928         function, uses xcursors.h.
8929         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
8930         cursor from inline data instead of using LoadCursor() to generate
8931         it from a resource.
8932
8933         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
8934         event, must check the Windows message for mouse button state, as
8935         the GDK event state might not have been built if it is
8936         undelivered. Remove one goto.
8937
8938         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
8939         SetCursor() if the current cursor as returned by GetCursor() is
8940         the window's previous cursor. The ChildWindowFromPoint() test
8941         apparently didn't work correctly.
8942
8943         * gdk/win32/rc/*.cur: Remove.
8944
8945         * gdk/win32/rc/gdk.rc.in: Remove cursors.
8946
8947         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
8948
8949         * gtk/makefile.{mingw,msc}.in: Updates.
8950
8951 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
8952
8953         * gtk/gtktreemodel.h: add functions for signal emission.
8954
8955         * gtk/gtktreestore.c: move to use above functions instead of
8956         g_signal_emit.
8957
8958         * gtk/gtkliststore.c: ditto
8959
8960 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
8961
8962         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
8963         GObject instead of GtkObject.
8964
8965         * gtk/gtkliststore.c: ditto.
8966
8967         * gtk/gtktreemodelsort.c: ditto.
8968
8969         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
8970         GtkTreeModelIface, instead of in each model.
8971
8972 2001-02-21  Havoc Pennington  <hp@redhat.com>
8973
8974         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
8975         unbreak this function
8976
8977         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
8978         properties
8979
8980         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
8981         properties
8982
8983         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
8984         properties
8985
8986         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
8987         mean unset the max length
8988
8989 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
8990
8991         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
8992         Changed name to be set_cell_data_func to make it clear what
8993         the functino does.  Close bug #51069.
8994
8995 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
8996
8997         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
8998         have memory actually freed.  Keeps box running longer.
8999
9000 2001-02-21  Alexander Larsson  <alexl@redhat.com>
9001         
9002         * gtk/gtkseparatormenuitem.[ch]:
9003         Added new menu separator item. The drawing and size handling
9004         is still done in GtkMenuItem, but the API is a bit more sane.
9005         
9006         * gtk/Makefile.am:
9007         Add gtkseparatormenuitem.[ch].
9008
9009         * gtk/gtk.h:
9010         Add gtkseparatormenuitem.h.
9011         
9012         * gtk/gtkentry.c:
9013         * gtk/gtkmenufactory.c:
9014         * gtk/gtktextview.c:
9015         Use the new API for menu separators.
9016         
9017         * demos/gtk-demo/menus.c (create_menu):
9018         Add some GtkSeparatorMenuItem demo code.
9019
9020 2001-02-20  Havoc Pennington  <hp@redhat.com>
9021
9022         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
9023         Lee Mallabone
9024
9025         * gtk/gtkarrow.c: Convert to new property API, patch from 
9026         Lee Mallabone
9027
9028 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
9029
9030         * tests/testtreeview.c (toggled_callback): fix to reflect change
9031         in GtkTreeModelStore.
9032
9033 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
9034
9035         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
9036         function to create an icon set from a pixbuf.
9037
9038 2001-02-20  Alexander Larsson  <alexl@redhat.com>
9039
9040         * gtk/gtkcellrenderertext.[ch]:
9041         Add a "markup" property.
9042
9043         * gtk/treestoretest.c:
9044         Use the markup property, remove some leftover stuff from
9045         GtkTreeModelMapping.
9046
9047 2001-02-20  Alexander Larsson  <alexl@redhat.com>
9048
9049         * gtk/gtklabel.c (gtk_label_set_selectable):
9050         Queue a redraw if the selectable setting was changed.
9051
9052 2001-02-20  Alexander Larsson  <alexl@redhat.com>
9053
9054         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
9055         Actually copy the whole gc, not just the public parts.
9056         
9057         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
9058         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
9059         labels.
9060
9061 2001-02-19  Havoc Pennington  <hp@pobox.com>
9062
9063         * gdk/gdkwindow.c: docs
9064
9065         * gdk/gdkrgb.c: docs
9066
9067         * gdk/gdkregion-generic.c: docs
9068
9069         * gdk/gdkgc.c (gdk_gc_set_values): docs
9070
9071         * gdk/gdkdraw.c: docs
9072
9073         * gdk/gdkdrawable.h: deprecate drawable get/set data
9074
9075 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
9076
9077         * demos/gtk-demo/dialog.c: Add simple new demo.
9078
9079 2001-02-19  Havoc Pennington  <hp@redhat.com>
9080
9081         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
9082         insert_child_anchor signal, bug #50245
9083
9084         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
9085         from create_child_anchor, so the anchor is passed in
9086
9087         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
9088         (_gtk_widget_segment_new): have the child anchor object passed in, 
9089         instead of creating it.
9090
9091         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
9092         to gtk_text_buffer_get_modified
9093
9094 2001-02-19  Havoc Pennington  <hp@redhat.com>
9095
9096         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
9097         changed GLib without fixing GTK
9098
9099         * gtk/gtkrange.h: Rename all the stupid implementation detail 
9100         functions to have an underscore in front. Most of them should 
9101         probably just go away, but for starters don't export them.
9102         Bug #50482
9103
9104 2001-02-19  Havoc Pennington  <hp@redhat.com>
9105
9106         * gdk/gdkcolor.h: test was backward, so deprecated functions were
9107         excluded by default
9108
9109         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
9110         clean up the old code a bit
9111
9112         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
9113         inconsistent state
9114
9115         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
9116         draw inconsistent state
9117
9118         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
9119         (create_menu): add inconsistent test
9120
9121         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
9122         new function
9123         (gtk_check_menu_item_get_inconsistent): new function
9124         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
9125         state (using etched in for now)
9126
9127         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
9128         draw inconsistent state
9129
9130         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
9131         function, used when the user has selected a range of stuff in
9132         different states
9133         (gtk_toggle_button_get_inconsistent): accessor for that
9134         (gtk_toggle_button_paint): draw inconsistent state (etched in?
9135         don't know what else to do)
9136
9137 2001-02-19  Hans Breuer <hans@breuer.org>
9138
9139         * gtk/gtk.def : updated exported symbols
9140
9141         * gtk/makefile.msc.in : updated
9142
9143         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
9144         a colormap, when invoked from testgtk::entry. I'm not sure where
9145         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
9146         avoids immediate crashing ...
9147
9148         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
9149         any objections ?
9150
9151         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
9152         0 parameter. At least msvc doesn't like macros with var args. 
9153         I simply removed the extra 0, was it a feature or a typo ?
9154
9155         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
9156         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
9157         because the value assignment to the internal struct wasn't working.
9158         I'm not absolutely sure. The problem could have been resolved by
9159         changing the "func" declartion in the struct, but was the pointer
9160         to the function pointer intended ?
9161
9162         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
9163
9164         * gdk/gdk.def : updated exported symbols
9165
9166         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
9167         only use SetDIBitsToDevice if there is a palette at the drawable
9168         and the image is GDK_VISUAL_PSEUDO_COLOR
9169
9170         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
9171
9172         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
9173
9174         * gdk/*/makefile.msc : updated
9175
9176 2001-02-19  Havoc Pennington  <hp@redhat.com>
9177
9178         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
9179         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
9180
9181         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
9182         (gdk_key_repeat_restore): nuke
9183
9184         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
9185         (gdk_init_check): no atexit func
9186
9187         * gdk/gdkrgb.h: mark some stuff deprecated
9188
9189         * gdk/gdkcolor.h: mark some stuff deprecated
9190         
9191         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
9192
9193         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
9194
9195 2001-02-16  Havoc Pennington  <hp@redhat.com>
9196
9197         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
9198         scroll steps.
9199
9200         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
9201         steps, and add Ctrl-arrow shortcuts for paging visually as with
9202         HScale, since Page Up and Page Down move logically.
9203
9204         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
9205         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
9206         
9207         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
9208         steps
9209         (gtk_range_scroll): handle the visual steps
9210
9211         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
9212         scroll steps
9213
9214         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
9215         steps, not the logical ones.
9216
9217         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
9218         (scroll_vertical): handle up/down steps
9219
9220 2001-02-19 Alexander Larsson  <alexl@redhat.com>
9221
9222         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
9223         Copy data and free data with free().
9224
9225         * gdk-pixbuf/gdk-pixbuf.c:
9226         * gdk-pixbuf/io-jpeg.c:
9227         * gdk-pixbuf/io-png.c:
9228         Use g_try_malloc/g_free instead malloc/free.
9229         
9230         * gdk-pixbuf/test-gdk-pixbuf.c:
9231         Must... initialize... gobject...
9232         
9233         * gdk-pixbuf/pixops/timescale.c:
9234         * gtk/gtkcalendar.c:
9235         Use g_malloc instead of malloc.
9236         
9237 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
9238
9239         * gtk/testgtkrc:
9240         Comment out property assignments, these don't work yet.
9241
9242 2001-02-17  Havoc Pennington  <hp@pobox.com>
9243
9244         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
9245         bit.
9246
9247 2001-02-17  Havoc Pennington  <hp@pobox.com>
9248
9249         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
9250         shadowed variables that had broken size request in some cases,
9251         leading to bogus tooltips (#50996)
9252
9253 2001-02-06  Jon K Hellan  <hellan@acm.org>
9254
9255         Implement fast browsing of tooltips, bug #50619
9256         
9257         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
9258         and last_popdown
9259         
9260         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
9261         use_sticky_delay and last_popdown.
9262         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
9263         time of popdown.
9264         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
9265         is NULL.
9266         (gtk_tooltips_recently_shown): New static function.  Return true
9267         if < sticky_delay has elapsed since last popdown.
9268         (gtk_tooltips_event_handler): Display window after sticky_delay
9269         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
9270         since last popdown.
9271         
9272 2001-02-17  Havoc Pennington  <hp@pobox.com>
9273
9274         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
9275         instead of (). #6394
9276
9277         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
9278         G_CONST_RETURN, make it return by reference, #50473
9279         
9280 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
9281
9282         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
9283         generated ENTER_NOTIFY event with 0, otherwise not explicitely
9284         setup fields contain garbage (e.g. subwindow, breaking
9285         gdk_drawable_ref() upon event copy).
9286         (gtk_menu_stop_navigating_submenu_cb): same here.
9287
9288         * gtk/gtklist.c (gtk_list_vertical_timeout): 
9289         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
9290         * gtk/gtkclist.c (vertical_timeout): 
9291         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
9292         default-zero-intialization for unions to memset(,0,), as unions are
9293         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
9294         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
9295
9296         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
9297         g_closure_sink() warning.
9298
9299         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
9300         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
9301         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
9302         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
9303         
9304 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
9305
9306         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
9307         gtk_*_store_get, and moved to GtkTreeModel.
9308
9309         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
9310
9311         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
9312
9313         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
9314
9315         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
9316         set the func.
9317
9318         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
9319         freeze/thaw notify between setting all the properties for a cell.
9320
9321         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
9322
9323 2001-02-15  Havoc Pennington  <hp@redhat.com>
9324
9325         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
9326         the X coordinates so they're with respect to the line, rather than 
9327         with respect to the layout.
9328
9329         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
9330         Mallabone
9331
9332         * gtk/testgtk.c (create_range_controls): add vscale tests, 
9333         and inverted test
9334
9335         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
9336         #50806
9337
9338         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
9339
9340         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
9341         gtk_text_iter_is_end
9342
9343         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
9344         rename gtk_text_buffer_get_end_iter
9345
9346         * gtk/testgtk.c (create_labels): Add test for selectable
9347
9348         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
9349         the selection stuff. This code is kind of broken since it doesn't 
9350         use the theme engine.
9351
9352         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
9353         fix infinite loop and y offset problem
9354         (gdk_draw_layout_line_with_colors): fix foreground color handling
9355
9356         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
9357         that makes the label selectable.
9358         
9359         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
9360         layout when the style is set, since fonts etc. could have changed.      
9361
9362 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
9363
9364         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
9365
9366         * gtk/gtktreemodelsimple.[ch]: removed.
9367
9368 2001-02-16  Alexander Larsson  <alexl@redhat.com>
9369
9370         * gtk/gtktreemodelmapping.[ch]:
9371         New files. Implement GtkTreeModelMapping.
9372         
9373         * gtk/Makefile.am:
9374         Add gtktreemodelmapping.[ch].
9375         
9376         * gtk/gtk.h:
9377         Add gtktreemodelmapping.h
9378
9379         * gtk/treestoretest.c:
9380         Test the GtkTreeModelMapping
9381
9382 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
9383
9384         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
9385         have a demo, we might as well pass in real values.  Thanks to
9386         clahey for pointing this out.
9387
9388 2001-02-14  Havoc Pennington  <hp@pobox.com>
9389
9390         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
9391         "static" to a private function
9392         (gtk_image_menu_item_class_init): remove destroy handler,
9393         add "image" object property
9394
9395 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
9396
9397         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
9398         Add a shortcut if the window and the current clip_region doesn't
9399         overlap. This is needed when there are a lot of windows in a
9400         window. The layout test in testgtk is a good test.
9401
9402         * gdk/linux-fb/gdkwindow-fb.c:
9403         Whitespace fix.
9404
9405 2001-02-13  Sven Neumann  <sven@convergence.de>
9406
9407         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
9408
9409 2001-02-13  Alexander Larsson  <alexl@redhat.com>
9410
9411         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
9412         Don't reference last_cursor if it is null. Fixes crash when rotating
9413         the screen before having moved the mouse.
9414
9415         * gdk/linux-fb/gdkcc-fb.c: Zapp!
9416
9417         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
9418
9419         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
9420         when using 90 or 270 degrees rotation.
9421
9422 2001-02-12  Havoc Pennington  <hp@pobox.com>
9423
9424         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
9425         it always set the foreground, even if we were only using
9426         a stipple.
9427         (gdk_draw_layout_line_with_colors): new function, allow
9428         override colors
9429         (gdk_draw_layout_with_colors): new function, allow override
9430         colors
9431         (gdk_pango_layout_line_get_clip_region): function to get the clip
9432         region for a logical text range
9433         (gdk_pango_layout_get_clip_region): get the clip region for a
9434         logical text range
9435
9436         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
9437         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
9438         the right number of arguments.
9439
9440         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
9441         enhance the function to check that node data corresponds to a 
9442         view still belonging to the tree.
9443
9444         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
9445         GtkTreePath
9446         (gtk_tree_view_inserted): ditto
9447         (gtk_tree_view_child_toggled): ditto
9448
9449         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
9450         simplify this code.
9451
9452         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
9453         a PangoAttrList
9454
9455         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
9456
9457         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
9458
9459         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
9460         size in the size request 
9461         (gtk_menu_bar_size_allocate): consider toggle size here
9462
9463         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
9464         that displays a widget in the toggle slot
9465
9466         * gtk/testgtk.c: test GtkImageMenuItem
9467
9468         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
9469         
9470         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
9471         request and allocation
9472
9473         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
9474
9475         * gtk/gtkcheckmenuitem.c
9476         (gtk_check_menu_item_toggle_size_request): ditto
9477         
9478 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
9479
9480         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
9481         reference.
9482
9483         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
9484         and refuse to initialize GTK+ if they fail.
9485
9486 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
9487
9488         * configure.in: Add check for gtk-doc version.
9489
9490 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
9491
9492         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
9493         where the xpad/ypad was only being used on one side!
9494
9495 2001-02-11  Tor Lillqvist  <tml@iki.fi>
9496
9497         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
9498         function, copied from X11 version.
9499
9500         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
9501         DestroyCursor failures. The reason for the problem (despite the
9502         inconsistent messages from GetLastError()) was that
9503         DestroyCursor() cannot be called while a cursor is set in a
9504         window. Set the new cursor first and then destroy the old one.
9505         Thanks to jpe@archaeopteryx.com.
9506
9507         * gdk/win32/gdkcc-win32.c: Remove.
9508
9509         * gdk/win32/Makefile.am: Remove from here, too.
9510         
9511         * gdk/gdk.def
9512         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
9513
9514         * gtk/gtk.def
9515         * gtk/makefile.mingw.in: Updates.
9516
9517 2001-02-08  Havoc Pennington  <hp@redhat.com>
9518
9519         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
9520         add a widget to a bin that already has a child.
9521
9522         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
9523
9524         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
9525         
9526         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
9527
9528         * gdk/gdk.h: remove gdkcc.h
9529
9530         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
9531
9532         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
9533         GdkPixbuf, since the previous implementation was GdkColorContext
9534         dependent.
9535
9536         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
9537         
9538 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
9539
9540         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
9541         a sane value!
9542
9543 2001-02-08  Havoc Pennington  <hp@redhat.com>
9544
9545         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
9546         lighten them.
9547
9548 2001-02-08  Havoc Pennington  <hp@redhat.com>
9549
9550         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
9551         validation idle
9552
9553         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
9554         cell renderer
9555
9556         * demos/pixbuf-demo.c (timeout): remove deprecated
9557         gtk_widget_draw
9558
9559         * demos/testpixbuf-save.c (main): remove deprecated
9560         gtk_drawing_area_size
9561
9562         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
9563         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
9564         at the start of the allocation.
9565         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
9566         unsetup or NULL model.
9567
9568         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
9569         even/odd/sorted cells in the tree view.
9570
9571         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
9572         bugfixes
9573
9574         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
9575         backgrounds with draw_flat_box using different detail for even/odd
9576         rows.
9577
9578         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
9579         row, so we can draw the alternating colors thing
9580
9581         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
9582         property from a synonym property, notify for the synonym.
9583         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
9584         (gtk_text_tag_get_property): Always return the font, even if
9585         all its fields aren't set
9586
9587         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
9588         store the attr list; it leaves us with no way to change attributes
9589         in _render according to the render flags, and no way to implement
9590         get_property. Instead store all the specific text attributes. 
9591         Separate whether an attribute is enabled from its value. Sync all
9592         properties with GtkTextTag, make them all consistent, etc.
9593
9594         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
9595         renderers can highlight the sort row/column     
9596
9597         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
9598         accessor functions to get values; this has the side effect of
9599         showing up which accessor functions were missing. Added those.
9600
9601         * gtk/gtktreeviewcolumn.h: Replace set_justification with
9602         set_alignment, to be consistent with GtkLabel, GtkMisc
9603
9604         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
9605         arrow.
9606
9607         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
9608
9609         * gtk/gtktreesortable.h: updates in here
9610
9611 2001-02-07  Sven Neumann  <sven@convergence.de>
9612
9613         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
9614         pango dimensions after painting the background. We used to draw
9615         gigantic flat boxes here.
9616
9617 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
9618
9619         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
9620         error introduced with earlier commit) (pointed out by
9621         Ollie Lho)
9622
9623 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
9624
9625         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
9626         which are no longer necessary.
9627
9628 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
9629
9630         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
9631
9632 2001-02-04  Tor Lillqvist  <tml@iki.fi>
9633
9634         * gdk/gdk.def
9635         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
9636         Provide dummy implementations.
9637
9638 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
9639
9640         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
9641
9642         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
9643         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
9644         deprecated this function.
9645
9646         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
9647         argument.
9648
9649 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
9650
9651         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
9652
9653 2001-02-03  Havoc Pennington  <hp@pobox.com>
9654
9655         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
9656         Mikael Hermansson with patch from Mikael (if there was a toggle
9657         start one after the first character in the range, this function
9658         was broken). Bug #50380
9659
9660 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
9661
9662         * configure.in: Remove confusing comment about X11.
9663
9664 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
9665
9666         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
9667         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
9668         
9669 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
9670
9671         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
9672         it breaks things on BSD. If you want to compile GTK+ with
9673         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
9674         when configuring, since GTK+ simply can't be "pure ANSI" 
9675         in the header files it uses. (#8170, Greg Hudson)
9676
9677 2001-02-02  Havoc Pennington  <hp@redhat.com>
9678
9679         * gtk/gtkwindow.c: docs
9680
9681         * gtk/gtkwidget.c: docs
9682         (gtk_widget_set_colormap): add a reference to the colormap
9683         (gtk_widget_get_default_colormap): add a reference to the colormap
9684
9685         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
9686
9687         * gtk/gtktextiter.c: docs
9688
9689         * gtk/gtkmain.c (gtk_propagate_event): docs
9690
9691         * gtk/gtkpaned.c (gtk_paned_get_position): docs
9692         (gtk_paned_set_position): docs
9693
9694         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
9695         sort interface, no implementation yet.
9696
9697         * demos/testpixbuf.c (new_testrgb_window): replace
9698         gtk_drawing_area_size() with gtk_widget_set_usize()
9699
9700         * demos/testpixbuf-drawable.c (main): ditto
9701         
9702         * gtk/testgtk.c: remove use of GtkStatusbarMsg
9703
9704         * gtk/gtktextbuffer.c: docs
9705
9706         * gtk/gtkstock.c: docs
9707
9708         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
9709
9710         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
9711
9712         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
9713         
9714         * gtk/gtkimage.c: add some docs in here
9715         (gtk_image_size_request): change name of
9716         gtk_widget_render_stock_icon
9717         (gtk_image_get_icon_set): don't dup returned string
9718         (gtk_image_get_icon_set): don't dup returned string
9719
9720         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
9721         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
9722         and gtkiconfactory.h functions
9723
9724         * gtk/gtkiconfactory.c: add some docs in here
9725
9726         * gtk/gtkmain.c (gtk_get_default_language): document
9727         (gtk_get_current_event): document
9728         (gtk_get_current_event_state): document
9729         (gtk_get_event_widget): document
9730
9731         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
9732
9733         * gtk/gtkcontainer.c: Add some documentation
9734         (gtk_container_add): give a more explanatory warning on adding an
9735         already-parented widget, this is kind of a FAQ and also a common
9736         typo that's easier to debug with a nice warning 
9737
9738         * gtk/gtkcellrenderertoggle.c
9739         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
9740         adding this, it's useless
9741         (gtk_cell_renderer_toggle_set_active): remove
9742         (gtk_cell_renderer_toggle_get_radio): add
9743
9744         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
9745         the NULL cell renderer, that doesn't make any sense to me. 
9746
9747         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
9748         demo code should never use deprecated features.
9749
9750         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
9751         code should never use deprecated features.
9752
9753         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
9754         gtk_widget_queue_clear_area deprecated
9755
9756         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
9757         deprecated
9758
9759         * gtk/gtklabel.h: mark gtk_label_get() deprecated
9760
9761         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
9762         a GdkImage deprecated, replaced by new consistently-named
9763         functions       
9764
9765         * gtk/gtkmain.h: Mark gtk_exit() deprecated
9766
9767         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
9768
9769         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
9770         deprecated
9771
9772         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
9773         so it won't appear in docs and confuse people.
9774
9775         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
9776
9777         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
9778         macros deprecated. (can't mark the type itself deprecated, since
9779         GtkProgressBar is not deprecated and we need the type decl to use
9780         GtkProgressBar)
9781
9782         * gtk/gtkpixmap.h: Mark deprecated
9783
9784         * gtk/gtkoldeditable.h: Mark deprecated
9785
9786         * gtk/gtklist.h: Mark deprecated
9787
9788         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
9789         for anything anymore.
9790
9791         * gtk/gtkctree.h: Mark deprecated
9792
9793         * gtk/gtkclist.h: Mark deprecated
9794
9795         * gtk/gtkpreview.h: Mark deprecated
9796
9797         * gtk/gtkpacker.h: Mark deprecated
9798
9799         * gtk/gtktipsquery.h: Mark deprecated
9800
9801         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
9802
9803         * gtk/gtkvruler.h: Add comment that it will move out of GTK
9804
9805         * gtk/gtkhruler.h: Add comment that it will move out of GTK
9806
9807         * gtk/gtkruler.h: Add comment that it will move out of GTK
9808
9809         * gtk/gtkgamma.h: Add comment that it will move out of GTK
9810
9811         * gtk/gtkcurve.h: Add comment that it will move out of GTK
9812
9813 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
9814
9815         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
9816         gdk_colormap_sync private since it was never exported
9817         in a header file.
9818
9819         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
9820         colormap->colors[] for StaticGray, StaticColor colormaps.
9821
9822         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
9823         was being used as if it was image->bits_per_pixel.
9824
9825         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
9826         for the image in the GdkImage structure since it isn't
9827         reconstructable, and we need it to handle packed types
9828
9829         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
9830         the assumption that on Win32 image->bits_per_pixel == image->depth,
9831         always.
9832
9833         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
9834
9835         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
9836         warning message if no converter can be found. 
9837
9838 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
9839
9840         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
9841         chars to isupper() / tolower(). (#567)
9842
9843         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
9844         to clear up 64-bit warnings. (#567)
9845
9846 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
9847
9848         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
9849         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
9850
9851         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
9852         since some people set $(libdir) separately. (#1290, David Kaelbling)
9853
9854 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
9855
9856         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
9857         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
9858         MAXPATHLEN, but the code here depends on a fixed value.)
9859         (#4524)
9860
9861 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
9862
9863         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
9864         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
9865
9866 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
9867
9868         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
9869         viewable there is no way that moving the node will cause the 
9870         focus row to become not viewable, so omit check on the visibility
9871         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
9872
9873 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
9874
9875         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
9876         selection before inserting new text.
9877
9878 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
9879
9880         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
9881         Make the sensitivity of the reparented child track that of
9882         the original parent menu item. (#34218, David Hodson)
9883
9884         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
9885         the case where the current item is destroyed properly.
9886
9887         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
9888         some edge cases with child-less menuitems.
9889         
9890 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
9891
9892         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
9893         key pop down window. (#12074, Jon K Hellan)
9894
9895 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
9896
9897         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
9898         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
9899         The solution here isn't perfect - you get an extraneous
9900         emission of "toggle", which could conceivably confuse an app,
9901         but better than the current situation. LXR search seems to
9902         indicate that no apps in GNOME CVS connect to "toggle".
9903
9904 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
9905
9906         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
9907         gtk_public_h_sources to directly here to avoid warning when
9908         building srcdir != builddir. (#9656)
9909
9910 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
9911
9912         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
9913         handlers in gtkrange.c return the proper values (TRUE == handled)
9914         (#10316).
9915
9916         This is just the tip of the iceberg, but gtkrange.c is the
9917         most common place where the propagation is problematical,
9918         and also a place where it is almost certainly safe to change
9919         this in the stable branch.
9920
9921         (You don't want right click popups on a range control or anything...)
9922
9923 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
9924
9925         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
9926         area on focus out, even if a background pixmap isn't set.
9927         (#13941)
9928         
9929 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
9930
9931         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
9932         to deal with setting the shape properly when scrolling arrows are
9933         turned on, but not visible because there is sufficient space.
9934         (#13432)
9935
9936 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
9937
9938         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
9939         items with submenus, destroy the item along with the submenu.
9940         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
9941         properly.
9942
9943         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
9944         later.
9945
9946 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
9947
9948         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
9949         the focus widget sometimes wasn't drawn with the default if there
9950         was no default widget.
9951
9952         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
9953         unreference pixmaps. 
9954
9955         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
9956         for some extra safety.
9957
9958 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
9959
9960         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
9961         the text of a cell to the old pointer value better, by
9962         copying the new text before freeing the old text. Some code
9963         cleanup. (#8079, Karl Nelson)
9964
9965 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
9966
9967         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
9968         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
9969
9970 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
9971
9972         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
9973         item from a menu, check to see if it matches 
9974         menu->old_active_menu_item, and if so, unref and clear
9975         old_active_menu_item (Patch from Pavel Cisler)
9976
9977         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
9978         menu_shell->active_menu_item, if it is the child being
9979         removed. (Patch based on that of Gene Ragan, #50337)
9980
9981 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
9982
9983         * gdk/linux-fb/gdkselection-fb.c: 
9984         * gdk/linux-fb/gdkcolor-fb.c: 
9985         * gdk/linux-fb/gdkdrawable-fb2.c: 
9986         * gdk/linux-fb/gdkfont-fb.c: 
9987         * gdk/linux-fb/gdkim-fb.c: 
9988         * gdk/linux-fb/gdkinput.c: 
9989         * gdk/linux-fb/gdkkeyboard-fb.c: 
9990         * gdk/linux-fb/gdkmain-fb.c: 
9991         * gdk/linux-fb/gdkrender-fb.c: 
9992         A bunch of whitespace cleanup.
9993         
9994 2001-01-30  Havoc Pennington  <hp@pobox.com>
9995
9996         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
9997         #ifdef GTK_ENABLE_BROKEN.
9998
9999         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
10000         GTK_ENABLE_BROKEN just before including the broken headers.
10001         
10002         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
10003         deprecated types registered.
10004
10005         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
10006         we have to test the broken stuff.
10007
10008         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
10009         
10010 2001-01-30  Havoc Pennington  <hp@redhat.com>
10011
10012         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
10013         here where prev pointer was set to the wrong thing
10014
10015         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
10016         (gtk_tree_path_is_descendant): new function
10017
10018         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
10019         cached length
10020         (gtk_list_store_get_iter): don't modify iter if we can't get the
10021         path.
10022
10023         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
10024         
10025         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
10026         GtkTreeDragDest
10027
10028         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
10029         was causing segfault
10030
10031         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
10032         pointer to NULL
10033
10034         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
10035
10036         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
10037         on returning FALSE
10038         (gtk_list_store_iter_children): ditto
10039         (gtk_list_store_iter_nth_child): ditto
10040         (gtk_list_store_iter_nth_child): ditto
10041         (gtk_list_store_iter_parent): ditto
10042
10043         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
10044         on iter->user_data != NULL instead of silently accepting it.
10045         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
10046         we are returning TRUE.
10047         (gtk_tree_store_iter_children): ditto
10048         (gtk_tree_store_iter_nth_child): ditto
10049         (gtk_tree_store_iter_parent): ditto
10050         (gtk_tree_store_insert): remove handling of parent->user_data ==
10051         NULL, replace with parent == NULL       
10052
10053         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
10054         and a comment explaining things
10055
10056         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
10057         interface support to GtkTreeStore.
10058
10059         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
10060         FALSE if no prev, fix
10061
10062         * gtk/gtktreeview.c (set_source_row): use a row reference
10063         (set_dest_row): use a row reference
10064
10065 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
10066
10067         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
10068         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
10069         (gtk_tree_selection_select_iter): The same as above.
10070
10071 2001-01-26  Havoc Pennington  <hp@redhat.com>
10072
10073         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
10074         which holds a handle to a specific row (particular set of values
10075         in the model, i.e. pointer-identity row).
10076
10077         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
10078         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
10079         Still need to use it for the src/dest row saved on the drag context.
10080
10081 2001-01-26  Havoc Pennington  <hp@redhat.com>
10082
10083         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
10084
10085         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
10086         not offset by TREE_VIEW_HEADER_HEIGHT
10087         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
10088         TREE_VIEW_HEADER_HEIGHT
10089
10090         * configure.in (included_loaders): for me, --with-included-loaders
10091         generates the error "the specified loader yes does not exist",
10092         i.e. the arg defaults to "yes", so change test for value ""
10093         to test for value "yes", and include all loaders in that case.
10094
10095         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
10096
10097         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
10098         handle TREE_VIEW_VERTICAL_SEPARATOR
10099         (gtk_tree_view_bin_expose): fix to consider the row offset as
10100         pointing halfway into vertical separator.       
10101         (gtk_tree_view_draw_node_focus_rect): ditto
10102
10103         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
10104         --gtk-debug=updates, which causes gdk_window_set_debug_updates
10105         (TRUE) to be called.
10106
10107         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
10108         debug mode where the invalid region is colored in on invalidate,
10109         so you can see the flicker and know whether your redraw code is 
10110         doing a good job.
10111
10112         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
10113         tree window coordinates (clip rect is in tree window coords)
10114
10115         * gtk/Makefile.am: add gtktreednd.[hc]
10116
10117         * gtk/gtkliststore.c: implement gtktreednd interfaces.
10118
10119         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
10120         drag-and-drop data operations on a model (so we can set up tree
10121         drag-and-drop automatically)
10122
10123         * gtk/testgtk.c: Add a window to change sensitivity in the
10124         GtkLabel test; add a way to change the entry frame in GtkEntry
10125         test
10126
10127         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
10128         (gtk_entry_get_has_frame): new functions to remove the frame
10129         around an entry
10130         (gtk_entry_size_request): shrink requisition if no frame
10131         (gtk_entry_draw_focus): don't draw frame if no frame
10132
10133         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
10134         checks inside a cell renderer
10135         (gtk_default_draw_option): ditto for options
10136
10137         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
10138         children from the alignment, not the button
10139         (gtk_tree_view_column_init): ref/sink the column, to emulate
10140         GObject refcounting.
10141
10142         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
10143         
10144         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10145         Use theme functions to draw the toggles 
10146
10147         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
10148
10149         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
10150         GdkPangoAttrEmbossed to use in rendering insensitive text
10151
10152         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
10153
10154         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
10155         using new GDK features
10156         
10157 2001-01-24  Alexander Larsson  <alexl@redhat.com>
10158
10159         * gtk/gtkimage.c:
10160         Splitted gtk_image_clear into gtk_image_clear() and
10161         gtk_image_reset(). Call gtk_image_clear() in ::destroy
10162         to avoid leaks.
10163
10164         * gtk/gtklabel.c (set_markup):
10165         Don't leak text.
10166
10167         * gtk/gtktextlayout.c:
10168         Always free display->shaped_objects.
10169
10170         * gtk/testgtk.c (create_clist):
10171         Don't leak custom style.
10172
10173 2001-01-23  Alexander Larsson  <alexl@redhat.com>
10174
10175         * gtk/gtkcolorsel.c (grab_color_at_mouse):
10176         Don't leak image. Simplify using gdk_colormap_query_color().
10177         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
10178
10179         * linux-fb/gdkcolor-fb.c:
10180         Implemented gdk_colormap_query_color.
10181
10182 2001-01-23  Alexander Larsson  <alexl@redhat.com>
10183
10184         * linux-fb/gdkcursor-fb.c:
10185         Don't leak built-in cursors.
10186
10187         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
10188         Don't leak tmp_points.
10189
10190         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
10191         Don't modify desc. Don't leak font if the PangoFont
10192         isn't found.
10193         
10194         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
10195         Free dash_list.
10196
10197         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
10198         Don't leak string.
10199         
10200 2001-01-20  Havoc Pennington  <hp@pobox.com>
10201
10202         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
10203         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
10204         me, matches Pango
10205
10206 2001-01-22  Havoc Pennington  <hp@redhat.com>
10207
10208         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
10209
10210         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
10211
10212         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
10213         Remove, move back to gdk-pixbuf
10214
10215         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
10216         to all the word functions
10217
10218         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
10219         before doing anything on NULL layout or if we don't have the focus
10220
10221         * gtk/testtext.c (fill_example_buffer): "justification"
10222
10223         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
10224         to be called "justification" not "justify"
10225
10226         * demos/gtk-demo/textview.c (create_tags): "justification"
10227         
10228         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
10229
10230 2001-01-22  Alexander Larsson  <alexl@redhat.com>
10231
10232         * gdk/gdkwindow.c (gdk_window_invalidate_region):
10233         Don't leak visible_region. Use visible_region instead of region.
10234         
10235         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
10236         Don't do extra gdk_drawable_ref(). This is not X.
10237         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
10238         gdk_fb_focused_window is ref:ed.
10239         (gdk_fb_window_send_crossing_events): Watch out for destroyed
10240         windows.
10241
10242 2001-01-22  Alexander Larsson  <alexl@redhat.com>
10243
10244         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
10245         Don't leak the PangoFontDescriptor.
10246
10247 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
10248
10249         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
10250         when not realized.
10251         (gtk_tree_view_scroll_to_cell): Make work when not realized.
10252         (gtk_tree_view_realize): add scroll_to support
10253         (gtk_tree_view_finalize): add a finalize method.  Populate.
10254         (gtk_tree_view_insert_column): ref and sink the column.
10255         (gtk_tree_view_append_column): ref and sink the column.
10256         (gtk_tree_view_queue_draw_node): New function to handle redrawing
10257         individual nodes.  Should make the code much more efficient, if
10258         actually used.
10259
10260 2001-01-19  Havoc Pennington  <hp@redhat.com>
10261
10262         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
10263         byte_offset variable was being used to mean both "offset into
10264         layout" and "offset into buffer line" which was no longer true
10265         with addition of preedit string; fix
10266
10267 2001-01-19  Havoc Pennington  <hp@redhat.com>
10268
10269         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
10270
10271         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
10272         function
10273
10274         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
10275         implement
10276
10277         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
10278         scroll_to_cell, matches TextView scroll functions better
10279         (gtk_tree_view_tree_to_widget_coords): new function
10280         (gtk_tree_view_widget_to_tree_coords): new function
10281         (gtk_tree_view_get_visible_rect): new function
10282         (gtk_tree_view_get_path_at_pos): accept negative coordinates
10283         (gtk_tree_view_draw_node_focus_rect): new function moved from
10284         draw_focus, also, use width of bin_window as width of the focus
10285         rect
10286         (gtk_tree_view_expand_row): fix bug where it didn't recognize
10287         already-expanded rows
10288         (gtk_tree_view_get_cell_rect): new function
10289         (gtk_tree_view_get_path_at_pos): return the click position
10290         relative to the passed-in cell
10291         (gtk_tree_view_set_expander_column): new function
10292
10293         * configure.in: remove gtk-config-2.0 chmod
10294
10295         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
10296         and properly handle drags with targets we don't understand
10297         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
10298         scrolling anyway
10299         (gtk_text_view_drag_drop): stop scrolling here though, and set the
10300         mark invisible
10301
10302         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
10303         function
10304         (gtk_drag_dest_get_target_list): new function
10305         (gtk_drag_dest_set_target_list): new function
10306         
10307         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
10308
10309         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
10310         related to drag-and-drop
10311
10312 2001-01-19  Alexander Larsson  <alexl@redhat.com>
10313
10314         * gdk/linux-fb/gdkprivate-fb.h:
10315         Define EMULATE_GDKFONT.
10316         Add extra pango_font stuff to GfkFontPrivate.
10317         
10318         * gdk/linux-fb/gdkdrawable-fb2.c:
10319         * gdk/linux-fb/gdkfont-fb.c:
10320         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
10321         emulation using PangoFont.
10322
10323 2001-01-17  Havoc Pennington  <hp@pobox.com>
10324
10325         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
10326         all the non-deprecated set_foo functions. Added missing object
10327         properties, and added g_object_notify() to setters. 
10328         Wrote docs.
10329         
10330 2001-01-18  Tor Lillqvist  <tml@iki.fi>
10331
10332         * gtk/gtkmain.c
10333         * gtk/gtkrc.c: (Win32) Use the new
10334         g_win32_get_package_installation_(sub)directory() functions.
10335
10336         * config.h.win32.in: New file.
10337         
10338         * config.h.win32: Removed.
10339
10340         * configure.in: Output config.h.win32.
10341
10342         * Makefile.am: Add it to EXTRA_DIST.
10343
10344         * gtk/gtk.def: Update.
10345
10346 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
10347
10348         * gtk/gtklabel.c (gtk_label_size_request): Set the
10349         attributes onto the PangoLayout even if they are newly
10350         created from label->pattern.
10351
10352 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
10353
10354         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
10355
10356         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
10357         structures in functions. Fixes bug where gtk_dataset_*
10358         was accidentally still being used in one place, causing
10359         every dest side event to be treated independently.
10360
10361         * gtk/gtkdnd.c: Remove last vestages of handling
10362         ::draw (fixes warning)
10363         
10364         * gtk/gtkentry.[ch]: Add drag and drop support.
10365
10366         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
10367         new function gtk_check_drag_threshhold() for checking
10368         to check if (dx,dy) has exceeded the threshhold for starting
10369         a drag and use it everywhere.
10370
10371 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
10372
10373         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
10374         add -I{includedir}/gtk-2.0.
10375
10376         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
10377         gdk/gdk-pixbuf.h: Doc fixups.
10378         
10379         * gtk/gtkobject.h: Remove trailing , from enum
10380
10381 2001-01-17 Alexander Larsson <alexl@redhat.com> 
10382
10383         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
10384         Doh! Mixed up x and y.
10385
10386         * gdk/linux-fb/gdkglobals-fb.c:
10387         Removed gdk_fb_pointer_grab_window_events,
10388         added _gdk_fb_pointer_grab_owner_events and
10389         _gdk_fb_keyboard_grab_owner_events.
10390
10391         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
10392         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
10393         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
10394         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
10395         Send crossing events after ungrab finished.
10396         (gdk_keyboard_grab): Set ..._owner_events
10397         (type_masks): Move out of function.
10398         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
10399         gdk_fb_keyboard_event_window): New functions, return the
10400         window an event should be targeted at. Handles grabs and
10401         event propagation. Can return NULL.
10402         (gdk_event_make): Remove event_mask checking. Now always
10403         returns an event.
10404                 
10405         * gdk/linux-fb/gdkkeyboard-fb.c:
10406         * gdk/linux-fb/gdkproperty-fb.c:
10407         * gdk/linux-fb/gdkselection-fb.c:
10408         Use new event_window/gdk_event_make() behaviour.
10409         
10410         * gdk/linux-fb/gdkmouse-fb.c:
10411         Use new event_window/gdk_event_make() behaviour.
10412         Only send motion events if in the same window.
10413         If grabbed, use cursor from window if sibling of grabbed
10414         window, and cursor from grabbed window otherwise.
10415
10416         * gdk/linux-fb/gdkprivate-fb.h:
10417         Update gdk_fb_window_send_crossing_events, gdk_event_make
10418         and grab varaible declarations. Add gdk_fb_*_event_window().
10419
10420         * gdk/linux-fb/gdkwindow-fb.c:
10421         Use new event_window/gdk_event_make() behaviour.
10422         Keep correct track of focus window.
10423         (gdk_window_set_events): Set all specific button motion masks
10424         if GDK_BUTTON_MOTION_MASK set.
10425
10426         * gtk/gtkdnd.c (gtk_drag_update):
10427         Free info->last_event if gdk_drag_motion returned FALSE.
10428
10429 2001-01-16  Tor Lillqvist  <tml@iki.fi>
10430
10431         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
10432         Eliminate redraws when input-only windows are shown or
10433         hidden. Thanks to jpe@archaeopteryx.com.
10434
10435 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
10436
10437         * docs/faq/gtk-faq.sgml: FAQ update:
10438           - Update to bugzilla
10439           - Add GTK+ and security/SUID/SGID
10440           - Add DnD question
10441
10442 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
10443
10444         * gdk/linux-fb/gdkdnd-fb.c:
10445         Some cleanups.
10446         
10447 2001-01-15  Havoc Pennington  <hp@pobox.com>
10448
10449         * tests/testtreeview.c: add test stuff for CellRendererToggle
10450
10451         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
10452         accessor
10453
10454         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
10455         only toggle on button press (would do release like GtkButton, but
10456         we'd need implicit grab code for treeview cells)
10457
10458 2001-01-16  Tor Lillqvist  <tml@iki.fi>
10459
10460         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
10461
10462         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
10463         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
10464
10465         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
10466         to g_{locale,filename}_{to,from}_utf8 to match current API.
10467
10468         * gtk/makefile.msc.in (gtk_OBJECTS)
10469         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
10470
10471         * gtk/gtk.def: Update.
10472
10473 2001-01-15  Tor Lillqvist  <tml@iki.fi>
10474
10475         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
10476         implementaion that more closely mimics the events that an X server
10477         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
10478         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
10479         with nested preview widgets, for instance, more responsive when
10480         you move the mouse quickly into them.
10481         (find_window_for_pointer_event): Make it actually compile.
10482         (gdk_event_translate): Set send_event to the value of
10483         InSendMessage (). This doesn't really mean the same as X11's
10484         send_event flag, but is close enough, says jpe@archaeopteryx.com
10485
10486 2001-01-15  Alexander Larsson  <alexl@redhat.com>
10487
10488         * gdk/linux-fb/gdkdnd-fb.c:
10489         Implemented drag and drop.
10490         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
10491         when it tries to free and then copy the same event (info->last_event).
10492         I am not sure about why this happens, but will continue looking.
10493
10494 2001-01-15  Alexander Larsson  <alexl@redhat.com>
10495
10496         * gdk/linux-fb/gdkwindow-fb.c:
10497         Use gdk_window_invalidate_rect instead of
10498         gdk_window_invalidate_rect_clear to minimise flashing.
10499         When hiding windows you need to clear the root window though.
10500
10501 2001-01-15  Alexander Larsson  <alexl@redhat.com>
10502
10503         * gdk/linux-fb/gdkdrawable-fb2.c:
10504         For optization, add an full_shapes argument to gdk_fb_clip_region.
10505         If this is false, only the cliprects of the shapes are used.
10506
10507         * gdk/linux-fb/gdkprivate-fb.h:
10508         Export gdk_fb_window_peek_shape.
10509         Add full_shapes to gdk_fb_clip_region.
10510
10511         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
10512         When moving a window, don't clear everything under the it, just the
10513         root window. Makes stuff faster and flash less.
10514         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
10515         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
10516         offset of the shape.
10517         
10518
10519 2001-01-12  Havoc Pennington  <hp@redhat.com>
10520
10521         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
10522         current invalid region, fixes redraw bug while scrolling the 
10523         text widget
10524
10525         * gtk/gtktextview.c, gtk/gtktextview.h:
10526         Rearrange the scrolling/validation/etc. code in a major way, 
10527         so it seems to make sense to me. Probably isn't genuinely that
10528         much better, but...
10529
10530         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
10531         notifies
10532
10533         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
10534
10535 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
10536
10537         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
10538         Hide mouse pointer while rotation. Show it afterwards.
10539
10540 2001-01-12  Alexander Larsson  <alexl@redhat.com>
10541
10542         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
10543         windows in consideration when generating clip region.
10544
10545         * gdk/linux-fb/gdkfb.h:
10546         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
10547
10548         * gdk/linux-fb/gdkprivate-fb.h:
10549         Add shape to GdkWindowFBDatat.
10550         exported gdk_fb_window_get_abs_shape().
10551         removed gdk_fb_draw_lines declaration.
10552
10553         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
10554         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
10555         send focus changes when there is a grabbed window.
10556         (gdk_window_get_pointer): Handle shaped windows.
10557         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
10558         (gdk_fb_window_peek_shape): Returns the shape for a window,
10559         handles GDK_FB_USE_CHILD_SHAPE.
10560         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
10561         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
10562         (gdk_window_shape_combine_mask): Implement.
10563
10564         * gtk/gtkwindow-decorate.c:
10565         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
10566         setting the shape of a window makes the window transparent.
10567
10568 2001-01-11  Havoc Pennington  <hp@redhat.com>
10569
10570         * gtk/gtktreemodelsimple.h: Oops, broke some macros
10571
10572 2001-01-10  Havoc Pennington  <hp@redhat.com>
10573
10574         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
10575         add this function, bug 40251
10576
10577         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
10578         of type macro   
10579
10580 2001-01-11  Alexander Larsson  <alexl@redhat.com>
10581
10582         * acconfig.h:
10583         Added ENABLE_SHADOW_FB
10584
10585         * configure.in:
10586         Added --disable-shadowfb
10587
10588         * gdk/linux-fb/gdkcursor-fb.c:
10589         Update shadowfb when updating cursor
10590
10591         * gdk/linux-fb/gdkdrawable-fb2.c:
10592         Added wrappers for shadowfb that calls  the normal drawable
10593         methods, but calls gdk_shadow_fb_update(bounding box) when
10594         GdkWindows are drawed to.
10595         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
10596         which also returns the bounding box.
10597
10598         * gdk/linux-fb/gdkfb.h:
10599         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
10600
10601         * gdk/linux-fb/gdkgeometry-fb.c:
10602         Update shadowfb when scrolling window.
10603
10604         * gdk/linux-fb/gdkglobals-fb.c:
10605         Add _gdk_fb_screen_angle.
10606         
10607         * gdk/linux-fb/gdkkeyboard-fb.c:
10608         Test code for screen rotation. Shift-F2 in the xlate driver
10609         rotates the screen.
10610
10611         * gdk/linux-fb/gdkmain-fb.c:
10612         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
10613
10614         * gdk/linux-fb/gdkmouse-fb.c:
10615         Use fb_width/height instead of modeinfo.xres/yres.
10616
10617         * gdk/linux-fb/gdkprivate-fb.h:
10618         Added fb_men, fb_width, fb_height & fb_stride. When using
10619         shadow fb these can differ from the framebuffer stuff.
10620         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
10621         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
10622         _gdk_fb_screen_angle. Removed CM, RP.
10623
10624         * gdk/linux-fb/gdkrender-fb.c:
10625         Added code for shadowfb handling and screen rotation using
10626         shadowfb.
10627
10628         * gdk/linux-fb/gdkwindow-fb.c:
10629         Use fb_mem, fb_stride, fb_width, fb_height.
10630         Added recompute_rowstride to reset the rowstride of all windows.
10631         Added gdk_fb_recompute_all() which recomputes rootwindow size,
10632         window abs positions and window rowstrides. Usefull when the
10633         rotation has changed.
10634
10635 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
10636
10637         * docs/faq/gtk-faq.sgml: update to make web site updating easier
10638
10639 2001-01-10  Havoc Pennington  <hp@redhat.com>
10640
10641         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
10642         where sibling == iter
10643         (gtk_tree_store_insert_after): handle sibling == iter
10644         (gtk_tree_store_prepend): remove stamp checks
10645         (gtk_tree_store_insert_before): ditto
10646         (gtk_tree_store_append): ditto
10647         (gtk_tree_store_get_path): ditto
10648         (gtk_tree_store_get_value): ditto
10649         (gtk_tree_store_iter_has_child): ditto
10650         (gtk_tree_store_iter_n_children): ditto
10651         (gtk_tree_store_iter_nth_child): ditto
10652         (gtk_tree_store_insert_after): ditto
10653         (gtk_tree_store_is_ancestor): ditto
10654         (gtk_tree_store_iter_depth): ditto
10655         (gtk_tree_store_insert_before): assert that sibling's parent is
10656         the same as the passed-in parent
10657         (gtk_tree_store_insert_after): assert that sibling's parent is
10658         the same as the passed-in parent
10659
10660         
10661         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
10662         function to get the first iterator in a model
10663         
10664         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
10665         conventionally the "root" in this sense is just NULL afaict.
10666
10667         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
10668         where sibling == iter
10669         (gtk_list_store_insert_after): handle case where sibling == iter
10670
10671         * tests/testtreeview.c (run_automated_tests): fairly lame basic
10672         automated tests for ListStore, TreeStore
10673
10674         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
10675         (gtk_list_store_insert): update tail pointer, and fix it to work
10676         (gtk_list_store_insert_before): update tail pointer, and fix it to work
10677         (gtk_list_store_append): use tail to be faster
10678         (gtk_list_store_prepend): fix it, update tail pointer
10679         (gtk_list_store_insert_after): fix it, update tail pointer
10680
10681         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
10682         the list
10683
10684 2001-01-09  Havoc Pennington  <hp@redhat.com>
10685
10686         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
10687         is NULL due to a pending resize
10688
10689         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
10690         column width to values less than 1
10691
10692         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
10693         width to be between min/max width, and still set the width 
10694         even if autosize is turned on, so the tree view can use this 
10695         function in order to autosize.
10696         (gtk_tree_view_column_init): set initial width to 1 not 0
10697
10698         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
10699         setter function to modify column width, so we get notification
10700         (gtk_tree_view_insert_iter_height): ditto
10701         (gtk_tree_view_calc_size): ditto
10702         (gtk_tree_view_check_dirty): ditto
10703
10704         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
10705         properties to change all the interesting attributes of the tree
10706         view column.
10707         (gtk_tree_view_column_set_header_clickable): rename set_clickable
10708         (gtk_tree_view_column_get_clickable): add
10709         (gtk_tree_view_column_set_cell_renderer): don't unset the current
10710         attributes; assume a cell renderer with equivalent object
10711         properties has been swapped in. Do g_object_notify().
10712         (gtk_tree_view_column_set_visible): g_object_notify
10713         (gtk_tree_view_column_get_sizing): rename from get_col_type
10714         (gtk_tree_view_column_set_sizing): g_object_notify
10715         (gtk_tree_view_column_set_width): add g_object_notify
10716         (gtk_tree_view_column_set_min_width): ditto
10717         (gtk_tree_view_column_set_max_width): ditto
10718         (gtk_tree_view_column_set_title): ditto
10719         (gtk_tree_view_column_set_clickable): ditto
10720         (gtk_tree_view_column_set_widget): ditto
10721         (gtk_tree_view_column_set_justification): ditto
10722
10723 2001-01-09  Havoc Pennington  <hp@redhat.com>
10724
10725         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
10726         there are no rows in the model
10727
10728         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
10729         NULL, then return the start of the list
10730
10731         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
10732         if we can't get any rows from an empty model 
10733
10734         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
10735         extraneous * after function pointer typedef usage
10736
10737         * Makefile.am: don't specify full path to cp and rm
10738
10739         * gtk/gtkcellrenderertextpixbuf.c
10740         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
10741         NULL before dereferencing, fixes a segfault that happened from
10742         time to time
10743
10744         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
10745         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
10746         and reindent the function
10747         (gtk_cell_renderer_pixbuf_get_size): indentation
10748
10749         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
10750         we quit it
10751         (gtk_dialog_add_buttons_valist): add g_return_if_fail
10752         (gtk_dialog_set_default_response): New function, to set default
10753         button
10754         (gtk_dialog_set_response_sensitive): New function, to set 
10755         sensitivity of buttons
10756
10757         * gtk/gtkcellrendererpixbuf.c
10758         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
10759         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
10760
10761         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
10762         handle any G_TYPE_OBJECT subclass, not just the base class, and 
10763         also boxed types.
10764         (_gtk_tree_data_list_value_to_node): ditto
10765
10766         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
10767         --gtk-debug=tree
10768
10769         * gtk/gtkmain.c: add GTK_DEBUG_TREE
10770
10771         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
10772
10773 2001-01-09  Tor Lillqvist  <tml@iki.fi>
10774
10775         * gdk/win32/gdkevents-win32.c: Implement better mouse
10776         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
10777         (find_window_for_pointer_event): New function.
10778         (gdk_event_translate): Use it when handling mouse events.
10779
10780 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
10781
10782         * configure.in:
10783         Added --with-included-loaders option
10784
10785         * gdk-pixbuf/Makefile.am:
10786         * gdk-pixbuf/gdk-pixbuf-io.c:
10787         Add support for including selected gdk-pixbuf loaders only.
10788
10789         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
10790         gtk_window_set_has_frame):
10791         Added inline documentation.
10792
10793         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
10794         * docs/reference/gdk/tmpl/windows.sgml:
10795         Added inline documentation.
10796
10797 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
10798
10799         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
10800         realizing buttons that have already been realized.
10801
10802 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
10803
10804         * tests/testtreeview.c (main): Show menu items before adding to
10805         option menu.
10806
10807         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
10808         around if we kill them.
10809
10810         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
10811         Return if we pass in a NULL model.
10812
10813 2001-01-08  Havoc Pennington  <hp@redhat.com>
10814
10815         * tests/testtreeview.c: hack on this some
10816
10817         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
10818         gtk_tree_store_set_valist, v is for arrays, valist for varargs
10819         list
10820         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
10821
10822         * gtk/gtkliststore.h: Add varargs set() and get() convenience
10823         functions
10824
10825 2001-01-08  Alexander Larsson  <alexl@redhat.com>
10826
10827         * gtk/gtkwindow-decorate.[hc]:
10828         * gtk/Makefile.am:
10829         New files. Contains an implementation of a minimal WM for
10830         linux-fb.
10831
10832         * gtk/gtkwindow.h:
10833         Add the possibility for GtkWindows to specify a frame. This
10834         is used for the window decoration code, but could concievably
10835         be used for X programs too (xmms style windows).
10836         GtkWindow->frame is the toplevel window if the window is framed.
10837         The signal frame_event gets all events that are targeted to
10838         GtkWindow->frame.
10839         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
10840         
10841         * gtk/gtkwindow.c:
10842         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
10843         Call out to gtkwindow-decorate.c for WM support in linx-fb.
10844
10845 2001-01-08  Alexander Larsson  <alexl@redhat.com>
10846
10847         * docs/README.linux-fb:
10848         Correct filename ~/.pangoft2_aliases
10849
10850         * gdk/gdkwindow.h:
10851         Added new function gdk_window_get_decorations.
10852
10853         * gdk/linux-fb/gdkfb.h:
10854         Removed _gdk_window_get_decorations declaration.
10855         Renamed _gdk_window_set_child_handler to
10856         gdk_fb_window_set_child_handler.
10857
10858         * gdk/linux-fb/gdkwindow-fb.c:
10859         Renamed _gdk_window_set_child_handler to
10860         gdk_fb_window_set_child_handler.
10861
10862         * gdk/x11/gdkwindow-x11.c:
10863         New function gdk_window_get_mwm_hints().
10864         Implemented gdk_window_get_decorations.
10865
10866         * docs/reference/gdk/tmpl/windows.sgml:
10867         * docs/reference/gdk/gdk-sections.txt:
10868         Added gdk_window_get_decorations docs.
10869         
10870 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
10871
10872         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
10873         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
10874         gdk_fb_window_send_crossing_events):
10875         Possibly send focus events when the mouse moves from one
10876         window to another.
10877
10878 2001-01-07  Tor Lillqvist  <tml@iki.fi>
10879
10880         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
10881         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
10882         to match current API.
10883
10884         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
10885         environment variable is set, don't call g_error when on a
10886         palettized (PseudoColor) display. Some people want to use GTK+ 
10887         in 256-colour mode even though works only partially.
10888
10889         * gdk/gdk.def
10890         * gtk/gtk.def
10891         * gtk/makefile.mingw.in: Update.
10892
10893 2001-01-05  Havoc Pennington  <hp@redhat.com>
10894
10895         * tests/testtreeview.c: hack on this a bit
10896
10897         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
10898         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
10899
10900         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
10901         was spelled incorrectly
10902         (GTK_IS_TREE_MODEL_SIMPLE): ditto
10903
10904         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
10905         from gtk_tree_view_set_headers_active   
10906
10907         * gtk/gtktexttag.c:
10908         (gtk_text_tag_get_property): handle PROP_DIRECTION
10909         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
10910         properties, bug 40235
10911
10912         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
10913         forward_to_line_end
10914
10915 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
10916
10917         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
10918         modules/input/gtkimcontextxim.c: Adapt to new prototypes
10919         for unicode,locale,filename conversion functions.
10920
10921 2001-01-05  Havoc Pennington  <hp@redhat.com>
10922
10923         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
10924         broken if called on the first position in the buffer.
10925
10926         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
10927         forward_to_delimiters to be called only if we aren't already at
10928         the delimiters.
10929
10930 2001-01-05  Havoc Pennington  <hp@redhat.com>
10931
10932         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
10933
10934 2001-01-05  Alexander Larsson  <alexl@redhat.com>
10935
10936         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
10937         colormap in here. Sync from X port.
10938         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
10939         Sync from X port.
10940         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
10941         This happens now and then, and i don't think it is a bug.
10942         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
10943         != endpoint.
10944         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
10945         GDK_LINE_SOLID.
10946
10947         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
10948         some of the fields filled in at least.
10949
10950         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
10951         miLineArcD is no more, remove it from the function definition.
10952
10953 2001-01-04  Havoc Pennington  <hp@redhat.com>
10954
10955         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
10956         this
10957
10958         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
10959         user_data instead of tree_node
10960
10961         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
10962         TREE_VIEW_COLUMN_SIZE
10963
10964         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
10965         "size" field to "width" finishes bug 40061
10966
10967         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
10968         for bitfields, bug 40268
10969
10970 2001-01-04  Havoc Pennington  <hp@redhat.com>
10971
10972         Rename some stuff:
10973         
10974         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
10975
10976         s/GtkModelSimple/GtkTreeModelSimple/g;
10977         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
10978         s/gtk_model_simple/gtk_tree_model_simple/g;
10979         s/gtkmodelsimple/gtktreemodelsimple/g;
10980
10981         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
10982
10983         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
10984         s/column_set_col_type/column_set_sizing/g;
10985
10986         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
10987         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
10988
10989         s/GtkCellRendererType/GtkCellRendererState/g;
10990         
10991         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
10992         (gtk_cell_renderer_toggle_class_init): change "state" property to
10993         "active", to match GtkToggleButton
10994         (gtk_cell_renderer_toggle_get_active): new function, bug
10995         40269
10996         (gtk_cell_renderer_toggle_set_active): new function
10997         (gtk_cell_renderer_toggle_set_property): route changes to toggle
10998         state through gtk_cell_renderer_set_active
10999
11000 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
11001
11002         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
11003         temporarily until they work again.  Brought up to date with
11004         changes in the model.
11005         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
11006         model.
11007
11008 2001-01-04  Havoc Pennington  <hp@redhat.com>
11009
11010         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
11011         equal to the line length, then position iterator before paragraph 
11012         separators. Fixes crash reported by Mikael Hermansson when
11013         pressing left arrow from the start of a line.   
11014
11015         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
11016         about byte indexes off the end
11017         (iter_set_from_char_offset): add g_error about char offsets
11018         off the end
11019
11020 2001-01-03  Havoc Pennington  <hp@redhat.com>
11021
11022         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
11023
11024         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
11025         of private functions; remove inclusion of private headers.
11026
11027         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
11028         function, so we don't need private functions in gtktextdisplay.c
11029
11030         * gtk/gtktextiterprivate.h: underscore-ification
11031
11032         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
11033         to instead say "only useful to implement widgets"
11034
11035         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
11036         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
11037         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
11038
11039         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
11040         This function was completely broken
11041
11042         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
11043
11044         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
11045
11046         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
11047
11048         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
11049
11050         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
11051
11052         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
11053
11054         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
11055         gtk_paint_layout
11056
11057         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
11058         gtk_paint_layout
11059
11060         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
11061         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
11062         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
11063         which were not implemented.     
11064
11065         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
11066         insert_pixbuf signal. Rename delete_text to delete_range since it
11067         also deletes pixbufs and child anchors. This almost closes bug
11068         40245 (still need to deal with child anchors)
11069
11070         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
11071         insert_pixbuf, change signal names as appropriate, change types of
11072         signals taking marks/tags to have the specific type, not just
11073         G_TYPE_OBJECT
11074         
11075         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
11076         closes bug 40051
11077
11078         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
11079         unnecessary remove_contents() call
11080         (gtk_option_menu_class_init): add a "changed" signal, closes
11081         bug 40039
11082         (gtk_option_menu_update_contents): emit "changed" if the 
11083         active menu item changes
11084
11085         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
11086         cast to GtkObject, reported by Jonas Borgstrom
11087         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
11088         we can't do stuff with side effects in finalize. Instead, spew a
11089         warning if the loader isn't closed.
11090
11091         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
11092         colormap in here, non-X ports probably need to sync to this change
11093
11094         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
11095         assertion that colormap != NULL, you can set the colormap to NULL
11096         if you like.
11097         
11098         * Makefile.am: remove gtk-config-2.0
11099
11100         * configure.in: Use pkg-config to locate GLib. Remove
11101         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
11102         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
11103         Use pkg-config to locate Pango. Output correct Pango libs to
11104         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
11105
11106         * Makefile.am (pkgconfig_DATA): install only target-specific pc
11107         files
11108         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
11109         X11 pc files
11110
11111         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
11112         unref from here
11113
11114 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
11115
11116         * configure.in:
11117         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
11118
11119 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
11120
11121         * gtk/gtktextlayout.c
11122         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
11123         variable when moving back onto a single line.
11124
11125 2001-01-01  Havoc Pennington  <hp@redhat.com>
11126
11127         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
11128
11129         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
11130
11131         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
11132         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
11133
11134 2001-01-01  Havoc Pennington  <hp@redhat.com>
11135
11136         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
11137
11138         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
11139         GtkTextAttributes
11140
11141         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
11142         #40246
11143         (gtk_text_attributes_copy_values): rename from 
11144         gtk_text_attributes_copy
11145         (gtk_text_attributes_copy): a more standard GTK copy function, 
11146         which returns a new object
11147
11148 2001-01-01  Havoc Pennington  <hp@redhat.com>
11149
11150         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
11151         
11152         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
11153         don't fill in tree_view->priv->selection, kind of an unexpected
11154         side effect
11155
11156         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
11157         gtkintl.h
11158         
11159         * gtk/gtkcellrenderer.c: Remove definition of _ and include
11160         gtkintl.h
11161         (gtk_cell_renderer_get_property): remove calls to g_value_init
11162
11163         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
11164         gtkintl.h
11165
11166         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
11167         and include gtkintl.h
11168         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
11169         property names
11170
11171         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
11172         GtkTreeSelection
11173         (_gtk_tree_selection_new_from_with_view): rename, return
11174         GtkTreeSelection
11175         (_gtk_tree_selection_set_tree_view): rename with uscore
11176         (gtk_tree_selection_get_selected): fill in the "model" out param
11177         first, so it gets filled in even if we return at the top of the 
11178         function
11179         (gtk_tree_selection_real_select_all): add a comment and an else{}
11180         to clarify this a bit
11181         (gtk_tree_selection_real_unselect_all): add the same else{}
11182
11183         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
11184         set_tree_view to have underscore prefixes, move them to the
11185         private header, fix return type of new_with_tree_view
11186         (struct _GtkTreeSelection): mark struct
11187         fields private  
11188
11189         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
11190         GtkTreeModelFlags, not a guint
11191         (gtk_tree_path_prev): return gboolean not gint
11192         (gtk_tree_path_up): return gboolean not gint
11193
11194         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
11195         return GtkTreeModelFlags, not a guint
11196
11197         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
11198         that child model is non-null before unrefing it
11199         (g_value_int_compare_func): make this a qsort compare func, not 
11200         a boolean predicate
11201
11202         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
11203         (add -umn to the end), and mark it unimplemented
11204         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
11205         I don't see what it's for - doesn't the model always sort itself?
11206         (gtk_tree_model_sort_set_compare): this had the wrong signature
11207
11208         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
11209         Fix the docs to say that it destructively replaces existing
11210         attributes (previously said that it added attributes).
11211         (gtk_tree_view_column_set_visible): canonicalize bool before
11212         equality testing. Also, check for realization before
11213         hiding/showing the tree_column->window; if this window could exist
11214         before realization, then it's busted and needs fixing, we can't 
11215         create GDK resources pre-realization. Also, remove
11216         superfluous queue_resize(), since set_size() does that for us.
11217         (gtk_tree_view_column_set_col_type): check realization before 
11218         using tree_column->window
11219
11220         * gtk/gtktreedatalist.c: fix filename in copyright notice
11221
11222 2000-12-31  Havoc Pennington  <hp@pobox.com>
11223
11224         * gtk/gtktextview.c: Rearrange all the
11225         scroll-while-dragging-or-selecting code to be different, not
11226         necessarily better. ;-)
11227         (gtk_text_view_scroll_to_mark): Change this
11228         function to take within_margin as a fraction instead of a pixel
11229         value, and to take alignment arguments (indicating where to align 
11230         the mark inside the visible area)
11231         
11232         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
11233         to GtkObject
11234
11235         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
11236         behavior so that offsets past the end of the line are not 
11237         allowed, and an offset equal to the line length moves the iterator
11238         to the next line
11239         (gtk_text_iter_set_line_index): make parallel change
11240         (gtk_text_iter_get_bytes_in_line): add this function
11241         
11242         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
11243         of byte indexes off the end of the line; byte index at the end of
11244         the line now returns FALSE and doesn't fill in the requested
11245         values, byte index past the end of the line is an error.  Also,
11246         don't allow -1 offset anymore, since its meaning is unclear.
11247
11248         This change exposes some bug in visual cursor motion, where we
11249         end up with a huge invalid byte index; needs fixing. Symptom of 
11250         bug is a crash when you hit up arrow.
11251         
11252         (_gtk_text_line_char_locate): match the change to byte_locate
11253
11254         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
11255         from start of line properly. fixes bug reported by Mikael
11256         Hermansson where backspace would delete all text before the
11257         cursor.
11258
11259 2000-12-30  Tor Lillqvist  <tml@iki.fi>
11260
11261         * gdk/win32/gdkwindow-win32.c
11262         (gdk_window_impl_win32_get_visible_region): New function, as in
11263         the X11 backend.
11264         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
11265         instead of duplicating the same code here.
11266
11267         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
11268         GDK_COLORMAP macro.
11269
11270         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
11271         destroy function.
11272         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
11273         access that.
11274
11275         * gtk/gtk.def: Update.
11276
11277         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
11278
11279 2000-12-30  Havoc Pennington  <hp@pobox.com>
11280
11281         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
11282         colormap on input only windows, to avoid special cases all over
11283         the code for these windows.
11284
11285 2000-12-26  Tor Lillqvist  <tml@iki.fi>
11286
11287         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
11288         we are on a palettized display ("PseudoColor" in X11), as the code
11289         for that doesn't work anyway, and never has.
11290
11291 2000-12-22  Alexander Larsson  <alexl@redhat.com>
11292
11293         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
11294         Don't use isprint() for chars > 255.
11295
11296 2000-12-21  Havoc Pennington  <hp@redhat.com>
11297
11298         * tests/testtreeview.c: more work
11299
11300 2000-12-21  Alexander Larsson  <alexl@redhat.com>
11301
11302         * docs/README.linux-fb:
11303         Update the docs to the new pangoft2 way.
11304
11305 2000-12-21  Alexander Larsson  <alexl@redhat.com>
11306
11307         * configure.in:
11308         For linux-fb get the pangoft2 cflags and libs. This needs a recent
11309         pango version.
11310         Remove modules/linux-fb/Makefile.
11311
11312         * gdk/linux-fb/gdkdrawable-fb2.c:
11313         Render glyphs using freetype.
11314
11315         * gdk/linux-fb/gdkfb.h:
11316         Add new fb-specific functions needed for managing windows.
11317
11318         * gdk/linux-fb/gdkmain-fb.c:
11319         Remove gdk_font_init/fini() calls.
11320
11321         * gdk/linux-fb/gdkpango-fb.c:
11322         Remove old implementation. Use pangoft2 instead.
11323
11324         * gdk/linux-fb/gdkprivate-fb.h:
11325         Remove PangoFBFont and related stuff.
11326
11327         * gdk/linux-fb/gdkwindow-fb.c:
11328         Implement drawable->get_visible_region.
11329         Implement support for _gdk_window_set_child_handler () and
11330         _gdk_window_get_decorations().
11331
11332         * modules/Makefile.am:
11333         Remove linux-fb subdir.
11334
11335         * modules/linux-fb/*:
11336         Removed all.
11337         
11338 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
11339
11340         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
11341         calls, as they are no longer needed.
11342
11343         * gtk/gtktreemodelsort.c: Fix up the comparison code.
11344         
11345         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
11346         figure out how to emit a signal on an interface.
11347
11348 2000-12-20  Havoc Pennington  <hp@redhat.com>
11349
11350         * tests: new directory to contain tests, gtk/test* should move
11351         here sometime (with appropriate on-cvs-server hackery)
11352
11353         * tests/testtreeview.c, tests/Makefile.am: a test
11354         
11355         * configure.in (AC_OUTPUT): add tests/Makefile
11356
11357         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
11358         and "invisible_set" which were missing
11359
11360         * gtk/gtkrbtree.h: some cheesy indentation fix
11361         
11362 2000-12-20  Alexander Larsson  <alexl@redhat.com>
11363
11364         * gtk/gtkinvisible.c (gtk_invisible_realize):
11365         Attach the style to the window so that the style it is not
11366         leaked when unrealizing the window.
11367
11368 2000-12-18  Havoc Pennington  <hp@redhat.com>
11369
11370         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
11371         begin/end user action where appropriate
11372         (gtk_text_view_commit_handler): add begin/end user action
11373
11374         * gtk/gtktextbuffer.c: add begin/end user action signals, and
11375         bracket interactive operations with begin/end user action pair.
11376         
11377         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
11378         "interactive" arg from insert_text and delete_text signals.
11379         Add begin_user_action, end_user_action signals
11380         (gtk_text_buffer_begin_user_action): 
11381         (gtk_text_buffer_end_user_action): New functions to delimit 
11382         a user-visible action
11383
11384         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
11385         signals.
11386         
11387 2000-12-18  Havoc Pennington  <hp@redhat.com>
11388
11389         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
11390         was pretty non-working.
11391
11392         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
11393         by passing the length to g_utf8_validate().
11394
11395 2000-12-16  Havoc Pennington  <hp@pobox.com>
11396
11397         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
11398         Port to GObject, can go back in gdk-pixbuf after setting up 
11399         a gdk-pixbuf-marshal.h header over there.
11400
11401         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
11402         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
11403         args
11404         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
11405         set
11406         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
11407         here, do it when we create the buttons later
11408         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
11409         (gtk_tree_view_map): paranoia checks that column->button is shown 
11410         and unmapped
11411         (gtk_tree_view_size_request): only request visible children.
11412         Move header size calculation in here, for cleanliness, and 
11413         to maintain invariants for child widgets if we eventually 
11414         let users set different children inside the buttons
11415         (gtk_tree_view_map_buttons): factor out code to map buttons,
11416         since it was being called several times
11417         (gtk_tree_view_size_allocate_buttons): move_resize the drag
11418         windows instead of just moving them; their height may change 
11419         if we allow random widgets in there, or the theme changes.
11420         (gtk_tree_view_size_allocate): move button size allocation 
11421         above emitting the scroll signals, to ensure a sane state when we
11422         hit user code
11423         (gtk_tree_view_button_release): remove queue_resize after
11424         tree_view_set_size(), set_size() will handle any resize queuing
11425         that's needed
11426         (gtk_tree_view_focus_in): just queue a draw, don't fool with
11427         draw_focus goo
11428         (gtk_tree_view_focus): use gtk_get_current_event() and
11429         gdk_event_get_state()
11430         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
11431         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
11432         semicolon
11433         (gtk_tree_view_create_button): show the button here
11434         (gtk_tree_view_button_clicked): actually emit the clicked signal
11435         on the column
11436         (_gtk_tree_view_set_size): return right away if the size is
11437         unchanged, as a cheesy optimization
11438         (gtk_tree_view_setup_model): rename set_model_realized to 
11439         setup_model to match the flag that indicates whether we've 
11440         called it
11441         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
11442         exist, because set_scroll_adjustment does that and it shouldn't
11443         matter what order you call these in
11444         (gtk_tree_view_get_vadjustment): ditto
11445         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
11446         for paranoia
11447         (gtk_tree_view_set_headers_visible): call
11448         gtk_tree_view_map_buttons() instead of using cut-and-paste code
11449         (gtk_tree_view_append_column): clarify whether the return value
11450         is the count of columns before or after, and do the increment 
11451         separately from the return statement so you can tell from the code.
11452         (gtk_tree_view_remove_column): ditto
11453         (gtk_tree_view_insert_column): ditto
11454         (gtk_tree_view_get_column): remove g_return_if_fail for columns
11455         outside the existing range, the docs say that outside-range
11456         columns are allowed, so we handle them as documented. (Presumably
11457         this allows a nice loop with column != NULL as test.)
11458         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
11459         mean (left/right/center etc.).
11460         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
11461         (gtk_tree_view_expand_row): add docs
11462         (gtk_tree_view_collapse_row): add docs
11463
11464         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
11465         function to emit the clicked signal on a column
11466         
11467         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
11468         state of an event
11469         (gdk_event_get_time): don't treat GDK_SCROLL 
11470         as a button event, remove default case from switch so gcc 
11471         will whine if we don't explicitly handle all event types
11472
11473         * gtk/gtktreeselection.h: added some FIXME 
11474         
11475         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
11476         "columns" to "n_columns" and "column" to "columns" for clarity
11477
11478 2000-12-16  Havoc Pennington  <hp@pobox.com>
11479         
11480         * gtk/gtktextiter.c: General cleanup of the log attr iteration
11481         stuff. This should make e.g. the delete key work again in the
11482         text widget...
11483         (gtk_text_iter_forward_cursor_positions): handle negative count
11484         (gtk_text_iter_backward_cursor_positions): handle negative count
11485         (gtk_text_iter_forward_word_ends): handle negative count
11486         (gtk_text_iter_backward_word_starts): handle negative count
11487
11488         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
11489         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
11490         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
11491         GObject. No doubt will cause breakage.
11492
11493         * demos/gtk-demo/textview.c: remove hacks around
11494         non-GObject-ification of the text objects
11495
11496         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
11497         the text tag
11498         
11499 2000-12-14  Havoc Pennington  <hp@pobox.com>
11500
11501         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
11502         that we have Xrender
11503
11504 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
11505
11506         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
11507         Add two virtualized functions gdk_drawable_get_clip_region - to
11508         get the clip region when drawing.
11509         
11510         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
11511         use invalidate_region.
11512
11513         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
11514         region.
11515
11516         * acconfig.h configure.in: Check for Xft. For now, assume
11517         that if Xft is found, Pango was compiled with Xft support
11518         as well.
11519
11520         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
11521         gdk_colormap_query_color().
11522         
11523         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
11524         with Xft if appropriate.
11525
11526         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
11527         a pangoxft context if we have XFT and the environment
11528         variable GD_USE_XFT is set.
11529         
11530         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
11531         and also possibly an XftDraw structure.
11532
11533         * gtk/gtkfontsel.c: Handle the case where the font from the
11534         style doesn't match any of the fonts a bit better.
11535         
11536         * gtk/testgtk.c: Add tabs between directional segments for
11537         hebrew/arabic test. (Not really necessary, just a little
11538         prettier.)
11539
11540 2000-12-14  Havoc Pennington  <hp@redhat.com>
11541
11542         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
11543         reading a file
11544
11545 2000-12-14  Havoc Pennington  <hp@redhat.com>
11546
11547         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
11548         unused call to get_last_line()
11549
11550         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
11551         here until boxed is working (and maybe after that - we should
11552         really not gratuitously break old code)
11553
11554         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
11555         specific types for font_desc and tabs args, move them to
11556         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
11557         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
11558
11559         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
11560         use GTK_TYPE_POINTER for signal signatures as a hack-around
11561
11562         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
11563         PangoTabArray
11564
11565         * gtk/gtktextlayout.c (line_display_iter_to_index): 
11566         make static
11567         (line_display_index_to_iter): make static
11568
11569         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
11570         to marshal a string not a boxed
11571
11572         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
11573
11574         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
11575         since the UTF-8 isn't validated yet
11576
11577         * gtk/gtktextsegment.c (char_segment_check_func): don't require
11578         lines to end in '\n'
11579         
11580         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
11581         forward_to_delimiters, and grapheme boundaries
11582         (gtk_text_view_delete_from_cursor): properly handle non-newline
11583         delimiters, and grapheme boundaries
11584
11585         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
11586         to gtk_text_iter_forward_to_delimiters, and make it work properly
11587         if empty lines end with a character other than '\n'
11588
11589         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
11590         position
11591
11592 2000-12-15  Tor Lillqvist  <tml@iki.fi>
11593
11594         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
11595
11596         * gtk/gtk.def
11597         * gdk/gdk.def: Update.
11598
11599         * gdk/win32/gdkmain-win32.c
11600         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
11601         gdkmain-win32.c here.
11602
11603         * gdk/win32/makefile.mingw.in (all): No need to make
11604         gdk-win32res.o here, the makefile one step up will call us to make
11605         it.
11606
11607         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
11608         gdkkeys-win32.
11609
11610         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
11611
11612         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
11613         call to g_source_add().
11614
11615         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
11616         leak. Thanks to Andreas Kemnade.
11617
11618 2000-12-13  Havoc Pennington  <hp@pobox.com>
11619
11620         * gtk/gtktextbtree.h: Remove double _ in front of some functions
11621
11622         * gtk/gtktext*.[hc]: update accordingly
11623         
11624 2000-12-13  Havoc Pennington  <hp@pobox.com>
11625
11626         * gtk/gtktextbtree.h: Put _ in front of every function in this 
11627         header file
11628
11629         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
11630
11631 2000-12-13  Alex Larsson  <alexl@redhat.com>
11632
11633         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
11634         Add support for ps2 intellimouse.
11635
11636         * gdkkeyboard-fb.c:
11637         Move shift-F1 repaint handling to xlate handler only.
11638         
11639         * docs/README.linux-fb:
11640         Add imps2 to docs.
11641         Document the new refresh keys.
11642         
11643 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
11644
11645         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
11646
11647         * gtk/gtkbox.c: change property types from (u)long to (u)int for
11648         ::position and ::padding.
11649
11650         * gtk/gtkcontainer.c: make ::border_width an INT property.
11651
11652         * gtk/gtkpacker.c: make ::position an INT property.
11653
11654         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
11655         guard against NULL h/v scrollbars, since this is used at construction
11656         time.
11657
11658         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
11659         internal gtk_clist_constructor().
11660
11661         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
11662         gtk_ctree_constructor().
11663
11664         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
11665         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
11666
11667         * docs/reference/Makefile.am: fun stuff, disabled docs generation
11668         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
11669
11670         * gtk/gtkwidget.[hc]:
11671         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
11672         and gtk_widget_get().
11673         (gtk_widget_new): use g_object_new_valist().
11674         (gtk_widget_set): use g_object_set_valist().
11675
11676         * gtk/gtkobject.[hc]:
11677         removed gtk_object_arg_get_info(), gtk_object_getv(),
11678         gtk_object_query_args(), gtk_object_newv(),
11679         gtk_object_class_add_signals(),
11680         gtk_object_class_user_signal_new(),
11681         gtk_object_class_user_signal_newv(),
11682         gtk_object_arg_set(), gtk_object_arg_get(),
11683         gtk_object_args_collect(),
11684         gtk_object_default_construct(),
11685         gtk_object_constructed(),
11686         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
11687         removed nsignals, signals and n_args members from GtkObjectClass.
11688         (gtk_object_new): use g_object_new_valist().
11689         (gtk_object_set): use g_object_set_valist().
11690         (gtk_object_get): use g_object_get_valist().
11691         
11692         * gtk/gtkcompat.h: define gtk_object_default_construct().
11693         
11694         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
11695         g_object_new().
11696
11697         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
11698         fucntions, cleaned up method assignments (make sure your structures
11699         are setup properly before calling out). removed all GTK_CONSTRUCTED
11700         hacks ;)
11701
11702 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
11703
11704         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
11705         off-by-one error in checks. (Dave Lambert)
11706
11707 2000-12-12  Alexander Larsson  <alexl@redhat.com>
11708
11709         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
11710         Don't free gdk_fb_keyboard twice.
11711
11712 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
11713
11714         * gtk/testgtk.c:
11715         (create_tooltips): 
11716         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
11717         use GObject swapped_signal:: properties instead.
11718
11719         * gtk/gtkcellrenderertoggle.c: 
11720         * gtk/gtkcellrenderertextpixbuf.c: 
11721         * gtk/gtkcellrenderertext.c: 
11722         * gtk/gtkcellrendererpixbuf.c: 
11723         * gtk/gtkcellrenderer.c:
11724         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
11725         missing warnings for invalid property ids, install properties
11726         with g_object_class_install_property() now.
11727         
11728         * gtk/gtksignal.c:
11729         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
11730         
11731 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
11732         
11733         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
11734         to determine if a window is the focus widget within
11735         its toplevel.
11736
11737         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
11738         to be boolean.
11739
11740         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
11741         of the case where the container CAN_FOCUS to here instead
11742         of having it in each individual move-the-focus place.
11743
11744         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
11745         focusing to be geometric in a much more obvious sense. Arrowing
11746         around is still non-intuitive because it isn't perfect and
11747         because entries, etc, grab the arrow keys, but it at least
11748         usually will do what you expect now.
11749         
11750         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
11751         file.
11752
11753         * gtk/gtknotebook.c: Change tabs to be a single item in
11754         the focus chain. Make movement of focus on tabs with arrow
11755         keys wrap around.
11756         
11757         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
11758         CHECK_FIND_CHILD macro to give informative error messages
11759         instead of silent returns.
11760
11761         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
11762         flag since we handle GdkReturn on the tabs.
11763
11764         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
11765         windows rather than sending expose events directly.
11766
11767         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
11768         definition for GtkNotebookPage into .c file, since it is private.
11769
11770         * gtk/testgtk.c (create_notebook): Add option for 
11771         testing borderless notebook.
11772
11773         * gtk/testgtk.c (page_switch): Removed egregious poking
11774         around in GTK+ internals.
11775
11776         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
11777
11778         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
11779         properly through gtk_clist_focus. Make the title headers a
11780         single item in the tab-focus chain, and make left-right wrap
11781         around.
11782
11783         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
11784         focus method so that wrapping around works properly.
11785
11786         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
11787         that is handled for the widget now. 
11788
11789 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
11790
11791         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
11792         widgets as TOPLEVEL.
11793
11794         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
11795         TOPLEVEL widgets are containers.
11796
11797         * gtk/gtkinvisible.h: Remove useless include.
11798
11799 2000-12-11  Havoc Pennington  <hp@redhat.com>
11800
11801         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
11802         Handle chopping off \r\n and 0x2029 in addition to \n before
11803         passing to PangoLayout
11804
11805         * gtk/gtkimcontextsimple.c
11806         (gtk_im_context_simple_get_preedit_string): 
11807         return an empty string if no match is pending
11808
11809         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
11810         assertion that the returned preedit string was sane
11811
11812         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
11813         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
11814         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
11815
11816 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
11817
11818         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
11819         Fix up finalizer to chain to its parent.
11820
11821 2000-12-11  Alexander Larsson  <alexl@redhat.com>
11822
11823         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
11824         Clearified the difference between the keyboard types. Wrote a note
11825         about the magic sysrq key to get out of raw mode.
11826
11827 2000-12-09  James Henstridge  <james@daa.com.au>
11828
11829         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
11830         member to hold masks for detecting the start of a protocol packet.
11831         (mouse_devs): add packet start masks for ps2 and ms device types.
11832         Left the mask for fidmour blank, as I have no idea what it should
11833         be.
11834         (handle_mouse_io): skip bytes until we get to the start of a
11835         packet.  My Logitech mouse seems to be passing an extra NULL pad
11836         byte, and GPM does a similar thing here.
11837         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
11838         this is the ms mouse driver.
11839         (gdk_fb_mouse_ms_packet): fix up button handling, which was
11840         completely broken except for button1.  It was checking the wrong
11841         bit in the packet for the status of the right mouse button, and
11842         wrongly assuming right == button2 rather than 3.  I fixed that and
11843         also added support for middle button (button2).
11844
11845 2000-12-08  Havoc Pennington  <hp@redhat.com>
11846
11847         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
11848         that cause a segfault on text insertion
11849
11850         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
11851         warning
11852
11853         * gtk/gtktextiter.c (test_log_attrs): use
11854         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
11855
11856         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
11857         Get log attrs for a line, using a cache stored on the buffer
11858         
11859         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
11860         reported by Jeff Franks
11861
11862 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
11863
11864         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
11865         /dev/ttyS0 -> /dev/mouse
11866
11867 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
11868
11869         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
11870         Added dummy gdk_fontset_load.
11871
11872 2000-12-08  Alexander Larsson  <alexl@redhat.com>
11873
11874         * docs/README.linux-fb:
11875         * docs/Makefile.am:
11876         Initial GtkFB docs.
11877         
11878         * gdk/linux-fb/Makefile.am:
11879         Define GDK_DATA_PREFIX.
11880
11881         * gdk/linux-fb/gdkmain-fb.c:
11882         Fix typo.
11883         Change default display to /dev/fb0.
11884
11885         * gdk/linux-fb/gdkpango-fb.c:
11886         Add $(prefix)/share/fonts/ to font path.
11887         
11888 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
11889
11890         * gdk/linux-fb/gdkkeyboard-fb.c:
11891         New file containing the abstracted keyboard driver. Most code
11892         taken from gdkinput-ps2.c
11893
11894         * gdk/linux-fb/gdkinput-ps2.c:
11895         Removed file.
11896         
11897         * gdk/linux-fb/Makefile.am:
11898         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
11899
11900         * gdk/linux-fb/gdkcolor-fb.c:
11901         display->fb was renamed to display->fb_fd.
11902
11903         * gdk/linux-fb/gdkcursor-fb.c:
11904         gdk_mouse_get_info -> gdk_fb_mouse_get_info
11905
11906         * gdk/linux-fb/gdkinput.c:
11907         Moved gdk_input_init here from gdkinput-ps2.c
11908
11909         * gdk/linux-fb/gdkmain-fb.c:
11910         display->fb was renamed to display->fb_fd.
11911         Now the tty and the console is opened here instead
11912         of in the keyboard driver. Also check GDK_VT to see what
11913         tty to open.
11914         Move gdk_beep () here from gdkinput-ps2.c
11915         gdk_mouse_get_info -> gdk_fb_mouse_get_info
11916
11917         * gdk/linux-fb/gdkmouse-fb.c:
11918         Add header.
11919         gdk_mouse_get_info -> gdk_fb_mouse_get_info
11920         Return correct keyboard modifiers.
11921         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
11922
11923         * gdk/linux-fb/gdkprivate-fb.h:
11924         Add tty and vt info to display.
11925         Add orignal modeinfo storage to display
11926         Update global functions
11927
11928         * gdk/linux-fb/gdkwindow-fb.c:
11929         Added gdk_fb_window_find_focus().
11930         gdk_mouse_get_info -> gdk_fb_mouse_get_info
11931
11932 2000-12-07  Havoc Pennington  <hp@pobox.com>
11933
11934         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
11935         function, noticed by Alex
11936
11937 2000-12-06  Elliot Lee  <sopwith@redhat.com>
11938
11939         * configure.in: Detect freetype properly
11940
11941         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
11942         above.
11943
11944 2000-12-06  Alexander Larsson  <alexl@redhat.com>
11945
11946         * gdk/linux-fb/Makefile.am:
11947         Add gdkmouse-fb.c
11948         
11949         * gdk/linux-fb/gdkmouse-fb.c:
11950         New file. Abstracted the mouse drivers a bit.
11951
11952         * gdk/linux-fb/gdkcursor-fb.c:
11953         The cursor hide/show functions was moved here from gdkinput-ps2.c.
11954
11955         * gdk/linux-fb/gdkinput-ps2.c:
11956         Removed old mouse handling code. Moved cursor handling code
11957         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
11958         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
11959         gdk_mouse_get_info.
11960
11961         * gdk/linux-fb/gdkmain-fb.c:
11962         Pass NULL pointers for x,y in gdk_mouse_get_info call.
11963
11964         * gdk/linux-fb/gdkprivate-fb.h:
11965         Removed public gdk_fb_find_common_ancestor, added and renamed
11966         functions for the new mouse handling code.
11967
11968         * gdk/linux-fb/gdkwindow-fb.c:
11969         Moved gdk_fb_window_send_crossing_events here. added global
11970         variable gdk_fb_window_containing_pointer. made
11971         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
11972         renamed to gdk_mouse_get_info.
11973
11974 2000-12-06  Alexander Larsson  <alexl@redhat.com>
11975
11976         * gdk/linux-fb/gdkevents-fb.c:
11977         Update to match latest gmain/gsource changes.
11978
11979         * gdk/linux-fb/gdkinput-ps2.c:
11980         Bogus gdk_keymap_get_entries_for_keycode implementation so that
11981         it links. Will be implemented later.
11982
11983 2000-12-03  Havoc Pennington  <hp@pobox.com>
11984
11985         * gdk/Makefile.am: add gdkkeys.[hc]
11986
11987         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
11988         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
11989
11990         * acconfig.h, configure.in: add checks and command line options
11991         for XKB
11992
11993         * gdk/x11/gdkkeys-x11.c: Implement the above functions
11994         
11995         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
11996         and group in the key event
11997
11998         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
11999         field with the low-level hardware key code, and a group
12000         field with the keyboard group
12001
12002         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
12003         and declare a couple globals used for keymap handling
12004         
12005         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
12006         hold down Shift-Control and type a hex number to get a Unicode 
12007         character corresponding to the hex number
12008         (gtk_im_context_simple_get_preedit_string): Fix cursor position
12009         (return bytes not chars)
12010
12011 2000-12-05  Elliot Lee  <sopwith@redhat.com>
12012
12013         * gdk/gdkcolor.h: Make GdkColor specify element sizes
12014         to avoid waste on 64-bit platforms.
12015
12016 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
12017
12018         * INSTALL: Fix link to PNG home, remove reference
12019         to fribidi.
12020
12021         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
12022         
12023         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
12024         tested.)
12025
12026         * gtk/gtkcheckmenuitem.c: Permanently turn on
12027         always_show_toggle.
12028
12029         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
12030         be NULL. (Vladimir Klebanov, #26545)
12031
12032         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
12033         some signed/unsigned comparison problems. (#6510,
12034         David Kaelbling)
12035
12036         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
12037         return type to boolean (Oskar Liljeblad, #18648)
12038
12039 2000-12-05  Alexander Larsson  <alexl@redhat.com>
12040
12041         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
12042         Remove bogus colormap setting.
12043
12044 2000-12-05  Alexander Larsson  <alexl@redhat.com>
12045
12046         * gdk/linux-fb/gdkcolor-fb.c:
12047         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
12048
12049         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
12050         Must set colormap.
12051         
12052 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
12053
12054         * docs/tutorial/gtk-tut.sgml: DND updates
12055
12056 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
12057
12058         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
12059         Remove old debug g_warning().
12060         (gdk_fb_draw_drawable): The src argument can be either a wrapper
12061         or an implementation, just pass the implementation to draw_drawable_2.
12062         
12063         * gdk/linux-fb/gdkprivate-fb.h:
12064         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
12065
12066         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
12067         clear and invalidate area when window is destroyed.
12068         (send_map_events): Remove old commented out code.
12069
12070 2000-12-05  Alexander Larsson  <alexl@redhat.com>
12071
12072         * gdk/linux-fb/gdkpango-fb.c:
12073         Use italic instead of oblique in font aliases.
12074         
12075         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
12076         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
12077         other unsupported functions.
12078
12079 2000-12-04  Havoc Pennington  <hp@redhat.com>
12080
12081         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
12082
12083         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
12084
12085         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
12086
12087         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
12088         hack to avoid infinite loops (synthetic expose event) - 
12089         Owen has more appropriate fixes in a branch he'll check in later.
12090
12091         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
12092         separator, CR, and CRLF as line ends
12093
12094         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
12095         into lines using pango_find_paragraph_boundary(); other bits of
12096         the widget are still going to be broken if the boundary isn't '\n'
12097         though
12098
12099 2000-12-04  Alexander Larsson  <alexl@redhat.com>
12100
12101         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
12102         multiply.
12103
12104         * gdk/linux-fb/gdkpango-fb.c:
12105         Copied some 26.6 scaling macros from pango to clean up the rounding.
12106         (pango_fb_font_get_glyph_info): Correct sign on x value.
12107
12108         * gdk/linux-fb/gdkprivate-fb.h:
12109         Removed unreferenced external functions.
12110
12111         * modules/linux-fb/Makefile.am: Use ` instead of '.
12112
12113         * modules/linux-fb/basic.c:
12114         Remove dead code. In particular the dummy lang engine which broke all
12115         pango layouts in GtkFB. Don't include tables-big.i anymore.
12116
12117         * modules/linux-fb/tables-big.i:
12118         Upgrade to latest version from pango. Left for reference, basic_ranges
12119         moved to basic.c.
12120         
12121 2000-12-04  Havoc Pennington  <hp@redhat.com>
12122
12123         Fix bugs Alex found:
12124         
12125         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
12126         to "draw"
12127
12128         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
12129
12130         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
12131
12132         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
12133         implementation in here, apparently the expose() implementation was
12134         dead code.
12135
12136 2000-12-04  Alexander Larsson  <alexl@redhat.com>
12137
12138         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
12139         Return positive descent.
12140
12141 2000-12-02  Havoc Pennington  <hp@pobox.com>
12142
12143         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
12144         method and signal
12145         
12146         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
12147         calls gdk_window_process_updates() to push the exposes through
12148         (gtk_widget_class_init): No more draw signal, no
12149         gtk_widget_real_draw()  
12150         
12151         * gtk/gtkbin.c (gtk_bin_draw): remove
12152
12153         * gtk/gtkbox.c (gtk_box_draw): remove
12154
12155         * gtk/gtkbutton.c (gtk_button_draw): remove
12156
12157         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
12158
12159         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
12160
12161         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
12162
12163         * gtk/gtkclist.c (gtk_clist_draw): remove
12164
12165         * gtk/gtkentry.c (gtk_entry_draw): remove
12166
12167         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
12168
12169         * gtk/gtkfixed.c (gtk_fixed_draw): remove
12170
12171         * gtk/gtkframe.c (gtk_frame_draw): remove
12172
12173         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
12174
12175         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
12176
12177         * gtk/gtklayout.c (gtk_layout_draw): remove
12178
12179         * gtk/gtklist.c (gtk_list_draw): remove
12180
12181         * gtk/gtklistitem.c (gtk_list_item_draw): remove
12182
12183         * gtk/gtkmenu.c (gtk_menu_draw): remove
12184
12185         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
12186
12187         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
12188
12189         * gtk/gtknotebook.c (gtk_notebook_draw): remove
12190
12191         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
12192
12193         * gtk/gtkpacker.c (gtk_packer_draw): remove
12194
12195         * gtk/gtkrange.c (gtk_range_draw): remove
12196
12197         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
12198
12199         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
12200
12201         * gtk/gtktable.c (gtk_table_draw): remove
12202
12203         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
12204
12205         * gtk/gtktext.c (gtk_text_draw): remove
12206
12207         * gtk/gtktextview.c (gtk_text_view_draw): remove
12208
12209         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
12210
12211         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
12212
12213         * gtk/gtktree.c (gtk_tree_draw): remove
12214
12215         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
12216
12217         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
12218
12219         * gtk/gtkviewport.c (gtk_viewport_draw): remove
12220
12221         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
12222
12223         * gtk/gtkvscale.c (gtk_vscale_draw): remove
12224
12225         * gtk/gtkwindow.c (gtk_window_draw): remove
12226
12227 2000-20-01  Anders Carlsson  <andersca@gnu.org>
12228
12229         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
12230         a GtkToggleButton is both insensitive and active, it was being
12231         drawn by the GtkButton draw handler which doesn't check the
12232         state. Now it's calling gtk_toggle_button_paint instead.
12233         
12234 2000-12-01  Havoc Pennington  <hp@redhat.com>
12235
12236         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
12237         dangling pointers to the appearance attributes from the 
12238         line display
12239
12240         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
12241         width/height to mean "full width/height of drawable"
12242
12243         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
12244         click to select word/line
12245         
12246         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
12247         when getting log attrs. Get a slice, so that pixmaps and stuff
12248         are properly handled.
12249
12250         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
12251         paste into the selection (replaces selection now, previously
12252         crashed or added to selection). Reveals longstanding btree bug -
12253         select multiple lines, middle-click on the selection, boom. This
12254         isn't related to my changes though.
12255
12256         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
12257         PangoLogAttrs changes
12258         (gtk_entry_move_backward_word): ditto
12259
12260         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
12261         functions return bool whether the iter moved onto a
12262         dereferenceable position.
12263  
12264         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
12265         functions for motion in terms of display lines.
12266
12267         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
12268         get the buffer a mark is inside
12269         
12270 2000-12-01  Alexander Larsson  <alexl@redhat.com>
12271
12272         * gdk/linux-fb/Makefile.am:
12273         * modules/linux-fb/Makefile.am:
12274         Freetype 2 final uses freetype-config
12275
12276         * gdk/linux-fb/gdkpango-fb.c:
12277         Upgrade to use Freetype 2 final.
12278         More flexible support for font aliases, this also fixes a bug with
12279         GtkFontSelector, as the aliases must be visible in the font/family list,
12280         or GtkFontSelector reads uninitialized memory.
12281
12282 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
12283
12284         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
12285         XGetIMValues to properly terminate variable argument list, and do
12286         NULL return check for ic_values and xim_styles.
12287
12288         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
12289         Restore preedit state after XmbResetIC().
12290         
12291         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
12292         XvaCreateNestedList() should take XvaNestedList, but not
12293         XvaNestedList*.
12294
12295         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
12296         preedit_draw_callback, preedit_caret_callback): Match
12297         "preedit-changed" signal name to "preedit_changed" to be
12298         consistent to the spec.
12299
12300         * gtk/gtkimcontextsimple.c (check_table):
12301         Match "preedit-changed" to "preedit_changed" to be consistent
12302         to the spec.
12303
12304 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
12305
12306         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
12307         gc->clip_region == NULL>
12308
12309 2000-11-30  Tor Lillqvist  <tml@iki.fi>
12310
12311         Changes by Hans Breuer:
12312         
12313         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
12314         Dont't use negative width and height as max_hints. This fixes
12315         Owen's recent testgtk changes for win32.
12316
12317         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
12318         gdk_win32_hdc_release): These are exported and may be called with
12319         other drawable types than our GdkDrawableImplWin32 (?).
12320
12321         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
12322         so always #define USE_BACKING_STORE.
12323
12324         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
12325         of printf for debugging output.
12326
12327         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
12328         
12329         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
12330
12331         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
12332         declaration.
12333
12334         * gtk/gtktexttypes.h: Ditto.
12335
12336         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
12337         (GDK_VoidSymbol) also if in case of arg check failure.
12338
12339         * gtk/gtkimcontextsimple.c
12340         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
12341         position to the pointer, but to the variable it points to.
12342
12343         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
12344
12345         * gtk/gtk.def: Updates.
12346
12347 2000-11-29  Elliot Lee  <sopwith@redhat.com>
12348
12349         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
12350         GTK_TYPE_TREE_MODEL.
12351
12352 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12353
12354         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
12355         Set the size of the font from the description.
12356         (gdk_text_width): Gross hack that calculates the width
12357         of text by text_length * size/2. This is necessary because
12358         GtkLabel does some ugly gtk_string_width call to calculate
12359         an good size.
12360         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
12361
12362 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
12363
12364         * docs/tutorial/gtk-tut.sgml: DND updates
12365
12366 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12367
12368         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
12369         If you pass width or height == 0 to gdk_window_clear_area they
12370         should be calculated from the window size.
12371
12372 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12373
12374         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
12375         a grab, but no grab-cursor, use the cursor from the grabbed
12376         window. (gdk_fb_window_send_crossing_events): Send normal
12377         enter/leave notifications if grab and owner_events == TRUE.
12378
12379 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12380
12381         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
12382         Do implicit button grabs, even if the window doesn't
12383         want the event.
12384         (gdk_fb_window_send_crossing_events): If there is a
12385         grab, only the grabbed window gets normal enter/leave
12386         notifications. On ungrab go from grabbed window to current.
12387         Don't send any notification to b when propagating from c -> b.
12388         If setting a grab on window, don't set prev_window.
12389         (handle_mouse_input): Send enter/leave events to the window the
12390         mouse is over, not the grabbed one.
12391         
12392 2000-11-28  Elliot Lee  <sopwith@redhat.com>
12393
12394         * gdk/gdkregion-generic.c: Zap warning.
12395         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
12396         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
12397
12398 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
12399
12400         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
12401         The cursor should be hidden if it is part of either the
12402         source or destination region. Not only if it is in both.
12403         (gdk_window_set_transient_for): Silence warnings.
12404
12405 2000-11-28  Alexander Larsson  <alexl@redhat.com>
12406
12407         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
12408         The default mode in X is Pie Arcs, therefore that is
12409         what Gtk+ uses.
12410
12411 2000-11-28  Alexander Larsson  <alexl@redhat.com>
12412
12413         * gdk/linux-fb/gdkinput-ps2.c:
12414         Implement correct EnterNotify/LeaveNotify:
12415         (gdk_fb_window_send_crossing_events): New function that sends
12416         all GdkCrossingEvents from the last mouse-window to the specified
12417         destination.
12418         (gdk_fb_window_visibility_crossing): Removed function.
12419         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
12420         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
12421         instead of gdk_window_get_pointer() for better readability.
12422
12423         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
12424         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
12425
12426         * gdk/linux-fb/gdkprivate-fb.h:
12427         removed gdk_fb_window_visibility_crossing, added
12428         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
12429
12430         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
12431         New function that finds the least common ancestor of two windows.
12432         (gdk_window_show, gdk_window_hide):
12433         Use gdk_fb_window_send_crossing_events.
12434         (gdk_fb_window_move_resize): Send configure events to toplevel
12435         windows. Use gdk_fb_window_send_crossing_events.
12436
12437 2000-11-27  Havoc Pennington  <hp@redhat.com>
12438
12439         * gtk/gtkprivate.h (enum): Remove a trailing comma
12440
12441 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
12442
12443         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
12444         the "changed" callback of the adjustment.  We need to redraw the
12445         spin button's arrows when the adjustment's range changes.
12446         (adjustment_changed_cb): Draw the arrows.
12447         (gtk_spin_button_value_changed): Draw the arrows.
12448
12449 2000-11-23  Alexander Larsson  <alexl@redhat.com>
12450
12451         * gdk/linux-fb/gdkselection-fb.c:
12452         Initial selection implementation.
12453
12454         * gtk/gtkselection.c:
12455         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
12456         requestor in gtk_selection_request.
12457         
12458         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
12459         Added gdk_selection_property atom.
12460
12461         * gdk/linux-fb/gdkprivate-fb.h:
12462         Export _gdk_selection_window_destroyed.
12463         Removed mask_off_x/y from GdkCursorPrivateFB.
12464         Removed hbearing, added top, left to PangoFBGlyphInfo.
12465
12466         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
12467         Call _gdk_selection_window_destroyed
12468         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
12469         the root window has been created.
12470         (static_dx_hack, static_dy_hack, compare_draw_rects,
12471         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
12472         in region. They are already sorted. Instead just traverse them in
12473         reverse if draw_direction < 0.
12474         
12475         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
12476         Double-clicks must be sent after the normal button_press.
12477         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
12478         
12479         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
12480         Pass _gdk_fb_screen_gc instead of NULL.
12481
12482         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
12483         Initialize gdk_selection_property.
12484         (gdk_event_make): Remove unused code.
12485
12486         * gdk/linux-fb/gdkcursor-fb.c:
12487         Make the pixmap for the cursor the same size as the mask. Also remove
12488         the mask_off_x/y fields in GdkCursorPrivateFB and combine
12489         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
12490         Now the whole cursor is visible.
12491
12492         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
12493         Fix bug where xdest+height instead of ydest+height was used
12494         to calculate if the source and dest overlapped. This fixes the
12495         redraw bug when the main window in testgtk was scrolled when
12496         partially covered by a tall window.
12497         Copy rectangles in region in order depending on draw_direction.
12498         Also moved the draw_direction flipping of start_y and end_y into
12499         the gc functions, as this might not be what all of them want.
12500         (gdk_fb_draw_lines): Support dashed lines.
12501         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
12502         so that the text is positioned correctly (was 1 pixel high).
12503
12504         gdk/linux-fb/gdkgc-fb.c:
12505         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
12506         all lines were drawn a pixel to short. Also checked the default of
12507         the rest of the values, and they're the same as X now.
12508
12509         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
12510         Clean up pixel positioning of the glyphs. Just use bgy->top and
12511         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
12512         to all divisions to get correct rounding behaviour.
12513
12514         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
12515         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
12516         Moved start_y/end_y flip into draw_drawable implementations.
12517         Flip also x rendering when draw_direction < 0.
12518         Remove unneccesary multiply with draw_direction.
12519
12520 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
12521
12522         * docs/tutorial/gtk-tut.sgml:
12523           - get rid of gtk_toggle_button_toggled FUD
12524           - start DND section - needs work - based on:
12525                 http://wolfpack.twu.net/docs/gtkdnd/
12526
12527 2000-11-22  Alexander Larsson  <alexl@redhat.com>
12528
12529         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
12530         Correct calculation of font metrics. Now GtkEntrys have sane
12531         size.
12532
12533 2000-11-22  Alexander Larsson  <alexl@redhat.com>
12534
12535         * gdk/gdktypes.h:
12536         Add new type GdkSpan
12537         
12538         * docs/reference/gdk/gdk-sections.txt,
12539         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
12540         gdk/gdkregion.h:
12541         Implement and document gdk_region_spans_intersect_foreach.
12542
12543         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
12544         Add new file gdkrender-fb.c which contains all core
12545         rendering code.
12546         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
12547         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
12548         (optimized rectangle fillers).
12549
12550         * gdk/linux-fb/gdkdrawable-fb2.c:
12551         Move all rendering code to gdkrender-fb.c.
12552         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
12553         Use the new span intersection functions in gdk_fb_fill_spans.
12554         gdk_fb_draw_rectangle() clips filled rectangles and calls
12555         gc->fill_rectangle with the result.
12556         gdk_fb_fill_spans() gets extra argument "sorted".
12557
12558         * gdk/linux-fb/gdkevents-fb.c:
12559         Remove unused includes and defines.
12560         New function gdk_fb_get_time() to get correct time for events.
12561
12562         * gdk/linux-fb/gdkinput-ps2.c:
12563         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
12564         Make sure to set the time of all events.
12565
12566         * gdk/linux-fb/gdkmain-fb.c:
12567         Use gdk_fb_get_time ().
12568
12569         * gdk/linux-fb/gdkprivate-fb.h:
12570         New virtual GC calls: fill_span & fill_rectangle.
12571         Export gdk_fb_get_time().
12572         gdk_fb_fill_spans() gets extra argument "sorted".
12573
12574         * gdk/linux-fb/mi*.c:
12575         Use GdkSpan instead of GdkRectangle.
12576         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
12577         from XFree 4 source)
12578         
12579 2000-11-22    <jrb@redhat.com>
12580
12581         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
12582         reversing the order in an if statement will do.  Doing so managed
12583         to make the treemodelsort half work.  Other half will follow after
12584         I get the insert function fully fixed.
12585
12586 2000-11-21  Elliot Lee  <sopwith@redhat.com>
12587         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
12588         more than 2 bits. Besides, I need to implement an evil hack. :)
12589
12590 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
12591
12592         * docs/tutorial/gtk-tut.sgml: minor corrections
12593
12594 2000-11-20  Jonathan Blandford <jrb@redhat.com>
12595         * gtk/gtktreemodelsort.h: Add convertion functions to let you
12596           convert to and from relative path's and iters.
12597
12598         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
12599           testing sorting functions a bit better.  Currently broken -- will
12600           fix in morning.
12601
12602 2000-11-20  Havoc Pennington  <hp@redhat.com>
12603
12604         * gtk/gtkwidget.c: Documented a bunch of functions in here
12605         (gtk_widget_realize): Warn if you try to realize
12606         a widget with no parent that isn't a toplevel
12607         (gtk_widget_intersect): return a gboolean
12608
12609 2000-11-20  Havoc Pennington  <hp@redhat.com>
12610
12611         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
12612         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
12613         scrolling to be implemented in GDK to finish. Also, right now
12614         we just size_allocate all children on every layout change,
12615         which is pretty lame. Test commented out of testtext.c, 
12616         until it works better.
12617
12618 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
12619
12620         * gdk/linux-fb/gdkdrawable-fb2.c:
12621         Removed unused arguments from gdk_fb_drawable_get_pixel().
12622
12623         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
12624         Renamed fidur specific mouse packet data in MouseDevice to
12625         generic. Used it in ps2 mouse handling code to avoid blocking
12626         reads.
12627
12628 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
12629
12630         * demos/gtk-demo/main.c: Changed to have the list become
12631         non-italic when the demo window is destroyed through an external
12632         event (like a close button).  Doing so found three bugs in the
12633         widget.
12634
12635         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
12636
12637         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
12638         we actually set the cell.
12639
12640         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
12641
12642         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
12643         free a leaked path.  Thanks memprof.
12644
12645 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
12646
12647         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
12648         off-by-one error when destroying allocated segments
12649         on failure. (Elliot)
12650
12651 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
12652
12653         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
12654         memleaks found by Evan Martin.
12655
12656 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
12657
12658         * Released 1.3.2
12659         
12660         * NEWS: Updates for 1.3.2
12661
12662 2000-11-17  Tor Lillqvist  <tml@iki.fi>
12663
12664         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
12665         but in general for window system specific events.
12666
12667         * gtk/gtk.def
12668         * gtk/makefile.mingw.in
12669         * gtk/makefile.msc.in: Update.
12670         
12671         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
12672
12673 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
12674
12675         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
12676         distribute gtk.immodules.
12677
12678         * gtk/Makefile.am (install-data-local): Don't install the
12679         gtk.immodules file created for the uninstalled modules;
12680         instead run gtk-query-immodules after install
12681
12682 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
12683
12684         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
12685         -rpath to the right install location.
12686
12687         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
12688         -export-dynamic.
12689
12690         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
12691         properly.
12692
12693 2000-11-15  Havoc Pennington  <hp@pobox.com>
12694
12695         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
12696         patch from Mikael Hermansson to temporarily stop blinking while
12697         the user is using the keyboard to type or navigate. 
12698
12699         Also, when blinking, stay on for longer than we stay off. Also,
12700         return from start_cursor_blink if !cursor_visible, to save
12701         checking that flag all over the place before we call
12702         start_cursor_blink.
12703
12704 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
12705
12706         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
12707         only contain a "fontset" line, which is now ignored.
12708
12709         * gtk/gtkentry.c (gtk_entry_button_release): Make 
12710         double-click-to-select-word work.
12711         
12712 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
12713
12714         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
12715         Don't move back one char when we are actually at the end of the 
12716         paragraph.
12717
12718 2000-11-15  Robert Brady  <robert@suse.co.uk>
12719
12720         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
12721         'o' < 'p'.
12722         
12723         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
12724         bind_textdomain_codeset.
12725
12726         (gtk_init_check): Make the warning about translating default:LTR
12727         sterner.
12728         
12729 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
12730
12731         * **/Makefile.am : remove unecessary rules for win32-specific
12732         config-substituted targets. If you want these rules, use
12733         --enable-maintainer-mode (called automatically by autogen.sh).
12734         Stops a lot of unneccessary make-time warnings.
12735
12736         * gtk/gtktext{layout,display}.c: Factor in total width as
12737         well as screen when figuring alignment for word-wrap as well as
12738         no wrap; this is necessary to handle lines that cannot be wrapped
12739         at all.
12740
12741 2000-11-15  Havoc Pennington  <hp@redhat.com>
12742
12743         * gtk/testtext.c: Implement essential color cycling feature
12744
12745 2000-11-15  Havoc Pennington  <hp@redhat.com>
12746
12747         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
12748         when we invalidate the main window.
12749
12750         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
12751         GtkTextView will now invalidate the side windows for us when text
12752         changes.
12753
12754 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
12755
12756         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
12757         unconditionally, since we may need to update the horizontal
12758         scrollbars even if the height didn't change.
12759
12760         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
12761         the extra attrs, since some of them affect size.
12762
12763         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
12764         x_offset correctly.
12765
12766 2000-11-15  Havoc Pennington  <hp@redhat.com>
12767
12768         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
12769         don't move the first line out into the margin, instead move the
12770         whole paragraph in order to make space for the first line within 
12771         the margin
12772
12773 2000-11-15  Havoc Pennington  <hp@redhat.com>
12774
12775         * gtk/gtktextview.c (changed_handler): offset redraw rect by
12776         xoffset in addition to yoffset, so horizontal scrolling doesn't
12777         break redraws
12778
12779 2000-11-15  Havoc Pennington  <hp@redhat.com>
12780
12781         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
12782         from the cursor
12783         (render_layout_line): fix reversed test that caused weird
12784         underlines to get drawn
12785
12786 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
12787
12788         * gdk/linux-fb/gdkprivate-fb.h:
12789         Fix debug macros.
12790         
12791 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
12792
12793         * gdk/linux-fb/gdkprivate-fb.h:
12794         Added virtual functions set_pixel, get_color,
12795         fill_span and draw_drawable to the GC.
12796         Added global _gdk_fb_screen_gc to use instead of
12797         NULL when drawing to the screen.
12798         Added _gdk_fb_gc_calc_state() prototype.
12799
12800         * gdk/linux-fb/gdkgc-fb.c:
12801         Call _gdk_fb_gc_calc_state() on any gc state change.
12802
12803         * gdk/linux-fb/gdkglobals-fb.c:
12804         Add _gdk_fb_screen_gc
12805                 
12806         * gdk/linux-fb/gdkdrawable-fb2.c:
12807         _gdk_fb_gc_calc_state() calculates best functions
12808         for the GC state and depth.
12809         Moved bpp specialized code to separate functions.
12810         Added optimized 24 bpp AA draw_drawable.
12811
12812         * gdk/linux-fb/gdkevents-fb.c:
12813         Silence gcc warning.
12814
12815         * gdk/linux-fb/gdkimage-fb.c:
12816         Use _gdk_fb_screen_gc
12817
12818         * gdk/linux-fb/gdkwindow-fb.c:
12819         Init and use _gdk_fb_screen_gc
12820
12821         * gdk/linux-fb/mitypes.h:
12822         Remove unused types.
12823
12824 2000-11-14  Havoc Pennington  <hp@pobox.com>
12825
12826         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
12827         to pixels
12828
12829 2000-11-14  Havoc Pennington  <hp@pobox.com>
12830
12831         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
12832
12833         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
12834         unknown char, no real reason we were using a variable. 
12835         Remove gtk_text_unknown_char variable. Fix all the text widget
12836         files accordingly.
12837
12838         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
12839         since the Unicode spec seems to prefer that character for our
12840         purposes.
12841
12842 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
12843
12844         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
12845         value of g_getenv() isn't freeable, so g_strdup it.
12846
12847         * modules/input/inuktitut.c: Inuktitut input method.
12848
12849         * modules/input/Makefile.am: Build this.
12850         
12851 2000-11-14  Elliot Lee  <sopwith@redhat.com>
12852
12853         * gtk/Makefile.am: Install gtk.immodules, needed for operation
12854         of gtk programs.
12855
12856 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
12857
12858         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
12859         reversed > that was causing Home to go to end of previous line.
12860
12861         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
12862         modified-keypresses (leave for bindings.)
12863
12864         * modules/input/Makefile.am: Remove useless -export-dynamic
12865         from module LDFLAGS.
12866
12867 2000-11-14  Havoc Pennington  <hp@redhat.com>
12868
12869         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
12870         higher.
12871
12872         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
12873         account. Also, render rise, underline, background, etc. for
12874         pixbufs as well as text. Also, draw underlines one pixel higher.
12875
12876         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
12877         PangoAttribute for the rise, so it gets drawn properly. Also,
12878         add the GtkTextAppearance attribute for pixbuf/widget segments
12879         as well; we should go ahead and have rise, underline, background,
12880         stipple work for those
12881
12882         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
12883         Pango
12884
12885 2000-11-15  Tor Lillqvist  <tml@iki.fi>
12886
12887         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
12888
12889         * gtk/gtk.def: Update.
12890
12891         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
12892         included.
12893         (gtk_rc_get_im_module_file): Use run-time installation directory
12894         on Win32.
12895
12896         * gdk/win32/rc/gdk.rc: Remove.
12897         * gdk/win32/rc/gdk.rc.in: New file.
12898         * gdk/win32/rc/Makefile.am: New file
12899         * gdk/win32/Makefile.am: Corresponding changes.
12900
12901         * gtk/gtk.rc: Remove.
12902         * gtk/gtk-win32.rc.in: New file.
12903         * gtk/Makefile.am: Corresponding changes.
12904
12905         * configure.in: Corresponding changes.
12906
12907         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
12908         has a built gtkcompat.h. Developers using CVS code on Win32 can
12909         hand-edit it from gtkcompat.h.in.
12910
12911         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
12912         gtkcompat.h from gtkcompat.h.win32.
12913
12914 2000-11-14  Havoc Pennington  <hp@redhat.com>
12915
12916         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
12917         to default to GDK_ACTION_MOVE if the drag is within a single
12918         widget. Defaults to GDK_ACTION_COPY between widgets.
12919
12920 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
12921
12922         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
12923
12924         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
12925
12926         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
12927         srcdir != builddir
12928
12929         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
12930
12931         * configure.in (GTK_VERSION): Up to 1.3.2
12932
12933         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
12934         gtkimcontextxim.h
12935
12936         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
12937         missing doc comment.
12938
12939 2000-11-14  Alexander Larsson  <alexl@redhat.com>
12940
12941         * modules/linux-fb/basic.c:
12942         Use the glib iconv wrappers.
12943
12944 2000-11-13  Havoc Pennington  <hp@pobox.com>
12945
12946         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
12947         still more bugs.
12948
12949         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
12950         scroll the GdkWindows before realization.
12951
12952 2000-11-13  Havoc Pennington  <hp@redhat.com>
12953
12954         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
12955         where GC didn't always get updated properly
12956
12957         * demos/gtk-demo/textview.c (create_tags): Use subattributes
12958         of fonts instead of setting the entire font
12959
12960         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
12961         setting entire font
12962
12963         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
12964
12965         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
12966         a bunch of individually-settable font attributes. You can still 
12967         use the "font" and "font_desc" args, they just set all the font
12968         attributes at once.
12969
12970 2000-11-13 Elliot Lee <sopwith@redhat.com>
12971
12972         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
12973
12974 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
12975
12976         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
12977         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
12978
12979         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
12980         work better.
12981
12982 2000-11-13  Havoc Pennington  <hp@redhat.com>
12983
12984         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
12985         the module file.
12986
12987         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
12988         dest->language
12989
12990         * gtk/testtext.c: Test pixels above/below/inside paragraphs
12991         settings
12992
12993         * gtk/gtktextview.c: Implement object args and setters/getters for
12994         all the aspects of the GtkTextAttributes that are not set from
12995         GtkWidget attributes. This is spacing, justification, margins,
12996         etc.
12997
12998         (gtk_text_view_set_arg)
12999         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
13000         args
13001         (gtk_text_view_class_init): Add args for justify, left_margin,
13002         right_margin, indent, and tabs
13003         
13004
13005         * gtk/gtktextlayout.c (set_para_values): fix to display indent
13006         attribute properly
13007
13008         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
13009         replace with indent attribute
13010
13011         * gtk/gtktextlayout.c (set_para_values): multiply indent by
13012         PANGO_SCALE
13013
13014         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
13015         rearranging code to do that
13016         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
13017         i.e. don't subtract the top_margin first, just to keep
13018         all margin-futzing in one place.
13019
13020         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
13021
13022         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
13023         special case of last line, Pango now handles this itself.
13024         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
13025         Y coordinate
13026         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
13027         (find_display_line_above): wasn't moving the byte index as it
13028         iterated over lines, so always returned byte 0. Also, port to use
13029         PangoLayoutIter.
13030         (find_display_line_below): same problem as
13031         find_display_line_above. Also, port to use PangoLayoutIter.
13032
13033 2000-11-13  Alexander Larsson  <alexl@redhat.com>
13034
13035         * gdk/linux-fb/*.[ch]:
13036         Massive reindent to gtk+ standard. My hands hurt.
13037
13038         * gdk/linux-fb/gdkcolor-fb.c:
13039         Move GdkColorPrivateFB from inherited to windowing_data
13040
13041         * gdk/linux-fb/gdkcursor-fb.c:
13042         _gdk_cursor_new_from_pixmap made static
13043
13044         * gdk/linux-fb/gdkdnd-fb.c:
13045         GdkDragContextPrivate moved to windowing_data
13046
13047         * gdk/linux-fb/gdkdrawable-fb2.c:
13048         Removed endian.h, use glib endianness macros instead
13049         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
13050         and GDK_DRAWABLE_IMPL_FBDATA
13051
13052         * gdk/linux-fb/gdkfont-fb.c:
13053         Add empty gdk_font_load(). Needed for linking of Gtk+.
13054
13055         * gdk/linux-fb/gdkimage-fb.c:
13056         Removed endian.h, use glib endianness macros instead
13057         Moved GdkImagePrivateFB to windowing_data
13058         gdk_image_new_bitmap didn't always allocate enough
13059         memory.
13060
13061         * gdk/linux-fb/gdkinput-ps2.c:
13062         Added semi-working support for MS serial mice.
13063
13064         * gdk/linux-fb/gdkprivate-fb.h:
13065         s/GdkWindowPrivate/GdkWindowObject/
13066         Removed GdkWindowPrivate typedef
13067         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
13068         Removed GDK_DRAWABLE_P
13069         Move GdkColorPrivateFB from inherited to windowing_data
13070         Moved GdkImagePrivateFB to windowing_data
13071
13072         * gdk/linux-fb/gdkvisual-fb.c:
13073         Removed some unused debug code.
13074
13075         * gdk/linux-fb/gdkwindow-fb.c:
13076         Use stock cursors instead of including X headers.
13077         s/GdkWindowPrivate/GdkWindowObject/
13078
13079         * gdk/linux-fb/mitypes.h:
13080         Removed unused types.
13081
13082         * modules/linux-fb/basic.c:
13083         Use the pango fribidi wrappers.
13084
13085 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
13086
13087         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
13088         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
13089         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
13090         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
13091         GEqualFunc where applicable.
13092         
13093         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
13094         pango_font_description_equal as changed in pango.
13095         
13096         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
13097
13098         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
13099
13100         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
13101
13102         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
13103
13104         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
13105
13106         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
13107
13108         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
13109         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
13110
13111         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
13112         gtk_rc_styles_compare -> gtk_rc_styles_equal.
13113
13114 2000-11-12  Havoc Pennington  <hp@pobox.com>
13115
13116         * demos/gtk-demo/Makefile.am (democodedir): change demo install
13117         dir to datadir/gtk+-2.0/demo
13118
13119         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
13120         sorts of text widget and Pango font bugs. Urgh.
13121
13122         * demos/gtk-demo/Makefile.am (demos): Add textview.c
13123
13124         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
13125         tree that you should double click to see the demo. Fix 
13126         types of variables to reflect changed return values from 
13127         GtkTreeStore and GtkTreeViewColumn constructors.
13128
13129         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
13130         newly-created buffer to prepare for GObject semantics
13131
13132         * gtk/testtext.c: don't leak the buffer with GObject semantics
13133
13134         * gtk/testtextbuffer.c: ditto
13135         
13136 2000-11-12  Havoc Pennington  <hp@pobox.com>
13137
13138         Rename this testgtk to gtk-demo to avoid confusion, and 
13139         install it so people can use it as a supplement to 
13140         the documentation.
13141         
13142         * demos/gtk-demo: Moved from demos/testgtk
13143
13144         * demos/testgtk: Removed
13145
13146         * configure.in: make Makefile in gtk-demo
13147         
13148         * demos/gtk-demo/Makefile.am: Install sample source to 
13149         datadir/gtk-demo (maybe there's a better place?), and 
13150         rename the binary to gtk-demo
13151         
13152         * demos/gtk-demo/main.c (load_file): Load installed sample
13153         source if source isn't found in pwd.
13154
13155 2000-11-09  Havoc Pennington  <hp@pobox.com>
13156
13157         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
13158         argument to set the char displayed when visibility == FALSE
13159         (gtk_entry_create_layout): If !entry->visible, replace 
13160         all chars with the "invisible char"
13161
13162         * gtk/testgtk.c: Test the invisible_char deal
13163         
13164 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
13165
13166         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
13167         can't get a native font in the right encoding.
13168
13169 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
13170
13171         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
13172         respectively.
13173
13174 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
13175
13176         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
13177         Fix warning when moving between paragraphs.
13178
13179         * gtk/gtkentry.[ch]: Change move => move_cursor, 
13180         delete => delete_from_cursor, insert => insert_at_cursor
13181
13182 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
13183
13184         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
13185
13186         * modules/input/imthai-broken.c: A Thai input method for use if
13187         Thai keys are really generating Latin1 keysyms.
13188
13189         * modules/input/Makefile.am: Build these.
13190
13191 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
13192
13193         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
13194         g_filename_{to,from}_utf8 now takes an extra parameter.
13195
13196         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
13197         strftime into UTF-8.
13198
13199         (column_from_x, gtk_calendar_paint_day_names): Support RTL
13200         calendars.
13201
13202         (gtk_calendar_paint_day_names): Draw day names in the right 
13203         place.
13204         
13205 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
13206
13207         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
13208         problem with using result of g_get_charset() backwards -
13209         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
13210
13211         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
13212         negative min_width/height and max_width/height to
13213         mean "requisition"; this allows setting a window
13214         to be user-resizable in only one direction easily.
13215
13216         * gtk/testgtk.c (create_main_window): Remove hard-coded
13217         usize - set a default size in the vertical direction.
13218
13219 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
13220
13221         * gtk/gtkrange.c: Add some missing casts. Support 
13222         2 and 3 button clicks on the arrows to mean 
13223         "move by pages" and "jump to end". (Like gtkspinbutton)
13224
13225 2000-11-12 Hans Breuer <Hans@Breuer.Org>
13226
13227         * gdk/win32/makefile.msc : reflect build module changes
13228
13229         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
13230         from GdkPixmap*, cast implementation member instead.
13231
13232         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
13233         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
13234         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
13235         more Gdi functions return value checking. 
13236         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
13237         GdkImagePrivateWin32 *.
13238
13239         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
13240         menus useable again. Add #pragma message to keep reminded on this issue.
13241         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
13242         windows. This allows to enable backing store on Win32!
13243
13244         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
13245         in drawable is of impl type. Correct specific type checks appropriate.
13246  
13247         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
13248         GDK_WINDOW_DESTROYED before allocating new resources.
13249
13250         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
13251
13252         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
13253         (gdk_window_foreign_new) initialize parent handle.
13254         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
13255
13256         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
13257         Let the GDI invalidate the window on MoveWindow call to fix scrolling
13258         problems (e.g. main buttons in testgtk). 
13259
13260 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
13261
13262         * gtk/gtkentry.c (gtk_entry_key_press): Call 
13263         gtk_widget_activate for GDK_Return.
13264
13265         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
13266         of preedit cursor position.
13267
13268 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
13269
13270         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
13271         static.
13272
13273 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
13274
13275         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
13276         out support for multiple locales; that simple doesn't
13277         work reliably with current Xlib
13278
13279         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
13280         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
13281         Add support for positioning the cursor within the preedit string.
13282
13283 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
13284
13285         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
13286         at XIM input method module.
13287
13288         * gtk/gtktextview.c: Check for bindings after passing
13289         events to im context filter.
13290
13291 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
13292
13293         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
13294         empty attribute lists properly.
13295
13296 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
13297
13298         * gtk/queryimmodules.c (main): Return non-zero exit
13299         status if errors were encountered querying any
13300         modules.
13301
13302         * modules/input/Makefile.am (moduledir): remove
13303         leftover bin program target.
13304
13305         * docs/make-todo: Fix typo in error message.
13306
13307 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
13308
13309         * configure.in: Add modules/input/Makefile
13310
13311 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
13312
13313         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
13314         don't include gtkthemes.h.
13315
13316         * gtk/testgtk.c gtk/testtext.c: Set environment variables
13317         to point
13318
13319         * gtk/Makefile.am: Add new .c and .h files, build 
13320         gtk-query-immodules and use it to create a gtk.immodules
13321         file for use of test programs.
13322
13323         * gtk/gtkpreview.c: remove extra blank line.
13324
13325 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
13326
13327         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
13328         Add the ability to add extra tables beyond the default
13329         one, and also the ability to have compose sequences 
13330         that are prefixes of other compose sequences. 
13331
13332         * gtk/gtkimcontextsimple.c: Export a preedit string which
13333         consists of possible candidates for keystrokes that have
13334         been entered but not yet committed.
13335
13336         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
13337         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
13338
13339         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
13340         Add a function to add input-method switching menu items
13341         to a menu.
13342
13343         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
13344         when switching input methods.
13345
13346         * gtk/gtkimcontextsimple.[ch]: Change the format of
13347         the compose table to allow compose tables of different
13348         lengths / sequence.
13349
13350 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
13351
13352         * gtk/gtkimmodule.[ch]: Support routines for loading
13353         GtkIMContext implementations dynamically at runtime.
13354
13355         * modules/input/imcyrillic-translit.c: A sample input
13356         method (based on GtkIMContextSimple with an extra table),
13357         which demonstrates preedit strings and the module
13358         system for input modules
13359
13360         * gtk/queryimmodules.c: Program to query the available
13361         input modules and write the results into a file.
13362          
13363         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
13364         extra config options "im_module_file" (cache file for
13365         input method modules), and "im_module_path" - path
13366         to look for modules when generating cache file.
13367
13368         This doesn't scale.
13369
13370 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
13371
13372         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
13373         generic code from gtkthemes into a new abstraction
13374         GtkModule which has the logic for implementing
13375         a loadable module which implements a number of 
13376         GObject types.
13377
13378 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
13379
13380         * gtk/gtkeditable.[ch]: Convert GtkEditable from
13381         a class into an interface  
13382         
13383         * gtk/gtkoldeditable.[ch]: Move the old editable
13384         implementation into here, so legacy widgets can
13385         still rely on the implemenation. GtkOldEditable
13386         exports GtkEditable. Make selection handling
13387         code use new text conversion functions (and
13388         handle UTF-8 as a side-effect). Use GtkClipboard
13389         for CLIPBOARD.
13390
13391         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
13392         Adopt to match above changes.
13393
13394         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
13395         avoid GtkOldEditable implementation. Restructure
13396         to reduce number of places that modify state directly.
13397         Move to GtkBindingSet. Display the preedit string.
13398         Queue recomputation of PangoLayout and scroll position
13399         to improve effiency of doing complex changes naively.
13400         Add a menu with cut/copy/paste and input method selection.
13401
13402 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
13403
13404         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
13405         to set preedit string and attributes; display preedit string by
13406         inserting string and attributes at cursor when creating the
13407         GtkTextLineDisplay.
13408
13409         * gtk/gtktextlayout.c: Move all conversions between byte
13410         positions in PangoLayout and GtkTextIter into new functions
13411         line_display_iter_to_index/index_to_iter that properly
13412         handle the preedit string.
13413
13414         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
13415         it to return const char * (eventually will end up
13416         as GCONST char *, most likely.)
13417
13418         * gtk/gtktextview.[ch]: Handle the preedit string, call
13419         gtk_im_context_reset() as necessary, add a menu to switch
13420         input methods.
13421         
13422         * gtk/gtktextlayout.[ch]: Remove useless
13423         gtk_text_layout_get_log_attrs() function.
13424
13425 2000-11-11  Tor Lillqvist  <tml@iki.fi>
13426
13427         * gdk/gdk.def
13428         * gtk/gtk.def: Update.
13429
13430         * gdk/win32/*.c: Add last argument to g_type_register_static()
13431         calls.
13432
13433         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
13434
13435         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
13436         generated by older wheel mouse drivers. Get the correct y
13437         coordinate from WM_MOUSEWHEEL messages.
13438
13439         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
13440         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
13441         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
13442         Debugging functions.
13443
13444         * gdk/win32/gdkprivate-win32.h: Declare them.
13445
13446         * gdk/win32/gdkinput-win32.h: Add declaration for
13447         gdk_input_window_destroy().
13448
13449         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
13450
13451 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
13452
13453         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
13454         function to help handle keeping things in sync.
13455
13456 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
13457
13458         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
13459         BOXED marshallers.
13460
13461         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
13462         (gtk_list_store_class_init): use the new BOXED marshallers.
13463
13464         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
13465         new_with_values to new_with_types.
13466         (gtk_tree_store_get_column_type): add this.
13467         (gtk_tree_store_class_init): use the new BOXED marshallers.
13468
13469         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
13470         mirror some POINTER marshallers.
13471
13472 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
13473
13474         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
13475         allow more interesting iterators.  Also, made the lifecycle of
13476         iterators more explicit.
13477
13478         * gtk/gtktreemodelsort.[ch]: New model for sorting.
13479
13480         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
13481         types.
13482
13483 2000-11-09  Alexander Larsson  <alexl@redhat.com>
13484
13485         * demos/testgtk/menus.c:
13486         Changes to make the new testgtk compile after
13487         gtk_menu_append was removed.
13488
13489         * gdk/linux-fb/gdkdrawable-fb2.c
13490         (gdk_fb_get_depth, gdk_fb_get_visual,
13491         gdk_drawable_impl_fb_class_init): Implement
13492         these drawable functions. Now GtkImages work again.
13493
13494         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
13495
13496         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
13497         
13498         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
13499         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
13500         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
13501         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
13502
13503 2000-11-08  Havoc Pennington  <hp@pobox.com>
13504
13505         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
13506         visible_set args, don't know where these had gone, I thought they
13507         used to be there
13508
13509         * gtk/testtext.c: Add a menu item to apply invisibility tag;
13510         now we can test the feature and see that it's totally broken.
13511
13512 2000-11-08  Havoc Pennington  <hp@pobox.com>
13513
13514         Make DND copy pixbufs and tags when source and target share a 
13515         tag table.
13516         
13517         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
13518         in-process GTK_TEXT_BUFFER_CONTENTS target
13519         (gtk_text_view_drag_data_received): Paste from
13520         GTK_TEXT_BUFFER_CONTENTS if we receive it.
13521
13522 2000-11-08  Alexander Larsson  <alexl@redhat.com>
13523
13524         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
13525         API changes.
13526
13527         * gtk/gtkmenu.c: Add support for scrolling menus.
13528         Remove gtk_menu_append/prepend/insert, these have been moved to
13529         gtkcompat.h as #defines.
13530
13531         * gtk/gtkcompat.h.in:
13532         Add compatibility #defines for gtk_menu_append/prepend/insert
13533
13534         * gtk/gtkmenu.h: Add data needed for scrolling menus.
13535         GtkMenuPositionFunc gets an extra argument push_in.
13536         gtk_menu_append/prepend/insert removed.
13537         
13538         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
13539         positioning behaviour to fit to scrolling menus.
13540
13541         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
13542         into menuitem->submeny. That is wrong, and broke torn
13543         off submenus of torn off menus, since they were unrealized
13544         when the first menu was unrealized.
13545
13546         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
13547         gtk_menu_shell_select_item() since these need to be overridden in
13548         GtkMenu.
13549
13550         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
13551         positioning behaviour to fit to scrolling menus.
13552         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
13553         the current item so that it is prelighted when the menu pops up.
13554         This is a workaround to the fact that the menu doesn't get the
13555         initial enter event (due to grabs).
13556
13557         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
13558         s/gtk_menu_append/gtk_menu_shell_append/
13559
13560         * gtk/gtknotebook.c:
13561         s/gtk_menu_insert/gtk_menu_shell_insert/
13562
13563         * gtk/testgtk.c (create_menu, create_menus):
13564         Create the first menu with 50 items so that menu scrolling
13565         can be tested.
13566         
13567         
13568         Patch from Jonathan Blandford  <jrb@redhat.com>
13569
13570         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
13571         system to handle size requests.  First, we ask what the size of
13572         the toggle is.  Then, when allocating the size, we allocate the
13573         toggle_size first.  This way we can have multiple menu-item
13574         classes w/o needing a seperate class for each.
13575
13576         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
13577         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
13578
13579         * gtk/gtkcheckmenuitem.c
13580         (gtk_check_menu_item_toggle_size_request): New function to handle
13581         the toggle size-request.
13582
13583 2000-11-07  Havoc Pennington  <hp@redhat.com>
13584
13585         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
13586         Half-ass somewhat fix this function, so that scrolling to the
13587         insertion point works. Pango hacking is in the future to really
13588         fix it.
13589
13590         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
13591         length of data, no longer used.
13592
13593         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
13594         method contents in here, get rid of destroy method
13595         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
13596         that were backward. Remove debug spew.
13597         (cut_or_copy): Make the clipboard work with insert_range to
13598         preserve tags and pixbufs, not just the primary selection.
13599
13600 2000-11-07  Havoc Pennington  <hp@redhat.com>
13601
13602         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
13603         to gtk_text_mark_get_visible
13604
13605         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
13606         bug that was generating an invalid iterator
13607
13608         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
13609         ensure_char_offsets() in front of code placing the iter in an
13610         invalid state.
13611
13612         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
13613         make override_location arg const
13614         (paste): Replace the selection if we paste into the 
13615         current selection
13616
13617         * gtk/gtkselection.h: Remove "GtkSelectioData"
13618         (struct _GtkSelectionData): move the definition here.
13619
13620         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
13621         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
13622
13623         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
13624
13625         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
13626         (gtk_text_buffer_insert_range_interactive): implement
13627         (gtk_text_buffer_get_tags): Remove, replaced by
13628         gtk_text_iter_get_tags()
13629
13630         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
13631         limit parameter, to avoid infinite linear scan.
13632         (gtk_text_iter_backward_search): Add search limit
13633         (gtk_text_iter_forward_find_char): Add search limit
13634         (gtk_text_iter_backward_find_char): Add search limit
13635
13636 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
13637
13638         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
13639         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
13640         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
13641         gdk/linux-fb/gdkwindow-fb.c:
13642         use g_object_new() instead of g_type_create_instance() which
13643         is a private function for fundamental type implementations.
13644
13645         * gdk/linux-fb/gdkinput-ps2.c:
13646         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
13647         instead just store the current modifier state. Add a (somewhat broken)
13648         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
13649         Rename exported function gdk_input_ps2_get_mouseinfo to
13650         gdk_input_get_mouseinfo.
13651
13652         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
13653         gdk/linux-fb/gdkwindow-fb.c:
13654         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
13655         
13656
13657 2000-11-02  Havoc Pennington  <hp@redhat.com>
13658
13659         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
13660         use stock buttons. Should be 100% source compatible, appropriate
13661         filesel fields now point to dialog->vbox and dialog->action_area.
13662         On the bizarre side, dialog->action_area and filesel->action_area
13663         are not the same widget.
13664         (gtk_file_selection_init): Put some padding around the selection
13665         entry, so it isn't touching the GtkDialog separator.    
13666
13667         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
13668         use stock buttons, etc. Should also be source compatible.
13669         Set the dialog default title in _init not _new().
13670         
13671         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
13672         Use stock buttons; don't put a button box inside the existing
13673         dialog button box. Don't bother with push/pop colormap anymore.
13674
13675         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
13676         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
13677         for message dialog, and necessary for the font selection and color
13678         selection with help and apply buttons.
13679         
13680         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
13681         to the created button widget. Set GTK_CAN_DEFAULT on the button.
13682         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
13683         between buttons, put less padding around the action area.
13684         (gtk_dialog_run): Exit on unmap rather than on destroy. 
13685         This will also exit the loop if the widget is hidden.
13686         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
13687         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
13688         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
13689         special-case delete event.
13690
13691         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
13692         formatting
13693         
13694 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
13695
13696         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
13697         button to temporarily disable position recording in the
13698         "saved position" test.
13699
13700 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
13701
13702         * gtk/gtkthemes.c: added compat code that temporarily implements
13703         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
13704         going to be revamped by owen's upcoming GtkModule patches, but
13705         untill then people want gtk to build, right? ;)
13706
13707 2000-11-04  Havoc Pennington  <hp@pobox.com>
13708
13709         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
13710         list
13711
13712         * docs/Changes-2.0.txt: Add note about
13713         gtk_container_get_toplevels()
13714
13715         * gtk/gtktextview.h: formatting
13716         
13717         * gtk/gtktextview.c: don't start descriptions with "Returns",
13718         confuses gtk-doc
13719
13720 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
13721
13722         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
13723         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
13724
13725 2000-11-03  Havoc Pennington  <hp@redhat.com>
13726
13727         * gtk/gtktexttagtable.c: Docs
13728         (gtk_text_tag_table_size): return a signed int
13729
13730         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
13731         (gtk_text_tag_event): make the event_object a GObject
13732
13733         * gtk/gtktextview.c: Write API docs for all functions.
13734
13735         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
13736         for gtk_text_view_get_window_type() called on one of the private
13737         windows.
13738
13739         * gtk/gtktextview.c: Instead of accessing text_view->buffer
13740         directly, call get_buffer() which demand-creates a default
13741         buffer. So gtk_text_view_new() can be used to create a view with a
13742         default buffer in it, if you just want an empty text box users can
13743         put data in. Useful for GUI builders also.
13744
13745 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
13746
13747         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
13748         the charset encodign portion MUST be in lowercase.
13749         * gtk/gtkrc.az: added file for Azeri language
13750
13751 2000-11-03  Havoc Pennington  <hp@redhat.com>
13752
13753         Get widgets working on the btree/buffer side. Display of them 
13754         still doesn't work.
13755         
13756         * gtk/gtktextview.c: start implementing child widget stuff
13757
13758         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
13759
13760         * gtk/gtktextlayout.c: handle embedded widgets
13761
13762         * gtk/gtktextdisplay.c: handle embedded widgets
13763
13764         * gtk/gtktextchild.c: Implement all the child anchor goo
13765
13766         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
13767         function
13768
13769         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
13770         (insert_pixbuf_or_widget_segment): abstract out common portions of 
13771         creating a child anchor or a pixbuf segment.
13772         (gtk_text_btree_create_child_anchor): new function
13773         (gtk_text_btree_unregister_child_anchor): new function
13774
13775         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
13776         allocate_child signal on GtkTextLayout
13777
13778         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
13779         values
13780         (gtk_text_iter_get_child_anchor): new function
13781
13782         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
13783         default handler for the changed signal, which calls
13784         gtk_text_buffer_set_modified(), instead of just always emitting
13785         changed then calling set_modified() manually. I guess this is
13786         maybe more flexible. It seems logical.
13787
13788 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
13789
13790         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
13791         now.
13792
13793         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
13794
13795 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
13796
13797         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
13798         been marked static.
13799
13800 2000-11-02  Havoc Pennington  <hp@redhat.com>
13801
13802         * gtk/testgtk.c (create_labels): had a test backward
13803
13804         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
13805         fields, so the dest GC ends up with the correct clip origin, 
13806         etc. Fixes a bug where colored labels didn't redraw 
13807         properly.
13808
13809 2000-11-02  Alexander Larsson  <alexl@redhat.com>
13810
13811         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
13812         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
13813         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
13814         Add last argument to t_type_register_static call.
13815         
13816         * gdk/linux-fb/gdkdrawable-fb2.c:
13817         Add last argument to t_type_register_static call.
13818         export the get_image drawable virtual function.
13819
13820         * gdk/linux-fb/gdkimage-fb.c:
13821         Add last argument to t_type_register_static call.
13822         rename gtk_image_get to _gdk_fb_get_image and
13823         export it for use by gdkdrawable-fb2.
13824
13825         * gdk/linux-fb/gdkprivate-fb.h:
13826         export _gdk_fb_get_image.
13827
13828         * gdk/linux-fb/gdkselection-fb.c:
13829         Add new api call stubs.
13830
13831         * gtk/Makefile.am:
13832         Missing ( in linux-fb part.
13833
13834         * modules/linux-fb/Makefile.am:
13835         Must link with gdk_pixbuf or get unresolved symbol.
13836
13837 2000-11-01  Havoc Pennington  <hp@pobox.com>
13838
13839         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
13840         GTK_TYPE_TEXT_ITER and BOXED marshallers
13841
13842         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
13843
13844         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
13845         
13846         * gtk/gtk-boxed.defs: add GtkTextIter
13847
13848         * gtk/gtkmarshal.list: Add marshallers for text widget that 
13849         properly use OBJECT and BOXED
13850
13851 2000-11-01  Havoc Pennington  <hp@redhat.com>
13852
13853         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
13854
13855         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
13856         before returning it. 
13857         
13858 2000-11-01  Havoc Pennington  <hp@redhat.com>
13859
13860         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
13861         Clip the rectangle to be rendered to the drawable, since
13862         get_from_drawable() requires a region within the drawable
13863
13864 2000-11-01  Havoc Pennington  <hp@redhat.com>
13865
13866         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
13867         from coordinates.
13868
13869 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
13870
13871         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
13872         it isn't NULL.
13873
13874 2000-11-01  Havoc Pennington  <hp@pobox.com>
13875
13876         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
13877         on a label
13878         (gtk_label_finalize): unref the attr list if any.
13879
13880         * gtk/testgtk.c (create_get_image): close test on second click
13881         (make_message_dialog): close dialog if it exists
13882
13883         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
13884
13885         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
13886         gdk-pixbuf
13887
13888         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
13889         from Pango markup format
13890         (gtk_label_set_markup_with_accel): ditto but with accelerator
13891         parsing
13892
13893         * gtk/gtkimage.c (gtk_image_expose): reformatting.
13894
13895         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
13896         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
13897         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
13898         call gdk_window_get_origin().
13899
13900         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
13901         implement GDK_PIXBUF_ALPHA_FULL
13902         
13903 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
13904
13905         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
13906         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
13907         g_signal_handlers_disconnect_matched to block/unblock and disconnect
13908         multiple handlers respectively, instead of only treating the
13909         first handler found (bug reported by owen).
13910
13911 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
13912
13913         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
13914
13915         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
13916
13917         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
13918         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
13919         gtk/gtktreeviewcolumn.h: Fixed inline docs.
13920
13921         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
13922         widget.  Needs writing someday.
13923
13924         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
13925         the docs.
13926
13927 2000-10-30  Havoc Pennington  <hp@redhat.com>
13928
13929         * gtk/gtktextview.h, gtk/gtktextview.c:
13930         Rename delete_at_cursor delete_from_cursor, and 
13931         move to move_cursor.
13932
13933 2000-10-30  Havoc Pennington  <hp@redhat.com>
13934
13935         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
13936         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
13937         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
13938         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
13939         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
13940         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
13941         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
13942         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
13943         gtktexttypes.h, gtktextview.c, gtktextview.h:
13944
13945         Massive reindentation and reformatting. Arg alignment and comments
13946         still need fixing in various places.
13947
13948 2000-10-30  Havoc Pennington  <hp@redhat.com>
13949
13950         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
13951         to be named insert_at_cursor and delete_at_cursor so C++ can
13952         handle them.
13953
13954 2000-10-28  Tor Lillqvist  <tml@iki.fi>
13955
13956         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
13957         to get a double directory separator in case the home directory
13958         ends with one. This would cause trouble especially on Windows,
13959         where the path will be confused with the syntax for an an UNC
13960         (network share) path \\server\share\path.
13961         (gtk_rc_add_initial_default_files): Ditto.
13962
13963 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
13964
13965         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
13966
13967         * gtk/gtktextview.c: Use correct marshallers.
13968
13969 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
13970
13971         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
13972         use new iter stuff, and added all the appropriate signals et al.
13973
13974         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
13975         code is internal to gtk only.
13976
13977 2000-10-28  Tor Lillqvist  <tml@iki.fi>
13978
13979         * gtk/gtk.def
13980         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
13981         glib-genmarshal etc.
13982
13983 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
13984
13985         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
13986         parallel builds.
13987
13988 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
13989
13990         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
13991
13992 2000-10-27  Robert Brady  <robert@suse.co.uk>
13993
13994         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
13995         en_GB (British), ia (Interlingua).
13996
13997 2000-10-26  Havoc Pennington  <hp@redhat.com>
13998
13999         * gtk/gtktextiter.c (my_strrstr): fix constness warning
14000
14001         Fixed output of:
14002         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
14003         
14004         * gtk/gtktextsegment.c (char_segment_new): rename
14005         (_char_segment_new_from_two_strings): rename
14006         (_toggle_segment_new): rename
14007         
14008         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
14009         (make_clipboard_widget): make it static
14010         (text_get_func): static
14011         (text_clear_func): static
14012
14013         * gtk/gtkcolorsel.c (adjustment_changed): make this function
14014         static
14015         (hex_changed): make it static
14016         (hsv_changed): make it static
14017         (opacity_entry_changed): make it static
14018
14019         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
14020         (toggle_segment_check_func): rename with _gtk
14021
14022         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
14023         (_widget_segment_new): rename
14024         (_widget_segment_add): rename
14025         (_widget_segment_remove): rename
14026         (_widget_segment_ref): rename
14027         (_widget_segment_unref): rename
14028
14029         * gtk/gtktextmark.c (_mark_segment_new): Rename
14030         _gtk_mark_segment_new   
14031
14032 2000-10-26  Havoc Pennington  <hp@redhat.com>
14033
14034         * gtk/gtkmarshal.list: add new marshallers used by the text widget
14035         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14036         types
14037
14038         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
14039         marshaller types
14040
14041         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
14042         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
14043         license on these files.
14044
14045         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
14046         work.
14047
14048         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
14049         runtime random number different for each tree, instead of 
14050         a constant I made up.
14051
14052 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
14053
14054         * gtk/Makefile.am: buncha cleanups, kludged build sources
14055         dependencies with a Makefile: oldest-source-stamp dependancy
14056         for the moment. automake is really fighting us here, with
14057         intentionally not allowing user-defined rules or dependancies
14058         prior to it's -include $(DEP_FILES) statement. sucks rocks!
14059
14060         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
14061         to public headers. tehy have a comment stating that they are
14062         "semi-public" aren't included by gtk.h and if enums popup there,
14063         they can be /*< skip >*/-ed.
14064
14065         * gtk/gtktextlayout.h: 
14066         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
14067         added LGPL... <SIGH>
14068
14069 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
14070
14071         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
14072         GtkTreeIter.  Added iterators everywhere.
14073
14074         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
14075
14076         * gtk/gtktreeviewselection.c: Changed to use the iterators.
14077
14078         * gtk/gtktreestore.c: Changed to use the iterators.
14079
14080         * gtk/gtkliststore.c: Commented out the code.  Will convert to
14081         iterators tomorrow.
14082
14083         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
14084         iterators tomorrow.
14085
14086         * gtk/treestoretest.c: Changed to use iterators.
14087
14088         * demos/testgtk/main.c: Moved to use the new iterator system.
14089
14090 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
14091
14092         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
14093         localization misbehaviour.
14094
14095         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
14096         a useless type without copy/free.
14097
14098         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
14099         of GTK_TYPE_CTREE_NODE.
14100
14101 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
14102
14103         * gtk/gtksignal.c:
14104         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
14105         applicable.
14106
14107         * gtk/gtk-boxed.defs (GtkSelectionData): specify
14108         gtk_selection_data_copy and gtk_selection_data_free
14109         do GtkSelectionData work as params in signals.
14110
14111 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
14112
14113         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
14114         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
14115         couldn't they at least give it a non-standard name?
14116         
14117         * gtk/gtktextlayout.c: arg! yet another implementation of
14118         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
14119
14120         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
14121         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
14122         home. now i know this _is_ a conspiracy.
14123
14124         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
14125         ::state-changed.
14126
14127         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
14128         (gtk_accel_group_create_add): marshaller signature fixups.
14129
14130         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
14131         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
14132
14133         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
14134         anymore.
14135
14136 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
14137
14138         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
14139         due to the signal system changes, it wouldn't build currently. to
14140         be fixed soon.
14141
14142         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
14143
14144         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
14145         so it needs gtk_marshal_VOID__ENUM() instead of
14146         gtk_marshal_NONE__UINT().
14147
14148         * gdk/gdk*.c: adapted type registration functions.
14149
14150         * gtk/gtkbindings.c:
14151         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
14152         gone.
14153
14154         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
14155
14156         * gtk/gtkobject.c:
14157         (gtk_object_destroy):
14158         (gtk_object_shutdown): fixed recursion guards. basically we have to
14159         catch the case where any of GObject.shutdown() or gtk_object_destroy()
14160         is called during ::destroy, and avoid recursion there.
14161
14162         * gtk/gtktypeutils.c:
14163         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
14164         boxed_copy/boxed_free. this needs a more general solution based on a
14165         publically installed code-generator utility.
14166
14167         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
14168         glib's gobject has support for that now.
14169         define GtkSignalMarshaller in terms of GSignalCMarshaller.
14170
14171 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
14172
14173         * gtk/gtksignal.[hc]:
14174         * gtk/gtkmarshal.[hc]:
14175         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
14176         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
14177         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
14178         care of that.
14179
14180         * *.c: marshaller name fixups.
14181
14182         * gtk/gtkmarshal.list: added a comment briefing the format.
14183
14184 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
14185
14186         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
14187         compatibility macros here now. more specifically, most of
14188         the API is preserved (yes, _most_, nonwithstanding the
14189         following exceptions listed, the API is stil lHUGE ;)
14190         things that got removed completely:
14191         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
14192         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
14193         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
14194         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
14195         gtk_signal_remove_emission_hook().
14196         non-functional functions variants:
14197         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
14198         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
14199         not supported anymore.
14200         (gtk_signal_compat_matched): new internal function to aid
14201         implementation of the compatibility macros, it  provides
14202         functionality to block/unblock/disconnect handlers based
14203         on func/data.
14204
14205         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
14206
14207         * *.c: adaptions to new type registration API signatures.
14208
14209 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
14210
14211         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
14212
14213 2000-10-25  Robert Brady  <robert@suse.co.uk>
14214
14215         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
14216         gdk_property_delete): If window == NULL, assume the root window.
14217         (restoring the behaviour that was in 1.2).
14218         
14219         * gtk/testtext.c (save_buffer): Allow creation of new files when
14220         saving.
14221
14222         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
14223         calls to read().
14224
14225 2000-10-25  Tor Lillqvist  <tml@iki.fi>
14226
14227         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
14228
14229         * gdk/win32/gdkdrawable-win32.c
14230         * gdk/win32/gdkimage-win32.c
14231         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
14232         X11 backend.
14233
14234         * gdk/win32/gdkcc-win32.c
14235         * gdk/win32/gdkcolor-win32.c
14236         * gdk/win32/gdkfont-win32.c
14237         * gdk/win32/gdkinput-win32.c
14238         * gdk/win32/gdkmain-win32.c
14239         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
14240
14241 2000-10-24  Havoc Pennington  <hp@redhat.com>
14242
14243         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
14244         it a static function
14245
14246         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
14247         redraw text when a tag is applied to it.
14248
14249         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
14250         (gtk_text_tag_affects_nonsize_appearance): private functions to
14251         see if a tag requires various kinds of redraw/layout to be queued
14252         up.
14253
14254         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
14255
14256         * gtk/testtext.c (fill_example_buffer): Put the cursor 
14257         at the start of the buffer, so search works by default
14258
14259         * gtk/gtktextiter.c (lines_match): init match_start always
14260
14261         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
14262         function, get iter at a line + a byte index
14263
14264         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
14265         to set byte position within a line
14266         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
14267
14268 2000-10-23  Havoc Pennington  <hp@redhat.com>
14269
14270         * gtk/testtext.c: Re-enable the "find" dialog
14271
14272         * gtk/testgtk.c: Add test for gdk_drawable_get_image
14273         
14274         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
14275         the arguments to gdk_draw_drawable were in the wrong order
14276         (gdk_window_paint_init_bg): This function was ignoring the
14277         init_region, instead of clipping to it, so the entire backing
14278         pixmap was cleared on every begin_paint()
14279         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
14280         was in here again, the loop kept using the same GtkWindowPaint
14281         over and over.
14282         (gdk_window_begin_paint_region): Fix a bug where we had two
14283         x_offset instead of x_offset and y_offset
14284
14285         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
14286         before we get the image.
14287         (gdk_draw_drawable): get the composite before we draw the drawable.
14288         (gdk_drawable_real_get_composite_drawable): default
14289         get_composite_drawable implementation that returns the drawable 
14290         itself
14291
14292         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
14293         get_composite_drawable virtual function
14294
14295         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
14296         list-walking bug
14297
14298         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
14299         make this work if the source drawable is a GdkDrawableImplX11
14300         instead of a public drawable type. This is really broken; the
14301         problem is that GdkDrawable needs a virtual method get_xid(), but
14302         of course that doesn't work in practice. Enter RTTI.
14303
14304         Also, improve mismatched depth message.
14305
14306         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
14307         GdkPixmap
14308
14309         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
14310         install _gdk_x11_get_image as our implementation of get_image
14311         
14312         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
14313         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
14314
14315         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
14316         gdk_drawable_get_image
14317
14318         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
14319
14320         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
14321         get_image
14322
14323         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
14324         trailing semicolon after for loop
14325
14326 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
14327
14328         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
14329         where font_desc for widget's context lagged widget's font_desc by
14330         one step.
14331
14332 2000-10-22  Tor Lillqvist  <tml@iki.fi>
14333
14334         * gdk/win32/gdkgc-win32.c
14335         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
14336
14337         * gtk/makefile.mingw.in
14338         * gtk/gtk.def: Updates.
14339
14340         * gtk/testgtk.c: sleep() is called _sleep in MS's C
14341         library.
14342
14343         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
14344
14345         * gtk/makefile.msc: Remove
14346
14347         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
14348
14349         * gtk/Makefile.am: Add it.
14350
14351         * configure.in: Generate it.
14352
14353         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
14354         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
14355         something even if not implemented, to satisfy picky MSVC.
14356
14357         Patches by Hans Breuer:
14358         
14359         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
14360         SetBkMode() and SetTextAlign() before calling
14361         pango_win32_render().
14362
14363         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
14364         Set hcliprgn to NULL after destroying it.
14365         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
14366
14367         * gdk/win32/gdkgeometry-win32.c
14368         (_gdk_windowing_window_queue_antiexpose): More effective
14369         implementation.
14370
14371         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
14372         depth as default, not the visual's.
14373
14374         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
14375         against empty title.
14376
14377         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
14378         IMAGE_PRIVATE_DATA.
14379
14380         * gdk/win32/gdkimage-win32.c: Use it.
14381
14382 2000-10-22  Robert Brady  <robert@suse.co.uk>
14383
14384         * configure.in: Check for bind_textdomain_codeset
14385
14386         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
14387         present, make use of it.
14388
14389         Add a translatable string "default:LTR" which, if translated
14390         to "default:RTL", will cause the default direction to be
14391         Right-to-Left.
14392
14393         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
14394         direction if marked as flippable.
14395
14396         * gtk/gtkhscale.c: Mark widget as flippable.
14397         
14398 2000-10-04  Havoc Pennington  <hp@redhat.com>
14399
14400         * gtk/testgtk.c (create_buttons): create some stock buttons
14401         with the default accel group
14402         (create_image): test some new GtkImage features
14403         (make_message_dialog): test GtkMessageDialog
14404         (create_modal_window): fix someone's bizzarro indentation
14405
14406         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
14407         GTK_WIN_POS_CENTER_ON_PARENT. 
14408         Add "destroy with parent" setting, which means the window goes
14409         away with its transient parent.
14410         (gtk_window_get_default_accel_group): get the default accel group
14411         for the window.
14412         (gtk_window_set_destroy_with_parent): set/unset destroy with
14413         parent flag
14414         (gtk_window_read_rcfiles): invalidate icon set caches
14415         after reloading rcfiles 
14416
14417         * gtk/gtkenums.h (GtkWindowPosition): add
14418         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
14419         on its parent window when the dialog is mapped for the first time.
14420
14421         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
14422         a simple message dialog class
14423         
14424         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
14425         handler to emit response signal, and maybe later it would
14426         honor a hide_on_delete flag - though that isn't there yet.
14427         Set border width on the vbox to 2, so we get some padding.      
14428         Use a button box for the action area.
14429         (gtk_dialog_key_press): synthesize a delete event if Esc
14430         is pressed and the GtkWidget key press handler didn't 
14431         handle the escape key.
14432         (gtk_dialog_new_with_buttons): new function creates a dialog
14433         with some default buttons in it.
14434         (gtk_dialog_add_action_widget): add an activatable widget
14435         as a button in the dialog - you can also add a non-activatable
14436         widget by accessing the action area directly.
14437         (gtk_dialog_add_button): add a simple button - stock ID or 
14438         label - to the action area
14439         (gtk_dialog_response): emit response signal
14440         (gtk_dialog_run): block waiting for the dialog, return 
14441         the response. Override normal delete_event behavior, so that 
14442         delete_event does nothing inside gtk_dialog_run().
14443
14444         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
14445         emitted when an action widget is clicked or the dialog gets
14446         delete_event
14447
14448         * gtk/gtk.h: add gtkmessagedialog.h
14449
14450         * gtk/Makefile.am: add gtkmessagedialog.[hc]
14451
14452 2000-10-18  Havoc Pennington  <hp@redhat.com>
14453
14454         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
14455         where any number of empty lines would get skipped
14456
14457         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
14458         edge.
14459
14460         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
14461         warning about invalid iterators (explain more thoroughly)
14462         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
14463
14464         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
14465         big
14466
14467         * demos/*.c: Add error handling
14468
14469         * gtk/gtktextbuffer.c: don't modify const iterators
14470
14471         * gtk/gdk-pixbuf-loader.c: Add full error handling here
14472
14473         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
14474         on file load
14475
14476         * gtk/gtkiconfactory.c: Update to reflect addition of error
14477         handling to gdk-pixbuf loaders
14478
14479 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
14480
14481         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
14482         move to new modularized testgtk.
14483
14484 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
14485
14486         * gtk/gtktreeview.c: Draw the arrows correctly.
14487
14488         * gtk/gtktreemodel.c: Added user docs.
14489
14490         * gtk/gtk.h: remove gtktreedatalist.h.
14491
14492         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
14493         parent when generating my type.
14494
14495         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
14496         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
14497
14498 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
14499
14500         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
14501         GtkTreeModel from object to interface.
14502
14503 2000-10-16  Havoc Pennington  <hp@redhat.com>
14504
14505         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
14506         compilation
14507
14508 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
14509
14510         * gtk/gtktreeselection.c: Add API documentation to all public
14511         functions.
14512
14513         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
14514         functions.
14515
14516 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
14517
14518         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
14519         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
14520         docs to all public functions.
14521
14522         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
14523         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
14524         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
14525         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
14526         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
14527         issue.
14528
14529 2000-10-14  Robert Brady  <robert@suse.co.uk>
14530
14531         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
14532
14533 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
14534
14535         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
14536         values other then G_TYPE_STRING.
14537         * gtk/gtktreeselection.c: Minor commenting updates.
14538         * gtk/gtktreeview.c: Format updates.
14539
14540 2000-10-09  Tor Lillqvist  <tml@iki.fi>
14541
14542         * README.win32: Update.
14543
14544         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
14545         lines that had been deleted by mistake (?).
14546
14547         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
14548         also the case fg==white and bg==black (but still not randomly
14549         coloured cursors). Thanks to Wolfgang Sourdeau.
14550
14551         * gdk/win32/*.c: Silence gcc -Wall.
14552
14553         * gtk/gtk.def: Add missing entry points.
14554
14555         Fixes by Hans Breuer:
14556
14557         * gdk/makefile.msc
14558         * gdk/win32/makefile.msc: Update.
14559
14560         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
14561         some MSVC thing, presumably), cause breakpoint on failures. Add
14562         GDK_NOR case. Call g_log_set_always_fatal.
14563
14564         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
14565         should be pased by reference.
14566         
14567         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
14568         
14569         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
14570
14571         * gdk/win32/gdkevents-win32.c
14572         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
14573
14574         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
14575         implementation object.
14576
14577         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
14578         not just windows.
14579         
14580         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
14581         Use the wrapper object.
14582         
14583 2000-10-06  Havoc Pennington  <hp@redhat.com>
14584
14585         * Makefile.am (SRC_SUBDIRS): contrib subdir
14586
14587         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
14588         so it can be used in Xlib version
14589
14590         * demos/testpixbuf.c (update_timeout): error checking from 1.0
14591         tree
14592
14593         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
14594         change from 1.0 tree that returns first frame of animation
14595         if the loaded file is an animation.
14596
14597         * contrib: add new directory to hold stuff that comes with GTK+
14598         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
14599         
14600         * configure.in: add contrib/*
14601
14602 2000-10-05  Havoc Pennington  <hp@redhat.com>
14603
14604         * demos/testpixbuf-save.c: add pixbuf save test
14605
14606         * demos/Makefile.am: add testpixbuf-save.c
14607
14608 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
14609
14610         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
14611         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
14612         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
14613         * gtk/gtktreeselection.[ch]: Replaced
14614         "node_selected"/"node_unselected" signal with "selection_changed"
14615         signal.
14616
14617 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
14618
14619         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
14620         tree widget.
14621
14622 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
14623
14624         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
14625         drawing.
14626
14627 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
14628
14629         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
14630         Move list pointer forwards before removing item from
14631         list. (Crash reported by Salmaso Raffaele)
14632
14633         * gdk/gdkwindow.h: Remove spurious trailing ,
14634
14635         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
14636         dependencies on uninstalled libraries, sorry folks.
14637
14638 2000-10-04  Havoc Pennington  <hp@redhat.com>
14639
14640         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
14641         gtk/gtkiconfactory.c: Fix copyrights    
14642
14643         * demos/testpixbuf.c: add inline pixbuf test
14644         
14645 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
14646
14647         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
14648         Add gdk_window_iconify.
14649
14650         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
14651         (gdk_window_set_geometry_hints): Add win_gravity
14652         to geometry structure.
14653
14654         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
14655         Implement _NET_WM_PING.
14656
14657         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
14658         Set _NET_WM_PID on the client leader.
14659
14660         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
14661         Handle UTF-8 better.
14662
14663         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
14664         UTF-8 better, set _NET_WM_NAME as well. Only set
14665         icon name if it hasn't previously been explicitely 
14666         set.
14667
14668 2000-10-03  Havoc Pennington  <hp@redhat.com>
14669
14670         * gtk/testtextbuffer.c: clean up trailing whitespace,
14671         add extensive tests for tag toggle iteration.
14672         
14673         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
14674         distance
14675
14676         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
14677         optimize case where the tag root is on level 1
14678         (gtk_text_line_previous_could_contain_tag): attempt to implement
14679         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
14680         functionality
14681
14682         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
14683         Implement this, though not very efficiently.
14684
14685         * gtk/gtktextiterprivate.h: reformat
14686
14687         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
14688         iterator
14689
14690         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
14691         this to properly revalidate the iterators.
14692
14693         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
14694         properly at the end of the line (and therefore on empty lines)
14695
14696         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
14697         maybe we should return a value...
14698
14699 2000-10-03  Tor Lillqvist  <tml@iki.fi>
14700
14701         * config.h.win32: Guard definition of alloca(). glib.h now handles
14702         that.
14703
14704         * gdk/gdk.def
14705         * gtk/gtk.def: Add new entry points.
14706
14707         Changes just to make GTK+ build without errors on Win32. No hope
14708         of it working in its current state, though...:
14709         
14710         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
14711         some functions from the X11 backend, just to make GTK+ build.
14712
14713         * gdk/makefile.mingw.in
14714         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
14715         number. Add new object files.
14716
14717         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
14718         GetMessageTime to get timestamp (where on X11 uses
14719         gdk_x11_get_server_time()).
14720
14721 2000-10-02  Havoc Pennington  <hp@pobox.com>
14722
14723         * gtk/gtktextview.c: text_window_* weren't static and should have
14724         been.
14725         Start work on child widgets; not yet complete, syncing to 
14726         office computer.
14727
14728         * gtk/gtktextchild.h: change this to contain a public interface,
14729         starting work on child interfaces.
14730         * gtk/gtktextchildprivate.h: move private interfaces here
14731
14732         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
14733
14734         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
14735         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
14736         gtk/gtktextmark.c: copyright notices
14737
14738         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
14739         internal functions      
14740
14741         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
14742         internal function
14743
14744         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
14745         Reformatting    
14746
14747 2000-09-30  Havoc Pennington  <hp@pobox.com>
14748
14749         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
14750         NULL start/end pointers
14751
14752         * gtk/gtktextbuffer.c: Write some docs
14753         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
14754         NULL, so you can just check whether there's a selection.        
14755
14756         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
14757         cleanup_line or segments_changed ourselves, it gets done 
14758         in unlink_segment
14759
14760         * gtk/gtktextmark.h:
14761         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
14762         
14763         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
14764
14765         * gtk/gtktextmark.c: delete some more old Tk cruft
14766
14767         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
14768         mark before removing it, so we can emit MARK_DELETED with a valid
14769         pointer.
14770         (gtk_text_buffer_mark_set): hold ref across signal emission
14771
14772         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
14773         whining about attempts to delete special marks
14774
14775         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
14776         underscore, since it's internal.
14777
14778         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
14779         now implemented in terms of iterators in gtktextiter.h
14780
14781         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
14782         New function, destructively sets contents of buffer. Also 
14783         a convenient way to clear the buffer by setting text to ""
14784
14785         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
14786         multiline string literal
14787
14788         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
14789         text changes.
14790
14791         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
14792         is not dereferenceable
14793         (gtk_text_iter_forward_lines): fix return value
14794
14795 2000-09-29  Havoc Pennington  <hp@redhat.com>
14796
14797         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
14798
14799         * gtk/gtktextview.c: Implement drag thresholding; change functions 
14800         that set border window size to have nicer name
14801         (gtk_text_view_mark_set_handler):  Fix this to have the 
14802         right signature.
14803
14804         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
14805
14806         * gtk/testtext.c: Update with API changes, put line numbers on 
14807         both sides.
14808         
14809         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
14810         with this
14811
14812         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
14813         pixbuf; delete a big block of #if 0 Tk code
14814
14815         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
14816         insert_pixmap with insert_pixbuf
14817
14818 2000-09-29  Martin Baulig  <baulig@suse.de>
14819
14820         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
14821         confusion with the GdkPixbuf of the GNOME 1.x platform.
14822
14823 2000-09-29  Havoc Pennington  <hp@pobox.com>
14824
14825         * gtk/gtktextview.c: Implement the side windows.
14826
14827         * gtk/testtext.c: Implement simple line numbering in the 
14828         left side window; seems to make scrolling sloooow. Oops.
14829         Also, cursor blink is for some reason causing redraws
14830         of the line numbers. Should investigate...
14831
14832 2000-09-28  Havoc Pennington  <hp@redhat.com>
14833
14834         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
14835         scrolling child windows, and draw focus rectangle properly.
14836         
14837         (gtk_text_view_buffer_to_window_coords):
14838         Coordinate transformation to deal with all these freaking windows
14839         and offsets
14840         (gtk_text_view_window_to_buffer_coords): transform the other way
14841
14842         * gtk/testtext.c (create_buffer): Update to match Pango API change
14843
14844         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
14845         anonymous tags
14846         (foreach_unref): don't emit remove signal from finalize, just
14847         set tag's parent to NULL
14848
14849 2000-09-26  Havoc Pennington  <hp@redhat.com>
14850
14851         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
14852         Fix some warnings       
14853
14854 2000-09-26  Havoc Pennington  <hp@redhat.com>
14855
14856         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
14857         headers into the private header list
14858
14859         * Makefile.am (pkgconfig_DATA): install pkg-config files
14860
14861         * configure.in: add pkg-config files
14862
14863         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
14864
14865         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
14866         outstanding icon caches on theme change.
14867
14868         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
14869         important types:
14870
14871         (GtkIconSource): Specification for creating a pixbuf 
14872         appropriate for a direction/state/size triplet from 
14873         a source pixbuf or filename
14874
14875         (GtkIconSet): List of GtkIconSource objects that are used to
14876         create the "same" icon (e.g. an OK button icon), and cache for
14877         rendered icons
14878
14879         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
14880         up the icon set for a given stock ID.  GTK maintains a stack of
14881         GtkIconFactory to search, and applications or libraries can add
14882         additional icon factories on top of the stack
14883         
14884         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
14885         the set of GtkIconSource specified for a given stock ID into 
14886         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
14887         RcStyle, under the specified stock ID.
14888
14889         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
14890         render_icon used to derive a GdkPixbuf from a GtkIconSource.
14891         This allows people to theme how prelight, insensitive, etc. are
14892         done.
14893
14894         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
14895         icon factories for a style, and return the resulting 
14896         icon set if any.
14897
14898         (gtk_style_render_icon): Render an icon using the render_icon 
14899         method in the GtkStyleClass.
14900
14901         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
14902         Use the style for a given widget to look up a stock ID, get the
14903         icon set, and render an icon using the render_icon method 
14904         of the style
14905
14906         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
14907         (contains information about a stock item), the built-in stock item
14908         IDs, and functions to add/lookup stock items.
14909
14910         * gtk/stock-icons/*: Stock icons that come with GTK
14911
14912         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
14913         a button based on a GtkStockItem
14914         (gtk_button_new_accel): Takes a uline string and accel group, and
14915         installs the accelerator.
14916
14917         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
14918         image-display widget.
14919
14920 2000-09-25  Havoc Pennington  <hp@redhat.com>
14921
14922         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
14923
14924         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
14925         Fix a bug when removing node data, we didn't properly 
14926         re-splice the linked list after removing the data.
14927
14928         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
14929         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
14930
14931         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
14932
14933         * gtk/gtktextlayout.c (set_para_values): Set tab array 
14934         for the layout from the GtkTextTag.
14935
14936         * gtk/gtktexttypes.h: delete tab and search cruft, 
14937         remove g_convert() in favor of GLib version
14938
14939         * gtk/gtktexttypes.c: remove tab implementation from here,
14940         move to Pango
14941
14942         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
14943         tab stuff using new PangoTabArray from Pango
14944
14945         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
14946         unused border_width stuff
14947
14948 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
14949
14950         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
14951         glib) and now useless utf_to_latin1() latin1_to_utf()
14952
14953         * gtk/gtktextview.[ch]: Change ::move_insert and
14954         ::delete_text action signals to ::move and ::delete;
14955         create the signals with the right enumeration type,
14956         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
14957         C-v bindings, change Home, End to move to beginning/end
14958         of line, Add C-Home C-End to move to beginning/end
14959         of buffer. Change ::cut_text to ::cut_clipboard, etc;
14960         combine ::scroll_text into ::move; use new GtkSelectionData
14961         functions to simplify DND text handling.
14962         
14963         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
14964         deletion enumerations here, rename enumeration values to 
14965         be consistently plural.
14966
14967         * gtk/gtktextbuffer.c: Use new clipboard interfaces
14968         for cut/copy/paste and primary selection.
14969
14970         * gtk/gtktextbuffer.[ch]: Remove excess time and
14971         'interactive' arguments from cut/copy/paste;
14972         rename cut to cut_clipboard, etc; remove
14973         gtk_text_buffer_get_clipboard_contents().
14974
14975         * gtk/gtktextlayout.[ch]: Add 
14976         gtk_text_layout_move_iter_to_line_end() to move the iter to 
14977         line ends.
14978
14979         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
14980         Functions to set or get a UTF-8 string on the selection
14981         data.
14982
14983         * gtk/gtkclipboard.[ch]: New, simplified selection handling
14984         interfaces.
14985
14986         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
14987         created widgets - one of these is useless if we don't.
14988
14989         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
14990         a public function clear all targets registered for the
14991         widget.
14992
14993         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
14994         Never call gtk_widget_realize() - that was just asking
14995         for bizarre side-effects.
14996
14997         * gtk/gtkselection.c (gtk_selection_owner_set): Call
14998         gdk_selection_owner_set even if the widget is the
14999         same so that we reliably update the timestamp on
15000         the server.
15001
15002         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
15003         gdk_x11_get_server_time() function.
15004         
15005         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
15006         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
15007         Add some tricky filtering on serial numbers for
15008         selection clear events to fix up long-standard
15009         race condition FIXME's in gtkselection.c.
15010
15011         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
15012         routines to convert from utf8 to compound text or
15013         STRING and from a text property to UTF-8.
15014
15015         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
15016         a convenience function gdk_get_current_event_time().
15017
15018         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
15019         and free selection_data->data properly
15020
15021 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
15022
15023         * gtk/gtkthemes.c: Remove some unecessary includes.
15024
15025 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
15026
15027         * gtk/gtktextdisplay.c
15028         * gtk/gtktextlayout.c
15029         * gtk/gtktexttag.c
15030         * gtk/gtktexttag.h
15031         * gtk/testtext.c: Change the overstrike property to strikethrough,
15032         to closer match pango.
15033
15034 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
15035
15036         * gtk/gtktextview.c: Fix up visibility so that focus,
15037         cursor_visible and blink interact properly.  Reenable cursor blink
15038         which had been roughly disabled. Make blink and focus
15039         properly per-view.
15040
15041         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
15042         Add a flag for whether to display insertion cursor and
15043         a function to set the flag.
15044
15045         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
15046         get_line_y() to get_line_yrange(), to be a bit more generally
15047         useful.
15048
15049 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
15050
15051         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
15052           do stop_navigating_submenu, to clear last timeout properly.
15053           Also in gtk_menu_motion_notify move ignore_enter above
15054           the conditional to make it always happen as suggested by Owen
15055
15056 2000-09-07  Tor Lillqvist  <tml@iki.fi>
15057
15058         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
15059
15060         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
15061         w32api headers.
15062
15063         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
15064         declarations.
15065
15066         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
15067         (gdk_win32_get_colormap): A line had been deleted by mistake.
15068
15069         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
15070         (gdk_event_translate): Handle more virtual keycodes to be able to
15071         generate GDK events for Control-comma, Control-period, etc.
15072
15073         * gtk/gtk.def: Add some missing entry points.
15074
15075 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
15076
15077         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
15078         Doc comment fixing. (Mostly non-matching parameter names.)
15079
15080         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
15081         comments a little to avoid looking like a doc comment.
15082
15083         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
15084         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
15085         conversions be changed to GError?)
15086
15087         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
15088         Move private #defines into .c file.
15089
15090         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
15091         order of argument addition, remove duplicates.
15092
15093         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
15094         parent class is FrameClass, not BinClass.
15095
15096         * gtk/gtk.h: Add gtkinvisible, which was missing.
15097         (It's occasionalyl useful for client apps, if seldom.)
15098
15099         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
15100         #define.
15101
15102 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
15103
15104         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
15105         coordinates when creating window, instead of GDK-space
15106         coordinates. (Avoid BadValue on too large windows.)
15107
15108 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
15109
15110         * configure.in (use_mmx_asm): Remove conftest* after use along the
15111         lines of AC_TRY_COMPILE.        
15112         
15113         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
15114         of g_dirname, which is deprecated.
15115         (gtk_rc_parse_any): Removed calls to
15116         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
15117
15118         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
15119         Removed calls to g_hash_table_{freeze,thaw}, as they are
15120         deprecated now.
15121
15122         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
15123         instead of g_basename.
15124         
15125 2000-09-04 Elliot Lee <sopwith@redhat.com>
15126         
15127         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
15128         ANSI warning.
15129
15130 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
15131
15132         * gtk/gtkwidget.h:  Add some documenting comments about 
15133           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
15134           just as owen said on irc.
15135
15136         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
15137           set HAS_DEFAULT.  Only set it if there isn't another window
15138           holding it (a focus window which RECEIVES_DEFAULT) and only unset
15139           it if the widget is not the focused window with RECEIVES_DEFAULT.
15140           This fixes weird double default bugs in dialogs which has things
15141           call gtk_window_set_default at times.
15142
15143 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
15144
15145         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
15146         Nils Barth and David Santiago to improve submenu
15147         navigation. The patch does this by creating a triangular
15148         region from the point where the pointer leaves the
15149         menu to the submenu.  While the pointer is in
15150         that region and a timeout has not expired, events 
15151         that would cause the active submenu to change are
15152         ignored.
15153
15154 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
15155
15156         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
15157         moving a toplevel window immediately after sizing it would
15158         result in it being sized back to the old size since 
15159         impl->width, impl->height aren't updated until we hear
15160         back from the server. There is still a (longstanding) bug
15161         here that gdk_window_get_size() will give the wrong size
15162         until we do hear back.
15163
15164 2000-08-31  Havoc Pennington  <hp@redhat.com>
15165
15166         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
15167         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
15168         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
15169         Rename GtkTextStyleValues to GtkTextAttributes
15170
15171 2000-08-31  Havoc Pennington  <hp@pobox.com>
15172
15173         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
15174         for rapid testing whether an iterator is the end iterator
15175         (gtk_text_btree_new): init end line cache
15176         (gtk_text_line_is_last): use fast cached line to 
15177         see if we're the last line.
15178         (get_last_line): use cached line here too, should 
15179         speed up some random unrelated code.
15180         
15181 2000-08-30  Havoc Pennington  <hp@pobox.com>
15182
15183         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
15184         signals.
15185
15186         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
15187         delete_text signals. This allows the signals to be used for
15188         implementing undo.
15189
15190         * gtk/gtktextbuffer.c: Change signal handler signatures; 
15191         provide "interactive" argument when emitting insert_text or
15192         delete_text signal.
15193         
15194 2000-08-30  Havoc Pennington  <hp@pobox.com>
15195
15196         * gtk/gtktextbuffer.c: Docs
15197
15198 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
15199
15200         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
15201         from switch statements, since Tor removed the enumeration
15202         value.
15203         
15204         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
15205         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
15206
15207 2000-08-29 Elliot Lee <sopwith@redhat.com>
15208         * */*.h: Use G_GNUC_CONST.
15209
15210 2000-08-27  Havoc Pennington  <hp@pobox.com>
15211
15212         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
15213         minor indentation fixes, inserted some FIXME about stuff I
15214         realized was broken while documenting it.
15215         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
15216         GTK convention  
15217
15218 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
15219
15220         * gtk/testgtk.c (create_styles): Fix double free of
15221         font desc.
15222
15223 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
15224
15225         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
15226         
15227         * gtk/testgtk.c (create_styles): Add a test for modifying
15228         the style through gtk_widget_modify_*.
15229
15230         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
15231         a function to get the current modifier style.
15232
15233         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
15234         of the passed in GtkRcStyle instead of ref'ing it.
15235
15236         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
15237
15238 2000-08-20  Tor Lillqvist  <tml@iki.fi>
15239
15240         * gdk/gdkimage.h
15241         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
15242         shared memory image+pixmap GdkImage type, or
15243         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
15244         I am dropping that.
15245
15246         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
15247         actually call gtk_init_abi_check(), passing also
15248         sizeof(GtkWindow). Ditto for gtk_init_check(). 
15249
15250         * gtk/gtk.def
15251         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
15252         New functions, used to check that the GTK+-using code has been
15253         compiled using the correct compiler and switches. In particular,
15254         with gcc one has to use the -fnative-struct switch as GTK+ is
15255         compiled with that.
15256
15257 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
15258
15259         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
15260         ->prev fields when merging lists. (Found simultaneously
15261         by Pawel Salek and Jakub Jelinek)
15262
15263 2000-08-12  Tor Lillqvist  <tml@iki.fi>
15264
15265         * gdk/gdk.def
15266         * gtk/gtk.def: Add missing entries.
15267
15268         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
15269         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
15270
15271         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
15272         function. Dummy implementation at this point.
15273
15274         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
15275         rules. Undefine GTK_COMPILATION when compiling the test programs.
15276         
15277         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
15278
15279 2000-08-11  Tor Lillqvist  <tml@iki.fi>
15280
15281         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
15282         to convert back and forth from UTF-8 and the "system" (or "current
15283         locale") charset when necessary. Indentation/spacing cleanup.
15284
15285 2000-08-10  Havoc Pennington  <hp@redhat.com>
15286
15287         * Makefile.am (snapshot): Change the format of the snapshot
15288         version to match glib
15289
15290         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
15291         from EXTRA_DIST since it doesn't seem to exist
15292
15293 2000-08-10  Tor Lillqvist  <tml@iki.fi>
15294
15295         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
15296         version of the directory name (not the UTF-8 one) when building
15297         the path name to stat().
15298
15299 2000-08-03  Elliot Lee  <sopwith@redhat.com>
15300
15301         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
15302         PANGO_ATTR_SHAPE set.
15303
15304 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
15305
15306         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
15307         Peter Osterlund to simplify the code while keeping the
15308         functionality the same.
15309
15310 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
15311
15312         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
15313         is_viewable() test further inside the function, since removing the 
15314         window from the redraw list without clearing ->update_area
15315         was also very broken.
15316
15317 2000-08-02  Tor Lillqvist  <tml@iki.fi>
15318
15319         * configure.in: Check for <unistd.h>.
15320
15321 2000-08-01  Martin Baulig  <baulig@suse.de>
15322
15323         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
15324         to display the message that this is a development version of GTK+.
15325
15326 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
15327
15328         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
15329         was depending on widget->allocation instead of the width of text_area,
15330         which was incorrect for subclasses like GtkSpinButton.
15331
15332         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
15333         with width == 1 tests that should be width == -1.
15334
15335 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
15336
15337         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
15338         (broken, Elliot, every single window blank on X) custom code with call
15339         to gdk_window_is_viewable() which a) prevents code duplicate and
15340         b) works. 
15341
15342 2000-07-31  Elliot Lee  <sopwith@redhat.com>
15343
15344         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
15345         to get the GDK_PARENT_ROOT() macro to work.
15346         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
15347         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
15348         of, windows that aren't shown.
15349         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
15350         pointer grab stuff.
15351
15352 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
15353
15354         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
15355           s/gtk_main_iteration/g_main_iteration/
15356
15357           Did this already in change:
15358                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
15359           don't know how it got reverted.
15360
15361 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
15362
15363         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
15364         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
15365
15366         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
15367         not gdk_pixbuf.
15368
15369 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
15370
15371         * configure.in,po/{sp,sr}.po: Added Serbian files
15372
15373 2000-07-30  Tor Lillqvist  <tml@iki.fi>
15374
15375         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
15376
15377         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
15378         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
15379         GIOChannel implementation.
15380
15381         * gdk/win32/gdkinput.c
15382         * gdk/win32/gdkpango-win32.c: Update license name here, too.
15383
15384         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
15385         definition to match prototype.
15386
15387         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
15388
15389 2000-07-27  Elliot Lee  <sopwith@redhat.com>
15390
15391         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
15392         function, to allow handling image formats that cannot be detected
15393         by looking at content alone.
15394
15395 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
15396
15397         * docs/tutorial/*.gif *.jpg *.eps
15398           Update these to the same look-n-feel.
15399           Why does including images in DocBook suck so badly?
15400
15401 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
15402
15403         * gtk/gtktable.c: applied patch from Phil Thompson
15404         <phil@river-bank.demon.co.uk> that enables space settings for
15405         the last row/columns as well.
15406
15407 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
15408
15409         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
15410         updates the license headers to the GNU Lesser General Public License,
15411         as well as updating the copyright year to 2000.
15412
15413 2000-07-26  Robert Brady  <rwb197@zepler.org>
15414
15415         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
15416           and po/Makefile, was installing and looking for them under gtk20
15417           and gtk2 respectively.
15418
15419 2000-07-25  Havoc Pennington  <hp@redhat.com>
15420
15421         * gtk/testtext.c: Comment out some stuff that depends on the rest
15422         of my patches.
15423
15424 2000-07-25  Havoc Pennington  <hp@redhat.com>
15425
15426         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
15427         buffer
15428
15429 2000-07-25  Havoc Pennington  <hp@redhat.com>
15430
15431         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
15432         widget changes.
15433
15434         * gtk/gtktextview.h: To be consistent with usage of "line"
15435         throughout the API to mean "newline-terminated thingy", change
15436         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
15437         to MOVEMENT_LINE.
15438
15439         (GtkTextView): Add flags for default editability, and whether to
15440         show the cursor. Add functions to get/set that. Add 
15441
15442         (gtk_text_view_get_iter_location): new function
15443
15444         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
15445         gtktextlayout.h
15446         (g_convert): Add g_convert temporarily, will go in glib in a bit
15447         
15448         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
15449         GtkTextTagTableForeach instead of brokenly using GHFunc.
15450         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
15451
15452         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
15453         moved to public header.
15454
15455         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
15456         "invisible", since "elide" was a bad name.
15457         (gtk_text_tag_get_priority): Added
15458
15459         (GtkTextStyleValues): put this in public header, along with
15460         functions to use it.
15461
15462         * gtk/gtktextmarkprivate.h: Include more headers, since we no
15463         longer include gtktextbtree.h.
15464
15465         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
15466         gtk_text_mark_deleted
15467
15468         * gtk/gtktextlayout.h: Don't include the "really private" headers,
15469         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
15470         to make this possible. Now we only need to install
15471         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
15472         (However the Makefile.am isn't changed yet because of the
15473         logistics of merging gtk-hp-patches piecemeal)
15474
15475         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
15476         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
15477         gtk_text_iter_get_line is now used in the public API for a
15478         different purpose.
15479
15480         * gtk/gtktextiter.h: Clean up function names to be more
15481         consistent. Always call char offset "offset" and byte index
15482         "index". A "line" is always a line number. 
15483
15484         (gtk_text_iter_is_last): new function, more efficient than 
15485         the existing way to check
15486         (gtk_text_iter_is_first): new function, also more efficient
15487
15488         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
15489
15490         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
15491         gtk_text_iter_forward_char, etc.
15492
15493         (gtk_text_iter_forward_to_tag_toggle): Renamed from
15494         forward_find_tag_toggle, since this isn't a linear search
15495
15496         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
15497
15498         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
15499         New functions, search for a buffer substring.
15500
15501         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
15502         interactive and default editable (since we need to store that info
15503         until we receive the selection data).
15504
15505         Remove all the _at_char and at_line etc. versions of functions;
15506         only have iterator versions.
15507
15508         Add _interactive() versions of functions, that consider the
15509         editability of text. (FIXME add interactive flag to the 
15510         insert/delete signals per Darin's suggestion)
15511
15512         (gtk_text_buffer_get_tag_table): new function, demand-creates the
15513         tag table if necessary
15514
15515         Remove declaration of gtk_text_buffer_get_iter_from_string
15516
15517         (_gtk_text_buffer_get_btree): private/internal function, added.
15518         
15519
15520         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
15521         (gtk_text_line_is_last): new function
15522
15523 2000-07-25  Havoc Pennington  <hp@redhat.com>
15524
15525         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
15526         using GtkProgressBar. See Changes-2.0.txt for details.
15527
15528         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
15529         "pulse_step" which are the equivalent of
15530         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
15531         Implement new API.
15532         
15533         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
15534         (use_text_format) to mark whether text set on the progress bar is
15535         a format string. Deprecate entire GtkProgress interface.
15536
15537         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
15538         (gtk_progress_build_string): make this a no-op if use_text_format
15539         is FALSE
15540
15541         * docs/Changes-2.0.txt: Describe progress bar changes.
15542
15543 2000-07-25  Tor Lillqvist  <tml@iki.fi>
15544
15545         * Makefile.am: Include the build directory.
15546
15547         * configure.in: Generate build/Makefile, build/win32/Makefile,
15548         gdk/, gdk/win32/, and gtk/makefile.mingw.
15549
15550         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
15551         Add GETTEXT_PACKAGE.
15552         
15553         * gdk/gdk.def
15554         * gtk/gtk.def: Updates.
15555
15556         * gdk/gdkfont.h
15557         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
15558         need them any longer.
15559
15560         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
15561
15562         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
15563         PANGOWIN32_LIBS and gdk_pixbuf.
15564
15565         * gdk/win32: Compiles, but no doubt doesn't work at all.
15566
15567         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
15568
15569         * gdk/win32/gdkinput.c: New file, temporarily.
15570         
15571         * gdk/win32/gdkinput-win32.h: New file
15572
15573         * gdk/win32/gdkinputprivate.h: Remove.
15574
15575         * gdk/win32/gdkpango-win32.c: New file.
15576
15577         * gtk/makefile.mingw.in: New file
15578
15579         * gtk/makefile.cygwin: Removed
15580         
15581         * gtk/Makefile.am: Update accordingly.
15582
15583         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
15584         made externally visible.
15585
15586         * gtk/gtkmain.c: Use it.
15587         
15588         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
15589         is enough.
15590
15591         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
15592
15593 2000-07-24 Elliot Lee <sopwith@redhat.com>
15594         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
15595         individual backends already.
15596         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
15597         again. Yes, there really is a good reason for this, if you are using the gdkregion
15598         internals, and if you're not, why do you care?
15599         * gdk/gdkwindow.c: Fix inverted condition
15600         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
15601         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
15602         * gtk/gtkrange.c: Redraw trough when moving.
15603         * gtk/gtktypeutils.c: Fix warning by adding const cast.
15604         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
15605
15606 2000-07-23  Tor Lillqvist  <tml@iki.fi>
15607
15608         * configure.in: Check for mkstemp and sigsetjmp. Output
15609         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
15610
15611         More work on GDK for Win32. Still in an intermediate state.
15612
15613         * gdk/makefile.cygwin
15614         * gdk/win32/makefile.cygwin: Removed.
15615         
15616         * gdk/makefile.mingw.in
15617         * gdk/win32/makefile.mingw.in: New files.
15618
15619         * gdk/Makefile.am
15620         * gdk/win32/Makefile.am: Generate and distribute them.
15621
15622         * gdk/win32/gdkwindow-win32.h
15623         * gdk/win32/gdkdrawable-win32.h
15624         * gdk/win32/gdkpixmap-win32.h: New files.
15625
15626         * gdk/win32/gdkcolor-win32.c
15627         * gdk/win32/gdkcursor-win32.c
15628         * gdk/win32/gdkdrawable-win32.c
15629         * gdk/win32/gdkgc-win32.c
15630         * gdk/win32/gdkimage-win32.c
15631         * gdk/win32/gdkprivate-win32.h
15632         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
15633         Rename fields and variables called xcursor, xid, etc (these names
15634         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
15635
15636 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
15637
15638         * gtk/gtkentry.[ch]: Fix some problems with vertical
15639         alignment.
15640
15641         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
15642         char/byte confusion.
15643
15644 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
15645
15646         * gtk/gtktextview.c (changed_handler): Fix bug where
15647         redraw wasn't being done properly when height of
15648         dirty region changed.
15649
15650         * demos/Makefile.am: Remove various references to
15651         -lgmodule
15652
15653 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
15654
15655         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
15656         PangoAttrShape to reserve space for pixmaps, add 
15657         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
15658         in the display functions.
15659         
15660         * gtk/testgtk.c (create_layout): Set some more exotic
15661         scrolled window options
15662
15663         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
15664         Add function to set the shadow type of a window, to allow
15665         putting a shadow around widgets such as GtkLayout or GnomeCanvas
15666         which don't draw their own frame.
15667
15668 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
15669
15670         * docs/tutorial/package-db-tutorial.sh: New file for
15671           packaging DocBook format tutorial
15672
15673 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
15674
15675         * docs/tutorial/gtk-tut.sgml: Minor updates
15676
15677         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
15678
15679 2000-07-19  Tor Lillqvist  <tml@iki.fi>
15680
15681         * gtk/gtksignal.c: Fix C++ comment.
15682
15683         * gtk/gtkimmulticontext.c
15684         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
15685         don't return value from void functions.
15686
15687         * gtk/gtk.def: Add gtk_rc_style_unref.
15688
15689 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
15690
15691         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
15692         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
15693         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
15694         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
15695         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
15696         gtk/gtktypeutils.h: Include files outside of the extern "C"
15697         block. Makes some C++ compiler happy. Reported by Denis Vakatov
15698         <vakatov@peony.nlm.nih.gov>.
15699
15700 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
15701
15702         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
15703           Completes first pass. Hurrah!
15704
15705 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
15706
15707         * docs/tutorial/gtk-tut.sgml: More clean ups.
15708
15709 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
15710
15711         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
15712         paint the background of the text area which was accidentally
15713         removed at some point.
15714
15715         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
15716           
15717          - Move most of the functionality from the theme vtable
15718            into GtkRcStyleClass and GtkStyleClass. The moved
15719            vtable functions were changed a bit in the move to
15720            work better in their new home.
15721
15722          - Get rid of the engine and engine_data fields from
15723            GtkRcStyle and GtkStyle; instead the theme
15724            engine derives theme-specific subclasses of GtkRcStyle
15725            and GtkStyle
15726
15727          - Add extra dlsym() found entry point to themes,
15728            theme_create_rc_style().
15729
15730         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
15731         in gtk_style_real_copy.
15732
15733         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
15734         to register a type associated with an engine. (The engine
15735         won't be unloaded as there is an instance of the type.)
15736
15737
15738 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
15739
15740         * docs/tutorial/gtk-tut.sgml: Clean ups.
15741
15742 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
15743
15744         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
15745           of cleaning up to do.
15746
15747 2000-07-15  Tor Lillqvist  <tml@iki.fi>
15748
15749         * gdk/testgdk.c: New file, quick hack to test backends for
15750         pixel-by-pixel correctness of the most simple graphic operations.
15751
15752 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
15753
15754         * Really release 1.3.1
15755         
15756         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
15757         include structure.
15758
15759 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
15760
15761         * Released 1.3.1
15762
15763 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
15764
15765         * gtk/gtktextlayout.c: use FALSE for size_only most
15766         of the time when calling gtk_text_layout_get_line_display()
15767         to avoid causing double reshapes when a redraw follows
15768         immediately after.
15769
15770 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
15771
15772         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
15773         appropriate region and gdk_window_process_updates() so trough
15774         updating doesn't lag behind the window being scrolled.
15775
15776         * gdk/gdkgc.c: Make parent_class pointer static.
15777          
15778 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
15779
15780         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
15781         include <string.h>.
15782          
15783         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
15784         cut-and-paste error in computing memory offset for 4 channels.
15785
15786 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
15787
15788         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
15789         gtk_rc_append_default_pixmap_path(), since it wasn't
15790         adding an interesting path and we don't have a meaningful
15791         default for this value.
15792
15793 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
15794
15795         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
15796         gtk-config to gtk-config-2.0 move gtk_.m4 to
15797         gtk-2.0.m4
15798
15799         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
15800         gdk/Makefile.am demos/Makefile.am: Change 
15801         library names to libgtk-1.3.la, etc, so that we
15802         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
15803
15804         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
15805         gdk/Makefile.am gdk/x11/Makfile.am
15806         Move include files into /usr/include/gtk-2.0, 
15807         /usr/lib/gtk-2.0/include/
15808          
15809         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
15810         gtk/gtkintl.h: Change package for gettext from 
15811         gtk+ to gtk20. Put hack in autogen.sh to modify
15812         po/Makefile.in.in after gettextize to make this
15813         possible.
15814
15815         * gtk+.spec: Some updates, not tested.
15816
15817         * gdk-pixbuf/Makefile.am: Move loaders into
15818         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
15819
15820         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
15821         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
15822         to THEMENAME/gtk-2.0/. Move engine directory  to
15823         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
15824         
15825 2000-07-12  Tor Lillqvist  <tml@iki.fi>
15826
15827         Win32 changes, still doesn't build though.
15828
15829         * gdk/makefile.cygwin
15830         * gdk/win32/makefile.cygwin
15831         * gtk/makefile.cygwin: Updates.
15832
15833         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
15834         default values for fg and bg pixel as X11 does (0 and 1), not
15835         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
15836         Use 0 for pen width by default (treated as 1 anyway later, but for
15837         apps that might check the value in the GdkGC).
15838         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
15839         interface to gdk_gc_predraw and _postdraw.
15840
15841         * gdk/win32/gdkwin32.h
15842         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
15843
15844         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
15845         extraneous semicolon.
15846
15847         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
15848
15849         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
15850         not the Win32 bitspixel value.
15851
15852         * gdk/win32/gdkcc-win32.c:
15853         * gdk/win32/gdkcolor-win32.c 
15854         * gdk/win32/gdkprivate-win32.h
15855         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
15856         GDK object structure.
15857
15858 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
15859
15860         * docs/tutorial/gtk_tut_12.es.sgml (name): 
15861         * docs/tutorial/gtk_tut_it.sgml (name): 
15862         * docs/tutorial/gtk_tut_fr.sgml (name): 
15863         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
15864         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
15865
15866 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
15867
15868         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
15869           small changes.
15870
15871 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
15872
15873         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
15874         a bug here, never been here and never fixed anything ;(
15875         (don't segfault if tree->root_tree is NULL, which happens prior
15876         to widget realization, but puke instead).
15877
15878 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
15879
15880         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
15881         add the necessary tokens.
15882
15883         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
15884         (gtk_rc_style_to_style): copy thicknesses.
15885         (gtk_rc_init_style): apply thicknesses.
15886         (gtk_rc_parse_style): parse xthickness and ythickness.
15887
15888         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
15889
15890         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
15891         (gdk_window_new): 
15892         (_gdk_windowing_window_init): 
15893         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
15894         (gdk_pixmap_create_from_data): 
15895         (gdk_bitmap_create_from_data): 
15896         (gdk_pixmap_new): 
15897         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
15898         (gdk_image_new): 
15899         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
15900         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
15901         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
15902         (gdk_colormap_get_system): 
15903         (gdk_colormap_new): 
15904         * gdk/gdkwindow.c (gdk_window_init): 
15905         * gtk/gtkstyle.c (gtk_style_new):
15906         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
15907         * gdk/gdkpixmap.c (gdk_pixmap_init): 
15908         * gtk/gtkrc.c (gtk_rc_style_new):
15909         use g_object_new() instead of g_type_create_instance() which
15910         is a private function for fundamental type implementations.
15911
15912 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
15913
15914         * configure.in: Add check for db2html
15915
15916 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
15917
15918         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
15919         hack to set glib_debug_objects based on gtk_debug_flags.
15920
15921 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
15922
15923         * INSTALL.in: Update the Prerequisites section.
15924
15925         * Makefile.am demos/Makefile.am docs/Makefile.am
15926         docs/tutorial/Makefile.am gdk/x11/Makefile.am
15927         gdk/linux-fb/Makefile.am: Dist fixes
15928
15929 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
15930
15931         * NEWS: 10,000 foot view of 1.3.1 changes.
15932
15933 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
15934
15935         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
15936         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
15937         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
15938         gdk/x11/gdkmain-x11.c: 
15939
15940         Patch from George Lebl to add a GdkGrabStatus enumeration to use
15941         as a return value of gdk_*_grab(). Previously, we just
15942         returned the X11 values directly.
15943
15944 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
15945
15946         * gdk/x11/Makefile.am: Patch from George Lebl to 
15947         install all the headers in the right place.
15948
15949 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
15950
15951         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
15952           initial conversion to DocBook.
15953
15954 2000-07-04  Tor Lillqvist  <tml@iki.fi>
15955
15956         * README.win32: Improve a bit.
15957
15958         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
15959         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
15960         Alt+0nnn on the numpad (used to enter characters by numeric code
15961         from current DOS or ANSI codepage) working correctly, as in other
15962         Windows apps.
15963
15964         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
15965         same argument validity tests as in X11 version.
15966         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
15967
15968         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
15969         definitions in case missing from headers.
15970
15971         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
15972         destroy the window-specific cursor.
15973         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
15974         calling GetModuleHandle(NULL).
15975         (gdk_window_set_cursor): Reworked to always copy the passed cursor
15976         with CopyCursor before setting it as the window-specific
15977         cursor. It is OK for the caller to destroy the GdkCursor (and thus
15978         also its Windows cursor) after calling this function. Destroy any
15979         previous window-specific cursor.
15980
15981 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
15982
15983         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
15984         font charset is iso8859-1, not iso-8859-1.
15985
15986 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
15987
15988         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
15989         Use g_get_charset() instead of g_get_codeset().
15990
15991         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
15992         Comment out some strdup'ing functions to keep timj
15993         happy until we finish fighting this out.
15994
15995 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
15996
15997         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
15998         <= width or height.
15999
16000         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
16001         from 1.2 for parent/child states.
16002
16003         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
16004         of typos.
16005
16006         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
16007         event structures, replace with a generic axes field. Replace 
16008         deviceid/sourec with GdkDevice *device.
16009
16010         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
16011         to extract particular axis use value from event. (Also
16012         can be used for normal X/Y.)
16013
16014         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
16015         allow for arbitrary number of axes, namespace everything
16016         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
16017         everywhere.
16018
16019         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
16020         Get rid of the gdk_input_vtable setup if favor of simply
16021         defining the functions in gdkinput-none/gxi/xfree.c in
16022         a similar fashion to the way that the port structure is 
16023         done.
16024
16025         * gtk/gtkdnd.c: Fix fields of synthesized button press event
16026         for new event structures. 
16027
16028         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
16029         new device interfaces.
16030
16031 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
16032
16033         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
16034         set the initial text.
16035
16036         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
16037         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
16038         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
16039         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
16040
16041         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
16042         pango_layout_set_font_description to simplify.
16043
16044 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
16045
16046         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
16047         pango_layout_set_font_description to simplify.
16048
16049 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
16050
16051         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
16052         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
16053         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
16054
16055         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
16056         PANGO_PIXELS() macro.
16057
16058 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
16059
16060         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
16061         that returns a PangoContext owned by the widget and updated to
16062         match future changes in the widget. Also, make 
16063         gtk_widget_create_pango_layout() use this context. If we ever
16064         add a ::changed signal to PangoContext, this will make things
16065         much more convenient. 
16066
16067         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
16068         in the appropriate places instead of destroying the layouts and
16069         creating new ones.
16070
16071         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
16072         in a few strategic places.
16073
16074 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
16075
16076         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
16077         gtk_widget_size_request() on reparented child, if one. Otherwise,
16078         queue_resize() on the child never results in it getting size-requested
16079         at all.
16080
16081         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
16082         in option menus, so that (with luck) people won't copy it into
16083         their apps in the future.
16084
16085         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
16086         to gtk_option_menu_calc_size. This isn't perfect, but should fix
16087         a lot of problems with changing the size of the menu's menu
16088         items after adding it to the option menu.
16089
16090         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
16091
16092         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
16093         the text direction for a widget changes.
16094
16095         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
16096         ::direction_changed to get rid of various hacks.
16097
16098 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
16099
16100         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
16101         name.
16102
16103 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
16104
16105         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
16106         flag to the structure. Do not call XFreePixmap on pixmaps created
16107         by gdk_pixmap_foreign_new().
16108
16109 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
16110
16111         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
16112         value using GdkRGB functionality given GdkColormap and GdkColor.
16113         (name not final, waiting for inspiration.)
16114         
16115         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
16116         set the foreground/background of a GC using the GC's colormap
16117         and GdkRGB. (name not final, waiting for inspiration.)
16118
16119         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
16120         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
16121
16122         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
16123         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
16124         purely a function of the corresponding colormap. Make
16125         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
16126
16127         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
16128         gdk_pixbuf_*create_from_xpm_* in terms of
16129         gdk_pixbuf_new_from_xpm_data(), move into platform independent
16130         code.
16131
16132         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
16133         advantage of the new draw_rgb_32_image_dithalign.
16134
16135         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
16136
16137         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
16138         on each created GC.
16139
16140         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
16141
16142         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
16143         which we initialize from the drawable when the GC is created,
16144         if the drawable has a colormap.
16145
16146         * gdk/x11/gdkgc-x11.c: include string.h for memset.
16147
16148         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
16149
16150         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
16151
16152 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
16153
16154         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
16155         actually returning expose events, make sure to set
16156         the count field properly.
16157
16158         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
16159         accidentally reintroced bug which always cleared
16160         the graphics_exposures value. 
16161
16162 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
16163
16164         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
16165
16166 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
16167
16168         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
16169
16170 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
16171
16172         * docs/faq/gtk-faq.sgml: Start of Section 6.
16173
16174 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
16175
16176         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
16177         
16178         (Fixes problem with drawing childless frames. Pointed out
16179         by and a first patch from Anders)
16180         
16181         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
16182         compute a child_allocation, even if we don't have a child.
16183
16184         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
16185         Always chain to the parent's impl, even if we don't have a child.
16186
16187 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
16188
16189         * gdk/gdkrgb.c: If possible, create only a single shm segment and
16190         use multiple parts of it instead of creating a bunch of separate
16191         segments, since the maximum number of segments per system is not
16192         large. (This might be worth backporting to GTK+-1.2.x if we make a
16193         new release )
16194
16195         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
16196         structure in preparation for per-colormap GdkRGB.
16197
16198         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
16199         to False when we get EINVAL from shmget so that the caller of
16200         gdk_image_new can retry with a smaller segment size.
16201
16202 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
16203
16204         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
16205
16206 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
16207
16208         * configure.in: make the current version number 1.3.1 (binary age 0,
16209         interface age 0).
16210         
16211         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
16212         gtkcompat.h is all we want.
16213
16214         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
16215         GLib primitive types. fixed g_type_register_fundamental() argument
16216         ordering.
16217
16218         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
16219         compiles.
16220
16221         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
16222         object code cleanup, comment trigraph fixes, etc...
16223
16224 2000-06-23  Havoc Pennington  <hp@redhat.com>
16225
16226         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
16227         instead of making up a bogus name for first_para_mark
16228
16229         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
16230         0 as a context ID
16231
16232 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
16233
16234         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
16235
16236 2000-06-21  Havoc Pennington  <hp@pobox.com>
16237
16238         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
16239         we didn't check window->bg_pixmap != GDK_NO_BG.
16240
16241         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
16242         gdk-pixbuf
16243
16244 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
16245
16246         * docs/faq/gtk-faq.sgm: Move file to here.
16247           TODO: Update Makfile.am 
16248
16249 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
16250
16251         * docs/gtk-faq.sgm: Add Section 2
16252
16253 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
16254
16255         * docs/gtk-faq.sgm: New file. Start of DocBook
16256           version of the FAQ.
16257
16258 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
16259
16260         * configure.in (GDK_PIXBUF_MAJOR): Define version
16261         numbers for GDK_PIXBUF_*, as they get substituted
16262         into a header file. Need to consider versioning
16263         for gdk-pixbuf more carefully later.
16264
16265 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
16266
16267         Work with srcdir != builddir.   
16268         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
16269         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
16270         * demos/testpixbuf.c: Likewise.
16271         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
16272         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
16273         <gdk/x11/gdkx.h>.
16274         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
16275         "gdk-pixbuf.h".
16276         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
16277
16278 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
16279
16280         * TODO.xml: Change 1.4 version numbers to 2.0.
16281
16282 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
16283
16284         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
16285         fixups to GTK+ standard.
16286
16287 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
16288
16289         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
16290         gdk-pixbuf.
16291
16292         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
16293         fixups for GObject.
16294
16295         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
16296         gdk-pixbuf with GDK dependencies moved into GDK.
16297         
16298         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
16299         move gdk-pixbuf-loader here until GObject has signals.
16300
16301         * demos/: New directory of demos. Move demos from
16302         gdk-pixbuf here.
16303
16304         * demos/pixbuf-init.c: Small bit of code to check for
16305         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
16306         set GDK_PIXBUF_MODULEDIR appropriately.
16307
16308         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
16309         define which no longer makes sense.
16310
16311 2000-06-21  Havoc Pennington  <hp@redhat.com>
16312
16313         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
16314         gtk_get_default_language
16315
16316         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
16317         new function to get the default language
16318
16319         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
16320         s/gtk_text_view_style_values/gtk_text_style_values/
16321
16322         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
16323         Add a "language" field to tags.
16324
16325         (gtk_text_tag_set_arg): Fix bug in setting
16326         "bg_full_height_set" tag.
16327
16328 2000-06-21  Havoc Pennington  <hp@redhat.com>
16329
16330         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
16331         in the interfaces
16332
16333         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
16334         stuff instead when possible.
16335
16336         * gtk/gtktexttypes.h: Delete some unused constants
16337
16338         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
16339         testtextbuffer.c: use glib instead of custom unicode routines
16340
16341 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
16342
16343         * docs/es/: Removed mistakenly added generated sgml
16344
16345         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
16346         Remove outdated info files.
16347
16348         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
16349         Moved tutorial files into subdir
16350
16351         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
16352         subdir.
16353
16354         * docs/man/gtk_button.pod: Remove. (contents will be
16355         integrated into gtk-reference button page.)
16356
16357         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
16358         docs/faq/Makefile.am: Adjust for new organization
16359
16360 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
16361
16362         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
16363         not $(MKINSTALLDIRS)
16364
16365 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
16366
16367         * gtk/testgtk.c (create_text): Finish the job Elliot started
16368         of removing font setting test for text widget. (Since text widget
16369         and GdkFont are not deprecated, and cause portability problems.)
16370
16371 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
16372
16373         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
16374         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
16375         Remove use of libunicode in favor of new GLib functions.
16376
16377         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
16378         nano-x, framebuffer. The X11 include is just a hack until we get
16379         the necessary functions in gdkcolor.h, so there is no reason to
16380         add other includes of platforms.
16381
16382         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
16383         window bigger than the screen change.
16384
16385         * gtk/testgtk.c: Revert some random changes from Elliot
16386         that had no particular point and were causing testgtkrc
16387         not to function correctly.
16388         
16389         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
16390         because GdkSegment and GdkRegionBox have the same fields,
16391         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
16392         results in clearer code.
16393
16394         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
16395         gdk_input_translate_coordinates): Fix missed GdkObjectification
16396
16397 2000-06-18  Elliot Lee  <sopwith@redhat.com>
16398
16399         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
16400         * gtk/gtk{plug,socket}.h: Missed commits from previous.
16401
16402 2000-06-20  Havoc Pennington  <hp@redhat.com>
16403
16404         * modules/linux-fb/Makefile.am: Make this compile
16405         without framebuffer enabled
16406
16407         * gdk/linux-fb/Makefile.am: Add conditional to not build
16408         framebuffer unless specified in configure
16409
16410         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
16411         the size of the target instead of source if -1 was passed for
16412         width/height
16413
16414         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
16415         width/height confusion.
16416
16417 2000-06-19  Havoc Pennington  <hp@redhat.com>
16418
16419         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
16420         GDK_DRAWABLE_XID. In the future, we probably want to make it
16421         faster with G_DISABLE_CHECKS turned on.
16422
16423 2000-06-14  Havoc Pennington  <hp@redhat.com>
16424
16425         * gdk/Makefile.am: add gdkpixmap.c
16426
16427         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
16428         s/gdk_image_init/_gdk_windowing_image_init
16429
16430         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
16431         ref/unref
16432
16433         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
16434
16435         * gdk/gdkcompat.h: remove GdkWindowType compat, since
16436         GdkWindowType is now non-deprecated; 
16437         change gdk_window_get_type() compat to be
16438         gdk_window_get_window_type().
16439
16440         * gdk/gdkdnd.h: make GdkDragContext a GObject.
16441
16442         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
16443         virtual GObject. Make all functions call into the vtable.
16444         Move gdk_image_put() guts in here. Remove GdkDrawableType
16445         and gdk_drawable_get_type(), these are now GdkWindow-specific.
16446         draw_image, get_depth, get_size, set_colormap, get_colormap,
16447         get_visual added to the vtable.
16448         
16449         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
16450         GObject. Virtualize everything. 
16451         (gdk_gc_new_with_values): remove check for destroyed window,
16452         because now GdkWindow::create_gc will check this.
16453         (gdk_gc_set_values): New function to set GC values, this 
16454         was already implemented but wasn't in the header
16455
16456         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
16457
16458         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
16459         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
16460         remove _gdk_window_class; add _gdk_window_impl_get_type() and
16461         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
16462         _gdk_windowing_window_init, rename gdk_image_init to
16463         _gdk_windowing_image_init.
16464         
16465         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
16466         (gdk_draw_layout): Remove check for destroyed window, 
16467         because all the drawable methods already check it.
16468         
16469         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
16470         Add gdkpixmap.c which contains implementation of GdkDrawable
16471         virtual table (by chaining to a platform-specific implementation
16472         object).
16473         
16474         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
16475         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
16476         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
16477         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
16478         GdkColormapPrivate. 
16479
16480         * gdk/gdktypes.h: #include <glib-object.h>
16481
16482         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
16483         Move most functionality to platform-specific implementation
16484         object. GdkWindow itself now handles the backing store, then
16485         chains to the platform-specific implementation.
16486         (gdk_window_get_window_type): return GdkWindowType of the window.
16487         (gdk_window_peek_children): New routine, returns the children of 
16488         a GdkWindow
16489         (gdk_window_get_children): Was in X11-specific code and did 
16490         XQueryTree. Changed to simply return a copy of window->children; 
16491         so it can go in cross-platform code.
16492         
16493         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
16494
16495         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
16496         GdkColormap; just changed to use the new private data instead
16497         of casting to GdkColormapPrivate.
16498
16499         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
16500         gdk_cursor_new().
16501
16502         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
16503         (private data member in the GObject). 
16504         (xdnd_manager_source_filter): Function had broken 
16505         error handling, fix it (use gdk_error_trap_push).
16506
16507         * gdk/x11/gdkdrawable-x11.c: This file now implements
16508         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
16509         base class is purely for the convenience of the X port,
16510         and not part of the interface to cross-platform GDK.
16511
16512         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
16513         
16514         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
16515         specific to X, and returned by the create_gc virtual method
16516         of GdkDrawableImplX11. 
16517         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
16518         rather than gchar, this was also changed in the GdkGC vtable.
16519         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
16520         mask is 0, return immediately, instead of checking every flag.
16521         This is faster, and keeps us from segfaulting if values is NULL
16522         and the mask contains some nonzero flags.
16523
16524         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
16525         GdkWindow.
16526
16527         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
16528         GdkWindowPrivate is gone.
16529
16530         * gdk/x11/gdkim-x11.c: rename things that got renamed.
16531
16532         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
16533         remove the image_put stuff that got transferred to GdkDrawable.
16534         
16535         * gdk/x11/gdkinput.c: renamings
16536
16537         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
16538
16539         * gdk/x11/gdkpixmap-x11.c: GObject conversion
16540
16541         * gdk/x11/gdkprivate-x11.h: indentation fixes
16542
16543         * gdk/x11/gdkproperty-x11.c: renamings
16544
16545         * gdk/x11/gdkselection-x11.c: renamings
16546
16547         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
16548         implements the platform-specific "impl" object.
16549         Moved gdk_window_get_children to gdk/gdkwindow.c
16550
16551         * gdk/x11/gdkx.h: Remove all the private structs and private datas
16552         that no longer exist. Add declaration of GdkGCX11 object here.
16553         Fix all the macros to still work. 
16554
16555         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
16556         GdkDragContext from the boxed types since they are now GObjects.
16557
16558         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
16559         moved xthickness/ythickness into the instance. GtkStyleClass
16560         functions are now in the standard vtable for GtkStyle, so you have
16561         to create a GObject subclass to write a theme engine.
16562         (gtk_style_copy): fixed a leaked PangoFontDescription
16563         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
16564         can be the standard GObject function.
16565         
16566         * Throughout GTK:
16567         s/style->klass->[xy]thickness/style->[xy]thickness
16568         s/pango_layout_unref/g_object_unref/
16569
16570         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
16571         
16572         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
16573         accessing GDK internals.
16574
16575         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
16576         accessing GDK internals.
16577
16578 2000-06-18  Elliot Lee  <sopwith@redhat.com>
16579
16580         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
16581
16582         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
16583         problem by calculating event position relative to the trough
16584         rather than the slider.
16585         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
16586
16587         * gdk/gdkgc.h: Add GDK_NOR.
16588
16589         * configure.in, Makefile.am: Add modules top level dir
16590         * configure.in: Only use pangox library if building x11 target.
16591         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
16592
16593 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
16594
16595         * gtk/gtkcolorsel.c: Change private class member to be named
16596         private_data throughout the file.
16597
16598         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
16599         private_data to avoid clashing with keyword.
16600
16601 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
16602
16603         * gdk/gdkdnd.h: Add comment to remove warning.
16604
16605 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
16606
16607         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
16608         Byelorussian language; changed the Makefile and file names 
16609         to reflect that.
16610
16611 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
16612
16613         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
16614         rather than gdk_window_hide; this makes things work
16615         correctly if the window is programmatically hidden while
16616         iconified.
16617
16618 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
16619
16620         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
16621         cut and paste typo where wrong pixmap was being
16622         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
16623
16624 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
16625
16626         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
16627         Add helper function to compute format / bytes 
16628         relationship. Use in a couple places to fix up
16629         errors which assume 8 * format.
16630
16631         * gtk/gtkselection.c (gtk_selection_request): Use 32
16632         rather than 8 * sizeof (GdkAtom), to work correctly
16633         on Alpha.
16634
16635 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
16636
16637         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
16638         libgtk.la
16639         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
16640         versions
16641
16642         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
16643         checking macros return NULL since the function has a return value.
16644
16645 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
16646
16647         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
16648         GTK+ from building at all.
16649
16650         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
16651
16652 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
16653
16654         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
16655         gtk/Makefile.am: make it possible to configure gtk for different
16656         targets on the same platform. The library name is now 
16657         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
16658         flag. Only the x11 target compiles right now.
16659         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
16660         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
16661         * gdk/nanox/gdk*generic*: delete generic region code.
16662         * gdk/linux-fb/gdk*generic*: delete generic region code.
16663         * README.nanox: update information.
16664         
16665 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
16666
16667         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
16668         prepend not append. (Pointed out by Brett Hall.)
16669
16670 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
16671
16672         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
16673
16674 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
16675
16676         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
16677         need this later, and this makes sure that the atexit for
16678         glib gets called after that for GDK, so atexits are
16679         properly ordered for object leak checking.
16680
16681         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
16682
16683         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
16684         pango_x_shutdown_display()
16685
16686         * gtk/simple.c (main): Close window on destroy.
16687
16688 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
16689
16690         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
16691         to treat initial creation different from setting with 
16692         regards to the graphics-exposures parameter, so add a parameter
16693         indicating whether this is initial or not.
16694
16695 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
16696
16697         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
16698         to sort of work by adding an extra return_exposes arg
16699         to gdk_event_translate() - it might be better to simply
16700         deprecate the function altogether and force people to rewrite
16701         without it. gdk_window_scroll() handles most of it, and where
16702         gdk_window_scroll() doesn't work, simply redrawing more does.
16703
16704         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
16705         assertion.
16706
16707         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
16708
16709         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
16710         bunch of pretty much useless /* Print debugging info */ comments 
16711         which had drifted away from the code they were commenting.
16712
16713 2000-06-02  Havoc Pennington  <hp@pobox.com>
16714
16715         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
16716         is in working order.
16717         
16718         * gtk/testtext.c: Change to reflect anonymous mark API
16719
16720         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
16721
16722         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
16723         field, which was unused.
16724
16725         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
16726         saves some typing.
16727
16728         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
16729
16730         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
16731         flag on the insertion point and selection bound
16732
16733         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
16734         make mark-manipulation functions take a GtkTextMark* instead of a
16735         mark name.
16736         
16737         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
16738         GtkTextMarkBody; will be used to detect attempts to delete
16739         the permanent marks (insert and selection bound)
16740
16741         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
16742
16743 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
16744
16745         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
16746         flag to on.
16747
16748         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
16749         Honor DOUBLE_BUFFRED_FLAG
16750
16751         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
16752         function to set the DOUBLE_BUFFERED flag.
16753
16754         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
16755         or not exposes done on the widget should be double-buffered.
16756
16757         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
16758         to be what would be expected. (Fixes problem with a
16759         g_return_if_fail() validating a TextDirection enumeration)
16760
16761 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
16762
16763         * gtk/gtkwidget.c: Remove all references to 
16764         offscreen flag which was no longer used.
16765
16766         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
16767
16768         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
16769         for non-null label_widget->parent.
16770
16771         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
16772         which no longer was used.
16773
16774         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
16775
16776         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
16777         for null arguments.
16778
16779         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
16780         check for destroyed windows.
16781
16782 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
16783
16784         * gtk/gtkimmulticontext.c: Add a finalize method and unref
16785         the slave context there.
16786
16787         * gtk/gtkinvisible.[ch]: Make reference counting behavior
16788         identical to GtkWindow.
16789
16790 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
16791
16792         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
16793         pangox to here, so we can write them independent of rendering
16794         system, using GDK primitives.
16795
16796         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
16797         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
16798         since we have a rendering-system independent implementation in
16799         terms of draw_glyphs().
16800         
16801         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
16802         function to render a single line.
16803
16804         * gdk/x11/gdkpango.c: Move the guts of this file mostly
16805         into ../gdkpango.c, which simplifies things, since we
16806         don't have to deal with raw X gc's.
16807
16808 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
16809
16810         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
16811         get the logical attributes for a given GtkTextLine.
16812
16813 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
16814
16815         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
16816         g_locale_get_codeset() to g_get_codeset() change.
16817
16818 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
16819
16820         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
16821         descriptions.
16822
16823         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
16824         the entry.
16825
16826         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
16827         redoing (vastly simplifying) for Pango. Still needs quite
16828         a bit of work. (Size selection is currently poor. List of 
16829         predefined sizes is not a good idea, since all of these
16830         sizes won't necessarily be distinct.)
16831
16832 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
16833
16834         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
16835         CODESET results for LANG=C.
16836
16837 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
16838
16839         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
16840         which takes a stringized pango font description;
16841         ignore the older 'font' and 'fontset' declarations.
16842
16843         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
16844         field with a GdkFont derived via gdk_font_from_description(),
16845         for compatibility. (Should we just remove it entirely?
16846         Probably too much compatibility breakage, but people
16847         should be migrating to the new Pango stuff as quickly
16848         as possible.)
16849
16850 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
16851
16852         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
16853
16854 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
16855
16856         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
16857         redoing; there are some bugs in size allocation right
16858         now, the semi-existant distinction between header / day
16859         fonts was removed, but, with Pango, could actually
16860         be made functional in a nice way.
16861         
16862         * gtk/testcalender: Move calender from examples into this
16863         directory as a test program. (We really need to restrcture
16864         testgtk into a whole directory full of tests for every
16865         widget or functionality group, separated into multiple .c
16866         files.)
16867
16868 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
16869
16870         * gtk/testgtk.c (file_exists): Fix stupid typo that
16871         was keeping RC file from being loaded.
16872
16873         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
16874         RC file font code.
16875
16876 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
16877
16878         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
16879         Add function to load a GdkFont from a PangoFontDescription.
16880
16881 2000-05-29  Tor Lillqvist  <tml@iki.fi>
16882
16883         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
16884         variable should be of type GdkEventPrivate.
16885
16886 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
16887
16888         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
16889         to have any widget for the label, use a GtkLabel widget
16890         to display the text. (Based partially on a patch from
16891         Anders Carlson.)
16892
16893         (Quite a bit of code reorganization - strip 90% of the
16894         guts out of gtkaspectframe and add a single virtual
16895         func to GtkFrameClass - compute_child_allocation.)
16896
16897 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
16898
16899         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
16900         (Removed clist->row_center_offset field because caching
16901         it wasn't saving time or code, added private function
16902         _gtk_clist_create_cell_layout()).
16903
16904 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
16905
16906         * gtk/gtkaccellabel.c: Pangoized.
16907
16908         * gtk/[hv]ruler.c: Pangoized
16909
16910 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
16911
16912         * gtk/gtkfilesel.c (gtk_file_selection_init):
16913         Use gtk_clist_set_column_auto_resize() to remove need
16914         need for manual column width computations.
16915
16916 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
16917
16918         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
16919         ensuring Pango correctness, and considerably simplifying the
16920         code.
16921         
16922         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
16923
16924         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
16925         getting of numbers of lines.
16926
16927         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
16928         to the actual requested width of the lable, not to the wrap
16929         width we set.
16930
16931         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
16932
16933         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
16934           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
16935
16936         * gtk/gtktextview.c: Fix structure inheritance.
16937
16938         * gtk/gtkprogressbar.c: Pangoize.
16939
16940 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
16941
16942         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
16943         in a function.
16944
16945         * gtk/gtktextlayout.c (find_display_line_above): Fixed
16946         bug with computing line tops.
16947
16948         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
16949
16950 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
16951
16952         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
16953         and y_offset coordinates to do what we need now. (The offset between
16954         buffer and layout coordinates has been reintroduced, but is a 
16955         bit different than before.)
16956
16957         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
16958         handle the adjustments ourselves, and scroll as necessary using
16959         the new gdk_window_scroll().
16960         
16961         The advantage of this is that when we are incrementally revalidating,
16962         we are essentially rearranging things around the visible portion
16963         of the screen. With the old setup, the visible portion of the
16964         screen was moved around in the layout, so scrolling and redrawing
16965         to track that caused jumping of the display. Since we now
16966         control the scrolling ourselves, we can suppress this and
16967         only redraw when things actually change.
16968
16969 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
16970
16971         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
16972         the region not just redisplay it after-all, since we store the
16973         cursors in the LineDisplay. (Ugly interactions here between
16974         GtkLayout and GtkTextBTree here.)
16975         
16976         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
16977
16978 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
16979
16980         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
16981         Added function to scroll contents of a window while keeping the
16982         window constant. Works by XCopyArea or guffaw-scrolling depending
16983         on the details of how the window is set up. (guffaw-scrolling
16984         still needs to be filled in.)
16985
16986 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
16987
16988         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
16989         move the debugging that was tied to a global variable
16990         to that.
16991
16992         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
16993
16994         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
16995         validated flag, in line data instead of setting height/width to
16996         -1. This allows us to perform operations with partially invalid
16997         buffer (using the old size for invalid lines) and thus to do
16998         incremental vaidation. Keep height/width aggregates up to date
16999         when deleting text and rebalancing the tree.
17000
17001         * gtk/gtktextbtree.[ch]: Add functions validate a line
17002         (gtk_text_btree_validate_line), and to validate up
17003         to a number of pixels (gtk_text_btree_validate).
17004
17005         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
17006         that indicates that something is changed and a revalidation
17007         pass is needed. Change ::need_repaint to ::changed, and
17008         make it take old and new yranges instead of a rectangle.
17009
17010         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
17011         the line_data_destroy() function from 
17012         gtk_text_btree_add_view() to a virtual function in 
17013         GtkTextLayout
17014
17015         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
17016         since we are handling partial repaints in a different fashion
17017         now.
17018
17019         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
17020         of the selection instead of queueing a repaint on the
17021         entire widget.
17022
17023         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
17024         get_selection_bounds() down to btree, make the function
17025         in buffer a wrapper around the btree function.
17026
17027         * gtk/gtktextlayout.[ch]: Add functions to check if the
17028         layout is valid and to recompute either a range of pixels
17029         aroudn a line or a certain total number of pixels.
17030
17031         * gtk/gtktextlayout.[ch]: Cache a single line display;
17032         now that we only redraw the needed portions, the hit rate
17033         for this cache is quite high.
17034         
17035         * gtk/gtktextview.[ch]: Keep track of the first paragraph
17036         on the screen so that when re-laying-out the buffer, we can
17037         keep the same place. This requires connecting to ::value_changed
17038         on the adjustments
17039
17040         * gtk/gtktextview.[ch]: Add idle functions to revalidate
17041         the buffer after we receive an ::invalidated signal.
17042         
17043 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
17044
17045         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
17046         to max of allocation and layout size, not just to the
17047         layout size.
17048
17049         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
17050         Invalidate window so it gets redrawn properly.
17051
17052         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
17053         to mean the entire window.
17054
17055         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
17056         into public header.
17057
17058 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
17059
17060         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
17061         to get the name of a mark.
17062
17063         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
17064         to find the paragraph from a y position.
17065
17066 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
17067
17068         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
17069         nodes have width/height >= 0, not > 0.
17070
17071 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
17072
17073         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
17074         Add a size_only flag, so when we only need the size, we don't create
17075         useless appearance attributes.
17076
17077         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
17078         duplicate setting of font description.
17079
17080         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
17081
17082 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
17083
17084         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
17085         EXTRA_DIST. It does not work well when the file that
17086         everything depends on is not in the tarball.
17087
17088 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
17089
17090         * gtk/testgtk.c: Some hacks and fixes so that it basically
17091         works when not sitting in the GTK+ build tree.
17092
17093 2000-05-03  Havoc Pennington  <hp@redhat.com>
17094
17095         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
17096         Properly determine the ordering of the tag root and the current
17097         line within the tree. Previous algorithm only worked if the tag
17098         root's immediate parent was the common root of both the current
17099         line and the tag root.
17100
17101 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
17102
17103         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
17104         alignment.
17105
17106         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
17107         the widget text directional dynamically.
17108
17109         * gtk/gtktextview.[ch]: Added functions to get and set default
17110         wrap mode.
17111
17112 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
17113
17114         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
17115         in cursor location computation.
17116
17117 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
17118
17119         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
17120         vadjusment values properly when layout gets smaller.
17121
17122         * gtk/gtktextview.c (need_repaint_handler): Areas being
17123         passed in are far completely inaccurate, and sometimes
17124         too small, so, for now, just queue a redraw on the
17125         whole visible region.
17126
17127 2000-04-25  Havoc Pennington  <hp@redhat.com>
17128
17129         * gtk/gtktextbtree.c (summary_destroy): new function to 
17130         destroy tag summary nodes
17131         (gtk_text_line_next_could_contain_tag): this function was 
17132         totally broken if the line passed in wasn't below the tag
17133         root. Fix it.
17134         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
17135         "wildcard" case, we have to do a linear scan. Blah.
17136         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
17137         we have to do the linear scan
17138         (tag_removed_cb): When a tag is removed from the tag table, 
17139         remove the GtkTextTagInfo node from the btree.
17140         (gtk_text_btree_spew): Implement the spew function, for 
17141         our debugging pleasure.
17142
17143 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
17144
17145         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
17146         a problem with referring to the wrong buffer.
17147
17148         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
17149
17150         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
17151         font description to gtk_style_new() - otherwise things
17152         don't work without a .gtkrc file.
17153
17154         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
17155         tags table if we create it ourself, too.
17156
17157         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
17158         it was conflicting with XKB modifiers.
17159
17160         * gtk/gtktextview.[ch]: Add simple support for 
17161         GtkIMContext.
17162
17163 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
17164
17165         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
17166         with deletion from last commit.
17167
17168 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
17169
17170         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
17171         in the context from the current locale.
17172         
17173         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
17174         context, not hardcoded value.
17175
17176         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
17177         not logical.
17178
17179 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
17180
17181         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
17182         attributes - that doesn't handle partial-glyph selection
17183         properly. Instead use new pango_layout_line_get_x_ranges()
17184         functionality to draw the selection.
17185
17186         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
17187         now properly handles out-of-range coordinates.
17188
17189         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
17190
17191         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
17192         public.
17193
17194         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
17195         for paragraphs opposite to the base direction of the widget.
17196
17197         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
17198
17199         * gtk/gtktextlayout.c: Don't split segments on marks, since that
17200         causes Arabic words to reshape as you cursor through.
17201
17202         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
17203         cursor position when moving vertically with the arrow keys and
17204         scrolling with page-up/page-down. (Arrow keys save only the X,
17205         scrolling saves both X and Y.)
17206
17207         This means you can line-up / line-down or page-up / page-down
17208         without losing your place, and also that moving vertically
17209         with the cursor keys keeps the same X position, not the same
17210         character count:
17211
17212         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
17213         arrow keys move by display lines, not paragraphs.
17214
17215 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
17216
17217         * gtk/gtklayout.c: Make sure that the bin window is at least
17218         as big as the allocation. (Should we also make sure that the
17219         bin window is big enough to completely cover widget->window?)
17220
17221         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
17222         function to get the onscreen rectangle.
17223
17224         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
17225         for offsets in window coordinates.
17226
17227 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
17228
17229         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
17230         confusion.
17231
17232         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
17233         from the widget direction.
17234
17235         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
17236         Add a "direction" attribute.
17237
17238         * gtk/gtktextview.c: global s/tkxt/text_view/.
17239
17240         * gtk/testtext.c: Added long block of text in Arabic, to test out
17241         the direction attributes. (Some problems with the shaping system
17242         for arabic become obvious - like the fact the cursor splits words
17243         into unjoined pieces.)
17244
17245 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
17246
17247         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
17248
17249         * gtk/gtktextlayout.c: Fix up alignment.
17250
17251         * gtk/testtext.c: Add some tests for centering, wrapping.
17252
17253 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
17254
17255         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
17256         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
17257         If we wrote GTK+-specific layout-render function this could just replace
17258         the draw_layout() operation in the vtable.
17259
17260         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
17261         pango_layout_get_cursor_pos() and use that function.
17262
17263         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
17264         is a non-static symbol.
17265
17266         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
17267         with gtk_text_btree_find_line_by_y()
17268
17269         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
17270         renderer that handles GtkTextAppearance attributes.
17271
17272         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
17273
17274           - Move the values in the style that don't affect geometry into a
17275             GtkTextAppearance structure.
17276           - Change underline to take a PangoUnderline and "font" a string
17277             representation of a font description
17278           - Add a "font_desc" attribute which takes a FontDescription structure.
17279
17280         * gtk/gtktextlayout.[ch]:
17281
17282           - Get rid of the display-line list per each line. Instead, we
17283             generate, on demand, a GtkTextLineDisplay structure which]
17284             contains a PangoLayout * and other necesary information
17285             (offsets, cursor locations) for displaying a paragraph.
17286           - Get rid of the code to wrap lines, create display chunks,
17287             etc. Instead, we just go through a paragraph and convert
17288             it into the necessary inputs to a PangoLayout.
17289           - Implement a new attribute type, GtkTextAttrAppearance. This
17290             holds a GtkTextAppearance, and is used to pass colors, 
17291             stipple, etc, through from the layout to the display without
17292             having to use lots and lots of individual attributes.
17293           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
17294             in terms of PangoLayout functions.
17295         
17296         * gtk/gtktextview.c: 
17297          
17298           - Handle passing the necessary PangoContext to the layout
17299           - Some fixups in painting to deal with the automatic backing store
17300             and offsetting of GTK+-1.4
17301           - Add a style_set handler so that the default style reacts
17302             properly to theme changes.
17303         
17304         * gtk/gtktext?*.[ch]: Random code-style fixes.
17305
17306         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
17307
17308 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
17309
17310         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
17311         in original form preparatory to Pango-ization and gdkimcontext-ization.
17312
17313 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
17314
17315         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
17316         so that we can derive from gtkimcontext in language bindings properly.
17317
17318 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
17319
17320         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
17321         Add a compose table including (almost) all the compose combinations
17322         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
17323         data in the XIM implementation.
17324
17325         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
17326         Moved functions to convert keyvalues from and to unicode here from
17327         the win32 port and made them public.
17328
17329 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
17330
17331         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
17332
17333 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
17334
17335         * gtk/gtkimcontext.[ch]: Base class for new input context system
17336
17337         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
17338         the real input context implementation to be loaded from modules
17339         and switched on the fly.
17340
17341         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
17342         context that just does direct keysymbol => unicode translation.
17343
17344         * gtk/gtkentry.[ch]: Start switching editing over to using
17345         GtkInputContext. (No handling of preedit yet.)
17346
17347 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
17348
17349         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
17350         many substitutions. (klass should not be subsituted.)
17351
17352 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
17353
17354         * configure.in: Add checks for Pango
17355
17356         * configure.in docs/Makefile.am: Add test for sgml2html
17357         and allow 'make dist' without building html, but print out
17358         warnings in that case. (For making snapshots)
17359
17360         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
17361         Add Pango libraries and C flags
17362
17363         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
17364         Add function (gdk_draw_layout) to draw a pango layout.
17365
17366         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
17367         for getting Pango contexts for GDK.
17368
17369         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
17370
17371         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
17372         editing.
17373
17374         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
17375         keysym => unicode translations. More languages can be added
17376         here, but real input-method support is needed.
17377
17378         * docs/Changes-1.4.txt: Added note about entry behavior.
17379         
17380         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
17381         to set the reading direction for a widget and the global direction.
17382         Add test which allows toggling the global direction. Two private
17383         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
17384
17385         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
17386           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
17387
17388         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
17389
17390         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
17391         underlining now handled by Pango.
17392
17393         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
17394         to RCStyle and Style. (Having both this and the old font name and GdkFont 
17395         is temporary.)
17396
17397         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
17398         convenience functions for creating contexts and layouts for widgets.
17399
17400         * gtk/testgtk.c: Enhance label tests with multilingual labels.
17401
17402 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
17403
17404         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
17405         titles to be active, even if they aren't visible.
17406         (gtk_clist_column_titles_passive):  Ditto.
17407
17408 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
17409
17410         * gtkmenu.c:
17411         * gtkmenu.h:
17412         * gtktypeutils.h: Spelling/grammar fixes in comments.
17413
17414 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
17415
17416         * gdk/nanox/*.h: add missing header files.
17417
17418 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
17419
17420         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
17421         send_event to TRUE.
17422         (gtk_drawing_area_size): queue a resize.
17423
17424 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
17425
17426         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
17427         the handlers, also invalidate them. bug nailed down by Karl Nelson
17428         <kenelson@ece.ucdavis.edu>.
17429
17430 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
17431
17432         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
17433         "(nil)" foundries, patch from Grigorios Magklis.
17434
17435         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
17436         on non-available fonts, based on a patch by Grigorios Magklis
17437         <maglis@cs.rochester.edu>.
17438
17439 2000-05-18  Elliot Lee  <sopwith@redhat.com>
17440
17441         * gdk/x11/gdkregion-generic.c: If a region does not have any
17442         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
17443         instead of GDK_OVERLAP_RECTANGLE_IN.
17444
17445 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
17446
17447         * gtk/gtklayout.c (gtk_layout_map): Remove references to
17448         OFFSCREEN, as it is no longer necessary.
17449
17450 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
17451
17452         * gtk/gtkcolorsel.c: Patch from David Santiago
17453         <mrcooger@cyberverse.com> to change things so that the 
17454         indicator of the active palette entry is done independently,
17455         not via the focus, since it should always be visible.
17456
17457 2000-05-17  Tor Lillqvist  <tml@iki.fi>
17458
17459         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
17460         refcount leaks as in the X11 backend.
17461
17462         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
17463         cosmetics.
17464
17465         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
17466         backend. Add _gdk_windowing_window_destroy().
17467
17468         * gtk/gtkcolorsel.c: Include correct backend-specific header.
17469         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
17470         either, but these probably do exist on nanox?)
17471         
17472         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
17473         which isn't necessarily defined by <math.h>.
17474
17475         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
17476         ancestry past GtkObject.
17477
17478         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
17479         from DLL on Win32.
17480
17481         * gtk/gtk.def: Update corresponding to recent changes.
17482
17483         * gtk/makefile.{cygwin,msc}: Updates.
17484
17485 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
17486
17487         * docs/Changes-1.4.txt: A bit of editing.
17488
17489         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
17490         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
17491         to clear the update area for the window, and clear it
17492         when hiding a window.
17493
17494         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
17495         if window destroyed.
17496
17497         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
17498
17499         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
17500         gdk_window_destroy() to the generic code, since there was a lot of 
17501         window-system-independent logic it in. Add a function:
17502         
17503          _gdk_window_destroy() 
17504
17505         to the internal API to destroy a window without unreferencing it.
17506         Add a function:
17507
17508          _gdk_windowing_window_destroy()
17509
17510         That does the windowing-system-dependent part of destroying 
17511         the window.
17512
17513 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
17514
17515         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
17516
17517 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
17518
17519         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
17520         Make gtk_widget_shape_combine_mask() keep a reference count on
17521         the pixmap since it keeps it around.
17522
17523 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
17524
17525         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
17526         leak.
17527
17528         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
17529         leak with event filters.
17530
17531 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
17532
17533         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
17534         signal handlers with the right data arguments. (Fixes
17535         some warnings when a widget was repeatedly set as a drag
17536         destination.)
17537
17538         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
17539         window so we can avoid avoid setting the DND properties on the
17540         toplevel window repeatedly.
17541
17542 2000-05-13  Tor Lillqvist  <tml@iki.fi>
17543
17544         * gdk/win32/gdkwin32.h: Define more message types missing from
17545         mingw headers.
17546
17547         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
17548         call gdk_window_destroy_notify(). It was never called. This
17549         probably meant that the GdkWindow was never freed. Thanks Owen for
17550         noticing (!).
17551
17552         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
17553         window as destroyed before calling DestroyWindow(). DestroyWindow()
17554         causes a call to the window procedure (gdk_WindowProc), which
17555         calls gdk_event_translate(), which calls
17556         gdk_window_destroy_notify(), which gets confused unless the window
17557         is set as destroyed.
17558
17559         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
17560         this function to indicate it's win32 only. Put inside #ifdef
17561         G_ENABLE_DEBUG.
17562
17563         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
17564         debugging function. (gdk_event_translate:) Add a default branch
17565         that uses the above function to print debug messages with all
17566         Windows messages symbolically.
17567
17568         * gdk/win32/gdkprivate-win32.h: Declare it, and
17569         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
17570
17571 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
17572
17573         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
17574         public header file.
17575
17576 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
17577
17578         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
17579
17580         * gtk/gtktext.c: made the adjustments no-construct args, simply
17581         provide default adjustments.
17582         (gtk_text_destroy): release adjustments.
17583
17584         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
17585         adjustment argument non-construct.
17586
17587         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
17588         instead of in finalize.
17589         (gtk_progress_get_text_from_value): 
17590         (gtk_progress_get_current_text): 
17591         (gtk_progress_set_value): 
17592         (gtk_progress_get_percentage_from_value): 
17593         (gtk_progress_get_current_percentage): 
17594         (gtk_progress_set_percentage): 
17595         (gtk_progress_configure): ensure an adjustment is present.
17596
17597 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
17598
17599         * gtk/gtkcolorsel.[hc]:
17600         * gtk/gtkcolorseldialog.[hc]:
17601         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
17602         their parent implementation, use bit fields for boolean values, don't
17603         create unused widgets, usage of glib types, braces go on their own
17604         lines, function argument alignment, #include directives etc. etc. etc..
17605
17606         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
17607
17608 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
17609
17610         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
17611
17612         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
17613         of NULL.
17614
17615         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
17616         to freed data.
17617         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
17618
17619         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
17620         to NULL when the toplevel is getting destroyed.
17621         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
17622         (gtk_menu_destroy): 
17623         (gtk_menu_init): store the information of whether we have to
17624         readd the initial child ref_count during destruction in a new
17625         GtkMenu field needs_destruction_ref_count.
17626
17627         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
17628         here, those reading: learn from my mistake! ;)
17629         in order for set_?adjustment to support a default adjustemnt if
17630         invoked with an adjustment pointer of NULL, the code read (pseudo):
17631         if (v->adjustment) unref (v->adjustment);
17632         if (!adjustment) adjustment = adjustment_new ();
17633         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
17634         now imagine the first unref to actually free the old adjustment and
17635         adjustment_new() creating a new adjustment from the very same memory
17636         portion. here, the latter comparision will unintendedly fail, and
17637         all hell breaks loose.
17638         (gtk_viewport_set_hadjustment):
17639         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
17640         after unreferencing it.
17641
17642         * gtk/gtkcontainer.[hc]: removed toplevel registration
17643         functions: gtk_container_register_toplevel(),
17644         gtk_container_unregister_toplevel() and
17645         gtk_container_get_toplevels() which had wrong semantics
17646         anyways: it didn't reference and copy the list.
17647
17648         * gtk/gtkwindow.c: we take over the container toplevel registration
17649         bussiness now. windows are registered across multiple destructions,
17650         untill they are finalized. the initial implicit reference count
17651         users are holding on windows is removed with the first destruction
17652         though.
17653         (gtk_window_init): ref & sink and set has_user_ref_count, got
17654         rid of gtk_container_register_toplevel() call. add window to
17655         toplevel_list.
17656         (gtk_window_destroy): unref the window if has_user_ref_count
17657         is still set, got rid of call to
17658         gtk_container_unregister_toplevel().
17659         (gtk_window_finalize): remove window from toplevel list.
17660         (gtk_window_list_toplevels): new function to return a newly
17661         created list with referenced toplevels.
17662         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
17663
17664         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
17665         adjustment a non-construct arg.
17666         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
17667         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
17668         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
17669
17670         * gtk/gtkrange.c: added some realized checks.
17671         (gtk_range_destroy): get rid of the h/v adjustments in the
17672         destroy handler instead of finalize. remove timer.
17673         (gtk_range_get_adjustment): demand create adjustment.
17674
17675         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
17676         we simply create them on demand now and get rid of them in
17677         the destroy handler.
17678         (gtk_viewport_destroy): get rid of the h/v adjustments in the
17679         destroy handler instead of finalize.
17680         (gtk_viewport_get_hadjustment): 
17681         (gtk_viewport_get_vadjustment): 
17682         (gtk_viewport_size_allocate): demand create h/v adjustment
17683         if required.
17684
17685         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
17686         gtk_widget_real_destroy () functionality.
17687         (gtk_widget_real_destroy): reinitialize with a new style, instead
17688         of setting widget->style to NULL.
17689
17690 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
17691
17692         * gtk/gtkcalendar.c:
17693         * gtk/gtkbutton.c: ported _get_type() implementation over to
17694         GType, either to preserve memchunks allocation facilities,
17695         or because Gtk+ 1.0 GtkTypeInfo was still being used.
17696
17697         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
17698         over. prepare for ::destroy to be emitted multiple times.
17699         removed reference tracer magic. chain into GObjectClass.shutdown()
17700         to emit ::destroy signal.
17701
17702         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
17703         fundamental.
17704
17705         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
17706         cludge.
17707
17708         * gtk/gtksocket.c:
17709         * gtk/gtkplug.c:
17710         * gtk/gtklayout.c:
17711         * gtk/gtklabel.c:
17712         * gtk/gtkargcollector.c:
17713         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
17714         not being a fundamental anymore, and to work with the new
17715         type system (nuked fundamental type varargs clutter).
17716
17717         * gtk/*.c: install finalize handlers in the GObjectClass
17718         part of the class structure.
17719         changed direct GTK_OBJECT()->klass accesses to
17720         GTK_*_GET_CLASS().
17721         changed direct object_class->type accesses to GTK_CLASS_TYPE().
17722
17723         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
17724         GType. made most of the GTK_*() type macros and Gtk* typedefs
17725         simple wrappers around macros and types provided by GType.
17726         most notably, a significant portion of the old API vanished:
17727         GTK_TYPE_MAKE(),
17728         GTK_TYPE_SEQNO(),
17729         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
17730         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
17731         GTK_TYPE_ARGS,
17732         GTK_TYPE_CALLBACK,
17733         GTK_TYPE_C_CALLBACK,
17734         GTK_TYPE_FOREIGN,
17735         GtkTypeQuery,
17736         gtk_type_query(),
17737         gtk_type_set_varargs_type(),
17738         gtk_type_get_varargs_type(),
17739         gtk_type_check_object_cast(),
17740         gtk_type_check_class_cast(),
17741         gtk_type_describe_tree(),
17742         gtk_type_describe_heritage(),
17743         gtk_type_free(),
17744         gtk_type_children_types(),
17745         gtk_type_set_chunk_alloc(),
17746         gtk_type_register_enum(),
17747         gtk_type_register_flags(),
17748         gtk_type_parent_class().
17749         replacements, where available are described in ../docs/Changes-1.4.txt.
17750         implemented compatibility functions for the remaining API.
17751
17752         * configure.in: depend on glib 1.3.1, use gobject module.
17753
17754 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
17755
17756         * TODO.xml: Various updates to current status.
17757
17758 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
17759
17760         * gtk.m4: Print out version when test succeeds.
17761
17762 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
17763
17764         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
17765         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
17766         
17767         (Original triangle color selector from Simon Budig
17768         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
17769         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
17770         Santiago <mrcooger@cyberverse.com>)
17771
17772         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
17773         out into a separate widget.
17774
17775         * gtk/testgtk.c: Add some checkbuttons for toggling palette
17776         and opacity controls.
17777
17778 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
17779
17780         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
17781         snuck in prematurely.
17782
17783 2000-05-07  Tor Lillqvist  <tml@iki.fi>
17784
17785         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
17786         had deleted a ! operator by mistake, which caused
17787         GDK_SELECTION_CLEAR events never to be generated, which caused
17788         only the first copy to the clipboard from an gtkeditable to
17789         actually cause a copy to the Windows clipboard.
17790
17791 2000-05-06  Tor Lillqvist  <tml@iki.fi>
17792
17793         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
17794         compilation, too. Current mingw gcc distributions include the
17795         necessary headers. Also the necessary IIDs are now in mingw
17796         headers/libraries, and own definitions unnecessary.
17797
17798         More hacking on OLE2 DND, still doesn't work though, and thus
17799         ifdeffed out.
17800
17801         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
17802         here, too.
17803
17804 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
17805
17806         * gdk/nanox/*: nano-X port work in progress.
17807         * gdk/simple.c: simple test for Gdk.
17808         * README.nanox: notes about the port: read this first!
17809         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
17810         with nano-X.
17811
17812 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
17813
17814         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
17815         gdk_window_clear() into common code, implement in terms of
17816         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
17817         not redirected to the backing rectangle.
17818
17819 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
17820
17821         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
17822         EXTRA_DIST. It does not work well when the file that
17823         everything depends on is not in the tarball.
17824
17825 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
17826
17827         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
17828         with recursion where process_updates() is called from
17829         an expose handler. (GtkTextView is highly broken in
17830         doing this, but it should work, so it is a nice test
17831         case.)
17832
17833 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
17834
17835         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
17836         handle the case where updates are queued during processing of
17837         updates.
17838
17839 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
17840
17841         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
17842         window is on gdk_display - use that instead of segfaulting.
17843
17844 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
17845
17846         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
17847         broken and require an empty arg, give it to them.
17848
17849 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
17850
17851         * gtk/gtklabel.h: indentation fixes.
17852
17853 2000-05-02  Tor Lillqvist  <tml@iki.fi>
17854
17855         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
17856         draw too narrow or too low arcs, they seem to fail, at least with
17857         some display drivers.
17858
17859         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
17860
17861         Large changes to the Win32 backend, partially made necessary by
17862         the changes to the backend-independent internal
17863         structures. Attempts to implement similar backing store stuff as
17864         on X11. The current (CVS) version of the Win32 backend is *not* as
17865         stable as it was before the no-flicker branch was merged. A
17866         zipfile with that version is available from
17867         http://www.gimp.org/win32/. That should be use by "production"
17868         code until this CVS version is usable. (But note, the Win32
17869         backend has never been claimed to be "production quality".)
17870
17871         * README.win32: Add the above comment about versions.
17872
17873         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
17874
17875         * gdk/gdk.def: Update.
17876
17877         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
17878         presumably be replaced by some more better mechanism as 1.4 gets
17879         closer to release shape.
17880
17881         * gdk/makefile.{cygwin,msc}: Update.
17882
17883         * gdk/win32/*.c: Correct inclusions of the backend-specific and
17884         internal headers. Change code according to changes in these. Use
17885         gdk_drawable_*, not gdk_window_* where necessary.
17886
17887         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
17888         our old DND.
17889
17890         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
17891         to interpret single characters as UTF-8. Thanks to Hans Breuer.
17892         Use correct function name in warning messages.
17893
17894         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
17895         GSourceFuncs gdk_event_prepare and gdk_event_check.
17896         (gdk_event_get_graphics_expose): Do implement, use
17897         PeekMessage. Thanks to Hans Breuer.
17898         (event_mask_string): Debugging function to print an GdkEventMask.
17899         (gdk_pointer_grab): Use it.
17900
17901         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
17902         (old) book I used claimed was Hangul actually is CJK Unified
17903         Ideographs Extension A. Also, Hangul Syllables were missing.
17904         Improve logging.
17905
17906         * gdk/win32/gdkgc-win32.c: Largish changes.
17907
17908         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
17909         g_win32_getlocale() from GLib, and not setlocale() to get current
17910         locale name.
17911
17912         * gdk/win32/gdkprivate-win32.h
17913         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
17914         gdkwin32.h, similarily as in the X11 backend.
17915
17916         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
17917         assignment was used instead of equals in if test. Thanks to Hans
17918         Breuer.
17919
17920         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
17921         the X11 version.
17922
17923         * gdk/win32/makefile.{cygwin,msc}
17924         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
17925         path to the Win32 headers that works also with the mingw compiler.
17926
17927         * gtk/gtkstyle.c: Include <string.h>.
17928
17929 2000-04-26  Havoc Pennington  <hp@redhat.com>
17930
17931         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
17932         replacing the broken gtk_label_get ()
17933
17934 2000-04-15  Havoc Pennington  <hp@pobox.com>
17935
17936         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
17937         this keeps scanner scripts from getting confused.
17938
17939         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
17940         data, rather than void
17941
17942 2000-04-15  Tor Lillqvist  <tml@iki.fi>
17943
17944         * gtk/gtkclist.c (gtk_clist_motion)
17945         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
17946         with is_hint FALSE, get x and y from the event. They used to be
17947         used uninitialised. The Win32 backend never sends motion events
17948         marked as hints. This for instance fixes the annoying file and
17949         font selector behaviour in the Win32 version.
17950
17951 2000-04-14  Tor Lillqvist  <tml@iki.fi>
17952
17953         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
17954         gtk_private_n_signals variables, they are used by some software,
17955         sigh.
17956
17957         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
17958         installation directory from the Registry, where the installer
17959         should have put it.
17960
17961 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
17962
17963         * gdk/x11/Makefile.am: Fix problem with installation directory for
17964         gdkx.h
17965
17966         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
17967         <mrcooger@cyberverse.com> so that when selecting menus with the
17968         mouse, the first item will not be selected, but when selecting
17969         with an accelerator, or navigating left-right on a menubar with
17970         the menus popped up, the first item will be selected.
17971
17972 2000-04-05  Dan Damian  <dand@dnttm.ro>
17973
17974         * configure.in: Added "ro" to ALL_LINGUAS.
17975
17976 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
17977
17978         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
17979         indentation.
17980
17981         * Makefile.am (EXTRA_DIST): Fix typo.
17982
17983         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
17984         to catch gdkconfig.h
17985
17986         * gtk/gtkitemfactory.c: Added FIXME.
17987
17988 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
17989
17990         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
17991         s/return_if_fail/return_val_if_fail/g and add a return value.
17992
17993 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
17994
17995         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
17996         merge slipup.
17997
17998         * gdk/gdkinput.h: Fix missing line from merge.
17999
18000 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
18001
18002         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
18003         instead of gdkprivate.h.
18004
18005 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
18006
18007         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
18008         parent class to correctly be GtkDialogClass.
18009
18010 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
18011
18012         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
18013         toplevel windows and their immediate children by their parents,
18014         since the size of toplevel windows is out of our immediate
18015         control and we don't get any real benefit from trying to track
18016         this size for clipping.
18017
18018         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
18019         for input_only windows.
18020
18021         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
18022         to fix some hacks and make sure that we don't try to set the
18023         background of input only windows.
18024
18025 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
18026
18027         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
18028         the _really_ internal stuff, and leave gdkprivate.h for the fake private
18029         stuff that we've traditionally exposed.
18030
18031         * gdk/**.c: Use gdkinternals.h where appropriate.
18032
18033         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
18034         not include gdkprivate-x11.h, move all stuff of conceivable public
18035         interest into gdkx.h; keep all really private stuff in
18036         uninstalled header gdkprivate-x11.h.
18037
18038         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
18039         image->image_put on windows through a new function _gdk_window_draw_image()
18040         to allow us to do backing store for images. (Sort of ugly)
18041
18042         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
18043         contexts locally so that we can offset them properly when drawing 
18044         onto backing pixmaps.
18045
18046         * gdk/gdkinput.h: Reindented
18047
18048         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
18049         pixmap or color for the window, so we can properly initialize
18050         our double-buffer pixmaps, and also so that we temporarily set
18051         a background of None while scrolling.
18052
18053         * gdk/gdkregion.h: Revise region boolean operators to have an
18054         interface that is actually convenient - switch from creating new
18055         regions on every op, to "methods" that modify existing regions
18056         (A = A OP B). 3 argument forms which allow dest == src, would also
18057         be possible, but the current interfaces seem to map nicely
18058         onto what needs to be done. (There is quite a lot of region
18059         code in GDK now.)
18060
18061         * gdk/gdkregion.h: Add constructor from rectangle and a copy
18062         operator.
18063
18064         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
18065         gdkpoly-generic.h: Copy region code from Xlib, switch it over
18066         to 32 bit coordinates, modify it to be mostly GTK+ style
18067         and to have interfaces that match gdkregion.h.
18068
18069         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
18070         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
18071         create a backing pixmap and redirect all drawing to
18072         that backing pixmap until a matching gdk_window_end_paint().
18073
18074         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
18075         Create a special drawable class for GtkWindow's that 
18076         redirects the drawing to the backing pixmap as necessary
18077         and then calls the real operations in _gdk_windowing_window_class.
18078
18079         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
18080         Store invalid region for each window. Generate expose events for invalid
18081         region in an idle. This replaces both the expose compression
18082         and the redrawing queuing in GTK+. It is both more efficient and
18083         simpler than either one individually and far more so then the
18084         combination.
18085
18086         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
18087         Emulate 32 bit coordinates for windows with 16 bit coordinates
18088         by offsetting drawing, guffaw scrolling techniques and
18089         mapping/unmapping child windows as necessary.
18090
18091         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
18092         where, when invalid regions are processed, the region is stored,
18093         and if expose events come in that are detectably duplicate
18094         the processed exposes (by comparison of event serial numbers),
18095         the stored region is subtracted out of those exposes.
18096
18097         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
18098         regions newly exposed when scrolling or resizing windows.
18099         This, combined with forcing processesing of queued invalidated
18100         regions, gives nice flicker-free scrolling.
18101
18102         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
18103         invalidated regions after every scroll.
18104
18105         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
18106         emulation in GDK. Its, for all practical purposes just a
18107         GtkViewport/GtkFixed hybrid now.
18108
18109         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
18110         (16-bit) structures as necessary instead of just casting.
18111
18112         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
18113         in terms of the structures from gdkregion-generic.c, using appropriate
18114         offsets from GDK to X11 coordinates. Cache clip mask and
18115         origin and ts origin locally and only flush to the server
18116         when drawing, to avoid constantly setting and resetting these
18117         values when offsetting GC's for scrolling and backing pixmaps.
18118
18119         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
18120
18121         * gtk/gtkcontainer.c: Call process_all_updates at end
18122         of resizing to reduce flicker. (Avoids having redraw
18123         lag arbitrarily behind resize under some circumstances)
18124
18125         * gtk/gtkentry.c: Remove old backing store code, and simply take
18126         advantage of the new backing store capabilities of GDK.
18127
18128         * gtk/gtkmain.c: Simple implementation of widget backing
18129         store - simply push a paint while handling each expose.
18130         (Should really be configurable widget for widget.)
18131         
18132         * gtk/gtkwidget.c: Remove all the old complicated redraw
18133         code, and simply invalidate the GDK windows from
18134         gdk_window_queue_clear(), etc. (Sigh, so much carefully
18135         debugged complexity ... gone to the winds.)
18136
18137         Remove all the code for suppressing expose events while
18138         resizes are pending; this isn't needed since the invalid
18139         areas won't be processed until after the resizes are
18140         processed, since they are in a lower priority idle.
18141
18142 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
18143
18144         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
18145         and height of dest rectangle for non-intersecting rectangles.
18146
18147 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
18148
18149         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
18150         for GdkRectangle.
18151
18152 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
18153
18154         * gdk/gdk{events,image,private,types,window}.h
18155          gdk/x11/gdkinputprivate.h: Change all coordinates
18156          from int16 to int. Also, Change width and height from
18157          unsigned to signed to avoid all the stupid C 
18158          signedness bugs.
18159
18160 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
18161
18162         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
18163         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
18164         Add some more detailed checking.
18165
18166         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
18167         New function to retrieve the depth of a drawable.
18168
18169         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
18170         field, reorder fields to save memory. 
18171
18172 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
18173
18174         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
18175         of the background image instead of scaling the background down to
18176         a line.
18177
18178         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
18179         which temporarily set slider to wrong size.
18180
18181         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
18182         queue_clear().
18183
18184 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
18185
18186 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
18187
18188         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
18189
18190 2000-03-17  Tor Lillqvist  <tml@iki.fi>
18191
18192         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
18193         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
18194
18195         * gdk/win32/gdkfont-win32.c
18196         * gdk/win32/gdkproperty-win32.c
18197         * gdk/win32/gdkselection-win32.c
18198         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
18199         now declared such.
18200
18201 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
18202
18203         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
18204
18205 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
18206
18207         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
18208         is called without trapping X errors.
18209
18210 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
18211
18212         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
18213         way into the fontset lists.
18214
18215 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
18216
18217         * gtk/gtkthemes.h: add extern "C" scope.
18218
18219 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
18220
18221         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
18222         to make appends to the list constant. (gtk-guy-990901-0.patch)
18223
18224 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
18225
18226         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
18227         for the typename hash table.
18228
18229 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
18230
18231         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
18232         to make sure we never divide by zero. 
18233         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
18234
18235 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
18236
18237         * gtk/gtkfontsel.c: Apply patch from
18238         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
18239         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
18240
18241         Also, some cleanups in atom handling.
18242
18243 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
18244
18245         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
18246         not GtkWidget.
18247
18248 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
18249
18250         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
18251         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
18252         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
18253         more guint wrap-around bugs before going to bed.
18254
18255 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
18256
18257         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
18258         guint wrap arounds in allocation.width.
18259
18260         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
18261         process untill we fit the allocation given.
18262
18263 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
18264
18265         * gtk/gtkwidget.c:
18266         (gtk_widget_unrealize): guard widget access with ref/unref
18267         around signal emission.
18268         (gtk_widget_hide): same here, but also check its destroyed
18269         state before queueing a resize.
18270
18271 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
18272
18273         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
18274         of gtk_default_insensitive_bg as insensitive base color.
18275
18276         * gtk/gtktext.c (gtk_text_style_set): set the background color according
18277         to the widget's state.
18278         (gtk_text_realize): same here.
18279         (gtk_text_state_changed): same here.
18280         (draw_bg_rect): compare background color against base[] from
18281         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
18282
18283 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
18284
18285         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
18286         grabs are active, unless a delete event is send to the toplevel
18287         of the currently grab holding widget.
18288
18289 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
18290
18291         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
18292         debugging g_print's.
18293
18294 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
18295
18296         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
18297         ever make the scrolled-window requisition ever depend on the 
18298         visibility state of the scrollbars for the AUTOMATIC policy. 
18299         This breaks the GTK+ requisition model, and causes loops.
18300
18301 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
18302
18303         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
18304         the default font to avoid problems with XFree86-4.0 where the
18305         default charset is iso10646-1, not iso8859-1.
18306
18307 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
18308
18309         * acinclude.m4
18310         * config.guess
18311         * config.sub
18312         * ltconfig
18313         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
18314
18315         * gtk/Makefile.am: minor cosmetic consistency tweak
18316
18317 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
18318
18319         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
18320         the activate_time to 0, so that we handle a quick
18321         press/release press/release properly and don't suppress
18322         the second release. (Red Hat bug #7545)
18323
18324 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
18325
18326         * gtk/gtkctree.c (row_delete):
18327         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
18328         bugs with destruction notifier, *always* update internal
18329         structures *before* calling user code.
18330
18331 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
18332
18333         A few more fixes for bug #5487, #2051, #2677.
18334         * gtk/gtkclist.c : 
18335         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
18336         not GDK_BUTTON_PRESS.
18337         (resync_selection): resync only if selection_mode is
18338         GTK_SELECTION_EXTENDED
18339         * gtk/gtkctree.c (resync_selection): same here
18340
18341 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
18342
18343         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
18344         gdk_drag_get_selection() and gtk_menu_detach().
18345
18346         [ From Jeroen Ruigrok/Asmodai ]
18347
18348 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
18349
18350         * gtk/gtknotebook.c (gtk_notebook_size_request): 
18351         page->tab_label can be NULL.
18352
18353 2000-01-25  Havoc Pennington  <hp@pobox.com>
18354         
18355         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
18356         arg is boolean
18357
18358         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
18359
18360         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
18361
18362         * gdk/gdkproperty.c (gdk_property_get): return boolean
18363
18364         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
18365
18366         * gdk/gdkim.c (gdk_im_ready): return boolean
18367
18368         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
18369
18370         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
18371         glib clash, should fix glib)
18372
18373         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
18374         (gdk_get_show_events): return gboolean, and canonicalize 
18375         to TRUE/FALSE
18376
18377         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
18378         colormap is private
18379         (gdk_colors_alloc): gboolean whether to be contiguous
18380         (gdk_color_equal): return gboolean since we are a predicate
18381         and not a qsort() (this looks semi-wrong due to glib breakage,
18382         IMO glib should be fixed)
18383         
18384         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
18385         (gdk_get_use_xshm): return gboolean
18386         (gdk_pointer_is_grabbed): return gboolean
18387
18388         * gdk/gdk.h: Change prototypes to match all the above changes,
18389         and re-run egtk-format-protos as required.
18390
18391 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
18392
18393         * gtk/gtkctree.c (resync_selection): 
18394         * gtk/gtkclist.c (resync_selection):
18395
18396         Return immediately if clist->drag_pos < 0. This is a workaround
18397         for the corrupt state that the clist gets into when a
18398         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
18399
18400         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
18401         
18402         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
18403         variable from recent commit.
18404
18405 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
18406
18407         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
18408
18409 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
18410
18411         * gtk/Makefile.am: prefix all autogenerated source that get build in
18412         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
18413         in builddir. since we subsequently cd into srcdir for autogeneration,
18414         the paths have to be stripped from the target file names, thusly we
18415         use $(@F) as target names now.
18416         put a comment about configure.in's --disable-rebuilds option,
18417         which can be used for non-writable source directories, for development
18418         setups though, srcdir has to be *writable*.
18419
18420 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
18421
18422         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
18423           Finish the job of allowing event to be NULL.
18424           (Fixes bug #4283, reported by Chris Blizzard)
18425
18426         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
18427           things so that the cursor appears on screen, properly
18428           take into account INNER_BORDER.
18429           (Fixes bug #4754, reported by Antonio Campos)
18430
18431 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
18432
18433         * gtk/gtknotebook.c (gtk_notebook_map): Don't
18434           show the tab_label unless it itself is visible.
18435
18436           gtk/gtknotebook.c (gtk_notebook_size_request):
18437           Do a better job of making sure that the visibility
18438           of the tab label corresponds to whether it should
18439           be mapped or not.
18440
18441 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
18442
18443         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
18444           Use the requisition, not the allocation, since the
18445           allocation has not necessarily been computed yet.
18446           (Pointed out by Eugene Osintsev)
18447
18448 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
18449
18450         * gtk/gtkstyle.c (gtk_style_new): Dont' set
18451           style/base[GTK_STATE_INSENSITIVE] both to
18452           gtk_default_insensitive_bg!
18453           (Bug #2187, reported by Jonathan Blandford)
18454
18455         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
18456           Add Alt_L, Alt_R to list of invalid accelerators.
18457           (Bug #3736, reported by Vlad Harchev)
18458
18459 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
18460
18461         * gtk/gtkfilesel.c (open_ref_dir): Fix several
18462         bugs which occured after an attempt to open 
18463         invalid home directory left cmpl_state->reference_dir == NULL.
18464
18465          - completion on files in home directory didn't work
18466          - completion on an empty string caused  segfault
18467
18468          (Bug #3678, reported by Steve Ratcliffe)
18469
18470         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
18471         cut and paste error that was causing scales to
18472         be incorrectly positioned.
18473         (Bug #2956,
18474          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
18475
18476 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
18477
18478         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
18479         when checking for dcgettext, if we've found we needed
18480         it for dgettext.
18481 +
18482 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
18483
18484         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
18485         queue_clear on NO_WINDOW widgets during a reparent,
18486         since at that point the window and widget heirarchies
18487         are out of sync. This stops crashing in some cases
18488         (the scrolled window reparent test, for instance), and
18489         _probably_ won't cause drawing errors.
18490
18491         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
18492         test do what it was supposed to do and be robust against
18493         window closings, etc. (Bug #2443)
18494
18495 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
18496
18497         * gtk/gtkentry.c: Fix return values on mouse events.
18498         (Bug #2686, Sky <seb_sky@yahoo.com>)
18499
18500         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
18501         (pointed out by George Lebl)
18502
18503         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
18504         (From Ettore Perazzoli  <ettore@helixcode.com>)
18505  
18506 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
18507
18508         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
18509         clicks between rows or outside calender area correctly.
18510         (Patch from Damon Chaplin)
18511
18512         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
18513         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
18514           Call destroy function when overwriting existing data. 
18515           (Pointed out by Damon Chaplin)
18516
18517 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
18518
18519         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
18520           which was causing problems on various systems with Xmu.
18521           This hasn't been needed for a very long time.
18522           (Fixes #1185 3167)
18523
18524 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
18525
18526         * gdk/gdki18n.h: Include <ctype.h> when defining
18527           gdk_isw* in terms of is* as a fallback.
18528           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
18529
18530 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
18531
18532         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
18533           realize the widget when it is size allocated!
18534           (old, old bug)
18535
18536         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
18537           Removed unused call to gdk_window_get_size() that
18538           showed up when the above was fixed.
18539
18540 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
18541
18542         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
18543           fix up widget->window when the widget is a
18544           NO_WINDOW container widget.
18545
18546 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
18547
18548         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
18549           to account for the fact that feof() does _not_ 
18550           return TRUE on errors, and thus avoid infinite loops
18551           when trying to use gdk_pixmap_create_from_xpm()
18552           on unreadable values.
18553
18554 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
18555
18556         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
18557
18558 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
18559
18560         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
18561           gdk_gc_set_dashes to take gint8 instead of gchar to
18562           make it clearer that it is _not_ a NULL terminated string.
18563
18564         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
18565           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
18566           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
18567           arguments.
18568
18569 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
18570
18571         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
18572         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
18573         background size relative to our allocation, guard against small
18574         allocations, we may have not yet been size allocated.
18575
18576 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
18577
18578         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
18579         not just version == 3. We implement all 3 + most of 4 - 
18580         (we don't support matching text/plain;charset=iso-8859-1
18581         to a dest that expects text/plain). We'll still advertise
18582         3 to be safe, but any client implementing version >= 3
18583         must interoperate with 3.
18584         
18585 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
18586
18587         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
18588         background and gc members, add a warning in gtk_tooltips_set_color()
18589         indicating that this function is deprecated.
18590
18591 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
18592
18593         * docs/gtkfaq.sgml: FAQ Update:
18594           - Minor cleanups (Emmanuel, me)
18595           - New questions:
18596                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
18597                 How can I retrieve the text from a GtkMenuItem? (timj)
18598                 How do I validate/limit/filter the input to a GtkEntry? (me)
18599                 Memory does not seem to be released when I free the list
18600                         nodes I've allocated (timj)
18601
18602 2000-03-07  Tor Lillqvist  <tml@iki.fi>
18603
18604         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
18605         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
18606         for which it is no use to call GetLastError onWin9x.
18607         (gdk_other_api_failed) New function, for general error
18608         reporting without calling GetLastError.
18609         (gdk_win32_api_failed) OTOH, this function always calls
18610         GetLastError. (gdk_win32_last_error_string) Remove this function,
18611         GLib has the equivalent now.
18612
18613         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
18614         call them with function name, file name and line number in the
18615         arguments.
18616
18617         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
18618         functions.
18619         
18620         * gtk/gtk.def: Add some missing entry points.
18621
18622         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
18623         gtk_paned_set_gutter_size, which don't exist any longer, as void.
18624         
18625         Fixes by Hans Breuer:
18626
18627         * gdk/makefile.msc: Update for debugging.
18628
18629         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
18630         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
18631         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
18632         in the dash_list.
18633
18634         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
18635         the x11 backend.
18636
18637         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
18638
18639         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
18640
18641 2000-03-04  Tor Lillqvist  <tml@iki.fi>
18642
18643         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
18644         just pixel value of background colour.
18645
18646         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
18647         containing code snippet previously duplicated in a couple of
18648         places.
18649         
18650         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
18651         gdk_colormap_color.
18652
18653         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
18654         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
18655         events for autorepeated Shift, Control and Alt keys. Use
18656         gdk_colormap_color.
18657
18658         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
18659         pointer is inside the window the cursor of which we are setting,
18660         call SetCursor immediately.
18661
18662         * gdk/win32/makefile.cygwin
18663         * gtk/makefile.cygwin: If we don't have the build number stamp
18664         file, use zero.
18665
18666         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
18667         gtk_paned_set_gutter_size as empty.
18668
18669         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
18670         
18671 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
18672
18673         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
18674           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
18675           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
18676           docs/gtk_tut.sgml docs/gtk.texi TODO:
18677
18678           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
18679
18680 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
18681
18682         * gtk/gtkcalendar.c: Implement num_marked_dates,
18683           and don't emit mutiple day_selected signals on
18684           month_prev.
18685
18686 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
18687
18688         * docs/make-todo (lineno): let title and logo be configurable so
18689         that GNOME can use this script too.
18690
18691         * TODO.xml: added logourl and a title
18692
18693 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
18694
18695         * TODO.xml: Added some UI items, and an explanatory
18696         comment at the top of the file.
18697
18698 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
18699
18700         * TODO.xml: some updates, added abunch of new entries.
18701         a note for those fiddeling with this file, when done
18702         with it, invoke:
18703         $ ./docs/make-todo TODO.xml >/dev/null
18704         and correct output errors before comitting changes.
18705
18706 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
18707
18708         * TODO.xml: Added XML-structured TODO file.
18709         * docs/make-todo: python script to turn TODO.xml into
18710           pretty XML output. 
18711
18712 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
18713
18714         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
18715         the function to let it draw the seven dots, instead of the old,
18716         much maligned, method.
18717         (draw_dot): New function to draw a dot.
18718
18719         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
18720         to draw the handle inside the border width as opposed to outside.
18721         Use paint function instead of gdk_draw_point.
18722
18723         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
18724         to draw the handle inside the border width as opposed to outside.
18725         Use paint function instead of gdk_draw_point.
18726
18727         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
18728         Change indenting to be more GTK like.
18729
18730 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
18731
18732         * docs/gtk_tut.sgml: New section on GtkCalendar
18733         * examples/calendar: Update example code
18734
18735 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
18736
18737         * docs/gtkfaq.sgml: FAQ Update
18738
18739 2000-02-19  Anders Carlsson  <andersca@gnu.org>
18740
18741         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
18742         to prevent the scroll event to be propagated upwards.
18743
18744 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
18745
18746         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
18747         OwnerGrabButtonMask from button entries for
18748         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
18749
18750         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
18751         to the event mask (which will result in button/press release
18752         being added to the event mask on Unix) so scrolling works
18753         for layouts in scroll windows.
18754
18755         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
18756
18757         Patch from Anders Carlsson  <andersca@gnu.org> to add
18758         a scroll event.
18759
18760         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
18761         scrolling to the "Test Scrolling" part of testgtk.
18762  
18763         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
18764  
18765         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
18766         it against GDK_SCROLL.
18767  
18768         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
18769         way of mouse wheel scrolling.
18770  
18771         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
18772  
18773         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
18774  
18775         * gtk/gtkmain.c: Removed previous mouse wheel hack.
18776  
18777         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
18778         gdk_event_mask_table.
18779  
18780         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
18781         GdkEventScroll handler.
18782  
18783         * gdk/gdkevents.h: Added GdkEventScroll structure.
18784  
18785 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
18786
18787         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
18788         and Anders Carlsson to change the Paned widgets so that they
18789         can be dragged from anywhere along the length. Also change
18790         the way that this is drawn to make this apparent.
18791
18792         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
18793         from George Lebl to check that option_menu->menu is present
18794         before getting history.
18795
18796 2000-02-14  Tor Lillqvist  <tml@iki.fi>
18797
18798         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
18799         before the assertion for non-NULL segment list.
18800
18801         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
18802         Seems that pattern brushes *must* be 8x8 pixels! At least on my
18803         machine, but it might be display driver dependent. Sigh, so make
18804         sure the stipple is that size. Does Windows suck or what?
18805
18806         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
18807         places.
18808
18809 2000-02-13  Havoc Pennington  <hp@pobox.com>
18810
18811         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
18812         refcount to 1
18813         (gdk_cursor_new): init refcount to 1
18814
18815         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
18816
18817 2000-02-13  Tor Lillqvist  <tml@iki.fi>
18818
18819         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
18820         so that we don't have to do unnecessary settings to the HDC.
18821
18822         * gdk/win32/gdkdrawable-win32.c
18823         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
18824         gdk_gc_predraw.
18825
18826         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
18827         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
18828         GDI paths, call WidenPath to get the outline of the stroken path,
18829         and then fill the outline (with the brush that was built from the
18830         stipple).
18831
18832         * gdk/win32/gdkgc-win32.c: Factor out common code from
18833         _gdk_win32_gc_new and gdk_win32_gc_set_values into
18834         gdk_win32_gc_values_to_win32values. Use correct colour for
18835         SetBkColor() (Until now the code actually used a random colour in
18836         the call to SetBkColor()... but that didn't show up as not many
18837         GDI APIs use the background colour. Pattern (opaque stippled)
18838         brushes do.)
18839
18840         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
18841         gdk_win32_api_failed): New functions for error logging.
18842
18843         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
18844         WIN32_API_FAILED to call them, passing function or file name and
18845         line number.
18846
18847         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
18848
18849         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
18850         GdkColor for foreground and background in GdkGCWin32Data.
18851
18852         * gdk/makefile.cygwin: Link in the resource object separately.
18853
18854         * gdk/win32/rc/gdk.rc
18855         * gtk/gtk.rc (New file)
18856         * gdk/win32/makefile.cygwin
18857         * gtk/makefile.cygwin: Update build number in DLLs automatically,
18858         as in GLib.
18859
18860 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
18861
18862         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
18863         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
18864         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
18865         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
18866         parameters given and cursor->ref_count. coding style fixups.
18867
18868         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
18869         not GtkWidget.
18870         
18871         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
18872         fix up widget macros and add _GET_CLASS() variant.
18873         
18874         * gtk/*.c: some GtkType fixups.
18875
18876 2000-02-09  Tor Lillqvist  <tml@iki.fi>
18877
18878         * gdk/win32/gdkproperty-win32.c
18879         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
18880         were reversed.
18881
18882 2000-02-04  Tor Lillqvist  <tml@iki.fi>
18883
18884         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
18885         g_filename_to_utf8 to convert the font names Windows gives us from
18886         whatever is the default codepage to UTF-8.
18887         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
18888         in the other direction.
18889
18890         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
18891         error in debugging output.
18892
18893 2000-02-02  Tor Lillqvist  <tml@iki.fi>
18894
18895         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
18896         and height parameters to gdk_window_clear_area(). Not minus one.
18897
18898 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
18899
18900         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
18901         checks if the widget passed to gtk_drag_get_data() was not the
18902         dest widget.
18903
18904 2000-02-01  Tor Lillqvist  <tml@iki.fi>
18905
18906         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
18907         g_filename_from_utf8 functions (which were added a moment ago to
18908         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
18909         size buffers.
18910
18911         gtk_file_selection_get_filename returns the filename in the C
18912         runtime encoding. It calls g_filename_from_utf8, but copies the
18913         returned string to a static buffer, which is returned. I think
18914         this is better than returning the result from g_filename_from_utf8
18915         directly, which would mean all apps that use it would have to free
18916         the return value. Or should this function care about this issue at
18917         all? Maybe a new function with clearly defined semantics.
18918
18919         * gtk/gtkfilesel.h: Add comment about
18920         gtk_file_selection_get_filename returning the filename in the C
18921         runtime's encoding.
18922
18923         * README.win32
18924         * gdk/gdk.def
18925         * gdk/makefile.{cygwin,msc}
18926         * gtk/gtk.def: Updates.
18927
18928         * gdk/gdkcursor-win32.c: Initialise refcount.
18929
18930 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
18931
18932         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
18933
18934 2000-01-30  Havoc Pennington  <hp@pobox.com>
18935
18936         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
18937         destroy
18938
18939         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
18940
18941         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
18942         implemented in platform-specific code
18943
18944         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
18945
18946         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
18947         underscore in front
18948
18949         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
18950         put an underscore in front
18951
18952         * gdk/gdkcursor.c: new file, implements
18953         gdk_cursor_ref/gdk_cursor_unref
18954
18955         * gdk/gdkcursor.h: Refcount GdkCursor
18956
18957         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
18958
18959 2000-01-29  Tor Lillqvist  <tml@iki.fi>
18960
18961         * gdk/gdkwindow.h
18962         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
18963
18964 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
18965
18966         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
18967         structures to properly inherit from GtkWidget not GtkBin.
18968
18969 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
18970
18971         * gtk+.spec.in: Added lib/gtk+/include/* to %files
18972         (bug #5178 - Peter Wainright)
18973         
18974         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
18975         so that it will be installed.
18976         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
18977
18978 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
18979
18980         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
18981         for the GtkStyleClass vtable const.
18982
18983         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
18984         take a const string argument like GtkTranslateFunc. This will
18985         require changes in use code.
18986
18987 2000-01-19  Tor Lillqvist  <tml@iki.fi>
18988
18989         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
18990         semantics (to mimic the X11 backend, which just calls XClearArea)
18991         is to check for zero width (and height), and in that case use the
18992         window's width minus x (height minus y). This fixes for instance
18993         some redraw problems with gtkclist, which were easily noticeable
18994         in the gtk file selection widget.
18995
18996         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
18997         windows.
18998
18999 2000-01-13  Tor Lillqvist  <tml@iki.fi>
19000
19001         * configure.in
19002         * gdk/Makefile.am
19003         * gdk/x11/Makefile.am
19004         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
19005         (bug #5177).
19006         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
19007         out later.
19008
19009 2000-01-09  Tor Lillqvist  <tml@iki.fi>
19010
19011         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
19012         WM_MOVE for iconified or invisible windows. This fixes various
19013         problems when minimising windows. Thanks to Bernd Herd.
19014
19015 2000-01-05  Tor Lillqvist  <tml@iki.fi>
19016
19017         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
19018         backend's draw_lines method, not draw_points.
19019
19020 2000-01-02  Tor Lillqvist  <tml@iki.fi>
19021
19022         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
19023         before Owen's reorganisation: Don't have queued_events and
19024         queued_tail statics in this file, but use gdk_queued_events and
19025         gdk_queued_tail. This makes exposure event compression work again.
19026
19027         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
19028         seem to be needed?
19029
19030 1999-12-30  Tor Lillqvist  <tml@iki.fi>
19031
19032         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
19033         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
19034         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
19035         doesn't do anything.
19036
19037         * gdk/gdk.def: Add gdk_xid_table_insert.
19038
19039         * gdk/win32/gdkprivate-win32.h
19040         * gdk/win32/gdkevents-win32.c
19041         * gdk/win32/gdkinput-win32.c
19042         
19043         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
19044         extension_events field in the GdkWindowWin32Data struct. Use only
19045         the extension_events field in GdkWindowPrivate. Previously one was
19046         set, and the other one tested, which broke tablet
19047         functionality. Thanks to Keishi Suenaga for pointing this out.
19048
19049 1999-12-18  Tor Lillqvist  <tml@iki.fi>
19050
19051         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
19052         When handling a single character (text length == 1), don't handle
19053         it as if it was UTF-8.
19054
19055 1999-12-11  Tor Lillqvist  <tml@iki.fi>
19056
19057         * Makefile.am: Distribute README.win32.
19058         
19059         * gdk/Makefile.am
19060         * gdk/win32/Makefile.am: Distribute Win32 files.
19061
19062         * gdk/makefile.msc: New file.
19063
19064         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
19065         after label).
19066
19067         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
19068         gdk_error_code as GDKVAR, as they are referred outside GDK.
19069
19070         * gdk/win32/makefile.msc: Update.
19071
19072         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
19073         tweaks. Check only if at least one of those Unicode subrange bits
19074         we care for is set. If no code page bits are set, guess (wildly)
19075         based on the charset.
19076
19077         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
19078
19079         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
19080         non-NULL.
19081
19082         * gtk/gtkdnd.c
19083         * gtk/gtklayout.c
19084         * gtk/gtkplug.c
19085         * gtk/gtkselection.c
19086         * gtk/gtksocket.c
19087         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
19088         appropriate. There must be a cleaner way to handle this?
19089
19090         * gtk/gtkrc.c: Must include windows.h on Win32.
19091
19092         * gtk/testgtk.c: No need to include gdkx.h.
19093
19094         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
19095
19096 1999-12-07  Tor Lillqvist  <tml@iki.fi>
19097
19098         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
19099         the rbearing is set to the same as the width, but this should be
19100         fixed.
19101
19102 1999-12-06  Tor Lillqvist  <tml@iki.fi>
19103
19104         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
19105         function. If Windows doesn't tell us what Unicode subranges a font
19106         covers, guesstimate based on the codepages it covers. This will
19107         hopefully help those Windows versions or fonts that don't give us
19108         any useful Unicode subrange information with GetTextCharsetInfo.
19109         Call this function in gdk_font_load_internal.
19110
19111         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
19112         minor changes.
19113
19114 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
19115
19116         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
19117         New function, long needed.
19118
19119 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
19120
19121         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
19122         only_if_exists argument of gdk_atom_intern to
19123         bool.
19124
19125 1999-11-25  Tor Lillqvist  <tml@iki.fi>
19126
19127         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
19128         Fix two copy&paste errors.
19129
19130         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
19131         win32 has changed.
19132
19133         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
19134         GdkWin32SingleFont struct.
19135
19136         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
19137         subranges of loaded fonts. Clear font signature first, in case
19138         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
19139         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
19140
19141         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
19142         Unoffset clip region.
19143
19144 1999-11-23  Tor Lillqvist  <tml@iki.fi>
19145
19146         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
19147         event->any.window before calling filter functions.
19148
19149 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
19150
19151         * gtk/gtkgamma.h: Adapt cast macros to standard.
19152
19153 [ Merges from 1.2 ]
19154
19155 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
19156
19157         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
19158         If translation does not include a '/', use entire
19159         translation instead of crashing.
19160
19161 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
19162
19163         * docs/gtk_tut.sgml:
19164         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
19165
19166 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
19167
19168         * gtk/gtkselection.c (gtk_target_list_remove): Use
19169         g_list_remove_link, not g_list_remove.
19170
19171         [ From Geert Bevin <gbevin@thunderstorms.org> ]
19172         
19173 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
19174
19175         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
19176         statement upon unselection (how the heck did that slip in?).
19177
19178 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
19179
19180         * gtk/gtktext.c (gtk_text_freeze): 
19181         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
19182         in frozen state (and aparently crashes). patch provided by Anders
19183         Melchiorsen <and@kampsax.dtu.dk>.
19184
19185 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
19186
19187         * fix insensitive default/focus widget activation,
19188         reported by Matt Goodall <mgg@isotek.co.uk>.
19189
19190         * gtk/gtkwindow.c (gtk_window_key_press_event): 
19191         (gtk_window_activate_default):
19192         (gtk_window_activate_focus):
19193         return handled=FALSE for actiavtion of insensitive default
19194         widgets. return handled=TRUE for activation of insensitive
19195         focus widgets. don't activate in either case.
19196
19197 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
19198
19199         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
19200         and $glib_cflags to match library order and in the
19201         theory that an old version of GLib is more likely to
19202         be in the include directory for X then vice-versa.
19203         (Bug #2776)
19204
19205 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
19206
19207         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
19208         to determine the locale for fontsets, not LC_MESSAGES;
19209         the user may want English messages with a handling
19210         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
19211         will still be broken) (Bug #2891)
19212
19213 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
19214
19215         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
19216
19217 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
19218
19219         * gtk/gtkrc.ko: Changed the Korean default fontset.
19220
19221 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
19222
19223         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
19224         where when scrolling to the left or top double exposes
19225         were done, causing major slowdowns.
19226
19227 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
19228
19229         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
19230         names to lowercase and alphanumeric, before looking
19231         them up.
19232
19233         * gtk/Makefile.am: Install codeset variant gtkrc files
19234         with normalized names.
19235
19236 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
19237
19238         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
19239         popup menus when the menu is already visible, but its parent
19240         is still hidden, (happens after tornoff window got hidden).
19241
19242 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
19243
19244         * gtk/Makefile.am (install-data-local): Fix
19245         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
19246         deleted, causing error messages on install.
19247
19248 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
19249
19250         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
19251         the handle as well, since we now sometimes ignore
19252         exposes on the handle while resizing.
19253
19254 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
19255
19256         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
19257         extra g_free introduced in one of the last one or two 
19258         commits.
19259
19260 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
19261
19262         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
19263         consistent, put each style that a gtkrc.* file creates
19264         in a unique namespace, remove old files before installing.
19265
19266 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
19267
19268         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
19269         gtk_rc_init is called multiple times. (Yes, people who
19270         do that have bugs in their code.)
19271
19272 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
19273
19274         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
19275         Remove it since it's generated by the Makefile anyway
19276
19277 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
19278
19279         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
19280         device->info.axes for core pointer.
19281
19282 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
19283
19284         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
19285         idle_id, to deal with obsolete, broken C libraries.
19286
19287 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
19288
19289         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
19290         allocation->x/y twice!
19291
19292         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
19293         consistent with gtk_vscale_pos_trough().
19294
19295 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
19296
19297         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
19298         be queueing a resize on a toplevel container between
19299         the time we show it and when we map it. So, we need
19300         to test GTK_WIDGET_VISIBLE() for toplevels, and only
19301         use GTK_WIDGET_DRAWABLE() for child windows.
19302
19303 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
19304
19305         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
19306         (fixes bug #2144)
19307
19308 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
19309
19310         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
19311         container DRAWABLE (instead of VISIBLE), so we don't queue
19312         resizes on non-toplevel containers.
19313
19314 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
19315
19316         * gtk/gtkselection.[ch]: Make the data argument
19317         const guchar *.
19318
19319 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
19320
19321         * gtk/gtkwindow.c: Try to behave sensibly if 
19322         the focus widget is the window itself. (Should
19323         we allow this at all?)
19324
19325 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
19326
19327         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
19328         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
19329         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
19330         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
19331         in prototypes and implementations consistent (Tomas Ogren).
19332
19333         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
19334         before the widget is unparented (reported by damon).
19335
19336         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
19337         since we provide unsigned data anyways.
19338
19339 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
19340
19341         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
19342         the call to gtk_tooltips_layout_text() until later.
19343
19344         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
19345         Call gtk_widget_ensure_style() before using the style.
19346
19347 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
19348
19349         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
19350         for old widgets that don't propagate draws to all
19351         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
19352
19353 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
19354
19355         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
19356         for a redraw but just the widget that requested the resize.
19357
19358 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
19359
19360         * gtk/gtkcontainer.c: added new widget level method
19361         gtk_container_set_reallocate_redraws() and a GtkContainer flag
19362         reallocate_redraws : 1 to reflect the setting, exported this through
19363         the argument system as a boolean ::reallocate_redraws.
19364
19365         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
19366         on the widget because the allocation changes, do so as well for
19367         widget->parent if the parent has reallocate_redraws set to TRUE.
19368         with that containers requesting reallocation redraws get automatically
19369         redrawn if their children changed allocation (this unfortunately
19370         affects also other children that didn't change allocation, but we
19371         cannot work around that before 1.3).
19372
19373 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
19374
19375         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
19376         _and_ height are >0 (not _or_).
19377
19378         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
19379         instead of gtk_container_queue_resize(), which is a core gtk internal
19380         function (must have been on crack when i queued that).
19381
19382         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
19383         we can check more reliably if we want to discard expose events.
19384         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
19385         flag.
19386         
19387         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
19388         we simply trust these events. for deciding whether to discard exposes,
19389         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
19390         
19391 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
19392
19393         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
19394         queues of areas that are completely off screen.
19395
19396         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
19397         logic for handleboxes.
19398
19399         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
19400         check on width/height.
19401
19402 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
19403
19404         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
19405         we are fine with using $@ the way we do (if we actually encounter
19406         brokeness with $@ in VPATH builds because of additional path prefixes,
19407         we need to use $(@F) actually).
19408
19409 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
19410
19411         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
19412         short lived bugs, that would allow language bindings to do surgeries
19413         to our guts.
19414
19415 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
19416
19417         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
19418         where comparison was being done against an uninitialized
19419         value causing intermittant results depending on
19420         compiler flags. Also make it clearer that we aren't
19421         ever initializing the child as 0x0 (though this will
19422         be caught in gtk_widget_size_allocate())
19423
19424 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
19425
19426         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
19427         gtk_window_unset_transient_for() call after we do checks
19428         involving the old transient parent.
19429         [ From Lance Capser <lmc@cyberhighway.net> ]
19430
19431 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
19432
19433         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
19434         an empty file.
19435
19436 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
19437
19438         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
19439         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
19440
19441 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
19442
19443         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
19444         `$@' is valid only in the build dir, not after we've done 
19445         `cd $srcdir'.  Also use `test -f' instead of less portable
19446         `test -e'.
19447
19448 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
19449
19450         * gtk/gtktext.c (correct_cache_insert): Rewrite
19451          for simplicity, and hopefully correctness.
19452          (Fixes bug #1322, which was a segfault when
19453           on some insertions with the properties around
19454           the insertion set up just wrong.)
19455
19456         * gtk/gtktext.c (gtk_text_adjustment): When we receive
19457          a "changed" signal, clamp the new value to the adjustment
19458          bounds to avoid segfaulting if someone tries to change
19459          the adjustment to a bogus value. (Bug #1795)
19460
19461 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
19462
19463         * gtk/gtkmain.c: Ignore unexpected destroy notifies
19464         for children, for toplevel windows handle them
19465         like delete_event.
19466
19467         * gtk/gtkplug.c: Add an unrealize handler so that
19468         we unref plug->socket_window when we are done
19469         with it.
19470
19471 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
19472
19473         * gtk/gtktext.c (clear_area): Fix stupid signedness
19474          problem that was causing background to sometimes
19475          be misaligned.
19476
19477 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
19478
19479         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
19480         
19481         * gtk/gtkmenu.c (gtk_menu_position): Make
19482          sure we never position menus with negative x, y,
19483          since gtk_widget_set_uposition() can't handle that.
19484
19485         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
19486          Modify the positioning code a bit so that we always
19487          put the top-left corner onscreen. (This is for
19488          UI reasons, gtk_menu_position() now takes care of
19489          gtk_widet_set_uposition() brokeness.)
19490
19491 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
19492
19493         * gtk/Makefile.am: fixed up things for -jx, x > 1.
19494
19495 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
19496
19497         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
19498           RC style that is passed in. The lack of the ref
19499           before was a bug. If people worked around this
19500           bug, this will introduce a slight memory leak
19501           in their code. The code should typically look like:
19502
19503             rc_style = gtk_rc_style_new ();
19504             [...]
19505             gtk_widget_modify_style (widget, rc_style);
19506             gtk_rc_style_unref (rc_style);
19507
19508         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
19509           the style if it was already set.
19510
19511         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
19512           style if it was set before.
19513
19514 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
19515
19516         * gtk/testgtk.c (main): Add a check to see if we
19517           are being run from the correct directory and
19518           to quit nicely if we are not.
19519
19520         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
19521           static.
19522
19523 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
19524
19525         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
19526
19527         * gtk/gtkwindow.c:
19528         queue resizes unconditionally (gtk_widget_queue_resize will figure
19529         what to do if the window is not realized).
19530         (gtk_window_move_resize): only recenter the window
19531         for GTK_WIN_POS_CENTER_ALWAYS.
19532         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
19533         the same way as GTK_WIN_POS_CENTER.
19534
19535 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
19536
19537         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
19538         with (!(info->last_flags & GDK_HINT_POS)) instead of
19539         (!info->last_flags & GDK_HINT_POS).
19540
19541         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
19542         new_height unconditionally, because we use these values even if
19543         !default_size_changed && !hints_changed.
19544         comented the (default_size_changed || hints_changed) case with
19545         respect to resize rejects from the window manager.
19546
19547         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
19548         in the zvt condition hack, since this includes the window hints, set
19549         the hints after the handling_resize case.
19550
19551         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
19552         window is initially shown with to the geometry.
19553
19554 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
19555
19556         * gtk/gtkwindow.c (gtk_window_move_resize):
19557         s/size_changed/default_size_changed/g so i know what's
19558         really going on (frying brain on smaller flame now).
19559
19560 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
19561
19562         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
19563         we have size_changed upon handling_resize. this is a gross
19564         workaround for the broken zvt widget and should be removed in
19565         1.3 again (search for FIXME).
19566         Owen provided an accurate comment for this:
19567
19568         /* We could be here for two reasons
19569          *  1) We coincidentally got a resize while handling
19570          *     another resize.
19571          *  2) Our computation of size_changed was completely
19572          *     screwed up, probably because one of our children
19573          *     is broken. It's probably a zvt widget.
19574          *
19575          * For 1), we could just go ahead and ask for the
19576          * new size right now, but doing that for 2)
19577          * might well be fighting the user (and can even
19578          * trigger a loop). Since we really don't want to
19579          * do that, we requeue a resize in hopes that
19580          * by the time it gets handled, the child has seen
19581          * the light and is willing to go along with the
19582          * new size. (this happens for the zvt widget, since
19583          * the size_allocate() above will have stored the
19584          * requisition corresponding to the new size in the
19585          * zvt widget)
19586          *
19587          * This doesn't buy us anything for 1), but it shouldn't
19588          * hurt us too badly, since it is what would have
19589          * happened if we had gotten the configure event before
19590          * the new size had been set.
19591          */
19592
19593 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
19594
19595         * gtk/gtkrc.c: deal properly with the fact that RC
19596           style lists may include rc styles more than once.
19597
19598         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
19599           unused static function.
19600
19601         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
19602           stack of directories of RC files currently being
19603           parsed and implicitely add them to pixmap path.
19604           
19605           This fixes a bug where the directory would get
19606           appended then overwritten by pixmap_path declarations.
19607
19608           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
19609
19610         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
19611           theme's exit function. (Patch from Peter Wainwright,
19612           bug #1454)
19613
19614         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
19615           Add a destroy() handler to take care of removing
19616           group for menu item. (Fixes bug #1197)
19617
19618         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
19619           in warning message.
19620
19621 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
19622
19623         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
19624         roundtrip to figure window's width and height, since we know that
19625         anyways from widget->allocation.
19626
19627 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
19628
19629         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
19630           the hints after we request the new size.
19631
19632 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
19633
19634         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
19635           GTK_WIDGET_REALIZED() assertion - we can compute the
19636           hints before we are realized.
19637
19638         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
19639           hint changing so that we have a value of hints_changed
19640           when we decide whether to constrain the window size.
19641
19642         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
19643
19644         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
19645         change back to G_MAXINT.
19646
19647 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
19648
19649         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
19650         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
19651         contain uncluttered values.
19652         (gtk_window_compute_hints): simply assert that window is realized
19653         and that geometry_info is valid, since we rely on this anyways.
19654         (gtk_window_constrain_size): major cleanups to the code.
19655         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
19656         for the base size, instead of the minimums. use 32767 as max width
19657         and height (like in gtkwindow.c) instead of G_MAXINT.
19658
19659 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
19660
19661         * cleaned up the GtkContainer.need_resize flag handling mess, we
19662         only need to force resize requests when we were prematurely
19663         realized, or our widget tree was modified when we were temporarily
19664         hidden. handling these cases directly upon showing the window (i.e.
19665         while the GdkWindow is still unmapped) avoids the need to wait for
19666         a configure event response and therefore makes the GUI more snappier
19667         and avoids blank windows during the roundtrip.
19668
19669         * gtk/gtkwidget.c:
19670         (gtk_widget_hide): 
19671         (gtk_widget_show): don't queue resizes on toplevels, they know how
19672         to deal with matters.
19673
19674         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
19675         flag directly for not visible resize containers and spare us unecessary
19676         signal emissions.
19677
19678         * gtk/gtkwindow.c:
19679         (gtk_window_realize): if we need to enforce premature size allocation,
19680         queue a container resize so we are correctly resized later on.
19681         (gtk_window_init):
19682         (gtk_window_size_request):
19683         don't freak around with the ->need_resize flag,
19684         gtk_container_queue_resize() will care about that.
19685         (gtk_window_show):
19686         handle initial resizing issues here, we can handle matters better in
19687         this place, especially since we know that our GdkWindow is still
19688         unmapped.
19689         (gtk_window_move_resize):
19690         don't care about ->need_resize at all.
19691         handle size changes properly that occoured while we waited for a
19692         configure event.
19693
19694 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
19695
19696         * gtk/gtkwidget.c (gtk_widget_set_uposition):
19697         * gtk/gtkwindow.[hc] (gtk_window_reposition):
19698         Move the hint setting code from gtk_widget_set_uposition
19699         to here; set the hints so that we respect any previously
19700         set geometry hints.
19701
19702         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
19703         change the window hints here or move the window here,
19704         let that happen in gtk_window_move_resize().
19705
19706 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
19707
19708         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
19709         to already queued resizes (and therefore redraws) on a widget, check
19710         its anchestry as well.
19711
19712         * gtk/gtkcontainer.c:
19713         (gtk_container_queue_resize): clear resize widgets for resize
19714         containers before aborting prematurely. this is especially important
19715         for toplevels which may need imemdiate processing or their resize
19716         handler to be queued.
19717         (gtk_container_dequeue_resize_handler): added new internal function for
19718         gtkwindow.c.
19719
19720         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
19721         configure event, take possible changes in window position into account
19722         as well.
19723         if we request a new window size, queue up a resize handler that will
19724         last until the configure event response arrives.
19725         combined the ->need_resize case (initial show) with the general size
19726         (hints) changed case and added even more comments.
19727         if !auto_shrink, only revert to the old allocation if the new size
19728         is smaller than the current allocation.
19729
19730 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
19731
19732         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
19733                            gtk_window_set_geometry_hints
19734                            gtk_window_set_default_size):
19735         When hints are set, queue a resize so that the hints will
19736         be eventually reset on the toplevel.
19737
19738         * gtk/gtkwindow.c (gtk_window_show): Use
19739         gtk_window_compute_default_size(). Clear the need_resize flag
19740         on the initail map so that we don't unnecessarily trigger the
19741         resize code.
19742
19743         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
19744         into separate functions. Compare the hints we are setting
19745         with what we set last time so that we can accurately
19746         tell when we need to reset the hints.
19747
19748         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
19749         function to figure out the size from requisition
19750         and default_size.
19751
19752         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
19753         from fvwm to constrain a size to the geometry hints.
19754
19755         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
19756         to compare two sets of geometry hints.
19757
19758         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
19759         from gtk_window_set_hints(), just compute the hints,
19760         don't set them.
19761
19762         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
19763         code from gtk_window_move_resize() to separate function,
19764         rationalize a bit.
19765
19766 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
19767
19768         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
19769         structure into a new private structure.
19770
19771         * gtkrc.c: Split GtkRcStyle into public/private.
19772         In the private part, add a list of pointers to the
19773         RcStyle lists this RcStyle participates in.
19774
19775         * gtkrc.c: When a RcStyle is free, remove all
19776         lists referencing it from the 
19777         realized_style_ht hash, and free those lists.
19778         
19779         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
19780         gtk_rc_init(), since that adds the default styles
19781         to the list of parsed RC files again.
19782
19783         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
19784         
19785 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
19786
19787         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
19788         checks that ensure that a widget's allocation is at least 1 in width
19789         and height. (GNOME note: this doesn't affect old panel code anymore,
19790         because GtkSocket will request width and height of at least 1 since
19791         Fri Jul 23).
19792
19793         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
19794         allocated yet (happens if the user realizes the window prematurely),
19795         size request and allocate it.
19796         (gtk_window_size_allocate): guard against guint underflows.
19797
19798 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
19799
19800         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
19801         in gtk_built_sources, so gtk.defs gets built prior to all other
19802         sources.
19803
19804 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
19805
19806         * gtk/Makefile.am:
19807         invoke indent on gtkmarshal.*. 
19808         rewrote source generation rules, use COPYING as oldest source tag for
19809         a piggyback rule to generate all sources from (don't touch it ;).
19810         major cleanups, strip spaces on build rules for GNU Make.
19811
19812         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
19813         source and target files from commandline arguments. don't invoke indent.
19814
19815 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
19816
19817         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
19818         notebook after switch to avoid drawing problems.
19819         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
19820         
19821         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
19822         show them instead. 
19823         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
19824
19825 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
19826
19827         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
19828         notebook after switch to avoid drawing problems.
19829         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
19830         
19831         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
19832         show them instead. 
19833         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
19834
19835 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
19836
19837         * gtk/gtkwindow.c:
19838         we use window->need_resize from configure_event now, to indicate that
19839         the gtkwindow should keep its allocation (e.g. because the user resized
19840         the window through window manager handles). resize_count is now reliably
19841         used to figure whether we got the allocation we requested from the
19842         window manager.
19843         configure events get queued as resizes now, the real stuff (size
19844         computation and allocation) now only goes on in gtk_window_move_resize().
19845         GtkWindow's requisition now contains its *real* requisition (like all
19846         other widgets), *not* taking usize into account.
19847         geometry_info->last_{width|height} is now updated from set_hints() only
19848         so it always contains the last hints we set for the window manager.
19849         made some event handlers return TRUE instead of FALSE.
19850         the overall code should be much more straight forward now, and the
19851         significant code portions are accompanied by comments now.
19852         (gtk_window_set_hints):
19853         removed requisition argument and made it
19854         fetch the requisition through gtk_widget_get_child_requisition.
19855         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
19856         does that now.
19857         (gtk_window_show):
19858         ensure that the widget is realized before calling 
19859         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
19860         ensure that we got properly size requested and allocated before
19861         realization.
19862         (gtk_window_configure_event):
19863         ignore plain window moves, or reallocate the widget tree through the
19864         resize queue otherwise.
19865         (gtk_window_move_resize):
19866         mostly rewrote this function to figure window manager hints more
19867         reliably, coalesce window moves and resizes to reduce configure events
19868         and do actuall size allocations.
19869
19870 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
19871
19872         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
19873         that have a resize pending, because a redraw is already queued for them.
19874
19875         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
19876         hack to clear resize_widgets.
19877
19878         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
19879         for resize containers prior to size allocation. (this is also a bit
19880         ugly, but avoids side effects for stopped emissions and is thus more
19881         reliable).
19882         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
19883
19884         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
19885         function from gtk_tooltips_expose, as we connect to ::expose_event
19886         *and* ::draw now.
19887
19888 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
19889
19890         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
19891         checks.
19892         (gtk_target_list_unref): Likewise.
19893
19894         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
19895
19896 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
19897
19898         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
19899         guard against division by zero. (Fixes bug #1339)
19900
19901 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
19902
19903         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
19904         Prevent the trivial leak of information of allowing
19905         word motion when the entry is not visible.
19906
19907 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
19908
19909         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
19910         modality to error dialog as well as confirmation dialogs.
19911         (Bug #1803, reported by Rosanna Wing Sze Yuen)
19912
19913 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
19914
19915         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
19916         tree->view_lines.
19917         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
19918
19919         * gtk/Makefile.am (install-data-local): Solaris apparently
19920         has various troubles with ln -f; use rm first instead.
19921         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
19922
19923 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
19924
19925         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
19926         use `cp' followed by `rm' (the `rm' was already there).
19927
19928 July 30, 1999 Elliot Lee <sopwith@redhat.com>
19929         
19930         * configure.in: Fix autoconf warnings about cross compilation by
19931         trying to provide sane defaults for AC_TRY_RUN.
19932         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
19933         put them into $(srcdir) when generated. Also add a dependency of
19934         gtksignal.h on gtkmarshal.h for -j builds. 
19935         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
19936
19937 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
19938
19939         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
19940         GDK_THREADS_{LEAVE,ENTER} pair.
19941         (From Paul Fisher <pnfisher@redhat.com>)
19942
19943 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
19944
19945         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
19946         width and height are always >0 (owen).
19947
19948 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
19949
19950         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
19951         change that assured that a widget's allocated with and height are
19952         always >1, since this breaks *buggy* panel code. unfortunately this
19953         back-breaks the gimp's color selector.
19954
19955         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
19956         allocation is always >0 in width and height, before sending the
19957         configure event; this is a *gross* hack to get the gimp back to work.
19958         
19959         * marked both cases with TODO-1.3
19960
19961 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
19962
19963         * gtk/gtktext.c: Don't display wrap indicators when
19964         text is not editable and word wrap is on.
19965
19966 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
19967
19968         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
19969         option menus here as they are not derived from menu shell, assure that
19970         the option menu has a menu we can add items to.
19971
19972 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
19973
19974         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
19975         width/height to (gint) before calculations and check against < 0 to
19976         avoid guint wraparounds.
19977
19978 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
19979
19980         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
19981         width and height is never zero. sanity check both dimensions against
19982         32767 and issue a warning if the allocation is greater than that.
19983
19984 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
19985
19986         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
19987         to g_main_pending() as well.
19988
19989 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
19990
19991         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
19992         call to g_main_iteration() - since that will regrab
19993         GTK+ lock to process events.
19994
19995 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
19996
19997         * gtk/gtkwindow.c
19998         - Regularize with the rest of GTK+ by making widget->requisition
19999           not reflect the set_usize()
20000         - Always recompute geometry hints, then check if they
20001           changed before sending them to the X server. The
20002           previous checks for changes would fail in a number
20003           of circumstances. 
20004
20005 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
20006
20007         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
20008
20009 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
20010
20011         * gtk/gtkdnd.c:
20012         - Code cleanups
20013         - Instantaneously update on modifier key presses
20014         - Allow cancellation of the drag with Escape.
20015
20016 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
20017
20018         * gtk/testgtk.c (create_handle_box): Set the policy
20019         to auto_shrink - otherwise the appearance is rather
20020         strange when flipping between horizontal and vertical.
20021
20022 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
20023
20024         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
20025         (gtk_window_set_default_size): don't change a value if it's < 0.
20026         queue a resize.
20027
20028 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
20029
20030         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
20031
20032 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
20033
20034         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
20035         add an extra "/" when concating "/" + filename.
20036         (From Matt Grossman <mattg@oz.net>)
20037
20038 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
20039
20040         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
20041         for fg_gc if we set it for drawing pixmap.
20042
20043 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
20044
20045         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
20046         
20047         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
20048         already set, call old engine's destroy function and
20049         unref the old engine.
20050
20051 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
20052
20053         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
20054
20055 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
20056
20057         * gtk/gtkaccelgroup.h: mark certain functions as internal.
20058
20059 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
20060
20061         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
20062         expand behaviour changed.
20063
20064         * gtk/gtklabel.c (gtk_label_set_pattern):
20065         (gtk_label_set_justify):
20066         (gtk_label_set_line_wrap):
20067         don't bother invoking queue_clear, the reallocation does
20068         that for us, always free_words so the upcoming resize will
20069         relayout the label's contents.
20070
20071 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
20072
20073         * applied argument implementation patches from Elena Devdariani
20074         <elena@cogent.ca>.
20075
20076         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
20077         ::space_style, ::relief
20078         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
20079         * gtk/gtkpreview.c: ::expand
20080         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
20081         * gtk/gtknotebook.c: ::homogeneous
20082         * gtk/gtklabel.c: ::wrap
20083         * gtk/gtklist.c: ::selection_mode
20084         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
20085         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
20086         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
20087         * gtk/gtkclist.c: ::sort_type
20088         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
20089         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
20090
20091 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
20092
20093         * gtk/gtkstyle.c: Removed ill-thought-out part of last
20094         comment.
20095
20096 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
20097
20098         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
20099         counting right when we have to attach a new style
20100         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
20101
20102         * gtk/gtkstyle.c: Documented the refcounting
20103         peculularities of gtk_style_attach.
20104
20105 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
20106
20107         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
20108         window types.
20109
20110         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
20111         of GTK_TOPLEVEL for creating the window.
20112
20113 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
20114
20115         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
20116         the last argument (reported by Per Winkvist).
20117         
20118 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
20119
20120         Fixes for invisible XOR lines (Frank Loemker
20121         <floemker@TechFak.Uni-Bielefeld.DE>)
20122         
20123         * gtk/gtkclist.c (gtk_clist_realize): Always use
20124         a non-zero pixel for GDK_XOR.
20125
20126         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
20127         Use GDK_INVERT instead of GDK_XOR.
20128
20129 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
20130
20131         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
20132         signals if h/voffsets differ from adjustment values.
20133         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
20134
20135 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
20136
20137         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
20138         ::selection-done emissions up to the topmost menu shell.
20139
20140 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
20141
20142         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
20143         the user data on the window before destroying it.
20144
20145         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
20146         unrealize handler to take care of destroying 
20147         notebook->panel properly. 
20148         (Bug #1198 - Morten Welinder <terra@diku.dk>)
20149
20150         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
20151         of g_new and g_realloc to stop memory leak. (Actually,
20152         we could just use g_realloc(), but I'm not 100% sure
20153         that is portable).
20154         (Bug #1196 - Morten Welinder <terra@diku.dk>)
20155
20156 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
20157
20158         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
20159
20160         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
20161         for fontsets.
20162
20163         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
20164         with bin/button confusion.
20165
20166 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
20167
20168         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
20169         and show how preselection of radio items is done.
20170
20171 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
20172
20173         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
20174         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
20175         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
20176         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
20177         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
20178         * gtk/gtktable.c (gtk_table_attach): 
20179         * gtk/gtklist.c (gtk_list_insert_items): 
20180         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
20181         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
20182         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
20183         * gtk/gtkbin.c (gtk_bin_add): 
20184         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
20185         * gtk/gtkfixed.c (gtk_fixed_put): 
20186         * gtk/gtklayout.c (gtk_layout_put):
20187         general fixups to container_add logic. always realize child if
20188         child->parent is realized, only map the child and queue a resize
20189         if child and child->parent are both visible.
20190
20191 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
20192
20193         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
20194         instead of gtk_container_foreach to walk and unrealize children, so
20195         composite children get also unrealized.
20196         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
20197         (gtk_widget_map): assert that the widget is visible (basic constrain).
20198         (gtk_widget_real_map): assert that the widget is realized (basic
20199         constrain).
20200
20201 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
20202
20203         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
20204
20205 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
20206
20207         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
20208         file for iso-8859-2 locales.
20209
20210         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
20211
20212 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
20213
20214         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
20215          (Pointed out by andy@rz.uni-karlsruhe.de and others).
20216          Remove some suspicious and useless lines. 
20217
20218 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
20219
20220         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
20221         width,height = 0, 0 to mean - here to edge of window,
20222         instead of -1, -1, since the former is all we support.
20223
20224 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
20225
20226         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
20227         when removing from quit_functions list.
20228
20229 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
20230
20231         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
20232
20233 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
20234
20235         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
20236          When redrawing characters on non-visible entry, use appropriate
20237          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
20238
20239 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
20240
20241         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
20242         from drag coordinates.
20243         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
20244         use drag_dest_cell.
20245
20246         * gtk/gtktree (drag_dest_cell)
20247         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
20248         (Bug #1129)
20249
20250 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
20251
20252         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
20253         translate_* fields.
20254         (gtk_item_factory_finalize): invoke translate_notify independant from
20255         translate_data.
20256         (gtk_item_factory_set_translate_func): likewise.
20257         (gtk_item_factory_destroy): only remove ifactory pointer from those
20258         widgets that belong to us (stupid me).
20259
20260 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
20261
20262         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
20263         rc_style list when lookup succeeeds.
20264
20265 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
20266
20267         * gtk/gtkctree.c (resync_selection): 
20268         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
20269         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
20270         bug.
20271
20272 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
20273
20274         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
20275         Add some missing GDK_THREADS_ENTER()/LEAVE around
20276         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
20277
20278 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
20279
20280         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
20281         rather than emit_by_name.
20282
20283         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
20284         on the widget across multiple signal emissions.
20285         (gtk_editable_delete_text): same here.
20286         (gtk_editable_class_init): set widget_class->activate_signal after
20287         editable_signals[ACTIVATE] has been created.
20288
20289 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
20290
20291         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
20292         position here prematurely -- we might not have the
20293         right ->min_position and ->max_position yet.
20294
20295 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
20296
20297         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
20298         Add error traps so if the other end of the connection
20299         dies, we survive.
20300
20301         * gtk/gtkselection.c (gtk_selection_notify): Clean
20302         up properly when selection property retrieval fails.
20303         
20304         * gtk/gtkselection.c (gtk_selection_request): Correctly
20305         reject SelectionRequest notifies where the handler
20306         returns no data.
20307
20308 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
20309
20310         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
20311         when we've previously highlighted.
20312
20313         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
20314         emit two "drag_leave" signals for Motif drops.
20315
20316         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
20317         back the correct status messages when dropping from
20318         Motif onto a proxy window that is rejecting the
20319         drop.
20320
20321 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
20322
20323         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
20324         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
20325         to compare two argument values. added gtk_arg_to_valueloc() to set a
20326         variable from an arg through its location (pointer).
20327
20328         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
20329         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
20330         as gfloat*, uchars are collected as guchar*, ints are collected as
20331         gint*, etc...
20332
20333 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
20334
20335         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
20336         Include <string.h> instead of <strings.h>.
20337
20338         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
20339         (actually, a lot more duplicate includes occur if
20340          you trace through the sequence of #include's)
20341         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
20342         
20343 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
20344
20345         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
20346         gtk-a-higuti-990322-[0-3]
20347
20348         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
20349         that was causing -DX_LOCALE not to work.
20350
20351         * gtk/gtkrc.c (gtk_rc_init):
20352         X_LOCALE will never have LC_MESSAGES defined
20353
20354 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
20355
20356         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
20357         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
20358
20359         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
20360         left/right as well (gtk-michael-980726-0.patch.gz).
20361
20362         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
20363         for pointer values, use gchar instead of char. fixed uline allocation
20364         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
20365         chunks instead of G_ALLOC_ONLY.
20366         (gtk_label_size_request): always alter requisition as passed and leave
20367         widget->requisition alone.
20368         (gtk_label_set_text): allow NULL strings.
20369         (gtk_label_new): likewise.
20370
20371 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
20372
20373         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
20374
20375 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
20376
20377         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
20378         *and* mapped (i.e. drawable).
20379         (gtk_bin_expose): only send exposes to drawable children.
20380
20381         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
20382         (gtk_box_expose): only send exposes to drawable children.
20383
20384         * gtk/gtkhscale.c (gtk_hscale_draw): 
20385         * gtk/gtkvscale.c (gtk_vscale_draw):
20386         hm, this is an ugly one. we first compute the size of our trough area
20387         here (window relative) and then check intersection with the draw_area
20388         which is parent relative because we're a NO_WINDOW widget, so we need
20389         to offset the trough area by allocation.x and allocation.y before the
20390         check. (this must not be done for the background area though, since
20391         that's already computed parent relative).
20392
20393 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
20394
20395         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
20396         unrealize title buttons.
20397
20398 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
20399
20400         * gtk/gtkclist.c (gtk_clist_column_title_passive)
20401         (gtk_clist_column_title_active): 
20402         only connect/disconnect to GtkWidgetClass::event to block mouse events.
20403
20404         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
20405         zero initialize event, removed superfluous gdk_window_get_pointer call
20406
20407         * gtk/gtklist.c (gtk_list_vertical_timeout)
20408         (gtk_list_horizontal_timeout): removed superfluous
20409         gdk_window_get_pointer call
20410
20411 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
20412
20413         * plugging problems reported by "Bruce Mitchener, Jr."
20414         <bruce@puremagic.com> due to a purify session.
20415
20416         * gtk/gtkstyle.c:
20417         (gtk_style_ref): 
20418         (gtk_style_unref): assert ref_count to be > 0.
20419
20420         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
20421         the requisition.
20422         (gtk_clist_set_shift): likewise.
20423
20424         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
20425         adjustments.
20426
20427         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
20428         event before sending it and set send_event to TRUE (which needs to
20429         be done for *all* synthesized events).
20430         (gtk_list_vertical_timeout): likewise.
20431
20432         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
20433         leaks.
20434
20435         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
20436         to TRUE when synthesizing events.
20437
20438 [ *** end of merges from 1.2 *** ]      
20439         
20440 1999-11-21  Tor Lillqvist  <tml@iki.fi>
20441
20442         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
20443         (or copied from gdkconfig.h.win32 on Win32, sigh).
20444
20445         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
20446
20447         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
20448
20449         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
20450
20451         * gdk/gdkconfig.h.win32: New file.
20452
20453         * gdk/win32/makefile.cygwin: Build just a static archive here.
20454
20455         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
20456         for the DLL from the static archive built above.
20457
20458         * gdk/gdk.def: Moved here from the win32 subdirectory.
20459
20460         * gdk/win32/*: Adapt for the changed private struct organisation.
20461
20462         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
20463
20464 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
20465
20466         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
20467         for wheel mice (buttons 4 and 5).
20468
20469 1999-11-18  Tor Lillqvist  <tml@iki.fi>
20470
20471         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
20472         drawables use just the pixel field in the foreground and
20473         background GdkColor of the GdkGC.
20474
20475         gdk_gc_set_{fore,back}ground() are called in the GIMP with
20476         GdkColors containing uninitialized (red,green,blue) fields, and
20477         just the pixel field filled in, and furthermore in the
20478         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
20479         It thus turns out that we really don't need to have the full
20480         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
20481         it later to have just the pixel values.
20482
20483 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
20484
20485         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
20486
20487 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
20488
20489         * docs/gtkfaq.sgml: threads example from Erik Mouw.
20490         New question on GtkLabel background colors.
20491
20492         * docs/gtk_tut.sgml:
20493           - Correct the example code callback
20494             function definitions.
20495           - Update the gtkdial example code, from Frans van Schaik.
20496           - Update setselection.c to current API.
20497
20498         * examples/Makefile examples/*/*.c: Update to code
20499         listed in tutorial.
20500
20501 1999-11-10  Tor Lillqvist  <tml@iki.fi>
20502
20503         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
20504         subrange table (from the "Developing International Software for
20505         WIndows 95 and Windows NT" book) was missing the Hangul syllable
20506         block... Get the loaded font's charset correctly.
20507
20508         (Note that this, and the other *-win32.c files, still really are
20509         the old ones, the win32 subdirectory is not ready for compilation
20510         yet after the reorg.)
20511
20512 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
20513
20514         * gtk/gtkclist.c: Fix off-by-one bug in parameter
20515         check.
20516
20517 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
20518
20519         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
20520         on results of XQueryDeviceState().
20521
20522 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
20523
20524         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
20525         we need to accesss only ->children. We need an accessor
20526         for the children.
20527
20528         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
20529         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
20530         to get rid of gdkx.h include.
20531         
20532         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
20533         and random references to 'None'.
20534
20535         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
20536         Get rid of unused #include <gdk/gdkx.h>
20537
20538         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
20539         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
20540         gdkconfig.h.
20541
20542 1999-11-08  Tor Lillqvist  <tml@iki.fi>
20543
20544         * gdk/win32/gdkdraw.c
20545         * gdk/win32/gdkfont.c
20546         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
20547         following yesterday's changes. (Unrelated to Owen's reorg.)
20548
20549 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
20550
20551         * gdk/x11/gdkinput-gxi.c: Add missing include,
20552           fix GdkWindowPrivate => GdkDrawablePrivate.
20553
20554         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
20555
20556         * gdk/x11/Makefile.am (xinput_sources): Add missing
20557         backslash to fix building with --with-xinput=none
20558
20559 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
20560
20561         Move all X specific code into the x11/ directory.
20562         Aside from shuffling things around, did the following:
20563
20564        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
20565          gdk_arg_context_* - a simple argument parsing system
20566          in the style of popt.
20567
20568        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
20569          gdk/x11/gdkprivate-x11.h:
20570          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
20571          add ->klass and ->klass_data fields. The klass_data
20572          field points to an auxilliary structure that is
20573          windowing system dependent.
20574
20575        * gdk/gdkfont.c: Make most of the measurement functions
20576          simply wrappers around gdk_text_extents().
20577
20578        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
20579          _gdk_font_strlen() function that hides the weird
20580          behavior in gtk+-1.[02] where a string is interpreted
20581          differently for 8-bit and 16-bit fonts.
20582
20583        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
20584          to store common code for synthesizing double/triple
20585          press events.
20586         
20587        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
20588          Make all the function that modify an existing GC
20589          simply wrappers around gdk_gc_set_values().
20590          
20591        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
20592          for throwing out later.
20593
20594        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
20595          GdkImagePrivate and GdkColormapPrivate to have a
20596          windowing system dependent part (GdkFontPrivateX etc.)
20597          that "derives" from the system-independent part.
20598
20599        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
20600          Got rid of the included-source-files for XInput in
20601          favor of automake conditionals. (Which didn't exist
20602          when XInput support was originally added.)
20603
20604        * gdk/gdkrgb.c: Remove the visual id from the debugging
20605          statements since that is X11 specific; print out
20606          type/depth info instead.
20607          
20608
20609 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
20610
20611         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
20612         loading duplicates of hashed fonts.
20613
20614         * gdk/gdk.c (gdk_keysym_convert_case): rename
20615         gdk_XConvertCase to gdk_keysym_convert_case, allow
20616         results to be NULL in the GTK+ style.
20617
20618         * gdk/gdkcompat.h: Started compatibility header
20619         for renames.
20620
20621 1999-11-07  Tor Lillqvist  <tml@iki.fi>
20622
20623         * gdk/win32/gdkprivate.h: New font private structures, related to
20624         fontsets.
20625
20626         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
20627         gdk_font_list_free(). On X11, will just be wrappers to
20628         XListFonts() and XFreeFontNames(). On Win32, the code previously
20629         in gtkfontsel.c is now here.
20630
20631         New function gdk_font_xlfd_create(). On X11 will get the FONT
20632         property of the font (for GDK_FONT_FONTs), or call
20633         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
20634         builds a XLFD style name from the font information in the LOGFONT
20635         struct(s).
20636
20637         New function gdk_font_xlfd_free(), which correspondingly frees the
20638         string returned by gdk_font_xlfd_create().
20639
20640         Implement fontsets on Win32. Add a function that iterates over a
20641         wide char string and calls a callback function for each substring
20642         of wide chars from the same Unicode subrange (and thus probably
20643         available in the same real font).
20644
20645         Improve the XLFD emulation a bit.
20646
20647         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
20648
20649         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
20650         Beta3, WM_IME_CHAR messages don't seem to contain the composed
20651         multi-byte char as with the Active IMM on Win9x. Oh well, handle
20652         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
20653         ImmGetCompositionStringW() to get the composed Unicode chars.
20654
20655         * gdk/win32/gdkgc.c
20656         * gdk/win32/gdkdraw.c: Changes needed because of the font private
20657         struct changes.
20658
20659         * gdk/win32/gdk.def: Add the new functions.
20660
20661 1999-11-04  Tor Lillqvist  <tml@iki.fi>
20662
20663         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
20664         get the Platform SDK to get <dimm.h>.
20665
20666         * gdk/win32/gdkevents.c: More event handling fixes and
20667         simplification. Never generate motion events with is_hint true. We
20668         used to do that on bogus grounds earlier. Windows sends
20669         WM_MOUSEMOVE messages on button events even if the mouse hasn't
20670         moved, ignore these.
20671
20672         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
20673
20674         * gdk/win32/gdkglobals.c
20675         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
20676         the TrackMouseEvent function, and use it.
20677
20678         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
20679         char before calling WideCharToMultiByte in order to get a string
20680         for the window title.
20681
20682         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
20683
20684         * gdk/win32/gdk.def: Remove obsolete functions.
20685
20686         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
20687         /nodefaultlib and /defaultlib switches.
20688
20689         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
20690
20691 1999-10-31  Tor Lillqvist  <tml@iki.fi>
20692
20693         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
20694         EuroSign).
20695
20696         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
20697         same type as GdkWChar, especially on Win32.
20698
20699         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
20700
20701         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
20702         before passing to Windows GDI for drawing etc. Convert to the
20703         system default codepage before passing to Windows as window
20704         titles.
20705
20706         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
20707         support changing input locale on the fly.
20708
20709         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
20710         on-the-fly changes. Convert incoming characters from the current
20711         codepage to Unicode (and then to a UTF-8 multi-byte string) based
20712         on the current input language. Use keysym<->Unicode mapping tables
20713         and functions borrowed from xterm sources.
20714
20715         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
20716         editions of Win9x, use the ActiveX-based Active IMM (Input Method
20717         Manager) if available. IMEs and the Active IMM are available under
20718         the disguise of Chinese, Korean and Japanese support for IE and
20719         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
20720         support is present in all editions (as long as you install it).
20721
20722         Call DispatchMessage from gdk_events_queue() (and thus
20723         gdk_WindowProc()), instead of duplicating the code in
20724         gdk_WindowProc().
20725
20726         Reworked the grab handling and propagation code, factored out
20727         duplicated code snippets into separate functions. Other cleanups,
20728         too.
20729
20730         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
20731         the <dimm.h> header describing the Active IMM.
20732
20733         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
20734         just do the same as for "single" fonts.
20735
20736         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
20737         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
20738         the new keysyms from gdkkeysyms.h.
20739
20740         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
20741         fontset, so that gtkentry uses wide characters.
20742
20743         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
20744         GTk+'s system directory "gtk+", not "gtk".
20745
20746 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
20747
20748         * docs/gtkfaq.sgml: FAQ update
20749
20750 1999-10-21  Tor Lillqvist  <tml@iki.fi>
20751
20752         * gdk/win32/gdkprivate.h: Add more font private data.
20753
20754         * gdk/win32/gdkfont.c
20755         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
20756         fonts and strings. Now works much better. You still have to
20757         have a correct font selected, though. No fontset emulation yet.
20758
20759 1999-10-19  Tor Lillqvist  <tml@iki.fi>
20760
20761         * gtk/maketypes.awk: Use G_OS_WIN32.
20762
20763         * gtk/gtk.def: Add some missing entry points. Also some non-public
20764         ones, but PyGTK porter claims to need them.
20765
20766         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
20767         built-in type generation.
20768
20769 1999-10-14  Tor Lillqvist  <tml@iki.fi>
20770
20771         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
20772         GDK_FONT_FONT fonts (which is all we have for now, we don't
20773         emulate fontsets). The X11 version uses plain XDrawString in that
20774         case, too. The string passed to gdk_draw_text_wc seems to be in
20775         fact (at least, when used by gtkentry and gtktext) either in a
20776         single-byte charset, or a DBCS. Not Unicode.
20777
20778         This fixes the problem in gtkfontsel, where even if you had
20779         selected a font with a non-Latin1 charset (windows-greek, for
20780         instance), the preview still used Latin-1 glyphs.
20781
20782         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
20783         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
20784         (gdk_font_load): Recognize the demibold etc weights, even if we
20785         don't have the corresponding constants in the headers.
20786         (gdk_font_hash_insert): Use same hash mechanism as in the X11
20787         version. Should save font resources a bit, when we don't have
20788         multiple HFONTs for the same font.
20789
20790         * gdk/win32/gdkprivate.h: Add the names field as in the X11
20791         version.
20792
20793 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
20794
20795         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
20796         X values
20797
20798 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
20799
20800         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
20801         layout support (as mentioned on
20802         http://www.jcinteractive.com/gnome-ui/software/widgets/)
20803
20804 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
20805
20806         * gtk/fnmatch.c
20807         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
20808
20809 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
20810
20811         * configure.in (ALL_LINGUAS): Added Galician (gl)
20812
20813 1999-10-05  Tor Lillqvist  <tml@iki.fi>
20814
20815         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
20816
20817         * gdk/win32/gdkcompat.c: New file, actually provide an
20818         implementation for the deprecated functions. (Just temporarily.)
20819
20820         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
20821
20822         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
20823
20824         * gdk/win32/gdk.def gtk/gtk.def: Updates.
20825
20826 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
20827
20828         * configure.in: Added "uk" to ALL_LINGUAS.
20829         
20830 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
20831
20832         * configure.in: correct checking for BeOS check
20833
20834         * gdk/gdktypes.h
20835         * gtk/fnmatch.c
20836         * gtk/gtkfilesel.c
20837         * gtk/gtkitemfactory.c
20838         * gtk/gtkmain.[ch]
20839         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
20840
20841 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
20842
20843         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
20844         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
20845         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
20846         by Bulgarian). 
20847
20848 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
20849
20850         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
20851         Fix a reference to window_private->destroyed.   
20852
20853         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
20854         (ugly) setting of an internal GdkWindow member to use
20855         a _slightly_ cleaner macro.
20856
20857         * gdk/gdkprivate.h: Split GdkWindowPrivate into
20858         GdkDrawablePrivate and GdkWindowPrivate.
20859         Add extra macros for accessing GDK_DRAWABLE_ components.
20860
20861         * *.[ch]: Massive adjustments for the above, use the
20862         new macros in a lot of places.
20863
20864 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
20865
20866         * gdk/gdktypes.h: Make GdkDrawable the base type,
20867         not GdkWindow.
20868
20869 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
20870
20871         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
20872
20873 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
20874
20875         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
20876
20877 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
20878
20879         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
20880         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
20881
20882         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
20883
20884         * docs/gtk-config.1: Now autogenerated.
20885         * docs/Changes-1.4.txt: started
20886         
20887 1999-10-03  Tor Lillqvist  <tml@iki.fi>
20888
20889         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
20890         to #ifdef also here.
20891
20892         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
20893         Owen did to the X11 backend.
20894
20895         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
20896         ScrollWindowEx when blitting inside a window, it can't be correct
20897         in the general case.
20898
20899         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
20900         WM_GETMINMAXINFO is easier.
20901
20902         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
20903         depth equal to the bitspixel value, not the visual's depth.
20904
20905         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
20906         to 24 even if the bitspixel value is 32.
20907
20908         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
20909         need to check for depth==32 when bpp==32, depth will always be 24.
20910
20911 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
20912
20913         * docs/Changes-1.4.txt: Started
20914         
20915         * gtk/Makefile.am (gdk_headers): Include all the new headers.
20916
20917         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
20918         
20919         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
20920         into C file.
20921         
20922         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
20923         header to gdkinputprivate.h.
20924
20925         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
20926         unused since before 1.2.
20927
20928 1999-09-30  Tor Lillqvist  <tml@iki.fi>
20929
20930         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
20931         expand possible hex escapes in the font family (put there by
20932         logfont_to_xlfd if the font name isn't a legal XLFD font family,
20933         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
20934         On Win32, add hex escapes here, too.
20935
20936 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
20937
20938         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
20939         to #ifdef GDK_WINDOWING_X11.
20940
20941 [ Merges from gtk-1-2 ]
20942
20943 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
20944
20945         * configure.in: fixed "GNU Make" check to pass with new make version
20946         3.77.95.
20947
20948 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
20949
20950         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
20951         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
20952         AM_PATH_GTK() macros don't get confused by the -pre1.
20953
20954 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
20955
20956         * configure.in (REBUILD): Change check for perl5
20957           to check explicitely for v >= 5.002. (5.001
20958           does not work with our scripts.)
20959
20960 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
20961
20962         * configure.in: evaluate $PERL for the perl version check. added
20963         --disable-rebuilds to give the user an option to completely disable
20964         any source autogeneration rules.
20965
20966 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
20967
20968         * configure.in: evaluate $ac_make when checking for GNU Make.
20969
20970 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
20971
20972         * docs/Makefile.am: added generation.txt.
20973
20974         * Makefile.am: require automake 1.4, build README from README.in and
20975         INSTALL from INSTALL.in in dist-hook.
20976         
20977         * README.in:
20978         * INSTALL.in: new files to autogenerate README and INSTALL from.
20979
20980         * configure.in: figure whether we have GNU Make
20981
20982         * docs/generation.txt: minor additions/corrections.
20983
20984 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
20985
20986         * docs/gtkfaq.sgml: FAQ Update
20987
20988 July 30, 1999 Elliot Lee <sopwith@redhat.com>
20989         
20990         * configure.in: Fix autoconf warnings about cross compilation by
20991         trying to provide sane defaults for AC_TRY_RUN.
20992
20993 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
20994
20995         * ltconfig
20996         * ltmain.sh: upgrade to libtool 1.3.3
20997
20998 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
20999
21000         * INSTALL: Indicate that the --with-glib= configure
21001         time flag is unsupported.
21002
21003 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
21004
21005         * docs/generation.txt: Added a file that gives
21006         documenation about the autogeneration process for
21007         various autogenerated files.
21008         
21009 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
21010
21011         * configure.in (LIBS): Look for libgmodule in the
21012         right location.
21013
21014 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
21015
21016         * docs/gtk_tut.sgml: Removed references to
21017         code examples in my directory on gtk.org as
21018         they should all be in the tutorial now.
21019
21020         * docs/gtk_tut.sgml: Added sources for dial-test
21021         and scribble-xinput programs that were previously
21022         missing.
21023
21024 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
21025
21026         * TODO: Added entry about menu keyboard navigation, removed
21027         some finished items.
21028
21029 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
21030
21031         * acinclude.m4: Standardize on func_dgettext
21032         not func_gettext, so that the checks for dgettext
21033         actually are paid attention to.
21034
21035 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
21036
21037         * configure.in (LIBS): Add $INTLLIBS into $LIBS
21038         directly, rather than repeating the checks for
21039         gettext.
21040
21041         * INSTALL: Added information about gettext and
21042         NLS support.
21043
21044         * acinclude.m4 (LIBM): Check for dgettext, not
21045         just gettext. This should hopefully fix things wrt
21046         systems with old versions of GNU gettext installed.
21047
21048 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
21049
21050         * configure.in (LIBS): Look for libgmodule in the
21051         right location.
21052
21053 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
21054
21055         * autogen.sh: add --enable-maintainer-mode
21056
21057         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
21058
21059 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
21060
21061         * docs/gtk-config.1.in:
21062           docs/Makefile.am:
21063           configure.in: gtk-config is now generated.
21064
21065         * docs/gtk-config.1: Removed, now generated.
21066
21067 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
21068
21069         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
21070         handle CreateNotify itself, still put out a debuging message for
21071         --gdk-debug=events. made the ReparentNotify debugging message more
21072         verbose.
21073         wrap xcoords translation for ConfigureEvents into an error trap,
21074         a destroy event may already be pending, and in that case, the
21075         actuall coordinate values are not at all critical.
21076
21077 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
21078
21079         * gdk/gdkcc.c: Stop leaking the color_hash all over
21080         the place. Simplify and improve the logic.
21081
21082 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
21083
21084         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
21085         for prototypes and function implementations consistent (reported
21086         by Tomas Ogren).
21087
21088 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
21089
21090         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
21091         send_event set in debugging output.
21092         (gdk_compress_exposures): default initialize the event so we don't
21093         operate on bogus values (namely send_event).
21094
21095 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
21096
21097         * gdk/gdkwindow.c: When we receive an unexpected
21098         destroy notify on one of our windows, don't just
21099         warn about it, also mark our windows as destroyed.
21100
21101 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
21102
21103         * gdk/gdkfont.c (gdk_font_hash_insert): Add
21104           name => font and name => fontset hashes. The 
21105           name => fontset hash is a _big_ win since we
21106           weren't previously caching fontsets at all and loading
21107           fontsets is expensive. The name => font hash
21108           is less of a win, but it does save us from doing
21109           repeated XQueryFont calls on the same font.
21110
21111         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
21112           list so we can remove font/fontset from hash.
21113
21114 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
21115
21116         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
21117           and slightly confusing test. [ XInternAtom (,,TRUE)
21118           will never return None ].
21119
21120 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
21121
21122         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
21123           gdk/gdkwindow.c (gdk_window_set_hints):
21124
21125         Don't omit setting the properties if flags == 0 -
21126         there may be an existing set of properties there
21127         already. (Very old bug. Would it be better to
21128         delete the property instead?)
21129
21130         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
21131           spelling error in comment.
21132
21133 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
21134
21135         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
21136           to avoid stomping over gdk_error_warnings.
21137
21138         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
21139           as (bits_per_pixel + 7) / 8. This gives the same
21140           result as before for multiples of 8, but actually
21141           a "reasonable" value for 1bit or 4bit displays.
21142
21143 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
21144
21145         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
21146         GNU Make.
21147
21148 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
21149
21150         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
21151         discarding configure events.
21152
21153 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
21154
21155         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
21156         refcount is greater than zero.
21157
21158         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
21159
21160         * gdk/gdkfont.c (gdk_font_unref): Likewise.
21161
21162         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
21163
21164         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
21165
21166 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
21167
21168         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
21169         that format 32 => sizeof(item) == 4. It really is
21170         sizeof(long).
21171
21172 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
21173
21174         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
21175         core dump at all on X IO errors, only core dump
21176         if --enable-debug for X errors.
21177
21178 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
21179
21180         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
21181         unknown window:" message. disabled ConfigureNotify discarding code,
21182         because it led to events being processed out of order.
21183
21184 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
21185
21186         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
21187
21188         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
21189         we export this function, supress error warnings and don't reset the
21190         error code in the first half of this function.
21191
21192         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
21193         code (instead of just -1) so gdk_error_trap_pop() reveals something
21194         actually informative about the error that happened.
21195
21196         * gdk/*.c:
21197         don't rely on gdk_error_code being -1 if an error occoured, but just
21198         gdk_error_code != 0.
21199
21200 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
21201
21202         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
21203         pointer *before* invoking the filter function, so we at least don't
21204         crash if a filter is removed that is currently executed. window filters
21205         *really* need to be made truely reentrant at some point.
21206
21207 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
21208
21209         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
21210         PropertyNotify debug messages.
21211
21212 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
21213         
21214         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
21215         
21216         * gdk/gdkim.c: Fix cut-and-paste errors for 
21217         x/y and PreeditAttributes/StatusAttributes.
21218
21219 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
21220
21221         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
21222         G_MAXINT to 2^16 to alleviate overflow problems in
21223         various window managers.
21224
21225 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
21226
21227         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
21228         for fontsets.
21229
21230 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
21231
21232         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
21233         Initialize size_hints.x and size_hints.y because kwm
21234         brokenly pays attention to them.
21235         (Bug #1181 -  Lars Heete <hel@admin.de>)
21236
21237 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
21238
21239         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
21240         return value of gdk_list_visuals(). 
21241         (Bug #1193 - Morten Welinder <terra@diku.dk>)
21242
21243 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
21244
21245         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
21246         XSetIMValues to (void *) when comparing to NULL, to workaround
21247         the problem of some compilers barfing since older X headers don't
21248         have the prototype for it.
21249
21250 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
21251
21252         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
21253         for pseudocolor where colormap->colors was double
21254         allocated.
21255
21256         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
21257         color value in the hash table with the pixel filled
21258         in so when we do later hash table lookups, the color
21259         value is correct.
21260         
21261 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
21262
21263         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
21264         making the call
21265
21266 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
21267
21268         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
21269         pointed out by Morten Welinder <terra@diku.dk>.
21270
21271 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
21272
21273         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
21274           default filter from the list
21275
21276 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
21277
21278         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
21279           default filter from the list
21280
21281 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
21282
21283         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
21284
21285         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
21286         g_strdup_printf instead of calcing the length separately
21287
21288 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
21289
21290         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
21291         that we don't do in many other places. (Fixing duplicate 
21292         #include of config.h)
21293
21294         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
21295         Otherwise, #ifndef XINPUT_NONE check in the latter
21296         doesn't work. (Bug #546)
21297
21298 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
21299
21300         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
21301         "None" case insensitive.
21302
21303 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
21304
21305         * gdk/gdkselection.c: 
21306         Add error traps so if the other end of the connection
21307         dies, we survive.
21308
21309 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
21310
21311         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
21312         dest_xid field into two fields - one for the window
21313         to send in messages, one to indicate the last looked
21314         up window for caching purposes. This is needed, so
21315         that Leave messages get the correct window.
21316
21317 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
21318
21319         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
21320         Fix warning created by people mucking around
21321         with the gsource API.
21322
21323         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
21324         Change mapping between GIOCondition and GdkInputCondition
21325         to match the way the Linux kernel does it. This should
21326         fix problems where closed pipes were no longer signalling
21327         GDK_INPUT_READ on systems with a native poll().
21328
21329 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
21330
21331         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
21332         explicitly for the string "None" - it is in the XPM
21333         spec and some servers treat unknown colors in odd ways
21334         (like asking the user!)
21335
21336 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
21337
21338         * gdk/gdkevents.c: made "->" into a "." of previous change so
21339         it compiles
21340
21341 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
21342
21343         * gdk/gdkevents.c (gdk_compress_exposures): Set the
21344         window field of the event structure before calling
21345         user filters.
21346
21347 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
21348
21349         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
21350         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
21351
21352 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
21353
21354         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
21355         intermediate text property - prevents major memory
21356         leak when gdk_use_mb.
21357         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
21358
21359 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
21360
21361         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
21362         gtk-a-higuti-990322-[0-3]
21363
21364         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
21365         sizeof(wchar_t) != sizeof (GdkWChar)
21366
21367         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
21368         that was causing -DX_LOCALE not to work.
21369
21370         * gtk/gtkrc.c (gtk_rc_init):
21371         X_LOCALE will never have LC_MESSAGES defined
21372
21373         * gdk/gdk.c (gdk_init_check):
21374         Remove --xim-preedit and --xim-status from argv properly.
21375
21376         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
21377         that the client window is present on the X server
21378         before we pass it to the input method.
21379
21380 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
21381
21382         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
21383         if --display is specified on the command line, than
21384         the drag window will not be created on that display.
21385         
21386 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
21387
21388         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
21389         lookups with only_if_exists == TRUE were inserting
21390         bogus values into the atom cache.
21391
21392 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
21393
21394         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
21395         then reset it to NULL.
21396
21397         * gdk/gdkcolor.c:
21398         (gdk_colors_free): 
21399         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
21400         key for g_hash_table_remove() in both functions, this prevents us
21401         from accessing possibly uninitialized portions of a GdkColor structure
21402         where we are only interested in its pixel value.
21403
21404 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
21405
21406         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
21407         font hash table, if we have a GdkFontPrivate entry for this font
21408         already, simply increment its reference count, provided by Olaf Dietsche
21409         <olaf.dietsche+list.gtk@netcologne.de>.
21410
21411 1999-09-21  Tor Lillqvist  <tml@iki.fi>
21412
21413         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
21414         just to be sure.
21415
21416         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
21417         unused variables, leftovers from the X11 version.
21418
21419         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
21420
21421         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
21422         downcase fields on X11.
21423
21424 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
21425         
21426         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
21427         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
21428
21429 1999-09-17  Tor Lillqvist  <tml@iki.fi>
21430
21431         * gdk/win32/gdk.def: Add gdk_threads_mutex.
21432
21433         * gtk/makefile.msc: Correct path to libintl.
21434
21435         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
21436         use of gint vs. int, and gint vs. gboolean in headers and
21437         definitions. Use GtkType for the *_get_type functions. Note that
21438         these changes preserve binary compatibility.
21439
21440         * gdk/gdk.c
21441         * gdk/win32/gdk.c
21442         * gdk/gdk.h: Fix inconsistencies: gint vs int.
21443
21444         * gtk/gtkmain.c
21445         * gtk/gtkclist.c
21446         * gtk/gtkmenufactory.c
21447         * gtk/gtknotebook.c
21448         * gtk/gtkwidget.c: Fix inconsistencies, also gint
21449         vs. gboolean.
21450
21451         * gtk/gtkcolorsel.[ch]
21452         * gtk/gtkcombo.[ch]
21453         * gtk/gtkdrawingarea.[ch]
21454         * gtk/gtkgamma.[ch]
21455         * gtk/gtkhandlebox.[ch]
21456         * gtk/gtkhpaned.[ch]
21457         * gtk/gtkhruler.[ch]
21458         * gtk/gtkplug.[ch]
21459         * gtk/gtkpreview.[ch]
21460         * gtk/gtkruler.[ch]
21461         * gtk/gtksocket.[ch]
21462         * gtk/gtkstatusbar.[ch]
21463         * gtk/gtktoolbar.[ch]
21464         * gtk/gtkvbbox.[ch]
21465         * gtk/gtkvpaned.[ch]
21466         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
21467         functions.
21468
21469         * gtk/gtkgamma.h: Fix bug, missing () in call of
21470         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
21471
21472 1999-09-14  Tor Lillqvist  <tml@iki.fi>
21473
21474         * gdk/gdkcolor.c (gdk_colormap_new)
21475         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
21476         colormap->colors was allocated twice.
21477
21478         * gdk/win32/gdk.c: Remove some unused stuff.
21479
21480         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
21481         colormap.
21482
21483         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
21484         * gtk/gtklabel.h (gtk_label_get_type)
21485         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
21486         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
21487         in a couple of places, not guint.
21488
21489 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
21490
21491         * configure.in,po/et.po: added Estonian language file
21492
21493 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
21494
21495         * configure.in,po/da.po: added Danish file
21496
21497 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
21498
21499         * docs/gtkfaq.sgml: Minor FAQ Update
21500
21501 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
21502
21503         * docs/gtkfaq.sgml: FAQ update
21504
21505 1999-08-27  Tor Lillqvist  <tml@iki.fi>
21506
21507         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
21508         way to get window contents continually refreshed while resizing. I
21509         didn't like the effects myself, so it's not on by default.
21510
21511         * gdk/win32/gdkprivate.h: New flag variable
21512         gdk_event_func_from_window_proc, FALSE by default.
21513
21514         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
21515         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
21516         are passed --gdk-event-func-from-window-proc.
21517
21518         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
21519         and we have am event_func, call it instead of enqueing the event.
21520
21521 1999-08-23  Tor Lillqvist  <tml@iki.fi>
21522
21523         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
21524         Kelley: Set expose_count in GdkEventExposes correctly.
21525
21526         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
21527         MULTIPLE_WINDOW_CLASSES).
21528
21529         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
21530         for bug in NT, apparently NT *does* draw the end pixel, too, in
21531         LineTo with a one-pixel pen, so we don't have to do it ourselves.
21532
21533 1999-08-21  Tor Lillqvist  <tml@iki.fi>
21534
21535         Improvements by Hans Breuer: 
21536
21537         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
21538
21539         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
21540         CS_?REDRAW flags as they cause lots of (late) redraws when "show
21541         window contents while dragging" is turned on. Allocate at least
21542         one unique class for every GdkWindowType. If support for single
21543         window-specific icons is ever needed (eg. Dialog specific), every
21544         such window should get its own class.
21545
21546 1999-08-19  Tor Lillqvist  <tml@iki.fi>
21547
21548         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
21549         error that caused crashes.
21550
21551 1999-08-17  Tor Lillqvist  <tml@iki.fi>
21552
21553         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
21554         window, use ScrollWindowEx, and call UpdateWindow. This prevents
21555         bugs when for instance part of the window was outside the
21556         display. Thanks to Philippe Colantoni for finding and fixing this.
21557
21558 1999-08-16  Tor Lillqvist  <tml@iki.fi>
21559
21560         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
21561         endpoint calculations which were totally wrong. (A little RTFMing
21562         helps a lot ;-)
21563
21564         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
21565         from a separate directory, not from gettext, because of licensing
21566         issues (we want to use the LGPL version).
21567
21568         * README.win32: Mention the intl from glibc vs from gettext issue.
21569
21570 1999-08-13  Tor Lillqvist  <tml@iki.fi>
21571
21572         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
21573         in the key event handling: Now AltGr chars work again. Also,
21574         now Alt-digits are passed up as well as Control-digits.
21575         Pass keypad plus and minus as normal plus and minus.
21576
21577 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
21578
21579         * docs/gtkfaq.sgml: FAQ Update
21580
21581 1999-07-25  Tor Lillqvist  <tml@iki.fi>
21582
21583         * README.win32
21584         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
21585         the Wintab SDK.
21586
21587         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
21588         OK, but getting closer. Guard against bogus tilt data from Wacom
21589         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
21590         enable easier building without Wintab.
21591
21592         * gdk/win32/gdkinput.h
21593         * gdk/win32/gdkevents.c 
21594         * gdk/win32/gdkwindow.c: Minor changes related related to above.
21595         
21596         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
21597         code. As we have just one visual on Win32, no sense to have it in a
21598         table, and no need for the hash table.
21599
21600         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
21601         better on white background.
21602
21603 1999-07-21  Tor Lillqvist  <tml@iki.fi>
21604
21605         * README.win32: Update gcc build instructions. Mention gettext is
21606         GPL.
21607
21608         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
21609         supported cursor size with GetSystemMetrics.
21610
21611         * gdk/win32/gdkfont.c
21612         * gtk/gtkfontsel.c: Guard against some font weight and charset
21613         symbols being undefined (in mingw32 headers).
21614
21615         * gdk/win32/makefile.cygwin
21616         * gtk/makefile.cygwin
21617         * gtk/gtkthemes.c: No longer need to have differently named
21618         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
21619
21620 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
21621
21622         * docs/gtkfaq.sgml: Long awaited FAQ update.
21623
21624 1999-07-15  Tor Lillqvist  <tml@iki.fi>
21625
21626         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
21627         it. Obscure bit manipulation needed.
21628
21629         * gdk/win32/gdkevents.c: Logging.
21630         
21631         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
21632         style (file name include compiler name) for theme engines.
21633
21634 1999-07-13  Tor Lillqvist  <tml@iki.fi>
21635
21636         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
21637
21638         * gdk/win32/gdkevents.c: Fix long-standing bug in key
21639         events. The key.string wasn't zero-terminated, still we strdup'ed
21640         it in gdk_event_copy(). Synthesize crossing events for button
21641         events before possible propagation.
21642
21643         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
21644
21645         * gdk/win32/makefile.cygwin
21646         * gtk/makefile.cygwin: Use new DLL naming style for the
21647         GCC-compiled ones.
21648
21649         * gdk/win32/makefile.msc
21650         * gtk/makefile.msc: Cosmetics mostly.
21651
21652         * gtk/gtk.def: Add missing entry points.
21653
21654         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
21655
21656 1999-07-09  Tor Lillqvist  <tml@iki.fi>
21657
21658         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
21659         or height is zero. Don't print a warning if Pie or Arc fails, they
21660         always fail (?) for very narrow ellipses.
21661
21662         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
21663         the part or the destination window corresponding to source area
21664         outside of the source drawable's boundary.
21665
21666         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
21667         anything if less than two points.
21668
21669         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
21670         return NULL. Gtk cut-and-paste inside a single program works
21671         better this way. (It always gets the clipboard contents from
21672         Windows, not from its own copy, which is cleared anyway. I can't
21673         say I fully understand what happens... Emulating the X selection
21674         and property stuff is a bit of a mess.)
21675
21676         * gdk/win32/gdkevents.c
21677         * gdk/win32/gdkproperty.c: A bit more verbose logging.
21678
21679         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
21680         that never got deleted). Revamp gdk_region_shrink.
21681
21682         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
21683         after use.
21684
21685         * gtk/gtk.def: Add some missing entry points.
21686
21687         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
21688         component.
21689
21690 1999-07-04  Tor Lillqvist  <tml@iki.fi>
21691
21692         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
21693         Control-digits specially.
21694
21695 1999-07-03  Tor Lillqvist  <tml@iki.fi>
21696
21697         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
21698
21699 1999-06-28  Tor Lillqvist  <tml@iki.fi>
21700
21701         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
21702         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
21703         finding this.)
21704
21705 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
21706
21707         * gtk+.spec.in: Corrected some typos in files section.
21708         
21709 1999-06-15  Tor Lillqvist  <tml@iki.fi>
21710
21711         * README.win32: Mention using GNU gettext.
21712         * config.h.win32: Enable NLS stuff.
21713         * gtk/makefile.msc: Use GNU gettext.
21714         * gdk/win32/gdkdnd.c: Minor header reorg.
21715         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
21716         cosmetics.
21717         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
21718         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
21719
21720 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
21721
21722         * acinclude.m4
21723         * config.guess
21724         * config.status
21725         * ltconfig
21726         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
21727
21728 1999-05-30  Tor Lillqvist  <tml@iki.fi>
21729
21730         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
21731         SafeAdjustWindowRectEx. Don't override all calls to
21732         AdjustWindowRectEx by it, but use it only in two places: When
21733         creating a new top-level window and when moving a top-level
21734         window.
21735
21736         Use screen coordinate rectangle, not client rectangle, in
21737         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
21738         when we try to place a window so that the decoration (mainly,
21739         title bar) isn't visible.
21740
21741         These changes fix the bug that showed up for instance as the
21742         GIMP's saved top-level windows moving right and down (by an amount
21743         equal to the window decoration) for each session. This bug showed
21744         up also in testgtk's "Saved Position".
21745
21746         gdk_window_resize also redone a bit.
21747
21748 1999-05-25  Tor Lillqvist  <tml@iki.fi>
21749
21750         * gtk/testgtkrc: Add (commented out) Windows-style theme
21751         include line.
21752
21753         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
21754
21755 1999-05-18  Tor Lillqvist  <tml@iki.fi>
21756
21757         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
21758         gdkx.h to a gdk subdirectory, so that applications can include
21759         these with <gdk/*.h> without trouble.
21760
21761         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
21762         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
21763         have their bitmap destroyed.
21764
21765         * gdk/win32/gdk.def: Add gdk_root_parent.
21766
21767 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
21768
21769         * configure.in
21770           gtk-config.in
21771           ltconfig
21772           ltmain.sh     
21773           gtk/Makefile.am: changes to compile nicely (with xlib) 
21774           on BeOS
21775
21776 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
21777
21778         * acinclude.m4
21779         * config.guess
21780         * config.sub
21781         * ltconfig
21782         * ltmain.sh: upgrade to libtool 1.3
21783
21784 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
21785
21786         * gtk/gtkclist.c:
21787         * gtk/gtkctree.c: merges from gtk-1-2
21788
21789 1999-04-25  Tor Lillqvist  <tml@iki.fi>
21790
21791         Support added for building using a GNU toolchain on Win32,
21792         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
21793
21794         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
21795         * config.h.win32: Changes for gcc.
21796         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
21797         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
21798         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
21799         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
21800         Protect shl stuff unavaiilable with mingw32 headers.
21801         * gdk/win32/gdkevents.c: Fix typo.
21802         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
21803         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
21804         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
21805         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
21806         the mingw32 headers.
21807         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
21808         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
21809         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
21810         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
21811         Test for NATIVE_WIN32, not _MSC_VER.
21812         * gtk/gtkmain.c: No use warning about developer version on Win32,
21813         there aren't any non-developer versions anyhow.
21814         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
21815         * gtk/makefile.msc: Use pthread from another directory. Minor other
21816         changes. 
21817
21818 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
21819
21820         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
21821           default filter from the list
21822
21823 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
21824
21825         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
21826          when gtk_widget_grab_default() is called for a widget that
21827          is not within a GtkWindow.
21828
21829 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
21830
21831         * docs/gtk_tut.sgml, examples/clist.c: use a
21832           scrolled window in the clist example. Minor
21833           tutorial fixes.
21834
21835 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
21836
21837         * docs/gtk_tut.sgml: Style check from David King
21838           <dking@youvegotmail.net>
21839
21840 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
21841
21842         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
21843         compile with unknown value of GDK_WINDOWING
21844
21845 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
21846
21847         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
21848         after the rule is fired.
21849         (install-exec-local): Install gdkconfig.h only if the contents are
21850         different from the currently installed gdkconfig.h.
21851
21852 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
21853
21854         * gdk/Makefile.am (configexecincludedir): Rename from 
21855         configincludedir so that gdkconfig.h will be installed 
21856         as part of `make install-exec'. 
21857
21858 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
21859
21860         * acinclude.m4
21861         * config.guess
21862         * config.sub
21863         * ltconfig
21864         * ltmain.sh: upgrade to libtool 1.2f
21865
21866         * autogen.sh: libtool is not required to autogen gtk+
21867
21868         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
21869         needed)
21870
21871 1999-03-18  Tor Lillqvist  <tml@iki.fi>
21872
21873         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
21874         declaring gdk variables exported/imported from the DLL. New image
21875         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
21876         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
21877         GDK_DRAG_PROTO_OLE2.
21878
21879         * gdk/gdk.h: Merge in Win32 version: Two new functions,
21880         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
21881         declared only for the Win32 version, but could be in the X11
21882         version as well. (Needed for a Xlib-less gdk_imlib.)
21883         gdk_color_hash should have only one parameter. Declare
21884         gdk_threads_mutex with GDKVAR.
21885         
21886         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
21887         just one parameter.
21888
21889         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
21890         per pixel, not bits.
21891
21892         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
21893         Fetch bpp (which means bits-per-pixel here) from another place on
21894         Win32. Accept also depth==32 (which we might get on Win32) with
21895         bpp==32.
21896
21897         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
21898         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
21899         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
21900         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
21901         in the backend-dependent directory, not in the common gdk
21902         directory.
21903
21904         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
21905         headers.
21906
21907 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
21908
21909         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
21910         want to use the Gtk+ devel version (which is true, and yes - even i am
21911         currently working with the 1.2.x branch). so everyone reading this, you
21912         probably want to issue
21913         cvs checkout -r glib-1-2 glib
21914         and
21915         cvs checkout -r gtk-1-2 gtk+
21916         as your next two comands.
21917
21918 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
21919
21920         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
21921         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
21922
21923         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
21924         file. strongly deprecated the GTK_HAVE_* macros, we provide
21925         GTK_CHECK_VERSION() for people that need to check for certain
21926         Gtk+ versions.
21927
21928         * gtk/gtkcompat.h: removed this from CVS.
21929         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
21930         idea right from the start, it just didn't seem like that back then.
21931
21932 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
21933
21934         * merges from gtk-1-2:
21935
21936 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
21937
21938         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
21939         item factory class has been created.
21940         (gtk_item_factory_parse_rc): likewise.
21941
21942         * gtk/gtkmenu.c:
21943         keep proper references for old_active_menu_item.
21944         (gtk_menu_reparent): unset the usize of the new parent,
21945         so the menu can sanely be size requested and we don't get nasty screen
21946         artefacts upon next reparentation.
21947         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
21948         enter notify. only synthesize enter notifies if the pointer really is
21949         inside the event window.
21950         (gtk_menu_popdown): use gtk_menu_shell_deselect().
21951         (gtk_menu_popup): move the background setting stuff into
21952         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
21953
21954         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
21955         gtk_menu_shell_select_item() to select the new item.
21956         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
21957         do the right thing for deselection as well.
21958
21959 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
21960
21961         * gtk/gtkwidget.[hc]:
21962         (gtk_widget_accelerators_locked): return whether a widget's accelerators
21963         are locked.
21964
21965         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
21966         existing accelerators if the widget's accelerators are locked.
21967
21968 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
21969
21970         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
21971
21972         * gtk/gtkmenu.c: truely forward key press and key release events to
21973         the menu widget from the toplevel or tearoff window. we can't simply
21974         connect to that, we need to stop further processing of the events as
21975         well.
21976
21977 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
21978
21979         * gtk/gtkmenu.c:
21980         (gtk_menu_key_press): pass event->keyval, event->state to
21981         gtk_accelerator_valid, instead of event->keyval twice.
21982         refuse to install single letter accelerators for menus that use
21983         single letter shortcuts.
21984
21985         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
21986         gtk_menu_ensure_uline_accel_group().
21987
21988         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
21989         which will always return an uline accel group, made
21990         gtk_menu_get_uline_accel_group() return NULL if the group isn't
21991         yet created.
21992
21993 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
21994
21995         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
21996
21997         * gtk/gtkclist.c (gtk_clist_column_title_passive):
21998         Leave button sensitive, trap  button_press, button_release,
21999         motion_notify, enter_notify and leave_notify events instead.
22000         (gtk_clist_column_title_active): disconnect event handler.
22001         (gtk_clist_drag_data_get): fixed memory leak. Reported by
22002         Guillaume Laurent <glaurent@worldnet.fr>
22003
22004 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
22005
22006         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
22007         width/height mixups.
22008
22009         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
22010         if needed.
22011
22012 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
22013
22014         * gtk/testgtk.c (create_item_factory): unref the item factory after
22015         window's destruction.
22016
22017         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
22018         count on the menu shell around the menu item's activation, since the
22019         signal emission may cause menu shell destruction.
22020
22021         * gtk/gtkitemfactory.c:
22022         the previous code leaked one accel group per menu. we use
22023         gtk_menu_get_uline_accel_group() now to fix that, and with that
22024         also create the underline accelerator group of the menus only if
22025         required (i.e. an underline accelerator has been specified).
22026         (gtk_item_factory_construct):
22027         (gtk_item_factory_create_item): removed code that would create an
22028         extra accel group for the menu (and leak references).
22029         (gtk_item_factory_create_item): adapted the underline accelerator
22030         installation code to properly feature gtk_menu_get_uline_accel_group().
22031
22032         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
22033         menu->accel_group, this may return NULL if the accelerator group
22034         hasn't been set yet.
22035         added gtk_menu_get_uline_accel_group() to retrive the underline
22036         accelerator group of the menu, this will be created on demand
22037         and proper care is taken about its reference count.
22038
22039         * gtk/gtkitemfactory.h:
22040         * gtk/gtkitemfactory.c:
22041         dumped the approach of keeping a widgets by action list on the
22042         factory since the factory<->widget destroy negotiation didn't work
22043         and would be hard to get going at all. instead we keep a list of
22044         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
22045         persistant throughout a program's life time).
22046         also, i removed the static const gchar *key_* variables, and made
22047         them inline strings (they weren't actually used anyways).
22048         (gtk_item_factory_add_item): update ifactory->items.
22049         (gtk_item_factory_destroy): destroy ifactory->items (and remove
22050         the item factory pointer from the remaining ifactory widgets).
22051         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
22052         list to find the widget.
22053         (gtk_item_factory_get_item): new function that works around
22054         gtk_item_factory_get_widget() limitations, this function will only
22055         return menu items, even for <Branch> entries.
22056
22057 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
22058
22059         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
22060         font hash table, if we have a GdkFontPrivate entry for this font
22061         already, simply increment its reference count, provided by Olaf Dietsche
22062         <olaf.dietsche+list.gtk@netcologne.de>.
22063
22064         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
22065         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
22066
22067 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
22068
22069         * gtk/gtkcontainer.c:
22070         (gtk_container_add_with_args):
22071         (gtk_container_addv):
22072         (gtk_container_add): before adding a child to a conatiner, make sure
22073         it is (default) constructed, this is neccessary because under certain
22074         circumstances the child will get relized and mapped immediatedly, in
22075         which case it has to be constructed already.
22076
22077 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
22078
22079         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
22080         values > 1 as TRUE also.
22081
22082 1999-03-16  Tor Lillqvist  <tml@iki.fi>
22083
22084         * README.win32: New file.
22085                 
22086         * configure.in: Check for lstat.
22087
22088         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
22089         completeness.
22090
22091         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
22092
22093         * gtk/gtk.def: Removed CRs.
22094
22095         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
22096         ..\gdk\win32).
22097
22098         * gdk/win32/makefile.msc: Correct upwards relative paths.
22099         
22100 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
22101
22102         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
22103           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
22104           it was connecting a void function to expose_event and the int
22105           returning function to the draw signal
22106
22107 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
22108
22109         * configure.in:
22110         Use correct path to libgmodule.la when ref'ing uninstalled copy
22111         of glib.  (Already in stable branch, Bug #417)
22112
22113 1999-03-15  Tor Lillqvist  <tml@iki.fi>
22114
22115         Win32 merge and general portability stuff:
22116                 
22117         * acconfig.h,configure.in: Check for <sys/time.h>.
22118
22119         * gdk/win32: New directory (actually, been there for a while).
22120         
22121         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
22122         NATIVE_WIN32, and use these. Always case fold on Win32. No
22123         backslashed escapes on native Win32.
22124
22125         * gtk/{gtk.def,makefile.msc}: New files.
22126
22127         * gtk/Makefile.am: Add above new files.
22128         
22129         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
22130         instead of <strings.h>.
22131
22132         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
22133         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
22134         <unistd.h> appropriately.
22135
22136         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
22137         Use ABS() (from <glib.h>) instead of abs().
22138         
22139         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
22140         of gtk (and thus glib) headers, so that WIN32 will be
22141         defined. With MS C, include <direct.h> for mkdir prototype.
22142
22143         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
22144         some casts, needed by MS C.
22145
22146         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
22147         implemented).
22148
22149         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
22150         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
22151         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
22152
22153         * gtk/gtkmain.h: Mark variables for export/import on Win32.
22154                 
22155         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
22156         the event is not a hint, or its window is not the slider. Needed
22157         on Win32, at least.
22158
22159         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
22160         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
22161         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
22162         a subdirectory of the Windows directory as gtk system
22163         configuration directory.
22164
22165         * gtk/gtkselection.c: No chunks on Win32.
22166
22167         * gtk/gtksocket.c: Not implemented on Win32.
22168
22169         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
22170
22171         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
22172
22173         * gtk/maketypes.awk: Declare variables with a macro that expands to
22174         necessary export/import magic in the case of Win32.
22175                 
22176         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
22177
22178 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
22179
22180         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
22181         since those were meant only for gdki18n.h.  
22182         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
22183         for widechar tests.
22184         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
22185
22186 1999-03-13  Tor Lillqvist  <tml@iki.fi>
22187
22188         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
22189         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
22190
22191         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
22192         installed) to CFLAGS.
22193
22194         * gdk/Makefile.am: Add rules for gdkconfig.h.
22195
22196         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
22197         APIs.
22198
22199         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
22200         gdkx.h anyway when compiling for X11.
22201         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
22202         general): Merge in Win32 version.
22203         
22204         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
22205         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
22206         expansion (if we don't have HAVE_PWD_H), allow for drive
22207         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
22208         included code from Craig Setera's port to Win32 (the one that uses
22209         X11, and the cygwin dll), even if it probably will be abandoned.
22210
22211         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
22212         the user entered one herself.  This way one can complete *.h and
22213         don't get matches on any .help files, for instance.
22214         
22215 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
22216
22217         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
22218         font hash table, if we have a GdkFontPrivate entry for this font
22219         already, simply increment its reference count, provided by Olaf Dietsche
22220         <olaf.dietsche+list.gtk@netcologne.de>.
22221
22222         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
22223         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
22224
22225 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
22226
22227         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
22228         the number of calls to gdk_draw_point() (and thus to X) by
22229         clipping the points by hand.
22230
22231         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
22232         the clip parameter.
22233         (gtk_handle_box_paint): Only paint the handle if the expose area
22234         intersects it.
22235
22236 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
22237
22238         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
22239
22240 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
22241
22242         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
22243         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
22244
22245 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
22246
22247         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
22248          textmode (O_TEXT) for OS/2 version.
22249
22250 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
22251
22252         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
22253         GtkSpinButton, "input" and "output", to make the output more flexible.
22254         The user has to provide a mapping between adjustment->value and the
22255         output string (and vice versa, if the spin button is editable). 
22256         See testgtk for examples.
22257
22258 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
22259
22260         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
22261         new one.
22262         
22263         * configure.in: set gtk+ version to 1.3.0.