]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-0
Fix typo where pangoxft was being required instead of pangox. (Reported by
[~andy/gtk] / ChangeLog.pre-2-0
1 Sun Mar  3 12:13:56 2002  Owen Taylor  <otaylor@redhat.com>
2
3         * configure.in: Fix typo where pangoxft was being
4         required instead of pangox. (Reported by Miles
5         Lane)
6
7 Sun Mar  3 12:06:02 2002  Owen Taylor  <otaylor@redhat.com>
8
9         * gtk/gtkentry.c (gtk_entry_expose): Draw cursors
10         _under_ the text, not over.
11
12 Sun Mar  3 11:26:20 2002  Owen Taylor  <otaylor@redhat.com>
13
14         * gtk/gtkwidget.c (gtk_widget_class_init): add
15         a secondary-cursor-color property.
16
17 Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>
18
19         * gtk/gtktextlayout.c (add_cursor): When in split cursor
20         mode, always add the cursor as both strong and weak
21         so that it is drawn with the correct non-split color.
22
23 Sun Mar  3 11:05:13 2002  Owen Taylor  <otaylor@redhat.com>
24
25         * modules/input/Makefile.am (moduledir): Fix
26         install location.
27
28 Sun Mar  3 10:28:32 2002  Owen Taylor  <otaylor@redhat.com>
29
30         * gtk/Makefile.am: add missing dependency of objects on
31         gtkmarshalers.h.
32
33         * gtk/Makefile.am gtk/gtk-boxed.defs: Remove completely
34         out of date and unused gtk-boxed.defs and the accompanying
35         Makefile rule to generate the complete gtk.defs.
36
37 2002-03-03  Hans Breuer  <hans@breuer.org>
38
39         * gtk/gtkmain.c : make rewrite_event_for_window() static
40         * gtk/gtkrc.c : gtk_rc_clear_realized_style() static
41
42         * gtk/makefile.msc.in : adapt to makeenums build changes
43
44         * gtk.def : sorted alphabetical again
45
46 2002-03-03  Sven Neumann  <sven@gimp.org>
47
48         * m4macros/gtk-2.0.m4: lowercase configure --help output.
49
50 Sun Mar  3 06:39:19 2002  Tim Janik  <timj@gtk.org>
51
52         * gtk/gtkfilesel.c: added compile time switch to put the tree views
53         into a hpaned for owen to play with.
54
55         * gtk/gtktreedatalist.c (_gtk_tree_data_list_header_free): 
56         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func),
57         (gtk_tree_view_column_finalize): 
58         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func),
59         (gtk_tree_store_set_sort_func), (gtk_tree_store_finalize): 
60         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): 
61         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func),
62         (gtk_tree_model_sort_set_default_sort_func),
63         (gtk_tree_model_sort_set_sort_func):
64         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func),
65         (gtk_list_store_set_default_sort_func),
66         (gtk_list_store_set_sort_func), (gtk_list_store_finalize): 
67         add reentrancy protection around destroy() function invocation.
68
69         * gtk/gtktreeselection.c (gtk_tree_selection_set_select_function): fix
70         destroy function invocation (which was missing).
71
72 Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
73
74         Fixes for uninstalled operation with module suffixes
75         other than .so and in general for platforms like AIX where
76         the module suffix isn't predictable. (#72185, problems
77         reported by Miroslaw Dobrzanski-Neumann)
78
79         * modules/input/Makefile.am (gtk.immodules): Query .la
80         files rather than shared objects in .libs when creating the
81         uninstalled gtk.immodules file.
82
83         * gtk/gtkmain.c (_gtk_find_module): Look for .la files
84         after looking for the normal soname extension to handle
85         cases where the soname extension isn't predictable,
86         like AIX.
87
88         * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
89         call g_module_build_path... leave that to 
90         gtk_rc_find_module_in_path.
91
92         * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
93         tests/testgtk.c (test_init): tests/testtext.c (test_init)
94         tests/testdnd.c (test_init): Point gdk-pixbuf to .la
95         files rather than poking in .libs for .so files.
96
97         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
98         .libs from GDK_PIXBUF_MODULEDIR.
99
100 Sat Mar  2 20:58:30 2002  Owen Taylor  <otaylor@redhat.com>
101
102         * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW
103         widgets with windows that are children of widget->window.
104         (#50279)
105
106         * tests/testgtk.c: Add eventboxes to the example so that
107         we are reparenting between different GdkWindows.
108
109 Sat Mar  2 20:39:38 2002  Owen Taylor  <otaylor@redhat.com>
110
111         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): 
112         Add a note to the docs about how to use this in the 
113         context of changeable accelerators. (#72382, Mark Patton)
114
115 Sat Mar  2 19:48:10 2002  Owen Taylor  <otaylor@redhat.com>
116
117         * configure.in: Fix missing -lX11 into x_libs with pangoxft.
118
119 Fri Mar  1 00:46:49 2002  Owen Taylor  <otaylor@redhat.com>
120
121         * configure.in: Add a --enable-explicit-deps option to control
122         whether dependency libraries are written into .la files and .pc
123         files.  Default is auto: if static libraries are off and shlib
124         dependencies are found, don't write deps.
125
126         * gdk/Makefile.am gtk/Makefile.am sanitize-la.sh: Shell script
127         used to strip dependencies out of .la files.
128
129         * Makefile.am: Add a slightly modified distcheck rule that passes
130         --enable-gtk-doc to the configure inside.
131         (So that 'make dist' succeeds inside.)
132
133         * configure.in: If pango was compiled with
134         --disable-explicit-deps, then repeat the checks for X and
135         freetype ourselves so we don't depend on linking to libraries
136         that pango doesn't reveal in the link line. Add some more paranoia
137         for whether what we detect ourselves matches what Pango backends
138         we found.
139         
140 2002-03-03  Tor Lillqvist  <tml@iki.fi>
141
142         * configure.in: Output gdk-pixbuf/gdk_pixbuf.rc.
143
144         * gdk/gdk.def
145         * gdk/win32/gdkevents-win32.c: Add and (trivially) implement
146         gdk_pointer_grab_info_libgtk_only() and
147         gdk_keyboard_grab_info_libgtk_only().
148
149 2002-03-02  Tor Lillqvist  <tml@iki.fi>
150
151         * gdk/win32/gdkevents-win32.c (build_keypress_event): Reorder
152         code, keyval should get a value in all cases now.
153         (build_keyrelease_event): Set GDK_CONTROL_MASK here, too, if it
154         was a control character produced with Alt+keypad digits.
155         (gdk_event_translate): Minor cleanups to keyboard input
156         handling. Still need more major work.
157         
158 Sat Mar  2 16:12:03 2002  Owen Taylor  <otaylor@redhat.com>
159
160         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
161         do special focus handling if draw_indicator is not set.
162         (#64723, Damon Chaplin.)
163
164 Sat Mar  2 15:48:04 2002  Owen Taylor  <otaylor@redhat.com>
165
166         * gtk/gtkentry.c (gtk_entry_new_with_max_length,
167         gtk_entry_set_max_length): Clamp @max parameter passed in to 
168         [0, MAX_SIZE], improve docs. Fix default and range 
169         for ::max-length property, range for ::ncursor_position,
170         ::selection_bound properties. (#55916, Vitaly Tishkov)
171
172         * gtk/gtkmain.c (rewrite_event_for_grabs): Fix typo
173
174 Fri Mar  1 18:39:44 2002  Owen Taylor  <otaylor@redhat.com>
175
176         * gdk/x11/{gdkevents-x11.c,gdkmain-x11.c,gdkprivate-x11.h,
177         gdkwindow-x11.c}: Robustify tracking of pointer grab window.
178
179         * gdk/x11/gdkmain-x11.c: Keep track of current keyboard
180         grab window.
181
182         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab_info_libgtk_only,
183         gdk_keyboard_grab_info_libgtk_only): Private libgtk => libgtk
184         API for finding out current grab information.
185         
186         * gtk/gtkmain.c (rewrite_event_for_grabs): Rewrite events
187         so that the effective behavior of owner_events = TRUE is changed
188         to "deliver events to same window group normally" instead
189         of "deliver events to same application normally. #69934
190
191         * gtk/gtkrange.c: Use an explicit gtk_grab_add() so that
192         it works within the GtkList combo, where there is a 
193         owner_events = FALSE gdk_pointer_grab() already in effect.
194         (#65006, reported by Damon Chaplin)
195
196 Sat Mar  2 14:32:50 2002  Owen Taylor  <otaylor@redhat.com>
197
198         * configure.in: Default to --disable-gtk-doc (avoid Jade
199         breakage) and --disable-static (static linking causes
200         problems with Xft changes.)
201
202         * autogen.sh: Add --enable-gtk-doc by default.
203
204         * Makefile.am: Add a 'mydistcheck' rule that passes
205         --enable-gtk-doc to the configure since that is needed
206         for 'make dist'.
207
208         * docs/tutorial/Makefile.am (dist-hook): Don't distribute
209         the PDF file. (Rule doesn't work on my system, plus it's
210         big.)
211
212         * gtk/Makefile.am: 'make dist' fixes.
213
214 Sat Mar  2 13:26:58 2002  Owen Taylor  <otaylor@redhat.com>
215
216         * gtk/Makefile.am: Switch style of stamp file usage.
217
218         * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported
219         enumeration/fags TYPE variables over to macros for get_type() functions,
220         for lazy definition and to get rid of expensive relocations.
221
222         * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch]
223         gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch]
224         gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type
225         definitions over manually coded get_type() functions.
226
227         * gtk/gtk.def: Updates for above
228
229         * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}:
230         Remove from CVS, no longer used.
231
232         * configure.in: Remove checks for awk.
233         
234 Sat Mar  2 04:44:10 2002  Tim Janik  <timj@gtk.org>
235
236         * gtk/gtkaccelgroup.c (gtk_accel_group_connect_by_path): fix typo.
237
238 Fri Mar  1 23:59:35 2002  Kristian Rietveld  <kris@gtk.org>
239
240         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size): set
241         first_cell to FALSE after first iteration
242
243         * gtk/gtktreeview.c (validate_visible_area): reduce usage of
244         GTK_RBNODE_GET_HEIGHT, check for node != NULL,
245         (gtk_tree_view_top_row_to_dy): remove call to gtk_adjustment_changed
246         (gtk_tree_view_search_iter): select iter after scrolling
247
248 2002-03-02  Tor Lillqvist  <tml@iki.fi>
249
250         * gtk/gtkitemfactory.c: Remove unneeded Win32 stuff inside #ifdef
251         G_OS_WIN32. (Leftover from when gtkitemfactory.c handled files.)
252
253 2002-03-01  Tor Lillqvist  <tml@iki.fi>
254
255         * gdk/gdkkeys.c (gdk_keyval_convert_case)
256         * gdk/x11/gdkkeys-x11.c (gdk_keyval_convert_case): If the keyval
257         to be converted is one of those that consist of a Unicode
258         character plus our special flag bit, use the
259         g_unichar_to{lower,upper} functions (Bug#73112).
260
261         * gdk/gdkkeys.c (gdk_keyval_convert_case): Drop the #ifdefs for
262         the GDK keysym symbols. As we include gdkkeysyms.h, we know they
263         are there. And if GDK keysyms some day are added/removed, this
264         function needs changes, too, anyway.
265
266 Fri Mar  1 17:00:28 2002  Owen Taylor  <otaylor@redhat.com>
267
268         * gdk/gdkpolyreg-generic.c: Fix some reported (but not significant)
269         UMR's from purify. (#73160, Morten Welinder)
270
271 Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
272
273         * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
274         variable in the class to -1, and then take that to mean
275         "default" (3) rather than putting 3 in the class directly.
276         This gives us some wiggle room to make it a per-instance
277         rather than a per-class property later.
278
279 2002-03-01  jacob berkman  <jacob@ximian.com>
280
281         * Makefile.am (install-data-hook): 
282         (dist-hook): replace uses of test -e with more portable test -f
283
284 Fri Mar  1 14:49:35 2002  Owen Taylor  <otaylor@redhat.com>
285
286         * gtk/gtktextview.c (gtk_text_view_commit_text): Don't delete
287         forward across line boundaries when in overwrite mode.
288         (#73145, reported by Ettore Perazzoli)
289
290 Fri Mar  1 14:47:39 2002  Owen Taylor  <otaylor@redhat.com>
291
292         * gtk/gtktextview.c (gtk_text_view_commit_text): Don't
293         join up lines.
294
295 Fri Mar  1 10:31:14 2002  Owen Taylor  <otaylor@redhat.com>
296
297         * gtk/gtknotebook.c (gtk_notebook_reorder_child):
298         Fix signed-unsigned error that was accidentally causing
299         negative values to append, do it intentionally. Fix docs 
300         to say that negative values append. (Alexey A. Malyshev,
301         #73108) 
302
303 2002-03-01 Alexey Malyshev <maa@sparc.spb.su>
304         
305         * gtk+/gtk/gtkitemfactory.c
306         fixed a little type in docs for gtk_notebook_set_show_border()
307         
308 Fri Mar  1 09:05:19 2002  Owen Taylor  <otaylor@redhat.com>
309
310         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries):
311         Really make it work for paths with underline accelerators. (#69247)
312
313 2002-02-28  Havoc Pennington  <hp@pobox.com>
314
315         * gtk/gtktextview.c (gtk_text_view_finalize): free the tab array
316         for custom tabs, reported by Paolo Maggi #72980
317         
318 Thu Feb 28 19:55:01 2002  Owen Taylor  <otaylor@redhat.com>
319
320         * gdk/gdkkeys.c: include gdkkeysysms.h if
321         compiling gdk_keyval_convert_case.
322
323         * gtk/gtkmenubar.c (gtk_menu_bar_cycle_focus): Implement
324         <Control>Tab <Control><Shift>Tab to cycle between
325         all menu bars in a toplevel once one is up.
326
327         * tests/testgtk.c: Add a second menubar, this
328         example is already full of crack anyways.
329
330         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Padd
331         unhandled events up to the parent menu shell.
332
333         * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Only
334         pop up the menu if the parent menu shell is still active.
335
336         * gtk/gtkcontainer.[ch] (_gtk_container_focus_sort): Add a
337         old_focus argument, export privately.
338
339 2002-02-28  Darin Adler  <darin@bentspoon.com>
340
341         * gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
342
343 2002-03-01  Tor Lillqvist  <tml@iki.fi>
344
345         * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
346         the event_mask, it is now in GdkWindowObject.
347
348         * gdk/win32/gdkwindow-win32.c: Change accordingly. Set the
349         GDK_STRUCTURE_MASK in gdk_window_set_events(), as it is always set
350         in gdk_window_new(), too. (Bug#72921)
351
352         * gdk/win32/gdkevents-win32.c: Change accordingly here, too.
353         (vk_from_char): New function, calculates the virtual keycode
354         corresponding to the char in a WM_CHAR message.
355         (build_keypress_event, build_keyrelease_event): Use it.
356         (build_keypress_event): Call ImmReleaseContext() after using the
357         input context. This might plug a memory or resource leak.
358         (build_key_event_state): Remove #if 0 code.
359         (gdk_event_translate): Actually, it would be preferrable to always
360         handle just the WM_KEYDOWN and WM_KEYUP messages, not WM_CHAR at
361         all, and thus drop the contorted logic with ignore_wm_char etc.
362
363         * gdk/win32/gdkkeys-win32.c: (gdk_keymap_get_entries_for_keyval):
364         Debugging output.
365         (gdk_keymap_translate_keyboard_state): Return correct value. (But
366         _gtk_key_hash_lookup() doesn't check the return value...)
367
368 Thu Feb 28 14:49:08 2002  Owen Taylor  <otaylor@redhat.com>
369
370         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): Initialize
371         private->event_mask from attributes we retrieved for
372         the window.
373
374 2002-02-22  Havoc Pennington  <hp@redhat.com>
375
376         * gtk/gtktextbuffer.c (save_range): change gravity of start/end
377         marks so that text added at either end of the range doesn't end up
378         inside the range.
379         (gtk_text_buffer_real_insert_range): fix to handle pasting a range
380         into itself.
381
382 2002-02-28  Sven Neumann  <sven@gimp.org>
383
384         * configure.in: beautified configure --help output.
385
386 2002-02-28  Tor Lillqvist  <tml@iki.fi>
387
388         * gdk/win32/Makefile.am: Move bdfcursor.c from
389         libgdk_win32_la_SOURCES to EXTRA_DIST.
390
391         * gdk/win32/gdkgc-win32.c (gdk_win32_colormap_color_pack): In the
392         bitmap case, use just the LSB of the pixel value. Does this match
393         X11 semantics? Or should it be pixel!=0?
394
395 Wed Feb 27 19:16:50 2002  Owen Taylor  <otaylor@redhat.com>
396
397         * gdk/x11/gdkwindow-x11.c (gdk_window_new): 
398         * gdk/x11/gdkwindow-x11.c (gdk_window_get_events): 
399         * gdk/x11/gdkwindow-x11.c (gdk_window_set_events): 
400         * gdk/win32/gdkwindow-win32.c (gdk_window_set_events): 
401         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
402         * gdk/gdkwindow.h (struct _GdkWindowObject): 
403         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_events):
404         Save the window's event mask in window->event_mask.
405
406         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Only
407         generate expose events if GDK_EXPOSE_MASK is included
408         window->event_mask. (#54506)
409
410 Wed Feb 27 18:50:29 2002  Owen Taylor  <otaylor@redhat.com>
411
412         * gtk/gtkwidget.c (gtk_widget_event): Allow focus-change
413         events to be sent to unrealized widgets; they aren't
414         really normal events in that they have anything to
415         do with widget->window. (#72914, Andreas J. Guelzow)
416
417 Wed Feb 27 18:39:25 2002  Owen Taylor  <otaylor@redhat.com>
418
419         * gtk/stock-icons/Makefile.am: Split big VARIABLES variable
420         that was causing overlong lines into 6 variables with 20
421         in each one.
422
423 Wed Feb 27 18:01:03 2002  Owen Taylor  <otaylor@redhat.com>
424
425         * gtk/gtkaccellabel.c (gtk_accelerator_name) po/POTFILES.in: 
426         Mark Ctrl, Shift, Alt for translation.
427         (#60590)
428
429         * gtk/gtkfontsel.c: Mark PREVIEW_TEXT for translation.
430         (Vlad Harchev, #53223)
431
432 Wed Feb 27 17:32:09 2002  Owen Taylor  <otaylor@redhat.com>
433
434         * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
435         reserve focus_line_width + focus_line_pad extra
436         space and draw the focus in that space. #72027.
437
438 Wed Feb 27 23:02:55 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
439
440         * gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
441
442 Wed Feb 27 14:58:12 2002  Owen Taylor  <otaylor@redhat.com>
443
444         * gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate): 
445         Don't reserve space for border when the shadow type
446         for the menubar is "none". (#61843)
447
448         * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Fix
449         offset for right-justified menu items.
450
451 Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
452
453         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
454         back to old style of drawing children over the bevel.
455         (#58615)
456
457 Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
458
459         * modules/input/imxim.c: Add ko and zh to the locales
460         where this is the default.
461
462 Wed Feb 27 12:34:21 2002  Owen Taylor  <otaylor@redhat.com>
463
464         * gtk/gtkiconfactory.c: Register all stock icons
465         "unscaled" so that we don't have icons only available
466         at some sizes. (#68896)
467
468 Wed Feb 27 11:59:05 2002  Owen Taylor  <otaylor@redhat.com>
469
470         Some ASCII vs. locale fixes from Darin Adler (#55837)
471
472         * gtk/gtkcombo.c (gtk_combo_find): Implement real
473         case-insensitive comparison using g_utf8_casefold().
474
475         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Fix
476         assignment of gunichar to char by replacing g_unichar_totitle
477         with g_ascii_toupper ... the contents would only be ascii
478         here anyways.
479
480         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale) 
481         * gtk/gtkfontsel.c (gtk_font_selection_show_available_fonts): 
482         Replace a calls to g_strcasecmp() with g_ascii_strcasecmp().
483
484 2002-02-27  Hans Breuer  <hans@breuer.org>
485
486         * demos/gtk-demo/makefile.msc.in : new file
487
488         * gdk-pixbuf/gtk-pixbuf.rc.in : new file to include
489           version resource
490         * gdk-pixbuf/makefile.msc : create and use gdk-pixbuf.res
491
492         * gdk/win32/gdkkeys-win32.c : handle undefined LANG_URDU,
493         (gdk_keyval_name) : fix endless looping
494
495         * gtk/gtkfilesel.c : translate_win32_path() static
496         * gtk/queryimmodules : print_escaped(), query_module() static
497
498         * gtk/makefile.msc.in : added gtkkeyhash, build gtk-win32.res
499
500         * gtk/stock-icons/makefile.msc : regenerated from directory
501         listing (almost all filenames changed)
502
503 Wed Feb 27 10:34:46 2002  Owen Taylor  <otaylor@redhat.com>
504
505         * gtk/gtkrange.c (gtk_range_set_range): After computing
506         the clamped value, actually set it. (#62639, Sergey Kuzminov)
507
508 Tue Feb 26 22:22:37 2002  Owen Taylor  <otaylor@redhat.com>
509
510         * gtk/gtkbox.c (gtk_box_reorder_child): Clean up
511         the code so < 0 == end wasn't just a side effect,
512         remove most of the manual linked list manipulation
513         code in favor of g_list_* functions.
514
515 Tue Feb 26 21:44:01 2002  Owen Taylor  <otaylor@redhat.com>
516
517         * config.status config.guess: Remove these files
518         from CVS so we more-or-less current versions from
519         automake --add-missing. (Reported by Finlay Dobbie,
520         #60342)
521
522         * gdk/gdkkeyuni.c: Shouldn't map KP_Enter to '\n',
523         or KP_Tab to \t' since we don't map the corresponding
524         main keyboard characters in that way. (#61561,
525         Padraig O'Briain)
526
527 Tue Feb 26 19:45:29 2002  Owen Taylor  <otaylor@redhat.com>
528
529         * gtk/gtkcombo.c (gtk_combo_set_popdown_strings):
530         Call gtk_combo_set_popdown_strings() in case
531         the combo is up currently. (#63535, Skip Montaro)
532
533 Tue Feb 26 19:38:14 2002  Owen Taylor  <otaylor@redhat.com>
534
535         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
536         Switch control-home/end and home/end with
537         the idea that scrolled windows more typically contain
538         vertical sets of controls and to correspond to the bindings
539         in GtkTreeView.
540
541 Tue Feb 26 19:32:42 2002  Owen Taylor  <otaylor@redhat.com>
542
543         * gtk/gtk[hv]vscale.c (gtk_[hv]scale_expose): Chain
544         up before drawing the scale values so that the number
545         is drawn in the right place instead of one step 
546         back. (#61743, patch from Satyajit Kanungo)
547
548 Tue Feb 26 19:16:28 2002  Owen Taylor  <otaylor@redhat.com>
549
550         * gdk/win32/gdkkeys-win32.c (gdk_keyval_name): 
551         * gdk/x11/gdkkeys-x11.c (gdk_keyval_name): 
552         Make sure Page_Up, Page_Down get those names, not Prior,
553         Next.
554
555 Tue Feb 26 18:58:49 2002  Owen Taylor  <otaylor@redhat.com>
556
557         * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
558         OR in the three default modifiers to any value passed
559         in by the caller, so that the caller won't break the
560         the default bindings. (#70142, Jody Goldberg, though he
561         wasn't in favor of this particular way of solving it.)
562
563 Tue Feb 26 18:47:44 2002  Owen Taylor  <otaylor@redhat.com>
564
565         * gtk/gtkwindow.c (gtk_window_add_mnemonic): Append
566         mnemonics rather than prepending them so that the 
567         order is typically forward rather than typically
568         backward. (Partial fix for #52395)
569
570 Wed Feb 27 00:45:39 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
571
572         * gtk/gtkarrow.c, gtk/gtkmenuitem.c, gtk/gtkrange.c
573         gtk/gtkspinbutton.c gtk/gtkstyle.c: Draw arrows better (without
574         extra baseline)
575
576 Tue Feb 26 18:38:17 2002  Owen Taylor  <otaylor@redhat.com>
577
578         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): 
579         Display any "g_unicode_isgraph()" char literally,
580         not just latin1. (#65679)
581
582 Tue Feb 26 18:01:10 2002  Owen Taylor  <otaylor@redhat.com>
583
584         * gtk/gtkwidget.c (gtk_widget_grab_focus): Don't
585         focus insensitive widgets. (#68203)
586         
587         * gtk/gtkentry.c (gtk_entry_state_changed): Clear any
588         current selection if we become insensitive. (#68203)
589
590         * gtk/gtkentry.c (gtk_entry_grab_focus): Don't
591         select the text if the entry isn't editable. (#67203)
592
593         * gtk/gtkentry.c: Activate keybindings when not editable,
594         but supress keybindings that change the text. (#65848, #68203)
595
596         * gtk/gtkentry.c (gtk_entry_set_property): Reset the
597         IM context for the entry when it is made not editable.
598
599 Tue Feb 26 17:04:44 2002  Owen Taylor  <otaylor@redhat.com>
600
601         * gtk/gtkcolorsel.c (update_color): Emit ::color_changed
602         every time we notify current_color. (Brute force 
603         fix for #72470, Matthias Clasen). Some fixes to improve
604         reentrancy.
605
606 Tue Feb 26 15:04:33 2002  Owen Taylor  <otaylor@redhat.com>
607
608         * gtk/gtkentry.c (gtk_entry_enter_text): use
609         the cursor position _after_ deleting the text
610         as the position to insert at. (#72717, Jan Mynarik)
611
612 2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
613
614         * gtk/gtktreemodel.c
615         misprints in documentation for gtk_tree_row_reference_inserted() 
616         and gtk_tree_path_new () are fixed
617
618 Tue Feb 26 19:47:16 2002  Kristian Rietveld  <kris@gtk.org>
619
620         * gtk/gtktreeview.c (validate_visible_area): take into account
621         that a path from a rowref can be NULL. (#72623 and #72650)
622
623         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_render_or_focus):
624         let focus_rectangle be the same as cell_area for empty cells (#69900)
625
626 Tue Feb 26 11:51:56 2002  Owen Taylor  <otaylor@redhat.com>
627
628         * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): Fix
629         double free.
630
631 Tue Feb 26 10:38:14 2002  Owen Taylor  <otaylor@redhat.com>
632
633         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval): Handle
634         a keyval of 0, by returning an empty list. (#72617,
635         Kevin Breit)
636
637 2002-02-26  Richard Hult  <rhult@codefactory.se>
638
639         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
640         #72586. Silently accept empty tree.
641         (gtk_tree_view_collapse_all): Likewise.
642
643 2002-02-26  Tor Lillqvist  <tml@iki.fi>
644
645         * gtk/gtk.def: A couple of name changes.
646
647 Mon Feb 25 22:10:47 2002  Owen Taylor  <otaylor@redhat.com>
648
649         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): Fix
650         double set of bindings for page-up/down. (#72605, Tor Lillqvist)
651
652         * gtk/gtkmenu.c (gtk_menu_key_press): Remove consumed modiifers
653         when setting up accelerator to make accelerators look prettier.
654         (#65416, Guillermo S. Romero)
655
656 2002-02-26  Tor Lillqvist  <tml@iki.fi>
657
658         * gdk/win32/gdkkeys-win32.c: Implement the functions that until
659         now just were non-functional stubs. For "hardware keycodes", we
660         use Windows virtual keycodes. Not scancodes, although that at
661         first might seem more low-level and a better match to X11
662         keycodes. 
663
664         The Windows API is really mixed up and confused with respect to
665         scancodes and virtual keycodes. (Surprised?) Some scancodes are
666         generated by two keys on the keyboard (!), and although the
667         keyboard messages do have a flag to indicate which key the user
668         pressed, other API that take a scan code as input don't let you
669         specify which actual key you mean.
670
671         (update_keymap): Function to build a X11-like representation of
672         the keyboard. Each key has four keysyms: two levels (nonshifted
673         and shifted) and two groups (normal and with AltGr).
674
675         (gdk_keymap_get_direction): Use the codepage corresponding to the
676         thread's input locale, not the system codepage.
677
678         * gdk/win32/gdkglobals.h
679         * gdk/win32/gdkmain-win32.c
680         * gdk/win32/gdkprivate-win32.h
681         * gdk/win32/gdkwindow-win32.h
682         * gdk/win32/gdkwindow-win32.c: Remove the input_locale and
683         charset_info fields from GdkWindowImplWin32. Input locale is
684         per-thread in Windows, and as GDK on Windows really only works
685         when the GDI interaction all happens in just one thread anyway,
686         this state can be global. Use globals _gdk_input_locale and
687         _gdk_input_codepage instead. Set these based on the thread's input
688         locale (keyboard layout, or which IME is active).
689
690         * gdk/win32/gdkevents-win32.c: Set the group and hardware_keycode
691         fields in GDK key events. On input locale change messages, set
692         the global state variables, and inform update_keymap() that it
693         has to rebuild the keymap.
694         
695 2002-02-25  Matthias Clasen  <maclas@gmx.de>
696
697         * docs/tutorial/gtk-tut.sgml: Fix typos in pkg-config 
698         invokations.  (#72476) 
699
700 Mon Feb 25 18:59:27 2002  Owen Taylor  <otaylor@redhat.com>
701
702         * gtk/gtktooltips.c (start_keyboard_mode): Set the keyboard-mode
703         flag before popping up the tooltip so that pop it up
704         in the right place. (#71917, Narayani Pattipati)
705
706 Mon Feb 25 22:11:34 2002  Kristian Rietveld  <kris@gtk.org>
707
708         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_visible): call
709         _gtk_tree_view_column_cell_set_dirty when visible, so this column
710         gets some space allocated. (#70996)
711
712         * gtk/gtkliststore.c (gtk_list_store_get_path): add simple
713         optimization for the tail case
714         (gtk_list_store_real_set_value): remove unneeded _get_path calls
715
716 Mon Feb 25 12:47:25 2002  Owen Taylor  <otaylor@redhat.com>
717
718         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): 
719         Fix precendence problem. (Sven Neumann)
720
721 Sun Feb 24 23:23:28 2002  Owen Taylor  <otaylor@redhat.com>
722
723         * tests/testselection.c (main): Convert over to using
724         an GtkInvisible - selections don't work properly
725         with now NO_WINDOW GtkToggleButton. (Example really
726         should be using GtkClipboard.)
727
728         * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
729         Fix  problems if sizeof(GdkAtom) != sizeof(Atom). (Unlikely)
730
731         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Set 
732         actual_length when converting atoms as well.
733         (Gregory Merchan, #72074)
734
735 2002-02-24  Havoc Pennington  <hp@pobox.com>
736         
737         * gtk/gtktextview.c (gtk_text_view_value_changed): add dx/dy to
738         child allocation, don't subtract them. Also, copy code from CList
739         to recursively adjust the child allocation, instead of just 
740         adjusting immediate children. #69115
741
742 2002-02-24  Havoc Pennington  <hp@pobox.com>
743
744         * gtk/gtkstyle.c (_gtk_draw_insertion_cursor): change to pass in
745         the cursor direction always, not just when we need an arrow, so we
746         can flip the cursor around its axis for RTL. Resolves #72372
747
748         * gtk/gtkentry.c (gtk_entry_draw_cursor): update for
749         draw_insertion_cursor change
750         
751         * gtk/gtklabel.c (gtk_label_draw_cursor): ditto
752
753         * gtk/gtktextdisplay.c (gtk_text_layout_draw): ditto
754         
755 2002-02-24  Alexander Larsson  <alla@lysator.liu.se>
756
757         * gdk/x11/gdkwindow-x11.c (gdk_window_set_background):
758         Always NULL out bg_pixmap, even when it used to be None
759         or parent relative.
760
761 2002-02-24  Havoc Pennington  <hp@pobox.com>
762
763         * gtk/gtktextbuffer.c (parent_class): parent_class variable was
764         GtkObjectClass instead of GObjectClass
765
766         * gtk/gtktextview.c (widget_to_buffer): fix this the way 
767         buffer_to_widget was fixed, to avoid duplicating 
768         the code that computes text_window->allocation.x/y
769
770 Sun Feb 24 21:18:20 2002  Owen Taylor  <otaylor@redhat.com>
771
772         * gtk/gtksocket.c (gtk_socket_end_embedding): Fix
773         off-by-one error. (Pointed out by Anders Carlsson)
774
775 2002-02-25  Matthias Clasen  <maclas@gmx.de>
776
777         * docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More
778          GTK+ 2.0 updates.
779
780         * docs/tutorial/Makefile.am: build and dist the new tutorial, not
781         the old Linuxdoc one.
782
783 Mon Feb 25 01:14:26 2002  Kristian Rietveld  <kris@gtk.org>
784
785         * gtk/gtktextlayout.c (find_display_line_above): free iter before
786         going to done
787
788         * gtk/gtktreeview.c (validate_visible_area): free above_path,
789         (set_destination_row): free path before returning,
790         (gtk_tree_view_set_drag_dest_row): free current_dest
791
792 Sun Feb 24 14:15:45 2002  Owen Taylor  <otaylor@redhat.com>
793
794         * gtk/gtktextview.c (widget_to_buffer): Take border
795         width into account.
796
797         * gtk/gtklabel.c (get_label_wrap_width): Don't use GdkFont
798         to compute wrap width ... GdkFont will pull in X11 core
799         fonts.
800
801 Sun Feb 24 00:06:58 2002  Owen Taylor  <otaylor@redhat.com>
802
803         * Released 1.3.15.
804
805         * configure.in: Version 1.3.15, binary, interface age 0.
806
807         * NEWS: Updates
808
809         * configure.in: Update version requirements.
810
811 Sat Feb 23 22:37:23 2002  Owen Taylor  <otaylor@redhat.com>
812
813         * gtk/gtkstyle.c (gtk_style_init): Sanity check default
814         font family name and size.
815
816         * gtk/gtkwindow.c (gtk_window_set_default_size): Remove
817         incorrect comment about the geometry widget.
818
819         * gtk/gtkwindow.c (gtk_window_move_resize): Unset the
820         gtk_window_resize)() information once we've set the size
821         once, to avoid it coming back next time we queue a resize.
822         (#72359)
823
824         * gtk/gtkwindow.c (gtk_window_move_resize): Remove
825         sething of ->need_default_position from here, Havoc
826         says that it should correspond more or less exactly
827         to GTK_WIDGET_MAPPED (window).
828
829 Sat Feb 23 23:00:48 2002  Jonathan Blandford  <jrb@redhat.com>
830
831         * gtk/gtktreemodel.h: add () to function macros as per owen's
832         request.
833
834         * gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
835         (gtk_font_selection_show_available_sizes),
836         (gtk_font_selection_set_font_name):
837         * gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
838         (gtk_tree_model_foreach):
839         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
840         (gtk_tree_model_sort_build_level):
841         * gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
842         * gtk/gtktreeview.c: (validate_visible_area),
843         (gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
844         (gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
845         (gtk_tree_view_search_init):
846         * tests/testtreeview.c: (run_automated_tests): change iter_root
847         to iter_first
848
849 Sat Feb 23 22:10:52 2002  Jonathan Blandford  <jrb@redhat.com>
850
851         * gtk/gtktreemodel.c (gtk_tree_path_new_first): change new_root to
852         new_first to avoid confusion.
853         (gtk_tree_model_get_iter_first): ditto.
854
855 Sat Feb 23 20:59:05 2002  Owen Taylor  <otaylor@redhat.com>
856
857         * gtk/gtkstyle.c gtk/gtkrc.[ch]: gtk/gtksettings.c gtk/gtkstyle.c:
858         Patch from Richard Hestilow to add a gtk-font-name GtkSetting.
859
860         * gdk/x11/gdkevents-x11.c: Add Gtk/FontName XSETTING.
861
862 2002-02-24  Tor Lillqvist  <tml@iki.fi>
863
864         * gtk/gtkfilesel.c: Move inclusion of <windows.h> before inclusion
865         of <winsock.h>, to actually get STRICT prototypes for Win32
866         API. Include glib.h early to get G_OS_WIN32 and G_WITH_CYGWIN.
867         Don't declare static functions that aren't defined if !HAVE_PWD_H
868         or if G_OS_WIN32.
869         (win32_gtk_add_drives_to_dir_list): Remove #if 0 code, reindent.
870         (gtk_file_selection_get_selections): Don't crash if nothing has
871         been selected.
872
873 Sat Feb 23 20:33:29 2002  Owen Taylor  <otaylor@redhat.com>
874
875         * gtk/gtkplug.[ch] gtk/gtksocket.[ch] gtk/xembed.h: Implement 
876         accelerator propagation using a custom XEMBED_GTK_KEY_GRAB
877         XEMBED_GTK_KEY_UNGRAB pair of messages.
878
879         * gtk/gtkwindow.[ch]: private export _gtk_window_keys_foreach().
880
881         * gtk/gtkplug.c (gtk_plug_set_is_child): Clear focus and default
882         widgets.
883
884 2002-02-23  Havoc Pennington  <hp@redhat.com>
885
886         * gtk/gtktextbuffer.c (save_range): change gravity of start/end
887         marks so that text added at either end of the range doesn't end up
888         inside the range.
889         (gtk_text_buffer_real_insert_range): fix to handle pasting a range
890         into itself. #71412
891         
892 Sat Feb 23 19:05:34 2002  Jonathan Blandford  <jrb@redhat.com>
893
894         * gtk/gtktreeview.c (validate_visible_area): Didn't refind node
895         when it was NULL.  Bug found by Tor Lillqvist.
896
897 2002-02-24  Tor Lillqvist  <tml@iki.fi>
898
899         * gdk/win32/gdkevents-win32.c (build_keypress_event,
900         build_keyrelease_event, gdk_event_translate): Set also group in
901         the key press/release events, always to zero for now.
902
903 2002-02-24  Anders Carlsson  <andersca@gnu.org>
904
905         * gtk/stock-icons/stock_dialog_error_48.png: 
906         * gtk/stock-icons/stock_sort_ascending_16.png:
907         * gtk/stock-icons/stock_undelete_24.png: 
908         * gtk/stock-icons/stock_sort_descending_16.png: 
909         Alpha-pad icons so they get the correct size.
910         
911 Sat Feb 23 16:52:38 2002  Owen Taylor  <otaylor@redhat.com>
912
913         * gtk/gtkentry.c: Patch from Matthias Clasen to remove some
914         excessive ::changed signals for GtkEntry. (#53130)
915
916 2002-02-23  Tor Lillqvist  <tml@iki.fi>
917
918         * gtk-zip.sh.in: Include the gtkrc files for themes.
919
920 2002-02-23  Anders Carlsson  <andersca@gnu.org>
921
922         * gtk/gtkiconfactory.c (get_default_icons): Register 16x16 
923         versions of most icons.
924
925         * gtk/stock-icons: Add 16x16 versions
926         of most icons.
927
928 Wed Feb 20 16:44:05 2002  Jonathan Blandford  <jrb@redhat.com>
929
930         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): delay
931         scrolling until we try to draw the window.
932
933         * gtk/gtktreeview.c (validate_visible_area): Implement
934         scroll_to_cell.
935
936 2002-02-23  Tor Lillqvist  <tml@iki.fi>
937
938         * gtk/gtk.def: Add missing gtk_file_selection_get_select_multiple.
939         Remove gtk_tree_view_column_cell_* entry points that were made
940         private.
941
942 Sat Feb 23 15:43:46 2002  Owen Taylor  <otaylor@redhat.com>
943
944         * gtk/gtktogglebutton.c: Make button draw depressed whenever
945         the user clicks / activates it, whether it's off/on/inconsistent.
946
947 Sat Feb 23 11:54:12 2002  Owen Taylor  <otaylor@redhat.com>
948
949         * gtk/*.h gdk/*.h: Massive padding addition to class structures.
950
951         * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
952
953 Fri Feb 22 20:28:18 2002  Owen Taylor  <otaylor@redhat.com>
954
955         * gtk/gtkrange.c: Applied patch from Thomas Leonard to make
956         stepper click to scroll take effect immediately, rather than after
957         a delay (#67649).
958
959         * gtk/gtkrange.c: Remove right-click == step in trough since it
960         isn't a useful binding and it's a large area to hit accidentally.
961         (Leave it on the steppers since its more useful there and less
962         likely to do accidentally.)
963
964 2002-02-23  Pablo Saratxaga  <pablo@mandrakesoft.com>
965
966         * configure.in (ALL_LINGUAS): Add "cy" to the language list.
967
968 2002-02-23  Jody Goldberg <jody@gnome.org>
969
970         * gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
971           key_val.
972         (gtk_accel_group_connect_by_path) : ditto.
973         (gtk_accel_group_disconnect_key) : ditto.
974
975         * gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
976         (gtk_widget_real_key_press_event) : ditto.
977
978 Sat Feb 23 00:28:47 2002  Jonathan Blandford  <jrb@redhat.com>
979
980         * gtk/gtktreeviecolumn.c: Documented undocumented functions.
981
982         * gtk/gtktreemodel.c: Documented undocumented functions.
983
984 Sat Feb 23 03:10:20 2002  Kristian Rietveld  <kris@gtk.org>
985
986         * gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
987         max_width while resizing columns (pointed out by Jorn Baayen)
988
989 Fri Feb 22 19:17:46 2002  Owen Taylor  <otaylor@redhat.com>
990
991         Patch from Matthias Clasen (#54488)
992
993         * gtk/gtkwindow.c: Set/unset HAS_FOCUS flags here,
994         and do ::has-focus notifications.
995
996         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtksocket.c
997         gtk/gtktext.c gtk/gtktextview.c gtk/gtkwidget.c:
998         Remove unecessary focus_in/out handles and unecessary
999         flag setting.
1000
1001         * gtk/gtkwidget.c: Adda missing notification on ::parent.
1002
1003 Fri Feb 22 18:36:45 2002  Owen Taylor  <otaylor@redhat.com>
1004
1005         Fixes for AIX compilation from Miroslaw Dobrzanski-Neumann,
1006         #72182.
1007
1008         * demos/gtk-demo/main.c gtk/gtktreeview.c gtk/gtktoolbar.c
1009         gtk/gtkpaned.c gtk/gtkobject.c gtk/gtkcontainer.c 
1010         gtk/gtkcolorsel.c gtk/gtkcellrender.c gdk/x11/xsettings-client.h:
1011         Squash trailing commas on enumerations.
1012
1013         * gdk/gdktypes.h: Drop GDK_RELEASE_MASK to 1 << 30 instead
1014         of 1 << 31 to work around AIX compiler problem. (C standard
1015         seems to imply that compiler is required to use an unsigned
1016         type for the enum value in this case.)
1017
1018         * gdk/gdkpixbuf-drawable.c: Fix lvalue casts.
1019
1020         * gtk/gtkwindow.h: Fix use of enum types for bitfields ... 
1021         compilers may choose to use a signed type for bitfields.
1022
1023 Sat Feb 23 00:34:01 2002  Kristian Rietveld  <kris@gtk.org>
1024
1025         * gtk/gtktreeview.c (validate_rows_handler): leave threads before
1026         returning (#72045)
1027
1028 2002-02-22  Anders Carlsson  <andersca@gnu.org>
1029
1030         * gtk/stock-icons/*: Rename icons.
1031         
1032         * gtk/stock-icons/Makefile.am: Update for new icon names.
1033
1034         * gtk/gtkiconfactory.c (init_icon_sizes): Set the 
1035         GTK_ICON_SIZE_BUTTON size to be 20x20.
1036         (get_default_icons): Change stock names.
1037
1038 Fri Feb 22 22:39:59 2002  Kristian Rietveld  <kris@gtk.org>
1039
1040         * gtk/gtktreeprivate.h: add last_single_clicked and
1041         last_single_clicked_2 rowrefs and add disable_popdown to the
1042         bitfield
1043
1044         * gtk/gtktreeview.c (gtk_tree_view_destroy): add destroy stuff
1045         for two new rowrefs
1046         (gtk_tree_view_button_press): add some 'advanced' button handling,      
1047         so double click is being handled right (double click madness was
1048         discovered by Anders Carlsson)
1049
1050         * gtk/gtktreeview.c (gtk_tree_view_set_property): add missing
1051         break
1052         (gtk_tree_view_class_init): default value of headers_visible
1053         should be TRUE (both pointed out by Damon Chaplin, #71986)
1054
1055         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1056         connect to populate_popup,
1057         (gtk_tree_view_search_disable_popdown): new function,
1058         (gtk_tree_view_real_search_enable_popdown): ditto,
1059         (gtk_tree_view_search_enable_popdown): ditto,
1060         (gtk_tree_view_search_dialog_destroy): check for
1061         gtk-tree-view-popdown-disabled (#71868)
1062
1063         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): move
1064         ->priv->reorderable assignment to bottom. (#72122)
1065
1066 2002-02-22  Havoc Pennington  <hp@redhat.com>
1067
1068         * gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
1069         line endpoint, to avoid cursor dirt in the text widget.
1070         zero-width lines appear to draw the endpoint always. #67999
1071
1072 2002-02-22  Havoc Pennington  <hp@redhat.com>
1073
1074         * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by
1075         using text_window->allocation.x/y instead of recomputing it. 
1076         Fixes a bug caused by leaving out the border width here.
1077
1078 2002-02-22  Havoc Pennington  <hp@redhat.com>
1079
1080         * gtk/gtktextview.c (changed_handler): call
1081         gtk_size_group_queue_resize to avoid invalidating the widget every
1082         time its requisition changes. Instead we use the btree invalid
1083         lines to know what to redraw. Fixes #71429
1084
1085 Fri Feb 22 14:08:38 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1086
1087         * gtk/gtkradiobutton.c, gtk/gtkcheckbutton.c, gtkbutton.h,
1088         gtktogglebutton.c: feedback when check and radio buttons are
1089         depressed.      
1090
1091 2002-02-22  Matthias Clasen  <maclas@gmx.de>
1092
1093         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable):
1094         s/columns/rows/ in docs.  (#70199)
1095
1096         * gtk/gtktreestore.c (gtk_tree_store_insert): s/before/after/ in 
1097         docs. (#71852, #68405)
1098
1099         * gtk/gtkcalendar.c (gtk_calendar_select_day): Correct a comment.
1100
1101 Thu Feb 21 23:02:29 2002  Kristian Rietveld  <kris@gtk.org>
1102
1103         * gtk/gtktreeview.[ch]: add keynav handling for unselect all,
1104         focus column header, change focus with arrow keys in column headers,
1105         column reordering, column resizing, small try to fix page up/down
1106         (this fixes #70889, and fixes a great deal of #53580)
1107
1108 Thu Feb 21 16:51:17 2002  Owen Taylor  <otaylor@redhat.com>
1109
1110         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Add
1111         GDK_ISO_Next_Group/Prev_Group/Level3_Shift/
1112         First_Group/Last_Group to list of invalid accelerators.
1113         (A lot more that should be added, but probably would
1114         want a range mechanism. These are the ones found in
1115         the standard XFree86 config files.)
1116
1117         * gtk/gtkbindings.c (gtk_bindings_activate): Fix problem
1118         that broke bindings for menus.
1119
1120         * gtk/gtkwindow.[ch]: Export _gtk_window_activate_key()
1121         privately.
1122
1123         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Use
1124         _gtk_window_activate_key(), gtk_bindings_activate_event().
1125
1126 Thu Feb 21 12:24:22 2002  Owen Taylor  <otaylor@redhat.com>
1127
1128         * gtk/gtkctree.c (gtk_ctree_class_init): Remove some workarounds
1129         for +/= and shift key handling.
1130
1131 Wed Feb 20 14:26:47 2002  Owen Taylor  <otaylor@redhat.com>
1132
1133         * gtk/gtkkeyhash.[ch]: Implement "fuzzy" key binding lookups;
1134         allow matches on key and level but not group. Also, implement 
1135         ignoring "consumed modifiers correctly."
1136
1137         * gtk/gtkaccelgroup.c gtk/gtkbindings.c: Convert to using
1138         GtkKeyHash.
1139         
1140         * gtk/gtkdebug.h gtk/gtkmain.c: Support GTK_DEBUG=keybindings
1141
1142         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fill in
1143         the group for key release events as well as key press events.
1144
1145         * gdk/gdkkeys.h gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): 
1146         Rename unused_modifiers to consumed_modifiers, make the docs and
1147         non-Xkb implementation match the Xkb implementation.
1148
1149         * gdk/linux-fb/gdkkeyboard-fb.c gdk/win32/gdkkeys-win32.c: Propagate
1150         doc and parameter name changes.
1151
1152         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
1153         XkbTranslateKeyCode doesn't handle LockMask, we need to handle
1154         it ourselves.
1155
1156         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Force
1157         <Shift>Tab to give GDK_ISO_Left_Tab, since we need consistency
1158         to allow dealing with ISO_Left_Tab.
1159         
1160         * gtk/gtkwindow.c gtk/gtktextview.c gtk/gtkscrolledwindow.c
1161         gtk/gtkpaned.c gtk/gtkcombo.c  gtk/gtknotebook.c:
1162         Remove inappropriate uses of GDK_ISO_Left_Tab. (GDK_ISO_Left_Tab
1163         or <Shift>Tab both are equivalent as a binding specifier.)
1164
1165         * gtk/gtkbutton.c (gtk_button_class_init): Make ::activate
1166         GTK_RUN_ACTION, so you can bind an accelerator to it.
1167
1168         * gtk/gtklabel.c (gtk_label_set_uline_text_internal): Call 
1169         gdk_unicode_to_keyval on the mnemonic character.
1170
1171         * tests/testgtk.c: Add a test for the new fuzzy key binding matching.
1172
1173 2002-02-21  jacob berkman  <jacob@ximian.com>
1174
1175         * gtk/theme-bits/Makefile.am (EXTRA_DIST): inconsitent files are
1176         .pngs too
1177
1178 Wed Feb 20 21:52:13 2002  Owen Taylor  <otaylor@redhat.com>
1179
1180         * gtk/gtkselection.c (gtk_selection_request): Set the property
1181         as type ATOM_PAIR, not ATOM. (#72074, Gregory Merchan.)
1182
1183         * gdk/x11/gdk{property,selecton}-x11.c: Auto-convert properties
1184         of type ATOM_PAIR as well as properties of type ATOM.
1185
1186 2002-02-21  Matthias Clasen  <maclas@gmx.de>
1187
1188         * docs/tutorial/images/*.png: screenshots of examples.
1189         
1190         * docs/tutorial/gtk-tut.sgml: remove deprecated widgets, add
1191         screenshots, fix chapters 1-4 for GTK+ 2.0. 
1192
1193         * demos/gtk-demo/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.
1194
1195 Thu Feb 21 00:31:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1196
1197         * gtk/gtkspinbutton.c: Many cleanups and fixes. Draw exclusively
1198         in expose handler. Feedback when buttons are depressed.
1199
1200         * gtk/gtkstyle.c: update for changes in gtkspinbutton.c. Fix
1201         spinbuttons for RTL langauges.
1202
1203 Wed Feb 20 23:00:08 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1204
1205         * gtk/gtkstyle.c: new radio buttons. handle inconsistent state for
1206         check- and radiobuttons.
1207
1208         * gtk/theme-bits/check-13-inconsistent.png,
1209         gtk/theme-bits/radio-13-inconsistent.png: new files
1210
1211         * gtk/theme-bits/radio-13.png: new radio buttons
1212
1213         * gtk/theme-bits/Makefile.am (EXTRA_DIST): add new
1214         -inconsistent.png files
1215
1216 Wed Feb 20 16:19:49 2002  Owen Taylor  <otaylor@redhat.com>
1217
1218         * gdk/x11/gdkevents-x11.c: Add a XSETTING mapping for
1219         gtk-can-change-accels. (#70218, Thomas Leonard.)
1220
1221 2002-02-20  Sven Neumann  <sven@gimp.org>
1222
1223         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
1224         handler_id before disconnecting the signal handler since it might
1225         have never been connected if the GtkColorSelection is destroyed
1226         before it was realized.
1227
1228 2002-02-20  Matthias Clasen  <maclas@gmx.de>
1229
1230         * docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
1231         the examples.  
1232
1233         * docs/tutorial/gtk-tut.sgml, examples/progressbar/progressbar.c,
1234         examples/progressbar/Makefile: Make the progressbar example 
1235         deprecation-clean.
1236
1237 Tue Feb 19 22:10:59 2002  Kristian Rietveld  <kris@gtk.org>
1238
1239         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_mnemonic_activate): new
1240         function
1241         (gtk_tree_view_column_create_button): use g_signal_* instead of
1242         gtk_signal_*, hook up _mnemonic_activate callback
1243         (gtk_tree_view_column_update_button): use
1244         gtk_label_set_text_width_mnemonic instead of gtk_label_set_text
1245         (#69095)
1246
1247         * gtk/gtktreeview.c (gtk_tree_view_class_init): remove key bindings
1248         for C-f and C-b, let treeview search use C-f (instead of C-s)
1249         (#61866)
1250
1251         * gtk/gtkrc.key.emacs: add some GtkTreeView bindings
1252
1253 Tue Feb 19 20:56:32 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1254
1255         * gtk/theme-bits/decompose-bits.c (do_part): fix bug (skipping all
1256         black pixels).
1257
1258 2002-02-19  Sven Neumann  <sven@gimp.org>
1259
1260         * examples/*/*.c: finish conversion to g_signal_* functions by
1261         using G_OBJECT and G_CALLBACK and other assorted changes.
1262
1263 Tue Feb 19 17:36:31 2002  Kristian Rietveld  <kris@gtk.org>
1264
1265         * gtktreeprivate.h, gtktreeviewcolumn.[ch], gtktreeview.c: change
1266         gtk_tree_view_column_cell_render,
1267         gtk_tree_view_column_cell_focus,
1268         gtk_tree_view_column_cell_draw_focus and
1269         gtk_tree_view_column_cell_set_dirty to be private functions.
1270
1271         * gtktreeviewcolumn.[ch]: add install_handler argument to
1272         _cell_set_dirty to control if _mark_rows_col_dirty (which calls
1273         install_presize_handler) gets called, set widths correctly so
1274         autosizing works (#71870)
1275
1276         * gtktreeview.c (gtk_tree_view_column_autosize): new function,
1277         (gtk_tree_view_button_press): make double click on column
1278         separator resize the row (#71870)
1279         (gtk_tree_view_get_dest_row_at_pos): change DnD threshold to 33%
1280         (#71869, suggestion by Anders Carlsson)
1281
1282 Mon Feb 18 23:16:16 2002  Owen Taylor  <otaylor@redhat.com>
1283
1284         * gtk/gtkmain.[ch]: Add routines _gtk_find_module(),
1285         _gtk_get_module_path() to look up a module of an arbitrary type in
1286         a standard fashion. (#68474)
1287
1288         * gtk/gtkrc.c: Make module_path keyword warn and do
1289         nothing. Remove the im_module_path keyword.
1290
1291         * gtk/gtkrc.c (gtk_rc_get_im_module_path): Fix
1292         to return the standard path instead of one determined
1293         from im_module_path and GTK_IM_MODULE_PATH.
1294         
1295         * gtk+-2.0.pc.in: Add gtk_host to go along with gtk_binary_version.
1296
1297 2002-02-19  Matthias Clasen  <maclas@gmx.de>
1298
1299         * docs/tutorial/gtk-tut.sgml, docs/examples/*: Trivial formatting
1300         fixes to all examples, simple functional fixes to rangewidgets example.
1301
1302 Mon Feb 18 18:27:45 2002  Owen Taylor  <otaylor@redhat.com>
1303
1304         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Select
1305         the right item in the family list. (Reported by Mark Patton,
1306         Patch from Satajyit Kanungo, #64240)
1307
1308         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Update
1309         the size and face entry lists as well, fix memory leak.
1310         (Also #64240)
1311
1312         * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): 
1313         Allow fractional sizes, unselect the selected row if none
1314         matches.
1315
1316         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_focus): Fix
1317         a bug where the scrolled window would always get focus
1318         when focusing out of the child.
1319
1320 2002-02-18  Hans Breuer  <hans@breuer.org>
1321
1322         * gdk/win32/gdkevents-win32.c : process WM_PAINT messages
1323         for bg_pixmap == GDK_NO_BG, fixes The GIMP's canvas
1324         rendering glitches on win32
1325
1326         * gdk/win32/gdkinput-win32.c : use g_object_new to create
1327         GdkDevice instead of g_new
1328  
1329         * gtk/gtkpaned.c : make LAST_SIGNAL the last in enum. 
1330         This avoids to smash totally unrelated static data and
1331         resulting random crashes. (as reported on gtk-devel-list, 
1332         2002-02-10 : testgtk crashes)
1333
1334         * gtk/gtk.def : add new file selection entry points
1335
1336 Mon Feb 18 17:34:43 2002  Owen Taylor  <otaylor@redhat.com>
1337
1338         * gtk/gtkentry.c gtk/gtktextview.c: Remove support for
1339         the poorly defined text/plain type for now. (#55117)
1340
1341 Mon Feb 18 16:44:00 2002  Owen Taylor  <otaylor@redhat.com>
1342
1343         * docs/widget_system.txt: Add some docs for GTK_NEED_REQUEST
1344         GTK_NEED_ALLOCATION.
1345
1346         * gtk/gtkmenu.c (gtk_menu_popup): Scroll the menu
1347         to the right place before showing the menu to
1348         avoid spurious enter events.
1349
1350         * gtk/gtkmenu.c (gtk_menu_realize): Only scroll
1351         if there is an active menu item.
1352
1353         * gtk/gtkwidget.c (gtk_widget_init): Set RESIZE_NEEDED
1354         ALLOC_NEEDED initially.
1355
1356 2002-02-18  Matthias Clasen  <maclas@gmx.de>
1357
1358         * NEWS: fix version number.
1359
1360 2002-02-18  Manish Singh  <yosh@gimp.org>
1361
1362         * Makefile.am: don't comment out the lines to dist the packer
1363         example, just simply remove it. (the continuation line confused
1364         make even though it was in the comment, barf)
1365
1366 Mon Feb 18 14:40:22 2002  Owen Taylor  <otaylor@redhat.com>
1367
1368         * gtk/gtkcombo.c (gtk_combo_popdown_list): Fix problems
1369         with stuck grab (#60132, reported by Nicolas Setton) and
1370         stuck prelighting. Combine duplicated code in three
1371         places for popping down the list.
1372
1373 Mon Feb 18 14:17:59 2002  Owen Taylor  <otaylor@redhat.com>
1374
1375         * gtk/gtkclist.c (adjust_adjustments) 
1376         * gtk/gtklayout.c (gtk_layout_size_allocate)
1377         * gtk/gtktextview.c (gtk_text_view_size_allocate) 
1378         * gtk/gtktreeview.c (gtk_tree_view_size_allocate) 
1379         * gtk/gtkviewport.c (gtk_viewport_size_allocate):
1380         Standardize on a page increment of page minus 1 line
1381         rather than half a page (#51027, Eric Fischer)
1382
1383         * gtk/gtkviewport.c (gtk_viewport_size_allocate): 
1384         Change step increment to be 0.1 * page_size height rather than
1385         a fixed 10 pixels.
1386
1387 Mon Feb 18 12:31:52 2002  Owen Taylor  <otaylor@redhat.com>
1388
1389         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
1390         Don't commit unless we got at least one hex digit. (#70619)
1391
1392 Sun Feb 17 21:30:49 2002  Owen Taylor  <otaylor@redhat.com>
1393
1394         * Released 1.3.14
1395
1396         * configure.in: Version 1.3.14, interface, binary age 0.
1397
1398         * gdk/gdkregion-generic.c (miSubtractO): Fix out-of-bounds
1399         read. (#71619, reported by Morten Welinder)
1400
1401         * gtk/gtkmenu.c (gtk_menu_class_init): Fix setting default.
1402
1403         * gtk/gtkfilesel.c (gtk_file_selection_class_init): Add
1404         a select_multiple property to go along with thenew 
1405         get/set_select_multiple.
1406
1407         * gdk/gdkwindow.c: Patch from Soeren Sandmann to improve
1408         update debugging code. (#71703)
1409
1410 2002-02-17  Tor Lillqvist  <tml@iki.fi>
1411
1412         * gdk/win32/gdkcolor-win32.c (free_colors): Don't set the
1413         PC_EXPLICIT flag for unused palette entries, that might have
1414         undesired side effects. Just set them to black. Black is always
1415         present in a palette, so having superfluous black entries won't
1416         cause any extra allocations from the system palette either when
1417         realized.
1418
1419         * gdk/win32/gdkevents-win32.c
1420         (gdk_event_translate:WM_QUERYNEWPALETTE): Don't do anything if the
1421         system visual is static color, i.e. the user has told GDK to use
1422         just the 16 static colors. In that case no need to redraw
1423         anything, as the colors are static and by definition always
1424         correctly mapped in the system palette.
1425         (WM_PALETTECHANGED): Ditto, no need to call UpdateColors() either.
1426         
1427         * gtk/gtk.def: Add new gtkfilesel entry points.
1428
1429 2002-02-17  Matthias Clasen  <maclas@gmx.de>
1430
1431         * docs/tutorial/gtk-tut.sgml, examples/paned/paned.c, 
1432         examples/paned/Makefile: Make the paned example deprecation-clean.
1433
1434 2002-02-17  jacob berkman  <jacob@ximian.com>
1435
1436         * Makefile.am: remove the packer example files as they don't exist
1437         in CVS.
1438
1439 2002-02-16  Manish Singh  <yosh@gimp.org>
1440
1441         * tests/testgtk.c: hm, check buttons look better for below.
1442
1443 2002-02-16  Manish Singh  <yosh@gimp.org>
1444
1445         * tests/testgtk.c: redid the filesel test. Added a way to set select
1446         multiple as a toggle button, and made show/hide fileops toggle
1447         buttons as well. get_selections() is called on OK and all the
1448         filenames selected are printed.
1449
1450 2002-02-17  Tor Lillqvist  <tml@iki.fi>
1451
1452         * README.win32: Remove comment about the gtk-1-3-win32-production
1453         branch having more functionality.
1454
1455         * gdk/win32/*.c: Massive changes. Too many to list here, but I'll
1456         try a summary:
1457
1458         1) Unify GdkPixmap and GdkImage implementation: For each
1459         GdkPixmap, allocate a GdkImage, and vice versa.
1460         GdkPixmapImplWin32Data has a pointer to the GdkImage.
1461         GdkImage::windowing_data is a pointer to the GdkPixmap.
1462
1463         This simplifies many pixmap and image related functions a lot, and
1464         reduces duplicated code. For instance, there is only one
1465         place in gdk/win32 where CreateDIBSection() is called, in the
1466         function _gdk_win32_new_pixmap(). Converting a bitmap (GdkPixmap)
1467         to a Windows region is almost trivial, with the bitmap bits being
1468         readily accessible in the associated GdkImage.
1469
1470         All blitting between GdkPixmaps, GdkWindows and GdkImages goes
1471         through handled the _gdk_win32_blit() function, which calls
1472         different functions to handle the cases of blitting from pixmaps,
1473         inside windows (scrolling), or from windows, which all require
1474         somewhat different handling.
1475
1476         2) Support 256-color mode. This has long been very broken, now it
1477         works more or less OK. Keep the logical palette for each colormap
1478         as small as possible while allocating and freeing colors. Select
1479         and realize the logical palette associated with a GdkColormap into
1480         a DC before drawing or blitting.
1481
1482         When the display is in 256-color mode, make it possible for the
1483         user to override the size of the palette(s) used with either the
1484         GDK_WIN32_MAX_COLORS environment variable, or a -max-colors
1485         command line option. It is possible to reduce the palette size all
1486         the way down to using just the 16 static colors (which causes the
1487         system visual to be of type GDK_VISUAL_STATIC_COLOR. This could
1488         possibly be useful if one desperately wants to avoid color
1489         flashing. (Note that in order for this to work properly, an as of
1490         yet not commited fix to gdkrgb.c is needed.)
1491
1492         Handle the palette messages. On WM_PALETTECHANGED, call
1493         UpdateColors() for the given window hierarchy. Do this only if a
1494         window in some other top-level window hierarchy caused the palette
1495         change (realized a palette). Do this max five times in a row (an
1496         arbitrarily chosen limit), though, otherwise redraw by generating
1497         expose events. On WM_QUERYNEWPALETTE, cause a redraw of the whole
1498         window hierarchy by generating GDK_EXPOSE events.
1499
1500         3) Code cleanup in general. For instance, remove the "emulated"
1501         X11 structs ColormapStruct, Visual and XStandardColormap. Use the
1502         new GDK_DEBUG_* flags for debugging output in the relevant source
1503         files. Remove the unused colormap hash table in gdkcolor-win32.c
1504
1505         4) Plug some resource leaks.
1506
1507 2002-02-14  Tor Lillqvist  <tml@iki.fi>
1508
1509         * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Use
1510         g_filename_to_uri() to actually create legal URIs in the
1511         text/uri-list data.
1512
1513 2002-02-16  Manish Singh  <yosh@gimp.org>
1514
1515         * gtk/gtkfilesel.[ch]: Added multiple selection API
1516
1517 2002-02-16  Manish Singh  <yosh@gimp.org>
1518
1519         * gdk/linux-fb/miarc.c: use fabs() on a double instead of abs()
1520
1521 2002-02-17  Matthias Clasen  <maclas@gmx.de>
1522
1523         More work on #71430.
1524
1525         * examples/*/Makefile (CFLAGS): add deprecation guards.
1526         
1527         * docs/tutorial/gtk-tut.sgml, examples/*/*.c: make most examples
1528         deprecation-clean; the major offenders right now are the examples
1529         that make heavy use of completely deprecated or broken widgets:
1530         list, tree, text, pixmap, paned and progressbar. These will have
1531         to be redone from scratch.
1532
1533 Sun Feb 17 00:13:06 2002  Kristian Rietveld  <kris@gtk.org>
1534
1535         This commit lands the 'dy patch'.
1536
1537         * gtk/gtktreeview.c (validate_rows_handler): update top_row or dy,
1538         (gtk_tree_view_top_row_to_dy): new function,
1539         (gtk_tree_view_row_changed): update top_row or dy,
1540         (gtk_tree_view_rows_reordered): update top_row
1541
1542 2002-02-16  Matthias Clasen  <maclas@gmx.de>
1543
1544         * demos/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.
1545
1546 2002-02-16  Matthias Clasen  <maclas@gmx.de>
1547
1548         * examples/extract.awk: rearrange rules to not emit the example 
1549         start and end markers.
1550
1551         * docs/tutorial/gtk-tut.sgml: turn the start and end markers into
1552         SGML comments, so they don't clutter the formatted tutorial.
1553
1554 2002-02-16  Havoc Pennington  <hp@pobox.com>
1555
1556         * gtk/gtkwindow.c (gtk_window_parse_geometry): take
1557         GDK_HINT_RESIZE_INC into account, and handle negative coordinates
1558         correctly. (Can't email Owen - hope this is OK.)
1559
1560 Fri Feb 15 20:09:45 2002  Owen Taylor  <otaylor@redhat.com>
1561
1562         * gtk/gtkscrolledwindow.[ch] gtk/gtkmarshallers.list:
1563         Add key bindings on GtkScrolledWindow for arrow keys,
1564         PageUp/PageDown Home/End to scroll the window. 
1565         Bind Control-[Shift]-Tab to focus out of the scrolled
1566         window entirely. Allow the scrolled window to be
1567         focused if no child can be focused. (#63480)
1568
1569         * gtk/gtkwidget.c (gtk_widget_hide): Remove the REALIZED()
1570         check - if we have visible but not mapped widgets 
1571         (inside a unshown notebook tab, for instance), we need
1572         to track their size. (#65087, reported by Damon Chaplin.)
1573
1574         * gtk/gtkcolorsel.c (palette_change_color): Shut up
1575         a warning.
1576
1577 2002-02-16  Tor Lillqvist  <tml@iki.fi>
1578
1579         * gdk/win32/rc/Makefile.am (gdk-win32res.lo): Depend on gtk.ico.
1580
1581         * gdk/win32/rc/gtk.ico: Use the real GTK logo. Thanks to Jernej
1582         Simoncic for providing the nice multi-resolution .ico file.
1583
1584 2002-02-15 Alexey Malyshev <maa@sparc.spb.su>
1585         
1586         * gtk/tmpl/gtkimage.sgml
1587         removed wrong sentence from gtk_image_new() docs
1588
1589 Fri Feb 15 19:38:00 2002  Kristian Rietveld  <kris@gtk.org>
1590
1591         * gtk/gtktreestore.c (gtk_tree_store_clear_traverse): new function
1592         (gtk_tree_store_clear): traverse the tree, so we emit row_deleted
1593         for every node. This way we don't have confused row refs crashing the
1594         application. (#70631)
1595
1596 2002-02-14  Richard Hult  <rhult@codefactory.se>
1597
1598         * gtk/gtkpaned.c (gtk_paned_enter): Only queue a draw on the
1599         handle, not the whole widget. #71530.
1600         (gtk_paned_leave): Likewise.
1601
1602 2002-02-14  Jody Goldberg <jody@gnome.org>
1603
1604         * gtk/gtkrange.c (gtk_range_class_init) : add new signal
1605           'adjust_bounds' to potentialy change the bounds before assigning the
1606           new value and camping it to the existing bounds.
1607         (gtk_range_internal_set_value) : used here. #68800.
1608         * gtk/gtkmarshalers.list : add VOID:DOUBLE
1609
1610 Thu Feb 14 21:08:49 2002  Owen Taylor  <otaylor@redhat.com>
1611
1612         * gdk/gdkglobals.c: Remove GDKVAR from C file, see
1613         if anyone complains. (#71317, Morten Welinder.)
1614
1615 2002-02-14  Matthias Clasen  <maclas@gmx.de>
1616
1617         The following changes are the beginning of the work on #71430.
1618         
1619         * examples/extract.sh, examples/extract.awk: Make extraction work.
1620         
1621         * examples/Makefile (SUBDIRS): Remove packer.
1622
1623         * examples/packer/pack.c, examples/packer/Makefile: Removed.
1624
1625         * docs/tutorial/gtk-tut.sgml: Fix the included examples far
1626         enough to make them compile and (mostly) work, remove the packer
1627         example.
1628
1629 Thu Feb 14 16:46:48 2002  Owen Taylor  <otaylor@redhat.com>
1630
1631         * gtk/gtkentry.c gtk/gtktextdisplay.c gtk/gtklabel.c
1632         gtk/gtkstyle.[ch] gtk/gtkwidget.c: Patch from Bill
1633         Haneman and Padraig O'Briain to add cursor_aspect_ratio
1634         style property to GtkWidget to allow theming the aspect
1635         ratio of the cursor.
1636
1637         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtklabel.c
1638         gtk/gtkwidget.c tests/testgtkrc: Move cursor-color style property
1639         to GtkWidget.
1640
1641 Thu Feb 14 11:13:22 2002  Owen Taylor  <otaylor@redhat.com>
1642
1643         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_surrounding): 
1644         Fix bug where we called get_surrounding on the context,.
1645         not the slave.
1646
1647 Thu Feb 14 00:10:09 2002  Owen Taylor  <otaylor@redhat.com>
1648
1649         * gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
1650         pop the tooltip down on a select set of events, not
1651         on any unknown event. (#71157, Jody Goldberg)
1652
1653         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
1654         Fix some warnings.
1655
1656 Thu Feb 14 00:02:21 2002  Owen Taylor  <otaylor@redhat.com>
1657
1658         * gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
1659         small allocation/drawing fixes.
1660
1661         * gtk/gtkcalendar.c: Replace DAY_XPAD, DAY_YPAD with
1662         GtkWidget::focus-padding
1663
1664 Wed Feb 13 23:01:20 2002  Owen Taylor  <otaylor@redhat.com>
1665
1666         * gtk/gtkcalendar.c: Patch from Bill Haneman to draw
1667         to focus using gtk_paint_focus() with the focus width
1668         GtkWidget::focus-width. (#63075)
1669
1670         * gtk/gtkcalendar.c (gtk_calendar_size_request): Initialize
1671         label_char_ascent/descent to 0. (#56925, reported by
1672         (Jean-Noel Guiheneuf)
1673
1674 2002-02-13  Havoc Pennington  <hp@redhat.com>
1675
1676         * gtk/gtktextview.c (gtk_text_view_flush_scroll): validate a
1677         larger area, proportional to widget size, to fix
1678         #71427 reported by Dennis Bjorklund
1679
1680 2002-02-13  Havoc Pennington  <hp@redhat.com>
1681
1682         * gtk/gtktextview.c (gtk_text_view_paint): just go ahead and flush 
1683         all the first validate stuff if it hasn't been done, presumably
1684         someone called process_updates at a weird time.
1685
1686         * tests/testtext.c (do_apply_colors): terminate on >= end, not >
1687         end, avoids infinite loop when end is at the end of the buffer.
1688
1689         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when creating a
1690         line data, we were adding it to the wrong line ("line" instead of
1691         "start_line")
1692
1693 2002-02-13  Joe Shaw  <joe@ximian.com>
1694
1695         * gtk/gtktreeitem.c (gtk_tree_item_expose): Don't chain up to the
1696         container's expose event.  Instead call
1697         gtk_tree_item_expose_child() on each child.  Avoids a failed
1698         g_assert() in gtk_container_propagate_expose().
1699         (gtk_tree_item_expose_child): Added.  Synthesize an expose event
1700         for our children.  Basically gtk_container_propagate_expose()
1701         minus the g_assert().  (#71396)
1702
1703 2002-02-13  Tor Lillqvist  <tml@iki.fi>
1704
1705         * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
1706         fine-grained debugging output (mainly used in the Win32 backend).
1707
1708         * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
1709
1710 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
1711
1712         * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
1713         as toggle-tooltips-mode.
1714
1715         * gtk/gtktooltips.c: Remove parsing of tooltips style
1716         string from here ... now in gtkrc.c.
1717
1718 Wed Feb 13 12:41:44 2002  Owen Taylor  <otaylor@redhat.com>
1719
1720         * gtk/gtkmain.c (gtk_init_check): g_warning() if setting
1721         the local fails, like gdk_set_locale() did.
1722
1723         * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list): 
1724         Don't free local_list if local_count == 0. (#71241, reported
1725         by Kevin Vandersloot.)
1726
1727         * gdk/x11/gdkselection-x11.c (gdk_text_property_to_text_list): 
1728         Clean up list == NULL handling and failure.
1729
1730 Wed Feb 13 11:27:31 2002  Owen Taylor  <otaylor@redhat.com>
1731
1732         * tests/testtreeview.c (typesystem_recurse): Cast GType
1733         to long and use %ld to fix warning. (#71318, Morten Welinder)
1734
1735 Wed Feb 13 13:26:39 2002  Tim Janik  <timj@gtk.org>
1736
1737         * gtk/gtkmenu.c: fix figuring accel path and changing behaviour.
1738
1739 Wed Feb 13 06:42:37 2002  Tim Janik  <timj@gtk.org>
1740
1741         * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
1742         my recent expanding change to not expand the table if all children
1743         have not epxand behaviour. this fixes palette views which often
1744         use homogeneous non-expanding tables.
1745
1746 Tue Feb 12 14:27:41 2002  Kristian Rietveld  <kris@gtk.org>
1747
1748         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
1749         row_deleted before we start unreffing the nodes ourselves
1750         (gtk_tree_model_sort_increment_stamp): always increment the stamp,
1751         and not only if the stamp equals 0 (pointed out by Darin Adler)
1752
1753         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): we want
1754         to continue the while loop and not the nested for loop.
1755
1756 Tue Feb 12 02:19:49 2002  Tim Janik  <timj@gtk.org>
1757
1758         * gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
1759         the extra space allocated for the homogeneous case, as we don't
1760         properly deal with readjusting table allocation within it. (for  this
1761         purpose, a GtkAlignment can be used as table parent).
1762
1763 2002-02-11  Darin Adler  <darin@bentspoon.com>
1764
1765         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
1766         Consider reordering the row even when there's no sort column, if
1767         there's a default sort function.
1768         (gtk_tree_model_sort_rows_reordered): Use symbolic constants.
1769         (gtk_tree_model_sort_level_find_insert): Add code to handle the
1770         case where there is no sort column, but a default sort function.
1771         (gtk_tree_model_sort_insert_value): Add code to handle the case
1772         where there is no sort column an no default sort function.
1773         (gtk_tree_model_sort_set_model): Use symbolic constant.
1774         (gtk_tree_model_sort_reset_default_sort_func): Use symbolic constant.
1775
1776 2002-02-11  Sven Neumann  <sven@gimp.org>
1777
1778         * gtk/gtkfilesel.c: converted the "Delete File" dialog to
1779         GtkMessageDialog. Marked missing strings for translation.
1780
1781 Mon Feb 11 22:03:15 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1782
1783         * gtk/gtkpaned.[ch]: Opaque resizing + prelighting for paned widget.
1784         * gtk/gtkvpaned.c, gtk/gtkhpaned.c: move reszing logic to gtkpaned.c
1785
1786 Mon Feb 11 21:42:17 2002  Kristian Rietveld  <kris@gtk.org>
1787
1788         Implements DnD scrolling and fixes #71139
1789
1790         * gtk/gtktreeview.c (gtk_tree_view_vertical_autoscroll): new function,
1791         (scroll_row_timeout): new function,
1792         (gtk_tree_view_drag_motion): create scroll_timeout, so
1793         scroll_row_timeout gets called
1794
1795 Mon Feb 11 17:54:46 2002  Kristian Rietveld  <kris@gtk.org>
1796
1797         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
1798         member of hadjustment correct, so the hscrollbars of lists smaller
1799         than 1 page (in width) are somewhat saner
1800
1801 2002-02-11  jacob berkman  <jacob@ximian.com>
1802
1803         * gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to
1804         match implementation
1805
1806 Mon Feb 11 16:48:34 2002  Kristian Rietveld  <kris@gtk.org>
1807
1808         * gtk/gtkliststore.c (gtk_list_store_set_valist): set value of
1809         func to NULL during initialization (we don't use func in the
1810         !SORTED case, so we just silent the compiler here) (#71029)
1811
1812 Mon Feb 11 16:40:44 2002  Kristian Rietveld  <kris@gtk.org>
1813
1814         * gtk/gtktreeview.c (gtk_tree_view_set_model): install presize
1815         handler, so the validate_rows_handler will always be run (#70997)
1816
1817 Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
1818
1819         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
1820         value of new_location by one if cmp_a > 0 and we hit the end of
1821         the list and pass NULL instead of a 'NULL-iter' with
1822         _rows_reordered (#71060)
1823
1824 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
1825
1826         * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
1827         imti-et.c} po/POTFILES.in: Add three Ethiopic input methods from
1828         Daniel Yacob.
1829
1830 2002-02-10  Anders Carlsson  <andersca@gnu.org>
1831
1832         * gtk/gtkcalendar.c (gtk_calendar_class_init): Set finalize handler;
1833         (gtk_calendar_finalize): Rename gtk_calendar_destroy to 
1834         gtk_calendar_finalize since ::destroy can be called multiple times, 
1835         resulting in double-freeing memory.
1836
1837 2002-02-10  Hans Breuer  <hans@breuer.org>
1838
1839         * gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
1840         rect size by the scroll amount
1841
1842         * gdk/win32/gdkwindow-win32.c
1843         * gdk/win32/gdkselection-win32.c : added some casts to
1844         make it compile with msvc's strict type checking
1845
1846         * gtk/fnmatch.c : #include <ctype.h> again for tolower
1847         prototype. The fnmatch() code assumes to be in the crt 
1848         locale though it is feeded by utf8 strings from gtkfilesel.c
1849
1850         * gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
1851         _CompletionDir instead of referencing already freed memory
1852
1853         * gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
1854         gtk_rc_parse_string (theDefaultTooltipColor) once as it
1855         was intended
1856
1857         * tests/makefile.msc : added more tests
1858
1859         * tests/testgtk.c (create_list) : don't try to load gtkenums.h
1860         from the current directory use ../gtk/gtkenums.h instead
1861
1862 2002-02-10  Kjartan Maraas  <kmaraas@gnome.org>
1863
1864         * gtk/gtksizegroup.c: Fix a double "The" typo in a string.
1865         
1866 2002-02-09  Matthias Clasen  <matthias@local>
1867
1868         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Avoid segfault
1869         for selectable tab labels (even without a segfault, they make the
1870         notebook almost unusable, though).  (#69985)
1871
1872 2002-02-08  Matthias Clasen  <matthias@local>
1873
1874         * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Silently do 
1875         nothing if the parent is not a menu.  (#66492)
1876
1877 2002-02-06  Matthias Clasen  <matthiasc@poet.de>
1878
1879         * gtk/gtkitemfactory.c (gtk_item_factory_from_widget,
1880         gtk_item_factory_path_from_widget): Try fetching the return value 
1881         from menu_item->submenu as a fallback.  (#69020)
1882         
1883 Sat Feb  9 22:57:43 2002  Kristian Rietveld  <kris@gtk.org>
1884
1885         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): convert
1886         the iter to a child iter again, after doing _iter_children. It's
1887         possible that _iter_children added some rows and updated the stamp.
1888
1889 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
1890
1891         * gtk/gtktextchild.c: Use == rather than = in sanity
1892         checks.  Ouch!
1893
1894 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
1895
1896         * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
1897         curled braces so that it doesn't always return.  Also indent
1898         both CHECK_IN_BUFFER* macros properly, and make use of
1899         G_STMT_START/G_STMT_END.
1900
1901 Sat Feb  9 13:27:14 2002  Owen Taylor  <otaylor@redhat.com>
1902
1903         * gtk/gtkbindings.h: Add prototype for
1904         _gtk_binding_reset_parsed().
1905
1906 Sat Feb  9 13:19:20 2002  Owen Taylor  <otaylor@redhat.com>
1907
1908         * configure.in gtk/Makefile.am gtk/theme-bits/*: Add
1909         tools and images used for creating the check/radio
1910         button images in the default theme.
1911
1912 Sat Feb  9 13:58:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1913
1914         * gtk/gtkpaned.[ch]: Keyboard navigation for GtkPaned
1915         F6: cycle between panes.
1916         F8: focus handle (#53584)
1917         
1918         * tests/testgtk.c: Add test cases for GtkPaned keyboard 
1919         navigation.
1920         
1921 Sat Feb  9 00:16:31 2002  Owen Taylor  <otaylor@redhat.com>
1922
1923         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): 
1924         XCopyArea with subwindow_mode = IncludeInferiors.
1925         (#70999)
1926
1927         * demos/testpixbuf-save.c (configure_cb): Fix a minor
1928         memory management problem.
1929
1930 Fri Feb  8 20:24:58 2002  Owen Taylor  <otaylor@redhat.com>
1931         
1932         * gtk/gtkbindings.c (binding_compose_params): Fix problem
1933         with string-valued parameters (#70012, Johan Dahlin.)
1934
1935         * gtk/gtkentry.c (gtk_entry_delete_whitespace): Fix 
1936         white space deletion.
1937
1938 Fri Feb  8 21:25:56 2002  Jonathan Blandford  <jrb@redhat.com>
1939
1940         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): fix
1941         evil ref bug where the wrong row and a deleted row was unreffed.
1942         Found by Darin Adler <darin@bentspoon.com>
1943
1944 Fri Feb  8 18:46:13 2002  Owen Taylor  <otaylor@redhat.com>
1945
1946         * gtk/gtkbindings.[ch] (_gtk_binding_reset_parsed): Add
1947         a function to delete all bindings add by
1948         gtk_binding_parse_binding() when rereading RC files.
1949
1950         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Reset
1951         binding set content as well as RC content.
1952
1953         * gtk/gtkbindings.c (binding_compose_params): Fix 
1954         various GValue handling problems.
1955
1956         * gtk/gtkentry.c (gtk_entry_class_init): Remove bindings 
1957         for C-b, C-f, M-b, M-f, C-a, C-e, C-w, C-y, M-space, C-u,
1958         C-k, M-\, M-d, C-d.
1959
1960         * gtk/gtktextview.c (gtk_text_view_class_init): Remove
1961         same bindings as GtkEntry, plus C-n, C-p, C-space
1962
1963         * gtk/gtkrc.key.default gtk/gtkrc.key.emacs gtk/Makefile.am:
1964         Add Emacs and Default key themes.
1965         
1966 2002-02-08  Darin Adler  <darin@bentspoon.com>
1967
1968         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
1969         Remove a tiny bit more dead code.
1970
1971 2002-02-08  Darin Adler  <darin@bentspoon.com>
1972
1973         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
1974         Fix stale pointer bug.
1975
1976 Fri Feb  8 14:30:14 2002  Owen Taylor  <otaylor@redhat.com>
1977
1978         * gtk/gtkclist.c (title_focus_in): Return FALSE if
1979         not showing the titles. (#70959, Thomas Leonard)
1980
1981 2002-02-08  Darin Adler  <darin@bentspoon.com>
1982
1983         * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
1984         * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
1985         * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
1986         * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
1987         * gtk/fnmatch.c: Remove <ctype.h> include.
1988         * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
1989         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
1990         g_unichar_toupper, toupper -> g_unichar_totile
1991         * gtk/gtkbindings.c: Remove <ctype.h> include.
1992         * gtk/gtkfontsel.c: Remove <ctype.h> include.
1993         * gtk/gtkiconfactory.c: Remove <ctype.h> include.
1994         * gtk/gtkinputdialog.c: Remove <ctype.h> include.
1995         * gtk/gtklabel.c: Remove <ctype.h> include.
1996         * gtk/gtkmain.c: Remove <ctype.h> include.
1997         * gtk/gtkmenu.c: Remove <ctype.h> include.
1998         * gtk/gtkoldeditable.c: Remove <ctype.h> include.
1999         * gtk/gtkrc.c: Remove <ctype.h> include.
2000         * gtk/gtktextbtree.c: Remove <ctype.h> include.
2001         * gtk/gtktextiter.c: Remove <ctype.h> include.
2002         * gtk/gtktextsegment.c: Remove <ctype.h> include.
2003
2004 2002-02-08  Sven Neumann  <sven@gimp.org>
2005
2006         * gtk/gtkfilesel.c
2007         * gtk/gtkgamma.c
2008         * gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
2009
2010 2002-02-08  Darin Adler  <darin@bentspoon.com>
2011
2012         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
2013         (gtk_tree_model_sort_unref_node): Pass the ref_node and
2014         unref_node calls through to the child model.
2015
2016 2002-02-08  Laszlo Peter  <laca@ireland.sun.com>
2017
2018         * gtk/gtktextchild.c: s/__FUNCTION__/G_GNUC_FUNCTION/
2019         * gtk/gtktextview.c: ditto
2020
2021 2002-02-07  Havoc Pennington  <hp@pobox.com>
2022
2023         * gtk/gtkspinbutton.h (struct _GtkSpinButtonClass): add
2024         change_value virtual function, to fix build
2025
2026         * gtk/gtkpixmap.c (gtk_pixmap_class_init): parent_class was 
2027         from GtkWidget not GtkMisc. Not that it ever mattered.
2028
2029 Thu Feb  7 19:52:00 2002  Owen Taylor  <otaylor@redhat.com>
2030
2031         * gtk/gtknotebook.[ch]: Add ::move-focus-out signal
2032         to handle Control[-Shift]-Tab and Control-arrow
2033         bindings and implement bindings as per #53612.
2034
2035         * gtk/gtktextview.c (gtk_text_view_move_focus): Fix 
2036         fetching the toplevel for plug-socket.
2037
2038         * gtk/gtknotebook.c (gtk_notebook_class_init): Remove
2039         bindings for Return/Enter to select the page.
2040
2041         * gtk/gtknotebook.c (gtk_notebook_change_current_page):
2042         Beep at ends.
2043
2044         * gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
2045         and beep at ends.
2046
2047         * gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
2048         the page with the arrow keys, focus the first widget,
2049         not the directionally closest widget.
2050
2051 Thu Feb  7 19:00:10 2002  Owen Taylor  <otaylor@redhat.com>
2052
2053         * gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
2054         to using  binding set for doing key bindings. (#62622,
2055         Requested by Skip Montaro)
2056
2057         * gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
2058         bindings as overrides along with control-tab bindings.
2059
2060         * gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
2061         type for ::focus_tab signal.
2062
2063 Thu Feb  7 19:39:27 2002  Kristian Rietveld  <kris@gtk.org>
2064
2065         Fixes #70782 and some drag dest rectangle/line issues
2066
2067         * gtk/gtktreeview.c (gtk_tree_view_set_model): set
2068         GTK_TREE_VIEW_IS_LIST flag (we can switch from a TreeStore to a
2069         ListStore for example)
2070         (gtk_tree_view_get_path_at_pos): revert previous change, we
2071         shouldn't correct for the header, because we are taking bin_window
2072         coordinates here
2073         (gtk_tree_view_set_drag_dest_row): queue old drag_dest row and
2074         upper/lower neighbors for draw, so the drag dest rectangle/line will
2075         be cleared correctly
2076         (gtk_tree_view_get_dest_row_at_pos): correct for treeview header
2077         here, as drag_y is relative to the widget and _get_path_at_pos wants
2078         coords relative to bin_window, draw black outline rectangle after
2079         drawing the cells
2080
2081 Thu Feb  7 10:53:12 2002  Owen Taylor  <otaylor@redhat.com>
2082
2083         * gtk/gtkentry.c (gtk_entry_draw_text): Use layout text
2084         (which may be affected by invisible char) to compute
2085         selection bounds, not entry text. (#70733, Alex Larsson)
2086
2087 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
2088
2089         * gtk/gtkwidget.[ch]:
2090         Change show_help signal to return gboolean instead of void. This
2091         allows the keypress which invokes the signal to be propagated to the
2092         focus widgets ancestors if not handled by the focus widget.
2093         
2094         * gtk/gtktoolips.[ch]
2095         Change _gtk_tooltips_show_tip () to return a gboolean indicating
2096         whether widget has tooltip to display.
2097         
2098 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
2099
2100         * gtk/gtkwidget.[ch]:
2101         Change popup_menu signal to return gboolean instead of void. This
2102         allows the keypress which invokes the signal to be propagated to the
2103         focus widgets ancestors if not handled by the focus widget.
2104
2105         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtktextview.c:
2106         Change signature of popup_menu signal handler to return gboolean
2107         instead of void and return TRUE in the signal handler
2108
2109 2002-02-07  Anders Carlsson  <andersca@gnu.org>
2110
2111         * gdk/x11/xsettings-common.c (xsettings_setting_free): Free 
2112         the setting name.
2113
2114 Wed Feb  6 23:28:39 2002  Kristian Rietveld  <kris@gtk.org>
2115
2116         Fixes #70708
2117
2118         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): we're dealing
2119         with widget coordinates here, so take the header height into
2120         account while converting
2121         (gtk_tree_view_widget_to_tree_coords): take header height into
2122         account
2123         (gtk_tree_view_tree_to_widget_coords): ditto
2124         (gtk_tree_view_get_dest_row_at_pos): we were passing coords
2125         relative to the tree with _get_path_at_pos, while that function
2126         wants coords relative to the widget
2127
2128 2002-02-06  Havoc Pennington  <hp@redhat.com>
2129
2130         * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
2131         (gtk_text_view_get_window): add warning about how you
2132         can't get the private window. #70683, and avoid default: in the
2133         switch so we get "enum value unhandled" warnings
2134
2135 2002-02-06  Havoc Pennington  <hp@redhat.com>
2136
2137         * gtk/gtktextchild.c: Add warnings if you try to use a child
2138         anchor that isn't inside a buffer. Really kind of lame; 
2139         we should separate the anchor from the buffer. But not worth 
2140         fixing for now. #70601
2141
2142 Wed Feb  6 18:25:24 2002  Kristian Rietveld  <kris@gtk.org>
2143
2144         * gtk/gtktreemodelsort.c: rip out all the debugging ifdefs, as
2145         modelsort seems to be stable (and nobody complained :)
2146
2147 Tue Feb  5 19:13:42 2002  Owen Taylor  <otaylor@redhat.com>
2148
2149         * gdk/x11/gdkgeometry-x11.c (gdk_window_queue): Keep
2150         the length of the anti-expose queue finite, by if
2151         it gets too long, first doing a XSync() and checking
2152         the event queue, and if that doesn't work, simply
2153         discarding all anti-expose items in the queue.
2154
2155         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix ordering
2156         on ConfigureNotify (#56349, Thomas Leonard)
2157
2158 2002-02-05  Havoc Pennington  <hp@redhat.com>
2159
2160         * gtk/gtkimage.c (gtk_image_expose): offset area being gotten from
2161         pixmap by the align/padding offsets, so we don't get warnings
2162         in gdk_pixbuf_get_from_drawable (and so it works, of course)
2163
2164 2002-02-05  Matthias Clasen  <matthiasc@poet.de>
2165
2166         * gtk/gtkrc.c (gtk_rc_parse_file): Remove a (now) misleading comment.
2167
2168 2002-02-05  Federico Mena Quintero  <federico@ximian.com>
2169
2170         * gdk/gdkwindow.h: Do not #include <gdk/gdkwindow.h>.
2171
2172 Tue Feb  5 22:54:16 2002  Kristian Rietveld  <kris@gtk.org>
2173
2174         * gtk/gtkliststore.c (gtk_list_store_insert_after): let's set the
2175         path, which we're going to pass with the emission of row_inserted, to
2176         the iter we inserted and not its sibling.
2177
2178 2002-02-04 Padraig O'Briain <padraig.obriain@sun.com>
2179
2180         * gtk/gtkmenu.c (gtk_menu_popup):
2181         Fix leak of GdkEvent (#70519)
2182
2183 Mon Feb  4 10:40:28 2002  Owen Taylor  <otaylor@redhat.com>
2184
2185         * gtk/gtkstyle.c (gtk_default_draw_resize_grip):
2186         Fix from Matthias Clasen to clear background appropriately
2187         for theme by calling gtk_style_apply_default_background().
2188         (#70449)
2189
2190 Mon Feb  4 10:06:49 2002  Owen Taylor  <otaylor@redhat.com>
2191
2192         * gdk/x11/gdkevents-x11.c: gtk-double-click-time,
2193         not gtk-double-click-timeout. (#70501)
2194
2195 2002-02-04  Havoc Pennington  <hp@pobox.com>
2196
2197         * gtk/gtksignal.c (gtk_signal_connect_while_alive): 
2198         (gtk_signal_connect_object_while_alive): rename 
2199         "signal" arg to "name" to avoid compiler warnings
2200         about shadowing signal(). #70453
2201
2202 2002-02-03  Anders Carlsson  <expander-master@gtk.org>
2203
2204         * gtk/gtkstyle.c (gtk_default_draw_expander): Add 
2205         flipping support to the expanders.
2206
2207 Sat Feb  2 21:54:01 2002  Owen Taylor  <otaylor@redhat.com>
2208
2209         RC file lookup improvements (#68234, suggestions
2210         from Matthias Clasen.)
2211
2212         * gtk/gtkrc.c (gtk_rc_parse_file): Look for the 
2213         locale suffix variants (gtkrc.en_US, gtkrc.en) for
2214         all RC files we parse, not just the default RC
2215         files.
2216
2217         * gtk/gtkrc.c (gtk_rc_parse_default_files): Remove
2218         support for charset specific RC files.
2219
2220 Sat Feb  2 20:16:04 2002  Owen Taylor  <otaylor@redhat.com>
2221
2222         * gtk/gtkmenushell.c (_gtk_menu_shell_select_first): 
2223         Non-exported _gtk_menu_select_first() function that
2224         selects the first item of the menu in a standard
2225         way. (Skipping tearoffs.)
2226
2227         * gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
2228         gtkmenuitem.c: Use _gtk_menu_shell_select_first().
2229
2230         * gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
2231         if we are starting the timeout from a keypress so
2232         we can set menushell->ignore_enter properly.
2233
2234         * gtk/gtknotebook.c (focus_child_in): Return something
2235         meaningful if there are no children.
2236
2237         * gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
2238         problem.
2239
2240 Sat Feb  2 19:15:42 2002  Owen Taylor  <otaylor@redhat.com>
2241
2242         * gtk/gtkmenu.c (gtk_menu_popup): Fix some bugs in
2243         the determination of xgrab_shell.
2244
2245 Sat Feb  2 17:43:00 2002  Owen Taylor  <otaylor@redhat.com>
2246
2247         * gtk/gtkentry.c (gtk_entry_grab_focus): Add a GtkSetting
2248         (gtk-entry-select-on-focus) controlling whether the
2249         contents of an entry are selected on focus in.
2250
2251         * gtk/gtkmenu.c (gtk_menu_key_press): Add a GtkSetting
2252         (gtk-can-change-accels) controlling whether accelerators can be
2253         changed on the fly or not. (#51902)
2254
2255         * gtk/gtkmenu.c (gtk_menu_key_press): Allow unmodified
2256         accelerators, now that accelerator changing can be turned
2257         off for those who won't expect it. (#61285)
2258
2259         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow 
2260         Backspace/Delete/KP_Delete as valid accelerators.
2261
2262         * gtk/gtkmenu.c (gtk_menu_key_press): Allow setting of
2263         Delete/Backspace as accelerators by making them toggle
2264         the menu item between empty and the pressed key.
2265         (#58605)
2266
2267         * tests/testgtkrc: Remove the objectionably short cursor blink
2268         time setting.
2269
2270 Sat Feb  2 16:43:31 2002  Owen Taylor  <otaylor@redhat.com>
2271
2272         * gtk/gtkmenu.c (gtk_menu_popup): To get around the fact
2273         that we may have a owner_events = FALSE grab in effect
2274         when we pop up a window, make a temporary grab on a
2275         different window, then grab on the real window. Fixes
2276         a problem where if a context menu popped up under the 
2277         cursor, the first item would be stuck unselected.
2278         (#59812, reported by Arnaud Charlet.)
2279
2280 2002-02-02  Peter Williams  <peterw@ximian.com>
2281
2282         * gtk/Makefile.am (install-data-local): Install gtkrc.default
2283         from $(srcdir) for when $(builddir) is different.
2284
2285 Sat Feb  2 19:00:39 2002  Kristian Rietveld  <kris@gtk.org>
2286
2287         * gtk/Makefile.am: remove TESTGTK_RCFILE define
2288
2289 Sat Feb  2 11:37:21 2002  Owen Taylor  <otaylor@redhat.com>
2290
2291         * gtk/gtkmenu.c (gtk_menu_popup): Remove the 
2292         "select first item if popped up from keypress" hack --
2293         was causing more problems than it was worth 
2294         (#53191, #68483)
2295
2296         * gtk/gtktextview.c (popup_targets_received): 
2297          gtk/gtkentry.c (popup_targets_received): If activated
2298         from keyboard, select first item of popup menu.
2299
2300 Sat Feb  2 18:07:51 2002  Kristian Rietveld  <kris@gtk.org>
2301
2302         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
2303         of vadjustment correct, so the vscrollbars of lists smaller than
2304         1 page are somewhat saner (#66905)
2305
2306         * gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
2307         increment the stamp, liststore is a model with persisting iters
2308
2309 Fri Feb  1 23:54:00 2002  Owen Taylor  <otaylor@redhat.com>
2310
2311         * gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support 
2312         engine "" {} to mean override to the default 
2313         engine. (#70205)
2314
2315 Fri Feb  1 23:25:33 2002  Owen Taylor  <otaylor@redhat.com>
2316
2317         * gtk/gtktooltips.c (gtk_tooltips_init): Parse the
2318         RC string here when the first object is created
2319         rather than in the class_init to not break doc 
2320         building. (#70341, Havoc Pennington.)
2321
2322         * gtk/gtkrc.c (parse_include_file): Use the directories
2323         for the currently parsed files as the starting point
2324         to look for include files. (#59975)
2325
2326 Fri Feb  1 20:21:56 2002  Manish Singh  <yosh@gimp.org>
2327
2328         * gtk/gtkinputdialog.c: use gtk_label_new_with_mnemonic for labels
2329         that actually have mnemonics
2330
2331 Fri Feb  1 19:57:59 2002  Owen Taylor  <otaylor@redhat.com>
2332
2333         * configure.in: Fix use of ! in shell.
2334
2335         * gtk/gtktooltips.c (gtk_tooltips_class_init) gtkrc.default: 
2336         Move the setting of default tooltips colors to gtktooltips.c
2337         from gtkrc.default. (Use default priority so themes will
2338         override.) (#58542)
2339
2340 Fri Feb  1 17:48:51 2002  Owen Taylor  <otaylor@redhat.com>
2341
2342         * gtk/gtkrc.c (gtk_rc_get_style): Fix ordering of
2343         priorities so that priorities take precendence over
2344         the ordering by type. (#70205)
2345
2346         * test/testgtkrc tests/testgtk.c (create_rc_file): Add 
2347         some labels to test priorities in testgtkrc.
2348
2349 Fri Feb  1 00:37:49 2002  Kristian Rietveld  <kris@gtk.org>
2350
2351         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): use
2352         y coordinate relative to the tree and not the treeview window
2353         (fixes the PgDn/PgUp brokenness)
2354
2355 Fri Feb  1 23:40:31 2002  Kristian Rietveld  <kris@gtk.org>
2356
2357         * gtk/gtktreeview.c (gtk_tree_view_button_press): adjust
2358         cell_area and background_area for possible treeview scroll
2359         (fixes #70283, #70065)
2360
2361 Fri Feb  1 22:20:13 2002  Kristian Rietveld  <kris@gtk.org>
2362
2363         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): use
2364         height - page_size not height - allocation->height (fixes #66269)
2365
2366 Fri Feb  1 15:22:23 2002  Owen Taylor  <otaylor@redhat.com>
2367
2368         * gtk/gtkimage.c (gtk_image_class_init): Fix typo
2369         in property description. (Christian Rose.)
2370
2371 Fri Feb  1 14:50:36 2002  Owen Taylor  <otaylor@redhat.com>
2372
2373         * gtk/gtkrc.c (gtk_rc_parse_string): Handle reparsing
2374         any strings if the theme changes. (#69465)
2375
2376         * tests/testgtk.c: Add a test for gtk_rc_parse_string().
2377
2378 Fri Feb  1 20:50:29 2002  Kristian Rietveld  <kris@gtk.org>
2379
2380         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): set tree to
2381         NULL if tree_view->priv->tree is NULL (#70152, patch by John Harper).
2382
2383 Fri Feb  1 12:51:20 2002  Owen Taylor  <otaylor@redhat.com>
2384
2385         * gtk/gtknotebook.c (focus_child_in): Catch the
2386         cur_page == NULL (no children) case. (#70287,
2387         Paolo Maggi.)
2388
2389 Fri Feb  1 12:12:12 2002  Owen Taylor  <otaylor@redhat.com>
2390
2391         * gtk/gtkfilesel.c (attempt_file_completion): 
2392         s/directory/folder/ in all labels and messages.
2393
2394 Fri Feb  1 08:57:38 2002  Owen Taylor  <otaylor@redhat.com>
2395
2396         * gtk/gtkmain.c (gtk_exit_func): Remove this useless
2397         atexit handler. (existance pointed out by Stefan Kost)
2398
2399         * gtk/gtkmain.c (gtk_init_check): Warning fixes.
2400
2401 Thu Jan 31 18:46:10 2002  Jonathan Blandford  <jrb@redhat.com>
2402
2403         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): unref the
2404         model after the last use, not before.
2405
2406 Thu Jan 31 14:50:16 2002  Owen Taylor  <otaylor@redhat.com>
2407
2408         * gtk/gtkrc.default gtk/Makefile.am: Install a Default
2409         RC file that sets the tooltips color to yellow. (#58542)
2410
2411         * gtk/gtksettings.c (gtk_settings_class_init): make 
2412         the default theme "Default", not NULL.
2413
2414 Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
2415
2416         * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
2417         another missing static.
2418
2419         * gtk/gtkimmodule.c (n_loaded_contexts): And another.
2420
2421         * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
2422         build gxid sources at all except in the vanishingly
2423         rare case of --with-xinput=xfree.
2424
2425 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
2426
2427         * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
2428
2429         * gdk/x11/gdkimage-x11.c: (get_full_image): ditto.
2430
2431         * gdk/x11/gxid_lib.[ch]: (_gxid_claim_device), (_gxid_release_device):
2432         renamed from gxid_(claim|release)_device.
2433
2434         * gdk/x11/gdkinput-gxi.c: (_gdk_input_enable_window),
2435         (_gdk_input_disable_window): upd for gxid change.
2436
2437         * gtk/gtkimage.c: (animation_timeout): make static.
2438
2439         * gtk/gtkstyle.c: (draw_thin_shadow), (draw_spin_entry_shadow): make
2440         static.
2441
2442         * gtk/gtktextutil.c: (bidi_menu_entries): make static.
2443
2444 Thu Jan 31 10:21:05 2002  Owen Taylor  <otaylor@redhat.com>
2445
2446         * gtk/gtkplug.c (gtk_plug_focus): Handle the case where
2447         bin->child is NULL. (#70153, Padraig O'Briain)
2448
2449         * gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): 
2450         Actually call gettext() on the labels; previously they
2451         were marked with N_() but we never called gettext().
2452
2453 Wed Jan 30 20:15:49 2002  Jonathan Blandford  <jrb@redhat.com>
2454
2455         * gtk/gtktreestore.c (gtk_tree_store_set_valist): save last minute
2456         changes before committing.
2457
2458         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
2459
2460 Wed Jan 30 18:46:14 2002  Jonathan Blandford  <jrb@redhat.com>
2461
2462         * gtk/gtkliststore.c (gtk_list_store_set_valist): only emit the
2463         signal if an interesting column changes.
2464
2465         * gtk/gtktreestore.c: ditto.
2466
2467         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): change behavior so
2468         that it no longer grabs 
2469
2470 2002-01-30  Manish Singh  <yosh@gimp.org>
2471
2472         * gtk/gtkhandlebox.c (gtk_handle_box_destroy): remove unused
2473         variable.
2474
2475         * gtk/gtkwindow.c (gtk_window_get_icon): function returns a value,
2476         so return NULL with g_return_val_if_fail instead of g_return_if_fail.
2477
2478 2002-01-30  Matthias Clasen  <matthiasc@poet.de>
2479
2480         * gtk/*.c: Remove excess g_return_if_fail calls from static
2481         and virtual functions.  (#57615)
2482         
2483 2002-01-30  Anders Carlsson  <andersca@gnu.org>
2484
2485         * gtk/gtkstyle.c (gtk_default_render_icon): Allow a -1 icon size.
2486
2487 Wed Jan 30 20:29:01 2002  Tim Janik  <timj@gtk.org>
2488
2489         * gtk/gtkscale.c (gtk_scale_set_digits): fix revrted bug fix.
2490         (use a define for max digits).
2491
2492 Wed Jan 30 13:55:59 2002  Owen Taylor  <otaylor@redhat.com>
2493
2494         * gtk/gtkwindow.c (gtk_window_show): Try to make
2495         sure that we have some focused widget on map. (#50339)
2496
2497         * gtk/gtkdialog.c (gtk_dialog_map): Handling picking
2498         a focus widget here differently so that if a
2499         response button gets picked, it's the default one.
2500
2501         * tests/testgtk.c (make_message_dialog): Set the 
2502         default response for the dialogs.
2503
2504 Tue Jan 29 22:52:36 2002  Owen Taylor  <otaylor@redhat.com>
2505
2506         * Released 1.3.13
2507
2508         * configure.in: Micro version 13, interface, binary
2509         age 0. Require GLIB-1.3.13, Pango 0.24.
2510
2511         * docs/Makefile.am (EXTRA_DIST): Add widget_geometry.txt,
2512         sizing-test.txt, tree-column-sizing.txt
2513
2514         * docs/Makefile.am (EXTRA_DIST): Don't distribute
2515         Changes-1.2.txt, Changes-2.0.txt, README.linux-fb,
2516         since they are no longer canonical.
2517
2518         * gtk/gtk.def: Convert spaces to tabs in front of
2519         gtk_widget_set_accel_path in case it matters.
2520
2521         * NEWS: Updated for 1.3.13.
2522
2523 Tue Jan 29 22:31:07 2002  Owen Taylor  <otaylor@redhat.com>
2524
2525         * gtk/gtkwidget.[ch] gtkmenuitem.c gtkitemfactory.c: Export 
2526         gtk_widget_set_accel_path().
2527
2528         * gtk/gtk.def: Add gtk_widget_set_accel_path.
2529
2530 Tue Jan 29 21:50:28 2002  Owen Taylor  <otaylor@redhat.com>
2531
2532         * gtk/gtkaccelmap.[ch] gtk/gtkbindings.[ch] gtk/gtkwidget.[ch]:
2533         Consistently use GdkModifierType. (#66950, Mark Patton)
2534
2535         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
2536         For consistency with gtk_button_new_from_stock(), fall back
2537         to gtk_image_menu_item_new_with_mnemnonic(). (#65944,
2538         Havoc Pennington)
2539         
2540         * gtk/gtkitemfactory.[ch] (gtk_item_factory_path_from_widget): 
2541         Make G_CONST_RETURN. (#68527, Matt Wilson)
2542
2543 Tue Jan 29 20:56:13 2002  Owen Taylor  <otaylor@redhat.com>
2544
2545         * gtk/gtk[vh]scale.c (gtk_[vh]scale_new_with_range): Document
2546         that the end points are included in the range. (#69783,
2547         Jeffrey Baker)
2548
2549 Tue Jan 29 20:38:04 2002  Owen Taylor  <otaylor@redhat.com>
2550
2551         * gtk/gtkscale.[ch]: Revert the last changes to make the
2552         number of digits only effect drawing, instead, don't
2553         round unless we are in the 'draw_value' mode -- this
2554         is the behavior of GTK+-1.2, and keeps the behavior that
2555         if the user sees a displayed value, it is the correct value.
2556
2557 Tue Jan 29 19:51:05 2002  Owen Taylor  <otaylor@redhat.com>
2558
2559         * gtk/gtkenums.h: Deprecate GtkPreviewType,
2560         GtkSignalRunType, GtkSideType, GtkSubmenuPlacement, GtkSubmenuDirection
2561         (#68183, Matthias Clasen)
2562
2563         * gtk/gtkmenuitem.h: Remove _gtk_menu_item_set_placement() from
2564         the public header to avoid having to use GtkSubmenuPlacement.
2565
2566         * gtk/{gtkmenuitem.c,gtkmenubar.c,gtkmenushell.c}: #define
2567         GTK_MENU_INTERNALS to preserve access to GtkSubmenu*.
2568
2569         * gdk/gdki18n.h: Deprecate contents. (Darin Adler.)
2570
2571 Tue Jan 29 19:32:47 2002  Owen Taylor  <otaylor@redhat.com>
2572
2573         * gtk/gtktextview.c (gtk_text_view_get/set_property): 
2574         Fix wrong usage of g_value_set/get_object for PROP_TABS
2575         and memory leak in getter for PROP_TABS. (Jeff Franks)
2576
2577 Tue Jan 29 19:04:41 2002  Owen Taylor  <otaylor@redhat.com>
2578
2579         * gtk/gtkstyle.c (gtk_style_render_icon): Document that
2580         a size of (GtkIconSize)-1 means don't scale.
2581
2582         * gtk/gtkstyle.c (gtk_default_render_icon): Obey the
2583         -1 convention.
2584
2585         * gtk/gtkimage.c (gtk_image_expose): Pass in -1 to
2586         gtk_style_render_icon() to make sure that we catch it
2587         obviously if the style's render function tries to
2588         scale.
2589
2590 Tue Jan 29 18:50:59 2002  Owen Taylor  <otaylor@redhat.com>
2591
2592         * gtk/gtkimage.c (gtk_image_expose): Optimize exposes of
2593         partial insensitive images.
2594
2595 2002-01-24  Havoc Pennington  <hp@redhat.com>
2596
2597         * gtk/gtkimage.c (gtk_image_expose): create insensitive version of
2598         the image regardless of storage type, #63305
2599
2600         * demos/gtk-demo/images.c: add toggle button to demonstrate that
2601         GtkImage makes its contents insensitive
2602
2603 Tue Jan 29 17:40:02 2002  Owen Taylor  <otaylor@redhat.com>
2604
2605         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
2606         Call _gdk_draw_pixbuf(), thus enabling using this function
2607         for pixbufs with alpha. (#68801)
2608
2609         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Move
2610         implementation of gdk_pixbuf_render_to_drawable()
2611         to here.
2612
2613 Tue Jan 29 17:16:17 2002  Owen Taylor  <otaylor@redhat.com>
2614
2615         * gtk/gtklayout.c: Patch from Jacob Berkman to fix problem
2616         when the height/width of a layout was set before the
2617         adjustments were added. (#66294)
2618
2619         * gtk/gtktreeview.c: Warning cleanups.
2620
2621 Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
2622
2623         * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
2624         fix to size of torn off window (#60271, Detlef Reichl)
2625
2626         * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
2627         by Ross Burton)
2628
2629 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
2630
2631         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
2632         cursor_path after usage
2633         (gtk_tree_view_real_start_interactive_search): use new g_signal
2634         and g_object calls
2635         (gtk_tree_view_search_dialog_destroy): use g_object calls and free
2636         selected_iter if set
2637         (gtk_tree_view_search_position_func): rework so it will never ever
2638         appear offscreen (#68492)
2639         (gtk_tree_view_search_move): use new g_object calls
2640         (gtk_tree_view_search_init): free selected_iter if set, use new
2641         g_object calls
2642         (gtk_tree_view_leave_notify): don't destroy interactive search
2643         dialog
2644
2645 Tue Jan 29 23:07:03 2002  Kristian Rietveld  <kris@gtk.org>
2646
2647         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2648         send focus in event
2649         (gtk_tree_view_search_dialog_destroy): send focus out event (#66466)
2650
2651 2002-01-29  Anders Carlsson  <andersca@gnu.org>
2652
2653         * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
2654         size in the size entry.
2655
2656 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
2657
2658         * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
2659         gtk_tree_view_set_cursor() instead of gtk_tree_selection_select_iter().
2660
2661         * gtk/gtkfontsel.c (gtk_font_selection_init): Add mnemonic to
2662         preview field. (#52433, patch from Anders Carlsson)
2663         
2664         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Remove the 
2665         dialog separator. (#69558, Alex Larsson, patch from Anders Carlsson)
2666
2667 Tue Jan 29 15:24:59 2002  Owen Taylor  <otaylor@redhat.com>
2668
2669         * gtk/gtkfontsel.[ch]: Switch over to GtkTreeView from
2670         GtkCList. Remove the entries above the font/face lists 
2671         since they were a little confusing. (Not sure about this 
2672         change, so the code is still there the entries are
2673         just hidden.) (#68890)
2674
2675         * gtk/gtkfilesel.c: Switch over to GtkTreeView from
2676         GtkCList. Add mnemonics for fileops. Allow Control/Shift
2677         Tab to focus out.
2678
2679         * gtk/gtkfilesel.c: Make fileop dialogs transient-for
2680         the fileselector. (#69336, patch from Melvin Hadasht)
2681
2682         * gtk/gtkgamma.c (button_clicked_callback): Fix handling
2683         of gamma dialog a bit. (#69336, Matthias Clasen.)
2684
2685 Tue Jan 29 14:56:28 2002  Owen Taylor  <otaylor@redhat.com>
2686
2687         * gtk/gtksocket.c (toplevel_focus_out_handler): Return boolean
2688         (and FALSE from focus_in / focus_out handlers. (#69528,
2689         Padraig O'Briain)
2690
2691 Tue Jan 29 14:47:54 2002  Owen Taylor  <otaylor@redhat.com>
2692
2693         * gtk/gtkmain.c (gtk_init_check): Remove the scary startup
2694         warning. (#69480)
2695
2696 Tue Jan 29 14:24:49 2002  Owen Taylor  <otaylor@redhat.com>
2697
2698         * gtk/gtkwindow.c (gtk_window_class_init): Add <Control>Tab
2699         bindings for "move-focus" so that Control-Tab to escape from
2700         something that eats Tab just works if not otherwise overriden.
2701
2702         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range) 
2703         * gtk/gtkvscale.c (gtk_vscale_new_with_range)
2704         * gtk/gtkhscale.c (gtk_hscale_new_with_range): Use a page_size
2705         of zero for the adjustment, since at times we think that the range
2706         is lower to upper - page_size. A page size equally to the 
2707         step_increment is, in any case, not meaningful.
2708
2709 2002-01-29  Tor Lillqvist  <tml@iki.fi>
2710
2711         * README.win32: Add comment about gtk-1-3-win32-production branch
2712         currently being ahead in functionality and code cleanliness (in
2713         gdk/win32). Just in case somebody looks at the code in gdk/win32
2714         here and starts fixing it, when it is going to change soonish
2715         anyway.
2716
2717 2002-01-29  Sven Neumann  <sven@gimp.org>
2718
2719         * gtk/gtkrc.c: don't install an empty icon_set if none of the image
2720         files could be found in the pixmap_path (bug #69398).
2721         
2722 2002-01-29  Sven Neumann  <sven@gimp.org>
2723
2724         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
2725         that showed up when using the color picker.
2726
2727 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
2728
2729         * gtk/gtkscale.[hc]: fix default value for ::digits property,
2730         leave as 1 as per havoc's request.
2731         don't apply the draw_digits value to range->round_digits,
2732         so we don't perform gross quantization by default.
2733
2734 2002-01-25  Havoc Pennington  <hp@redhat.com>
2735
2736         * gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion
2737         failure by creating the line data, but not validating it at this
2738         stage. Also, remove old code related to the "bogus newline" mess
2739         that removed all tags from the last char in the buffer if you
2740         tried to delete it.
2741         (_gtk_text_line_data_new): put this here and prepend underscore,
2742         remove from gtktextlayout.c
2743
2744 Mon Jan 28 19:57:39 2002  Owen Taylor  <otaylor@redhat.com>
2745
2746         * modules/input/imhangul.c modules/input/imhangul-defs.h
2747         po/POTFILES.in. Add port of Emacs korean-hangul input
2748         method from Yusuke Tabata (#67665)
2749
2750 Mon Jan 28 18:25:10 2002  Owen Taylor  <otaylor@redhat.com>
2751
2752         * gtk/gtkentry.c (gtk_entry_draw_frame): Paint shadow
2753         before focus to give theme engines a bit morea
2754         flexibility. (#69857)
2755
2756 Mon Jan 28 16:23:20 2002  Jonathan Blandford  <jrb@redhat.com>
2757
2758         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
2759         g_assert.
2760
2761 2002-01-28  Jon Trowbridge  <trow@gnu.org>
2762
2763         * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
2764         GtkTreeView's model, set prelight_node, prelight_tree,
2765         button_pressed_node and button_pressed_tree to NULL. (#69603)
2766
2767 2002-01-28 Bill Haneman <bill.haneman@sun.com>
2768
2769         * gtk/gtkstyle.c:
2770         Make sure that the default expanders are drawn with
2771         an outline thickness appropriate to the size of the
2772         expanders (RINT expander_size/7).
2773         Added static gtk_style_draw_polygon_with_gc(), to
2774         reduce code duplication.
2775
2776         * gtk/gtktreeview.c: (gtk_tree_view_bin_expose):
2777         Use focus_line_thickness when drawing focus lines.
2778
2779         * gtk/gtktreeviewcolumn.c:(gtk_tree_view_column_cell_get_size):
2780         Adjust requested width to include focus line thickness.
2781         (gtk_tree_view_column_cell_render_or_focus):
2782         Calculate a focus line rectangle which gets larger as the focus
2783         line thickness increases, to avoid overwriting cell content.
2784         Render left-aligned content at x+focus_line_width.
2785         (gtk_tree_view_column_cell_draw_focus):
2786         Don't draw a focus line around an editable text cell, since the
2787         text caret already indicates keyboard focus.
2788         Pass a GtkStateType appropriate to the focussed cell's state
2789         to gtk_paint_focus.
2790
2791 Mon Jan 28 14:44:40 2002  Jonathan Blandford  <jrb@redhat.com>
2792
2793         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
2794         activate/edit the row if shift is not pressed, #69248
2795
2796 2002-01-28  Anders Carlsson  <andersca@gnu.org>
2797
2798         * gtk/gtkcurve.c (gtk_curve_set_vector): Fix build.
2799
2800 2002-01-28  Matthias Clasen  <matthiasc@poet.de>
2801
2802         * gtk/{gtkalignment.c,gtkaspectframe.c,gtkbutton.c,
2803         gtkcellrenderer.c,gtkcellrendererpixbuf.c,gtkcombo.c,
2804         gtkcontainer.c,gtkcurve.c,gtkframe.c,gtklabel.c,
2805         gtkmessagedialog.c,gtknotebook.c,gtkspinbutton.c,gtktable.c,
2806         gtktext.c,gtktextview.c,gtktreeview.c,gtktreeviewcolumn.c,
2807         gtkviewport.c,gtkwidget.c}: General property notification 
2808         cleanup. (#69066)
2809
2810 2002-01-28  Anders Carlsson  <andersca@gnu.org>
2811
2812         * gtk/gtkaccelgroup.c (gtk_accel_groups_activate): & with the
2813         default mod mask so accels work when numlock is on.
2814
2815 Sun Jan 27 23:23:23 2002  Kristian Rietveld  <kris@gtk.org>
2816
2817         * gtk/gtkrbtree.[ch]: add _gtk_rbtree_mark_invalid (my previous
2818         commit already needed this ...)
2819
2820 Sun Jan 27 22:13:02 2002  Kristian Rietveld  <kris@gtk.org>
2821
2822         Fix for bug #69586
2823
2824         * gtk/gtktreeprivate.h: get rid of tab_offset, introduce
2825         expander_size
2826
2827         * gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
2828         expander_size caching (from style), fix CELL_HEIGHT macro,
2829         use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
2830         row height calculation, added style_set callback
2831
2832 2002-01-27  Anders Carlsson  <andersca@gnu.org>
2833
2834         * gtk/gtklabel.c (gtk_label_create_window): Set the cursor to
2835         GDK_XTERM.
2836
2837         * gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.
2838
2839         * gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.
2840
2841         * gtk/gtktextview.c (set_invisible_cursor): New function.
2842         (gtk_text_view_obscure_mouse_cursor): Likewise.
2843         (gtk_text_view_key_press_event): Call obscure_cursor if text 
2844         has been inserted.
2845         (gtk_text_view_motion_event): Restore the mouse cursor.
2846
2847         * gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
2848         (set_invisible_cursor): New function.
2849         (gtk_entry_obscure_mouse_cursor): Likewise.
2850         (gtk_entry_key_press): call obscure_cursor if text has been inserted.
2851         (gtk_entry_motion_notify): Restore the mouse cursor.
2852
2853 2002-01-27  Sven Neumann  <sven@gimp.org>
2854
2855         * gtk/gtkstyle.c (sanitize_size): removed unused return value.
2856
2857 Sat Jan 26 19:27:23 2002  Owen Taylor  <otaylor@redhat.com>
2858
2859         * gtk/gtksocket.c (gtk_socket_grab_notify): Don't
2860         send MODALITY_ON/OFF if socket->same_app (More fixes for #69735)
2861
2862 Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>
2863
2864         * gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
2865         in the grab_widget == NULL case. (Bug reported by 
2866         Padraig O'Briain, #69735)
2867
2868         * gtk/gtkplug.c (handle_modality_on): Realize the modality
2869         window so gtk_widget_event() doesn't complain :-((((.
2870
2871 2002-01-25  Federico Mena Quintero  <federico@ximian.com>
2872
2873         Merge from gdk-pixbuf stable.
2874
2875         * gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
2876         conversion --- swap the individual 16 bit values instead of taking
2877         everying as a 32 bit value.
2878         (rgb565lsb): Likewise.
2879         (rgb555lsb): Likewise.
2880         (rgb555msb): Likewise.
2881
2882 2002-01-25  Alex Larsson  <alexl@redhat.com>
2883
2884         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_drawable_impl_fb_class_init):
2885         Implement copy_to_image instead of get_image
2886         
2887         * gdk/linux-fb/gdkimage-fb.c:
2888         Implement _gdk_image_new_for_depth, _gdk_windowing_get_bits_for_depth and
2889         _gdk_fb_copy_to_image.
2890         Based in part on patch from Mathieu Lacage <mathieu_lacage@realmagic.fr>
2891
2892         * gdk/linux-fb/gdkmain-fb.c:
2893         Make ENABLE_FB_MANAGER region larger.
2894
2895         * gdk/linux-fb/gdkprivate-fb.h:
2896         Change _gdk_fb_get_image to _gdk_fb_copy_to_image.
2897
2898 2002-01-25  Sven Neumann  <sven@gimp.org>
2899
2900         * gtk/gtkwindow.c (gtk_window_get_size): changed the comment so
2901         that gtk-doc doesn't get confused.
2902
2903 Fri Jan 25 14:03:36 2002  Tim Janik  <timj@gtk.org>
2904
2905         * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
2906         that the passed in arrow is always _UP or _DOWN, this catches
2907         false invocations which lead to drawing artefacts.
2908         (start_spinning): likewise, i.e. sanity check the passed in arrow.
2909         (gtk_spin_button_button_release): fix arrow redrawing.
2910         (gtk_spin_button_button_press): must set click_child for
2911         button3 even if we don't take spinning action right away.
2912
2913         * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
2914         valid values for click_child.
2915
2916 Thu Jan 24 23:03:24 2002  Kristian Rietveld  <kris@gtk.org>
2917
2918         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
2919         return current FALSE if x is smaller than the current visible area,
2920         not than the requested area, don't correct y coordinate,
2921         TREE_WINDOW_Y_TO_RBTREE_Y will do that. Fixes #67477.
2922
2923 Thu Jan 24 15:41:08 2002  Jonathan Blandford  <jrb@redhat.com>
2924
2925         * gtk/gtktreeview.c
2926          (gtk_tree_view_motion_draw_column_motion_arrow): fix column
2927          reordering fully.
2928          (gtk_tree_view_size_allocate): fix evil bug.
2929
2930 Thu Jan 24 11:53:19 2002  Owen Taylor  <otaylor@redhat.com>
2931
2932         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't clear
2933         the model until we clean up all the other objects
2934         that might refer to the object.
2935
2936 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
2937
2938         * gtk/gtkaccessible.h: include gtk/gtkwidget.h
2939
2940 Wed Jan 23 20:28:59 2002  Owen Taylor  <otaylor@redhat.com>
2941
2942         * gtk/gtknotebook.c (gtk_notebook_draw_arrow): 
2943         Use insensitive state for insensitive arrows, not
2944         just an "etched state". (#67172, Adrian Custer)
2945
2946 2002-01-23  Manish Singh  <yosh@gimp.org>
2947
2948         * gtk/gtkentry.c (gtk_entry_set_text): use a variable that's actually
2949         been declared.
2950
2951 2002-01-23  Damon Chaplin  <damon@ximian.com>
2952
2953         * configure.in (gtk_doc_min_version): set minimum gtk-doc version to
2954         0.9, since we need to use the new --type-init-func argument for
2955         gtkdoc-scangobj.
2956
2957 2002-01-23  Matthias Clasen  <matthiasc@poet.de>
2958
2959         * gtk/gtkentry.c, gtk/gtkwidget.c: Remove excessive
2960         g_return_if_fail() calls. (#57615)
2961
2962         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries): Make
2963         it work for paths with underline accelerators. (#69247)
2964
2965 Wed Jan 23 15:12:16 2002  Owen Taylor  <otaylor@redhat.com>
2966
2967         * gtk/gtkspinbutton.c (gtk_spin_button_state_changed): 
2968         Stop spinning if widget becomes insensitive. (#56248)
2969
2970 Wed Jan 23 14:44:12 2002  Owen Taylor  <otaylor@redhat.com>
2971
2972         * gtk/gtkspinbutton.c (EPSILON): Decrease value since
2973         we now use doubles.
2974
2975 Tue Jan 22 16:58:37 2002  Jonathan Blandford  <jrb@redhat.com>
2976
2977         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Fix sizing bug
2978         I introduced accidentally, #69358
2979
2980 2002-01-22 Padraig O'Briain <padraig.obriain@sun.com>
2981
2982         * gtk/gtktreestore.c (gtk_tree_store_iter_children):
2983         Update last change to prevent core dump
2984
2985 Mon Jan 21 01:21:54 2002  Kristian Rietveld  <kris@gtk.org>
2986
2987         * gtk/gtktreestore.c: add some more stamp checks (pointed out
2988         by Anders Carlsson)
2989
2990         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
2991         assume _row_changed will insert sort (because _row_changed doesn't
2992         need to follow this signal), so apply insert sort here
2993         (gtk_tree_model_sort_level_find_insert): header doesn't need to be
2994         set here, so use a return instead of g_return_val_if_fail.
2995
2996 Mon Jan 21 18:28:17 2002  Jonathan Blandford  <jrb@redhat.com>
2997
2998         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update
2999         top_row.  Remove extraneous print statements.
3000
3001 2002-01-21  Matthias Clasen  <matthiasc@poet.de>
3002
3003         * gtk/gtkitemfactory.c (gtk_item_factory_popup, 
3004         gtk_item_factory_popup_with_data): Document allowed values
3005         for ifactory.
3006
3007         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make 
3008         it work for paths with underline accelerators.
3009
3010 Fri Jan 18 16:31:21 2002  Jonathan Blandford  <jrb@redhat.com>
3011
3012         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
3013         window.
3014
3015 Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
3016
3017         * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
3018         case where there is no default widget and the entry
3019         is the focus widget, since this also causes infinite
3020         recursion. (#69158)
3021
3022 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
3023
3024         * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
3025         rather than lazilygdk_get_program_class(), since we don't want
3026         -name to override it. (#69123, Ryan Lovett)
3027
3028 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
3029
3030         * gdk/gdk.c: Fix wrong types for command line arguments 
3031         (#69124, Ryan Lovett)
3032
3033         * gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
3034         parsing '--arg VALUE'.
3035
3036         * gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
3037
3038 2002-01-21  Havoc Pennington  <hp@pobox.com>
3039
3040         * gdk/gdkwindow.c (gdk_window_add_filter): mention that window 
3041         arg can be NULL
3042
3043 Sat Jan 19 20:49:41 2002  Kristian Rietveld  <kris@gtk.org>
3044
3045         * demos/gtk-demo/editable_cells.c: fix a load of open line ends
3046         (cell_edited): modified patch from German Poo Caaman~o
3047         to fix up old_text declaration and free the memory
3048         (do_editable_cells): unref the model after creating the treeview
3049
3050         * demos/gtk-demo/list_store.c: fix a load of open line ends,
3051         (add_columns): set the sort column id, so we can sort
3052
3053         * demos/gtk-demo/tree_store.c: fix a load of open line ends,
3054         (do_tree_store): unref the model after creating the treeview
3055
3056 2002-01-19  Havoc Pennington  <hp@pobox.com>
3057
3058         * gtk/gtkwindow.c: link to new X11 section in a lot of places when
3059         mentioning the window manager.
3060
3061         * gtk/gtkwidget.c (gtk_widget_hide_on_delete): don't mention
3062         window manager since we're portable.
3063
3064 Sat Jan 19 08:47:41 2002  Jeff Garzik  <jgarzik@mandrakesoft.com>
3065
3066         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
3067         Wrap case values in GPOINTER_TO_UINT().  Fixes build with gcc 3.x.
3068
3069         * gtk/gtkmain.c:  Include sys/types.h if G_OS_UNIX.
3070         Fixes build with gcc 3.x and -ansi.
3071
3072 Fri Jan 18 23:01:37 2002  Owen Taylor  <otaylor@redhat.com>
3073
3074         * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
3075         an engine declaration occurs in a reopened style, and
3076         g_free() of objects when errors occur.
3077
3078 2002-01-18  Matthias Clasen  <matthiasc@poet.de>
3079
3080         * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
3081         Clarify documentation. (#69026)
3082
3083         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
3084         missing initialization of adjustment. (#69025)
3085
3086 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
3087
3088         Simplify Makefiles. 
3089         <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
3090         * gdk/Makefile.am: Remove use of automake conditionals to pick
3091         library to build.
3092         * gtk/Makefile.am: Likewise.
3093         
3094         * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
3095         * gtk/Makefile.am (LDFLAGS): Likewise.
3096
3097 Thu Jan 17 20:13:14 2002  Owen Taylor  <otaylor@redhat.com>
3098
3099         * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
3100         missing allocation.x/y offsets. (#68962, Jacob
3101         Berkman)
3102
3103         * gtk/gtknotebook.c (gtk_notebook_size_allocate):
3104         Queue a redraw on the entire widget if we hide
3105         the last page or show the first. (Also #68962)
3106         
3107 2002-01-17  Havoc Pennington  <hp@redhat.com>
3108
3109         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
3110         GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
3111         starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
3112         as in the keynav spec, though it makes the interpretation of
3113         GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
3114         of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
3115         any sense anyhow.
3116
3117 Thu Jan 17 16:34:55 2002  Jonathan Blandford  <jrb@redhat.com>
3118
3119         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
3120         some reason, I was activating a row while just selecting it.
3121         Reported by andersca.
3122         (gtk_tree_view_size_request): add a
3123         validate_rows_handler to give us a rough width of the widget.
3124
3125         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
3126         Queue a resize here just in case.  It's needed in over half the
3127         cases, and I don't want to do a diff to figure out exactly when
3128         it's needed.
3129
3130 2002-01-17  Matthias Clasen  <matthiasc@poet.de>
3131
3132         * gtk/gtkinputdialog.c,
3133         gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
3134         Mark children as composite. (#66360)
3135
3136         * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
3137         composite children some more. (#66360)
3138
3139 2002-01-17  Havoc Pennington  <hp@redhat.com>
3140
3141         * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
3142         function (which I then decided not to use but I think it's needed
3143         to fix #68963
3144
3145         * gtk/gtktextview.c: add page_horizontally action signal and
3146         implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig, 
3147         hackily modified to avoid adding GTK_MOVEMENT_ API. Part of 
3148         #53934
3149
3150         * gtk/gtkmarshalers.list: add NONE:INT,BOOL
3151
3152 Thu Jan 17 17:02:38 2002  Owen Taylor  <otaylor@redhat.com>
3153
3154         * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
3155         gtk_selection_remove_all() here, not in destroy/
3156         finalize. (#66636, Sergey Vlasov)
3157
3158         * gtk/gtkselection.c (gtk_selection_request): Fix
3159         reentrancy problem with multiple conversions.
3160
3161         * gtk/gtkselection.c (gtk_selection_remove_all): 
3162         Don't remove incrs, we don't need the widget for
3163         maintain the incr.
3164
3165         * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
3166         the widget field from here, we don't need it.
3167
3168 Thu Jan 17 13:08:34 2002  Owen Taylor  <otaylor@redhat.com>
3169
3170         * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
3171         here, and save/restore the X error handler to allow
3172         people using GTK+ to set the X error handler to something
3173         custom without disturbing the operation of GDK.
3174
3175         * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push) 
3176         * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
3177         dummy implementations.
3178
3179         * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c 
3180         gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
3181         for all error trapping.
3182
3183         * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
3184
3185         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
3186         problem where we would add the results anyways,
3187         and then add it again if no error occurred, and problem
3188         where we could leave _gdk_error_warnings() unset.
3189
3190 Wed Jan 16 20:28:38 2002  Owen Taylor  <otaylor@redhat.com>
3191
3192         * gtk/gtkfilesel.c: Fix "deleting" filename by adding
3193         another boolean parameter to file_selection_populate() -
3194         whether to clear the entry. Also, never fill in the
3195         entry when the user clicks on something in the 
3196         directory list. (#6791, Reported by Jos Dehaes and many,
3197         many, many others.)
3198
3199 2002-01-16  Havoc Pennington  <hp@redhat.com>
3200
3201         * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
3202         cursor_y_pos with clamped delta rather than theoretical delta
3203         (#68788). Also, if we can't page up/down further then jump 
3204         to top/bottom of the document.
3205
3206 Wed Jan 16 19:33:41 2002  Owen Taylor  <otaylor@redhat.com>
3207
3208         * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
3209         the dialog on map. (#52877, inspired by request from
3210         Murray Cumming)
3211
3212 Wed Jan 16 19:23:04 2002  Owen Taylor  <otaylor@redhat.com>
3213
3214         * gtk/gtkbindings.c (gtk_binding_entry_activate): 
3215         Support "optional" bindings. If a binding signal
3216         has a boolean return value, and returns FALSE it
3217         is as if it didn't exist all.
3218
3219         * gtk/gtkbindings.c (binding_compose_params): Switch
3220         over to GValue.
3221
3222         * gtk/gtknotebook.[ch]: Make the select_page() and
3223         change_current_page() signals only take effect when
3224         the focus is on the tab area so that key presses
3225         in children pass up to the toplevel correctly.
3226
3227 Wed Jan 16 12:16:37 2002  Owen Taylor  <otaylor@redhat.com>
3228
3229         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix 
3230         calculation error in the (shouldn't happen) case where
3231         option_menu->height < child_requisition.height. (Patch
3232         from Jacob Berkman, #66969)
3233
3234 2002-01-15  Matthias Clasen  <matthiasc@poet.de>
3235
3236         * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
3237
3238         * gtk/gtkscale.h (gtk_scale_value_width): Remove useless 
3239         compatibility macro. (#67730) 
3240
3241 Wed Jan 16 10:54:38 2002  Owen Taylor  <otaylor@redhat.com>
3242
3243         * configure.in: Fix typo in --help output.
3244         (Arnaud Charlet).
3245
3246 Wed Jan 16 10:18:42 2002  Owen Taylor  <otaylor@redhat.com>
3247
3248         * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add 
3249         gtkstockpixbufs.h.
3250
3251         * configure.in: Make TIFF, JPEG, PNG loaders mandatory
3252         unless you configure with --without-libtiff, etc.
3253         (#54045, Brian Cameron)
3254
3255 2002-01-16  Padraig O'Briain <padraig.obriain@sun.com>
3256
3257         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
3258         Avoid unexpected warning message when navigating menu (#68517)
3259
3260 2002-01-15  Jody Goldberg <jody@gnome.org>
3261
3262         * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
3263         GtkLayout may have been scrolled _before_ it was realized.
3264
3265 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
3266
3267         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
3268         the timer on destroy, or when we are notified that we are
3269         shadowed by a modal dialog.
3270
3271         * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
3272         not needed any more.
3273
3274         * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
3275         weren't sent out for the default grab group.
3276
3277         * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
3278         were getting events because they were part of the previous grab.
3279
3280 Tue Jan 15 12:23:33 2002  Owen Taylor  <otaylor@redhat.com>
3281
3282         * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page): 
3283         focus the activated tab, not the page. (#53612)
3284
3285         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
3286         the last focus descendant of the page.
3287
3288         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
3289         was on the previous page, move it to the last focused widget /
3290         first element on the new page, if possible, or if not, to the 
3291         notebook itself. (#68224, reported by Jonathan Blandford)
3292
3293         * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
3294         tabs aren't visible. (#65462, Damon Chaplin, fixed based 
3295         on patch from Anders Carlsson)
3296
3297 2002-01-15            Vitaly Tishkov       <tvv@sparc.spb.su>
3298
3299         * gtk/gtkstyle.c
3300         a misprint in documentation for gtk_style_render_icon () is fixed
3301
3302 Mon Jan 14 23:21:47 2002  Tim Janik  <timj@gtk.org>
3303
3304         * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
3305         mapping child, so we don't loose events.
3306
3307 2002-01-15  Sven Neumann  <sven@gimp.org>
3308
3309         * gtk/gtkaccellabel.h
3310         * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
3311         names used in headers and code.
3312
3313 2002-01-14  jacob berkman  <jacob@ximian.com>
3314
3315         * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
3316
3317 Tue Jan 15 01:13:51 2002  Kristian Rietveld  <kris@gtk.org>
3318
3319         * gtk/gtktreemodelsort.c: fix a load of open line ends,
3320         (gtk_tree_model_sort_set_model): only free root level if it's
3321         !NULL
3322
3323 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
3324
3325         * gtk/gtkoldeditable.c, gtk/gtkrc.c, 
3326         gtk/gtkstyle.c: Documentation additions.
3327
3328         * gtk/gtkmenu.c (gtk_menu_set_accel_path),
3329         gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path), 
3330         gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
3331
3332         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
3333
3334         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
3335
3336 Mon Jan 14 17:14:13 2002  Owen Taylor  <otaylor@redhat.com>
3337
3338         * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
3339         mangle sequences of consecutive \n or \r.
3340
3341 Mon Jan 14 17:42:28 2002  Jonathan Blandford  <jrb@redhat.com>
3342
3343         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
3344         happen.
3345
3346         * gtk/gtktreeview.c (install_presize_handler): only install the
3347         handler if we're realized, #68056
3348
3349 Mon Jan 14 16:35:58 2002  Owen Taylor  <otaylor@redhat.com>
3350
3351         * gtk/gtkwindow.c (gtk_window_move_resize): Unset 
3352         initial_pos_set after the first configure request.
3353
3354 2002-01-13  Jody Goldberg <jody@gnome.org>
3355
3356         * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
3357           and will use a mem_chunk to do it.  Avoid an unnecessary copy, a
3358           leak, and confusion.
3359
3360 Sun Jan 13 23:23:22 2002  Owen Taylor  <otaylor@redhat.com>
3361
3362         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
3363         widget->requisition was being used instead of
3364         gtk_widget_get_child_requisition (), causing geometry widgets
3365         with usizes to misbehave.
3366
3367 2002-01-14  Sven Neumann  <sven@gimp.org>
3368
3369         * gtk/gtkrc.c: g_getenv() returns a const string.
3370
3371 2002-01-14  Hasbullah Bin Pit  <sebol@ikhlas.com>
3372
3373         * configure.in: Added ms at ALL_LINGUAS.
3374         * po/ms.po: Added Malay Translation.
3375
3376 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
3377
3378         * gtk/gtkitemfactory.c: Documentation.
3379
3380 2002-01-13  Sven Neumann  <sven@gimp.org>
3381
3382         * gdk/gdkwindow.c: documentation cleanups.
3383
3384 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
3385
3386         * gtk/gtktreemodelsort.c: various cleanups,
3387         (get_child_iter_from_elt): removed,
3388         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
3389         and especially faster,
3390         (gtk_tree_model_convert_iter_to_child_iter): use
3391         gtk_tree_model_sort_elt_get_path
3392
3393 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
3394
3395         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3396         revert Owen's change (using a strdupped string as object data), so
3397         the interactive search works again
3398
3399 2002-01-11  Havoc Pennington  <hp@pobox.com>
3400
3401         * gtk/gtklabel.c: put in more links to Pango markup format docs
3402         (gtk_label_set_justify): mention gtk_misc_set_alignment
3403
3404 2002-01-12  Tor Lillqvist  <tml@iki.fi>
3405
3406         Fixes contributed by Archaeopteryx Software: This is a first small
3407         part of their changes. Will commit more later.
3408         
3409         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
3410         call fails, don't use bogus values.
3411
3412          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
3413         memory leak: g_free() the AND and XOR bitmaps after use.
3414         (_gdk_cursor_destroy): If we are destroying the current Windows
3415         cursor, set the Windows cursor to none first.
3416
3417         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
3418         brush that was in the DC, like the win32-production branch does.
3419
3420         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
3421         the window has a cursor which is the current Windows cursor,
3422         before destroying it set the current Windows cursor to none.
3423         (gdk_window_set_cursor): Also here, if destroying the current
3424         Windows cursor, set the current Windows cursor to none first.
3425         (gdk_window_get_pointer): Revamp logic.
3426         
3427 2002-01-10  jacob berkman  <jacob@ximian.com>
3428
3429         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
3430         through the list rather than infinitely loop
3431
3432 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
3433
3434         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
3435         reset_rc_styles_recurse(). (#68084)
3436
3437 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
3438         * gtk/gtkimage.c
3439         * gtk/gtkimcontext.c
3440         * gtk/gtktreemodel.c
3441         * gtk/gtktreemodelsort.c
3442         * gtk/gtkwindow.c
3443         fix docs        
3444
3445 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
3446
3447         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
3448         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
3449
3450 2002-01-10  Tor Lillqvist  <tml@iki.fi>
3451
3452         Apply the same fixes and improvements as to the
3453         gtk-1-3-win32-production branch: Bug fixes and cleanup of
3454         selection and DND functionality. Still doesn't work as well as the
3455         win32-production branch, though, but getting closer.
3456
3457         After this, need to add Archaeopteryx Software's OLE2 DND support.
3458
3459         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
3460         gdk_selection_send_notify, generate_selection_notify): Don't use
3461         SendMessage() to generate events for the same app, instead use
3462         gdk_event_put().
3463
3464         * gdk/win32/gdkprivate-win32.h
3465         * gdk/win32/gdkglobals-win32.c
3466         * gdk/win32/gdkmain-win32.c
3467         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
3468         initialisation and handling of gdk_selection_notify_msg,
3469         gdk_selection_request_msg and gdk_selection_clear_msg. 
3470
3471         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
3472         gdk_free_text_list, gdk_string_to_compound_text,
3473         gdk_free_compound_text): Implement trivially, witrh a text_list
3474         always having a single element, and a compound text always
3475         consisting of just a single (UTF-8!) string. Let's see how well
3476         this works.
3477
3478         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
3479         non-ASCII paste from the clipboard: Try getting the same formats
3480         from the Windows clipboard that gdk_property_change() puts there:
3481         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
3482
3483         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
3484         storing text on the clipboard, handle non-ASCII text
3485         correctly. The logic is as follows:
3486
3487         If we have only ASCII characters, use CF_TEXT.
3488
3489         Else, if we are on NT, use CF_UNICODETEXT.
3490
3491         Else (we are on Win9x), if all the characters are present in the
3492         code page of some installed locale, use CF_TEXT and also set
3493         CF_LOCALE to that locale.
3494
3495         Else (still on Win9x) store as RTF. We use a very simple RTF
3496         string, just the text, no fonts or other crap, with the non-ASCII
3497         characters as Unicode \uN keywords. Additionally, also store the
3498         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
3499         can also paste from the Clipboard what it has copied there. (Thus
3500         no need to implement any RTF parser.)
3501         
3502         (find_common_locale): New function, implements the search for a
3503         locale for case 3 above.
3504
3505         * gdk/win32/gdkglobals-win32.c: New global variables
3506         compound_text, text_uri_list, utf8_string, cf_rtf and
3507         cf_utf8_string.
3508
3509         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
3510         converts from a wchar_t string to UTF-8.
3511         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
3512         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
3513
3514         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
3515         _gdk_ucs2_to_utf8().
3516
3517         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
3518
3519         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
3520         gdk_drag_context_ref() was called unnecessarily in a couple of
3521         places, meaning drag contexts were never freed. The same memory
3522         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
3523
3524         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
3525         stored file list.
3526
3527         * gdk/win32/gdkselection-win32.c: Clarify the use of the
3528         sel_prop_table. Now it is used only for storing the GDK_SELECTION
3529         "properties".
3530
3531         The file names dropped with WM_DROPFILES -style DND is stored
3532         temporarily (between the drop and the target picking them up) in a
3533         separate place.
3534
3535         Have a separate hash table to map selection atoms to owner
3536         windows. This used to be quite mixed up.
3537
3538         (_gdk_dropfiles_store): New function, to store the dropped file
3539         list for the drop target to possibly fetch, and clear it
3540         afterwards, from gdk_drop_reply().
3541
3542         (gdk_selection_owner_get): Much simplified now.
3543
3544 2002-01-09  jacob berkman  <jacob@ximian.com>
3545
3546         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
3547         our bin window also (fixes #58957)
3548
3549 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
3550
3551         * gtk/gtktreeselection.c
3552         (_gtk_tree_selection_internal_select_node): Now we test we can
3553         unselect nodes before selecting new ones.
3554         (gtk_tree_selection_real_select_node): be careful comparing booleans.
3555
3556 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
3557
3558         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
3559         gtk_tree_model_rows_reordered and not an iter with user_data
3560         set to NULL (which is an invalid liststore iter, so
3561         iter_n_children failed, etc)
3562
3563 2002-01-09  Sven Neumann  <sven@gimp.org>
3564
3565         * tests/prop-editor.c: declared internal functions static.
3566         
3567 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
3568
3569         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
3570         Fix problem with menus without accel groups, such as the
3571         menus for option menus.
3572
3573         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
3574         drawing of handle on whether both children are visible,
3575         not the drawing of the other child!. (#68325, Diego Gonzalez)
3576
3577 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
3578
3579         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
3580         RENDER before trying to use it... XRenderFindFormat() prints
3581         warnings if called when extension isn't present.
3582
3583 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
3584
3585         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
3586         path upon parent changes.
3587
3588 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
3589
3590         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
3591         fix to force vadjustments at size_alocate time from Xavier Ordoquy
3592         <mcarkan@users.sourceforge.net>.
3593
3594 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
3595
3596         * gtk/gtklayout.c (gtk_layout_get_property): 
3597         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
3598         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
3599         * gtk/gtkwidget.c (gtk_widget_get_property): 
3600         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
3601         * gtk/gtkrange.c (gtk_range_get_property):
3602         * gtk/gtkviewport.c (gtk_viewport_get_property):
3603         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
3604         possible NULL pointer.
3605
3606 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
3607
3608         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
3609         * gtk/gtktreednd.h : ditto.
3610         * gtk/gtktreemodel.h : ditto.
3611         * gtk/gtktreesortable.h : ditto.
3612         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
3613
3614 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
3615
3616         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
3617         than XIDs in the docs.
3618
3619         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
3620
3621 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
3622
3623         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
3624         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
3625
3626 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
3627
3628         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
3629         Handle TOGGLE/RADIOBUTTON as well. (#68201,
3630         Damon Chaplin.)
3631
3632         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
3633         bug, just introduced.
3634
3635 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
3636
3637         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
3638         translations, once and for all.
3639
3640         * gtk/gtktextbuffer.c (paste_from_buffer): Free
3641         the ClipboardRequest structure. (#66198, HideToshi
3642         Tajima)
3643
3644 2002-01-08  jacob berkman  <jacob@ximian.com>
3645
3646         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
3647         the child rather than the layout. see bug #68263
3648
3649 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
3650
3651         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
3652         the handle if we aren't showing both children.
3653         (#68135, Diego Gonzalez)
3654
3655 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
3656
3657         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
3658         leak of result of gtk_container_get_children().
3659
3660 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
3661
3662         * gtk/gtktoolbar.c: Fix leaks of results of
3663         gtk_container_get_children(). (#68199, Damon Chaplin)
3664
3665 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
3666
3667         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
3668         Fix problem where child->requisition was accessed
3669         directly instead of calling get_child_requisition()
3670         (#68199, Damon Chaplin)
3671
3672 2001-01-08  James Henstridge  <james@daa.com.au>
3673
3674         * gtk/gtkstyle.c: add trailing */ on doc comment.
3675
3676 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
3677
3678         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
3679         problem where were the offset into the image was passed
3680         into convert_to_format() wrong.
3681
3682         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
3683         gdk_x11_drawable_update_picture_clip () before using
3684         the picture; allow update_picture_clip() to take a NULL gc
3685         to mean no clipping.
3686
3687 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
3688
3689         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
3690
3691         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
3692
3693         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
3694
3695         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
3696
3697         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
3698         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
3699         gtk_widget_push_composite_child), gtk/gtkdialog.c 
3700         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
3701         from messing up the indentation of inline examples.     
3702
3703         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
3704         instead of getenv().
3705
3706         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
3707         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
3708         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
3709
3710         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
3711         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
3712         Document.
3713
3714 2002-01-07  Anders Carlsson  <andersca@gnu.org>
3715
3716         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
3717         unused pixels and rowstride variables.
3718         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
3719
3720 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
3721
3722         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
3723         the pointer by x/y_offset into the new window when we found
3724         the drag destination.
3725
3726         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
3727         for simulation when the entry already contains the required
3728         accel key and mod.
3729
3730 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
3731  
3732         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
3733         G_DISABLE_CAST_CHECKS.
3734
3735         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
3736         gtk_accel_group_query, gtk_accel_group_find,
3737         gtk_accel_groups_from_object): Document.
3738
3739         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
3740
3741 2002-01-04  Hans Breuer  <hans@breuer.org>
3742
3743         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
3744         need to cast image->mem away from void* to avoid 
3745         'error C2036: 'void *' : unknown size'. Doing pointer 
3746         arithmetics on void pointers is a GCCism afaik.
3747
3748         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
3749         _gdk_draw_pixbuf ()
3750
3751         * gdk/makefile.msc gdk/win32/makefile.msc 
3752         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
3753
3754         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
3755         and take care of image->visual possibly NULL.
3756
3757         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
3758         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
3759         Again take care of image->visual possibly NULL.
3760
3761         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
3762
3763         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
3764         instead of private field access
3765
3766         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
3767         colormap setting to the gdk-X behaviour
3768
3769 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
3770
3771         * gtk/gtkwidget.c: Documentation additions.
3772
3773 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
3774
3775         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
3776
3777         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
3778
3779 2002-01-04  Havoc Pennington  <hp@pobox.com>
3780
3781         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
3782         
3783 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
3784
3785         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
3786         don't infinite loop if the widget and window heirarchies
3787         don't correspond.
3788
3789         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
3790         in heirarchy in ::drag_motion, ::drag_drop callbacks
3791         by referencing child widget lists. (Patch from Tim)
3792
3793         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
3794         with widgets where window.x != widget->allocation.x
3795
3796 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
3797
3798         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
3799         a little bit. (More for consistency than because it
3800         makes much of a difference.)
3801
3802 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
3803
3804         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
3805         (_gdk_x11_have_render): Private function to tell if we have RENDER
3806         extension.
3807
3808         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
3809         None if we don't have RENDER extension.
3810
3811         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
3812         use Xft unless we have render extension.
3813
3814         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
3815         Handle missing render extension.
3816
3817         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
3818         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
3819         to the GdkDrawable vtable that extends get_image() to allow
3820         copying onto existing images.  Make the default implementation of
3821         get_image() use this so that backends don't have to implement
3822         both. Add private wrapper _gdk_drawable_copy_to_image().
3823
3824         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
3825         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
3826         copy_to_image() semantics, speed up by using ShmPixmaps and
3827         XCopyArea when possible, XFlush() after ungrabbing the server,
3828         generally redo the logic once again.
3829
3830         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
3831         _gdk_windowing_bits_per_depth(): Function to convert from depth to
3832         bits-per-pixel. (We assume only one bpp per depth - X requires
3833         this.)
3834
3835         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
3836         scratch image code into a generic _gdk_image_get_scratch() chunk
3837         of code that we can use other places we need scratch images.
3838
3839         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
3840         Add _gdk_image_new_for_depth() as the backend 
3841         to _gdk_image_new() to allowing creating images with
3842         a depth and no visual.
3843
3844         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
3845         parts of images not at 0,0 actually works.
3846
3847         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
3848         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
3849          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
3850           _gdk_draw_pixbuf() [ will be made public later ], to allow 
3851           backends to accelerate drawing pixbufs. 
3852          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
3853            to be the default implementation. 
3854          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
3855          - Optimize the default implementation by using 
3856            _gdk_image_copy_to_pixmap() and scratch shared images, and
3857            special casing the compositing.
3858
3859         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
3860         with alpha using the RENDER extension.
3861
3862         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
3863         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
3864
3865         * tests/testrgb.c: Add test for speed of alpha composition,
3866         reduce the number of iterations since alpha composition
3867         can be a bit slow.
3868
3869         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
3870         Private function to get a ShmPixmap for an image, if possible.
3871
3872 2002-01-04  Anders Carlsson  <andersca@gnu.org>
3873
3874         * tests/testtreesort.c: Add my cool list of integers.
3875
3876 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
3877
3878         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
3879         problem where retrieved atoms weren't properly returned.
3880
3881 2002-01-03  Anders Carlsson  <andersca@gnu.org>
3882
3883         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
3884         tab is pressed and the text view isn't editable, 
3885         move the focus instead.
3886
3887         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
3888         necessary.
3889
3890         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
3891
3892         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
3893
3894         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
3895         if it's NULL.
3896
3897         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
3898         _gtk_tree_view_queue_draw_node.
3899         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
3900
3901         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
3902         sort_column_id can be 0.
3903
3904         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
3905         Only redraw one the node being selected.
3906
3907         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
3908         
3909 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
3910
3911         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
3912         realized but visible && !mapped resize containers (which is
3913         possible with unset CHILD_VISIBLE now).
3914
3915 2002-01-02  jacob berkman  <jacob@ximian.com>
3916
3917         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
3918         libsomething_la_LDFLAGS, so fix the build again
3919
3920 2002-01-01  Havoc Pennington  <hp@pobox.com>
3921
3922         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
3923         exposes to no window children not in the buffer window.
3924         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
3925         - is this the right way to do it?
3926         (gtk_text_view_focus): add focus method, just chains up for now, 
3927         I'm not sure why the GtkContainer implementation doesn't work
3928
3929         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
3930         in the text line for the child anchor segment
3931
3932         * tests/testtext.c (do_add_focus_children): add another test
3933         example (to put focusable buttons into the widget)
3934
3935 2002-01-01  Havoc Pennington  <hp@pobox.com>
3936
3937         * docs/README.linux-fb: note that this file is obsolete
3938
3939         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
3940         files that they should not be edited and look in the reference 
3941         manual instead. Probably these files should just be replaced by 
3942         the note, and their main contents deleted.
3943
3944         * gtk/gtktextview.c: docs
3945
3946         * gtk/gtktextmark.c: docs
3947
3948         * gtk/gtktextchild.c: docs
3949
3950         * gtk/gtktextbuffer.c: docs stuff
3951
3952         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
3953         give people more leads in sorting out PRIMARY vs. CLIPBOARD
3954
3955 2002-01-01  Tor Lillqvist  <tml@iki.fi>
3956
3957         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
3958         ../gdk-pixbuf/gdk-pixbuf-csource.
3959
3960 2001-12-31  Tor Lillqvist  <tml@iki.fi>
3961
3962         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
3963         handling.
3964         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
3965
3966         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
3967         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
3968         one more place.
3969
3970         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
3971         -Wall.
3972
3973         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
3974
3975 2002-01-01  Havoc Pennington  <hp@pobox.com>
3976
3977         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
3978         fix
3979         
3980 2002-01-01  Havoc Pennington  <hp@pobox.com>
3981
3982         * gtk/gtktextview.c (changed_handler): Replace call to
3983         gtk_widget_size_request() that expected to actually compute the
3984         request with a direct use of widget_class->size_request, so we get
3985         our size request right; fixes remaining part of #63065 reported by
3986         Matthias Clasen
3987
3988 2001-12-31  Havoc Pennington  <hp@pobox.com>
3989
3990         * tests/testtext.c (do_insert_and_scroll): remove backward_char
3991         since we no longer have bogus newline
3992         (dialog_response_callback): remove another backward_char horkage, 
3993         reported by Matthias Clasen #63065
3994
3995 2001-12-31  Havoc Pennington  <hp@pobox.com>
3996
3997         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
3998         fix an incorrect assertion that the "valid" flag is always correct
3999         in a node and add explanatory comment. This keeps me from 
4000         reproducing #59101, but I'm remembering that 59101 was actually 
4001         about incorrect pixel totals, so I'm not sure 59101 is actually 
4002         fixed. May just have stopped happening due to some change in 
4003         how C-k works.
4004
4005 2001-12-31  Havoc Pennington  <hp@pobox.com>
4006
4007         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
4008         selection if shift is down, bug #50939
4009         (gtk_text_view_button_press_event): add double/triple click
4010         selection to the current selection if shift is down
4011
4012 2001-12-31  Havoc Pennington  <hp@pobox.com>
4013
4014         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
4015         to use ensure_byte_offsets not ensure_char_offsets, patch 
4016         from Padraig O'Briain bug #67356
4017         
4018 2001-12-30  Havoc Pennington  <hp@pobox.com>
4019
4020         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
4021         the right values, reported by Jeff Franks
4022
4023 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
4024
4025         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
4026
4027 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
4028
4029         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
4030         Minor documentation tweaks.
4031
4032 2001-12-28  Tor Lillqvist  <tml@iki.fi>
4033
4034         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
4035         (unicode_classify): Don't return -1 on encountering an
4036         unclassified character, but play it safe and return U_BASIC_LATIN.
4037
4038 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
4039
4040         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
4041         of misc->xpad/ypad consistent with GtkLabel. Do 
4042         directional flipping when interpreting misc->xalign/yalign.
4043         Fix off-by-one error for negative x,y. (#67472, reported
4044         by Mathieu Lacage)
4045
4046 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
4047
4048         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
4049         Remove optimization that was causing problems because
4050         we called gtk_widget_size_request() before we called
4051         gtk_widget_queue_resize() so RESIZE_NEEDED was not
4052         set. Optimization shouldn't mattter now that we
4053         are smart about needlessly size requesting or allocating
4054         widgets. (#67598, reported by Jacob Berkman)
4055
4056 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
4057
4058         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
4059         Call gdk_window_get_pointer() on menu->bin_window not
4060         menu->window, so we get the correct window for the
4061         menu item. (#65213, Guillermo S. Romero)
4062
4063 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
4064
4065         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
4066         the title by setting to NULL. Move docs inline. 
4067         Update the title if the tearoff window already
4068         exists. Code cleanup. (Fixes #65190, reported by
4069         Vitaly Tishkov.)
4070
4071 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
4072
4073         * gtk/gtksocket.c (gtk_socket_key_press_event): 
4074         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
4075         special handling of key presses unless we are doing 
4076         iter-app embedding. (Fixes #67590, Anders Carlsson)
4077
4078 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
4079
4080         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
4081         (gtk_tree_model_sort_sort_level),
4082         (gtk_tree_model_sort_insert_value): fix a few places where
4083         I was confused between modelsort iters and other iters. This was
4084         really going to happen someday ;)
4085
4086 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
4087
4088         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
4089         we are unprelighted before reordering
4090
4091         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
4092         need to break out of the for loop, not return (this fixed
4093         the 'selection freeze' bug).
4094
4095         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
4096         be pretty stable now, though it still needs some more code
4097         cleanups.
4098
4099 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
4100
4101         * docs/Changes-2.0.txt: Document the fact that
4102         gtk_paned_set_handle_size() has been removed.
4103
4104         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
4105         since it pointed to gtk_paned_set_handle_size(), which
4106         was removed. (#66760, Matt Wilson)
4107
4108 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
4109
4110         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
4111         gtk_drag_hightlight_expose _after_, so it works with
4112         widgets that paint there entire background. (#66735)
4113
4114 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
4115
4116         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
4117         allocation to widget->allocation. (Fixes #67290,
4118         Chris Phelps.)
4119
4120 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
4121
4122         (#67542, reported by Anders Carlsson)
4123         
4124         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
4125         rc_style->font_desc with defaul style instead of replacing
4126         it.
4127
4128         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
4129         font descriptions in RC styles by calling
4130         pango_font_description_merge(). 
4131
4132 2001-12-24  James Henstridge  <james@daa.com.au>
4133
4134         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
4135         valid with both SGML and XML.
4136
4137 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
4138
4139         * configure.in: 1.3.12, interface, binary age 0.
4140
4141         * configure.in: Require new versions of Glib, Pango, ATK.
4142
4143         * NEWS: Updated.
4144
4145         * configure.in: Make explicit what libtool we are executing.
4146         (Tomas Ogren)
4147
4148         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
4149
4150         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
4151         parameter names for docs.
4152
4153 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
4154
4155         * gtk/gtkwindow.c (gtk_window_realize) 
4156           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
4157
4158         * gtk/gtkentry.c (gtk_entry_key_release)
4159           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
4160         key release events to the input method.
4161
4162         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
4163         Handle release of Control/Shift to end hex sequence.
4164
4165         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
4166         Handle key releases as well as presses.
4167
4168 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
4169
4170         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
4171
4172         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
4173         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
4174         documentation about underscores and mnemonics. (#66380)
4175
4176         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
4177         cyclic reference in docs.
4178
4179         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
4180         of default value. (#65402)
4181
4182         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
4183         Markup fixes.
4184
4185 2001-12-20  Anders Carlsson  <andersca@gnu.org>
4186
4187         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
4188         map here.
4189
4190 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
4191
4192         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
4193         (reported by Jeff Franks.)
4194
4195 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
4196
4197         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
4198         prototype for direction_changed. (Reported by
4199         Jeff Franks.)
4200
4201 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
4202
4203         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
4204         Fix typo (list->data becomes list->next)
4205
4206 2001-12-06  Havoc Pennington  <hp@redhat.com>
4207
4208         Add Unicode control char menu, based on patch from Dov.
4209         Bug #63495
4210         
4211         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
4212         gtk_entry_enter_text
4213         (gtk_entry_enter_text): function to do "typing in text"
4214         (popup_targets_received): add the Unicode menu items
4215
4216         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
4217         on Input Methods item, and add the unicode menu items.
4218
4219         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
4220         used in GtkEntry and GtkTextView - may become public later.     
4221
4222 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
4223
4224         * gtk/gtkprogressbar.c: Fix a typo.
4225         * gtk/gtkpaned.c: Fix a typo.
4226         
4227 2001-12-15  Darin Adler  <darin@bentspoon.com>
4228
4229         Fix some warnings.
4230
4231         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
4232         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
4233         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
4234         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
4235         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
4236         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
4237         Restructure loop to get rid of uninitialized variable warning. Also
4238         gives a tiny efficiency gain.
4239
4240 2001-12-15  Murray Cumming  <murrayc@usa.net>
4241
4242         * Fixed first arg type of GtkScale's "format_value" signal's
4243         function pointer.
4244
4245 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
4246         docs/reference/gtk/tmpl/gtkcelleditable.sgml
4247                 gtkcelleditable -> GtkCellEditable
4248         docs/reference/gtk/tmpl/gtktreesortable.sgml
4249                 gtktreesortable -> GtkTreeSortable
4250
4251 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4252
4253         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
4254         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
4255         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
4256         resp.
4257
4258 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
4259
4260         * gtk/gtktreeview.c (validate_visible_area): free path
4261         at the end
4262
4263 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
4264
4265         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
4266
4267 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
4268
4269         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
4270         to find the clicked node in the tree when tree == NULL
4271
4272 2001-12-13  Anders Carlsson  <andersca@gnu.org>
4273
4274         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
4275         event->state with the default mod mask. 
4276
4277 2001-12-12  jacob berkman  <jacob@ximian.com>
4278
4279         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
4280
4281 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
4282
4283         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
4284         Reset the existing slave before removing it to give
4285         it a chance to commit and emit "preedit_changed" 
4286         in case there was still a preedit string.
4287
4288 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
4289         
4290         * gtk/gtktextlayout.c: Typo fixes
4291         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
4292
4293         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
4294         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
4295
4296         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
4297
4298 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
4299
4300         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
4301         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
4302
4303 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
4304
4305         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
4306         "prepainting" the menu before realizing other than
4307         via gtk_style_set_background() - this was broken when
4308         we added menu scroll support.
4309
4310         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
4311         window in the expose event -- fixes problem with border
4312         flashing during scrolling.
4313
4314 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
4315
4316         * gtk/gtksettings.c (gtk_settings_get_property): Support
4317         using names/nicks for the gdk_settings values for enum valued
4318         types. (#57678, reported by Anders Carlsson)
4319
4320 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
4321
4322         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
4323         with insert_page_menu.  Code duplication is bad.
4324
4325         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
4326         wrong fix yesterday.
4327
4328 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
4329
4330         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
4331         modifiers.
4332
4333 2001-12-12  James Henstridge  <james@daa.com.au>
4334
4335         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
4336         (menu_item)->accel_path first when looking up the accel path.
4337
4338 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
4339
4340         * tests/testgtk.c (layout_expose_handler): Only draw
4341         for events on the bin window.
4342
4343 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
4344
4345         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
4346         mnemonics work with notebooks.
4347
4348 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
4349
4350         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
4351         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
4352         Makes some flicker while scrolling go away.
4353
4354 2001-12-11  Michael Natterer  <mitch@gimp.org>
4355
4356         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
4357         adds alpha to the pixbuf; re-load the saved pixbuf and
4358         pixel-by-pixel compare it with the original one.
4359
4360 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
4361
4362         * ChangeLog: Fix wrong ChangeLog entry
4363         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
4364         right corner
4365
4366 2001-12-10  jacob berkman  <jacob@ximian.com>
4367
4368         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
4369         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
4370         (gdk_keyboard_grab): do not grab things if the nograb debug flag
4371         is set
4372
4373         * gdk/gdkinternals.h: 
4374         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
4375         keyboard / mouse
4376
4377 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
4378
4379         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
4380         didn't reset the timer.
4381
4382 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
4383
4384         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
4385
4386 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
4387
4388         * gtk/gtkviewport.c: Add docs.
4389
4390 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
4391
4392         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
4393         RBTree corruption bug--
4394
4395 2001-12-10  Anders Carlsson  <andersca@gnu.org>
4396
4397         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
4398         if edited_column is NULL, also grab focus before removing
4399         the cell_editable.
4400
4401 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
4402
4403         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
4404           denominator in the horizontal case just like we do in the vertical
4405           case (why I didn't notice that there were two cases the first time
4406           around is beyond me:).  Also fix indentation in the vertical case.
4407
4408 2001-12-09  Anders Carlsson  <andersca@gnu.org>
4409
4410         * gdk/x11/gdkevents-x11.c: Update xsettings name.
4411
4412         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
4413         gtk-dnd-drag-threshold GtkSetting.
4414
4415         * gtk/gtksettings.c (gtk_settings_class_init): Add 
4416         setting for dnd drag threshold.
4417
4418 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
4419
4420         * gtk/gtkcontainer.c: Add docs.
4421
4422 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
4423
4424         * gtk/gtkwidget.c: Doc markup fix. 
4425
4426         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
4427
4428         * gtk/gtktreestore.c: Typo fixes. (#66445)
4429
4430         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
4431
4432         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
4433         to gtk_clipboard_set_with_owner(). (#66424)
4434  
4435 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
4436
4437         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
4438         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
4439         Fabrice Bellet <fabrice@gnu.org>, #54127).
4440
4441 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
4442
4443         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
4444         of places, so that people with crashy trees can just run their
4445         program with GTK_DEBUG=TREE.
4446
4447 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
4448
4449         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
4450         per jrb's request
4451
4452 2001-12-08  Anders Carlsson  <andersca@gnu.org>
4453
4454         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
4455         since then the default GtkLayout expose handler won't be called.
4456
4457 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
4458
4459         * gtk/gtktreeview.c (validate_rows_handler): remove
4460         g_return_if_fail.
4461
4462         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
4463         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
4464         empty model.
4465
4466 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
4467
4468         * gtk/gtktreeview.c (validate_visible_area): get logic right,
4469         #66249
4470
4471         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
4472         removing a node ended up with a corrupt tree.  Really really nasty
4473         bug.
4474         (_gtk_rbtree_debug_spew): new debug helper function
4475         (_fixup_validation): new inline function to clean up code
4476         readability a lot. 
4477
4478 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
4479
4480         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
4481         Close comment.
4482
4483 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
4484
4485         * gtk/gtkstyle.h: Typo fixes.
4486
4487         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
4488
4489         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
4490
4491 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
4492
4493         * modules/input/gtkimcontextxim.c: Display the XIM
4494         status callbacks with a popup window. (Patch from
4495         HideToshi Tajima, #50628, somewhat modified.)
4496
4497 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
4498
4499         * gtk/Makefile.am: each source generation rule needs to use its own
4500         temporary file, to avoid clashes for parallel builds. fixed rules
4501         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
4502
4503 2001-12-07  Havoc Pennington  <hp@pobox.com>
4504
4505         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
4506         "cursors that are actually useful" in gdk_cursor_new() docs
4507
4508 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
4509
4510         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
4511         in computing the size of the second child.
4512
4513 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
4514
4515         * gtk/gtkrange.c: Make button 1 clicks on the trough
4516         do pages, button 3 steps. (Patch from Hans Breuer
4517         #63735)
4518
4519 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
4520
4521         * gtk/gtklabel.c: Fix docs. (#66383)
4522
4523         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
4524         (#66278, #66280)
4525         
4526         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
4527         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
4528
4529         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
4530         Don't emit a g_warning() about being deprecated. (#66208)       
4531
4532         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
4533
4534         * gtk/gtkcontainer.c: Doc fixes.
4535         
4536         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
4537
4538         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
4539
4540 2001-12-05  Sven Neumann  <sven@gimp.org>
4541
4542         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
4543
4544         * gtk/queryimmodules.c: g_dir_read_name() returns const.
4545
4546 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
4547
4548         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
4549         #66225
4550         
4551 2001-12-04  Manish Singh  <yosh@gimp.org>
4552
4553         * gtk/gtkmain.c
4554         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
4555         a gpointer.
4556
4557         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
4558         correction to docs.
4559
4560         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
4561
4562 2001-12-04  Havoc Pennington  <hp@redhat.com>
4563
4564         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
4565         g_assert_not_reached() that was bogus, since we demand-create the
4566         tag info. reported by Chris Phelps
4567
4568         Jump through assorted hoops to fix bug from Chris Phelps where 
4569         removing tags from the table resulted in btree trying to 
4570         access tag->table
4571         
4572         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
4573         ourselves to the tag table
4574
4575         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
4576         (_gtk_text_tag_table_remove_buffer): private cruft to 
4577         let us notify buffer of disappearing tags
4578
4579         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
4580         header, put it in tagprivate    
4581
4582         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
4583         tag_removed; it's emitted too late.
4584         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
4585         this
4586
4587         Padding for ABI-compat expansion
4588         
4589         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
4590         (struct _GtkTextAppearance): one pad in here too
4591
4592         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
4593
4594         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
4595         since action signals etc. seem pretty likely
4596
4597         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
4598
4599         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
4600
4601         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
4602
4603 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
4604
4605         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
4606
4607         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
4608
4609         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
4610
4611 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
4612
4613         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
4614         #62084.
4615
4616 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
4617
4618         * demos/gtk-demo/main.c: (create_tree): Minor fix.
4619
4620         * docs/tree-column-sizing.txt: Update
4621
4622         * gtk/gtkrbtree.[ch]: Massive work to support validation.
4623
4624         * gtk/gtktreemodel.c: Doc fixes.
4625
4626         * gtk/gtktreeview.c: Incremental reflow added.
4627         * gtk/gtktreeviewcolumn.c: ditto
4628         * gtk/gtktreeviewcolumn.h: ditto
4629
4630 2001-12-04  Havoc Pennington  <hp@redhat.com>
4631         
4632         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
4633         "invisible" property, #65999
4634
4635 2001-12-04  Matt Wilson  <msw@redhat.com>
4636
4637         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
4638
4639 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
4640
4641         * gtk/gtksettings.c (gtk_settings_set_property_value):
4642         Simplify, make more efficient and fix memory leak
4643         when turning quark into a string. (#66103, HideToshi
4644         Tajima)
4645
4646         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
4647         init() and unref priv->tooltips in destroy rather
4648         than calling gtk_object_destroy() which has no
4649         effect on memory management. (#66104, HideToshi
4650         Tajima)
4651
4652         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
4653         so we free the when the object is freed. (Fixes memory
4654         leak, #66096, HideToshi Tajima)
4655
4656         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
4657         a full GdkEvent structure to avoid reads of uninitialized/
4658         invalid memory in gdk_event_put() (#65877, patch
4659         from Hidetoshi Tajima)
4660
4661 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
4662
4663         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
4664         toggle-size-request doesn't take a requisition.
4665
4666         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
4667         reference to marshaler that no longer exists.
4668
4669 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
4670
4671         Patch from Bill Haneman (with many modifications) to make
4672         the focus color work on dark themes and to make the
4673         focus line width configurable. (#61079, #63074)
4674
4675         * gtk/gtkwidget.c: Add style properties, 
4676         ::focus-widget, ::focus-line-width, and ::focus-padding.
4677
4678         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
4679         state argument as well so we can use fg[STATE] to
4680         draw instead of always drawing with black. 
4681         Cange paint_focus() to respect GtkWidget::focus-width
4682         and GtkWidget::focus-line-pattern. Fix continuity
4683         problem where the default 1-1 stipple had a blob
4684         in one corner and a gap in the other. Change the
4685         interpretation of x/y/width/height to be the bounding
4686         box of the focus rect instead of the rectangle
4687         passed to gdk_draw_rectangle.
4688
4689         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
4690         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
4691         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
4692         and ::focus-line-padding.
4693
4694         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
4695         and remove duplicated code; fix drawing of focus rectangle
4696         when interior-focus = FALSE. (#63072, #63073)
4697
4698         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
4699         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
4700         Range and TreeViewColumn will need more extensive fixing.
4701
4702         * gtk/gtkcolorsel.c: Honor focus line attributes when
4703         drawing the focus on the color swatches. (#63071)
4704
4705         * gtk/gtkhsv.c: Honor focus line attributes when
4706         drawing the focus for the ring and triangle.
4707
4708         * docs/widget_geometry.txt: Start at documenting how 
4709         various widgets are drawn.
4710
4711         * gtk/gtkbutton.c (_gtk_button_paint): Export 
4712         _gtk_button_paint() librarywide, so we don't have 
4713         duplicate a bunch of code in gtktogglebutton.c.
4714
4715         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
4716
4717 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
4718
4719         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
4720         NONE:POINTER.
4721
4722 2001-12-03  Alex Larsson  <alexl@redhat.com>
4723
4724         * gtk/gtkaccellabel.c:
4725         * gtk/gtkarrow.c:
4726         * gtk/gtkcolorsel.c:
4727         * gtk/gtkcontainer.c:
4728         * gtk/gtklabel.c:
4729         * gtk/gtktextview.c:
4730         * gtk/gtktogglebutton.c:
4731         * gtk/gtktreeview.c:
4732         * gtk/gtkwindow.c:
4733         Return FALSE from expose handlers.
4734
4735 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
4736
4737         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
4738         we use pointers, we should free the previous pointer first (if
4739         it exists), before we set a new pointer. (#64726)
4740
4741         * gtk/gtktreeprivate.h: get rid of cursor_drag
4742
4743         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
4744         for cursor_drag
4745         (gtk_tree_view_bin_expose): don't directly return in the while
4746         loop
4747         (gtk_tree_view_class_init): indentend expanders by default
4748         (gtk_tree_view_header_focus): only give the button focus
4749         if it's clickable, visible and the column is reorderable
4750         (#65539)
4751
4752         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
4753         create and free cursor
4754
4755 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
4756
4757         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
4758         some bugs with size requisition. (From Bill Haneman)
4759
4760         * gtk/gtkcalendar.c: Draw headers and selection in 
4761         base/text[SELECTED] instead of fg/bg[SELECTED].
4762
4763         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
4764         code and formatting.
4765
4766 2001-12-03  Havoc Pennington  <hp@pobox.com>
4767
4768         * gtk/gtktextview.c (set_window_height): 
4769         (set_window_width): Hmm, setter functions normally assign the new
4770         value to the object field. Reported by Chris Phelps.
4771
4772 2001-11-30  jacob berkman  <jacob@ximian.com>
4773
4774         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
4775         signal id to 0 after we disconnect from it
4776
4777 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
4778
4779         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
4780         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
4781         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
4782         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
4783
4784         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
4785         GTK_DISABLE_DEPRECATED.
4786
4787         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
4788         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
4789
4790 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
4791
4792         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
4793         move/resize code, removing various bad, non-functional
4794         hacks. (Fixes #65048, reported by Damon Chaplin.)
4795
4796 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
4797
4798         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
4799         bad match error when target drawable is not the 
4800         same depth as the root window. (#65841)
4801
4802         * HACKING: Update.
4803
4804 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
4805
4806         * gdk/gdkwindow.c: Typo fix.
4807
4808 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
4809
4810         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
4811         empty menu items to behave like insensitive items (#59456)
4812
4813         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
4814         next item if the first item in the menu is a tear off item
4815         (#59456-2, suggestion by Matthias Clasen)
4816
4817         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
4818         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
4819         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
4820         (gtk_real_menu_shell_activate_current): add check, so empty
4821         menu items behave like insensitive items (#59456)
4822         
4823         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
4824         the checks more readable ...
4825         
4826         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
4827         (gtk_menu_shell_button_release): causes the menu to dropdown if the
4828         caption is clicked again (#64977)
4829
4830 2001-11-29  Havoc Pennington  <hp@redhat.com>
4831
4832         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
4833         assertion here that we were at the end iterator was not correct;
4834         change code to move us to the end iterator. bug #65731
4835
4836 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
4837
4838         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
4839         improper use of g_locale_to_utf8() to convert from
4840         latin-1, and do it the easy way by building the string
4841         correctly in the first place.
4842
4843 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
4844
4845         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
4846         Convert atoms to and from atoms for properties of type XA_ATOM.
4847         (#65555, patch from Hidetoshi Tajima)
4848
4849 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
4850
4851         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
4852         to avoid problems with Objective C.
4853
4854 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
4855         
4856         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
4857
4858         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
4859         Fix docs. (#65505)
4860
4861         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
4862
4863 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
4864
4865         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
4866         accounting of menu->tearoff_scrollbar width to here
4867         and make sure we have the correct requisition.
4868
4869         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
4870         by using gtk_window_move().
4871
4872         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
4873         the requisition to be updated by calling
4874         gtk_widget_size_request() (#65440)
4875
4876         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
4877         queue resize before calling gtk_menu_set_tearoff_state().
4878
4879 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
4880
4881         * demos/gtk-demo/editable_cells.c: fix typo
4882
4883         * demos/gtk-demo/list_store.c (add_columns): remove call to
4884         gtk_tree_view_column_set_clickable which didn't make sense
4885
4886 2001-11-28  Havoc Pennington  <hp@redhat.com>
4887
4888         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
4889         explaining the validation error in front of the G_BREAKPOINT
4890
4891         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
4892         process updates with include_children = FALSE instead of TRUE, so
4893         we redraw the range only, not the whole darn window.  Making
4894         GtkRange a NO_WINDOW widget had weirdly caused the text widget
4895         Trace/breakpoint trap bug to become much easier to trigger.
4896
4897 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
4898
4899         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
4900         to gdkcursors.h.
4901
4902 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
4903
4904         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
4905
4906         * gdk/gdkcursor.h: Directly include the contents
4907         of gdkcursors.h in the GdkCursorType enum.
4908
4909         * gdk/gdkcursors.h: Deleted.
4910
4911         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
4912         header boilerplate.
4913
4914         * gdk/Makefile.am: Remove the X-derived-headers rule.
4915
4916 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
4917
4918         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
4919         Notify on the ::active property _here_, not in
4920         gtk_check_menu_item_set_active.
4921
4922 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
4923
4924         * gtk/gtkcellrendererpixbuf.c
4925         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
4926         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
4927
4928 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
4929
4930         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
4931         comment about what is going on in this file.
4932
4933         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
4934         x/y problem.
4935
4936 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
4937
4938         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
4939         Calculate size based on the _child_ of the menu item,
4940         not the menuitem. (#65005, Damon Chaplin)
4941
4942         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
4943         some extra vertical padding to the label widget ... restores
4944         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
4945
4946 2001-11-26  Tor Lillqvist  <tml@iki.fi>
4947
4948         * demos/pixbuf-demo.c
4949         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
4950
4951         * demos/gtk-demo/main.c (read_line): No flockfile() or
4952         getc_unlocked() on Win32.
4953
4954 2001-11-25  Tor Lillqvist  <tml@iki.fi>
4955
4956         * configure.in
4957         * acconfig.h: As we now use GDir, no need to check for dirent.h.
4958
4959 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
4960
4961         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
4962         when finished (#65266)
4963
4964 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
4965
4966         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
4967         data after we set the property. (#65264)
4968
4969 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
4970
4971         * gtk/gtkbutton.c: add destroy method so label_text gets freed
4972         if it has been allocated (#65268)
4973
4974 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
4975
4976         * gdk/linux-fb/gdkdrawable-fb2.c
4977         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
4978
4979         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
4980
4981         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
4982         set_family
4983         
4984         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
4985
4986 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
4987
4988         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
4989         deactivate menu when menu_item isn't sensitive (#61389)
4990
4991 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
4992
4993         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
4994         we return (in case of a failure here)
4995
4996 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
4997
4998         * gtk/gtknotebook.c: Handle events in windows other
4999         than widget->event_window properly. (#65079, reported
5000         by Damon Chaplin)
5001
5002         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
5003
5004 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
5005
5006         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
5007         the image at the top. (#65020, request from Seth Nickell)
5008
5009 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
5010
5011         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
5012         arithmetic that was resulting in rows being drawn too low.
5013         (#65001, reported by Damon Chaplin)
5014
5015 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
5016
5017         * gtk/gtkrange.c (gtk_range_button_press): Offset 
5018         invalidated range correctly.
5019
5020         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
5021         of title window. (#65001, reported by Damon Chaplin)
5022
5023         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
5024         horrible hack with use of ::event_after.
5025
5026 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
5027
5028         * Version 1.3.11
5029
5030         * configure.in (ATK_REQUIRED_VERSION): Require
5031         GLib-1.3.11, Pango-0.22, ATK-0.7.
5032
5033         * tests/prop-editor.c (property_widget): Restore
5034         to working as well as it did before.
5035
5036         * gtk/gtklistitem.h: Mark deprecated since it is
5037         an integral part of GtkList.
5038
5039         * demos/gtk-demo/demo-common.h: New header file,
5040         for a common functions not important to the meat
5041         of the demos.
5042         
5043         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
5044         function to search for a file used by the demo.
5045
5046         * demos/*.c: Use demo_find_file.
5047
5048 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
5049
5050         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
5051         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
5052         fixes already mentioned in ChangeLog entry on 2001-11-14.
5053
5054         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
5055
5056 2001-11-23  Hans Breuer  <hans@breuer.org>
5057
5058         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
5059         reflect Pango API change
5060
5061         * gtk/gtk.def : updated externals
5062
5063         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
5064         g_return_val_if_fail() to avoid 'function must return a value'
5065
5066         * gtk/gtkrc.c : added spaces to fix small coding style issues
5067         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
5068         'static correctness'
5069
5070         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
5071         because they only can be build on win32 after applying my patch
5072
5073 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
5074
5075         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
5076         children, in order for the input pnly window to stay *above*
5077         children.
5078
5079 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
5080
5081         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
5082         type walks againts G_TYPE_FUNDAMENTAL_MAX.
5083         
5084         * tests/prop-editor.c: disable type hackery.
5085
5086 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
5087
5088         * gdk/gdkimage.c (gdk_image_get): Fix problem with
5089         lost parameter.
5090
5091 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
5092
5093         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
5094         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
5095         trailing commas in enum declarations.
5096
5097 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
5098
5099         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
5100         interface, binary age 0.
5101
5102         * NEWS: Updates
5103
5104         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
5105         fixes in docs.
5106
5107         * gtk/gtkmain.h: Remove unused and misnamespaced
5108         get_gtk_win32_directory() prototype.
5109
5110         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
5111         to match header.
5112
5113         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
5114         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
5115         to match docs.
5116
5117         * gdk/gdkevents.c (gdk_event_get_coords)
5118           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
5119           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
5120         Fix parameter names in docs.
5121         
5122         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
5123         (#64961, Akira Tagoh)
5124
5125 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
5126
5127         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
5128
5129         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
5130
5131         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
5132
5133         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
5134         back to gtk_accel_groups_from_object(), change @acceleratable
5135         parameter to gtk_accel_groups_activate() accordingly.
5136
5137         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
5138         left-over comment about quark return.
5139
5140         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
5141
5142         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
5143         (Patch from Matt Wilson)
5144
5145         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
5146         object is finalized.
5147
5148 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
5149
5150         * applied patch from owen to get rid of accel map notifiers.
5151         changed things to fix reentrancy and API as discussed on gtk-devel.
5152
5153         * gtk/gtkaccelgroup.[hc]:
5154         (gtk_accel_group_finalize): unregister this accel group from all
5155         accel map paths.
5156         (accel_closure_invalidate): handle invalidation of closures by
5157         disconnecting their accelerators.
5158         (quick_accel_add): move closure connection and changed notification
5159         into this function to reduce code duplication. don't emit change
5160         notification on closurers without accelerators.
5161         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
5162         for a GtkAccelGroupEntry.
5163         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
5164         (gtk_accel_group_connect_by_path): new function to add accelerators
5165         with an accel path.
5166         (gtk_accel_group_disconnect_closure): new function, disconnect a
5167         closure from of an accel group.
5168         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
5169         accel_mods pair and remove them.
5170         (_gtk_accel_group_reconnect): new function that basically does
5171         gtk_accel_group_disconnect_closure() and
5172         gtk_accel_group_connect_by_path() once an accel path changed.
5173         (gtk_accel_groups_disconnect_closure): remove this, there's
5174         gtk_accel_group_disconnect_closure().
5175         
5176         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
5177         nuke notifiers.
5178         (_gtk_accel_path_is_valid): make this non-static for
5179         gtkwidget.c and gtkaccelgroup.c assertions.
5180         (gtk_accel_map_add_notifer): removed this function.
5181         (gtk_accel_map_remove_notifer): same.
5182         (_gtk_accel_map_add_group):
5183         (_gtk_accel_map_remove_group): (un-)register accel groups, with
5184         accel paths for correct propagation.
5185         (gtk_accel_map_add_entry): return void.
5186         (gtk_accel_map_lookup): return gboolean instead of GQuark.
5187         
5188         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
5189         set accel_path on widgets.
5190         
5191         * gtk/gtkwidget.[hc]:
5192         (accel_path_changed): got rid of this, changes are handled by
5193         accel maps internally now.
5194         (_gtk_widget_set_accel_path): get things to work without notifiers.
5195         (gtk_widget_list_accel_closures): list accel closures of a widget.
5196         
5197         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
5198
5199 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
5200
5201         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
5202
5203 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
5204
5205         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
5206         replace gboolean free_last in the function parameters with
5207         gint depth. Changes to reflect new situation.
5208
5209         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
5210         replace gboolean free_last, with gint depth, add gint current_depth.
5211         Changes to reflect new situation.
5212
5213         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
5214         to reflect new situation
5215
5216         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
5217
5218 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
5219
5220         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
5221         where notebook gap was double shifted by allocation.x/y
5222
5223         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
5224         to unmap children.
5225
5226 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
5227
5228         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
5229         allocation to be relative to paned->allocation, now
5230         that this is a NO_WINDOW widget.
5231         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
5232
5233         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
5234         needs to be a boxed property.
5235
5236 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
5237
5238         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
5239         Use the widget's state when drawing the indicator, as
5240         in GtkCheckButton. This gives us color changes for
5241         un-prelighted checkbuttons. (#63308, Matt Wilson)
5242
5243 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
5244
5245         (Fixes related to #64428, Michael Meeks)
5246
5247         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
5248         widget, so it gets mapped again properly when we
5249         add to a parent.
5250
5251         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
5252         plug->socket_window. 
5253
5254         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
5255         socket_window to NULL, not FALSE.
5256
5257         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
5258         socket->same_app to TRUE. (#64612)
5259
5260 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
5261
5262         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
5263         gtk_fixed_set/get_has_window() to remove criticism
5264         about GTK_WIDGET_SET_FLAGS() hacks.
5265
5266 2001-11-19  Michael Natterer  <mitch@gimp.org>
5267
5268         * gtk/gtknotebook.c: show notebook->event_window with
5269         gdk_window_show_unraised(), so it doesn't catch the events which
5270         should go to the tab widgets first.
5271
5272 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
5273
5274         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
5275         "resizable" property, to get rid of the
5276         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
5277         (gtk_tree_view_column_set_resizable): New function to set resizable.
5278         (gtk_tree_view_column_set_resizable): getter.
5279
5280         * tests/testtreecolumns.c (add_clicked): modify for above change.
5281
5282         * Makefile.am (install-data-hook): remove old .pc files before
5283         installing the new one.  We used to symlink this, and it will
5284         break old installs.
5285
5286 2001-11-19  Havoc Pennington  <hp@pobox.com>
5287
5288         * tests/testtext.c (fill_example_buffer): put in a test for
5289         negative indentation values
5290
5291 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
5292
5293         * gtk/gtklabel.c (gtk_label_init): Change default for
5294         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
5295         labels are most often wrapped labels, this gives better
5296         compatibility with GTK+-1.2, where justification was
5297         ignored for wrapped labesl and is a more sensible
5298         default in any case. (#64489)
5299
5300         * gtk/gtklabel.c (gtk_label_class_init): Fix default
5301         for wrap property to FALSE.
5302
5303 2001-11-19  jacob berkman  <jacob@ximian.com>
5304
5305         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
5306
5307 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
5308
5309         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
5310         RevertToParent, not RevertToNone. (#64613, 
5311         Matthias Clasen)
5312
5313 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
5314
5315         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
5316         and label_yalign need to be float properties to
5317         correspond to GTK+-1.2, to gtk_frame_set_label_align,
5318         and to the types of the xalign and yalign properties of GtkMisc.
5319         (#63484, Vitaly Tishkov)
5320
5321 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
5322
5323         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
5324         of plug_added vfunc. (#64408, Jeff Franks)
5325
5326 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
5327
5328         * configure.in (deps): Undef HAVE_STDLIB_H before
5329         checking for jpeg, because jconfig.h has this
5330         in it too (%#$@!). Fix from Matthias Clasen, #64500.
5331
5332 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
5333
5334         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
5335         memory leak when retrieving atom names. (Michael Meeks,
5336         #64508)
5337
5338 2001-11-18  Alex Larsson  <alexl@redhat.com>
5339
5340         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
5341         Update to new Pango API.
5342         
5343 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
5344
5345         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
5346         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
5347         GTK_OBJECT_DESTROYED() check macro.
5348
5349         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
5350         instances of GTK_OBJECT_DESTROYED() that weren't
5351         needed any more.
5352
5353         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
5354         for a connection to ::destroy.
5355
5356 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
5357
5358         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
5359         have been since the beginning, but as special hack,
5360         allow clearing the NO_WINDOW flag to get a window widget.
5361
5362 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
5363
5364         * gtk/gtktreestore.c: return TRUE when value changed, so
5365         row_changed is being emitted
5366
5367 2001-11-18  Hans Breuer  <hans@breuer.org>
5368
5369         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
5370         no label without op, even if it's a no-op.
5371
5372         * gtk/gtk.def :
5373         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
5374
5375         * config.h.win32.in : remove definition of HAVE_DIRENT_H
5376         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
5377         required anymore, replace it.
5378         * gtk/queryimmodules.c : DIR -> GDir replacement, also
5379         getcwd() -> g_get_current_dir()
5380
5381         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
5382         Even 'noisy laugh' scolling appears to work, though I still can't
5383         claim to have fully understood what it is supposed to do ...
5384
5385 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
5386
5387         * gtk/gtkenums.h: Include glib-object.h instead of
5388         gobject/gsignal.h
5389
5390         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
5391           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
5392         argument to the window_at_pointer() field of
5393         GdkPointerHooks. (Patch from Erwann Chenede)
5394
5395         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
5396         to 6 pointers.
5397
5398 2001-11-17  Matt Wilson  <msw@redhat.com>
5399
5400         * gtk/gtkenums.h: must include glib-object.h only
5401
5402 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
5403
5404         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
5405         key bindings in order of visibility - mnemonics, then 
5406         accelerators, then send key to the focus widget, then
5407         bindings on the GtkWindow.
5408
5409         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
5410         Removed the xoffset, yoffset fields of GtkLayout which were
5411         identically zero for compat with 1.2, but were no longer 
5412         compatible with all uses of these fields in 1.2.
5413
5414         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
5415         unused variable.
5416
5417 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
5418
5419         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
5420         We no longer need to create the signals here ... they
5421         come from the interface.
5422
5423         * gtk/maketypes.awk: Use GType, not GtkType in output.
5424
5425         * gtk/gtktypeutils.h: Mark virtually all of this
5426         file deprecated.
5427
5428         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
5429         the only use of this function is the GtkArg using
5430         GtkCallbackMarshal, since destroy notification is
5431         silly here.
5432
5433 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
5434
5435         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
5436         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
5437         only for compatibility with GTK+-1.2; and deprecate it; 
5438         put all marshalers we actually use into gtkmarshalers.list 
5439         and use the _gtk_marshal_ prefix for these marshalers.
5440
5441 2001-11-17  Murray Cumming  <murrayc@usa.net>
5442
5443         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
5444         The first parameters of the signals are now registered as
5445         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
5446         
5447 2001-11-17  Tor Lillqvist  <tml@iki.fi>
5448
5449         * gtk-zip.sh.in: Build separate runtime and developer
5450         packages.
5451
5452         * gtk/gtk.def: Reflect recent accelerator-related changes.
5453
5454 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
5455
5456         * gtk/gtkwindow.c (gtk_window_set_default): Move 
5457         notification of "has_default" to here, so it
5458         is safe to call gtk_window_set_default() instead
5459         of gtk_widget_grab_default().
5460
5461         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
5462         gtk_widget_grab_focus(), which then calls 
5463         _gtk_widget_internal_set_focus(). This makes 
5464         gtk_window_set_focus() a safe way of both setting
5465         and unsetting the focus widget.
5466
5467         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
5468         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
5469         to find the toplevel.
5470
5471         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
5472         from the "internal functions" section.
5473
5474 2001-11-16  jacob berkman  <jacob@ximian.com>
5475
5476         * tests/testgtk.c (create_radio_buttons): add some no-indicator
5477         radio buttons
5478
5479         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
5480         initially active, also initially be depressed
5481         (gtk_radio_button_clicked): also update our depressed state
5482
5483 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
5484
5485         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
5486         key press events not just to focus/window but also to
5487         intermediate widgets.
5488
5489         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
5490         to switch pages. (Needs some work on handling focus
5491         when switching pages.)
5492
5493 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
5494
5495         * gtk/gtknotebook.c: Fix child allocations to be relative to 
5496         widget position and some drawing bugs.
5497
5498         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
5499         with reading uninitialized variable.
5500
5501 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
5502
5503         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
5504         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
5505         NO_WINDOW widgets.
5506
5507         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
5508         cleanup.
5509
5510         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
5511         we are drawing in a window when drawing the paned handle.
5512
5513 2001-11-16  Sven Neumann  <sven@gimp.org>
5514
5515         * demos/gtk-demo/appwindow.c
5516         * demos/gtk-demo/menus.c: reduce compiler warnings
5517
5518 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
5519
5520         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
5521         unused callback to make things compile with 
5522         gtk_tree_view_path_at_pos_change().
5523
5524 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
5525
5526         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
5527
5528 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
5529
5530         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
5531  
5532 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
5533
5534         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
5535         to get a GdkWindow to compare event->window to.
5536
5537         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
5538         the signal for lateral motion too, #64361
5539
5540         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
5541         arg as it is useless, #64137
5542
5543 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
5544
5545         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
5546
5547 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
5548  
5549         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
5550         gdk_window_invalidate_maybe_recurse() for recursion.
5551         (Soeren Sandmann)
5552
5553         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
5554  
5555         * gtk/gtkcontainer.c (gtk_container_expose): Call
5556         gtk_container_forall() not _foreach() to propagate,
5557         since we need to propagate exposes to internal children
5558         as well.
5559
5560         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
5561         Remove the restriction of only being able to call these
5562         on window widgets, since we have lots of NO_WINDOW widgets
5563         with windows now; for add events, recurse over the children
5564         of widget->window to find one owned by the widget.
5565
5566         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
5567         window to catch events.
5568
5569         * gtk/gtktogglebutton.[ch]: Remove the code for switching
5570         between NO_WINDOW and WINDOW widgets based on the mode.
5571
5572         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
5573         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
5574
5575         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
5576
5577         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
5578         change for range.
5579
5580         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
5581  
5582         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
5583
5584 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
5585
5586         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
5587         "message_type" and "buttons" CONSTRUCT properties. (#64069)
5588
5589         * tests/testsocket.c: Expand tests to add a "local passive
5590         child" (Test case for #64428)
5591
5592 2001-11-14  jacob berkman  <jacob@ximian.com>
5593
5594         * gtk/gtkgamma.c (button_clicked_callback): create the label with
5595         a mnemonic
5596
5597 2001-11-15  Sven Neumann  <sven@gimp.org>
5598
5599         * tests/testgtk.c: make it compile without warnings.
5600
5601 2001-11-14  Alex Larsson  <alexl@redhat.com>
5602
5603         * gtk/gtklabel.c:
5604         Don't recalculate the layout on each gkt_label_ensure_layout () for
5605         wrapped labels.
5606
5607 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
5608
5609         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
5610         the currently selected column when we get the column, #64380
5611
5612         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
5613         to cancel CellRendererText editting, #63613
5614
5615         * gtk/gtkcellrenderertext.c: ditto
5616
5617         * gtk/gtkcellrenderertext.h: formatting changes
5618
5619 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
5620
5621         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
5622
5623         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
5624
5625         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
5626
5627         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
5628
5629         * gtk/gtklabel.c: Documentation fixes (#64452)
5630
5631 2001-11-14  Daniel Egger  <degger@fhm.edu>
5632
5633         * gdk-pixbuf/io-xpm.c: 
5634         (xpm_skip_whitespaces): Remove unused static function.
5635         (xpm_skip_string): Dito.        
5636         (xpm_extract_color): Declare const variable const to avoid warnings. 
5637
5638         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
5639         
5640         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
5641         
5642         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
5643         a long.
5644
5645 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
5646
5647         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
5648         out accidental commit of debugging timing code.
5649
5650 2001-11-14  Havoc Pennington  <hp@redhat.com>
5651
5652         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
5653         it doesn't move to a new line each time you press it
5654
5655         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
5656         return value, #62987
5657
5658 2001-11-14  Havoc Pennington  <hp@redhat.com>
5659
5660         * tests/testtextbuffer.c (main): bulk of the tests were commented
5661         out, oops.
5662
5663         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
5664         function work, should resolve #63426
5665         (gtk_text_iter_ends_line): return TRUE for the end iterator
5666
5667         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
5668         a couple things that might get cached in here.
5669
5670 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
5671
5672         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
5673         "model" construct property for language bindings.
5674
5675         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
5676         function to let you set the column types of a GtkTreeStore for
5677         language bindings.
5678
5679         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
5680
5681 2001-11-13  Havoc Pennington  <hp@redhat.com>
5682
5683         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
5684         including reference to bugzilla bug about how we should have 
5685         a better way of positioning children
5686
5687         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
5688
5689         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
5690         size to side rects if they don't exist, #63438
5691
5692 2001-11-13  Havoc Pennington  <hp@redhat.com>
5693
5694         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
5695         properly replace selection with Return or Tab
5696
5697         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
5698         that didn't locate the end of the line correctly, should fix #63800
5699
5700 2001-11-13  Havoc Pennington  <hp@redhat.com>
5701
5702         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
5703         to requisition, request non-anchored children
5704         (gtk_text_view_size_allocate): handle border width, allocate
5705         non-anchored children
5706         (text_view_child_new_window): set the child as object data
5707         (gtk_text_view_move_child): allow children at negative
5708         coordinates, no reason why not
5709         (gtk_text_view_forall): make it copy the list of children before
5710         walking it, to avoid reentrancy issues  
5711         (gtk_text_view_move_child): short-circuit if position is unchanged
5712         (changed_handler): only queue_resize if requisition has changed
5713         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
5714         a better job of invalidation ourselves
5715
5716         * tests/testtext.c: add tests for the fixed-position children
5717
5718 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
5719
5720         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
5721         with gdk threads macro.
5722
5723 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
5724
5725         * gtk/maketypes.awk: fix type utils generation on unix.
5726
5727         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
5728         registry.
5729
5730         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
5731         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
5732         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
5733         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
5734         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
5735         introduced ::accel_changed signal for change notification, and
5736         gtk_accel_group_connect/disconnect to connect closures to accel groups.
5737         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
5738         functions.
5739         deprecated gtk_accel_group_ref/unref.
5740
5741         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
5742         to accel group changed notification and basically operate on closures.
5743         removed gtk_accel_label_get_accel_object and
5744         gtk_accel_label_set_accel_object.
5745         introduced gtk_accel_label_set_accel_closure, and for convenience,
5746         gtk_accel_label_set_accel_widget.
5747
5748         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
5749         which mostly moved into gtkaccelmap.[hc].
5750         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
5751         and gtk_item_factory_print_func.
5752
5753         * gtk/gtkmain.c: call _gtk_accel_map_init().
5754
5755         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
5756         that associates an accelerator path with menu items, through which
5757         persistent accelerator settings on menu items are enabled.
5758
5759         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
5760         paths of menu item can be default constructed to allow installation
5761         of accelerators on menu items that don't come with an accelerator
5762         binding by default.
5763
5764         * gtk/gtksettings.c: fix STRING type rc settings by special casing
5765         them appropriately in the parser.
5766
5767         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
5768         gtk_signal_newv().
5769
5770         * gtk/gtkwidget.[hc]: accelerator API revamp.
5771         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
5772         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
5773         gtk_widget_(un)lock_accelerators.
5774         accelerators maintained through gtk_widget_add/remove_accelerator()
5775         are not runtime changable now, the correct sequence to setup a
5776         widget for runtime changable accelerators is now:
5777           gtk_accel_map_add_entry(accel_path, key, mods);
5778           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
5779
5780         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
5781         group changes (as well as mnemonic changes) through the new signal
5782         ::accels_changed.
5783
5784 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
5785
5786         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
5787         GString->string conversions.
5788
5789 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
5790
5791         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
5792         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
5793
5794 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
5795
5796         * gtk/gtktreeview.c: Documentation fixes. (#64377)
5797         
5798         * gtk/gtktreestore.c: Documentation fixes. (#64376)
5799
5800 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
5801
5802         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
5803         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
5804         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
5805         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
5806
5807 2001-11-10  Hans Breuer  <hans@breuer.org>
5808
5809         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
5810         we know what we are talking about when asked for MINMAXINFO.
5811         Also some cleaning for !HAVE_DIMM_H etc.
5812
5813 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
5814
5815         * gtk/gtktreeviewcolumn.c: Fix docs for 
5816         gtk_tree_view_column_set_sort_order. (#62647)
5817         
5818         * gtk/gtkcontainer.c: Fix docs for 
5819         gtk_container_set_border_width. (#64139)
5820
5821         * gtk/gtkcolorsel.c: Documentation fixes.
5822
5823 2001-11-10  Hans Breuer  <hans@breuer.org>
5824
5825         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
5826         don't have strcasecmp()
5827
5828         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
5829         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
5830         code duplication wrap it in its own function and use it in 
5831         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
5832
5833         * gdk/win32/gdkdrawable-win32.c : implement the finalize
5834         method like the X11 version does, allow to set_colormap NULL
5835         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
5836         set_colormap, also some adaption to X11 version :
5837         (gdk_window_hide) call _gdk_window_clear_update_area
5838         (gdk_window_reparent) call _gdk_window_init_position
5839
5840         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
5841         call gdk_window_resize() after all hints are set, because the
5842         window resizing process (WM_GETMINMAXINFO) takes all of them into 
5843         account
5844
5845         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
5846
5847         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
5848         sizeof (GdkVisualPrivate)
5849
5850         * gdk/gdk.def gtk/gtk.def : upated externals
5851
5852         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
5853           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
5854         from now on use make.msc from $(TOP)/glib/build/win32
5855
5856         * gtk/stock-icons/makefile.msc : add stock_missing_image
5857
5858 2001-11-08  Tor Lillqvist  <tml@iki.fi>
5859
5860         * README.win32: Add headers. Add section about ActiveIMM.
5861
5862         * configure.in: Add --with-ie55 flag to specify the location of
5863         the "IE55 libs and headers" package downloadable from Microsoft,
5864         which contains, among other things, the Active IMM header dimm.h
5865         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
5866         Require GLib 1.3.10.
5867         
5868         * config.h.win32.in: New version, produced by merging two
5869         configure-generated ones (for gcc and MSVC). Hopefully #defines
5870         the same flags that the previous, hand-written one, did.
5871
5872         * gdk/Makefile.am
5873         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
5874
5875         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
5876         stuff. Remove unused GdkIOClosure.
5877
5878         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
5879         available).
5880
5881         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
5882         for uuid.lib. (Does it really have to be this hard to use an
5883         existing library with libtool? Probably I am missing something.)
5884
5885 2001-11-08  Darin Adler  <darin@bentspoon.com>
5886
5887         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
5888         typo where it says LEFT instead of CENTER.
5889
5890 2001-11-07  Darin Adler  <darin@bentspoon.com>
5891
5892         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
5893         (gtk_dialog_set_default_response): Add g_return_if_fail.
5894
5895 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
5896
5897         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
5898         Add row_draggable() vfunc, and wrapper function.
5899
5900         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
5901         row_drop_possible take a GtkSelectionData, rather than
5902         model/row pair.
5903
5904         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
5905         new DND interfaces.
5906
5907         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
5908         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
5909         and rename them to enable_model_drag_source/dest.
5910
5911         * gtk/treeviewcolumn.c: Add DND of columns between rows.
5912         Still can't drop _to_ the left tree, but other places
5913         work.
5914
5915         * gtk/gtktreeview.c (unset_reorderable): Unset the
5916         reorderable property if unset/enable_model_drag_source/dest
5917         are called manually.
5918
5919         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
5920         Correct for change in depth count handling.
5921
5922         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
5923         Pass in a expose area to gtk_tree_view_column_cell_render()
5924
5925 2001-11-06  Havoc Pennington  <hp@redhat.com>
5926
5927         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
5928
5929 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
5930
5931         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
5932
5933 2001-11-05  Havoc Pennington  <hp@redhat.com>
5934
5935         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
5936         widgets in here
5937         (gtk_text_view_realize): set parent window of child widgets
5938         (gtk_text_view_size_request): use child req to decide whether
5939         to invalidate layout, not widget->requisition
5940
5941         * gtk/gtktextdisplay.c (render_layout_line): set
5942         shaped_width_pixels for NULL shape objects, so that we properly
5943         draw the "missing pixbuf/widget" thing
5944         (render_layout_line): don't draw the widget here
5945         (gtk_text_layout_draw): pass out a list of widgets that need exposing
5946
5947         * demos/gtk-demo/textview.c (insert_text): add demo of child
5948         widgets
5949
5950         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
5951
5952         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
5953
5954         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
5955         scroll offsets
5956         (gtk_text_view_value_changed): poke new X and Y into child allocations
5957
5958 2001-11-06  Tor Lillqvist  <tml@iki.fi>
5959
5960         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
5961         -specific directory on Windows, too (#63759).
5962
5963 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
5964
5965         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
5966         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
5967         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
5968         directly to Picture objects instead of using XftDraw.
5969         This fixes the problem where we weren't able to 
5970         properly destroy XftDraw objects before destroying
5971         the accompanying windows, and probably improves
5972         efficiency a bit too. (#50214)
5973
5974 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
5975
5976         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
5977         Clamp max window width/height to 32767, not 32768 since
5978         we have to be able to deal with a dx/y of -32768 without
5979         getting a width of 65536 when guffaw scrolling.
5980
5981         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
5982         for the guffaw scrolling case, fixing some problems with
5983         copy-area case as well. Fix BadValue bug with moving windows
5984         by large amounts.
5985
5986         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
5987         clip in window structue before calling gdk_window_invalidate_region
5988         since that trims new invalidations to the window's visible
5989         region.
5990
5991         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
5992         Really set the static window gravity on the children, not
5993         repeatedly on the window.
5994
5995         * gtk/testgtk.c: Add a torture test for big windows and 
5996         gdk_window_scroll().
5997
5998 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
5999
6000         * acconfig.h configure.in: sigsetjmp is macroized in some places,
6001         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
6002
6003 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
6004
6005         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
6006         in terms of pango_color_parse().
6007
6008         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
6009         gdk_color_parse() implementations.
6010
6011 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
6012
6013         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
6014         queue_resize_on_group with both the old and new mode, not
6015         just the new mode. (#60171, Nicolas Setton). Also, notify
6016         the "mode" property.
6017         
6018 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
6019
6020         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
6021         for use in "shallow invalidation" of a widget. (Windows belonging
6022         to the widget, but not to the widget's children)
6023
6024         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
6025         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
6026         up on ancestors up to the resize container on queue_resize. Size
6027         requests only actually take place if GTK_REQUEST_NEEDED, size
6028         allocations only take place if GTK_ALLOC_NEEDED or the size
6029         changed.
6030
6031         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
6032         container->resize_widgets and the RESIZE_NEEDED flag since the
6033         above flags are sufficient to figure out what needs to be
6034         resized/reallocated. Remove code manipulating
6035         container->resize_widget.
6036
6037         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
6038         allows widgets to turn off being automatically invalidated is when
6039         they are resized.
6040
6041         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
6042         a widget is resized or moved is "shallow" as described above -
6043         only the windows that need to be invalidated are invalidated.
6044
6045         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
6046         Make these widget's init functions call 
6047         gtk_widget_set_redraw_on_allocate(widget,FALSE).
6048
6049         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
6050         _gtk_container_queue_resize(), since we don't want
6051         redrawing. (Probably could be done for other 
6052         calls to gtk_widget_queue_resize() in gtkwindow.c,
6053         but this is the most important one.)
6054
6055         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
6056         gtk_widget_queue_draw() - size_allocate() handles
6057         that as appropriate.
6058
6059         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
6060         of queue_clear() to avoid invalidating children.
6061
6062 2001-11-04  jacob berkman  <jacob@ximian.com>
6063
6064         * gtk/gtkmain.c (find_module): don't free the module name until
6065         after we load the module
6066
6067 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
6068  
6069         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
6070         derivation instead of boxed derivation.
6071  
6072         * gtk/gtkmarshal.list: Remove some now unused marshallers.
6073  
6074 2001-11-04  Tor Lillqvist  <tml@iki.fi>
6075
6076         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
6077         include yesterday, without really thinking), as that defeats the
6078         working of correct_libdir_prefix() (it becomes a no-op.). Add
6079         comment mentioning that. Thanks to Hans Breuer for noticing.
6080         
6081 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
6082
6083         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
6084         signal argument (was GtkWidget*).
6085
6086         * gtk/gtkwindow.c (gtk_window_frame_event),
6087           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
6088         Fixed argument types as above, removed GTK_WINDOW casts and
6089         added some GTK_WIDGET casts instead.
6090
6091 2001-11-03  Hans Breuer  <hans@breuer.org>
6092
6093         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
6094         finalize to parent class to get removed from the toplevel_list.
6095         Should fix 'random' crashes of #63474.
6096
6097         * gtk/gtktreemodelsort.c : chain finalize() to parent class
6098
6099 2001-11-03  Tor Lillqvist  <tml@iki.fi>
6100
6101         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
6102         for .dll or .so as appropriate as module suffix.
6103
6104         * gtk-zip.sh.in: Use correct import library names.
6105
6106         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
6107
6108         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
6109         Windows to turn build-time paths from a gtk.immodules distributed
6110         as part of a binary package into runtime ones in the
6111         end-user-chosen installation directory.
6112         (gtk_im_module_init): Use it for module path and domain
6113         directory.
6114
6115 2001-11-02  Tor Lillqvist  <tml@iki.fi>
6116
6117         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
6118         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
6119         Windows.
6120
6121 2001-10-30  Tor Lillqvist  <tml@iki.fi>
6122
6123         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
6124         files. Configure on Win32 (running on Cygwin) thinks symlinks
6125         exist, but pkg-config is not necesarily a Cygwin program, and
6126         doesn't understand them.
6127
6128 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
6129
6130         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
6131         a bit.  I don't think it's completely correct yet, but it's
6132         getting there.
6133
6134 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
6135
6136         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
6137         random + 5 for width and height. If people want padding,
6138         they should add padding. (Note the +5 isn't padding
6139         that will always appear - it just appears in the case
6140         where the widget is allocated it's requisition.)
6141         (#51018, Janet Davis)
6142
6143 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
6144
6145         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
6146         the structure for future expansion.
6147
6148 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
6149
6150         Patch from HideToshi Tajima (#51922)
6151         
6152         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
6153
6154         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
6155         set_use_preedit().
6156         
6157         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
6158         to destroy the input context because we change the
6159         client window or use_preedit, make sure we empty
6160         the preedit string.
6161
6162 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
6163
6164         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
6165         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
6166         proposed ordering of buttons with [OK] in the lower
6167         right hand corner. Patch from Gregory Merchan,
6168         #56331.
6169
6170 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
6171
6172         * gtk/gtklabel.c (gtk_label_select_region_index): remove
6173         extraneous gtk_label_clear_layout (label)
6174
6175 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
6176
6177         * tests/makefile.msc, gtk/makefile.msc.in: Removed
6178         -DGTK_DISABLE_COMPAT_H.
6179
6180         * docs/Changes-2.0.txt:
6181         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
6182
6183         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
6184
6185 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
6186
6187         * examples/**/Makefile.am: Convert to use pkg-config
6188         rather than gtk-config. (#53375, Skip Montanaro)
6189
6190 2001-11-02  Matt Wilson  <msw@redhat.com>
6191
6192         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
6193         broken unused, non-compiling, static function.
6194
6195 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
6196
6197         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
6198         Iterate through children of the action area, not of
6199         the vbox. (#58278, Sergey Kuzminov)
6200
6201 2001-11-01  Havoc Pennington  <hp@pobox.com>
6202
6203         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
6204         order to remove a workaround in Nautilus that forced
6205         GTK_ENABLE_BROKEN
6206
6207         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
6208
6209 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
6210
6211         * gtk/gtkrange.c: Patch from George Lebl to 
6212         fix division by zero for full scroll bars. (#62114)
6213
6214 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
6215
6216         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
6217         around gtk_widget_event() if we are going to
6218         set a flag afterwards. (#63464)
6219
6220 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
6221
6222         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
6223         Actually add the missing/broken image icon as the
6224         image for the "missing image" stock icon.
6225
6226 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
6227
6228         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
6229         Set a reasonable default height for the window.
6230
6231         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
6232         bug where subsequent '-' weren't converted to '_'.
6233         (#59550, Matthias Clasen)
6234
6235         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
6236         justify the Help menu - just include a comment on
6237         how to do it. (#63539,  Marius Andreiana)
6238
6239         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
6240         list GTK_ICON_SIZE_INVALID.
6241
6242         * demos/gtk-demo/stock_browser.c: Show the biggest available
6243         size, not a fixed size. (Often reported, including #63539, 
6244         Marius Andreiana)
6245
6246 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
6247
6248         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
6249         #59583
6250
6251         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
6252         warning.
6253
6254 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
6255
6256         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
6257         (Daniel Elstner).
6258
6259 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
6260
6261         * gtk/gtkimcontext.[ch]: Add:
6262           - A ::retrieve_surrounding signal that asks the widget for
6263             context around the insertion point.
6264           - A ::delete_surrounding signal that asks the widget to 
6265             delete context aroudn the insertion point.
6266           - gtk_im_context_set_context() for widgets to set context
6267             around the insertion point in response to ::retrieve_context.
6268           - gtk_im_context_get_context() for context to get context
6269             around the insertion point
6270
6271         * gtkmarshal.list: Add BOOL:INT,INT
6272
6273         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
6274         set_surrounding() methods, and the ::retrieve_surrounding /
6275         ::delete_surrounding signals.
6276
6277         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
6278         GtkIMContext::retrieve_surrounding / ::delete_surrounding
6279         signals.
6280
6281 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
6282
6283         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
6284         it's amazing how well things work sometimes, even when they're
6285         completely wrong.
6286
6287         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
6288         where you could try to collapse a node w/o it having children.
6289
6290         (gtk_tree_view_class_init): remove Shift L<->R as they already
6291         existed for expand/collapse.
6292
6293 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
6294
6295         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
6296         found by Matt Wilson.
6297
6298 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
6299
6300         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
6301         Control, and Shift|Control L<->R, #63475
6302
6303 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
6304
6305         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
6306         infinite loop noticed by yosh.
6307
6308 2001-11-01  Michael Meeks  <michael@ximian.com>
6309
6310         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
6311         GTK_REALIZED flag so we don't re-enter when we are
6312         destroyed from the plug side.
6313
6314 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
6315
6316         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
6317         Add a "menu" property and notify on it. (#62798,
6318         Padraig O'Briain)
6319
6320         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
6321         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
6322         Fix set_text to take a gchar, not a guchar, and to have 
6323         a len argument.
6324
6325 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
6326
6327         * gtk/gtkstock.c: fix typo to make it compile
6328
6329 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
6330
6331         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
6332         the widget is insensitive, draw the text insensitively, #63306
6333
6334 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
6335
6336         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
6337
6338 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
6339
6340         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
6341         gtk_selection_data_set_tree_row, #60218
6342         (gtk_tree_get_row_drag_data): rename
6343         gtk_selection_data_get_tree_row, #60218
6344
6345         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
6346         get this right, after the third try, #63122.
6347
6348 2001-10-31  jacob berkman  <jacob@ximian.com>
6349
6350         * gdk/gdkselection.h (GDK_TARGET_STRING): 
6351         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
6352         for Xatoms (and not using the XA_* macros)!
6353
6354 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
6355
6356         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
6357         gtk_window_get_focus() getter to determine the currently
6358         focused widget within the window. (#63145, request
6359         from Damian Ivereigh)
6360
6361 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
6362
6363         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
6364
6365         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
6366         GTK_SELECTION_NONE enum.
6367         (_gtk_tree_selection_internal_select_node): ditto
6368
6369         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
6370         constness.
6371
6372         * gtk/gtkcellrenderertoggle.c: more yummy constness.
6373
6374         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
6375         if mode == GTK_SELECTION_NONE
6376
6377 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
6378
6379         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
6380         "cursor_changed" signal, #62850.
6381
6382 2001-10-31  Matt Wilson  <msw@redhat.com>
6383
6384         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
6385         allocating the treedatalist, zero it to make sure the values are
6386         cleared from any garbage that was in this chunk.
6387
6388 2001-10-31  Murray Cumming  <murrayc@usa.net>
6389
6390         * gtk/cellrenderertext.h: "edited" default signal handler
6391         gchar* args are now const.
6392         gtk/cellrenderertoggle.h: "toggled" default signal handler
6393         gchar* arg is now const.
6394         Also changed other signal handlers for "edited" and "toggled" to
6395         have the same signature.
6396
6397 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
6398
6399         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
6400         rewrite.  Static models now totally work.  I'm not 100% sure about
6401         row_inserted and row_changed, but I'll get those later.
6402
6403 2001-10-30  Sven Neumann  <sven@gimp.org>
6404
6405         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
6406         output for configure --help.
6407
6408 2001-10-30  Havoc Pennington  <hp@pobox.com>
6409
6410         * gtk/gtktextview.c (changed_handler): Update the IM spot location
6411         here, if text was invalidated in the visible area, because the
6412         scroll offset doesn't normally change in that case, and the mark
6413         isn't set, just implicitly moved over as text is added/removed
6414         
6415 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
6416
6417         * gtk/gtkseparatormenuitem.c: Code cleanup.
6418         (gtk_separator_menu_item_class_init): Fix bugs in this code.
6419
6420 2001-10-29  jacob berkman  <jacob@ximian.com>
6421
6422         * gdk/Makefile.am (LDFLAGS): 
6423         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
6424         LDFLAGS, so put win32 flags in here
6425
6426 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
6427
6428         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
6429         I can't believe this took this long to fix.
6430
6431 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
6432
6433         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
6434         reordered signal.
6435
6436 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
6437
6438         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
6439         the focus to the fileop entry for create dir / rename
6440         file. (#62838)
6441
6442 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
6443
6444         * configure.in: Don't use AC_CHECK_FILE to check for a 
6445         file since it always spits warnings about cross compilation,
6446         use -f instead. It's not like we cross compile properly
6447         anyways.
6448
6449         * configure.in (gtktargetlib): Move call to AC_PROG_CC
6450         to suppress autoconf warning.
6451
6452         * acconfig.h: Add some missing #undefs from recent
6453         Win32 additions.
6454
6455 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
6456
6457         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
6458         when we didn't find it. (#62944, Eric Lemings)
6459
6460         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
6461         sign in assignment. (#63209, Arkadiusz Miskiewicz)
6462
6463 2001-10-29  Anders Carlsson  <andersca@gnu.org>
6464
6465         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
6466         the buttons size request before using it. Fixes #61696.
6467
6468 2001-10-29  Tor Lillqvist  <tml@iki.fi>
6469
6470         * README.win32: Updates.
6471
6472         * gtk-zip.sh.in: New file, used to build distribution package for
6473         Windows.
6474
6475         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
6476         applicable with GDKVAR.
6477
6478         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
6479         Wintab library.
6480
6481         * gdk/win32/gdkwin32.h
6482         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
6483         X11 headers better, and to enable gdkwin32.h to be installed and
6484         included from applications, but not the *-win32.h headers.
6485
6486         * gdk/win32/*.c: Corresponding small changes, simplifications of
6487         #includes.
6488         
6489         * gdk/win32/gdkregion-win32.c: Remove.
6490
6491         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
6492
6493         * gdk/win32/gdkfont-win32.c
6494         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
6495
6496         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
6497         GDK_NONE values into hash table.
6498
6499         * gtk/gtk.def: Update.
6500
6501         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
6502         gethostname().
6503
6504         * gtk/gtkmain.c 
6505         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
6506         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
6507         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
6508         g_win32_get_package_installation_subdirectory() with the actual
6509         DLL name saved above. Redefine above directory name macros to call
6510         these functions. Remove some ifdefs.
6511
6512         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
6513         variable for export on Win32) also to the _vars file.
6514
6515         Changes for autoconfiscated build on Win32, and addition of Win32
6516         backend to the related files:
6517         
6518         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
6519         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
6520         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
6521         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
6522         win32 target, using pangowin32. Don't use the
6523         -export-symbols-regex option on Win32, we use .def files to list
6524         exported symbols. Check <winsock.h> (for gethostname() in
6525         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
6526         prevent premature m4 expansion.
6527
6528         * acconfig.h: Add HAVE_WINTAB.
6529
6530         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
6531         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
6532         MS_LIB_AVAILABLE, build MS import library. Install the import
6533         libraries. If HAVE_WINTAB, link with the Wintab library.
6534
6535         * gdk/win32/Makefile.am: Actually enable building the win32
6536         objects here, not just list all files in EXTRA_DIST. Link in the
6537         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
6538         copy the Wintab library into the .libs directory. 
6539
6540         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
6541         name of the GDK DLL when fetching the icon. Use the HMODULE saved
6542         in gdk_dll_hinstance by DllMain.
6543
6544         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
6545         build/win32/lt-compile-resource script.
6546
6547         * gdk/win32/rc/gdk.rc.in
6548         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
6549
6550         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
6551         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
6552         file. Install import libraries.
6553
6554 2001-10-29  Anders Carlsson  <andersca@gnu.org>
6555
6556         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
6557
6558 2001-10-28  Hans Breuer  <hans@breuer.org>
6559
6560         * gdk/gdk.c gdk/gdkevents.c
6561           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
6562           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
6563           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
6564           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
6565           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
6566           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
6567           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
6568         static correct-ness, underscore prefixing of library internal 
6569         functions
6570         (applied the undisputed and the win32 part. Of the latter 
6571          I'm probably the one who will change it back again, if Owen
6572          decides that the Gdk*Impl types should not be private to Gdk)
6573
6574         * gdk/gdk.def : added the remaining exported functions
6575
6576 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
6577
6578         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
6579         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
6580         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
6581
6582 2001-10-28  jacob berkman  <jacob@ximian.com>
6583
6584         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
6585         gtk_settings_get_default() here as that requires an X connection
6586         (which breaks doc building with no X connection) and is not
6587         multihead safe
6588         (gtk_color_selection_init): delay palette loading until realize
6589         time
6590         (gtk_color_selection_realize): load the palette, and initialize
6591         the global palette if it hasn't been already
6592
6593         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
6594         visual/cmap fields of klass->info since they are gone
6595         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
6596         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
6597         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
6598
6599         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
6600         cmap fields
6601         (gtk_preview_get_visual):
6602         (gtk_preview_get_cmap): mark as deprecated
6603
6604         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
6605         changes
6606
6607 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
6608
6609         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
6610         structure to have GObject not GtkObject as
6611         parent_instance. (Jeff Franks.)
6612
6613 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
6614
6615         * gdk/x11/gdkinput.c: Typo fix.
6616
6617 2001-10-26  Havoc Pennington  <hp@pobox.com>
6618
6619         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
6620         update_im_spot_location here explicitly
6621         (gtk_text_view_reset_im_context): don't update the spot location
6622         here
6623
6624 2001-10-27  Anders Carlsson  <andersca@gnu.org>
6625
6626         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
6627         This fixes #62942.
6628
6629         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
6630         Clarify that we're returning a spin button in the _new function.
6631         This fixes #54097.
6632         
6633 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
6634
6635         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
6636         Unfortunately, people apparently erroneously connect
6637         to ::clicked for GtkToggleButton and expect
6638         they know what happened in the default signal handler
6639         instead of appropriately connecting to notification
6640         signal ::toggled. When the revolution comes, such
6641         people will be first against the wall.
6642
6643         We'll just have to go back to the old less-reliable
6644         set-it-back hacks for handling model-view check
6645         buttons and radio buttons. :-(. 
6646
6647 2001-10-27  Hans Breuer  <hans@breuer.org>
6648
6649         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
6650           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
6651           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
6652           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
6653           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
6654           gtk/gtktreestore.c gtk/gtkvbbox.c : 
6655         to simplify parsing for exported functions:
6656         - made implementation signature static, when the local 
6657           prototype already was
6658         - put the functions return value on it's own line
6659         - added as space between the function name and the 
6660           opening bracket
6661
6662         * gtk/gtk.def : added the remaining exported functions
6663
6664 2001-10-27  Anders Carlsson  <andersca@gnu.org>
6665
6666         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
6667         Add note about width having to be greater than 0. This fixes
6668         #55574. 
6669
6670         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
6671         Fix docs to say previous instead of next.
6672         (gtk_text_iter_backward_word_start): Likewise.
6673         This fixes bug #62980.
6674
6675         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
6676         that the valid width is in range 0-65535 pixels. Fixes bug 
6677         #56754.
6678
6679         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
6680         a dot in the documentation. Fixes bug #62632.
6681
6682         * gdk/x11/gdkmain-x11.c: Replace int and guint with
6683         long and gulong in some places to make the code 64-bit
6684         clean.
6685         (_gdk_windowing_init_check): Replace gint with gulong.
6686         This patch was made by George Lebl and fixes bug #62113.
6687
6688         * tests/testgtk.c (create_range_controls): Don't set a 
6689         fixed height on the hscale widget. This fixes "bug" 
6690         #55840.
6691         (create_window_states): Set up destroy signals so that
6692         all windows will be destroyed when one is. This fixes 
6693         bug #58133.
6694
6695 2001-10-26  Anders Carlsson  <andersca@gnu.org>
6696
6697         * gtk/gtktreeview.c: 
6698         (gtk_tree_view_class_init): Create new "indent_expander"
6699         style property.
6700
6701         (gtk_tree_view_get_arrow_xrange): Add a tree argument
6702         to the function since the xrange can change depending
6703         on where in the tree we are. 
6704         
6705         (coords_are_over_arrow): Update function call to
6706         gtk_tree_view_get_arrow_xrange.
6707         (gtk_tree_view_draw_arrow): Likewise.
6708         
6709         (gtk_tree_view_real_expand_collapse_cursor_row):
6710         Call real_{expand|collapse}_row, so that we'll have an
6711         animation.
6712
6713 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
6714
6715         * tests/Makefile.am: fixed a small typo
6716
6717 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
6718
6719         * demos/gtk-demo/list_store.c (create_model): Anders
6720         Carlsson suggested to use G_N_ELEMENTS here
6721
6722 2001-10-26  Sven Neumann  <sven@gimp.org>
6723
6724         * gtk/gtkbutton.[ch]
6725         * gtk/gtkdnd.c: fixed inline comments
6726         
6727         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
6728
6729 2001-10-26  Hans Breuer  <hans@breuer.org>
6730
6731         * gdk-pixbuf/gdk_pixbuf.def : 
6732         * gdk/gdk.def : 
6733         * gtk/gtk.def : updated externals
6734
6735         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
6736         gdk_window_lookup implementation. It already was in
6737         gdk/win32/gdkwindow-win32.c
6738
6739         * gdk/win32/gdkproperty-win32.c : made it compile again
6740         after GdkAtom API change
6741
6742         * gtk/gtk/makefile.msc.in : updated
6743
6744 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
6745
6746         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
6747         require GLib 1.3.10.
6748
6749         * NEWS: updates.
6750
6751 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
6752
6753         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
6754         invalid nodes.
6755          (_gtk_rbnode_rotate_right): Ditto.
6756          (_gtk_rbtree_node_mark_invalid): New function.
6757          (_gtk_rbtree_node_mark_valid): New function.
6758
6759         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
6760         GObject, not a GtkObject.
6761         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
6762         correct.
6763         (gtk_tree_model_sort_row_deleted): ditto.
6764         (gtk_tree_model_sort_{un,}ref_node): Fix.
6765
6766         * gtk/gtktreeview.c: Protean incremental reflow support (commented
6767         out)
6768
6769         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
6770         to const char *key.
6771
6772         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
6773         Important 1 line fix to fix a lot of refcounting woes.
6774
6775 2001-10-25  Matt Wilson  <msw@redhat.com>
6776
6777         * gtk/gtktextview.c (gtk_text_view_destroy): call
6778         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
6779         now invalidates) so that we remove our idle functions.
6780         (gtk_text_view_destroy_layout): remove the first_validate_idle as
6781         well.
6782
6783         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
6784         the 'indent' property is G_MININT to G_MAXINT.  Don't use
6785         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
6786         instead.
6787
6788 2001-10-24  Anders Carlsson  <andersca@gnu.org>
6789
6790         * gtk/gtktreeview.c: 
6791         (gtk_tree_view_real_expand_row): add an animate argument
6792         (gtk_tree_view_real_collapse_row): likewise
6793         
6794         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
6795         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
6796         (gtk_tree_view_collapse_row): update functions that call
6797         real_{expand|collapse}_row to set the animate argument 
6798         accordingly.
6799         
6800 2001-10-24  Alex Larsson  <alexl@redhat.com>
6801
6802         * gdk/linux-fb/gdkfont-fb.c:
6803         Update to new Pango APIs
6804
6805         * gdk/linux-fb/gdkproperty-fb.c:
6806         Update to new GdkAtom APIs
6807
6808         * gdk/linux-fb/gdkwindow-fb.c:
6809         Remove warnings
6810
6811 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
6812
6813         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
6814
6815 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
6816
6817         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
6818         s_path as a child path
6819
6820 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
6821
6822         * gtk/gtktreemodelsort.c: more changes in an attempt to get
6823         it right. It's not yet ready for general consumption.
6824
6825         * tests/treestoretest.c: add a button and entry for the new
6826         iter_change function
6827         (iter_change): new function, to test
6828         the row_changed signal implementation of the GtkTreeModelSort
6829
6830         * tests/testtreesort.c: cleanups, changes to test more features
6831         of the GtkTreeModelSort at once
6832
6833 2001-10-24  Havoc Pennington  <hp@redhat.com>
6834
6835         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
6836         remove hack to strip off the bogus newline, since we killed the
6837         bogus newline; fixes #61779
6838
6839 2001-10-24  Havoc Pennington  <hp@redhat.com>
6840
6841         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
6842         create layout if we didn't have one
6843         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
6844         as appropriate, avoids blanking the screen 
6845         (gtk_text_view_invalidate): new function to do invalidation,
6846         containing old guts of invalidated_handler
6847
6848 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
6849
6850         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
6851         dreadful tooltips.
6852
6853 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
6854
6855         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
6856         set window->parent (except or the root window itself); if 
6857         the window's parent is not a GdkWindow, or is a window of 
6858         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
6859
6860         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
6861         windows of type GDK_WINDOW_FOREIGN.
6862
6863 2001-10-24  Havoc Pennington  <hp@pobox.com>
6864
6865         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
6866         the front of a segment, use the "slow" technique for moving
6867         backward, so we don't mess up the any_segment field in the iter. 
6868         Fixes #57707
6869
6870         * tests/testtextbuffer.c: add code to detect #57707, to avoid
6871         regression
6872
6873 2001-10-23  Havoc Pennington  <hp@redhat.com>
6874
6875         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
6876         if selection contains some editable text, #60975
6877         (gtk_text_view_scroll_to_iter): remove warning about scrolling
6878         prior to map; it should actually be OK to do so in many cases, 
6879         it would be nice to warn about scrolling when many lines have
6880         height 0, but I don't know what to do about that. Perhaps 
6881         move part of flush_scroll into this function? comment added 
6882         to consider this.
6883
6884 2001-10-23  Havoc Pennington  <hp@redhat.com>
6885
6886         * gtk/gtktextview.c (changed_handler): Correctly keep the same
6887         text on the top of the screen, considering that the changed region
6888         may have overlapped the first paragraph. Should fix msw's "text
6889         widget scrolled to wrong place on map" bug, and probably some
6890         other scrolling cases as well.
6891         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
6892         instead of some random value
6893
6894         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
6895         grab_focus, so #59708 is really fixed
6896
6897 2001-10-24  Anders Carlsson  <andersca@gnu.org>
6898
6899         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
6900         (popup_targets_received): Call append_action_signal with stock items
6901         
6902         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
6903         (gtk_label_do_popup): Call append_action_signal with stock items
6904         
6905         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
6906         (popup_targets_received): Call append_action_signal with stock items
6907
6908 2001-10-23  Havoc Pennington  <hp@redhat.com>
6909
6910         * gtk/gtktextview.c (changed_handler): queue a resize here; will
6911         temporarily slow down the widget a lot, until we figure out how to
6912         optimize to avoid full redraw everytime we queue a resize.
6913
6914 2001-10-23  Havoc Pennington  <hp@redhat.com>
6915
6916         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
6917         0 and char_len == 0, bug #61729
6918
6919 2001-10-23  Havoc Pennington  <hp@redhat.com>
6920
6921         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
6922         return value, #61714 (Vitaly Tishkov)
6923         (gtk_text_iter_backward_sentence_starts): ditto
6924         (gtk_text_iter_backward_word_starts): ditto
6925         (gtk_text_iter_forward_word_ends): ditto
6926         (gtk_text_iter_forward_sentence_ends): ditto
6927         (gtk_text_iter_backward_cursor_positions): ditto
6928
6929 2001-10-23  Havoc Pennington  <hp@redhat.com>
6930
6931         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
6932         fix from Dov Grobgeld, #61858
6933
6934 2001-10-23  Havoc Pennington  <hp@redhat.com>
6935
6936         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
6937         Update IM spot location at appropriate times, #50626
6938         (Hidetoshi Tajima)
6939
6940 2001-10-23  Havoc Pennington  <hp@redhat.com>
6941
6942         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
6943         on grab focus, unless it's caused by button click, #59708
6944
6945 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
6946
6947         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
6948
6949         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
6950         G_CONST_RETURN. (Murray Cumming)        
6951
6952         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
6953         Make G_CONST_RETURN.
6954
6955         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
6956         results of g_get_home_dir().
6957
6958         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
6959         copy. Storing the return from gtk_entry_get_text() is evil.
6960
6961         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
6962         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
6963         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
6964         gtk/gtksignal.c: Add const.
6965
6966         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
6967
6968         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
6969         if we are setting them on private widgets.
6970
6971         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
6972         Duplicate entry->text before setting it as object data.
6973
6974 2001-10-22  Havoc Pennington  <hp@redhat.com>
6975
6976         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
6977         up a char from the end iterator, fixes #61859 ("can't put cursor
6978         at the end of the buffer")
6979
6980         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
6981         to work with delimiters other than newline.
6982
6983         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
6984         get_bytes_in_line
6985
6986         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
6987         last line, since the newline is no longer counted.
6988         (gtk_text_iter_get_bytes_in_line): ditto
6989
6990 2001-10-22  Havoc Pennington  <hp@redhat.com>
6991
6992         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
6993         #58290 would trigger if it reappeared, I think
6994
6995 2001-10-22  Havoc Pennington  <hp@redhat.com>
6996
6997         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
6998         add temporary code to dump btree contents on assertion failure
6999         described in #62656
7000         
7001         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
7002         assertions that we're getting the right end iter segment
7003
7004         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
7005         verify that we aren't on the end iterator after moving 
7006         forward one segment - fixes return value in an obscure case. 
7007         Also, some trivial code cleanup/rearranging.
7008         
7009 2001-10-22  Havoc Pennington  <hp@redhat.com>
7010
7011         * gtk/gtktextlayout.h: add a #error unless you define
7012         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
7013
7014         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
7015         
7016 2001-10-22  Havoc Pennington  <hp@redhat.com>
7017
7018         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
7019         #62365
7020
7021 2001-10-22  Havoc Pennington  <hp@redhat.com>
7022
7023         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
7024         #62436
7025
7026 2001-10-22  Havoc Pennington  <hp@redhat.com>
7027
7028         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
7029         #62366
7030
7031 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
7032
7033         * gtk/gtklabel.c: Add cursor-position, selection-bound 
7034         properties. (#62148, reported by Padraig O'Briain)
7035
7036         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
7037         to cursor_position. (1.3.x addition, text_position is an awful
7038         name.) Make cursor_position read-only to avoid sticky questions
7039         of interaction with selection_bound. (#62636, reported by
7040         Padraig O'Briain)
7041
7042 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
7043
7044         Fixing popup menus to have "Paste" sensitized correctly. Original
7045         patches from Damian Ivereigh, much mangled.
7046
7047         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
7048         gtk_selection_data_targets_include_text(). (#60854)
7049
7050         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
7051         the clipboard has text" function gtk_clipboard_wait_is_text_available.
7052         (#60854)
7053
7054         * gtk/gtkentry.c: Only enable the paste item if the clipboard
7055         contains text. (#60973)
7056
7057         * gtk/gtktextview.c: Only enable the paste item if the clipboard
7058         contains text. (#60975)
7059
7060 2001-10-22  Havoc Pennington  <hp@redhat.com>
7061
7062         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
7063         "height_lines" and "width_columns" properties, it doesn't make
7064         sense to set the size request on a text view really. #62103
7065
7066 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
7067
7068         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
7069         g_node_depth is broken, and that it's not worth being consistent
7070         with it.
7071
7072 2001-10-22  Havoc Pennington  <hp@redhat.com>
7073
7074         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
7075         docs, #61777
7076         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
7077         change the two boolean args to a flags field, so we can extend 
7078         to add case insensitive, regexp searches later. #61852
7079
7080 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
7081
7082         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
7083         reflect reality, #62810
7084
7085 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
7086
7087         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
7088
7089         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
7090         system.  Instead of having a window the size of the tree, we have
7091         a window the size of widget->allocation, and simply draw with the
7092         offset.
7093         (coords_are_over_arrow): ditto.  Move to window coordinates.
7094         (do_prelight): ditto
7095         (do_unprelight): ditto
7096
7097         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
7098         Minor fix from Kristian Rietveld to fix unsorted case.
7099
7100 2001-10-22  jacob berkman  <jacob@ximian.com>
7101
7102         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
7103         a PIXMAP cell (fixes crash when using PIXTEXT cells)
7104
7105 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
7106
7107         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
7108         (#58768, Vitaly Tishkov)
7109         
7110         * gtk/gtkobject.h: Deprecate with abandon. 
7111         (#61942, Vitaly Tishkov, Matthias Clasen)
7112
7113         * gtk/gtksignal.h: Deprecate everything.
7114
7115         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
7116         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
7117         (#61942, Matthias Clasen)
7118
7119         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
7120         Havoc Pennington)
7121
7122         * gtk/gtkitemfactory.h: Deprecate compat functions
7123         for GtkMenuFactory code. (#62071)
7124
7125         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
7126         gdk_draw_text,gdk_draw_text_wc. (#62071)
7127
7128 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
7129
7130         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
7131         g_thread_init(), we don't want to link to -lgthread if we don't
7132         have to.
7133
7134 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
7135
7136         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
7137         Add a function, gdk_threads_init() that must be explicitely 
7138         called to enable the GDK thread mutex.
7139
7140 2001-10-22  Jakub Steiner <jimmac@ximian.com>
7141
7142         * gtk/stock-icons/stock_stop.png: no body parts
7143         
7144 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
7145
7146         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
7147         problem with g_return_if_fail return value.
7148
7149         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
7150         virtual atom code from the gdk-multihead branch, removing the per-display
7151         part. Virtualizing atoms needs to be done now to prevent compat
7152         breakage in direct Xlib accessing code in the future. (#62208)
7153  
7154         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
7155         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
7156  
7157         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
7158         an opaque pointer type so the compiler catches attempts
7159         to mingle it with X atoms.
7160
7161         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
7162           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
7163           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
7164           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
7165           tests/testdnd.c,tests/testselection.c: 
7166         Fix up for above atom changes.
7167
7168         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
7169         now have the ability to add custom predefines.
7170
7171         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
7172         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
7173         to gtk_clipboard_get().
7174
7175         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
7176         for GdkAtom => pointer change.
7177
7178         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
7179         atoms, fix for GdkAtom => pointer change.
7180
7181 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
7182
7183         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
7184         new function spin_button_get_arrow_size() instead.
7185
7186         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
7187         arrow was hardcoded, it's now variable.
7188
7189         Fixes bug #50200
7190
7191 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
7192
7193         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
7194         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
7195         for those
7196
7197 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
7198
7199         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
7200         in favor of g_signal_*, gtk_object_* in favor of 
7201         g_object_*.
7202
7203 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
7204
7205         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
7206         from GObject now, we have to use the g_object_* functions, not
7207         gtk_object_*.
7208
7209 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
7210
7211         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
7212         nailed down now (this code is not yet ready for general consumption)
7213
7214 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
7215
7216         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
7217         for use_align
7218
7219 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
7220
7221         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
7222
7223 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
7224
7225         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
7226         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
7227         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
7228         GObject, not GtkObject. (#62621)
7229
7230 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
7231
7232         * tests/testsocket.c: Remove now useless include of unistd.h,
7233         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
7234         
7235 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
7236
7237         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
7238         Pango font API. #61933. (Untested, even for compilation.)
7239
7240 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
7241
7242         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
7243         export gtk_disable_setlocale(). (Caught by Sven Neumann)
7244
7245 2001-10-18  Havoc Pennington  <hp@redhat.com>
7246
7247         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
7248
7249 2001-10-18  Havoc Pennington  <hp@redhat.com>
7250
7251         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
7252         to GTK_RUN_LAST, #50239
7253
7254 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
7255
7256         * gtk/gtkimmodule.c (match_locale):
7257         Support "*" for all locales with least priority
7258         when to select default im module, #58201
7259
7260 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
7261
7262         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
7263         Fix docs. (#61976)
7264  
7265         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
7266
7267         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
7268
7269         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
7270         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
7271         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
7272         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
7273         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
7274         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
7275         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
7276
7277         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
7278
7279         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
7280         Don't restrict the width of the spinbutton entry field 
7281         to 10 digits. (#58681)
7282
7283 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
7284
7285         * tests/testtreeflow.c: new test program for the tree.
7286
7287 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
7288
7289         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
7290         reported by (Oleg Maiboroda), #62600
7291
7292 2001-10-18  Michael Meeks  <michael@ximian.com>
7293
7294         * gtk/gtkentry.c (gtk_entry_set_property),
7295         (gtk_entry_get_property): impl 'text'
7296         (gtk_entry_class_init): add the 'text' prop.
7297         (gtk_entry_insert_text): notify 'text' changed.
7298         (gtk_entry_delete_text): ditto.
7299
7300 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
7301
7302         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
7303         Documentation updates.
7304
7305 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
7306
7307         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
7308         in truncating length of text to MAX_SIZE. (Found by 
7309         Padraig O'Briain, #62055)
7310
7311 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
7312
7313         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
7314         MNEMONIC_ACTIVATE; signal was changed a long time
7315         ago.
7316
7317         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
7318         Fix wrong return statement. (Reported by HideToshi
7319         Tajima and others.)
7320
7321         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
7322         left over select_all vfunc.
7323
7324 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
7325
7326         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
7327         a utility function to translate coordinates relative to
7328         one widget's allocation to coordinates relative to another
7329         widget's allocation.
7330
7331         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
7332         that:
7333          - only accepts external focus if there is no active
7334            member of the group or the button is active.
7335          - makes arrow keys move the active button as well
7336            as the focus
7337          - make tab tab out directly.
7338         This makes a radio button group act as a single focus location.
7339         (#53577).
7340         
7341         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
7342         it was only a small optimization that didn't matter and made
7343         things more complicated.
7344
7345         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
7346         sorter for FOCUS_TAB as we did for the other focus directions,
7347         sort by center of widgets, not upper-left corner. (Shouldn't
7348         matter in general.)
7349
7350         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
7351         from the different types of focusing: encapsulate sorting the
7352         widgets for the focus direction into one routine
7353         (gtk_container_focus_sort()) and then share the work of moving the
7354         focus between the different focus directions.
7355
7356         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
7357         work correctly with focus chains containing non-immediate
7358         children. Sorting was being done using allocation coordinates for
7359         each widget in the focus chain, and if there were intermediate
7360         window-widgets, these allocations would not be in the same
7361         coordinate system.
7362
7363 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
7364
7365         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
7366         mnemonic_activate function to option menu.
7367
7368 2001-10-15  Murray Cumming <murrayc@usa.net>
7369
7370         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
7371           Corrected the type names used in some calls to g_signal_new().
7372         
7373 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
7374
7375         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
7376         specs, use g_pattern_spec_equal() instead of direct field accesses.
7377         upon compressing two equal paths of the same type, the resulting
7378         priority has to be the maximum.
7379         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
7380         GtkPathPriorityType enum and make it a macro.
7381
7382 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
7383
7384         * gtk/gtkwidget.c: Fix some doc comments.
7385
7386 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
7387
7388         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
7389         on empty models.
7390
7391 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
7392
7393         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
7394         Remove stale gdk backend includes.
7395  
7396 2001-10-10  Michael Meeks  <michael@ximian.com>
7397
7398         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
7399         and value_in_list properties.
7400         (gtk_combo_set_value_in_list): notify change.
7401         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
7402
7403 2001-10-11  James Henstridge  <james@daa.com.au>
7404
7405         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
7406         that gtk+ can be built with automake 1.5 while not breaking
7407         things for automake 1.4.
7408
7409 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
7410
7411         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
7412         (#60606)
7413
7414         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
7415         to disable calling setlocale (LC_ALL, "").
7416
7417         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
7418         docs that this function is not typically useful.
7419
7420         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
7421         Automatically initialize GDK for the current locale
7422         on gdk_init(). Don't reset locale to C when
7423         XSupportsLocale() fails.
7424
7425         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
7426         useless checks for UTF-8 locale breakage that mattered
7427         only for X.
7428
7429         * examples/calendar/calendar.c
7430         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
7431         gtk_set_locale().
7432
7433         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
7434         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
7435
7436 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
7437
7438         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
7439
7440         Fixes bug #61904
7441
7442 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
7443
7444         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
7445         new function, #61923
7446         (gtk_tree_selection_path_is_selected): Ditto
7447
7448 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
7449
7450         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
7451         not a GtkObject.  Thanks andersca.
7452
7453         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
7454
7455 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
7456
7457         * gtk/gtktreeviewcolumn.c
7458         (gtk_tree_view_model_sort_column_changed): fix broken code.
7459
7460 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
7461
7462         * gtk/gtkselection.c: s/succesfully/successfully/g
7463
7464 2001-10-08  Havoc Pennington  <hp@pobox.com>
7465
7466         * demos/gtk-demo/stock_browser.c: remove unused enum
7467
7468         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
7469         pass the current selection state of the node in to the user
7470         selection func
7471
7472 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
7473
7474         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
7475         non-existent function gdk_x11_cursor_get_xid 
7476         by gdk_x11_cursor_get_xcursor.
7477
7478 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
7479
7480         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
7481         warning.
7482
7483         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
7484         unref nodes, #okay61676
7485
7486         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
7487         to the property; no need to clear the other columns.  Also, we go
7488         to 'unsorted' if the model supports it.
7489
7490 2001-10-05  Sven Neumann  <sven@gimp.org>
7491
7492         * demos/testpixbuf-save.c
7493         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
7494         feature.
7495
7496 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
7497
7498         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
7499         destroy the search dialog
7500
7501         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
7502         added check to prevent creation of a search dialog if there's
7503         already one around
7504
7505         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
7506         it instead of "search-dialog" (when getting/setting the search dialog
7507         widget).
7508
7509 2001-10-05  Jakub Steiner <jimmac@ximian.com>
7510
7511         * gtk/stock-icons/stock_broken_image.png: broken images icon
7512
7513 2001-10-04  Havoc Pennington  <hp@pobox.com>
7514
7515         Fix #56586
7516         
7517         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
7518         accelerator setting here...
7519
7520         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
7521         because we try to use it when a menu bar hasn't necessarily been 
7522         initialized.
7523
7524 2001-10-03  Havoc Pennington  <hp@redhat.com>
7525
7526         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
7527         it previously verified incorrect behavior
7528
7529         Fixes for #61565
7530         
7531         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
7532         off the end
7533         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
7534         the end
7535         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
7536         the end
7537         (gtk_text_iter_forward_lines): if on the last line, move to end of
7538         it
7539
7540         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
7541         don't return a line off the end
7542
7543 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
7544
7545         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
7546         functions to do_insert_text and do_delete_text, add signals
7547         insert_text, delete_text and changed
7548
7549         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
7550         and changed. Updates to match new situation.
7551
7552         * gtk/gtkspinbutton.c: updates to match new situation
7553
7554         * gtk/gtkoldeditable.h: remove signals changed, insert_text
7555         and delete_text
7556
7557         * gtk/gtkoldeditable.c: updates to match new situation
7558
7559         * gtk/gtktext.c: updates to match new situation
7560
7561         Fixes bug #59803
7562
7563 2001-10-03  Havoc Pennington  <hp@redhat.com>
7564
7565         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
7566         position
7567
7568         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
7569         changes
7570
7571         * tests/testtextbuffer.c (logical_motion_tests): updates
7572
7573 2001-10-03  jacob berkman  <jacob@ximian.com>
7574
7575         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
7576         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
7577         * gtk/gtksettings.c (apply_queued_setting): 
7578         * gtk/gtkmain.c (gtk_init_check): 
7579         * gtk/gtkcontainer.c (gtk_container_child_get_property):
7580         s/retrive/retrieve/
7581
7582 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
7583
7584         * gtk/gtktreemodelsort.[ch]: preparation for surgery
7585         * tests/testtreesort.c: ditto
7586
7587 2001-10-02  Havoc Pennington  <hp@redhat.com>
7588
7589         Throughout: assorted docs
7590         
7591         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
7592         gdk_window_set_geometry_hints() should be used instead.
7593
7594         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
7595         document them
7596
7597         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
7598         seem to exist in any .c files
7599
7600         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
7601         g_return_if_fail (pixel < colormap->size).
7602
7603 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
7604
7605         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
7606         NULL for @target_list to mean, use
7607         gtk_drag_dest_get_target_list (widget).
7608
7609         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
7610         drop could hang when calling gtk_drag_finish with 
7611         success == FALSE and del == TRUE.
7612
7613         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
7614         drops without a matching target found would propagate
7615         to the parent widget rather than being rejected.
7616
7617         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
7618         Use text_view->dnd_mark instead of mark name to be
7619         consistent with the rest of the code.
7620
7621         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
7622         pendantically correct for a drop-only-in-some-places
7623         widget. (Check whether you can insert in drag_drop,
7624         not just in drag_motion ... matters in theory, and
7625         for Motif drag and drop in practice.)
7626
7627         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
7628         Damian Ivereigh to not allow drops on non-editable
7629         entries. (#61124)
7630
7631         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
7632         text to be moved from a non-editable entry.
7633         
7634 2001-10-03  James Henstridge  <james@daa.com.au>
7635
7636         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
7637         s/width/fixed_width/ in order to get things to compile.
7638
7639 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
7640
7641         * gtk/gtkcelleditable.c: docs
7642
7643         * gtk/gtktreemodel.h: more docs.
7644
7645 2001-10-02  Havoc Pennington  <hp@redhat.com>
7646
7647         * gdk/x11/gdkwindow-x11.c: docs
7648
7649         * tests/testtextbuffer.c (logical_motion_tests): add sentence
7650         boundary tests
7651
7652 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
7653
7654         * demos/gtk-demo/Makefile.am: add editable_cells.c,
7655         list_store.c and tree_store.c
7656
7657         * demos/gtk-demo/appwindow.c: remove tearoff item from
7658         File menu, put menubar and toolbar in handle boxes.
7659
7660         * demos/gtk-demo/genincude.pl: various changes to support trees
7661
7662         * demos/gtk-demo/main.c: various changes to support trees
7663
7664         * demos/gtk-demo/stock_browser.c: changed name of demo
7665         to Stock Item and Icon Browser, so geninclude.pl doesn't see
7666         it as child
7667
7668         * demos/gtk-demo/editable_cells.c: new file/demo
7669         * demos/gtk-demo/list_store.c: new file/demo
7670         * demos/gtk-demo/tree_store.c: new file/demo
7671
7672 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
7673
7674         * gtk/gtkrc.c gtk/gtksettings.c: 
7675         g_string_printfa => g_string_append_printf.
7676
7677 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
7678
7679         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
7680         and destroy handler.
7681
7682         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
7683
7684         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
7685         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
7686         Singh <yosh@gimp.org>.
7687
7688 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
7689
7690         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
7691         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
7692
7693         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
7694
7695 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
7696
7697         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
7698         scroll_to_cell delayed code to happen in size_allocate.
7699
7700         * gtk/gtkstyle.c (gtk_default_draw_expander): change
7701         prelight/normal arrow drawing.
7702
7703         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
7704
7705         * gtk/gtktreestore.c: refactor.
7706
7707 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
7708
7709         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
7710         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
7711         centers the child in relation to the to indicator height.
7712
7713 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
7714
7715         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
7716         correct
7717
7718 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
7719
7720         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
7721         property code using g_param_spec_int and changed from
7722         g_value_get_enum to g_value_get_int instead. Probably a better way
7723         to fix the problem :-)
7724
7725 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
7726
7727     * gtk/gtkcellrenderertext.c changed "weight" property type from 
7728       g_param_spec_int to g_param_spec_enum.
7729
7730 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
7731
7732         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
7733         fix: s/Wether/Whether/ in reorderable property description
7734
7735 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
7736
7737         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
7738         start editing when you select with a keyboard.
7739
7740         (gtk_tree_view_button_press_event): much more graceful now.
7741
7742         * gtk/gtkstyle.c: Draw togglebutton better.
7743
7744 2001-09-26  Havoc Pennington  <hp@redhat.com>
7745
7746         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
7747         of passing non-stock label in to gtk_dialog_new_with_buttons
7748
7749         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
7750         debugging updates
7751
7752         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
7753         are private
7754
7755         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
7756         exist, fall back to mnemonic label, not plain label, bug #61184
7757         
7758 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
7759
7760         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
7761         stupid and emitting the signal every time.
7762
7763         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
7764
7765 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
7766
7767        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
7768
7769        * contrib/gdk-pixbuf-xlib/Makefile.am: install
7770        gdk-pixbuf-xlib-2.0.pc.
7771
7772 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
7773
7774         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
7775         problem where menmonic wasn't removed properly when
7776         setting a label when there already is a label.
7777         Also, handle setting the tab label back to the same
7778         value. (#61160, #61161)
7779
7780         * gtk/gtkentry.c (paste_received): Patch from 
7781         Damian Ivereigh to replace selection if there is 
7782         one. (#61121)
7783
7784 2001-09-25  Darin Adler  <darin@bentspoon.com>
7785
7786         * tests/.cvsignore: Ignore new test program.
7787
7788 2001-09-25  Havoc Pennington  <hp@redhat.com>
7789
7790         * gtk/gtktextview.c: fix for #50317
7791         
7792 2001-09-25  Havoc Pennington  <hp@redhat.com>
7793
7794         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
7795         gtk_text_iter_can_insert
7796         
7797         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
7798
7799         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
7800          (gtk_text_iter_can_insert): new function to fix #60282, should
7801         also fix msw's "can paste into empty buffer" bug.
7802
7803         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
7804         "event object,"  #59091
7805
7806         * gtk/gtktextbtree.c: indentation fixes
7807
7808         * gtk/gtktextiter.c (find_by_log_attrs): fixes
7809
7810 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
7811
7812         * configure.in: Version 1.3.9, interface age 0, binary age 0.
7813
7814         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
7815
7816         * NEWS: Updates.
7817
7818 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
7819
7820         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
7821         function for drawing cursors between gtkentry/gtklabel/gtktextview.
7822         Should this be public? It has a bit of an odd interface, but
7823         custom editing widgets probably should be using it.
7824         Function will draw with wider width for taller cursors, and
7825         draws a little indicator arrow to indicate directoin for split 
7826         cursors.
7827
7828         * gtk/gtktextview.c: Add a "cursor_color" property.
7829
7830         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
7831         gtk_text_layout_draw().
7832
7833         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
7834         _gtk_draw_insertion_cursor().
7835
7836 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
7837
7838         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
7839         the behavior where you could turn family_set (etc) back on
7840         and get back the values you had before.
7841
7842         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
7843         g_string_ascii_up() rather than looping through the
7844         string ourself.
7845
7846 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
7847
7848         * gtk/gtktreeviewcolumn.c
7849         (gtk_tree_view_column_set_cell_renderer): Removed
7850         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
7851
7852         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
7853         Patch from Detlef Reichl
7854
7855 2001-09-25  Havoc Pennington  <hp@redhat.com>
7856
7857         * tests/testtextbuffer.c (line_separator_tests): Add tests for
7858         line separators, addresses bug #57428
7859
7860 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
7861
7862         * gtk/gtkentry.c: Make a GtkCellEditable
7863         (get_widget_window_size): Change to let it honor size_allocate
7864         when a CellEditable.
7865
7866         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
7867         editable changes.
7868         (gtk_tree_view_set_cursor): Now you can set the cursor
7869         horizontally, as well as start editing.
7870
7871         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
7872         code to look more like the other check buttons.
7873
7874         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
7875         Change the way we calculate cell size.
7876
7877         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
7878
7879         * demos/gtk-demo/sizegroup.c: Add mnemonics.
7880
7881         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
7882         Fix logic.
7883
7884         * gtk/gtkcellrenderertext.c: Change to be editable.
7885
7886         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
7887
7888         * test/testtreesort.c: Fix misspelling
7889
7890         * test/testreecolumns.c: Add mnemonics.
7891
7892         * test/testreeedit.c: New test program.
7893
7894 2001-09-25  Havoc Pennington  <hp@pobox.com>
7895
7896         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
7897         etc. docs about how these are not going to do what you want for 
7898         the X/win32 ports. Futile attempt to avoid a FAQ...
7899
7900 2001-09-24  James Henstridge  <james@daa.com.au>
7901
7902         * gtk/gtkmarshal.list (VOID): add marshal function types.
7903
7904         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
7905         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
7906         GTK_TYPE_POINTER.
7907         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
7908         with no-op copy/free functions.
7909
7910         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
7911         GtkCTreeNode get_type function.
7912
7913 2001-09-24  Havoc Pennington  <hp@redhat.com>
7914
7915         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
7916         gtktextlayout.c:
7917         Get rid of the newline-that-could-not-be-deleted; buffers may 
7918         now be zero-length. Much easier to fix than expected, once 
7919         I figured out the right way to do it. However, there are 
7920         various subtle bugs introduced by this that will have to get 
7921         sorted out. Please use bugzilla.
7922
7923 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
7924
7925         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
7926         response back from the window manager if our size hasn't changed 
7927         since we won't get a response back from the window manager;
7928         there was code in there to do this, but it was in the wrong
7929         place so if the hints change and the size didn't we'd expect
7930         a response.
7931
7932         Also, optimize the position-only-changed case by running
7933         the resize queue immediately, and clean up some comments
7934         for the changes.
7935
7936 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
7937
7938         * gtk/gtknotebook.h: Add a compat macro that got lost.
7939
7940         * gtk/gtktreestore.c: Doc fixes.
7941
7942         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
7943         leak for windows that receive events after being destroyed.
7944         (#60863, Joshua N. Pritikin)
7945
7946         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
7947         rather than gtk_container_queue_resize().
7948
7949         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
7950         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
7951         gtk_container_child_composite_name. (#60217.)
7952
7953 2001-09-22  Hans Breuer  <hans@breuer.org>
7954
7955         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
7956
7957 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
7958
7959         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
7960         weight value should be an int
7961
7962 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
7963
7964         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
7965         to gtk_menu_scroll_item_visible(). Only call
7966         gtk_menu_scroll_item_visible() if the menu widget has been
7967         realized. Fixes bug #55310.
7968
7969 2001-09-21  Havoc Pennington  <hp@redhat.com>
7970
7971         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
7972         key press to IM context if cursor isn't in an editable location;
7973         bug #58425, patch from Hidetoshi Tajima
7974
7975 2001-09-21  Havoc Pennington  <hp@redhat.com>
7976
7977         Bug #60862
7978         
7979         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
7980         (_gtk_text_btree_unref): fix up mark memory management
7981
7982         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
7983
7984 2001-09-20  Havoc Pennington  <hp@redhat.com>
7985
7986         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
7987         try to handle alignment here, because it's done by PangoLayout
7988         after we set the layout width. Fix from Dov.
7989
7990 2001-09-21  Hans Breuer  <hans@breuer.org>
7991
7992         * gdk/gdk.def :
7993         * gtk/gtk.def : updated externals
7994
7995         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
7996         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
7997         Also handle that Win32 pathes cann't be hard-coded      
7998
7999         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
8000         module, themes etc directory calculations
8001
8002         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
8003         >16 bit right. The size limit within Win9x appears _not_ to be 32767
8004         but slightly smaller ...
8005
8006         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
8007         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
8008
8009         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
8010
8011         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
8012         handling. I'm not sure if it is better now, but at least not worse
8013
8014         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
8015
8016         * gdk/win32/gdkwin32.h : reflect recent API restrictions
8017
8018 2001-09-21  Matt Wilson  <msw@redhat.com>
8019
8020         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
8021         radio_menu_item->group to NULL after removing it from the list, as
8022         it is no longer in the group. (#60869)
8023
8024         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
8025
8026 2001-09-20  Havoc Pennington  <hp@pobox.com>
8027
8028         * configure.in (PANGO_REQUIRED_VERSION)
8029         (ATK_REQUIRED_VERSION): add variables and checks for specific 
8030         versions of dependencies. Previously we didn't verify the 
8031         Pango or ATk versions.
8032
8033 2001-09-09  Havoc Pennington  <hp@pobox.com>
8034
8035         * gtk/gtktextiter.c: fool with indentation
8036         (gtk_text_iter_in_range): add g_return_if_fail
8037
8038 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
8039
8040         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
8041         ref count on new tag to be 1.  Update doc.  (#60836)
8042
8043 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
8044
8045         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
8046         call to gdk_image_new_bitmap(). (#59094, reported by
8047         by Sven Neumann)
8048
8049 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
8050
8051         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
8052         day, as well as the current month and year.
8053         (#59047, reported by Vitaly Tishkov)
8054
8055 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
8056
8057         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
8058         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
8059         
8060 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
8061
8062         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
8063
8064         (build_option_menu): add func argument, connect ::changed
8065         signal to option menu instead of connecting the ::activate
8066         signal to the menu items,
8067
8068         (toplevel): get rid of RADIOMENUTOGGLED macro,
8069
8070         (list_toggle_sel_mode), (clist_toggle_sel_mode),
8071         (ctree_toggle_line_style), (ctree_toggle_expander_style),
8072         (ctree_toggle_justify), (ctree_toggle_sel_mode),
8073         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
8074         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
8075
8076         (notebook_type_changed): merged standard_notebook(),
8077         notabs_notebook(), scrollable_notebook() and borderless_notebook()
8078         into notebook_type_changed()
8079
8080         (create_list), (create_ctree), (create_notebook),
8081         (create_progress_bar): changed OptionMenuItem arrays into
8082         gchar * arrays. Removed "Extended" item where used.
8083
8084         Fixes bug #59885
8085
8086 2001-09-20  Sven Neumann  <sven@gimp.org>
8087
8088         * configure.in
8089         * gdk/Makefile.am
8090         * gtk/Makefile.am
8091         * gtk/gtkselection.c
8092         * gtk/gtktreeview.c
8093         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
8094
8095 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
8096
8097         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
8098         a missing pango_layout_iter_free ().
8099
8100 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
8101
8102         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
8103         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
8104
8105         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
8106         the function definition so we don't accidentally rely on
8107         the compat #define from gtk_radio_menu_item_group.
8108         (#60782, Jeff Franks)
8109
8110 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
8111
8112         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
8113         incorrect values for top, right and bottom due to cut-and-paste
8114         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
8115
8116 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
8117
8118         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
8119         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
8120         window, not just on the client leader. (#58463)
8121
8122 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
8123
8124         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
8125
8126         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
8127         non-public _gtk_menu_item_set_placement.
8128
8129         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
8130
8131 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
8132
8133         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
8134           gdk/linux-fb/gdkcolor-fb.c:
8135         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
8136         (#59723)
8137
8138 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
8139
8140         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
8141         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
8142         #59723)
8143
8144 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
8145
8146         Patch from Frank Belew #59037 for Solaris compilation.
8147
8148         * gtk/maketypes.awk: Change syntax slightly for a call
8149         to sub(), apparently making awk on Solaris happier.
8150
8151         * gtk/gtktreeview.c: Remove C++ comments.
8152
8153 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
8154
8155         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
8156         to handle '99% of the time. (#60473, reported by Christian Rose)
8157
8158         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
8159         which no longer exists. (#60379, reported by Vitaly Tishkov)
8160
8161 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
8162
8163         * Released 1.3.8.
8164
8165         * gdk/Makefile.am: kill EXTRA_DIST clearing.
8166         
8167 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
8168
8169         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
8170         as its broken in automake 1.4, add explicit object rule to
8171         generate this.
8172         
8173         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
8174         get rid of uneccessary stamps, group stuff more logically, and build
8175         sources due to object rules. fix srcdir!=builddir.
8176
8177 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
8178
8179         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
8180         incorrect parameter to compute_double_length
8181         (#58680, patch from Matthias Clasen)
8182
8183         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
8184
8185         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
8186
8187         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
8188         for GDK_RELEASE_MASK to avoid warnings with Forte.
8189
8190         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
8191         break; statements.
8192
8193 2001-09-18  Alex Larsson  <alexl@redhat.com>
8194
8195         * gtk/gtkcheckbutton.c:
8196         * gtk/gtkradiobutton.c:
8197         Don't draw with GTK_STATE_ACTIVE.
8198
8199         * gtk/gtkclist.c:
8200         * gtk/gtkctree.c:
8201         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
8202
8203         * gtk/gtktextdisplay.c:
8204         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
8205         unfocused with base_gc [GTK_STATE_ACTIVE].
8206         
8207         * gtk/gtkentry.c:
8208         Add select all menu-item.
8209         Default cursor color is red.
8210         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
8211         unfocused with base_gc [GTK_STATE_ACTIVE].
8212
8213         * gtk/gtklabel.[ch]:
8214         Add keynav + menu to selectable lables.
8215         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
8216         unfocused with base_gc [GTK_STATE_ACTIVE].
8217
8218         * gtk/gtkfilesel.c:
8219         Add drag and drop support.
8220
8221         * gtk/gtkstyle.c:
8222         (This was checked in earlier)
8223         New default values for text/base SELECTED and ACTIVE
8224         
8225 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
8226
8227         * configure.in: up version to 1.3.8, interface age 0,
8228         binary age 0, depend on glib 1.3.8.
8229
8230         * NEWS: 1.3.8 updates.
8231
8232 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
8233
8234         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
8235         the editing code
8236
8237         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
8238         reason to call it beyond emiting the two signals.
8239
8240         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
8241         to GtkEntry.
8242
8243 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
8244
8245         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
8246           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
8247         PangoFontDescription.
8248
8249         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
8250         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
8251         structure.
8252   
8253         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
8254
8255         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
8256         direct access to style->font. Deprecate gtk_style_ref/unref.
8257   
8258         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
8259         Remove gtk_style_ref/unref with g_object_ref/unref.
8260   
8261         * gtk/gtkcalendar.c: Remove leftover macros accessing
8262         style->font.
8263   
8264         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
8265         variable.
8266   
8267         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
8268         style->font.
8269
8270 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
8271
8272         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
8273         "can_activate" properties in favor of
8274         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
8275         and GTK_CELL_RENDERER_MODE_EDITABLE
8276
8277 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
8278
8279         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
8280         editable widgets.  This function is private, and should only be
8281         used by GtkTreeView.
8282
8283 2001-09-18  Matt Wilson  <msw@redhat.com>
8284
8285         * docs/Makefile.am (EXTRA_DIST): don't use += before =
8286
8287         * docs/faq/Makefile.am (EXTRA_DIST): likewise
8288
8289         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
8290         
8291         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
8292         (EXTRA_HEADERS): likewise
8293
8294         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
8295         (EXTRA_HEADERS): likewise
8296         (EXTRA_DIST): likewise
8297         (CLEANFILES): likewise
8298
8299         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
8300
8301         * tests/Makefile.am (EXTRA_DIST): likewise
8302         
8303         * Makefile.am (install-data-local): changed to use
8304         install-data-hook, which runs after install-pkgconfigDATA, so that
8305         the pkgconfigdir will have been created and populated first.
8306
8307 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
8308
8309         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
8310         be the last big GtkTreeView API change.
8311
8312         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
8313         replace with "activate" and "start_editing".  Also, added a
8314         "can_activate" and "can_edit" property.
8315
8316         * gtk/gtktreeviewcolumn.c: modify to use above.
8317
8318 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
8319
8320         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
8321
8322 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
8323
8324         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
8325         icon instead of one with ugly white background.
8326
8327 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
8328
8329         * demos/gtk-demo/stock_browser.c (id_to_macro): make
8330         the uppercasing work. (#59550)
8331
8332 2001-09-14  Jakub Steiner <jimmac@ximian.com>
8333
8334         * gtk/stock-icons/dialog_error.png:
8335         * gtk/stock-icons/dialog_question.png: more road signs
8336
8337 2001-09-13  Jakub Steiner <jimmac@ximian.com>
8338
8339         * gtk/stock-icons/dialog_question.png:
8340         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
8341           like a road sign.
8342
8343 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
8344
8345         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
8346         signals to make them more clear.  Also, change ::range_changed to
8347         ::row_changed.
8348         * gtk/gtktreemodel.c: Adjust to interface change
8349         * gtk/gtktreemodel.h: ditto
8350         * gtk/gtktreemodelsort.c: ditto
8351         * gtk/gtktreestore.c: ditto
8352         * gtk/gtkliststore.c: ditto
8353         * gtk/gtktreeview.c: ditto
8354         * tests/testtreecolumns.c: ditto
8355         * gtk/gtkmarshal.list: Actually remove a marshaller!
8356
8357 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
8358
8359         * gtk/gtktextview.c
8360         Add support for Ctrl+Up/Down arrow to move cursor to beginning
8361         of previous/next paragraph. If within a paragraph cursor moves to
8362         beginning of that paragraph.
8363
8364 2001-09-12  Jakub Steiner <jimmac@ximian.com>
8365
8366         * gtk/stock-icons/dialog_question.png: replacing the shaky
8367           question mark with a sans-serif one.
8368         * gtk/stock-icons/stock_top.png, stock_bottom.png,
8369      stock_first.png, stock_last.png: using the new style arrows
8370         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
8371      colors.
8372         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
8373      color.
8374         * gtk/stock-icons/stock_zoom*: anti-aliased
8375         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
8376      '-' with a '_', removed the wrong files
8377
8378 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
8379  
8380         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
8381  
8382         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
8383         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
8384         than in gtk-2.0/major.minor.micro/<type>/. This
8385         works better for a search path for modules.
8386  
8387         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
8388         gtk_binary_version variable holding major.minor.(micro-binary_age).
8389  
8390         * modules/input/Makefile.am (moduledir): Fix installation
8391         directory to match change in lookup location.
8392  
8393         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
8394         suffixes. Needs to be handled in g_module_build_path().
8395
8396         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
8397         appropriate.
8398  
8399 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
8400
8401         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
8402         causing RC properties not to work.
8403
8404 2001-09-11  Jakub Steiner <jimmac@ximian.com>
8405
8406         * gtk/stock-icons/dialog-error.png: less drastic
8407         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
8408           "STOP" is international enough.
8409         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
8410         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
8411
8412 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
8413
8414         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
8415         (add|remove)_selection_clipboard symmetric. (bug #59836)
8416
8417         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
8418         Avoid SEGV for empty tree. (bug #60243)
8419
8420 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
8421
8422         * tests/testgtk.c (create_idle_test): slight fix for
8423         g_object_set() not usable for nesting anymore.
8424
8425         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
8426         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
8427         properties, supply ::shadow_type properties instead as most
8428         other widgets do.
8429
8430 2001-09-10  Alex Larsson  <alexl@redhat.com>
8431
8432         * demos/gtk-demo/stock_browser.c:
8433         * gdk/gdkcolor.c:
8434         * gdk/gdkfont.c:
8435         * gdk/gdkcursor.c:
8436         * gdk/gdkevents.c:
8437         * gdk/gdkrectangle.c:
8438         * gtk/gtktypeutils.c:
8439         Update to use the new g_boxed_type_register_static API.
8440
8441 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
8442
8443         * gtk/gtktreestore.c:
8444         Fix looping in gtk_tree_store_init() waiting for zero random int.
8445
8446 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
8447
8448         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
8449         behaviour which havoc broke. they have to default to 1.0 for
8450         expand behaviour.
8451
8452         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
8453
8454 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
8455
8456         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
8457         Amend previous change to avoid runtime error in g_param_spec_ref()
8458
8459 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
8460
8461         * gtk/gtkrc.c (insert_rc_property): Fix blank line
8462         in the wrong place.
8463
8464 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
8465
8466         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
8467         do a lookup immediately after creating style->property_cache,
8468         since bsearch crashes on zero length for Solaris.
8469         (Found by Padraig O'Briain.)
8470
8471 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
8472
8473         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
8474         Really return NULL if not set.
8475         (gtk_widget_init): Remove unused varaible.
8476         
8477 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
8478
8479         * configure.in:
8480         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
8481         in cvs.
8482
8483 2001-09-08  Havoc Pennington  <hp@pobox.com>
8484
8485         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
8486         people might want to use
8487
8488 2001-09-08  Havoc Pennington  <hp@pobox.com>
8489
8490         * gtk/gtkalignment.c (gtk_alignment_class_init): default
8491         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
8492
8493         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
8494
8495         * gtk/gtktextiter.c: fix docs
8496         (gtk_text_iter_spew): get rid of this
8497
8498         * gtk/gtklayout.c: docs
8499
8500         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
8501         to center image and label together, instead of having image on
8502         left and label centered, patch/suggestion from Jacob
8503
8504         * gtk/gtkdialog.c: docs
8505
8506 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
8507
8508         * gtk/gtkliststore.c: Write documentation
8509         * gtk/gtktreestore.c: Write documentation
8510
8511 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
8512
8513         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
8514         with GArray and bsearch(), to remove dependency on a still
8515         evolving interface that we want to keep private to glib/gobject. 
8516
8517 2001-09-08  Havoc Pennington  <hp@pobox.com>
8518
8519         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
8520         docs fixes
8521
8522         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
8523
8524         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
8525
8526         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
8527
8528         * gtk/gtkscrolledwindow.h: docs fixes
8529
8530         * gtk/gtkimage.c (gtk_image_new): docs fixes
8531
8532 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
8533
8534         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
8535         false alarm  constness warning with a cast.
8536
8537         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
8538         for the inside-gdk case.
8539
8540 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
8541
8542         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
8543         remove g_print.
8544
8545         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
8546         change models, #59899
8547
8548 2001-09-07  Havoc Pennington  <hp@pobox.com>
8549
8550         * gtk/gtkmain.c: move some docs inline
8551
8552 2001-09-07  Havoc Pennington  <hp@pobox.com>
8553
8554         * gtk/gtk.h: tsk tsk, jrb broke the build
8555
8556 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
8557
8558         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
8559         Removed 'fill' attribute.  It was silly b/c that was a property of
8560         the cell renderer, anyway.
8561         (gtk_tree_view_column_render): Actually render the packed
8562         renderers.
8563         * doc/tree-column-sizing.txt: initial devel documentation.
8564         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
8565         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
8566
8567         * tests/testtreefocus.c: fix up to reflect above changes.
8568         * tests/testtreeview.c: ditto
8569         * demos/gtk-demo/stock_browser.c: ditto
8570
8571 2001-09-07  Alex Larsson  <alexl@redhat.com>
8572
8573         * gdk/linux-fb/gdkcolor-fb.c:
8574         Removed unused function.
8575         
8576         * gdk/linux-fb/gdkdrawable-fb2.c
8577         * gdk/linux-fb/gdkfont-fb.c:
8578         Use PangoLanguage functions.
8579
8580         * gdk/linux-fb/gdkinput.c:
8581         * gdk/linux-fb/gdkselection-fb.c:
8582         Fix const warnings.
8583         
8584         * gdk/linux-fb/gdkwindow-fb.c:
8585         Fix warning. Implement gdk_window_set_icon_list() and
8586         gdk_window_get_frame_extents(). (No icon support yet though.)
8587
8588         * gtk/gtkwindow.c (gtk_window_get_position):
8589         If window->frame is set get the extents of it instead.
8590         
8591 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
8592
8593         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
8594         Make the default default colormap the GdkRGB colormap,
8595         not the system colormap.
8596
8597         * gtk/gtkinvisible.c (gtk_invisible_init) 
8598           gtk/gtkwindow.c (gtk_window_init): Set the current
8599         colormap, as returned by _gtk_widget_peek_colormap()
8600         on the widget.
8601
8602         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
8603         to GTK+. Make it return %NULL instead of the default
8604         colormap if no colormap has explicitely been pushed.
8605
8606         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
8607         colormaps on ancestral widgets before defaulting the
8608         the system default colormap.
8609
8610         * docs/Changes-2.0.txt: explain colormap changes.
8611
8612 2001-09-07  Havoc Pennington  <hp@redhat.com>
8613
8614         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
8615         #57424
8616
8617 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
8618
8619         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
8620         make gdk_set_use_xshm a noop. Remove --no-xshm command line
8621         option. If we aren't autodetecting properly, we need
8622         to fix the problem, or at least make it an environment
8623         variable setting, to avoid problems with propagating
8624         to embedded children, plugins, etc.
8625
8626         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
8627
8628         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
8629         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
8630         New function to render a pixmap and mask for a particular colormap.
8631
8632         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
8633         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
8634         of internal implementation of the same.
8635
8636 2001-09-07  Havoc Pennington  <hp@redhat.com>
8637
8638         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
8639         debug code that seems to have caused a breakpoint in valid cases
8640         
8641         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
8642         pointer on the first view when adding the second view, fixes
8643         crash when closing gtk-demo text test with active selection
8644
8645         * gtk/gtktextbuffer.c
8646         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
8647         clipboards in the list of clipboards - probably fixes #59836
8648
8649 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
8650
8651       Make gdkx.h the only installed header from gdk/x11.
8652       All structures in gdk/x11 are opaque.
8653
8654         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
8655         Don't install gdk{drawable,pixmap,window}-x11.h.
8656
8657         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
8658         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
8659         GdkVisualClass into C files.
8660
8661         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
8662
8663         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
8664         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
8665         Add public functions to replace previously exported direct
8666         structure access.
8667         gdk_x11_colormap_get_{xdisplay,xcolormap} 
8668         gdk_x11_cursor_get_{xdisplay,xcursor},
8669         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
8670         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
8671         gdk_x11_gc_get_{xdisplay,ximage}
8672         
8673         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
8674         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
8675
8676       Fix a number of variables and functions that were exported
8677       "accidentally" from GDK.
8678
8679         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
8680         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
8681         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
8682         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
8683         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
8684         gdk_event_queue_find_first, gdk_event_queue_remove_link,
8685         gdk_event_queue_append, gdk_event_button_generate,
8686         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
8687
8688         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
8689            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
8690         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
8691         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
8692         gdk_use_xshm, gdk_input_ignore_core.
8693
8694         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
8695         #defines to namespace functions into the private _gdk_ 
8696         namespace.
8697
8698         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
8699         to replace gdk_parent_root exported variable. Adjust and
8700         deprecate GDK_ROOT_PARENT().
8701
8702         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
8703         GDK_ROOT_PARENT usage, remove includes of port-specific
8704         headers.
8705
8706         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
8707         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
8708         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
8709
8710         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
8711         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
8712         gdk_wm_delete_window functions, gdk_wm_take_focus, 
8713         use gdk_atom_intern() instead.
8714
8715         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
8716           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
8717           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
8718           gtk/gtkselection.c 
8719         Unexport gdk_selection_property, just use 
8720         gdk_atom_intern ("GDK_SELECTION").
8721
8722         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
8723         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
8724         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
8725         GdkVisualprivate, gdk_x11_gc_flush.
8726
8727       Make a number of public exports of variables into functions
8728       to increase encapsulation.
8729
8730         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
8731         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
8732         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
8733
8734         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
8735         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
8736         gdk_error_warnings.
8737
8738         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
8739           docs/Changes-2.0.txt: 
8740         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
8741         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
8742         Add gdk_x11_get_default_xdisplay().
8743
8744         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
8745         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
8746         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
8747         Don't export gdk_progclass, move --class command line
8748         option and handling to common portion of GDK.
8749
8750       Miscellaneous fixes:
8751
8752         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
8753         g_return_val_if_fail that should have been g_return_if_fail.
8754
8755         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
8756         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
8757
8758         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
8759         X11 dependency.
8760
8761         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
8762         Remove unused gdk_key_repeat_disable/restore.
8763
8764         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
8765         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
8766         Remove unused gdk_null_window_warnings variable.
8767
8768         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
8769         it can be retrieved from the repository; it is too far
8770         from functional to be worth having people check out;
8771         it would be easier to start from scratch, I suspect.
8772
8773         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
8774
8775         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
8776         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
8777         Fix some accidentally global variables and unused global variables.
8778
8779         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
8780         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
8781         Fix some accidentally global variables and unused global variables.
8782
8783       Add some space for future expansion to multihead.
8784
8785         * gdk/gdkdrawable.h: Add four reserved function pointers
8786         for future expansion of GdkDrawableClass.
8787
8788         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
8789         where we can put a GdkScreen * later.
8790
8791 2001-09-07  Havoc Pennington  <hp@redhat.com>
8792
8793         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
8794         adjustments after validating destination yrange; fixes #53918
8795         (This may cause other issues, but I hope it won't)
8796         
8797 2001-09-05  Havoc Pennington  <hp@redhat.com>
8798
8799         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
8800         line into start line, update the character counts in parent nodes; 
8801         caused a bug when end and start line had different parent nodes.
8802
8803 2001-08-30  Havoc Pennington  <hp@redhat.com>
8804         
8805         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
8806         assertion that tag is in a table
8807
8808 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
8809
8810         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
8811         g_strcasecmp on NULL strings. (#59058)
8812
8813 2001-09-06  Alex Larsson  <alexl@redhat.com>
8814
8815         * gtk/gtkbin.c:
8816         * gtk/gtkfontsel.c:
8817         * gtk/gtkspinbutton.c:
8818         * gtk/gtktipsquery.c:
8819         Use GtkType/GType instead of uint.
8820
8821 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
8822
8823         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
8824         sort column.
8825
8826         * gtk/gtktreestore.c (gtk_list_store_init): ditto
8827
8828         * gtk/gtktreesortable.c: add docs.
8829
8830 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
8831
8832         * Version 1.3.7
8833
8834         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
8835         docs for gtk-config
8836
8837         * modules/input/Makefile.am (install-data-local): Don't
8838         run gtk-query-immodules if DESTDIR is set.
8839
8840         * NEWS: Various additions.
8841
8842 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
8843
8844         * NEWS: updates for 1.3.7 release.
8845
8846 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
8847
8848         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
8849         handle default sort feature
8850
8851         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
8852         new function to handle default sort.
8853         (gtk_tree_sortable_has_default_sort_func): check if default sort
8854         is set.
8855
8856         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
8857         handle default sort feature
8858
8859 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
8860
8861         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
8862         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
8863         #59731
8864
8865 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
8866
8867         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
8868         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
8869         time, #59727
8870
8871         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
8872         correctly.
8873
8874 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
8875
8876         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
8877         so that we don't eternally update the keymap after we
8878         get a change notification.
8879
8880         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
8881         incorrect cast.
8882
8883 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
8884
8885         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
8886         it working. It mostly works now, although there're still a few issues
8887         to be worked out.
8888
8889         * tests/testtreesort.c (main): changes to have a better test
8890         application for the GtkTreeModelSort.
8891
8892 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
8893
8894         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
8895         fix for bug #59222.
8896
8897         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
8898         gpointer search_data argument to function definition and
8899         prototype, to match GtkTreeViewSearchEqualFunc typedef.
8900
8901 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
8902
8903         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
8904         per jrb's request.
8905
8906 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
8907
8908         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
8909
8910         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
8911
8912 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
8913
8914         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
8915         Instead of always mirroring the selection to a single PRIMARY
8916         selection, allow it to be mirrored to any number of clipboards.
8917
8918         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
8919         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
8920
8921         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
8922         GtkClipboard argument, and for paste_clipboard, the
8923         @override_location argument from @paste_primary.
8924
8925         * gtk/gtktextview.c: Adapt to above change.
8926         
8927 2001-08-30  Havoc Pennington  <hp@redhat.com>
8928
8929         * gtk/gtktextview.c (invalidated_handler): put validate idle at
8930         resize - 2 just for flexibility
8931
8932 2001-08-30  Havoc Pennington  <hp@redhat.com>
8933
8934         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
8935         object from the empty-child-anchor case by drawing a little box.
8936         
8937         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
8938         if the child anchor has no anchored widgets - fixes #59328.
8939
8940         Also, remove bizarre deletion of preedit string that seems to have
8941         gotten in here somehow.
8942
8943 2001-08-30  Havoc Pennington  <hp@redhat.com>
8944
8945         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
8946         to #58420 from Hidetoshi Tajima and Matthias Clasen
8947
8948 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
8949
8950         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
8951         change color when the GtkTreeView loses focus.
8952
8953         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
8954         ditto.
8955         
8956         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
8957
8958 2001-08-28  Havoc Pennington  <hp@pobox.com>
8959
8960         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
8961
8962 2001-08-28  Havoc Pennington  <hp@pobox.com>
8963
8964         * demos/gtk-demo/main.c (setup_default_icon): add default icon
8965
8966         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
8967         warning fix
8968         (gtk_radio_button_new_with_label): warning fix
8969
8970         * gtk/gtkdnd.c: used some random GtkImage private structs, 
8971         update to reflect GtkImage changes
8972
8973         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
8974         whether the hint is supported, just always set the icon. A task
8975         list might want to use it even if the WM doesn't, and the WM may
8976         change over time. Also, XDeleteProperty() if list == NULL.
8977
8978         * gtk/gtkwindow.c (gtk_window_set_icon_list)
8979         (gtk_window_get_icon_list)
8980         (gtk_window_set_icon)
8981         (gtk_window_get_icon)
8982         (gtk_window_set_default_icon_list)
8983         (gtk_window_get_default_icon_list):
8984         new functions
8985
8986         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
8987
8988         * gtk/gtkimage.c: Implement property support, bug #59408
8989
8990         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
8991         on reparent-without-removing-first a bit more helpful.
8992         Let's just destroy this FAQ.
8993
8994 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
8995
8996         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
8997         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
8998
8999 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
9000
9001         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
9002         of use_text_format to the end of the function. (#56447)
9003
9004 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
9005
9006         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
9007         only in response to an area_prepared signal.
9008
9009 2001-08-28  Alex Larsson  <alexl@redhat.com>
9010
9011         * gtk/gtkwidget.c (gtk_widget_class_init):
9012         Make unrealize GTK_RUN_LAST.
9013
9014 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
9015
9016         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
9017         with_label and with_mnemonic should create radio buttons, not
9018         check buttons
9019
9020 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
9021
9022         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
9023         * tests/treestoretest.c (make_window): ditto
9024         * demos/gtk-demo/main.c (create_tree): ditto
9025         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
9026
9027 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
9028
9029         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
9030         GTK selection types rather than GtkTreeSelectionMode.
9031
9032         * docs/Changes-2.0: Add comment about selection change.
9033
9034 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
9035
9036         * gtk/gtkenums.h (GtkSelectionMode): deprecate
9037         GTK_SELECTION_EXTENDED.
9038
9039         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
9040         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
9041
9042         * gtk/gtkctree.c: ditto
9043
9044         * gtk/gtklist.c: ditto
9045
9046         * gtk/gtktree.c: ditto
9047
9048 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
9049
9050         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
9051         of typos in compat macros. (#59624, Skip Montaro)
9052
9053 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
9054
9055         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
9056         macro.
9057
9058          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
9059  
9060         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
9061         interface to be a standard setter from gtk_menu_item_right_justify.
9062         (gtk_menu_item_get_right_justified): a getter to go with the setter
9063
9064         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
9065         gtk_menu_item_right_justify.
9066
9067         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
9068         gtk_menu_item_set_right_justified.
9069  
9070 2001-08-27  Jens Finke <jens@gnome.org>
9071
9072         * gtk+.spec.in: Updated to match gpp requirements, reworked the
9073         files section to make it work with 1.3.x releases.
9074
9075 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
9076
9077         * gtk/gtkbutton.[ch]:
9078         Add properties for labels, mnemonics and stock items.
9079         Added C accessor functions for the properties.
9080         Removed deprecated button->child.
9081
9082         * gtk/gtkradiobutton.c:
9083         * gtk/gtktogglebutton.c:
9084         Update to use the functions in GtkButton.
9085
9086         * gtk/gtkcheckbutton.c:
9087         Update to use the functions in GtkButton.
9088         Changed size allocation of child. Now only gets as much
9089         space as it requests.
9090
9091         * gtk/gtkclist.c:
9092         Don't use GtkButton->child
9093
9094         * gtk/gtklabel.c:
9095         Fixed typo in docs
9096         
9097 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
9098
9099         * tests/testgtk.c:
9100         * tests/Makefile.am:
9101         Ressurect the properties test.
9102         I don't care if it is inferior, I just want to test my property code.
9103
9104 2001-08-25  Chema Celorio  <chema@celorio.com>
9105
9106         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
9107         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
9108         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
9109
9110 2001-08-24  Havoc Pennington  <hp@pobox.com>
9111
9112         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
9113         these are already in gtkmenu.h, and the copies
9114         here were broken.
9115
9116         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
9117
9118         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
9119         special-case bitmaps to allow no colormap
9120         (bitmap1): implement no-colormap bitmap-getting
9121         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
9122         alpha
9123         (rgb8): indentation
9124         (rgb1a, rgb1): change the way we read the data out of the image, 
9125         old way didn't seem to work quite right.
9126
9127         I'm pretty sure a lot of the rgbconvert code is still broken.
9128         
9129         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
9130         above position constraint (I really intended to do this before,
9131         don't know what's up with that)
9132         (gtk_XParseGeometry): shut up gcc
9133
9134         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
9135         and "0" should have been. remove the attempted 4-bytes-at-once
9136         optimization, it was totally broken.
9137
9138 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
9139
9140         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
9141         on push to buttons (based on patch from Soeren Sandmann, #54720)
9142
9143           - Add child_displacement_x/y style properties to control how far the
9144             child moves when the button is depressed.
9145
9146           - Add non-exported function _gtk_button_set_depressed to clean
9147             up the handling of the in/out shadow and separate it frmo
9148             widget->state.
9149
9150           - Lots of code cleanup and simplification of state handling
9151             for GtkButton/GtkToggleButton.
9152  
9153         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
9154         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
9155
9156 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
9157
9158         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
9159         and make gtk_image_new() take no arguments. The compiler will
9160         catch it, and it is vastly more useful than having
9161         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
9162
9163         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
9164         to add tearoff-title property (#51319, Lee Mallabone)
9165
9166 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
9167
9168         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
9169         gtk_menu_item_configure(). (#58925)
9170
9171 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
9172
9173         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
9174         "use_align" to give people the option to just make a cell visible.
9175
9176         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
9177         we were scrolling past the end of the tree.
9178
9179         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
9180         rename gtk_tree_view_column_pack_start_cell_renderer to
9181         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
9182
9183 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
9184
9185         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
9186         a stray g_object_ref() left over from gtk_object_ref/sink.
9187         (Pointed out by Josh Pritikin.)
9188
9189 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
9190
9191         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
9192         to gtk_container_get_children. Added deprecated compatibility
9193         macro. (Suggested by Vitaly Tishkov, #59051)
9194
9195         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
9196         calls.
9197
9198 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
9199
9200         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
9201         gtk_menu_bar_append/prepend/insert, forgot to do this
9202         when we deprecated gtk_menu_append/prepend/insert.
9203
9204         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
9205         compat macros.
9206
9207         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
9208         renamed by compat macro.
9209
9210         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
9211         gtk_font_selection_dialog_get_font(). (Suggested by
9212         Vitaly Tishkov, #59383)
9213
9214 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
9215
9216         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
9217         Rename from gtk_text_tag_table_size(). (#59366)
9218
9219 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
9220
9221         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
9222         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
9223         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
9224         (#59173).
9225
9226 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
9227
9228         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
9229         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
9230         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
9231
9232 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
9233
9234         [ Patch from Sebastian Wilhelmi, 52790 ]
9235
9236         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
9237
9238         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
9239         Move compatibility macros from g[dt]kcompat.h to within 
9240         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
9241
9242         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
9243
9244         * demos/Makefile.am demos/gtk-demo/Makefile.am 
9245           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
9246           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
9247
9248         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
9249                  testpixbuf.c}: Fix usages of deprecated functions.
9250
9251 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
9252
9253         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
9254         when changing models.
9255
9256 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
9257
9258         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
9259         We check the current event for modifiers rather than try to trap
9260         all presses.
9261
9262 2001-08-22  Anders Carlsson  <andersca@gnu.org>
9263
9264         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
9265         It's LIST_STORE, not LISTSTORE.
9266
9267 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
9268
9269         * gtk/gtk.h: Remove commented out gtkpacker reference.
9270
9271 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9272
9273         * configure.in (all_loaders): Add tga loader, 
9274         patch by Nicola Girardi. (#56067)
9275
9276 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
9277
9278         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
9279         a little.  More needs to be done tomorrow.
9280
9281 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
9282
9283         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
9284
9285 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
9286
9287         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
9288         reported by Kristian Rietveld <kristian@planet.nl> to handle row
9289         == NULL.
9290         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
9291         <kristian@planet.nl> to change destroy order.
9292
9293 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
9294
9295         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
9296         correct marshaller.
9297
9298 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
9299
9300         * gtk/gtkliststore.c: Fix up warnings, #58928.
9301
9302         * gtk/gtktreeselection.h: Change signal prototype, #58647
9303
9304         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
9305         #59221.
9306
9307         * gtk/gtkstyle.c: Actually prelight arrow, #50981
9308         
9309 2001-08-18  Hans Breuer  <hans@breuer.org>
9310
9311         * gdk/gdk.def : updated externals
9312
9313         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
9314         is required to get (at least) visible in entry fields. Some selections
9315         are really handled now - even on win32 - but copying via middle
9316         mouse button into a different app needs to wait ... 
9317
9318         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
9319         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
9320
9321         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
9322         handling. I'm not sure if it is better now, but at least not worse
9323
9324         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
9325         with SetWindowPos () which allows more fine-tuning backing-store wise
9326
9327         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
9328         Also changed move/resize to be more like the X version.
9329
9330         * gtk/gtk.def : updated externals
9331
9332 2001-08-19  Sven Neumann  <sven@gimp.org>
9333
9334         * gtk/gtktooltips.c
9335         * tests/testtreesort.c
9336         * tests/treestoretest.c: inserted some casts to get rid of compiler
9337         warnings.
9338
9339 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
9340
9341         * gtk/gtktreeviewcolumn.c
9342         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
9343
9344         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
9345         (_gtk_tree_view_find_node): If *node is NULL,
9346         *tree should be NULL too.
9347
9348         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
9349         column/renderers.
9350         * tests/testtreecolumns.c: ditto
9351         * tests/testtreefocus.c: ditto
9352         * tests/testtreesort.c: ditto
9353         * tests/testtreeview.c: ditto
9354         * tests/treestoretest.c: ditto
9355
9356 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
9357
9358         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
9359         signals; is_expander/is_expanded.
9360
9361         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
9362         pixbufs.
9363
9364         * gtk/gtktreeview.c: set above properties.
9365
9366 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
9367
9368         * gtk/gtkwidget.h: Really remove set_default_style().
9369
9370         * docs/Changes-2.0.txt: added a note about
9371         gtk_widget_push/pop/set_default_style.
9372
9373 2001-08-18  Havoc Pennington  <hp@pobox.com>
9374
9375         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
9376         hints_changed in addition to the other cases.
9377         (gtk_window_move_resize): include last position from configure
9378         notify in debug spew
9379
9380 2001-08-18  James Henstridge  <james@daa.com.au>
9381
9382         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
9383         second argument to the weak ref notify, cleaning up some uglyness.
9384         (gtk_accel_group_attach): remove and add the weak notifier when
9385         changing the accel groups slist.
9386         (gtk_accel_group_detach): same here.
9387
9388 2001-08-17  Darin Adler  <darin@bentspoon.com>
9389
9390         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
9391         missing parameters to utf8 functions to make it compile.
9392
9393 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
9394
9395         * gtk/gtktreeprivate.h:
9396         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
9397         (gtk_tree_view_init), (gtk_tree_view_set_property),
9398         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
9399         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
9400         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
9401         (gtk_tree_view_set_destroy_count_func),
9402         (gtk_tree_view_set_enable_search),
9403         (gtk_tree_view_get_enable_search),
9404         (gtk_tree_view_get_search_column),
9405         (gtk_tree_view_set_search_column),
9406         (gtk_tree_view_get_search_equal_func),
9407         (gtk_tree_view_set_search_equal_func),
9408         (gtk_tree_view_search_dialog_destroy),
9409         (gtk_tree_view_search_position_func),
9410         (gtk_tree_view_interactive_search),
9411         (gtk_tree_view_search_delete_event),
9412         (gtk_tree_view_search_button_press_event),
9413         (gtk_tree_view_search_key_press_event),
9414         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
9415         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
9416         * gtk/gtktreeview.h:
9417         Add heavily modified patch from Kristian Rietveld to handle
9418         interactive searching.
9419
9420 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
9421
9422         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
9423         string parameter.
9424
9425         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
9426         GtkMenuShell::selection_done, now that we have it, instead of 
9427         ::deactivate so we're not tearing the menu apart and notify
9428         the user prematurely.
9429
9430 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
9431
9432         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
9433         window, clear window->need_default_position to avoid infinite loops.
9434         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
9435
9436 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
9437
9438         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
9439         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
9440         (gtk_tree_view_set_property): don't cast possible NULL objects.
9441         (gtk_tree_view_destroy): reset the model to NULL.
9442
9443         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
9444         parent_class handler.
9445
9446 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9447
9448         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
9449
9450 2001-08-17  Anders Carlsson  <andersca@gnu.org>
9451
9452         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
9453         point numbers so that the result will be floating point.
9454
9455 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9456
9457         * tests/testgtk.c (create_handle_box): 
9458         (create_toolbar): Replace gtk_window_set_policy calls by
9459         gtk_window_set_resizable.
9460
9461 2001-08-16  Jakub Steiner <jimmac@ximian.com>
9462
9463         * gtk/stock-icons/dialog_info.png: new style bulb
9464         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
9465         * gtk/stock-icons/dialog_warning.png: need a hand?
9466         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
9467           the aa border gets chopped off ok
9468         * gtk/stock-icons/stock_colorselector.png: using the new hand
9469         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
9470           this one is for, but the old icon was butt ugly.
9471         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
9472         * gtk/stock-icons/stock*_insert_object.png: "
9473         * gtk/stock-icons/stock_index.png: using new hand icon
9474         * gtk/stock-icons/stock*_new.png: the document template being used 
9475           elsewhere too
9476         * gtk/stock-icons/stock*_print*.png: new print and print preview 
9477           icons (panel/menu)  
9478         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
9479           icons based on Tuomas' floppy image.
9480         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
9481         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
9482         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
9483         * gtk/stock-icons/stock*_undelete.png: "
9484         * gtk/stock-icons/stock_preferences.png: I have a version with a 
9485           document base if the sliders are no good.
9486         * gtk/stock-icons/stock_properties.png: properties 
9487         
9488
9489         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
9490           (tigert@ximian.com) clipboard icons
9491         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
9492         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
9493         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
9494           little bigger IMHO
9495
9496 2001-08-16  Sven Neumann  <sven@gimp.org>
9497
9498         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
9499
9500 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
9501
9502         * gtk/gtkcellrenderertext.c:
9503         Avoid warning when specifying NULL for "attributes" property
9504
9505 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9506
9507         * docs/debugging.txt: Add a warning about --enable-debug=no,
9508         some editorial changes.
9509
9510 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9511
9512         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
9513         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
9514         debugging info, remove unused debug flags. (#58330)
9515
9516 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
9517
9518         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
9519         (gtk_tree_selection_select_all): Remove strict checking for rows.
9520
9521 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9522         
9523         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
9524         Don't remove the tooltip window when the tip text changes. (#15891)
9525
9526 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
9527
9528         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
9529         $(srcdir).
9530
9531 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
9532
9533         * Makefile.am (EXTRA_DIST): Fix problem with trying to
9534         dist files from intl/, which is no longer there.
9535
9536 2001-08-11  Hans Breuer  <hans@breuer.org>
9537
9538         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
9539           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
9540           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
9541           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
9542           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
9543           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
9544
9545         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
9546           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
9547         GDK_TYPE_EVENT signals
9548
9549         * gtk/gtkalignment.c : removed 'direct allocation bug',
9550         which Tim discovered while reading the patch
9551
9552 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
9553
9554         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
9555         compat macros for push/pop/set_visual that were supposed
9556         to be added a long time ago, but got dropped. 
9557
9558 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
9559
9560         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
9561         property notifies.
9562
9563 2001-08-07  Havoc Pennington  <hp@pobox.com>
9564
9565         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
9566
9567         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
9568         some fixage is needed here, but nothing simple. Owen understands
9569         it. ;-)
9570
9571         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
9572         sizing and positioning.  Also, fix bug in compute_geometry_hints
9573         (width/height confusion for setting min size). 
9574         (gtk_window_move): new function
9575         (gtk_window_resize): new function
9576         (gtk_window_get_size): new function
9577         (gtk_window_get_position): new function
9578         (gtk_window_parse_geometry): new function
9579         
9580         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
9581         (gtk_widget_get_size_request): new function
9582         (gtk_widget_get_usize): delete, that was a short-lived function
9583         ;-)
9584         (gtk_widget_set_usize): deprecate
9585         (gtk_widget_set_uposition): deprecate, make it a trivial 
9586         gtk_window_move() wrapper
9587         (gtk_widget_class_init): remove x/y/width/height properties,
9588         add width_request height_request
9589         
9590         * demos/*: update to avoid deprecated functions
9591         
9592         * gtk/gtklayout.c: add x/y child properties
9593
9594         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
9595         uses of "gint16"
9596
9597         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
9598         sizing test
9599
9600         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
9601         configure events on toplevel windows are always in root window
9602         coordinates, following ICCCM spec that all synthetic events 
9603         are in root window coords already, while real events are 
9604         in parent window coords. Previously the code assumed that 
9605         coords of 0,0 were parent window coords, which was 
9606         really broken.
9607   
9608         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
9609         warning
9610  
9611         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
9612         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
9613         hints in gtk_window_parse_geometry()
9614  
9615         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
9616         new USER_POS USER_SIZE hints    
9617
9618 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9619
9620         * tests/prop-editor.c (properties_from_type): Use 
9621         g_object_class_list_properties to get the param specs 
9622         for a given type. (#58609)
9623
9624 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9625
9626         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
9627         free the text_aa parts. (#57549)
9628
9629 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9630
9631         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
9632         not the foreground color. (#57621)
9633
9634 2001-08-09  Alexander Larsson <alexl@redhat.com>
9635
9636         * gdk/win32/gdkfont-win32.c:
9637         Update to the new pango win32 api.
9638
9639 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
9640
9641         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
9642         COMPOUND_TEXT instead of TEXT
9643         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
9644         interpret the return value of g_string_to_compound_text()
9645         (#55152)
9646
9647 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9648
9649         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
9650         fail if iter is NULL. (#58347)
9651
9652 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9653
9654         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
9655         some off-by-one issues, fixing selection of line-ends. (#50323)
9656
9657 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9658
9659         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
9660         functions in order to make mouse operation work again in the
9661         color wheel. (#58604)
9662
9663 2001-08-07  James Henstridge  <james@daa.com.au>
9664
9665         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
9666         the accelerator when the accel object is changed.  Fixes bug
9667         #58628.
9668
9669 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
9670
9671         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
9672         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
9673         (gnome bugzilla #58202)
9674
9675 2001-08-06  Havoc Pennington  <hp@pobox.com>
9676  
9677         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
9678         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
9679         it was expecting a GdkWindow, not a GdkWindowImplX11.
9680  
9681         Also, we were getting the window rect in screen coords 
9682         and the screen rect in window coords then intersecting 
9683         them; instead, get window rect in window coords.
9684  
9685         Finally, there were codepaths that resulted in a stuck server grab
9686         (when the window was fully onscreen, or on gdk_image_new()
9687         failure); make the server ungrab thing a bit more
9688         robust/consistent.
9689
9690 2001-08-06  Sven Neumann  <sven@gimp.org>
9691
9692         * gdk/gdkpango.c (gdk_pango_context_destroy): 
9693         check if info->colormap != NULL before unref'ing it. It might have
9694         been set to NULL using gdk_pango_context_set_colormap().
9695
9696 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
9697
9698         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
9699         Fix conversion from float to int so that we don't get
9700         skew in the int => float => int roundtrip. 
9701         (#58120, reported by Vitaly Tishkov). Also fix problem
9702         where if no alpha was set, the returned alpha
9703         from (say) set_current_alpha() was returned as 1, not 65535.
9704
9705 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
9706
9707         * gtk/gtklist.c (gtk_list_clear_items): Fix
9708         problem with selecting a new focus child.
9709
9710         * gtk/gtklist.c (gtk_list_clear_items): Clear 
9711         list->undo/list_focus_child after unparenting
9712         child, since unparenting the child can result
9713         in list->last_focus_child being set. (#58024)
9714
9715         * Makefile.am (SUBDIRS): Add target specific pc
9716         files to DISTCLEANFILES.
9717
9718         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
9719         (58327, Matthias Clasen)
9720
9721 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
9722
9723         * tests/testgtk.c: Patch from Hans (with various modifications),
9724         to add the ability to use testgtk as a rough-and-ready
9725         benchmark. Try, 'testgtk --bench all:5' (if you want decent
9726         numbers, run without a window manager)
9727
9728 2001-08-04 Alexander Larsson <alexl@redhat.com>
9729
9730         * gdk/win32/gdkinput.c:
9731         Add #ifdef HAVE_WINTAB around wintab.h include.
9732
9733         * gtk/gtk.def:
9734         Removed marshals that have been moved to glib.
9735         Commented out plug and socket. They didn't compile for me 
9736         on win32.
9737
9738 2001-08-04  Hans Breuer  <hans@breuer.org>
9739
9740         * gtk/stocks-icons/makefile.msc : new file
9741         * gtk/makefile.msc.in : use it
9742
9743         * gtk/gtkstyle.c : not all platforms do provide M_PI and
9744         friends, but luckily there is G_PI
9745
9746         * gtk/gtk.def : updated
9747
9748         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
9749         windows WS_POPUP, but only those without a parent. This fixes the 
9750         mis-alignment between the selectable (temp, input only) window and 
9751         the window text of GtkLabel.
9752
9753         (gdk_window_show) : respect private->state when actually showing
9754         the window.
9755
9756         (gdk_window_set_transient_for) : Implementation from Wolfgang 
9757         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
9758         error handling. Should fix #50586.
9759
9760         * gdk/win32/gdkevents-win32.c : beautify log output
9761
9762 2001-08-04  Michael Natterer  <mitch@gimp.org>
9763
9764         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
9765         Need to show the image after adding it to the GtkImageMenuItem.
9766         This used to work without in testgtk because of the
9767         gtk_widget_show_all() at the end of the function.
9768         (Closes #54978).
9769
9770 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
9771
9772         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
9773         (gtk_notebook_set_child_property): fix finding of child's page,
9774         since we have to validly deal with labels and menus here as well.
9775         (gtk_notebook_get_child_property): fix warning.
9776         (gtk_notebook_class_init): property tab_pack is of type
9777         GTK_TYPE_PACK_TYPE (enum) not boolean.
9778         (gtk_notebook_find_child): don't always warn, we might be looking
9779         for a label or menu child.
9780         (gtk_notebook_map): fix mapping of panel.
9781
9782         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
9783         widget's mapped state, regardless of the value being set equals
9784         old settings, since things like REALIZED(parent) or MAPPED(parent)
9785         may have changed since the old value was set. make it an error to
9786         invoke this function on a toplevel widget.
9787
9788 2001-07-31  Darin Adler  <darin@bentspoon.com>
9789
9790         * gdk/gdkprivate.h:
9791         * gdk/x11/gdkx.h:
9792         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
9793
9794         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
9795         GTK_OBJECT.
9796
9797 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
9798
9799         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
9800         scoping error pointed out by matthiasc@poet.de.
9801
9802 2001-07-31  Sven Neumann  <sven@gimp.org>
9803
9804         * demos/gtk-demo/appwindow.c
9805         * demos/gtk-demo/item_factory.c
9806         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
9807
9808 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
9809
9810         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
9811         argument order for g_signal_has_handler_pending.
9812
9813 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
9814
9815         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
9816         instead of long deprecated g_scanner_stat_mode().
9817
9818 2001-07-29  Hans Breuer  <hans@breuer.org>
9819
9820         * gdk/makefile.msc : build in the backend dir after
9821         auto-generating files
9822
9823         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
9824         with code from win32-production-branch.
9825
9826         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
9827         before calling DestroyWindow, which indirectly calls 
9828         gdk_window_destroy_notify ()
9829
9830         (performance patch merged from win32-production-branch)
9831         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
9832         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
9833         R2_COPYPEN rop). It is claimed to be much faster.
9834
9835 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
9836
9837         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
9838         add an "attributes" property to the text renderer for ATK.
9839
9840 2001-07-26  Alex Larsson  <alexl@redhat.com>
9841
9842         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
9843         Initialize image->bits_per_pixel from the drawable, not from
9844         the root window.
9845
9846         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
9847         Fix cast. argument is an IMPL already.
9848
9849 2001-07-15  James Henstridge  <james@daa.com.au>
9850
9851         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
9852         (gtk_window_remove_accel_group): same here.
9853         (gtk_window_key_press_event): same here.
9854
9855         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
9856         (gtk_widget_remove_accelerator): same here.
9857         (gtk_widget_remove_accelerators): same here.
9858
9859         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
9860
9861         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
9862         instead of GtkObject.
9863
9864         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
9865         now takes GObjects.
9866
9867         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
9868         pass a GObject to gtk_accel_group_entries_from_object.
9869         (gtk_item_factory_create_item): s/accel_widget/accel_object/
9870
9871         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
9872
9873         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
9874
9875         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
9876         GObjects can have accelerators set now.  Add compatibility
9877         defines.
9878
9879         * gtk/gtkmarshal.list: add missing marshallers.
9880
9881         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
9882         accelerators on plain GObjects.  gtk_accel_group_object_destroy
9883         has been converted into a weak reference, and
9884         gtk_accel_group_delete_entries is now a destroy notify for that
9885         piece of data.
9886
9887 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
9888
9889         * gdk/gdkdraw.c: Added a check on the colormap depth to
9890         gdk_drawable_set_colormap()
9891         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
9892         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
9893         for pixmaps without visuals (more specifically, bitmaps)
9894         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
9895         doesn't set a colormap with the wrong depth
9896
9897
9898 2001-07-22  Anders Carlsson  <andersca@gnome.org>
9899
9900         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
9901         expander_height and expander_width properties with a single
9902         property, expander_size.
9903         (gtk_tree_view_init): Set the tab_offset to expander_size
9904         plus some padding.
9905         (gtk_tree_view_unrealize): Remove the expand/collapse
9906         timeout if it exists.
9907         (coords_are_over_arrow): Fix a small bug.
9908         (gtk_tree_view_motion_draw_column_motion_arrow): Use
9909         expander_size.
9910         (gtk_tree_view_draw_focus): Use "treeview" instead of
9911         "add-mode" as detail when drawing the focus.
9912         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
9913         instead of "add-mode" as detail when drawing the focus.
9914         (gtk_tree_view_deleted): If we have a node currently being
9915         expanded or collapsed, remove the timeout and set the node 
9916         to NULL.
9917         (gtk_tree_view_queue_draw_arrow): New function that just
9918         redraws the arrow of a node.
9919         (gtk_tree_view_draw_arrow): Use expander_size instead of
9920         expander_width/expander_height, also pass a different
9921         expander_style to gtk_paint_expander depending on the 
9922         state of the node being drawn.
9923         (expand_collapse_timeout): New function for expanding 
9924         or collapsing a node depending on the previous state.
9925         (gtk_tree_view_real_expand_row): Add timeout and set 
9926         correct state for node being expanded.
9927         (gtk_tree_view_real_collapse_row): Add timeout and set
9928         correct state for node being collapsed.
9929
9930         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
9931         information about the node currently being expanded or
9932         collapsed, and also a timeout id.
9933
9934         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
9935         with expander_style for draw_expander.
9936
9937         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
9938         expander_style.
9939         (create_expander_affine): New function for creating an 
9940         expander affine.
9941         (apply_affine_on_point): New function for applying an 
9942         affine to a point.
9943         (gtk_default_draw_expander): Modified to take expander_style
9944         instead of is_open, and to draw the rectangle rotated differently
9945         depending on the expander style.
9946         (gtk_paint_expander): Replace is_open with expander_style.
9947
9948         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
9949
9950         * gtk/gtkenums.h: Add expander style enum.
9951
9952 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
9953
9954         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
9955         value from gtk_tree_model_get_iter, the model might be empty.
9956
9957 2001-07-20  Hans Breuer  <hans@breuer.org>
9958
9959         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
9960         gdk/gdkinput.c like the other backends
9961
9962         * gdk/win32/gdkinput-win32.h :
9963         * gdk/win32/gdkinput.c :
9964         * gdk/win32/gdkvisual-win32.c :
9965         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
9966         GdkVisual GObjectification. UNTESTED for pen-devices because
9967         I simply have none.
9968
9969         * gdk/gdk.def :
9970         * gtk/gtk.def : updated externals
9971
9972         * gtk/gtkiconfactory.c :
9973         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
9974         before passing &error to functions to avoid strange crashes
9975         
9976         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
9977
9978         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
9979
9980         * gtk/makefile.msc.in : updated
9981
9982 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
9983
9984         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
9985         Add property support. (#51858)
9986
9987 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
9988
9989         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
9990         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
9991         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
9992
9993 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
9994
9995         * gtk/gtkcolorsel.c: Add propery support (roughly
9996         based on patch from Lee Mallabone, #51014)
9997
9998         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
9999         deprecated, since we already g_warning() on it.
10000
10001 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
10002
10003         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
10004         typo that sometimes caused selection not to work properly.
10005
10006         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
10007         entry when tabbing in. (#57743)
10008         
10009         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
10010         user drags up above or down below the entry, move
10011         to the end or the beginning of the entry. (Suggestion
10012         from Jay Cox, #50940)
10013
10014         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
10015         a current selection, then when moving by chars or
10016         words, move to the end of the selection rather than
10017         from entry->current_pos. (Suggestion from Jay Cox,
10018         #50942)
10019         
10020 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
10021
10022         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
10023         set window->decorated. (Patch from Hidetoshi Tajima,
10024         #55846)
10025
10026 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
10027
10028         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
10029         the widget/child realization/mapping invariants.
10030
10031         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
10032         gtk_widget_[get/set]_child_visible() to control
10033         whether visible children of a mapped window are
10034         mapped.
10035
10036         * docs/widget_system.txt: Updated for changes in
10037         container contract, and addition of GTK_CHILD_VISIBLE.
10038
10039         * gtk/gtkcontainer.c: Add generic map()/unmap()
10040         functions that work for almost all containers.
10041
10042         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
10043         gtk_widget_set_child_visible() where necessary.
10044
10045         * gtk/*.c: Remove excess map(), unmap(), and 
10046         realization/mapping invariant enforcing code
10047         from many containers.
10048
10049 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
10050
10051         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
10052         Get the foreground color from 'text', nor 'fg'. (#57568)
10053
10054 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
10055
10056         * gtk/*.c: Patch from Matthias Clasen to remove remove
10057         all instances of g_return_if_fail (foo != NULL); that are
10058         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
10059         since the second check catches the NULL anyways.
10060
10061 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
10062
10063         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
10064         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
10065         GDK_THREADS_ENTER()/LEAVE() pairs.
10066
10067         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
10068         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
10069         pairs. (Problem found by M. Meeks)
10070
10071 2001-07-18  Darin Adler  <darin@bentspoon.com>
10072
10073         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
10074         that we don't get a g_warning message every time we register a new
10075         icon size.
10076
10077         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
10078         using pixel variable of the correct type.
10079         
10080 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
10081
10082         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
10083         so that using X functions on a GdkWindow is possible, if
10084         a little hairy.
10085
10086         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
10087         and ts_origin of a GC, so that external parties can offset/restore
10088         a GC, when using gdk_window_get_internal_paint_info().
10089
10090 2001-07-17  Darin Adler  <darin@bentspoon.com>
10091
10092         * .cvsignore: Ignore the sgml directory made by gtkdoc.
10093         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
10094         instead of the deprecated gtk_window_set_policy.
10095         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
10096         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
10097         function to get rid of warning and some code too.
10098         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
10099         missing const.
10100         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
10101         unused local.
10102         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
10103         const.
10104         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
10105         (gdk_utf8_to_compound_text): Add missing const.
10106         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
10107         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
10108         cast and get rid of an unnecessary one.
10109         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
10110         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
10111         local.
10112         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
10113         Remove unused local.
10114         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
10115         missing const.
10116         * tests/testsocket.c: (add_child): Add cast so the printf format
10117         doesn't make us implicitly depend on what integer type
10118         gtk_socket_get_id returns.
10119         * tests/testtextbuffer.c: Add missing const.
10120         * tests/testtreefocus.c: (main): Remove unused local.
10121         * tests/treestoretest.c: (iter_remove): Remove unused local.
10122         (uppercase_value): Remove unused function.
10123         (make_window): Add statement to quiet the compiler's uninitialized
10124         variable warning.
10125
10126 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
10127
10128         * gtk/gtkrange.c:
10129         (second_timeout): 
10130         (initial_timeout): 
10131         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
10132         (gtk_range_calc_layout): compute the new layout based on an
10133         adjustment->value being passed in as argument.
10134         (gtk_range_button_press): for button2 slider warps, first recalc
10135         the layout, then adjust the value. also, use update_slider_position()
10136         for adjusting the value, so we keep pixel quantisation at which we
10137         usually operate (upon motion or button releases). the reason for this
10138         is that, we can't change the adjustment upon button2 presses to a non
10139         quantised value and upon button2 release re-quantise the value since
10140         that'd alter the value even if we didn't get any motion events (causing
10141         unexpected scroll area warps upon release and/or slider pixel-jitter).
10142         (gtk_range_motion_notify): update the slider position from queried
10143         coordinates, not event coordinates.
10144
10145 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
10146
10147         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
10148         the default gc values are: width=0, CapBut, JoinMiter.
10149
10150 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
10151
10152         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
10153         into account the xpad and ypad when calculating the width and the
10154         height of the pixbuf cel.
10155
10156 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
10157
10158         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
10159         Rename to gtk_radio_menu_item_get_group(), add deprecated
10160         alias. (#57044)
10161
10162         * gtk/gtkfilesel.c: Indentation fix.
10163
10164 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
10165
10166         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
10167         Hasselmann to fix warnings in compat macros. 
10168         (#56773)
10169
10170         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
10171         stupid wrong cast added in last patch.
10172
10173 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
10174
10175         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
10176         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
10177
10178 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
10179
10180         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
10181         missing cast.
10182
10183         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
10184         NULL/FALSE return value confusion.
10185
10186         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
10187         problem when scrollbar completely fills range. (Patch
10188         from  Matthias Clasen, #57047)
10189
10190 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
10191
10192         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
10193         clean up when handling events for move-resize emulation.
10194         (Problem traced down by Matthias Clasen, #57271)
10195
10196 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
10197
10198         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
10199           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
10200           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
10201           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
10202           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
10203           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
10204           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
10205         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
10206
10207 2001-07-09  Peter Williams  <peterw@ximian.com>
10208
10209         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
10210         for when srcdir != builddir
10211
10212 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
10213
10214         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
10215         gtk_tree_model_get_iter_root.
10216
10217         * gtk/gtkliststore.c: Add a bunch of g_return statements.
10218         (gtk_list_store_iter_n_children): Fix up.
10219
10220         * gtk/gtktreestore.c: Add a bunch of g_return statements.
10221
10222 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
10223
10224         * gtk/gtkwidget.c (gtk_widget_class_init):
10225         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
10226         restore some workingness.
10227
10228         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
10229         handle of window type for input-only windows.
10230
10231 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
10232
10233         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
10234         Patch from Gregory Merchan to add 
10235         gtk_button_box_set_secondary(), which separates
10236         the child into a separate group from the normal
10237         buttons. (#56331)
10238
10239         * gtk/gtkdialog.c: Make help buttons secondary by
10240         default.
10241
10242         * gtk/gtkbbox.c: Added a child property "secondary".
10243
10244         * gtk/testgtk.c: Turn on the help button for the 
10245         color selector to check that it properly appears
10246         as secondary.
10247
10248 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
10249  
10250         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
10251         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
10252         Add gdk_set_pointer_hooks() to allow pointer-querying to
10253         be hooked by an event record/playback system like GERD.
10254         (#56914)
10255         
10256 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
10257
10258         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
10259         in the right value of initial_emission to
10260         gtk_widget_set_style_internal (#57091)
10261
10262 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
10263
10264         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
10265         Make compile.
10266
10267         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
10268         with calling gtk_widget_set_style_internal() with
10269         the old style, not the new style. (#56989)
10270
10271 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
10272
10273         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
10274           gtk/gtkwidget.c:
10275         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
10276         not GTK_WIDGET_GET_ANCESTOR ... see 
10277         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
10278         Indicate the best practice in the docs for gtk_widget_get_toplevel().
10279
10280         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
10281         so GtkPlug can give the correct signals when transforming
10282         from a child to a toplevel.
10283         
10284         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
10285         reparentation correctly.
10286
10287         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
10288         Propagate the previous_toplevel argument down properly.
10289
10290         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
10291         of wrong atr list.
10292
10293         * gtk/gtkplug.[ch]: Add an "embedded" signal.
10294
10295         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
10296         signals.
10297
10298         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
10299         functions gtk_plug_get_id(), gtk_socket_get_id(),
10300         to avoid the user having to worry about realization,
10301         and gdkx.h.
10302
10303         * tests/testsocket.c: Extend to try out the new signals
10304         and gtk_plug/socket_get_id().
10305
10306         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
10307         setting of underline attributes.
10308
10309         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
10310         DestroyNotify events from SubstructureNotifyMask
10311
10312         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
10313         Switch GDK_WINDOW_TYPE (window) as needed.
10314
10315         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
10316         allow creation of toplevel windows as children of
10317         foreign windows.
10318
10319         * gtk/gtkplug.c: Remove hacks involving changing private
10320         fields of GdkWindow.
10321
10322         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
10323         exactly the same signals and notification
10324         be emitted for local embedding as for inter-process
10325         embedding.
10326
10327 2001-07-04  James Henstridge  <james@daa.com.au>
10328
10329         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
10330
10331 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
10332
10333         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
10334         XEMBED embedding add a _XEMBED_INFO property to the
10335         client with version number and a "mapped" flags.
10336         Use the mapped flag instead of the racy MapRequestEvent
10337
10338         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
10339         code to reliably set things (when the child is a passive
10340         embedder participating in the XEMBED protocol) intead
10341         of just being a hack for embedding non-participating
10342         programs. Fix various bugs and race conditions.
10343         
10344         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
10345         work by simply making the GtkSocket the gtk parent
10346         of the GtkPlug. Set a flag in this case and make
10347         the GtkPlug work like a normal container by overriding
10348         methods such as check_resize and "chaining past" GtkWindow
10349         to GtkBin.
10350
10351         * gtk/gtkentry.c (gtk_entry_real_activate)
10352           gtk/gtkmain.c (gtk_propagate_event): 
10353         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
10354         
10355         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
10356         gtk_widget_get_ancestor):
10357         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
10358         might not give the expected result and recommend
10359         an alternative.
10360
10361         * tests/testsocket.c tests/testsocket_child.c
10362         tests/testsocket_common.c tests/Makefile.am: Extended
10363         to test different type of adding plugs to sockets
10364         (local,active,passive), and to test mapping/unmapping
10365         the plug.
10366
10367         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
10368         mark the window as destroyed until after we
10369         called _gdk_windowing_window_destroy().
10370         (_gdk_windowing_window_destroy() may use GDK functions
10371         on the window.)
10372
10373         * gdk/x11/gdkinput.c: Remove the check for finalization - 
10374         devices can be finalized under some circumnstances.
10375  
10376         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
10377         small problem with GDK_TYPE_DEVICE.
10378  
10379 2001-07-02  Havoc Pennington  <hp@pobox.com>
10380
10381         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
10382         use constants not atoms.
10383
10384 2001-07-02  James Henstridge  <james@daa.com.au>
10385
10386         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
10387         PANGO_TYPE_TAB_ARRAY.
10388
10389         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
10390         for PANGO_TYPE_TAB_ARRAY.
10391
10392         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
10393         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
10394
10395         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
10396         the file.  Remove Pango types from defs -- they are now defined in
10397         libpango.
10398
10399 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
10400
10401         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
10402
10403         * gtk/gtkobject.c (gtk_object_destroy): invoke
10404         g_object_run_dispose().
10405
10406         * gtk/gtkwindow.c: 
10407         * gtk/gtkwidget.c: 
10408         * gtk/gtkobject.c:
10409         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
10410         method.
10411
10412 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
10413
10414         * gtk/gtktypeutils.c (gtk_type_class): Remove
10415         change check for GTK_TYPE_OBJECT derivation to
10416         G_TYPE_OBJECTS - it's Tim-approved to use this 
10417         for arbitary objects.
10418
10419         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
10420         prefix gtk_container_dequeue_resize_handler().
10421
10422         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
10423         to the hierarachy_changed signal, since you otherwise
10424         have to always keep that around.
10425
10426         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
10427         for extra argument to hierarchy_changed.
10428
10429 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
10430
10431         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
10432         for style to mean "revert to default style"
10433
10434         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
10435           gtk_widget_restore_default_style): Make this functions
10436         deprecated aliases for gtk_widget_set_style (widget, NULL).
10437
10438         * gtk/gtkwidget.[ch]: Remove:
10439            gtk_widget_set_default_style ()
10440            gtk_widget_push_style ()
10441            gtk_widget_pop_style ()
10442         These functions interact are overriden by RC files, and
10443         thus virtually useless, and complicated.
10444
10445 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
10446
10447         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
10448         most of the previous global variables in gtkrc.c. This is
10449         in preparation for multi-head, since each screen can
10450         have different GtkSettings and RC information.
10451
10452         * gtk/gtkrc.[ch]: 
10453
10454         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
10455         GtkSettings parameter to GtkRcStyle::parse.
10456
10457         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
10458         Add two new settings gtk-theme-name, gtk-key-theme-name,
10459         for RC files that are loaded by name after reading
10460         the default RC files.
10461         
10462         * gtk/gtkrc.c: Allow priorities for styles, as wll as
10463         bindings.
10464
10465         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
10466         and use it by default for RC files loaded via 
10467         gtk-theme-name, gtk-key-theme-name.
10468
10469         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
10470         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
10471         tests/testgtkrc: Require pathnames to be absolute.
10472
10473         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
10474         the source when parsing, since the operation of looking up a
10475         pixmap from an RC file depends on the parsing context.
10476
10477         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
10478         reset RC styles on all widgets when files are reparsed.
10479
10480         * tests/testgtk.c (create_rc_file) 
10481           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
10482         Simplify, now that gtk_rc_reparse_all() resets styles on
10483         all widgets itself.
10484
10485         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
10486         return value.
10487
10488         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
10489         GtkSettings argument.
10490
10491         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
10492         gtk_settings_get_global().
10493
10494         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
10495         to get the appropriate GtkSettings for a widget. (For now,
10496         just gets the default GtkSetttings.) 
10497
10498         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
10499           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
10500         changes.
10501
10502         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
10503         getting a style for a path without actually having a widget.
10504         (Allows using a style for a subpart of a widget, for
10505         example.)
10506
10507         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
10508         the RC files to be reloaded for just one GtkSettings
10509         (not sure how useful this really is.)
10510
10511         * gtk/gtkrc.h: Deprecate
10512         gtk_rc_add_widget_name/widget_class/class_style
10513
10514 2001-06-30  Alex Larsson  <alexl@redhat.com>
10515
10516         * gdk/linux-fb/gdkinput-none.c:
10517         * gdk/linux-fb/gdkinput.c:
10518         * gdk/linux-fb/gdkinputprivate.h:
10519         Convert GdkDevice to a GObject.
10520
10521         * linux-fb/gdkprivate-fb.h:
10522         * linux-fb/gdkvisual-fb.c:
10523         Convert GdkVisual to a GObject.
10524
10525 2001-06-29  Alex Larsson  <alexl@redhat.com>
10526
10527         * gdk/gdkvisual.h:
10528         * gdk/gdkcolor.c:
10529         * gdk/x11/gdkx.h:
10530         * gdk/x11/gdkvisual-x11.c:
10531         Convert GdkVisual to a GObject.
10532
10533         * gdk/gdkinput.h:
10534         * gdk/gdkevents.c:
10535         * gdk/x11/gdkinputprivate.h:
10536         * gdk/x11/gdkinput-gxi.c:
10537         * gdk/x11/gdkinput-none.c:
10538         * gdk/x11/gdkinput-x11.c:
10539         * gdk/x11/gdkinput-xfree.c:
10540         * gdk/x11/gdkinput.c:
10541         Convert GdkDevice to a GObject.
10542
10543 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
10544
10545         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
10546         to just plain new, fixing the number of columns, and column types
10547         at creation time.
10548
10549         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
10550
10551         * gtk/gtkcellrenderertext.c
10552         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
10553         height to a specific font.
10554
10555         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
10556
10557         * tests/*c: change to work with new store models.
10558
10559 2001-06-29  Havoc Pennington  <hp@redhat.com>
10560
10561        * Throughout: fixes to compile with G_DISABLE_COMPAT
10562         (s/g_signal_connectc/g_signal_connect/,
10563         s/g_signal_newc/g_signal_new/,
10564         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
10565
10566 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
10567
10568         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
10569         add path argument to selection callbacks.
10570
10571 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
10572
10573         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
10574         walk through a model in a depth first manner, with the option to
10575         break out.
10576
10577 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
10578
10579         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
10580         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
10581         column and follow it when draged, rather than a location in the
10582         view. "expander_column" property and drawing functions changed
10583         accordingly.  Fixes bug #55942.
10584
10585         (gtk_tree_view_{set,get}_expander_column): Now works with a
10586         GtkTreeViewColumn* instead of int.
10587
10588 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
10589
10590         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
10591
10592 2001-06-28  Havoc Pennington  <hp@pobox.com>
10593
10594         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
10595         image data to the screen, using a server grab to avoid race
10596         conditions.
10597
10598         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
10599         check for NULL return from gtk_image_new_from_stock(), it never
10600         returns NULL.
10601         (gtk_item_factory_create_item): fix bug where we parsed the stock
10602         ID as an inline pixbuf
10603
10604         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
10605
10606         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
10607         support (should be using binding set here)
10608
10609         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
10610         support (should be using binding set here)
10611
10612         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
10613         support
10614
10615         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
10616
10617         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
10618
10619         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
10620
10621         * gtk/gtkimcontextsimple.c
10622         (gtk_im_context_simple_filter_keypress): keypad
10623
10624         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
10625
10626         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
10627
10628         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
10629
10630         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
10631         should be binding-setted)
10632
10633         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
10634
10635         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
10636
10637         * gtk/gtkcalendar.c: numeric keypad fixes
10638
10639         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
10640         support
10641
10642         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
10643         screwup
10644
10645         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
10646         clip the render area to the drawable's clip region in advance,
10647         so we don't get data from the server that we don't need.
10648
10649         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
10650         check return value of gdk_pixbuf_get_from_drawable(), fall back 
10651         to bilevel alpha if we can't get the pixbuf to composite against.
10652
10653         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
10654
10655         * gdk/gdkimage.c (gdk_image_get_colormap): add
10656         gdk_image_set_colormap, gdk_image_get_colormap
10657
10658         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
10659         take a region of the image, instead of converting the entire
10660         image.
10661
10662         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
10663         keybinding signal. Add default bindings for it. Add default
10664         handler for show_help that shows the tooltip for the widget.
10665
10666         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
10667         "close" keybinding signal, remove key press handler.
10668
10669         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
10670         it's not our usual practice to leave a deprecated function around
10671         with a runtime warning, plus we don't want it to appear in docs,
10672         plus if we make them yellow no one will want to change them
10673         anyhow.
10674
10675 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
10676
10677         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
10678         GTK_WIDGET_REALIZE() for resize queueing.
10679
10680         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
10681         GTK_WIDGET_REALIZE() for post event delivery destruction upon
10682         GDK_DESTROY.
10683         
10684         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
10685         sompensate for former (pre-2.0) connect_after() facility.
10686         (gtk_widget_send_expose): 
10687         (gtk_widget_event): assert the widget is realized, since event delivery
10688         to non-realized widgets is essentially a bug. event handlers should
10689         be able to unconditionally rely on widget->window (unless they
10690         emit events on their own which can trigger widget destruction).
10691         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
10692         logic. event delivery happens as follows:
10693         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
10694         b) if !was_handled in (a) and the widget is still realized, emit event-
10695            specific signal (RUN_LAST handler). returns was_handled.
10696         c) emission of GtkWidget::event-after for notification if the widget is
10697            still realized (regardless of was_handled from previous stages, no
10698            class handler). no return value.
10699         d) was_handled gets passed on to caller, to determine further
10700            propagation. if the widget got unrealized meanwhile, was_handled
10701            is returned as TRUE.
10702
10703         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
10704         gdk_event_get_coords().
10705
10706 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
10707
10708         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
10709         age 0, binary age 0. depend on glib 1.3.7.
10710
10711         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
10712
10713         * gtk/gtkmenubar.c: same here.
10714         
10715         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
10716
10717         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
10718
10719         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
10720         
10721         * gtk/gtkmenubar.c (add_to_window): likewise.
10722         
10723         * gtk/gtktextbtree.c: and here...
10724         
10725         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
10726         
10727         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
10728         
10729         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
10730         
10731         * gtk/gtktreeviewcolumn.c:
10732         (_gtk_tree_view_column_set_tree_view): yet again.
10733
10734         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
10735         signal connections without g_signal_connect_data().
10736         
10737         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
10738         demo of the matter.
10739         
10740         * demos/testpixbuf.c (main): running out of equality phrases for the
10741         ChangeLog, but had to adapt connections here as well.
10742         
10743         * demos/testanimation.c (progressive_timeout): and for the fun of it,
10744         tackled this the same way.
10745         
10746         * tests/testtext.c (create_view): ok, it's becoming a pain at this
10747         point, but had enough enery for one more fix.
10748
10749         * tests/testtreecolumns.c (main): stand up man, do your work!
10750
10751         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
10752         fix, either that's been all of it or CVS gtk is broken yet again.
10753         
10754 2001-06-29  James Henstridge  <james@daa.com.au>
10755
10756         The following changes correspond to bug #56812
10757
10758         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
10759         code for GdkDevice.
10760
10761         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
10762         GdkCursor.
10763
10764 2001-06-19  Havoc Pennington  <hp@pobox.com>
10765
10766         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
10767         for mapping a window without fooling with stacking order, but
10768         updating the "withdrawn" flag
10769
10770         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
10771         filtering as soon as possible, moving move resize and wmspec_check
10772         handling after the event filter.  Make default filter apply to all
10773         events, not just those with no GdkWindow wrapped around the X
10774         window. Fix a FIXME about how the window could be a pixmap using 
10775         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
10776
10777         Also, be robust against events not on a known GdkWindow.
10778
10779         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
10780         gdk_x11_ungrab_server): export reference-counted server grabs, so
10781         other people can grab server over a GDK function that also does
10782         so.
10783
10784 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
10785
10786         * gtk/gtktreeviewcolumn.c
10787         (gtk_tree_view_column_pack_start_cell_renderer): New function to
10788         reflect that you can (hypothetically) pack cell renderers into a
10789         column.
10790         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
10791         (gtk_tree_view_column_cell_is_visible): Move more functionality to
10792         the column.
10793         (gtk_tree_view_column_cell_can_focus): Move more functionality to
10794         the column.
10795
10796         * gtk/gtktreeview.c: Move to use new column-packing code.
10797         (gtk_tree_view_real_expand_row): remove totally braindead code.
10798         (gtk_tree_view_real_collapse_row): ditto.
10799
10800 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
10801
10802         * gtk/gtktreeviewcolumn.c: Fix a typo.
10803         
10804 2001-06-26  Joel Becker  <jlbec@evilplan.org>
10805
10806         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
10807           at the end of the file
10808
10809 2001-06-26  Havoc Pennington  <hp@redhat.com>
10810
10811         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
10812
10813 2001-06-26  Havoc Pennington  <hp@redhat.com>
10814
10815         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
10816         property
10817
10818 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
10819
10820         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
10821         stupid missing statement
10822
10823         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
10824         private function for ATK.  It notifies you of how many _visible_
10825         children are deleted when a node is deleted.  Should be used by
10826         atk only.
10827
10828 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
10829
10830         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
10831         Use new pango_context_get_metrics() to fix problems
10832         with font lists in descriptions. (#56184, reported by
10833         Jonas Borgström)
10834
10835 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
10836
10837         * gtk/gtkiconfactory.c:
10838         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
10839         item factory so inlined pixbufs actually work.
10840
10841 2001-06-25  Havoc Pennington  <hp@redhat.com>
10842
10843         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
10844         s/RESIZEABLE/RESIZABLE/
10845
10846         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
10847
10848 2001-06-25  Alexander Larsson  <alexl@redhat.com>
10849
10850         * configure.in:
10851         Added --enable-fbmanager. This is some experimental code
10852         that lets several GtkFB apps coordinate their access to the
10853         framebuffer.
10854         
10855         * acconfig.h:
10856         Added ENABLE_FB_MANAGER.
10857
10858         * gdk/linux-fb/Makefile.am:
10859         Added gdkfbmanager and gdkfbswitch.
10860
10861         * gdk/linux-fb/gdkkeyboard-fb.c:
10862         * gdk/linux-fb/gdkmouse-fb.c:
10863         * gdk/linux-fb/gdkprivate-fb.h:
10864         Split device init and open so that
10865         they can be opened and closed while switched
10866         away.
10867
10868         * gdk/linux-fb/gdkmain-fb.c:
10869         Add the basic manager communication.
10870
10871         * gdk/linux-fb/gdkrender-fb.c:
10872         Don't update to the shadow fb if we're
10873         blocked by the fb manager.
10874
10875 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
10876
10877         * docs/Changes-2.0.txt: Add note about child property
10878         changes.
10879
10880 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
10881
10882         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
10883         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
10884
10885         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
10886         with un'reffing wrong list reported by Jeff Franks.
10887
10888         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
10889
10890         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
10891         for the default icon. Remove inline XPM.
10892
10893         * gtk/gtkstock.h gtk/gtkiconfactory.c:
10894         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
10895         is used for GTK_STOCK_DND, but it is a bit too small.)
10896
10897         * gtk/stock-icons/stock_dnd_multiple.png
10898         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
10899
10900         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
10901         TRUE when starting a drag. In other cases, we are
10902         just observing. (#52995)
10903
10904         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
10905         function to set the icon for a drag from a GdkPixbuf
10906         or stock ID.
10907
10908         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
10909         Likewise, for drag sources.
10910
10911         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
10912         (Now should be done using the stock system.)
10913
10914 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
10915
10916         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
10917         Removed - didn't work and not particularly useful anyways
10918         if it did. 
10919
10920 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
10921
10922         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
10923         introduced last night that was making things decidedly not work.
10924
10925         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
10926         so that we have getter/setter pairing everywhere it makes
10927         sense. (#55767)
10928
10929         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
10930         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
10931         deprecated compat macro. (#55516)
10932
10933         * gtk/gtklabel.[ch]: Add functions
10934         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
10935         gtk_label_set_label(), which mirror the property API for GtkLabel.
10936         Make gtk_label_get_attributes() only reflect the attributes
10937         set by gtk_label_set_attributes.
10938
10939         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
10940         from gtk_notebook_set_page().
10941
10942 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
10943
10944         * configure.in: Fix tests for XShm.h.
10945
10946         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
10947         gdk_image_new() by use of goto, properly use g_object_unref().
10948
10949 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
10950
10951         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
10952         calls, as GdkImage is an object. these should be g_obejct_unref()
10953         instead but that won't work because of the g_error() statement
10954         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
10955         to spot these places.
10956
10957 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
10958
10959         * modules/input/gtkimcontextxim.c: Fixup some problems with 
10960         text length handling in error cases.
10961
10962         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
10963         a bit to make test actually warn on attempt to allocation
10964         a negative size. (#56101, Matthias Clasen)
10965
10966 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
10967
10968         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
10969         noticed by Brian Cameron.
10970         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
10971         Cameron.
10972
10973 2001-06-22  Hans Breuer  <hans@breuer.org>
10974
10975         * gdk/gdk.def : updated externals
10976
10977         * gdk/win32/gdkdrawable-win32.c : corrected some casts
10978         in GDK_NOTEs
10979
10980         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
10981         to translate coordinates to the internal > 16 bit system
10982         Try to handle WM_WINDOWPOSCHANGED to get better performance for
10983         when moving/resizing
10984
10985         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
10986         and gdk_keymap_get_direction (). The latter is untested for
10987         the RTL case
10988
10989         * gtk/gtk.def : updated externals
10990
10991         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
10992         from pango_language_from_string (), not an already freed pointer
10993
10994         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
10995         binary (-kb) to be useable on windoze
10996  
10997 2001-06-21  Alexander Larsson  <alexl@redhat.com>
10998
10999         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
11000         Update to new PangoLanguage changes.
11001         
11002         * gtk/gtkwindow-decorate.c:
11003         * gtk/gtkwindow.[ch]:
11004         Added setting argument to gtk_window_set_has_frame ()
11005         
11006 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
11007
11008         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
11009         the case without XKB properly.
11010
11011         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
11012         unused gtk_rc_auto_parse variable.
11013
11014         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
11015         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
11016         longer needed with GdkPixbuf.
11017
11018         * gtk/gtkrc.c (_gtk_rc_init): Make private.
11019
11020 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
11021
11022         * gtk/gtkentry.h: Mark deprecated functions with
11023         GTK_DISABLE_DEPRECATED.
11024
11025 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
11026
11027         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
11028
11029         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
11030
11031         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
11032           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
11033           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
11034           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
11035           to recent changes in Pango.
11036
11037         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
11038           to test whether the basic engine honors them.
11039
11040 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
11041
11042         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
11043         gtk_container_child_get_property().
11044
11045 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
11046
11047         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
11048         (gtk_tree_view_move_cursor_page_up_down): implement.
11049
11050 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
11051
11052         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
11053         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
11054         don't use automatic fixed size buffer for printf-ing floats, doubles
11055         can expand to really _huge_ strings, use g_strdup_printf() instead.
11056
11057 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
11058
11059         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
11060         construct property in 1.2 and still needs to be.
11061
11062         * gtk/gtkwidget.c: "composite_child" is not a settable property.
11063
11064 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
11065
11066         * gtk/gtkliststore.c (gtk_list_store_clear): 
11067         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
11068         clear a model.
11069
11070 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
11071
11072         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
11073
11074         * gtk/Makefile.am:
11075         * gtk/gtk.h: disabled GtkPacker compilation.
11076
11077         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
11078
11079         * gtk/gtknotebook.c:
11080         * gtk/gtktable.c:
11081         * gtk/gtkbox.c: ported this over to child properties.
11082
11083         * gtk/gtksettings.c: fetch class properties via
11084         g_object_class_list_properties().
11085
11086         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
11087         child arg interface. use gobjectnotifyqueue.c for child property
11088         notification.
11089
11090         * gtk/gtkwidget.[hc]: provide necessary means for container child
11091         properties, i.e. ::child_notify signal,
11092         gtk_widget_freeze_child_notify(),
11093         gtk_widget_child_notify(),
11094         gtk_widget_thaw_child_notify().
11095
11096         * tests/testgtk.c: removed inferior property handling code, for
11097         property editing, a generic module should be used, and GLE
11098         coincidentally fullfills that purpose.
11099
11100         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
11101         needs to be adapted to g_object_class_list_properties() before this
11102         builds again.
11103
11104 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
11105
11106         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
11107         test if a node is expanded.
11108
11109 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
11110
11111         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
11112         where collapsing a selected row would result in the cursor/anchor
11113         getting screwed up.
11114
11115 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
11116
11117         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
11118         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
11119         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
11120         Now I can really reorder/sort all Store widgets.  treesorttest
11121         seems to just work now.
11122         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
11123         testtreesort worked through a big coincidence all this time.
11124         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
11125         code.
11126         * tests/testtreecolumns.c: Big 'ol warning at the top letting
11127         people know that this code should never ever ever be copied.
11128
11129 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
11130
11131         * gtk/gtkwindow.h: Fixed a small typo, it should be
11132         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
11133         on line 134.
11134
11135 2001-06-14  Havoc Pennington  <hp@redhat.com>
11136
11137         Docs fixups, and:
11138         
11139         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
11140         GTK_DISABLE_DEPRECATED
11141
11142 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
11143
11144         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
11145         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
11146         finish it off tonight, though it basically works now when it's a
11147         list.  Also, I have a sinking feeling neither GtkTreeStore or
11148         GtkListStore actually resort when adding a new item.  I'll look
11149         into it.
11150
11151 2001-06-14  Havoc Pennington  <hp@redhat.com>
11152
11153         * demos/gtk-demo/main.c (load_file): fix bug identified by
11154         warnings I just added to gtktextbuffer
11155
11156 2001-06-14  Havoc Pennington  <hp@redhat.com>
11157
11158         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
11159
11160         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
11161
11162         * gtk/gtktextbtree.c: don't leak node data all over the place.
11163
11164         * demos/gtk-demo/main.c (main): create fontify tags for the right
11165         buffer
11166
11167         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
11168         to mention tags in the same table can't have the same name,
11169         suggested by Skip Montanaro
11170
11171 2001-06-11  Havoc Pennington  <hp@redhat.com>
11172
11173         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
11174         for trying to add two tags with same name to the tag table
11175
11176         * demos/gtk-demo/main.c (main): fix colors ;-)
11177
11178 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
11179
11180         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
11181         that allows grouping together multiple windows so that grabs
11182         within that set of windows only affect those windows.
11183
11184         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
11185         signal for notification when a widget becomes shadowed
11186         by a grab or is no longer shadowed by a grab.
11187
11188         * gtk/gtkwidget.c (gtk_widget_propagate_state)
11189           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
11190         insenstive widgets to maintain a grab.
11191
11192 2001-06-14  Alexander Larsson  <alexl@redhat.com>
11193
11194         * docs/README.linux-fb:
11195         Add some example config files that can be used with the URW fonts.
11196         
11197         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
11198         Set up the color ramps for DirectColor mode.
11199
11200 2001-06-11  Havoc Pennington  <hp@redhat.com>
11201
11202         * Release 1.3.6
11203          
11204 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
11205
11206         * gdk/linux-fb/gdkwindow-fb.c:
11207         Unify shaped window code and make it repaint the area that used
11208         to be part of the shape, but isn't anymore.
11209
11210 2001-06-11  Havoc Pennington  <hp@redhat.com>
11211
11212         * NEWS: Updates
11213
11214         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
11215
11216         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
11217         
11218 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
11219
11220         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
11221         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
11222         passes zero instead, so do we.
11223         
11224 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
11225
11226         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
11227         Deep copy dash_list too.
11228         (_gdk_fb_gc_new): Set default cap_style before
11229         setting values.
11230
11231 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
11232
11233         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
11234         gdk_keymap_get_direction): New functions.
11235
11236 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
11237
11238         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
11239         gtk_tree_model_get_flags by adding a second flag for atk.
11240
11241         * gtk/gtktreemodel.c: make cursor behavior interact better with
11242         mouse presses.
11243
11244 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
11245
11246         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
11247         expand_row/collapse_row to be 2 signals each -- test_expand_row
11248         and row_expanded as well as test_collapse_row and row_collapsed.
11249
11250 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
11251
11252         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
11253         signal name to be changed instead of selection_changed.
11254
11255 2001-06-08  Havoc Pennington  <hp@redhat.com>
11256
11257         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
11258         "scroll_offset" property for notification when the layout offsets
11259         may have changed
11260         (gtk_entry_adjust_scroll): add notify for scroll_offset
11261         (gtk_entry_layout_index_to_text_index): function to compensate for
11262         preedit string when doing coordinate stuff on the entry's layout
11263         (gtk_entry_text_index_to_layout_index): inverse function
11264         (gtk_entry_get_layout_offsets): hook to get current position of
11265         the layout      
11266         (gtk_entry_get_layout): hook to get the layout itself.
11267
11268         * gtk/gtklabel.c (gtk_label_get_layout): new function
11269
11270 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
11271
11272         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
11273         keybinding.
11274         (gtk_tree_view_focus): Fix merge conflict.
11275
11276 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
11277
11278         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
11279         clean up cursor handling.
11280
11281 2001-06-08  Havoc Pennington  <hp@redhat.com>
11282
11283         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
11284         function
11285
11286         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
11287         this function
11288
11289 2001-06-08  Alex Larsson  <alexl@redhat.com>
11290
11291         * gtk/gtkcompat.h.in:
11292         Added compat macros for all old GTK_TYPE_GDK_xxx types.
11293         Fixes bug #52892
11294
11295 2001-06-08  Havoc Pennington  <hp@redhat.com>
11296         
11297         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
11298         parent still
11299
11300 2001-06-08  Havoc Pennington  <hp@redhat.com>
11301
11302         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
11303         don't call g_list funcs on GSList
11304
11305         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
11306         gtk_container_focus(), since some widgets have focusable locations
11307         which are not other widgets. These widgets should not have to be 
11308         containers just to manage the focus. For example, GtkHSV is
11309         currently a container for no good reason. Also, this cleans
11310         up the "if (is_container && is_sensitive && is_drawable)
11311         container_focus ()" mess in widget implementations.
11312
11313         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
11314         function, and have it just call gtk_widget_child_focus().
11315
11316         * gtk/gtkhsv.c: derive from widget not container
11317         
11318         Throughout: fix to reflect GtkContainer::focus change
11319         
11320 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
11321
11322         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
11323         range.  Fix bug #55921
11324
11325         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
11326         (#55920).
11327
11328 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
11329
11330         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
11331         and gdk_keymap_get_current_direction().
11332
11333         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
11334           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
11335         the current locked group, use it to set the keymap
11336         direction.
11337
11338         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
11339         to determine whether we draw a split cursor or use
11340         a jumping cursor based on the current direction.
11341
11342         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
11343         Obey the split cursor setting. 
11344
11345 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
11346
11347         * gtk/gtkimmulticontext.c (activate_cb): Only activate
11348         when toggling on, not when toggling off... (#55906)
11349
11350 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
11351
11352         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
11353         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
11354         in docs. (#55812, Vitaly Tishkov)
11355
11356 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
11357
11358         * demos/gtk-demo/main.c (create_tree): Changed signal name from
11359         selection_changed to changed in signal connection to GtkTreeSelection,
11360         also used g_signal_connectc since GtkTreeSelection is now a GObject.
11361
11362 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
11363
11364         * gtk/gtktreeselection.c: Now it's a GObject instead of a
11365         GtkObject.  The GtkTreeSelection::selection_changed signal is now
11366         the GtkTreeSelection::changed signal.
11367
11368         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
11369         object.
11370
11371         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
11372         object.
11373
11374 2001-06-07  Havoc Pennington  <hp@redhat.com>
11375
11376         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
11377
11378 2001-06-07  Havoc Pennington  <hp@redhat.com>
11379         
11380         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
11381         (not tested yet because with absolute path to srcdir I can't build
11382         atk, but it was broken anyway so this may help) 
11383
11384 2001-06-07  Havoc Pennington  <hp@redhat.com>
11385
11386         * configure.in: output m4macros/Makefile
11387         
11388 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
11389
11390         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
11391         buttons.  Fixes #55460 reported by matthiasc@poet.de.
11392
11393 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
11394
11395         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
11396         expansion/collapsing so it only happens in one place.
11397         (gtk_tree_view_real_expand_row): ditto.
11398
11399 2001-06-07  Havoc Pennington  <hp@redhat.com>
11400
11401         * tests/Makefile.am: add missing -I flag
11402
11403         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
11404
11405         * configure.in: use pkg-config to see if GModule is
11406         supported; fix to properly turn on included loaders 
11407         when GModule isn't supported; don't use AC_CHECK_LIB 
11408         when libs are not installed yet
11409
11410         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
11411
11412         * Makefile.am (SUBDIRS): add m4macros subdir
11413
11414         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
11415         dependencies also.
11416
11417 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
11418
11419         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
11420         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
11421
11422 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
11423
11424         * gtk/gtktreeview.c
11425         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
11426         bindings to expand and collapse rows.
11427         (gtk_tree_view_real_select_cursor_parent): New key binding.
11428         (gtk_tree_view_real_toggle_cursor_row): New key binding.
11429
11430         * gtk/gtkmarshal.list: new
11431         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
11432
11433 2001-06-06  Havoc Pennington  <hp@redhat.com>
11434
11435         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
11436
11437         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
11438         Down to move visually rather than logically, since it confuses 
11439         people. Add -/+ and Ctrl--/+ bindings for logical movement.
11440
11441 2001-06-06  Alex Larsson  <alexl@redhat.com>
11442
11443         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
11444         Fix up error messages.
11445
11446 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
11447
11448         * gtk/gtktooltips.h: Include gtkwidget.h 
11449         (#55798, Karl Nelson)
11450
11451         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
11452         a valid latin-1 character. (Marc Lehmann, #35467)
11453
11454         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
11455         (Marc Lehmann, #35467)
11456         
11457 2001-06-05  Alex Larsson  <alexl@redhat.com>
11458
11459         * demos/gtk-demo/appwindow.c (do_appwindow):
11460         Don't swap the order of the args to gtk_widget_destroyed.
11461
11462         * tests/testgtk.c (destroy_properties):
11463         Don't crash when the properties window is destroyed.
11464
11465         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
11466         Use with_mnemonics to handle the case of stock items with
11467         underscores in them.
11468
11469 2001-06-05  Havoc Pennington  <hp@redhat.com>
11470
11471         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
11472         gtk_text_iter_reorder
11473
11474 2001-06-05  Havoc Pennington  <hp@redhat.com>
11475
11476         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
11477
11478 2001-06-05  Havoc Pennington  <hp@redhat.com>
11479
11480         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
11481         to the range that was set
11482
11483         * gtk/gtkrange.c: add value_changed signal, primarily 
11484         intended for use with GtkScale
11485         (gtk_range_set_increments): new function
11486         (gtk_range_set_range): new function with weird name
11487         (gtk_range_set_value): new function
11488         (gtk_range_get_value): new function
11489
11490         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
11491         from gtk_spin_button_get_value_as_float(). Compat #define
11492         added for get_value_as_float.
11493
11494         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
11495
11496         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
11497
11498 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
11499
11500         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
11501
11502 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
11503
11504         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
11505
11506         * tests/testgtk.c (create_tooltips): Remove usage of
11507         gtk_widget_set().
11508
11509 2001-06-05  Havoc Pennington  <hp@redhat.com>
11510
11511         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
11512
11513         Applying patch from Jeff Franks, with function docs added.
11514         
11515         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
11516         remove call to set_mnemonic_widget, change docs a bit.  
11517
11518         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
11519         new function
11520
11521         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
11522         new function
11523
11524         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
11525
11526         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
11527         function
11528         (gtk_radio_button_new_with_mnemonic_from_widget): new function
11529
11530         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
11531         new function
11532
11533         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
11534         function        
11535
11536         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
11537         auto-selection of mnemonic widget.
11538
11539 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
11540
11541         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
11542         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
11543         (gtk_tree_view_column_set_min_width): ditto.
11544
11545 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
11546
11547         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
11548         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
11549
11550 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
11551
11552         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
11553         gtk_clist_thaw().
11554
11555 2001-06-04  Havoc Pennington  <hp@pobox.com>
11556
11557         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
11558 r       eleases for buttons 6, 7
11559
11560 2001-06-04  Havoc Pennington  <hp@redhat.com>
11561
11562         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
11563         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
11564         #55562
11565
11566 2001-06-04  Havoc Pennington  <hp@redhat.com>
11567
11568         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
11569         where text_view->layout == NULL by assuming its size is 0, 
11570         i.e. same as if we haven't done any reflow. Reported by 
11571         Hidetoshi Tajima #55448 
11572
11573 2001-06-04  Havoc Pennington  <hp@redhat.com>
11574
11575         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
11576         and 7 for scroll left/right, from Thomas Broyer
11577
11578 2001-05-10  Havoc Pennington  <hp@redhat.com>
11579
11580         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
11581         we need to parse the xsetting as if it were an RC file string.
11582
11583         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
11584         value of palette from settings, not from static variable
11585
11586         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
11587         xsettings translation table
11588
11589         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
11590         hardcoding the toolbar style conflicts with new customizable 
11591         toolbar style philosophy
11592         (gtk_toolbar_class_init): add settings for default toolbar style;
11593         these are used unless the app specifically forces a toolbar style
11594
11595         * gtk/gtksettings.c (settings_install_property_parser): only
11596         return at the start if we warn and parser == NULL
11597
11598         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
11599         palette changed handler so we don't notify dead color selections
11600
11601         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
11602         xthickness/ythickness of 0 or 1 properly 
11603         (gtk_default_draw_resize_grip): clear the background behind the
11604         resize grips, and align to bottom right if we square the 
11605         area to be drawn.
11606
11607         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
11608         statusbar label to 1, so it doesn't make toplevels resize oddly
11609         (gtk_statusbar_size_request): add grip size to request
11610         (gtk_statusbar_size_allocate): hack so the hbox still works with 
11611         the grip size in the request
11612
11613         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
11614         bug where showing all on a toplevel makes the toolbar 
11615         button text appear despite the toolbar mode
11616
11617         * gtk/gtkmenubar.c: add internal padding style property
11618
11619         * gtk/gtktoolbar.c: Add internal padding style property; add
11620         shadow type style property
11621
11622         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
11623         state; and put Container::border_width outside the frame
11624
11625         * gtk/gtktextview.c: don't draw focus rectangle if we're in
11626         interior focus mode, we just use blinking cursor
11627
11628 2001-06-04  Havoc Pennington  <hp@redhat.com>
11629
11630         * configure.in: Make gdk-pixbuf have same version number as GTK
11631
11632 2001-06-04  Havoc Pennington  <hp@redhat.com>
11633
11634         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
11635         digits greater than 6. If there actually are limits (which there
11636         likely aren't), should clamp to them not warn.
11637         (gtk_spin_button_new_with_range): don't take log of 0
11638         (gtk_spin_button_size_request): use digits to compute size
11639         request, rather than step increment.
11640
11641         * tests/testgtk.c (create_spins): test larger values of digits
11642         
11643         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
11644         font on map not expose, so we don't get weirdness during scrolling
11645
11646 2001-06-04  Havoc Pennington  <hp@redhat.com>
11647
11648         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
11649         Sam Solon, bug #54577, update value even if not drawable.
11650
11651 2001-06-04  Havoc Pennington  <hp@redhat.com>
11652
11653         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
11654         SCROLL_LEFT, reported by Thomas Broyer.
11655
11656 2001-06-04  Havoc Pennington  <hp@redhat.com>
11657
11658         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
11659         Process updates immediately, to prevent funny lag effect
11660         when scrolling, at some mild potential efficiency cost.
11661
11662 2001-06-04  Havoc Pennington  <hp@redhat.com>
11663
11664         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
11665         slider on the click.
11666
11667 2001-06-03  Havoc Pennington  <hp@pobox.com>
11668
11669         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
11670         hscale/vscale details, so we can use it for scrollbar as well.
11671
11672         * tests/testgtk.c (reformat_value): honor digits from GtkScale
11673
11674         * gtk/gtkenums.h (GtkTroughType): Remove this enum
11675         (GtkScrollType): add START and END from GtkTroughType
11676
11677         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
11678         its x/y arguments
11679
11680         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
11681         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
11682         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
11683         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
11684         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
11685
11686         Notable changes in the process:
11687          
11688         - stepper_size style property is the height for vertical 
11689           ranges, width for horizontal; the other dimension matches
11690           the trough size
11691         - add ability to do NeXT-style steppers (and several other styles
11692           that don't make any sense)
11693         - added min_slider_length, fixed_slider_length properties to
11694           GtkScrollbar
11695         - cleaned some private (or at least useless) functions out of
11696           gtkscale.h    
11697         - moved bindings to GtkScale from subclasses, even arrow keys,
11698           since blind users don't know scale orientation.
11699         - change move_slider action signal to use new GtkScrollType,
11700           remove GtkTroughType argument
11701         - digits rounds the values a range will input to the given 
11702           number of decimals, but will not try to force adjustment 
11703           values set by other controllers. That is, we no longer
11704           modify adjustment->value inside a value_changed handler.
11705         - added getters for GtkScale setters
11706         - middle-click begins a slider drag
11707         
11708 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
11709
11710         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
11711         getting the focus code to work.
11712         (gtk_tree_view_class_init): Add a bunch of keybindings.
11713
11714         * gtk/gtktreeviewcolumn.c
11715         (gtk_tree_view_column_set_cell_data_func):
11716         s/GtkCellDataFunc/GtkTreeCellDataFunc.
11717         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
11718         of "properties_changed" to help justify the death of the latter
11719         signal. (-:
11720
11721         * tests/testtreefocus.c (main): Let some columns be focussable to
11722         test focus better.
11723
11724 2001-06-01  Havoc Pennington  <hp@redhat.com>
11725
11726         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
11727         
11728         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
11729         overwrite in overwrite mode if we already deleted the selection
11730         and replaced it with new text.  
11731
11732         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
11733         selection to an empty range, clear the clipboard if we owned it.
11734         (gtk_label_set_selectable): give up selection if we become
11735         unselectable.
11736         (gtk_label_state_changed): override state changed to unselect text
11737         when insensitive
11738         (get_text_callback): add paranoia check that indexes aren't
11739         outside of label->text
11740         (gtk_label_select_region): make -1 for start_offset mean "end of
11741         label," for consistency with GtkEditable
11742
11743         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
11744         GTK_DIALOG_NO_SEPARATOR flag
11745
11746 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
11747
11748         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
11749         notifications on non-existant "enable_arrow_keys".
11750         (#53753, Skip Montanaro)
11751
11752 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
11753
11754         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
11755         GDK_TYPE_RECTANGLE.
11756
11757         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
11758         of allocation argument be GDK_TYPE_RECTANGLE.
11759
11760 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
11761
11762         * gtk/gtkoptionmenu.c: Account for the fact that the border
11763         width is _outside_ the window. (Fixes #54585, bug found
11764         by Bastien Nocera.)
11765
11766 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
11767
11768         * gtk/gtksettings.c (gtk_settings_get_property): Validate
11769         value from GDK settings against parameter spec.
11770
11771         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
11772         to temporary values and use g_value_transform(), since
11773         thinking that GValue was going to be easy or efficient
11774         to use was, of course, a mistake.
11775
11776         * gtk/gtksettings.c: Add cursor blink setting.
11777         
11778         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
11779
11780         * gtk/gtkentry.c: Add cursor blinking.
11781
11782         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
11783         cursor blink global settings.
11784
11785         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
11786         for :text_position in places where it is missing.
11787
11788 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
11789
11790         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
11791
11792 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
11793
11794         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
11795         not pkg-config. (#51032)
11796
11797         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
11798         (fixes #51952, James Henstridge)
11799         
11800 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
11801
11802         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
11803         Rename to the more correct gtk-go-up.
11804
11805         * gtk/stock-icons/stock_menu_sort_ascending.png:
11806         Added new file.
11807         
11808         * gtk/stock-icons/stock_menu_sort_descending.png:
11809         Changed to show descending instead of ascending.
11810
11811         * gtk/gtkiconfactory.c:
11812         Added menu size icon to sort ascending.
11813
11814         * gtk/stock-icons/Makefile.am:
11815         Added stock_menu_sort_ascending.png.
11816         
11817         * gtk/gtkseparatormenuitem.c:
11818         Use correct typenames.
11819
11820 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
11821
11822         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
11823         gulong as in GSignal.
11824
11825 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
11826
11827         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
11828         instances of GtkCellRenderer in code (all but dnd icon code).
11829         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
11830         there, and I can do multiple Cells per column.
11831
11832         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
11833
11834         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
11835         when model was unreffed prior to removing the row reference.
11836
11837 2001-05-25  Havoc Pennington  <hp@redhat.com>
11838
11839         * gtk/gtkiconfactory.c: fix so that default icons are created if 
11840         you call gtk_stock_list_ids()
11841
11842         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
11843         in list
11844
11845 2001-05-25  Havoc Pennington  <hp@redhat.com>
11846
11847         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
11848         set can render without falling back to missing image icon
11849
11850         * gtk/gtktextview.c (gtk_text_view_size_request): request full
11851         size of text, instead of random values
11852
11853         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
11854         size of tree view, instead of random values
11855
11856         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
11857         image in an appropriate size
11858
11859         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
11860         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
11861
11862         Throughout: fix GTK_STOCK_BUTTON_ instances
11863         
11864         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
11865         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
11866         Add a bunch of new stock items/icons
11867
11868         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
11869         new function, convenience for inserting columns with a data func
11870
11871         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
11872         (_gtk_icon_factory_list_ids): use list of all factories to
11873         generate a list of all known IDs
11874
11875         * gtk/gtkstock.c (gtk_stock_list_ids): replace
11876         gtk_stock_list_items() with a function that returns all IDs known
11877         including those for GtkIconFactory.
11878
11879 2001-05-25  Hans Breuer  <hans@breuer.org>
11880
11881         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
11882         work -> check boxes and radio buttons are drawn now, even on win9x.
11883         Improved line settings a bit, still no clue how to get really dotted
11884         lines on win9x, on NT it's PS_ALTERNATE.
11885
11886         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
11887         GDK_HINT_MIN_SIZE as well
11888
11889         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
11890
11891         * gtk/gtk.def : updated
11892
11893         * gtk/gtktreeprivate.h : change column_drop_func to be a function
11894         pointer not a function pointer pointer
11895
11896         * tests/testdnd.c : include <stdlib.h> for putenv prototype
11897
11898         * tests/testsocket.c : made it compile on win32 again
11899
11900         * tests/makefile.msc : one more test-app uses prop-editor.obj
11901
11902 2001-05-22  Havoc Pennington  <hp@pobox.com>
11903
11904         * gtk/gtkbin.c (gtk_bin_get_child): New function
11905
11906 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
11907
11908         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
11909         to ignore when doing compose processing.
11910
11911 2001-05-22  Joe Shaw  <joe@ximian.com>
11912
11913         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
11914         Simplify as suggested by Havoc. Just get the last iter and work
11915         backward to the tag instead of getting a line and working back from
11916         there. Fixes passing in an invalid offset to
11917         iter_init_from_byte_offset().
11918
11919 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
11920
11921         * gtk/gtktreeview*.h: 
11922         * gtk/gtkcell*.h:
11923         * gtk/gtk*store.h:
11924         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
11925         macros to all objects.
11926
11927 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
11928
11929         * gtk/gtkcellrenderertext.c
11930         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
11931         with very large (TM) amounts of text.  May be moved to
11932         GtkCellRenderer in the future, though I'm not sure it wants to be
11933         this accessible.
11934
11935         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
11936         More sanity brought to this class.  I like it.
11937
11938         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
11939         case.  Kids, don't try this at home.
11940
11941         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
11942         convenience function.
11943
11944         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
11945
11946 2001-05-21  Alexander Larsson  <alexl@redhat.com>
11947
11948         * gtk/gtkfontsel.c:
11949         Added properties. Based on patch by Lee Mallabone.
11950
11951         * gtk/gtkruler.c:
11952         * gtk/gtkhruler.c:
11953         * gtk/gtkvruler.c:
11954         * gtk/gtktext.c:
11955         * gtk/gtktextview.c:
11956         Converted GtkArg to GParam. Based on patches by John Margaglione.
11957
11958         * tests/Makefile.am:
11959         * tests/testtext.c:
11960         Add a property editor to testtext.
11961         
11962 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
11963
11964         * gtk/gtk{h,v,}paned.c: Only show the separator if 
11965
11966         * configure.in: Fixed reversed conditional causing all image
11967         libraries to be linked in.
11968
11969 2001-05-21  Joe Shaw  <joe@ximian.com>
11970
11971         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
11972         that top_y needs to be >= 0.
11973
11974 2001-05-11  Havoc Pennington  <hp@pobox.com>
11975         
11976         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
11977         losing connection to the X server.
11978
11979 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
11980
11981         * configure.in: Start checks for X from pangox/pangoxft
11982         CFLAGS to avoid duplicate libraries.
11983
11984         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
11985
11986         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
11987         to include gobject.
11988         
11989 2001-05-18  Alexander Larsson  <alexl@redhat.com>
11990
11991         * gtk/gtkspinbutton.c:
11992         Convert GtkArgs to GParams. Based on patch by John Margaglione.
11993         Also do size request reasonable for MAXDOUBLE. Previously it printed
11994         the limits to a buffer and overran it. Instead do it using log10() and
11995         limit the width to 10 digits.
11996         
11997         * gtk/gtkwidget.c (gtk_widget_get_property):
11998         Correctly handle setting the parent property to NULL.
11999
12000 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
12001
12002         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
12003         style attributes even if the widget isn't realized.
12004
12005         * demos/gtk-demo/main.c: Use a slightly smaller font.
12006
12007 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
12008
12009         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
12010         This is something that only a widget writer would ever want
12011         to change.
12012
12013         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
12014         gtk_signal_emit_by_name().
12015
12016         * gtk/gtkviewport.c: Fix some warnings.
12017
12018         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
12019         allowing the requisitions of multiple widgets to be grouped
12020         together.
12021
12022         * tests/testgtk.c: Add GtkSizeGroup test
12023
12024         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
12025
12026         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
12027         warnings.
12028
12029         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
12030
12031 2001-04-28  Martin Baulig  <baulig@suse.de>
12032
12033         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
12034         to gtk_image_menu_item_set_icon() and made it work if there's already
12035         an image.
12036         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
12037         (gtk_image_menu_item_new_with_label): New function.
12038
12039 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
12040
12041         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
12042         highlighting code!!!!  The result is okay so long as you don't try
12043         to stress it.  It also highlights a bug in the TextView so it's in
12044         an unproportional font right now until it's fixed.
12045
12046         *demos/gtk-demo/*.c: Clean up code a bit to make it
12047         ugly-parser(TM) friendly. (-:
12048
12049 2001-05-17  Joe Shaw  <joe@ximian.com>
12050
12051         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
12052         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
12053         if it is only partially onscreen.
12054
12055 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
12056
12057         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
12058         not by characters.
12059
12060         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
12061         are not zero or one; that is, when graphemes of multiple characters
12062         are involved.
12063
12064         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
12065         FIXME.
12066
12067 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
12068         
12069         * gtk/gtkbbox.c:
12070         Add properties, based on patch by Lee Mallabone.
12071
12072         * gtk/gtknotebook.c:
12073         * gtk/gtktoolbar.c:
12074         Convert from GtkArg to GParam, based on patch by John Margaglione.
12075         
12076         * gtk/gtkhscale.c:
12077         * gtk/gtkvscale.c:
12078         * gtk/gtkhscrollbar.c:
12079         * gtk/gtkvscrollbar.c:
12080         * gtk/gtkrange.c:
12081         Move adjustment property to GtkRange.
12082
12083         * gtk/gtklabel.c:
12084         Setup mnemonics on property changes
12085
12086         * gtk/gtkwidget.c (gtk_widget_get_property):
12087         GdkExtensionMode is an enum, not a flag. Set it with
12088         g_value_set_enum ().
12089
12090         * tests/prop-editor.c:
12091         Better propery editor.
12092
12093         * tests/testgtk.c:
12094         Add new property test. Pass zero to the property editor to
12095         get properties from all derived types.
12096         
12097 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
12098
12099         * autogen.sh (have_automake): Require libtool-1.4,
12100         automake-1.4p1.
12101
12102         * acinclude.m4: Remove libtool macros.
12103
12104         * gdk-pixbuf/Makefile.am: Add dependencies to loade
12105         modules.
12106
12107         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
12108         for libgdk.
12109
12110         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
12111         libgdk.la for libgtk.
12112
12113         * modules/input/Makefile.am: Make modules have full
12114         dependencies.
12115
12116 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
12117
12118         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
12119         #54699 where paths weren't being checked for correctness.
12120
12121 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
12122
12123         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
12124         in any order you wan, whether or not the column is added to the
12125         tree, or the tree is realized.  Yay!
12126
12127         * gtk/gtktreeviewcolumn.c
12128         (gtk_tree_view_column_setup_sort_column_id_callback): handle
12129         sorting columns a lot saner
12130
12131         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
12132         new function to actually set wether or not a column is
12133         reorderable.
12134
12135         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
12136         if we have 'em.
12137
12138         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
12139         Fix nasty bug where we were showing the button just before
12140         realizing it.  As a result, the parent window was
12141         tree_view->window instead of tree_view->priv->header_window.
12142
12143         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
12144         to let you easily reorder a list or tree.
12145
12146 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
12147
12148         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
12149         from args to properties.
12150
12151 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
12152
12153         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
12154         from args to properties. (#51957)
12155
12156         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
12157         calls to after ->set_property call.
12158
12159 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
12160
12161         * tests/prop-editor.c: Block against redundant changes.
12162
12163         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
12164         properties.
12165
12166 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
12167
12168         * gdk/gdkpixmap.h: Remove creative formatting.
12169
12170 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
12171
12172         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
12173         property API. (#51669)
12174
12175         * gtk/gtkscale.c: Patch from John Margaglione converting to
12176         property API. (#51891)
12177
12178         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
12179         to property API. (#50985)
12180
12181 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
12182
12183         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
12184         buffering state across expose event, so we still call end_paint().
12185
12186 2001-05-11  Alexander Larsson  <alexl@redhat.com>
12187
12188         * gtk/gtkhsv.c (paint_triangle):
12189         Expose the ring in the triangle at the correct place when
12190         exposing just a part of the triangle.
12191
12192         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
12193         Return FALSE, or window focusing will not work.
12194
12195 2001-05-11  Havoc Pennington  <hp@pobox.com>
12196
12197         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
12198         #54144
12199
12200         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
12201         bug #54330
12202
12203 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
12204
12205         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
12206         propagate exposes to NULL child.
12207
12208         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
12209         against not having one of the scrollbars.
12210
12211         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
12212         we don't keep a mnemonic window if we have no mnemonic installed.
12213
12214 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
12215
12216         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
12217         it has the _important_ side effect of initializing a class.
12218
12219 2001-05-10  Alexander Larsson  <alexl@redhat.com>
12220
12221         * gdk/linux-fb/gdkprivate-fb.h:
12222         Make sure you can compile out the implementation/wrapper assert
12223         macros.
12224
12225         * gdk/linux-fb/gdkdrawable-fb2.c:
12226         Check implementation/wrappers, initialize type for pixmap dummys.
12227
12228         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
12229         Hide the cursor if reading from the screen.
12230
12231         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
12232         Fix sign bug in tiling code.
12233
12234         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
12235         Handle background pixmaps.
12236
12237 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
12238
12239         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
12240         function to let user control where columns are dragged.
12241
12242         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
12243         Escape is pressed.
12244
12245 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
12246
12247         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
12248         "columns_changed" signal.
12249         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
12250         motion code to draw arrows to the side if indicator is outside the
12251         widget.
12252         (gtk_tree_view_map_expanded_rows): Implement.
12253
12254 2001-05-07  Alexander Larsson  <alexl@redhat.com>
12255
12256         * demos/testpixbuf-save.c: 
12257         * demos/testpixbuf-drawable.c:
12258         Include gdkfb.h on linux-fb.
12259
12260 2001-05-07  Alexander Larsson  <alexl@redhat.com>
12261
12262         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
12263         New function for getting toplevel window at position.
12264         (gdk_drag_find_window): Use get_toplevel_window () instead
12265         of gdk_window_get_pointer(). (gdk_drag_status): Use
12266         correct context for getting window.
12267
12268         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
12269         g_strdup the atom name.
12270
12271         * gdk/linux-fb/gdkwindow-fb.c:
12272         Costmetic fix.
12273
12274         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
12275         Add code for changing cursor on linux-fb backend (same as
12276         win32).
12277
12278 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
12279
12280         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
12281         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
12282         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
12283         report was not for the development branch of GTK+, but it applies
12284         anyways).
12285
12286 2001-05-04  Havoc Pennington  <hp@redhat.com>
12287
12288         * configure.in: fix some shell typos
12289
12290         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
12291
12292         * gtk/gtkimage.c: handle animations
12293
12294         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
12295         border_width * 2, not just border_width
12296
12297         * gtk/gtkscale.c: add "format_value" signal to allow people
12298         to override the way values are drawn.
12299         (gtk_scale_get_value_size): fix width/height mistake,
12300         and compute size from actual displayed text, not 
12301         from made-up text.
12302
12303         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
12304         signal registration
12305
12306         * tests/testtext.c: Add "Remove all tags" menu item for testing
12307
12308         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
12309
12310         * demos/gtk-demo/main.c (main): add hack so we can find modules
12311         without installing gtk
12312
12313         * demos/gtk-demo/textview.c (insert_text): demo font scaling
12314
12315         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
12316         factor)
12317         (gtk_cell_renderer_text_set_property): remove some bogus
12318         g_object_notify
12319
12320         * gtk/gtktexttag.c: add "scale" property which is a font scaling
12321         factor
12322
12323         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
12324         to layout
12325
12326         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
12327         gtk_text_iter_is_first
12328
12329 2001-01-06  Hans Breuer  <hans@breuer.org>
12330
12331         * gdk/gdk.def : updated exports
12332
12333         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
12334         gdk won't compile anymore
12335  
12336         * gdk/win32/gdkevents-win32.c : initialize ret_val when
12337         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
12338         Improved gdk_flush () to not only do pending drawing operations
12339         but also process all currently pending events. This should make
12340         the behaviour more similar to the X11 version.  
12341
12342         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
12343         option needs to be set even if there is no GDK_GC_BACKGROUND.
12344         (gdk_win32_hdc_get) : use predraw_set_background () independent
12345         of value_mask. This allows to draw dashed lines leaving the original
12346         background intact.
12347
12348         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
12349         after processing, because we can't reuse it as the X11 version does.
12350
12351         * gtk/gtk.def : updated exports
12352
12353         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
12354         would like to get rid of this file again, and use straight
12355         makefile.msc again, as the other Gtk+ subdirs do)
12356
12357         * test/makefile.msc (new file) : build the test apps here
12358
12359 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
12360
12361         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
12362         strike-through setting
12363         (gdk_draw_layout_line_with_colors): Render strike-through
12364
12365 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
12366
12367         * Release 1.3.5
12368
12369         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
12370
12371         * NEWS: Updated
12372
12373         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
12374         Makefile breakage.
12375
12376 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
12377
12378         * demos/gtk-demo/images.c (progressive_timeout): Fix
12379         typo in filename.
12380
12381         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
12382         out FIXME warning; just too annoying.
12383
12384 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
12385
12386         * gdk/linux-fb/gdkcolor-fb.c:
12387         Better error messages.
12388
12389         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
12390         Initialize abs_x and abs_y.
12391         
12392         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
12393         Correct handling of stipple offset.
12394
12395         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
12396         Treat directcolor framebuffers as truecolor.
12397         
12398 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
12399
12400         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
12401         dependency on Atk for accessibility support.
12402
12403         * configure.in **/Makefile.am: Major reworking of substituted
12404         variables for CFLAGS/LIBS to make a lot more sane and 
12405         keep the the compile/link lines a bit shorter.
12406
12407         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
12408
12409 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
12410
12411         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
12412         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
12413         use _gtk_boolean_handled_accumulator.
12414
12415 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
12416
12417         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
12418         to fix things so clicking inside selection leaves cursor
12419         at point where clicked. (#50324)
12420
12421         * gtk/gtksettings.c (gtk_settings_class_init): Restore
12422         sane value for default double click time.
12423
12424         * tests/testtext.c (test_init): Really path to input modules.
12425
12426 2001-05-03  Sven Neumann  <sven@convergence.de>
12427
12428         * demos/testpixbuf-save.c: include target-specific headers as
12429         done in testpixbuf-drawable.c
12430
12431 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
12432
12433         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
12434         new_text_length appropriately when we run into the 
12435         size limit for the entry. (#53445, reported by Jeff Franks)
12436
12437         * tests/testgtk.c (create_entry): Remove most of the
12438         property toggle buttons. Replace with a "Props" button
12439         that brings up a property editor.
12440
12441         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
12442         Split the property editor code out for reuse, improve.
12443
12444 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
12445
12446         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
12447         trap errors around calls to XSetInputFocus since we have
12448         no way of knowing reliably whether we are viewable or
12449         not. (#53947)
12450
12451 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
12452
12453         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
12454         fix bug in dropping columns.  Moving columns now basically works
12455         modula some fine tuning.
12456
12457 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
12458
12459         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
12460         autoscroll support.  It mostly works, but could use some fine
12461         tuning.
12462         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
12463         Actually move the column.
12464
12465 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
12466
12467         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
12468           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
12469           New default theme! A slighly improved version of the 2.0 Raleigh
12470           theme, with Windows-esque focus/drawing default. 
12471           (GtkWidget::interior_focus defaults to TRUE.)
12472
12473         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
12474
12475 2001-04-30  Havoc Pennington  <hp@pobox.com>
12476
12477         * tests/testtext.c (line_numbers_expose): fix to work with
12478         gtk_paint_layout change
12479
12480 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
12481
12482         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
12483           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
12484           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
12485           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
12486
12487         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
12488           with GtkWidget::interior_focus = TRUE better.
12489
12490         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
12491         ::default_outside_border for more flexibility.
12492
12493         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
12494         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
12495         change that had to be made with g_object_get.
12496
12497 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
12498
12499         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
12500         (gtk_tree_view_move_column_after): Clean up interface. 
12501
12502 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
12503
12504         * gtk/gtkpacker.h:
12505         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
12506          to gtkenum.h.
12507
12508         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
12509         handled in switch).
12510
12511         * gtk/Makefile.am:
12512         (gtk.defs): generate enum portions with  glib-mkenums.
12513         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
12514         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
12515         
12516         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
12517         addition.
12518
12519         * docs/Changes-2.0.txt: keep a note on signal handlers now
12520         not getting emitted during the emission they were connected within.
12521
12522 2001-04-28  Havoc Pennington  <hp@pobox.com>
12523
12524         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
12525
12526 2001-04-24  Havoc Pennington  <hp@redhat.com>
12527
12528         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
12529         (gtk_text_layout_move_iter_to_next_line): fix these two for
12530         invisible text, lots of other stuff still hosed.
12531
12532         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
12533         new function, replaces the get/set palette stuff. This function 
12534         is intended for use by libgnomeui which should set the hook to a
12535         thing which sets the palette in GConf, and we need the
12536         GConf-to-xsettings proxy which will result in the change being
12537         propagated back to the GTK app.
12538
12539         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
12540         about unusable signals that it may be because the signal has 
12541         parameters.
12542
12543         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
12544         style, otherwise gtkrc.c won't know to create a new GtkStyle for
12545         it.
12546         (gtk_widget_modify_color_component): call
12547         gtk_widget_modify_style() so the rc style will get copied.
12548         (gtk_widget_modify_font): ditto
12549
12550         * gtk/gtkrc.c: make a couple variables static
12551
12552         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
12553         help button by default, since it does nothing
12554
12555         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
12556         around with UI
12557
12558         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
12559         so we can have tooltips
12560
12561         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
12562         can have tooltips
12563
12564         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
12565         GDK_ENABLE_BROKEN, because its memory behavior is completely
12566         hosed.
12567
12568         * gtk/gtknotebook.c: remove key press handler, replace with
12569         binding set, add numeric keypad support
12570
12571         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
12572
12573         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
12574
12575         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
12576         addition to plain Delete
12577
12578         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
12579         GDK_KP_Enter in addition to GDK_Return
12580
12581         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
12582         activate on entry instead of key press
12583         (gtk_font_selection_on_clist_key_press): get
12584         rid of this signal handler, not needed with new font sel.
12585
12586         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
12587         no-longer-needed emit_stop_by_name(), just return TRUE
12588
12589         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
12590         cruft, this widget is no longer focusable.
12591
12592         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
12593         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
12594         move_slider action signal, add binding set for vscale/hscale, in
12595         the process support numeric keypad
12596
12597         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
12598         make GDK_Return and GDK_KP_Enter activate the entry via 
12599         binding set, instead of hardcoded.
12600
12601 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
12602
12603         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
12604         code.  Some documentation added.
12605
12606 2001-04-27  Havoc Pennington  <hp@redhat.com>
12607
12608         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
12609
12610         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
12611
12612         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
12613         line/para separators
12614         (gtk_entry_create_layout): set single paragraph mode on the layout
12615
12616         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
12617         spacing between the image and label; instead, inside a button box 
12618         the button will get extra space that will go there, but if people 
12619         configure button box for 0 chubbiness, then there's no spacing.
12620
12621         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
12622         and min/max size style properties, so people can tune their
12623         chubbiness.
12624
12625         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
12626         functions
12627
12628         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
12629         space_style, and button_relief into style properties, remove
12630         functions for setting them
12631         
12632         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
12633         it back down
12634
12635         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
12636         types from gtk_widget_style_get
12637
12638         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
12639         with a style property.
12640
12641         * gdk/x11/gdkevents-x11.c: namespace the settings
12642
12643         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
12644
12645         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
12646         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
12647         be used. Also, translate doc strings for settings. Also, namespace
12648         the double-click-time property. Also, remove bell properties crap.
12649
12650 2001-04-27  Sven Neumann  <sven@gimp.org>
12651
12652         * Makefile.am: before creating links, check if pkg-config files
12653         exist for the default target. Otherwise link to the pkg-config files
12654         that got installed with this build.
12655
12656 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
12657
12658         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
12659         dragging code.  Revealed some (potential) GdkWindow bugs.
12660
12661         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
12662         _gdk_window_init_position to the end of reparent to fix the case
12663         of reparenting when new_x != old_x and new_y != old_y.
12664
12665 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
12666
12667         * gtk/gtkentry.c (strstr_len): Fix optimization that
12668         was correct for the use here, but completely incorrect
12669         in general.
12670
12671 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
12672
12673         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
12674         until patch adding gtk_window_set_size() is recommitted. 
12675
12676         * **Makefile.am configure.in gdk/x11/gdkim-11.c
12677           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
12678           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
12679           (#10784)
12680
12681 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
12682
12683         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
12684         window == NULL in a number of cases.
12685
12686         * tests/testdnd.c: Set module path for gdk-pixbuf.
12687
12688 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
12689
12690         * gtk/Makefile.am xembed.h: File containing #defines
12691         for XEMBED protocol.
12692
12693         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
12694
12695         - Change protocol from old plug/socket specific protocol
12696           to XEMBED draft
12697         - Various fixes to work with GTK+-2.0
12698
12699         Still quite a bit of work to do here to handle initiation
12700         from the socket side (as specified by XEMBED), to handle
12701         the more advanced features of XEMBED, and to figure out
12702         a good way to handle same-app embedding with less overhead
12703         than using full XEMBED.
12704
12705 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
12706
12707         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
12708         track of whether the toplevel has the focus; only send
12709         focus-in events to the focus widget when the window
12710         actually has the focus.
12711
12712 2001-04-25  Havoc Pennington  <hp@pobox.com>
12713
12714         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
12715         were still in the header
12716
12717 2001-04-24  Alexander Larsson  <alexl@redhat.com>
12718
12719         * gtk/gtkclist.[ch]:
12720         * gtk/gtkctree.c:
12721         When there is a row highlighted for D'n'D it must alse
12722         be painted hightlighted on exposes. Otherwise exposes from
12723         the icon being dragged will mess up the hightlight.
12724
12725         * gtk/gtkfontsel.c:
12726         Don't recenter selected font when exposing the font family
12727         clist. This means you can now actually scroll the font family
12728         list.
12729
12730         * gtk/gtknotebook.c:
12731         Fix focus movement on scrolling tabs that are placed on the left
12732         and right.
12733
12734 2001-04-21  Havoc Pennington  <hp@pobox.com>
12735
12736         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
12737         empty/invisible lines.
12738
12739         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
12740         (gtk_text_iter_set_visible_line_index): new functions to set
12741         indexes excluding invisible text
12742
12743         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
12744         index
12745
12746         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
12747         (gtk_text_iter_get_visible_line_offset): new functions to 
12748         get indexes excluding invisible text
12749
12750         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
12751         bunch of extra padding that served no purpose
12752
12753         * gtk/gtkdialog.c: Make all the spacings configurable via style
12754         properties, for chubbiness configuration in themes
12755
12756         * tests/testtext.c: fix path to the immodules.
12757         
12758 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
12759
12760         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
12761         got munched by #endif.
12762
12763         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
12764
12765         * gtk/gtktreeview.c: Refactored code to clean up a number of
12766         events.
12767
12768         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
12769         values to make consistent with other functions.  Spotted by Jeff
12770         Franks <jcf@tpg.com.au>.
12771
12772         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
12773         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
12774
12775 2001-04-23  Sven Neumann  <sven@gimp.org>
12776
12777         * gtk/Makefile.am
12778         * gtk/gtkplug.c
12779         * gtk/gtksocket.c: on request of Owen, reverted my last change 
12780         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
12781
12782 2001-04-23  Sven Neumann  <sven@gimp.org>
12783
12784         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
12785         compile for non-X11 targets again
12786
12787 2001-04-20  Alexander Larsson  <alexl@redhat.com>
12788
12789         * gtk/gtkcolorsel.[ch]:
12790         API Change. Take GdkColor arguments instead of gdouble *.
12791         Leave the old gtk_color_selection_set_color for compatibility,
12792         but marked deprecated.
12793         Do correct rounding when converting RGB <-> HSV.
12794         
12795         * gtk/gtkcolorseldialog.c:
12796         * tests/testgtk.c:
12797         Use new GtkColorSelection API.
12798
12799         * gtk/gtkhsv.c:
12800         Fix problem selecting colors in triangle when Hue is 330.
12801         Fix some black dots around the HSB triangle.
12802         
12803         * gtk/gtkfilesel.c:
12804         return FALSE from the focus_in_event handler to fix focus problems.
12805
12806 2001-04-18  Havoc Pennington  <hp@redhat.com>
12807
12808         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
12809         set, so keybindings are configurable    
12810         (gtk_window_activate_default): Change to activate the focus widget
12811         instead if there's a focus widget, to be consistent with the
12812         behavior that previously existed in key_press_event
12813
12814 2001-04-18  Havoc Pennington  <hp@redhat.com>
12815
12816         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
12817
12818 2001-04-18  Havoc Pennington  <hp@redhat.com>
12819
12820         Close bug #50615:
12821         
12822         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
12823         the layout
12824
12825         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
12826
12827         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
12828
12829         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
12830         
12831         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
12832         to blue for base, in addition to bg
12833         
12834 2001-04-18  Havoc Pennington  <hp@redhat.com>
12835
12836         * tests/testgtk.c (create_image): allow shrinking the image window
12837         to test that we clip to allocation.
12838
12839         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
12840         #9845
12841
12842         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
12843
12844 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
12845
12846         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
12847         mode on shm segments to 0600. We'll see who complains.
12848
12849         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
12850         _gdk_windowing_window_destroy() AFTER recursing through
12851         children.
12852
12853         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
12854         testsocket_child on X.
12855
12856         * tests/testsocket[_child].c: Fix uses of
12857         gtk_window_get_default_accel_group().
12858
12859         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
12860
12861         * gdk/gdkimage.c: (gdk_image_get):
12862         Deal with the possibility that XGetImage() might return NULL.
12863         Allocate the GdkImagePrivate structure only after XGetImage()
12864         succeeds in order not to dereference a NULL ximage pointer.  This
12865         prevents a core dump when XGetImage() fails - which is unlikely,
12866         but can happen due to race conditions accessing the geometries of
12867         drawables.  An x error will still be triggered, but the gdk image
12868         wrapper at least wont seg fault.
12869         
12870 2001-04-18  Havoc Pennington  <hp@redhat.com>
12871
12872         * gtk/gtkimage.c: fix to properly queue resizes when the image is
12873         set
12874
12875         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
12876         if the insertion point isn't editable
12877
12878         * demos/gtk-demo/images.c: Added a GtkImage demo
12879
12880         * demos/gtk-demo/drawingarea.c: drawing area demo
12881         
12882         * demos/gtk-demo/menus.c (create_menu): cleanups
12883
12884 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
12885
12886         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
12887           gdk/x11/gdkevents-x11.c: Introduce an extra child
12888         of toplevel windows that serves to hold the focus to
12889         avoid events being delivered to embedded windows.
12890
12891         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
12892         some extra variables to clean up code and reduce the
12893         number of casts.
12894
12895         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
12896         guint for 1 bit bit fields, not gboolean.
12897
12898 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
12899
12900         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
12901         not TRUE. (Fixes #52925)
12902
12903 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
12904
12905         * Released 1.3.4
12906
12907         * NEWS: Updated
12908
12909         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
12910         use GTK_TYPE_ENUM.
12911
12912 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
12913
12914         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
12915
12916         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
12917         names to compatibility #defines so docs work.
12918
12919         * gtk/gtkenums.h: Remove GtkMenuFactoryType
12920
12921         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
12922
12923         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
12924
12925         * tests/testgtkrc: No magenta cursors, please.
12926
12927         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
12928
12929         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
12930         
12931 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
12932
12933         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
12934         grabs, since they are no longer necessary.
12935
12936         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
12937         by signal_connect() and call gtk_button_pressed() rather
12938         than signal_connect_after().
12939
12940         * tests/testgtk.c: Restore radio menu items to combos 
12941         since they'll look OK with Raleigh, and it is easier
12942         than finishing the process of removing them that was
12943         started earlier.
12944
12945 2001-04-16  Hans Breuer  <hans@breuer.org>
12946
12947         * gdk/gdk.def :
12948         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
12949
12950         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
12951         we are interested in the functions return value not the function address
12952         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
12953
12954         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
12955
12956 2001-04-14  Hans Breuer  <hans@breuer.org>
12957
12958         * gdk/gdk.def :
12959         * gdk/makefile.msc : updated
12960
12961         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
12962         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
12963         (the testgtk::text backgound pixmap is drawn again)
12964         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
12965         Win32 Pango change
12966         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
12967
12968         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
12969         Not sure if the returned settings have the right unit, because I couldn't
12970         find any docs for the X version ...
12971
12972         * gtk/gtk.def :
12973         * gtk/makefile.msc.in : updated
12974
12975 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
12976
12977         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
12978         wording problems. (Compared to version from Johannes Stezenbach to
12979         check correctness.)
12980
12981 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
12982
12983         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
12984         this to compile.
12985
12986 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
12987
12988         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
12989         not pixbufpos.
12990
12991         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
12992
12993         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
12994         are unsigned insts, therefore use g_value_set_uint.
12995         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
12996
12997 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
12998
12999         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
13000
13001         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
13002         GTK_TYPE_STRING.
13003
13004         * gtk/gtktreeview.c: New functions to allow initial column
13005         dragging work.
13006
13007         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
13008
13009         * tests/testtreefocus.c: give dave some love.
13010
13011         * tests/testtreesort.c: Modify test to check really long samples.
13012
13013 2001-04-11  Alexander Larsson  <alexl@redhat.com>
13014
13015         * gtk-2.0.m4: Pass pkg-config options
13016         before the other args so it works even if
13017         POSIXLY_CORRECT is set.
13018
13019 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
13020
13021         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
13022         0, interface 0).
13023
13024 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
13025
13026         * gtk/gtkcalendar.c (gtk_calendar_button_press):
13027         check for action_func != NULL
13028
13029 2001-04-04  Sven Neumann  <sven@gimp.org>
13030
13031         * tests/testgtk.c (test_init): corrected path to gtk.immodules
13032
13033 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
13034
13035         * Released Gtk+-1.3.3.
13036
13037 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
13038
13039         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
13040
13041 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
13042
13043         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
13044         files to/from source dir. (if we don't stay in builddir, we
13045         can't reach make-inline-pixbuf.
13046
13047         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
13048         deps.
13049
13050         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
13051         ages 0).
13052
13053 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
13054
13055         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
13056         moved to the GtkTreeSortable interface.
13057
13058         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
13059         Make more efficient (fixes #50262).
13060
13061 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
13062
13063         * NEWS: Updated.
13064
13065         * configure.in: Remove support for uninstalled glib.
13066
13067         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
13068         so as not to stop emission.
13069
13070         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
13071         is no longer supported.
13072
13073         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
13074         into tests, change build order to build modules before
13075         gtk/.
13076
13077         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
13078         to here.
13079
13080 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
13081
13082         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
13083         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
13084         GPatternSpec. this is actually unlikely to cause breakage in
13085         third-party apps since except for gle, pretty much ever caller
13086         passes NULL here.
13087
13088         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
13089
13090         * *.c: use g_pattern_*() API.
13091
13092         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
13093
13094         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
13095         directions aren't passed in.
13096
13097         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
13098         functionality to be usable from gtkstyle.c as well, give precedence
13099         for conversion to user-supplied parsers.
13100         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
13101
13102         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
13103         _gtk_settings_parse_convert() for rcporperty value conversion.
13104
13105 2001-04-03  Alexander Larsson  <alexl@redhat.com>
13106
13107         * gdk/linux-fb/gdkevents-fb.c:
13108         Add empty gdk_setting_get().
13109
13110 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
13111
13112         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
13113         variable names.
13114         
13115         * gtk/makeenums.pl: touch this so enum files get remade.
13116
13117 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
13118
13119         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
13120         work again when not sorted.
13121
13122         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
13123         and "expand_row" signal, closing bug 52578.
13124
13125         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
13126         support.
13127
13128         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
13129         support.
13130
13131 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
13132
13133         * gdk/gdkevents.h: Add GdkEventSetting event for notification
13134         of changes to system settings, gdk_setting_get() to retrieve
13135         a single system setting.
13136
13137         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
13138         to the draft XSETTINGS mechanism.
13139
13140         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
13141         XSETTINGS.
13142
13143         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
13144         of GDK settings changes to the GtkSettings object.
13145
13146         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
13147         double-click-timeout property to GDK.
13148
13149         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
13150         Define GDK boxed types here.
13151
13152         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
13153         gdk/gdkenumtypes.[ch] for enum definitions.
13154
13155         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
13156         * gtk/gtk-boxed.defs: Comment out GDK types
13157         * gtk/gtktypeutils.h: Remove GDK types
13158         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
13159
13160 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
13161
13162         * Applied patch from Ron Steinke to add signal accumulators
13163         so that signals with the convention 'TRUE return means
13164         handled' stop emission on a TRUE return.
13165
13166         * gtk/gtkmain.[ch]: Add private accumulator 
13167         _gtk_boolean_handled_accumulator, used throughout GTK+.
13168         
13169         * gtk/gtkspinbutton.c: Add accumulator for ::output.
13170
13171         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
13172         
13173         * gtk/gtkwidget.c: Add accumulators for event signals,
13174         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
13175         for ::mnemonic-activate.
13176
13177         * gtk/gtkwindow.c: Add accumulator for ::frame_event
13178
13179 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
13180
13181         * gtk/gtkwidget.c: Add missing include.
13182
13183 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
13184
13185         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
13186         marshaller.
13187
13188         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
13189         "changed" signal to "range_changed".
13190
13191         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
13192         removing a tree from one model would remove all trees from that
13193         model.
13194         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
13195         changed signal instead.
13196
13197 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
13198
13199         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
13200         chaining up to parent impl, since we have a INPUT_ONLY
13201         window.
13202
13203         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
13204         foreground color for the cursor.
13205
13206 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
13207
13208         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
13209         param spec when caching property values, since we unref it
13210         later when we free the style.
13211
13212         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
13213         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
13214
13215 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
13216
13217         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
13218         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
13219         stupidity.
13220
13221 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
13222
13223         [ First pass at adding style properties. Still needs some definite
13224         fine-tuning. ]
13225
13226         * gtk/gtkbutton.c: Add ::default_spacing style property.
13227          
13228         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
13229         ::indicator_spacing style properties.
13230
13231         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
13232         style properties.
13233
13234         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
13235         rather than a normal property.
13236
13237         * gtk/gtkwidget.c: Add an ::interior_focus style property to
13238         draw focus inside buttons, in the Windows/Java Metal/etc. style.
13239
13240         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
13241         Honor ::interior_focus.
13242         
13243         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
13244         TRUE.
13245
13246         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
13247         Add ::slider_width, ::trough_border, ::stepper_size,
13248         ::stepper_spacing style properties.
13249
13250         * gtk/gtkscale.[ch] Add ::slider-length style property.
13251
13252 2001-04-02 Alexander Larsson   <alexl@redhat.com>
13253
13254         * gdk/linux-fb/gdkwindow-fb.c:
13255         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
13256         warnings that were spewed on startup.
13257
13258         * gtk/gtkwindow-decorate.c:
13259         gtk_window_reposition -> _gtk_window_reposition
13260
13261 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
13262
13263         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
13264         Add boxed type for GtkRequistion. Use it for ::size-request.
13265
13266         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
13267         Add a new GtkBorder structure useful for geometry properties
13268         for widgets. Add corresponding GTK_TYPE_BORDER.
13269         
13270         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
13271         Support automatic parser selection like
13272         gtk_settings_install_property_parser().
13273
13274         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
13275         functionality for use by gtk_widget_class_install_style_property.
13276         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
13277
13278 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
13279
13280         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
13281         g_param_spec_unichar(). 
13282
13283 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
13284
13285         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
13286         _NET window managers.
13287
13288         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
13289
13290 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
13291
13292         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
13293         bad needs to be nuked, not just deprecated.
13294
13295         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
13296         gtk_widget_popup().
13297
13298         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
13299         
13300         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
13301         widget.
13302         
13303         * docs/Changes-2.0.txt: updates.
13304         
13305 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
13306
13307         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
13308         for (i = 0; i < 100; i ++)
13309           g_print ("I will confirm it compile before committing\n");
13310
13311 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
13312
13313         * gtk/gtktreestore.c: Initial work on implementing the
13314         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
13315
13316 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
13317
13318         * gtk/gtkwidget.c: fixed a bunch of notifications, added
13319         reference counts around emissions where the widget is used afterwards.
13320         added freeze/thaws around multiple properties being notified.
13321         (_gtk_widget_get_aux_info): cleanups.
13322         
13323         * gtk/gtksettings.c (gtk_settings_install_property): provide
13324         default parsing functions for gdkcolor, enums and flags.
13325
13326         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
13327         applied by owen.
13328         backed out gtk_window_get_location(), gtk_window_set_location(),
13329         gtk_window_get_size() and gtk_window_set_size(), these
13330         have to be sorted out wrg x/y/width/height/default_with/default_height
13331         properties.
13332         kept a flag in GtkWindowGeometryInfo to handle user
13333         resetting default sizes.
13334         cleaned up ZVT comments.
13335         bunch of assorted bug fixes, notification fixes.
13336         (_gtk_window_reposition): make this a really internal function.
13337         
13338         * gtk/testgtk.c: fixups.
13339         
13340 2001-03-31  Hans Breuer  <hans@breuer.org>
13341
13342         * config.h.win32.in : disable USE_MMX for msvc build cause
13343         the assembler doesn't fit and is out of my scope. Disable
13344         USE_GMODULE for msvc build as wel. The right way to share
13345         binaries on win32 would be to use libtiff.dll etc. To reduce
13346         installation hassles IMO it's better to include all fileformats
13347         builtin to gdk-pixbuf
13348
13349         * gdk-pixbuf/makefile.msc : new file
13350
13351         * gdk/gdk.def : updated
13352
13353         * gdk/win32/gdkevents-win32.c : don't erase the background if
13354         .no_bg is set. It improves the scrolling (e.g. of testgtk main
13355         buttons
13356         * gdk/win32/gdkgeometry-win32.c : added comment about the above
13357
13358         * gdk/win32/gdkwindow-win32.c : added three new functions like
13359         the X version. Only one is implemented, because the other two
13360         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
13361         be default behaviour on win32 anyway ...
13362
13363         * gtk/gtk.def : updated
13364
13365         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
13366         from where it was built and add an additional rule to automagically
13367         build gtkmarshal.[hc]
13368
13369         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
13370         before array access for the current entry isn't finished
13371
13372         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
13373         use g_return_val_if_fail
13374
13375         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
13376         for the static array, but let the compiler calculate it. It
13377         makes me wonder if gcc isn't capable to catch bugs like this ...
13378
13379 2001-03-31  James Henstridge  <james@daa.com.au>
13380
13381         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
13382         constant "-1" in the aux info structure.
13383
13384 2001-03-30  Alexander Larsson  <alexl@redhat.com>
13385
13386         * gtk/gtkbutton.c (gtk_button_get_property):
13387         * gtk/gtklabel.c:
13388         Remove leaks.
13389         
13390         * gtk/gtkcontainer.c:
13391         * gtk/gtkhscale.c:
13392         * gtk/gtkhscrollbar.c:
13393         * gtk/gtklayout.c:
13394         * gtk/gtkmisc.c:
13395         * gtk/gtkprogress.c:
13396         * gtk/gtkprogressbar.c:
13397         * gtk/gtkrange.c:
13398         * gtk/gtktable.c:
13399         * gtk/gtkviewport.c:
13400         * gtk/gtkvscale.c:
13401         * gtk/gtkvscrollbar.c:
13402         * gtk/gtkwidget.c:
13403         Property patches, based on patches from John Margaglione and Lee Mallabone.
13404
13405 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
13406
13407         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
13408         adjustment. Cleaned redundant preconditions (spin != NULL). Added
13409         inline API function docs.
13410         (gtk_spin_button_new_with_range): New convenience constructor.
13411         (gtk_spin_button_set_increments): New adjustment helper.
13412         (gtk_spin_button_set_range): New adjustment helper.
13413
13414         * gtk/testgtk.c : added test of the new convenince constructor and
13415         value_changed signals.
13416
13417 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
13418
13419         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
13420         listen to the reorder signal.
13421
13422 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
13423
13424         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
13425         to get the aux info structure fo the widget.
13426
13427         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
13428         above function.
13429
13430         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
13431
13432         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
13433         to get the size of the window manager frame, basically the same
13434         code that gdk_window_get_root_origin() had
13435         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
13436
13437         * gtk/gtkwindow.c (gtk_window_set_default_size): use
13438         gdk_window_resize() if the window is realized and resizeable
13439
13440         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
13441         typo so that setting gravity works
13442
13443         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
13444         allocation if auto_shrink is on, even if the default size
13445         has not changed.
13446
13447         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
13448         g_return_if_fail
13449
13450 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
13451
13452         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
13453         reordering/sorting work.  Now pretty much works.
13454
13455         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
13456         reorder mostly work.  Still need to get the parity correct.
13457
13458         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
13459         signal, so I can listen for the sort_column_changed signal so I
13460         can change my "sort_indicator" property.  Cool.
13461
13462 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
13463
13464         [ Patch from Havoc Pennington, hp@redhat.com ]
13465
13466         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
13467         Add functions gdk_window_begin_resize_drag/begin_move_drag
13468         to start resizing or moving a toplevel window. This
13469         is done either using the _NET_WM_MOVERESIZE protocol,
13470         or, if that isn't present, by emulation.
13471
13472         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
13473         to export the above to GTK+-land.
13474
13475         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
13476         
13477         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
13478         Move this function into gdkwindow, since we need it
13479         when implementing fallback resizing.
13480
13481         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
13482         Fix typo when setting gravity.
13483
13484         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
13485         Add an optional (but on by default) resize grip for resizing 
13486         the parent window.
13487
13488 01-03-29  Alexander Larsson  <alexl@redhat.com>
13489
13490         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
13491         Don't return TRUE from the event handler, that blocks all
13492         event signals on the tooltip widget. Now you can press buttons
13493         in toolbars again.
13494
13495 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
13496
13497         * gtk/testtext.c (create_buffer): Add missing NULL on
13498         valist.
13499
13500         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
13501         c-n-p problem with INCONSISTENT property.
13502
13503         [ Patch from Havoc Pennington  <hp@redhat.com> ]
13504
13505         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
13506         hook.
13507
13508         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
13509         signal as a hook for extending the default popup menu
13510
13511         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
13512         use radio menu items for the input method menuitems
13513
13514         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
13515         inserted unicode from Ctrl-Shift-hex input method
13516
13517         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
13518         validatation here, already done at GtkTextBuffer level.
13519
13520         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
13521         popup_menu run action signal and Shift+F10 and Menu keybindings.
13522
13523         * gtk/gtkentry.c: implement a default handler for popup_menu
13524
13525         * gtk/gtktextview.c: implement a default handler for popup_menu
13526
13527         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
13528         from a key event
13529         
13530         * gtk/gtklabel.c: remove "trailer" cruft
13531
13532 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
13533
13534         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
13535         handle reordering of trees.  Seems to mostly work w/ the exception
13536         of the parity flag.
13537
13538         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
13539         signal.
13540
13541 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
13542
13543         * gtk/gtkwidget.h: c++ fixes.
13544
13545 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
13546
13547         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
13548         memory.
13549
13550 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
13551
13552         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
13553         Nils Barth fixing event return values. (#51041)
13554
13555         * gtk/gtkwidget.c: Fix some return values for default
13556         functions.
13557
13558         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
13559         return values for trough_keys functions.
13560
13561         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
13562         value for add_accelerator (shoudl have been a void
13563         return.)
13564
13565         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
13566         Fix return type of EVENT.
13567
13568         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
13569         signal return a boolean.
13570
13571 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
13572
13573         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
13574         reordered signal.
13575
13576         * tests/testtreesort.c (main): fix spelling.
13577
13578 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
13579
13580         * gtk/gtkliststore.c: More work on implementing sortable
13581         interface.
13582
13583 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
13584
13585         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
13586         reference the widgets in the resulting list. (#11821)
13587         This makes this consistent with gtk_container_children.
13588
13589         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
13590         uses of gtk_window_list_toplevels.
13591
13592 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
13593
13594         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
13595         a virtual function to set whether the IM context should use 
13596         the preedit string. (#51922)
13597         
13598 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
13599
13600         * gdk/gdkpango.h: Remove stale FIXME comment.
13601
13602 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
13603
13604         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
13605         Fixed bug that returned NULL if a filename was selected.
13606
13607 2001-03-24  Havoc Pennington  <hp@pobox.com>
13608
13609         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
13610         to contain the word "theme"
13611
13612 2001-03-24  Havoc Pennington  <hp@pobox.com>
13613
13614         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
13615         slower but finer-grained
13616         (gtk_hsv_focus): get initial focus on the ring or triangle 
13617         according to tab direction
13618
13619         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
13620
13621 2001-03-23  Havoc Pennington  <hp@pobox.com>
13622
13623         * gtk/gtkhsv.c: make this somewhat key-navigable
13624
13625         * gtk/gtkfontsel.c: mnemonics
13626
13627         * gtk/gtkgamma.c: mnemonics
13628
13629         * gtk/gtkcolorsel.c: add mnemonics to labels
13630
13631 2001-03-22  Havoc Pennington  <hp@pobox.com>
13632
13633         Applied big patch from Seth Lytle to fix event handler return
13634         values, slightly modified.
13635
13636         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
13637         handled.
13638         (gtk_calendar_key_press): return TRUE for GDK_space triggers
13639         select_day
13640
13641         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
13642         (gtk_clist_button_release): return TRUE if handled
13643
13644         * gtk/gtkcolorsel.c (mouse_release):
13645         (palette_activate): 
13646         (palette_press): 
13647         (palette_new): 
13648         (mouse_press): 
13649         (get_screen_color): 
13650         fixed return type (void to gboolean), return TRUE,
13651         added GTK_SIGNAL_FUNC cast
13652
13653         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
13654         (void to gboolean), and return TRUE
13655         (gtk_combo_button_release): changed return value to TRUE after
13656         gtk_grab_add on combo->popwin
13657
13658         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
13659         collapse or expand
13660
13661         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
13662         button/motion
13663
13664         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
13665         press/release and motion that trigger act
13666
13667         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
13668
13669         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
13670         for GDK_Return
13671         
13672         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
13673         (gtk_list_button_release): return TRUE if selection
13674
13675         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
13676         press
13677
13678         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
13679         (gtk_menu_shell_button_release): chain parent_menu_shell retval
13680
13681         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
13682         nothing triggered
13683         (gtk_notebook_button_release): return TRUE if we do anything
13684
13685         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
13686         (gtk_spin_button_button_release): return TRUE or chained retval
13687
13688         * gtk/gtktext.c (gtk_text_button_press): 
13689         (gtk_text_button_release): return TRUE
13690         (gtk_text_key_press): remove redundant retval code
13691         
13692         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
13693         and sensitive
13694         (gtk_tree_item_subtree_button_click): changed type to gint, and return
13695         TRUE if sensitive
13696
13697         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
13698         return TRUE
13699
13700 2001-03-23  Havoc Pennington  <hp@redhat.com>
13701
13702         * gtk/testgtk.c: fix warnings
13703
13704         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
13705
13706         * gtk/gtktextview.c: fix warnings
13707
13708         * gtk/gtktext.c (find_cursor_at_line): fix warning
13709
13710         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
13711
13712         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
13713         of this function
13714
13715         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
13716         fix warning
13717
13718         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
13719
13720         * gtk/gtkfontsel.c: fix warning
13721
13722         * gtk/gtkcolorsel.c: fix warnings
13723
13724 2001-03-23  Havoc Pennington  <hp@redhat.com>
13725
13726         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
13727
13728         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
13729
13730         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
13731         and deprecated gtk_check_menu_item_set_show_toggle().
13732         
13733         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
13734
13735         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
13736
13737         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
13738
13739 2001-03-23  Havoc Pennington  <hp@redhat.com>
13740
13741         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
13742         some docs
13743
13744 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
13745
13746         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
13747         this.
13748
13749         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
13750         set_cell to set_value
13751
13752         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
13753         set_cell to set_value
13754
13755 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
13756
13757         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
13758         fix braino.
13759         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
13760         support.
13761
13762         * gtk/gtktreeview.c: Addition of initial sortable support.
13763
13764         * gtk/gtktreestore.c: Addition of initial sortable support.
13765
13766         * gtk/gtkliststore.c: Addition of initial sortable support.
13767
13768         * gtk/gtkmarshal.list: yet another marshaller.
13769
13770         * gtk/gtktreedatallist.[ch]: shared code between the store models
13771         for handling sorting headers.
13772
13773 2001-03-22  Havoc Pennington  <hp@redhat.com>
13774
13775         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
13776         (gtk_container_unset_focus_chain): Add ability to override the 
13777         focus chain for a container explicitly
13778
13779 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
13780
13781         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
13782         added PROP_MNEMONIC_WIDGET.
13783
13784         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
13785         (gtk_window_remove_mnemonic): 
13786         (gtk_window_add_mnemonic): fixed assertions.
13787         (gtk_window_activate_mnemonic): constrain modifier checks to those
13788         permitted by gtk_accelerator_get_default_mod_mask().
13789         got rid of gtk_window_get_default_accel_group().
13790
13791         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
13792         activatable widgets either by focussing or a warning.
13793         added a signal accumulator to ::activate_mnemonic which stops the
13794         emission once a handler returned TRUE.
13795
13796 2001-03-22  Havoc Pennington  <hp@pobox.com>
13797
13798         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
13799         the stock item label
13800
13801         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
13802
13803         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
13804
13805         * demos/gtk-demo/*.c: Add mnemonics all over the place
13806
13807         * gtk/gtklabel.h: mark parse_uline deprecated
13808
13809 2001-03-21  Alexander Larsson  <alexl@redhat.com>
13810
13811         * gtk/gtkitemfactory.[ch]:
13812         Add support for stock and normal imagemenuitems.
13813         
13814         * gtk/testgtk.c:
13815         Add some tests for mnemonics, stock toolbars, stock
13816         and image menuitems in itemfactory and gdk_window_scroll.
13817
13818 2001-03-21  Alexander Larsson  <alexl@redhat.com>
13819
13820         * gtk/gtkbutton.[ch]:
13821         * gtk/gtkdialog.c:
13822         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
13823         removed accel_group argument. Renamed gtk_button_new_accel() to
13824         gtk_button_new_with_mnemonic() and removed accel_group argument.
13825
13826         * gtk/gtkcheckbutton.[ch]:
13827         New function gtk_check_button_new_with_mnemonic().
13828
13829         * gtk/gtkentry.c:
13830         Override activate_mnemonic and just grab focus.
13831
13832         * gtk/gtkitemfactory.c:
13833         Don't add menu uline accel group, instead use mnemonics support.
13834
13835         * gtk/gtklabel.[ch]:
13836         New support for mnemonics.
13837
13838         * gtk/gtkmarshal.list:
13839         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
13840
13841         * gtk/gtkmenu.[c]:
13842         * gtkmenushell.c:
13843         Use mnemonics instead of accel groups for uline
13844         support in menu items.
13845         Removed gtk_menu_get_uline_accel_group() and
13846         gtk_menu_ensure_uline_accel_group().
13847
13848         * gtk/gtkmenuitem.c:
13849         Override activate_mnemonic to handle switching between
13850         menu items if there are collisions.
13851         
13852         * gtk/gtknotebook.c:
13853         Connect to activate_mnemonic on the tab_label, so that
13854         activating it switches to that notebook page.
13855
13856         * gtk/gtkwidget.[ch]:
13857         Add activate_mnemonic signal. New function
13858         gtk_widget_activate_mnemonic() to emit it.
13859         Default implementation does activate/grab_focus.
13860
13861         * gtk/gtkwindow.[ch]:
13862         Add support for mnemonics in windows.
13863         New functions:
13864         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
13865         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
13866
13867         * gtk/testgtk.c:
13868         Update to function name changes.
13869         
13870 2001-03-21  Alexander Larsson  <alexl@redhat.com>
13871
13872         * gtk/gtkimagemenuitem.[c]:
13873         Add gtk_image_menu_item_new_from_stock()
13874
13875 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
13876
13877         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
13878         Fix buglet in meeting.
13879
13880 2001-03-19  Havoc Pennington  <hp@redhat.com>
13881
13882         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
13883         add a bunch of accessor functions. This is because we have
13884         reasonable expectations of extending what fields it contains in
13885         the future.
13886
13887         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
13888         changes
13889
13890         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
13891         GtkIconSource   
13892
13893 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
13894
13895         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
13896         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
13897
13898         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
13899           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
13900           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
13901           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
13902         Change float to double everywhere with the exception of 0<->1.0 alignment
13903         and GtkCurve.
13904
13905 2001-03-19  Tor Lillqvist  <tml@iki.fi>
13906
13907         * gdk/win32/gdkdrawable-win32.c
13908         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
13909         output.
13910
13911         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
13912         gdkwin32.h.
13913
13914 2001-03-18  Tor Lillqvist  <tml@iki.fi>
13915
13916         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
13917         print_event_state, print_event): Use preprocessor macro to make
13918         code more compact. Print also GDK_WINDOW_STATE events.
13919         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
13920         
13921         * gtk/gtk.def
13922         * gtk/makefile.mingw.in: Update.
13923
13924         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
13925         to catch also Cygwin.
13926
13927 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
13928
13929         * gtk/gtkspinbutton.[hc]: added rc-style argument
13930         GtkSpinButton::shadow_type.
13931         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
13932         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
13933         rc-style settings.
13934
13935         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
13936
13937         * gtk/gtkwidget.c: quark cleanups.
13938
13939         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
13940         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
13941         to create_rc_style() (we don't do cloning in standard OO sense).
13942         added per rc style properties.
13943         
13944         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
13945         property values and for caching those. some cleanups.
13946         
13947         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
13948         
13949         * gtk/gtksettings.[hc]: new file for global rc-file properties
13950         (at least currently, should get extended to support X properties
13951         and other communication mechanisms).
13952         
13953         * gtk/gtkwidget.[hc]: added style property support:
13954         (gtk_widget_class_install_style_property_parser): install style
13955         property pspec with parser function for rc-file values other
13956         than LONG, DOUBLE or STRING.
13957         (gtk_widget_class_install_style_property): same as above without
13958         parser (parsers are going to be needed quite infrequently).
13959         (gtk_widget_style_get_property): retrive style property value.
13960         (gtk_widget_style_get_valist): same as above with varargs support,
13961         has NOCOPY semantics.
13962         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
13963
13964 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
13965
13966         * demos/gtk-demo/main.c (row_activated_cb): modified to use
13967         "row_activated" signal.
13968
13969         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
13970         stupidity.  Lets actually pass in the row with this signal...
13971
13972 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
13973
13974         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
13975
13976         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
13977
13978         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
13979         everything into the ::destroy function, and freed a lot more.
13980
13981 2001-03-16  Havoc Pennington  <hp@redhat.com>
13982
13983         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
13984         instead of gint16, to avoid overflow issues, since sizes > 16-bit
13985         are now allowed.
13986
13987 2001-03-16  Havoc Pennington  <hp@redhat.com>
13988
13989         * Applied patch from Nils Barth (bug # 51041) to 
13990         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
13991         in various places.
13992
13993 2001-03-15  Havoc Pennington  <hp@redhat.com>
13994         
13995         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
13996         for properties to set on the tag.
13997
13998         * gtk/testtext.c: fixups to reflect create_tag change
13999         
14000         * gtk/gtktexttag.c (gtk_text_tag_set_property):
14001         background/foreground stipple are objects, not boxed.
14002
14003         * demos/gtk-demo/textview.c: intellihancing
14004
14005 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
14006
14007         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
14008         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
14009
14010 2001-03-16  Alexander Larsson  <alexl@redhat.com>
14011
14012         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
14013         Fix sign error with queued region translations.
14014
14015 2001-03-15  HideToshi Tajima  <tajima@happy>
14016
14017         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
14018         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
14019         * gtk/gtkentry.c (update_im_cursor_location): 
14020         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
14021         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
14022         set_cursor_pos to set_cursor_location in GtkInputContext class
14023
14024 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
14025
14026         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
14027         the location of the cell relative to its area.
14028         * gtk/gtkcell*: modified for above change
14029         * gtk/gtktreeview.c: modified for above change.
14030
14031 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
14032
14033         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
14034          (gtk_tree_view_finalize): actually unref the model.  Thanks to
14035         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
14036
14037 2001-03-14  Havoc Pennington  <hp@redhat.com>
14038
14039         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
14040         
14041         * gtk/gtk.h: remove gtkdata.h
14042
14043         * gtk/Makefile.am: remove gtkdata
14044         
14045         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
14046         not "disconnect" on the adjustments.
14047         
14048         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
14049         GtkData
14050
14051         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
14052         not GtkData
14053
14054         * configure.in: handle case where X render exists, but Pango lacks
14055         Xft support.
14056
14057 2001-03-15 Alexander Larsson  <alexl@redhat.com>
14058
14059         * gtk/gtktoolbar.[ch]:
14060         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
14061         to add stock items to toolbars.
14062
14063         * gtk/Makefile.am:
14064         Remove ../gdk/gdkim.h from gdk_headers.
14065
14066 2001-03-15  Sven Neumann  <sven@gimp.org>
14067
14068         * gdk/gdkim.h: removed
14069         
14070         * gdk/gdkprivate.h
14071         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
14072
14073 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
14074
14075         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
14076         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
14077         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
14078         set_cursor_pos() virtual method
14079
14080         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
14081         (gtk_im_context_xim_set_cursor_pos): add implementation for
14082         set_cursor_pos() method
14083
14084         * gtk/gtkentry.c (recompute_idle_func): set current cursor
14085         position to input methods
14086
14087 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
14088
14089         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
14090         code a lot.
14091
14092         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
14093         g_mem_chunk.
14094         (_gtk_tree_data_list_alloc): use g_mem_chunk.
14095         (_gtk_tree_data_list_node_to_value): Fix to switch on
14096         G_TYPE_FUNDAMENTAL.
14097         (_gtk_tree_data_list_value_to_node): Fix to switch on
14098         G_TYPE_FUNDAMENTAL.
14099         (_gtk_tree_data_list_node_copy): Fix to switch on
14100         G_TYPE_FUNDAMENTAL.
14101
14102 2001-03-12  Havoc Pennington  <hp@redhat.com>
14103
14104         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
14105         to convert to new property API. Also, change default_width and
14106         default_height get_property to return 0 as the flag value for
14107         "unset"; -1 is not a valid value for these fields.
14108
14109 2001-03-12  Havoc Pennington  <hp@redhat.com>
14110
14111         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
14112         enum with registration for icon sizes, instead of strings.
14113
14114         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
14115         gtkwidget.c: Fix to reflect GtkIconSize
14116         
14117 2001-03-12  Alexander Larsson  <alexl@redhat.com>
14118
14119         Make GtkFB compile and link.
14120         
14121         * gdk/linux-fb/gdkdrawable-fb2.c:
14122         window->mapped to GDK_WINDOW_IS_MAPPED(). 
14123         
14124         * gdk/linux-fb/gdkwindow-fb.c:
14125         window->mapped to GDK_WINDOW_IS_MAPPED(). 
14126         Added gdk_window_shape_combine_region.
14127         Added assorted placeholders for unimplemented new GdkWindow API calls.
14128
14129 2001-03-12  Alexander Larsson  <alexl@redhat.com>
14130
14131         * gtk/gtkfilesel.c:
14132         Add more test when converting filenames from/to utf-8.
14133         Don't allow entering text in the filename entry which isn't allowed in
14134         a filename. Just beep instead.
14135
14136 2001-03-12  Alexander Larsson  <alexl@redhat.com>
14137
14138         * gtk/gtkclist.c:
14139         Scroll using gdk_window_scroll(). Don't wait for exposes.
14140         Move the column headers in an order that makes them flash less.
14141
14142 2001-03-10  Hans Breuer  <hans@breuer.org>
14143
14144         * gdk/gdk.def : updated
14145
14146         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
14147         to offseting the clip_mask at the right place
14148
14149         * gdk/win32/gdkwindow-win32.c : don't create background brushes
14150         for all the gdkClasses, especially not for the input_only case.
14151         Otherwise flickering wont be avoidable, because we don't get
14152         WM_ERASEBKGND message for these windows.
14153
14154         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
14155         and fixed massive redraw problems apparently triggered by Alexanders 
14156         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
14157         but it seems to work quite well :-)
14158
14159         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
14160         prototype
14161
14162 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
14163
14164         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
14165         (gtk_list_store_set_cell): Fix a stupid typo.
14166
14167 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
14168
14169         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
14170         select_all not work if you're in SINGLE mode (it doesn't make that
14171         much sense, anyway.)
14172
14173         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
14174         handle types more sanely.
14175         (_gtk_tree_data_list_value_to_node): handle types more sanely.
14176         (_gtk_tree_data_list_node_copy): handle types more sanely.
14177
14178         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
14179         GValue better. Converts the type as well.
14180
14181         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
14182         GValue better. Converts the type as well.
14183
14184 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
14185
14186         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
14187         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
14188         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
14189         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
14190
14191         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
14192         gdk_im/gdk_ic.
14193
14194 2001-03-09  Hans Breuer  <hans@breuer.org>
14195
14196         * gdk/gdk.def : updated
14197
14198         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
14199         for their palette
14200
14201         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
14202         removing
14203
14204         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
14205         removing and implemented Havoc's GdkWindow state functions; 
14206         stick/unstick only as no-op, cause I don't know how to emulate 
14207         on win32 ...
14208
14209         * gtk/gtk.def : updated
14210
14211         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
14212
14213         * gtk/gtktypeutils.c : #include <string.h>
14214
14215         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
14216
14217 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
14218
14219         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
14220         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
14221         not a boxed.
14222
14223 2001-03-09  Alexander Larsson  <alexl@redhat.com>
14224
14225         * docs/Changes-2.0.txt:
14226         Document expose event->region change and that gtk_widget_event
14227         doesn't allow passing expose events.
14228
14229         * gdk/gdkevents.h:
14230         Add region to expose event.
14231         
14232         * gdk/gdkevents.c:
14233         Handle event->region in gdk_event_copy() and gdk_event_free().
14234
14235         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
14236         Generate expose_event->region when creating expose events.
14237
14238         * gdk/x11/gdkevents-x11.c:
14239         Generate expose events with regions when translating X events.
14240
14241         * gtk/gtkcontainer.[ch]:
14242         Default expose handler that propagates expose events to NO_WINDOW
14243         children. New function gtk_container_propagate_expose()
14244
14245         * gtk/gtkwidget.[ch]:
14246         Moved gtk_widget_event implementation to gtk_widget_event_internal.
14247         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
14248         expose events. New function gtk_widget_send_expose() to send expose
14249         events. New function gtk_widget_region_intersect() to calculate
14250         window/region intersections.
14251         
14252         * gtk/gtkmain.c (gtk_main_do_event):
14253         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
14254         Use gtk_widget_send_expose() to send expose events.
14255         
14256         * gtk/gtkbin.c:
14257         * gtk/gtkbox.c:
14258         * gtk/gtkfixed.c:
14259         * gtk/gtkimagemenuitem.c:
14260         * gtk/gtklist.c:
14261         * gtk/gtkpacker.c:
14262         * gtk/gtktable.c:
14263         * gtk/gtktree.c:
14264         Remove expose handler, using the default container implementation
14265         instead.
14266         
14267         * gtk/gtkbutton.c:
14268         * gtk/gtkcheckbutton.c:
14269         * gtk/gtkeventbox.c:
14270         * gtk/gtkfixed.c:
14271         * gtk/gtkhandlebox.c:
14272         * gtk/gtklayout.c:
14273         * gtk/gtklistitem.c:
14274         * gtk/gtkmenu.c:
14275         * gtk/gtkmenubar.c:
14276         * gtk/gtkmenuitem.c:
14277         * gtk/gtknotebook.c:
14278         * gtk/gtkoptionmenu.c:
14279         * gtk/gtkpaned.c:
14280         * gtk/gtkscrolledwindow.c:
14281         * gtk/gtktogglebutton.c:
14282         * gtk/gtktoolbar.c:
14283         * gtk/gtktreeitem.c:
14284         * gtk/gtkviewport.c:
14285         Chain expose handler to parent class handler. Use
14286         gtk_container_propagate_expose() to propagate exposes.
14287
14288         * gtk/gtkclist.c (check_exposures):
14289         * gtk/gtktext.c (process_exposes):
14290         Use gtk_widget_send_expose instead of gtk_widget_event.
14291
14292 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
14293
14294         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
14295
14296 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
14297
14298         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
14299         unref the nodes.   Fixes bug #50058.
14300
14301         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
14302         "::ref_iter" to "::ref_node".
14303         (gtk_tree_model_unref_node): change "::unref_iter" to
14304         "::unref_node". Fixes bug #50064.
14305
14306 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
14307
14308         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
14309         support for invisible cells.
14310          (gtk_tree_view_bin_expose): ditto
14311
14312 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
14313
14314         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
14315         on gobjects.
14316
14317         * tests/testtreefocus.c (main): New test file.
14318
14319         * tests/testtreeview.c: update to latest glib changes.
14320
14321         * tests/testtreecolumns.c: update to latest glib changes.
14322
14323 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
14324
14325         * gtk/testgtk.c: re-enabled event watcher emission hooks.
14326
14327 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
14328
14329         * *.c: added accumulator data argument to g_signal_newc()
14330         functions.
14331
14332         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
14333         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
14334         * gtk/treestoretest.c (make_window):
14335         s/g_signal_connect/g_signal_connectc/.
14336
14337         * gtk/gtktextbuffer.c: completed signal arg fixups,
14338         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
14339
14340 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
14341
14342         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
14343         G_CONST_RETURN.
14344
14345         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
14346         ::hierarchy-changed signal when a widget changes
14347         from anchored to unanchored or vice versa.
14348         (anchored means 
14349          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
14350         Use a private flag to keep track of this efficiently.
14351
14352 2001-03-07  Havoc Pennington  <hp@redhat.com>
14353
14354         * gtk/testgtk.c (create_spins): uglify so that size request gets
14355         tested.
14356
14357         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
14358         request on values for upper/lower, completes #6152
14359
14360 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
14361
14362         * Makefile.am: Remove gtk-config-2.0 again.
14363         (Grrrr, pkg-config. And stops make loops.)
14364
14365 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
14366
14367         * gtk/gtksignal.[hc]: removed old emission hook API.
14368         
14369         * docs/Changes-2.0.txt: fixed sections.
14370         
14371         * gtk/gtktextbuffer.c: signal arg fixups.
14372
14373 2001-03-07  Havoc Pennington  <hp@redhat.com>
14374
14375         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
14376
14377         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
14378         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
14379         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
14380         validation and the redraw which is higher priority than the
14381         validation.
14382
14383 2001-03-07  Havoc Pennington  <hp@redhat.com>
14384
14385         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
14386         (gtk_entry_set_property): remove trailer
14387
14388         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
14389         (gtk_entry_get_width_chars): new functions, to set size request to 
14390         a given number of characters
14391
14392         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
14393
14394         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
14395         (gtk_dialog_get_has_separator): new function
14396         (run_delete_handler): fix to not emit "response" signal
14397         because we already did in the delete event handler installed
14398         at dialog creation time.
14399         
14400         * gtk/gtkdialog.h: add a has_separator property,
14401         add GTK_DIALOG_NO_SEPARATOR flag
14402
14403 2001-03-07  Havoc Pennington  <hp@redhat.com>
14404
14405         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
14406         off decorations for a window.
14407
14408         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
14409         changes
14410
14411         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
14412         to get location of PangoLayout inside the label, closes #51198
14413
14414         * gtk/testgtk.c (create_bbox): fix up button box usage
14415
14416         * gtk/testcalendar.c (create_calendar): fix up button box usage
14417
14418         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
14419
14420         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
14421
14422         * gtk/gtkhbbox.h: deprecations
14423
14424         * gtk/gtkvbbox.h: deprecations
14425
14426         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
14427         emulate deprecated gtk_button_box_get_spacing
14428
14429         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
14430         the "set global default" functions
14431         (struct _GtkButtonBox): remove "spacing" field, use the one from 
14432         GtkBox base class
14433
14434         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
14435
14436         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
14437         render the icon, return the missing image icon.
14438
14439         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
14440         image icon if the load fails.   
14441
14442         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
14443         when no image is found; should be the Netscape "missing image"
14444         icon eventually but for now is a random image
14445
14446         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
14447         role for the session manager
14448
14449         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
14450
14451         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
14452         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
14453
14454         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
14455
14456 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
14457
14458         * gtk/*.c: marshaller fixes.
14459         
14460         * gtk/gtkmarshal.list: extreme cleanup.
14461
14462         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
14463         param spec for now.
14464
14465         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
14466         where appliable.
14467
14468         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
14469         special cased autogenerated boxed types from gtktypebuiltins_ids.c
14470         which are not reference counted:
14471         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
14472         PangoFontDescription, GtkTreeIter and GtkTreePath.
14473
14474 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
14475
14476         * gtk/gtktreeselection.h: 
14477         * gtk/gtktreemodel.c:
14478         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
14479         file should be included directly, and gobject/gmarshal.h
14480         as well as gtk/gtkmarshal.h even can't be included directly.
14481
14482         * Makefile.am: grr, install gtk-config-2.0.
14483
14484         * gtk/testgtk.c:
14485         * gtk/simple.c:
14486         * gtk/gtkmenu.c:
14487         * gtk/gtkitemfactory.c: use g_object_connect() instead of
14488         passing "*signal*::*" args to gtk_widget_set().
14489         
14490         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
14491         
14492         * gtk/*.c: removed trailer arg from property setters and getters.
14493         macro fixups.
14494
14495 2001-03-07  Alexander Larsson  <alexl@redhat.com>
14496
14497         * gtk/gtklabel.c (set_markup): Removed warning
14498
14499 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
14500
14501         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
14502         field to allow you to hide cell renderers.
14503
14504         * gtk/gtkcellrenderer.c: Add support for invisible cells.
14505
14506         * gtk/gtktreeview.c: Add support for invisible cells.
14507
14508 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
14509
14510         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
14511         Add "clicked" signal back to columns.
14512
14513         * ChangeLog: remove conflict markers.
14514
14515 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
14516
14517         * gtk/gtkbutton.c: Add animation of activation by, on 
14518         activate, pressing the button, and adding a timeout that 
14519         releases the button after 250ms or on key release and
14520         emits ::clicked. (#51501)
14521
14522         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
14523         action area, we connect to ::clicked instead of ::activate
14524         so the dialog stays up through the animation.
14525
14526 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
14527
14528         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
14529         check the ignore_enter flag for the menu shell that
14530         the item is actually a child of, not for attached
14531         submenus. (#51536)
14532
14533 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
14534
14535         * gtk/gtkmain.c (gtk_propagate_event): Only do special
14536         special key-press grab handling for widgets within
14537         GtkWindows. Otherwise, fall through to normal case.
14538
14539         This prevents key events being sent twice to GtkInvisible
14540         widgets, which can cause all sorts of mischief.
14541
14542 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
14543
14544         * gtk/gtkmain.c (gtk_propagate_event): When a grab
14545         widget is in effect, give the grab widget a first
14546         crack at KEY_PRESS/RELEASE events. (#424)
14547
14548 2001-03-06  James Henstridge  <james@daa.com.au>
14549
14550         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
14551         offset for the window_state_event to point at window_state_event
14552         rather than no_expose_event.
14553
14554 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
14555
14556         * gtk/gtkimmodule.h: fix busted /* comment */
14557
14558 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
14559
14560         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
14561         object properties.
14562
14563 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
14564
14565         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
14566         add object properties.
14567
14568         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
14569         to add object properties.
14570
14571         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
14572         object properties.
14573
14574         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
14575         add object properties.
14576
14577         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
14578         object properties.
14579
14580 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
14581
14582         * gtk/gtktreemodel.c: renamed "child_toggled" to
14583         "has_child_toggled".
14584
14585         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
14586         handle new signal name.
14587
14588         * gtk/gtktreestore.c: Updated to handle new signal name.
14589         * gtk/gtklisttore.c: Updated to handle new signal name.
14590         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
14591
14592 2001-03-05  Alexander Larsson  <alexl@redhat.com>
14593
14594         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
14595         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
14596
14597 2001-03-05  Michael Natterer  <mitch@gimp.org>
14598
14599         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
14600         pixbuf-engine coincidentially also failed to make one of it's
14601         parent_class pointers static, causing overwriting of GtkLabel's
14602         parent_class pointer in pixbuf_style_class_init().
14603         (Will commit the fix to the pixbuf-engine too).
14604
14605 2001-03-05  Alexander Larsson  <alexl@redhat.com>
14606
14607         * gdk/gdkwindow.h:
14608         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
14609         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
14610         gdk_window_set_icon_list for net wmspec functionality.
14611
14612         * gdk/x11/gdkwindow-x11.c:
14613         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
14614         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
14615         gdk_window_set_icon_list.
14616         Added gdk_wmspec_change_state helper function and used it in the code.
14617         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
14618
14619         * gtk/gtkdialog.c (gtk_dialog_init):
14620         Set GDK_WINDOW_TYPE_HINT_DIALOG.
14621
14622         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
14623         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
14624
14625         * gtk/gtkwindow.c:
14626         new function gtk_window_set_type_hint.
14627         On realize, set type hint and modal hint.
14628
14629         * gtk/gtkwindow.h:
14630         Added type_hint field and gtk_window_set_type_hint.
14631
14632 2001-03-05  Alexander Larsson  <alexl@redhat.com>
14633
14634         * gtk/gtklabel.[ch]:
14635         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
14636         New function gtk_label_get_accel_keyval () to get the underline accelerator
14637         of the label. Setting the label pattern overrides other attributes.
14638
14639 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
14640
14641         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
14642         Added missing initializers to gtk_rc_style_init().
14643
14644 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
14645
14646         * gtk/gtktextview.c: fixed bug #51097 about setting 
14647         gtk_text_view_set_border_window_size() if the widget is 
14648         already realized.
14649
14650 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
14651
14652         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
14653
14654         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
14655         comment. Won't do to have duplicated doc comments between
14656         the platform subdirs.
14657
14658 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
14659
14660         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
14661           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
14662
14663         Detectable auto-repeat - make a repeating key generate
14664         press/press/press/release instead of press/release pairs.
14665
14666         If we have Xkb and XkbSetDectableAutoRepeat supports
14667         that, we do it that way. Otherwise, when we get
14668         a release event, we check ahead with XPending to see
14669         if the next key is a KeyPress with the same keycode
14670         and timestamp. (Not 100% reliable, but pretty close.)
14671           
14672 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
14673         
14674         * gtk/gtkmain.c (gtk_propagate_event): Only do special
14675         special key-press grab handling for widgets within
14676         GtkWindows. Otherwise, fall through to normal case.
14677  
14678         This prevents key events being sent twice to GtkInvisible
14679         widgets, which can cause all sorts of mischief.
14680  
14681 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
14682  
14683         * gtk/gtkmain.c (gtk_propagate_event): When a grab
14684         widget is in effect, give the grab widget a first
14685         crack at KEY_PRESS/RELEASE events. (#424)
14686  
14687 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
14688
14689         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
14690         to extend the selection. (Roughly based on patch
14691         from Jay Cox, #50939)
14692
14693         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
14694         to properly handle previous GDK_BUTTON_PRESS. 
14695         (Patch from Jay Cox, #50938)
14696
14697         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
14698         '\0' back along with the deleted text. (#51148)
14699
14700 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
14701
14702         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
14703         the group when extracting it from the X keyboard event.
14704
14705         * modules/input/Makefile.am modules/input/imipa.c: 
14706         Simple module for entering IPA. (Do we need a 
14707         gtk-stupid-input-tricks CVS module?)
14708
14709 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
14710
14711         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
14712         const.
14713
14714         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
14715
14716         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
14717         is no focus widget for the dialog currently, grab the focus as well
14718         as the default.
14719
14720         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
14721         the action area's children to iterate through, not the
14722         dialog's children.
14723
14724 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
14725
14726         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
14727         Add plug-socket tests. (Won't work worth a darn until I commit
14728         the rest of the plug-socket changes, but no reason these
14729         can't go into CVS now.)
14730
14731 2001-03-02  Havoc Pennington  <hp@redhat.com>
14732
14733         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
14734         _gdk_region_get_xrectangles()
14735
14736         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
14737
14738         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
14739
14740         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
14741         function, contributed by Ron Steinke    
14742
14743         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
14744         gdk_net_wm_supports
14745
14746         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
14747         New function, contributed by Ron Steinke
14748
14749         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
14750         used to line up the text in the entry when using the entry for
14751         editable sheet cell hacks
14752
14753         * gtk/testgtk.c (create_entry): test the activate_default setting
14754         on GtkEntry
14755
14756         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
14757         cause the entry to activate the default button for a dialog when 
14758         activated
14759         (gtk_entry_get_activates_default): new function
14760
14761 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
14762
14763         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
14764         Hwang to move call to sync_selection() up a few lines
14765         to before the row list is modified, to fix crash when
14766         removing rows in the undo_selection list.
14767
14768         (Test case provided by Daniel Elstner:
14769
14770         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
14771
14772 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
14773
14774         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
14775         of tree->root_tree in parent_set rather than _map(), 
14776         fixing #50892 in a bit better manner.
14777
14778 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
14779
14780         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
14781
14782 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
14783
14784         * gtk/gtkstyle.c : Remove duplicate fwd decl for
14785         gtk_default_draw_shadow.
14786
14787 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
14788
14789         * gdk/gdkimage.c (gdk_image_new): Remove excess 
14790         warning, make warnings more verbose, treat a error
14791         in shmat as permanent, and don't try again.
14792         (#51163, Ed Randall.)
14793
14794 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
14795
14796         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
14797         delay for the first click before starting to scroll.
14798         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
14799
14800         * gtk/gtktext.c: GtkText should have I-beam cursor. 
14801         (based on gtk-enf-990513-1.patch, Eric Fisher.)
14802
14803 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
14804
14805         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
14806         cleanup to remove some references to unused
14807         ->xoffset, ->yoffset.
14808
14809 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
14810
14811         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
14812         mask. (#51039, fix from Martin Maierhofer)
14813
14814 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
14815
14816         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
14817         for unshifted + and shifted = for non-us keyboards.
14818         Make <Control>+ and <Control>- work as well as 
14819         <Control>KP_Plus, <Control>KP_Minus for recursive
14820         open/close.  (#2682, René Seindal)
14821
14822 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
14823
14824         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
14825         the active menu item before deactivating the menu,
14826         so gtk_menu_popdown doesn't change the history. (#50964)
14827         
14828 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
14829
14830         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
14831         draw lines with text_gc rather than black_gc.
14832         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
14833
14834 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
14835
14836         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
14837         Move handling of buttons fully in gtktreeviewcolumn.  This code is
14838         less interrelated then it was, but it still requires the
14839         GtkTreeView to map it.
14840
14841         * test/testtreecolumn.c: Now I can add a column to one view,
14842         remove it, add it to the another view, remove it, then re-add it
14843         to the first.  Nifty.
14844
14845 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
14846
14847         * docs/tutorial/gtk-tut.sgml: Minor corrections
14848
14849 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
14850
14851         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
14852         GtkRowReference.
14853
14854 2001-02-28  Havoc Pennington  <hp@redhat.com>
14855
14856         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
14857         draw_default
14858         (gtk_widget_draw_focus): remove this function; we could instead
14859         make it just gtk_widget_draw(), but in most cases I think the
14860         result would be broken user code, so think it's better to have
14861         that code not compile and get fixed
14862         (gtk_widget_draw_default): ditto
14863
14864         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
14865         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
14866         
14867         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
14868         widgets lose/get the default, instead of calling draw_default
14869         
14870         * docs/Changes-2.0.txt: note about all this
14871
14872         Then fixed every widget in GTK, I won't list all the filenames.
14873
14874 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
14875
14876         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
14877         _gtk_tree_row_reference_deleted.
14878         (inserted_callback): Proxy out to
14879         _gtk_tree_row_reference_inserted.
14880         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
14881         get around signal emission ordering problem.
14882
14883         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
14884         fix to work with SINGLE 
14885         (_gtk_tree_selection_internal_select_node): Major sanitization on
14886         selections.  SINGLE now seems to work.
14887
14888         * tests/Makefile.am: add testtreecolumn.c:
14889
14890         * tests/testtreecolumn.c: New test.  Mostly points out selection
14891         bugs currently, but will test columns later.
14892
14893         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
14894         selection bug.  I hate touching this code -- it's scary.
14895
14896 2001-02-26  Havoc Pennington  <hp@redhat.com>
14897
14898         * gtk/testgtk.c: test the window state stuff
14899
14900         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
14901         window come to the user's attention as if it were just created
14902         (gtk_window_iconify): new function
14903         (gtk_window_deiconify): new function
14904         (gtk_window_stick): new function
14905         (gtk_window_unstick): new function
14906         (gtk_window_maximize): new function
14907         (gtk_window_unmaximize): new function
14908
14909         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
14910
14911         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
14912
14913         * gdk/x11/gdkevents-x11.c: create window state events when
14914         appropriate
14915         (gdk_wmspec_supported): new function
14916
14917         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
14918         iconification before showing the window
14919         (gdk_window_deiconify): new function
14920         (gdk_window_stick): new function
14921         (gdk_window_unstick): new function
14922         (gdk_window_maximize): new function
14923         (gdk_window_unmaximize): new function
14924
14925         * gdk/gdkwindow.c: store the window state in the window; 
14926         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
14927         window->mapped.
14928         (gdk_window_get_state): return the current window state
14929
14930         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
14931         (gdk_event_get_state): handle GDK_WINDOW_STATE
14932         (gdk_synthesize_window_state): function to create the window state
14933         events
14934
14935         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
14936         event, for changes to "window state" such as maximized, sticky, 
14937         etc.
14938         
14939         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
14940         focuses a window
14941
14942         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
14943         finds out if we support a given WM spec hint
14944
14945 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
14946
14947         * docs/faq/gtk-faq.sgml: New question re memory leaks.
14948
14949 2001-02-25  Hans Breuer  <hans@breuer.org>
14950
14951         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
14952         cause we want to loose those prototypes only in the latter case
14953
14954         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
14955         GdkPixmapImplWin32 because it itsn't derived from it. Use the
14956         impl member variable instead
14957
14958         * gtk/gtk.def : updated
14959
14960         * gtk/gtklist.c : 
14961         * gtk/gtkmenus.c : include <string.h> for memset ()
14962
14963         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
14964         for everthing built here, but for gtk-x.x.dll only. This solves
14965         problem of indifferent gtk type definitions
14966
14967 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
14968
14969         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
14970
14971 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
14972
14973         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
14974         column that is exposed.
14975
14976         (_gtk_tree_view_update_size): Changed name from set_size, and
14977         changed function to do more work, and not force people calling it
14978         to figure out the size.  Simplifies a lot of code elsewhere.
14979
14980 2001-02-23  Alexander Larsson  <alexl@redhat.com>
14981
14982         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
14983         return solid masks for xpms that have no transparent color.
14984         This makes the ..._create_from_xpm... API backwards
14985         compatible.
14986
14987 2001-02-23  Tor Lillqvist  <tml@iki.fi>
14988
14989         * README.win32: Update. Mention the gtk-1-3-win32-production
14990         branch.
14991
14992         * gdk/win32/bdfcursor.c: New file. A program that generates
14993         xcursors.h. Thanks to Stefan Ondrejicka.
14994
14995         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
14996         compact format.
14997
14998         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
14999
15000         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
15001         function, uses xcursors.h.
15002         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
15003         cursor from inline data instead of using LoadCursor() to generate
15004         it from a resource.
15005
15006         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
15007         event, must check the Windows message for mouse button state, as
15008         the GDK event state might not have been built if it is
15009         undelivered. Remove one goto.
15010
15011         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
15012         SetCursor() if the current cursor as returned by GetCursor() is
15013         the window's previous cursor. The ChildWindowFromPoint() test
15014         apparently didn't work correctly.
15015
15016         * gdk/win32/rc/*.cur: Remove.
15017
15018         * gdk/win32/rc/gdk.rc.in: Remove cursors.
15019
15020         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
15021
15022         * gtk/makefile.{mingw,msc}.in: Updates.
15023
15024 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
15025
15026         * gtk/gtktreemodel.h: add functions for signal emission.
15027
15028         * gtk/gtktreestore.c: move to use above functions instead of
15029         g_signal_emit.
15030
15031         * gtk/gtkliststore.c: ditto
15032
15033 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
15034
15035         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
15036         GObject instead of GtkObject.
15037
15038         * gtk/gtkliststore.c: ditto.
15039
15040         * gtk/gtktreemodelsort.c: ditto.
15041
15042         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
15043         GtkTreeModelIface, instead of in each model.
15044
15045 2001-02-21  Havoc Pennington  <hp@redhat.com>
15046
15047         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
15048         unbreak this function
15049
15050         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
15051         properties
15052
15053         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
15054         properties
15055
15056         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
15057         properties
15058
15059         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
15060         mean unset the max length
15061
15062 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
15063
15064         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
15065         Changed name to be set_cell_data_func to make it clear what
15066         the functino does.  Close bug #51069.
15067
15068 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
15069
15070         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
15071         have memory actually freed.  Keeps box running longer.
15072
15073 2001-02-21  Alexander Larsson  <alexl@redhat.com>
15074         
15075         * gtk/gtkseparatormenuitem.[ch]:
15076         Added new menu separator item. The drawing and size handling
15077         is still done in GtkMenuItem, but the API is a bit more sane.
15078         
15079         * gtk/Makefile.am:
15080         Add gtkseparatormenuitem.[ch].
15081
15082         * gtk/gtk.h:
15083         Add gtkseparatormenuitem.h.
15084         
15085         * gtk/gtkentry.c:
15086         * gtk/gtkmenufactory.c:
15087         * gtk/gtktextview.c:
15088         Use the new API for menu separators.
15089         
15090         * demos/gtk-demo/menus.c (create_menu):
15091         Add some GtkSeparatorMenuItem demo code.
15092
15093 2001-02-20  Havoc Pennington  <hp@redhat.com>
15094
15095         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
15096         Lee Mallabone
15097
15098         * gtk/gtkarrow.c: Convert to new property API, patch from 
15099         Lee Mallabone
15100
15101 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
15102
15103         * tests/testtreeview.c (toggled_callback): fix to reflect change
15104         in GtkTreeModelStore.
15105
15106 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
15107
15108         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
15109         function to create an icon set from a pixbuf.
15110
15111 2001-02-20  Alexander Larsson  <alexl@redhat.com>
15112
15113         * gtk/gtkcellrenderertext.[ch]:
15114         Add a "markup" property.
15115
15116         * gtk/treestoretest.c:
15117         Use the markup property, remove some leftover stuff from
15118         GtkTreeModelMapping.
15119
15120 2001-02-20  Alexander Larsson  <alexl@redhat.com>
15121
15122         * gtk/gtklabel.c (gtk_label_set_selectable):
15123         Queue a redraw if the selectable setting was changed.
15124
15125 2001-02-20  Alexander Larsson  <alexl@redhat.com>
15126
15127         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
15128         Actually copy the whole gc, not just the public parts.
15129         
15130         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
15131         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
15132         labels.
15133
15134 2001-02-19  Havoc Pennington  <hp@pobox.com>
15135
15136         * gdk/gdkwindow.c: docs
15137
15138         * gdk/gdkrgb.c: docs
15139
15140         * gdk/gdkregion-generic.c: docs
15141
15142         * gdk/gdkgc.c (gdk_gc_set_values): docs
15143
15144         * gdk/gdkdraw.c: docs
15145
15146         * gdk/gdkdrawable.h: deprecate drawable get/set data
15147
15148 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
15149
15150         * demos/gtk-demo/dialog.c: Add simple new demo.
15151
15152 2001-02-19  Havoc Pennington  <hp@redhat.com>
15153
15154         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
15155         insert_child_anchor signal, bug #50245
15156
15157         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
15158         from create_child_anchor, so the anchor is passed in
15159
15160         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
15161         (_gtk_widget_segment_new): have the child anchor object passed in, 
15162         instead of creating it.
15163
15164         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
15165         to gtk_text_buffer_get_modified
15166
15167 2001-02-19  Havoc Pennington  <hp@redhat.com>
15168
15169         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
15170         changed GLib without fixing GTK
15171
15172         * gtk/gtkrange.h: Rename all the stupid implementation detail 
15173         functions to have an underscore in front. Most of them should 
15174         probably just go away, but for starters don't export them.
15175         Bug #50482
15176
15177 2001-02-19  Havoc Pennington  <hp@redhat.com>
15178
15179         * gdk/gdkcolor.h: test was backward, so deprecated functions were
15180         excluded by default
15181
15182         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
15183         clean up the old code a bit
15184
15185         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
15186         inconsistent state
15187
15188         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
15189         draw inconsistent state
15190
15191         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
15192         (create_menu): add inconsistent test
15193
15194         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
15195         new function
15196         (gtk_check_menu_item_get_inconsistent): new function
15197         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
15198         state (using etched in for now)
15199
15200         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
15201         draw inconsistent state
15202
15203         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
15204         function, used when the user has selected a range of stuff in
15205         different states
15206         (gtk_toggle_button_get_inconsistent): accessor for that
15207         (gtk_toggle_button_paint): draw inconsistent state (etched in?
15208         don't know what else to do)
15209
15210 2001-02-19  Hans Breuer <hans@breuer.org>
15211
15212         * gtk/gtk.def : updated exported symbols
15213
15214         * gtk/makefile.msc.in : updated
15215
15216         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
15217         a colormap, when invoked from testgtk::entry. I'm not sure where
15218         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
15219         avoids immediate crashing ...
15220
15221         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
15222         any objections ?
15223
15224         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
15225         0 parameter. At least msvc doesn't like macros with var args. 
15226         I simply removed the extra 0, was it a feature or a typo ?
15227
15228         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
15229         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
15230         because the value assignment to the internal struct wasn't working.
15231         I'm not absolutely sure. The problem could have been resolved by
15232         changing the "func" declartion in the struct, but was the pointer
15233         to the function pointer intended ?
15234
15235         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
15236
15237         * gdk/gdk.def : updated exported symbols
15238
15239         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
15240         only use SetDIBitsToDevice if there is a palette at the drawable
15241         and the image is GDK_VISUAL_PSEUDO_COLOR
15242
15243         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
15244
15245         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
15246
15247         * gdk/*/makefile.msc : updated
15248
15249 2001-02-19  Havoc Pennington  <hp@redhat.com>
15250
15251         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
15252         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
15253
15254         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
15255         (gdk_key_repeat_restore): nuke
15256
15257         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
15258         (gdk_init_check): no atexit func
15259
15260         * gdk/gdkrgb.h: mark some stuff deprecated
15261
15262         * gdk/gdkcolor.h: mark some stuff deprecated
15263         
15264         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
15265
15266         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
15267
15268 2001-02-16  Havoc Pennington  <hp@redhat.com>
15269
15270         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
15271         scroll steps.
15272
15273         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
15274         steps, and add Ctrl-arrow shortcuts for paging visually as with
15275         HScale, since Page Up and Page Down move logically.
15276
15277         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
15278         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
15279         
15280         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
15281         steps
15282         (gtk_range_scroll): handle the visual steps
15283
15284         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
15285         scroll steps
15286
15287         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
15288         steps, not the logical ones.
15289
15290         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
15291         (scroll_vertical): handle up/down steps
15292
15293 2001-02-19 Alexander Larsson  <alexl@redhat.com>
15294
15295         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
15296         Copy data and free data with free().
15297
15298         * gdk-pixbuf/gdk-pixbuf.c:
15299         * gdk-pixbuf/io-jpeg.c:
15300         * gdk-pixbuf/io-png.c:
15301         Use g_try_malloc/g_free instead malloc/free.
15302         
15303         * gdk-pixbuf/test-gdk-pixbuf.c:
15304         Must... initialize... gobject...
15305         
15306         * gdk-pixbuf/pixops/timescale.c:
15307         * gtk/gtkcalendar.c:
15308         Use g_malloc instead of malloc.
15309         
15310 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
15311
15312         * gtk/testgtkrc:
15313         Comment out property assignments, these don't work yet.
15314
15315 2001-02-17  Havoc Pennington  <hp@pobox.com>
15316
15317         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
15318         bit.
15319
15320 2001-02-17  Havoc Pennington  <hp@pobox.com>
15321
15322         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
15323         shadowed variables that had broken size request in some cases,
15324         leading to bogus tooltips (#50996)
15325
15326 2001-02-06  Jon K Hellan  <hellan@acm.org>
15327
15328         Implement fast browsing of tooltips, bug #50619
15329         
15330         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
15331         and last_popdown
15332         
15333         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
15334         use_sticky_delay and last_popdown.
15335         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
15336         time of popdown.
15337         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
15338         is NULL.
15339         (gtk_tooltips_recently_shown): New static function.  Return true
15340         if < sticky_delay has elapsed since last popdown.
15341         (gtk_tooltips_event_handler): Display window after sticky_delay
15342         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
15343         since last popdown.
15344         
15345 2001-02-17  Havoc Pennington  <hp@pobox.com>
15346
15347         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
15348         instead of (). #6394
15349
15350         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
15351         G_CONST_RETURN, make it return by reference, #50473
15352         
15353 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
15354
15355         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
15356         generated ENTER_NOTIFY event with 0, otherwise not explicitely
15357         setup fields contain garbage (e.g. subwindow, breaking
15358         gdk_drawable_ref() upon event copy).
15359         (gtk_menu_stop_navigating_submenu_cb): same here.
15360
15361         * gtk/gtklist.c (gtk_list_vertical_timeout): 
15362         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
15363         * gtk/gtkclist.c (vertical_timeout): 
15364         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
15365         default-zero-intialization for unions to memset(,0,), as unions are
15366         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
15367         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
15368
15369         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
15370         g_closure_sink() warning.
15371
15372         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
15373         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
15374         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
15375         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
15376         
15377 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
15378
15379         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
15380         gtk_*_store_get, and moved to GtkTreeModel.
15381
15382         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
15383
15384         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
15385
15386         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
15387
15388         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
15389         set the func.
15390
15391         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
15392         freeze/thaw notify between setting all the properties for a cell.
15393
15394         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
15395
15396 2001-02-15  Havoc Pennington  <hp@redhat.com>
15397
15398         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
15399         the X coordinates so they're with respect to the line, rather than 
15400         with respect to the layout.
15401
15402         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
15403         Mallabone
15404
15405         * gtk/testgtk.c (create_range_controls): add vscale tests, 
15406         and inverted test
15407
15408         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
15409         #50806
15410
15411         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
15412
15413         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
15414         gtk_text_iter_is_end
15415
15416         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
15417         rename gtk_text_buffer_get_end_iter
15418
15419         * gtk/testgtk.c (create_labels): Add test for selectable
15420
15421         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
15422         the selection stuff. This code is kind of broken since it doesn't 
15423         use the theme engine.
15424
15425         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
15426         fix infinite loop and y offset problem
15427         (gdk_draw_layout_line_with_colors): fix foreground color handling
15428
15429         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
15430         that makes the label selectable.
15431         
15432         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
15433         layout when the style is set, since fonts etc. could have changed.      
15434
15435 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
15436
15437         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
15438
15439         * gtk/gtktreemodelsimple.[ch]: removed.
15440
15441 2001-02-16  Alexander Larsson  <alexl@redhat.com>
15442
15443         * gtk/gtktreemodelmapping.[ch]:
15444         New files. Implement GtkTreeModelMapping.
15445         
15446         * gtk/Makefile.am:
15447         Add gtktreemodelmapping.[ch].
15448         
15449         * gtk/gtk.h:
15450         Add gtktreemodelmapping.h
15451
15452         * gtk/treestoretest.c:
15453         Test the GtkTreeModelMapping
15454
15455 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
15456
15457         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
15458         have a demo, we might as well pass in real values.  Thanks to
15459         clahey for pointing this out.
15460
15461 2001-02-14  Havoc Pennington  <hp@pobox.com>
15462
15463         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
15464         "static" to a private function
15465         (gtk_image_menu_item_class_init): remove destroy handler,
15466         add "image" object property
15467
15468 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
15469
15470         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
15471         Add a shortcut if the window and the current clip_region doesn't
15472         overlap. This is needed when there are a lot of windows in a
15473         window. The layout test in testgtk is a good test.
15474
15475         * gdk/linux-fb/gdkwindow-fb.c:
15476         Whitespace fix.
15477
15478 2001-02-13  Sven Neumann  <sven@convergence.de>
15479
15480         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
15481
15482 2001-02-13  Alexander Larsson  <alexl@redhat.com>
15483
15484         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
15485         Don't reference last_cursor if it is null. Fixes crash when rotating
15486         the screen before having moved the mouse.
15487
15488         * gdk/linux-fb/gdkcc-fb.c: Zapp!
15489
15490         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
15491
15492         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
15493         when using 90 or 270 degrees rotation.
15494
15495 2001-02-12  Havoc Pennington  <hp@pobox.com>
15496
15497         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
15498         it always set the foreground, even if we were only using
15499         a stipple.
15500         (gdk_draw_layout_line_with_colors): new function, allow
15501         override colors
15502         (gdk_draw_layout_with_colors): new function, allow override
15503         colors
15504         (gdk_pango_layout_line_get_clip_region): function to get the clip
15505         region for a logical text range
15506         (gdk_pango_layout_get_clip_region): get the clip region for a
15507         logical text range
15508
15509         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
15510         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
15511         the right number of arguments.
15512
15513         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
15514         enhance the function to check that node data corresponds to a 
15515         view still belonging to the tree.
15516
15517         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
15518         GtkTreePath
15519         (gtk_tree_view_inserted): ditto
15520         (gtk_tree_view_child_toggled): ditto
15521
15522         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
15523         simplify this code.
15524
15525         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
15526         a PangoAttrList
15527
15528         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
15529
15530         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
15531
15532         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
15533         size in the size request 
15534         (gtk_menu_bar_size_allocate): consider toggle size here
15535
15536         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
15537         that displays a widget in the toggle slot
15538
15539         * gtk/testgtk.c: test GtkImageMenuItem
15540
15541         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
15542         
15543         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
15544         request and allocation
15545
15546         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
15547
15548         * gtk/gtkcheckmenuitem.c
15549         (gtk_check_menu_item_toggle_size_request): ditto
15550         
15551 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
15552
15553         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
15554         reference.
15555
15556         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
15557         and refuse to initialize GTK+ if they fail.
15558
15559 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
15560
15561         * configure.in: Add check for gtk-doc version.
15562
15563 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
15564
15565         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
15566         where the xpad/ypad was only being used on one side!
15567
15568 2001-02-11  Tor Lillqvist  <tml@iki.fi>
15569
15570         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
15571         function, copied from X11 version.
15572
15573         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
15574         DestroyCursor failures. The reason for the problem (despite the
15575         inconsistent messages from GetLastError()) was that
15576         DestroyCursor() cannot be called while a cursor is set in a
15577         window. Set the new cursor first and then destroy the old one.
15578         Thanks to jpe@archaeopteryx.com.
15579
15580         * gdk/win32/gdkcc-win32.c: Remove.
15581
15582         * gdk/win32/Makefile.am: Remove from here, too.
15583         
15584         * gdk/gdk.def
15585         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
15586
15587         * gtk/gtk.def
15588         * gtk/makefile.mingw.in: Updates.
15589
15590 2001-02-08  Havoc Pennington  <hp@redhat.com>
15591
15592         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
15593         add a widget to a bin that already has a child.
15594
15595         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
15596
15597         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
15598         
15599         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
15600
15601         * gdk/gdk.h: remove gdkcc.h
15602
15603         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
15604
15605         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
15606         GdkPixbuf, since the previous implementation was GdkColorContext
15607         dependent.
15608
15609         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
15610         
15611 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
15612
15613         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
15614         a sane value!
15615
15616 2001-02-08  Havoc Pennington  <hp@redhat.com>
15617
15618         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
15619         lighten them.
15620
15621 2001-02-08  Havoc Pennington  <hp@redhat.com>
15622
15623         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
15624         validation idle
15625
15626         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
15627         cell renderer
15628
15629         * demos/pixbuf-demo.c (timeout): remove deprecated
15630         gtk_widget_draw
15631
15632         * demos/testpixbuf-save.c (main): remove deprecated
15633         gtk_drawing_area_size
15634
15635         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
15636         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
15637         at the start of the allocation.
15638         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
15639         unsetup or NULL model.
15640
15641         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
15642         even/odd/sorted cells in the tree view.
15643
15644         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
15645         bugfixes
15646
15647         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
15648         backgrounds with draw_flat_box using different detail for even/odd
15649         rows.
15650
15651         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
15652         row, so we can draw the alternating colors thing
15653
15654         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
15655         property from a synonym property, notify for the synonym.
15656         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
15657         (gtk_text_tag_get_property): Always return the font, even if
15658         all its fields aren't set
15659
15660         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
15661         store the attr list; it leaves us with no way to change attributes
15662         in _render according to the render flags, and no way to implement
15663         get_property. Instead store all the specific text attributes. 
15664         Separate whether an attribute is enabled from its value. Sync all
15665         properties with GtkTextTag, make them all consistent, etc.
15666
15667         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
15668         renderers can highlight the sort row/column     
15669
15670         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
15671         accessor functions to get values; this has the side effect of
15672         showing up which accessor functions were missing. Added those.
15673
15674         * gtk/gtktreeviewcolumn.h: Replace set_justification with
15675         set_alignment, to be consistent with GtkLabel, GtkMisc
15676
15677         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
15678         arrow.
15679
15680         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
15681
15682         * gtk/gtktreesortable.h: updates in here
15683
15684 2001-02-07  Sven Neumann  <sven@convergence.de>
15685
15686         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
15687         pango dimensions after painting the background. We used to draw
15688         gigantic flat boxes here.
15689
15690 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
15691
15692         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
15693         error introduced with earlier commit) (pointed out by
15694         Ollie Lho)
15695
15696 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
15697
15698         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
15699         which are no longer necessary.
15700
15701 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
15702
15703         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
15704
15705 2001-02-04  Tor Lillqvist  <tml@iki.fi>
15706
15707         * gdk/gdk.def
15708         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
15709         Provide dummy implementations.
15710
15711 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
15712
15713         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
15714
15715         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
15716         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
15717         deprecated this function.
15718
15719         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
15720         argument.
15721
15722 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
15723
15724         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
15725
15726 2001-02-03  Havoc Pennington  <hp@pobox.com>
15727
15728         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
15729         Mikael Hermansson with patch from Mikael (if there was a toggle
15730         start one after the first character in the range, this function
15731         was broken). Bug #50380
15732
15733 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
15734
15735         * configure.in: Remove confusing comment about X11.
15736
15737 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
15738
15739         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
15740         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
15741         
15742 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
15743
15744         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
15745         it breaks things on BSD. If you want to compile GTK+ with
15746         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
15747         when configuring, since GTK+ simply can't be "pure ANSI" 
15748         in the header files it uses. (#8170, Greg Hudson)
15749
15750 2001-02-02  Havoc Pennington  <hp@redhat.com>
15751
15752         * gtk/gtkwindow.c: docs
15753
15754         * gtk/gtkwidget.c: docs
15755         (gtk_widget_set_colormap): add a reference to the colormap
15756         (gtk_widget_get_default_colormap): add a reference to the colormap
15757
15758         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
15759
15760         * gtk/gtktextiter.c: docs
15761
15762         * gtk/gtkmain.c (gtk_propagate_event): docs
15763
15764         * gtk/gtkpaned.c (gtk_paned_get_position): docs
15765         (gtk_paned_set_position): docs
15766
15767         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
15768         sort interface, no implementation yet.
15769
15770         * demos/testpixbuf.c (new_testrgb_window): replace
15771         gtk_drawing_area_size() with gtk_widget_set_usize()
15772
15773         * demos/testpixbuf-drawable.c (main): ditto
15774         
15775         * gtk/testgtk.c: remove use of GtkStatusbarMsg
15776
15777         * gtk/gtktextbuffer.c: docs
15778
15779         * gtk/gtkstock.c: docs
15780
15781         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
15782
15783         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
15784
15785         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
15786         
15787         * gtk/gtkimage.c: add some docs in here
15788         (gtk_image_size_request): change name of
15789         gtk_widget_render_stock_icon
15790         (gtk_image_get_icon_set): don't dup returned string
15791         (gtk_image_get_icon_set): don't dup returned string
15792
15793         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
15794         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
15795         and gtkiconfactory.h functions
15796
15797         * gtk/gtkiconfactory.c: add some docs in here
15798
15799         * gtk/gtkmain.c (gtk_get_default_language): document
15800         (gtk_get_current_event): document
15801         (gtk_get_current_event_state): document
15802         (gtk_get_event_widget): document
15803
15804         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
15805
15806         * gtk/gtkcontainer.c: Add some documentation
15807         (gtk_container_add): give a more explanatory warning on adding an
15808         already-parented widget, this is kind of a FAQ and also a common
15809         typo that's easier to debug with a nice warning 
15810
15811         * gtk/gtkcellrenderertoggle.c
15812         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
15813         adding this, it's useless
15814         (gtk_cell_renderer_toggle_set_active): remove
15815         (gtk_cell_renderer_toggle_get_radio): add
15816
15817         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
15818         the NULL cell renderer, that doesn't make any sense to me. 
15819
15820         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
15821         demo code should never use deprecated features.
15822
15823         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
15824         code should never use deprecated features.
15825
15826         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
15827         gtk_widget_queue_clear_area deprecated
15828
15829         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
15830         deprecated
15831
15832         * gtk/gtklabel.h: mark gtk_label_get() deprecated
15833
15834         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
15835         a GdkImage deprecated, replaced by new consistently-named
15836         functions       
15837
15838         * gtk/gtkmain.h: Mark gtk_exit() deprecated
15839
15840         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
15841
15842         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
15843         deprecated
15844
15845         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
15846         so it won't appear in docs and confuse people.
15847
15848         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
15849
15850         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
15851         macros deprecated. (can't mark the type itself deprecated, since
15852         GtkProgressBar is not deprecated and we need the type decl to use
15853         GtkProgressBar)
15854
15855         * gtk/gtkpixmap.h: Mark deprecated
15856
15857         * gtk/gtkoldeditable.h: Mark deprecated
15858
15859         * gtk/gtklist.h: Mark deprecated
15860
15861         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
15862         for anything anymore.
15863
15864         * gtk/gtkctree.h: Mark deprecated
15865
15866         * gtk/gtkclist.h: Mark deprecated
15867
15868         * gtk/gtkpreview.h: Mark deprecated
15869
15870         * gtk/gtkpacker.h: Mark deprecated
15871
15872         * gtk/gtktipsquery.h: Mark deprecated
15873
15874         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
15875
15876         * gtk/gtkvruler.h: Add comment that it will move out of GTK
15877
15878         * gtk/gtkhruler.h: Add comment that it will move out of GTK
15879
15880         * gtk/gtkruler.h: Add comment that it will move out of GTK
15881
15882         * gtk/gtkgamma.h: Add comment that it will move out of GTK
15883
15884         * gtk/gtkcurve.h: Add comment that it will move out of GTK
15885
15886 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
15887
15888         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
15889         gdk_colormap_sync private since it was never exported
15890         in a header file.
15891
15892         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
15893         colormap->colors[] for StaticGray, StaticColor colormaps.
15894
15895         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
15896         was being used as if it was image->bits_per_pixel.
15897
15898         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
15899         for the image in the GdkImage structure since it isn't
15900         reconstructable, and we need it to handle packed types
15901
15902         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
15903         the assumption that on Win32 image->bits_per_pixel == image->depth,
15904         always.
15905
15906         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
15907
15908         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
15909         warning message if no converter can be found. 
15910
15911 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
15912
15913         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
15914         chars to isupper() / tolower(). (#567)
15915
15916         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
15917         to clear up 64-bit warnings. (#567)
15918
15919 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
15920
15921         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
15922         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
15923
15924         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
15925         since some people set $(libdir) separately. (#1290, David Kaelbling)
15926
15927 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
15928
15929         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
15930         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
15931         MAXPATHLEN, but the code here depends on a fixed value.)
15932         (#4524)
15933
15934 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
15935
15936         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
15937         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
15938
15939 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
15940
15941         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
15942         viewable there is no way that moving the node will cause the 
15943         focus row to become not viewable, so omit check on the visibility
15944         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
15945
15946 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
15947
15948         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
15949         selection before inserting new text.
15950
15951 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
15952
15953         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
15954         Make the sensitivity of the reparented child track that of
15955         the original parent menu item. (#34218, David Hodson)
15956
15957         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
15958         the case where the current item is destroyed properly.
15959
15960         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
15961         some edge cases with child-less menuitems.
15962         
15963 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
15964
15965         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
15966         key pop down window. (#12074, Jon K Hellan)
15967
15968 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
15969
15970         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
15971         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
15972         The solution here isn't perfect - you get an extraneous
15973         emission of "toggle", which could conceivably confuse an app,
15974         but better than the current situation. LXR search seems to
15975         indicate that no apps in GNOME CVS connect to "toggle".
15976
15977 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
15978
15979         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
15980         gtk_public_h_sources to directly here to avoid warning when
15981         building srcdir != builddir. (#9656)
15982
15983 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
15984
15985         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
15986         handlers in gtkrange.c return the proper values (TRUE == handled)
15987         (#10316).
15988
15989         This is just the tip of the iceberg, but gtkrange.c is the
15990         most common place where the propagation is problematical,
15991         and also a place where it is almost certainly safe to change
15992         this in the stable branch.
15993
15994         (You don't want right click popups on a range control or anything...)
15995
15996 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
15997
15998         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
15999         area on focus out, even if a background pixmap isn't set.
16000         (#13941)
16001         
16002 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
16003
16004         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
16005         to deal with setting the shape properly when scrolling arrows are
16006         turned on, but not visible because there is sufficient space.
16007         (#13432)
16008
16009 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
16010
16011         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
16012         items with submenus, destroy the item along with the submenu.
16013         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
16014         properly.
16015
16016         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
16017         later.
16018
16019 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
16020
16021         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
16022         the focus widget sometimes wasn't drawn with the default if there
16023         was no default widget.
16024
16025         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
16026         unreference pixmaps. 
16027
16028         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
16029         for some extra safety.
16030
16031 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
16032
16033         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
16034         the text of a cell to the old pointer value better, by
16035         copying the new text before freeing the old text. Some code
16036         cleanup. (#8079, Karl Nelson)
16037
16038 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
16039
16040         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
16041         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
16042
16043 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
16044
16045         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
16046         item from a menu, check to see if it matches 
16047         menu->old_active_menu_item, and if so, unref and clear
16048         old_active_menu_item (Patch from Pavel Cisler)
16049
16050         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
16051         menu_shell->active_menu_item, if it is the child being
16052         removed. (Patch based on that of Gene Ragan, #50337)
16053
16054 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
16055
16056         * gdk/linux-fb/gdkselection-fb.c: 
16057         * gdk/linux-fb/gdkcolor-fb.c: 
16058         * gdk/linux-fb/gdkdrawable-fb2.c: 
16059         * gdk/linux-fb/gdkfont-fb.c: 
16060         * gdk/linux-fb/gdkim-fb.c: 
16061         * gdk/linux-fb/gdkinput.c: 
16062         * gdk/linux-fb/gdkkeyboard-fb.c: 
16063         * gdk/linux-fb/gdkmain-fb.c: 
16064         * gdk/linux-fb/gdkrender-fb.c: 
16065         A bunch of whitespace cleanup.
16066         
16067 2001-01-30  Havoc Pennington  <hp@pobox.com>
16068
16069         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
16070         #ifdef GTK_ENABLE_BROKEN.
16071
16072         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
16073         GTK_ENABLE_BROKEN just before including the broken headers.
16074         
16075         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
16076         deprecated types registered.
16077
16078         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
16079         we have to test the broken stuff.
16080
16081         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
16082         
16083 2001-01-30  Havoc Pennington  <hp@redhat.com>
16084
16085         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
16086         here where prev pointer was set to the wrong thing
16087
16088         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
16089         (gtk_tree_path_is_descendant): new function
16090
16091         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
16092         cached length
16093         (gtk_list_store_get_iter): don't modify iter if we can't get the
16094         path.
16095
16096         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
16097         
16098         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
16099         GtkTreeDragDest
16100
16101         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
16102         was causing segfault
16103
16104         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
16105         pointer to NULL
16106
16107         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
16108
16109         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
16110         on returning FALSE
16111         (gtk_list_store_iter_children): ditto
16112         (gtk_list_store_iter_nth_child): ditto
16113         (gtk_list_store_iter_nth_child): ditto
16114         (gtk_list_store_iter_parent): ditto
16115
16116         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
16117         on iter->user_data != NULL instead of silently accepting it.
16118         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
16119         we are returning TRUE.
16120         (gtk_tree_store_iter_children): ditto
16121         (gtk_tree_store_iter_nth_child): ditto
16122         (gtk_tree_store_iter_parent): ditto
16123         (gtk_tree_store_insert): remove handling of parent->user_data ==
16124         NULL, replace with parent == NULL       
16125
16126         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
16127         and a comment explaining things
16128
16129         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
16130         interface support to GtkTreeStore.
16131
16132         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
16133         FALSE if no prev, fix
16134
16135         * gtk/gtktreeview.c (set_source_row): use a row reference
16136         (set_dest_row): use a row reference
16137
16138 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
16139
16140         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
16141         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
16142         (gtk_tree_selection_select_iter): The same as above.
16143
16144 2001-01-26  Havoc Pennington  <hp@redhat.com>
16145
16146         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
16147         which holds a handle to a specific row (particular set of values
16148         in the model, i.e. pointer-identity row).
16149
16150         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
16151         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
16152         Still need to use it for the src/dest row saved on the drag context.
16153
16154 2001-01-26  Havoc Pennington  <hp@redhat.com>
16155
16156         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
16157
16158         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
16159         not offset by TREE_VIEW_HEADER_HEIGHT
16160         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
16161         TREE_VIEW_HEADER_HEIGHT
16162
16163         * configure.in (included_loaders): for me, --with-included-loaders
16164         generates the error "the specified loader yes does not exist",
16165         i.e. the arg defaults to "yes", so change test for value ""
16166         to test for value "yes", and include all loaders in that case.
16167
16168         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
16169
16170         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
16171         handle TREE_VIEW_VERTICAL_SEPARATOR
16172         (gtk_tree_view_bin_expose): fix to consider the row offset as
16173         pointing halfway into vertical separator.       
16174         (gtk_tree_view_draw_node_focus_rect): ditto
16175
16176         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
16177         --gtk-debug=updates, which causes gdk_window_set_debug_updates
16178         (TRUE) to be called.
16179
16180         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
16181         debug mode where the invalid region is colored in on invalidate,
16182         so you can see the flicker and know whether your redraw code is 
16183         doing a good job.
16184
16185         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
16186         tree window coordinates (clip rect is in tree window coords)
16187
16188         * gtk/Makefile.am: add gtktreednd.[hc]
16189
16190         * gtk/gtkliststore.c: implement gtktreednd interfaces.
16191
16192         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
16193         drag-and-drop data operations on a model (so we can set up tree
16194         drag-and-drop automatically)
16195
16196         * gtk/testgtk.c: Add a window to change sensitivity in the
16197         GtkLabel test; add a way to change the entry frame in GtkEntry
16198         test
16199
16200         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
16201         (gtk_entry_get_has_frame): new functions to remove the frame
16202         around an entry
16203         (gtk_entry_size_request): shrink requisition if no frame
16204         (gtk_entry_draw_focus): don't draw frame if no frame
16205
16206         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
16207         checks inside a cell renderer
16208         (gtk_default_draw_option): ditto for options
16209
16210         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
16211         children from the alignment, not the button
16212         (gtk_tree_view_column_init): ref/sink the column, to emulate
16213         GObject refcounting.
16214
16215         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
16216         
16217         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
16218         Use theme functions to draw the toggles 
16219
16220         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
16221
16222         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
16223         GdkPangoAttrEmbossed to use in rendering insensitive text
16224
16225         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
16226
16227         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
16228         using new GDK features
16229         
16230 2001-01-24  Alexander Larsson  <alexl@redhat.com>
16231
16232         * gtk/gtkimage.c:
16233         Splitted gtk_image_clear into gtk_image_clear() and
16234         gtk_image_reset(). Call gtk_image_clear() in ::destroy
16235         to avoid leaks.
16236
16237         * gtk/gtklabel.c (set_markup):
16238         Don't leak text.
16239
16240         * gtk/gtktextlayout.c:
16241         Always free display->shaped_objects.
16242
16243         * gtk/testgtk.c (create_clist):
16244         Don't leak custom style.
16245
16246 2001-01-23  Alexander Larsson  <alexl@redhat.com>
16247
16248         * gtk/gtkcolorsel.c (grab_color_at_mouse):
16249         Don't leak image. Simplify using gdk_colormap_query_color().
16250         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
16251
16252         * linux-fb/gdkcolor-fb.c:
16253         Implemented gdk_colormap_query_color.
16254
16255 2001-01-23  Alexander Larsson  <alexl@redhat.com>
16256
16257         * linux-fb/gdkcursor-fb.c:
16258         Don't leak built-in cursors.
16259
16260         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
16261         Don't leak tmp_points.
16262
16263         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
16264         Don't modify desc. Don't leak font if the PangoFont
16265         isn't found.
16266         
16267         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
16268         Free dash_list.
16269
16270         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
16271         Don't leak string.
16272         
16273 2001-01-20  Havoc Pennington  <hp@pobox.com>
16274
16275         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
16276         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
16277         me, matches Pango
16278
16279 2001-01-22  Havoc Pennington  <hp@redhat.com>
16280
16281         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
16282
16283         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
16284
16285         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
16286         Remove, move back to gdk-pixbuf
16287
16288         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
16289         to all the word functions
16290
16291         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
16292         before doing anything on NULL layout or if we don't have the focus
16293
16294         * gtk/testtext.c (fill_example_buffer): "justification"
16295
16296         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
16297         to be called "justification" not "justify"
16298
16299         * demos/gtk-demo/textview.c (create_tags): "justification"
16300         
16301         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
16302
16303 2001-01-22  Alexander Larsson  <alexl@redhat.com>
16304
16305         * gdk/gdkwindow.c (gdk_window_invalidate_region):
16306         Don't leak visible_region. Use visible_region instead of region.
16307         
16308         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
16309         Don't do extra gdk_drawable_ref(). This is not X.
16310         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
16311         gdk_fb_focused_window is ref:ed.
16312         (gdk_fb_window_send_crossing_events): Watch out for destroyed
16313         windows.
16314
16315 2001-01-22  Alexander Larsson  <alexl@redhat.com>
16316
16317         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
16318         Don't leak the PangoFontDescriptor.
16319
16320 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
16321
16322         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
16323         when not realized.
16324         (gtk_tree_view_scroll_to_cell): Make work when not realized.
16325         (gtk_tree_view_realize): add scroll_to support
16326         (gtk_tree_view_finalize): add a finalize method.  Populate.
16327         (gtk_tree_view_insert_column): ref and sink the column.
16328         (gtk_tree_view_append_column): ref and sink the column.
16329         (gtk_tree_view_queue_draw_node): New function to handle redrawing
16330         individual nodes.  Should make the code much more efficient, if
16331         actually used.
16332
16333 2001-01-19  Havoc Pennington  <hp@redhat.com>
16334
16335         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
16336         byte_offset variable was being used to mean both "offset into
16337         layout" and "offset into buffer line" which was no longer true
16338         with addition of preedit string; fix
16339
16340 2001-01-19  Havoc Pennington  <hp@redhat.com>
16341
16342         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
16343
16344         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
16345         function
16346
16347         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
16348         implement
16349
16350         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
16351         scroll_to_cell, matches TextView scroll functions better
16352         (gtk_tree_view_tree_to_widget_coords): new function
16353         (gtk_tree_view_widget_to_tree_coords): new function
16354         (gtk_tree_view_get_visible_rect): new function
16355         (gtk_tree_view_get_path_at_pos): accept negative coordinates
16356         (gtk_tree_view_draw_node_focus_rect): new function moved from
16357         draw_focus, also, use width of bin_window as width of the focus
16358         rect
16359         (gtk_tree_view_expand_row): fix bug where it didn't recognize
16360         already-expanded rows
16361         (gtk_tree_view_get_cell_rect): new function
16362         (gtk_tree_view_get_path_at_pos): return the click position
16363         relative to the passed-in cell
16364         (gtk_tree_view_set_expander_column): new function
16365
16366         * configure.in: remove gtk-config-2.0 chmod
16367
16368         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
16369         and properly handle drags with targets we don't understand
16370         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
16371         scrolling anyway
16372         (gtk_text_view_drag_drop): stop scrolling here though, and set the
16373         mark invisible
16374
16375         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
16376         function
16377         (gtk_drag_dest_get_target_list): new function
16378         (gtk_drag_dest_set_target_list): new function
16379         
16380         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
16381
16382         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
16383         related to drag-and-drop
16384
16385 2001-01-19  Alexander Larsson  <alexl@redhat.com>
16386
16387         * gdk/linux-fb/gdkprivate-fb.h:
16388         Define EMULATE_GDKFONT.
16389         Add extra pango_font stuff to GfkFontPrivate.
16390         
16391         * gdk/linux-fb/gdkdrawable-fb2.c:
16392         * gdk/linux-fb/gdkfont-fb.c:
16393         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
16394         emulation using PangoFont.
16395
16396 2001-01-17  Havoc Pennington  <hp@pobox.com>
16397
16398         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
16399         all the non-deprecated set_foo functions. Added missing object
16400         properties, and added g_object_notify() to setters. 
16401         Wrote docs.
16402         
16403 2001-01-18  Tor Lillqvist  <tml@iki.fi>
16404
16405         * gtk/gtkmain.c
16406         * gtk/gtkrc.c: (Win32) Use the new
16407         g_win32_get_package_installation_(sub)directory() functions.
16408
16409         * config.h.win32.in: New file.
16410         
16411         * config.h.win32: Removed.
16412
16413         * configure.in: Output config.h.win32.
16414
16415         * Makefile.am: Add it to EXTRA_DIST.
16416
16417         * gtk/gtk.def: Update.
16418
16419 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
16420
16421         * gtk/gtklabel.c (gtk_label_size_request): Set the
16422         attributes onto the PangoLayout even if they are newly
16423         created from label->pattern.
16424
16425 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
16426
16427         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
16428
16429         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
16430         structures in functions. Fixes bug where gtk_dataset_*
16431         was accidentally still being used in one place, causing
16432         every dest side event to be treated independently.
16433
16434         * gtk/gtkdnd.c: Remove last vestages of handling
16435         ::draw (fixes warning)
16436         
16437         * gtk/gtkentry.[ch]: Add drag and drop support.
16438
16439         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
16440         new function gtk_check_drag_threshhold() for checking
16441         to check if (dx,dy) has exceeded the threshhold for starting
16442         a drag and use it everywhere.
16443
16444 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
16445
16446         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
16447         add -I{includedir}/gtk-2.0.
16448
16449         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
16450         gdk/gdk-pixbuf.h: Doc fixups.
16451         
16452         * gtk/gtkobject.h: Remove trailing , from enum
16453
16454 2001-01-17 Alexander Larsson <alexl@redhat.com> 
16455
16456         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
16457         Doh! Mixed up x and y.
16458
16459         * gdk/linux-fb/gdkglobals-fb.c:
16460         Removed gdk_fb_pointer_grab_window_events,
16461         added _gdk_fb_pointer_grab_owner_events and
16462         _gdk_fb_keyboard_grab_owner_events.
16463
16464         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
16465         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
16466         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
16467         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
16468         Send crossing events after ungrab finished.
16469         (gdk_keyboard_grab): Set ..._owner_events
16470         (type_masks): Move out of function.
16471         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
16472         gdk_fb_keyboard_event_window): New functions, return the
16473         window an event should be targeted at. Handles grabs and
16474         event propagation. Can return NULL.
16475         (gdk_event_make): Remove event_mask checking. Now always
16476         returns an event.
16477                 
16478         * gdk/linux-fb/gdkkeyboard-fb.c:
16479         * gdk/linux-fb/gdkproperty-fb.c:
16480         * gdk/linux-fb/gdkselection-fb.c:
16481         Use new event_window/gdk_event_make() behaviour.
16482         
16483         * gdk/linux-fb/gdkmouse-fb.c:
16484         Use new event_window/gdk_event_make() behaviour.
16485         Only send motion events if in the same window.
16486         If grabbed, use cursor from window if sibling of grabbed
16487         window, and cursor from grabbed window otherwise.
16488
16489         * gdk/linux-fb/gdkprivate-fb.h:
16490         Update gdk_fb_window_send_crossing_events, gdk_event_make
16491         and grab varaible declarations. Add gdk_fb_*_event_window().
16492
16493         * gdk/linux-fb/gdkwindow-fb.c:
16494         Use new event_window/gdk_event_make() behaviour.
16495         Keep correct track of focus window.
16496         (gdk_window_set_events): Set all specific button motion masks
16497         if GDK_BUTTON_MOTION_MASK set.
16498
16499         * gtk/gtkdnd.c (gtk_drag_update):
16500         Free info->last_event if gdk_drag_motion returned FALSE.
16501
16502 2001-01-16  Tor Lillqvist  <tml@iki.fi>
16503
16504         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
16505         Eliminate redraws when input-only windows are shown or
16506         hidden. Thanks to jpe@archaeopteryx.com.
16507
16508 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
16509
16510         * docs/faq/gtk-faq.sgml: FAQ update:
16511           - Update to bugzilla
16512           - Add GTK+ and security/SUID/SGID
16513           - Add DnD question
16514
16515 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
16516
16517         * gdk/linux-fb/gdkdnd-fb.c:
16518         Some cleanups.
16519         
16520 2001-01-15  Havoc Pennington  <hp@pobox.com>
16521
16522         * tests/testtreeview.c: add test stuff for CellRendererToggle
16523
16524         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
16525         accessor
16526
16527         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
16528         only toggle on button press (would do release like GtkButton, but
16529         we'd need implicit grab code for treeview cells)
16530
16531 2001-01-16  Tor Lillqvist  <tml@iki.fi>
16532
16533         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
16534
16535         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
16536         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
16537
16538         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
16539         to g_{locale,filename}_{to,from}_utf8 to match current API.
16540
16541         * gtk/makefile.msc.in (gtk_OBJECTS)
16542         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
16543
16544         * gtk/gtk.def: Update.
16545
16546 2001-01-15  Tor Lillqvist  <tml@iki.fi>
16547
16548         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
16549         implementaion that more closely mimics the events that an X server
16550         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
16551         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
16552         with nested preview widgets, for instance, more responsive when
16553         you move the mouse quickly into them.
16554         (find_window_for_pointer_event): Make it actually compile.
16555         (gdk_event_translate): Set send_event to the value of
16556         InSendMessage (). This doesn't really mean the same as X11's
16557         send_event flag, but is close enough, says jpe@archaeopteryx.com
16558
16559 2001-01-15  Alexander Larsson  <alexl@redhat.com>
16560
16561         * gdk/linux-fb/gdkdnd-fb.c:
16562         Implemented drag and drop.
16563         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
16564         when it tries to free and then copy the same event (info->last_event).
16565         I am not sure about why this happens, but will continue looking.
16566
16567 2001-01-15  Alexander Larsson  <alexl@redhat.com>
16568
16569         * gdk/linux-fb/gdkwindow-fb.c:
16570         Use gdk_window_invalidate_rect instead of
16571         gdk_window_invalidate_rect_clear to minimise flashing.
16572         When hiding windows you need to clear the root window though.
16573
16574 2001-01-15  Alexander Larsson  <alexl@redhat.com>
16575
16576         * gdk/linux-fb/gdkdrawable-fb2.c:
16577         For optization, add an full_shapes argument to gdk_fb_clip_region.
16578         If this is false, only the cliprects of the shapes are used.
16579
16580         * gdk/linux-fb/gdkprivate-fb.h:
16581         Export gdk_fb_window_peek_shape.
16582         Add full_shapes to gdk_fb_clip_region.
16583
16584         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
16585         When moving a window, don't clear everything under the it, just the
16586         root window. Makes stuff faster and flash less.
16587         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
16588         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
16589         offset of the shape.
16590         
16591
16592 2001-01-12  Havoc Pennington  <hp@redhat.com>
16593
16594         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
16595         current invalid region, fixes redraw bug while scrolling the 
16596         text widget
16597
16598         * gtk/gtktextview.c, gtk/gtktextview.h:
16599         Rearrange the scrolling/validation/etc. code in a major way, 
16600         so it seems to make sense to me. Probably isn't genuinely that
16601         much better, but...
16602
16603         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
16604         notifies
16605
16606         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
16607
16608 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
16609
16610         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
16611         Hide mouse pointer while rotation. Show it afterwards.
16612
16613 2001-01-12  Alexander Larsson  <alexl@redhat.com>
16614
16615         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
16616         windows in consideration when generating clip region.
16617
16618         * gdk/linux-fb/gdkfb.h:
16619         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
16620
16621         * gdk/linux-fb/gdkprivate-fb.h:
16622         Add shape to GdkWindowFBDatat.
16623         exported gdk_fb_window_get_abs_shape().
16624         removed gdk_fb_draw_lines declaration.
16625
16626         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
16627         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
16628         send focus changes when there is a grabbed window.
16629         (gdk_window_get_pointer): Handle shaped windows.
16630         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
16631         (gdk_fb_window_peek_shape): Returns the shape for a window,
16632         handles GDK_FB_USE_CHILD_SHAPE.
16633         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
16634         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
16635         (gdk_window_shape_combine_mask): Implement.
16636
16637         * gtk/gtkwindow-decorate.c:
16638         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
16639         setting the shape of a window makes the window transparent.
16640
16641 2001-01-11  Havoc Pennington  <hp@redhat.com>
16642
16643         * gtk/gtktreemodelsimple.h: Oops, broke some macros
16644
16645 2001-01-10  Havoc Pennington  <hp@redhat.com>
16646
16647         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
16648         add this function, bug 40251
16649
16650         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
16651         of type macro   
16652
16653 2001-01-11  Alexander Larsson  <alexl@redhat.com>
16654
16655         * acconfig.h:
16656         Added ENABLE_SHADOW_FB
16657
16658         * configure.in:
16659         Added --disable-shadowfb
16660
16661         * gdk/linux-fb/gdkcursor-fb.c:
16662         Update shadowfb when updating cursor
16663
16664         * gdk/linux-fb/gdkdrawable-fb2.c:
16665         Added wrappers for shadowfb that calls  the normal drawable
16666         methods, but calls gdk_shadow_fb_update(bounding box) when
16667         GdkWindows are drawed to.
16668         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
16669         which also returns the bounding box.
16670
16671         * gdk/linux-fb/gdkfb.h:
16672         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
16673
16674         * gdk/linux-fb/gdkgeometry-fb.c:
16675         Update shadowfb when scrolling window.
16676
16677         * gdk/linux-fb/gdkglobals-fb.c:
16678         Add _gdk_fb_screen_angle.
16679         
16680         * gdk/linux-fb/gdkkeyboard-fb.c:
16681         Test code for screen rotation. Shift-F2 in the xlate driver
16682         rotates the screen.
16683
16684         * gdk/linux-fb/gdkmain-fb.c:
16685         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
16686
16687         * gdk/linux-fb/gdkmouse-fb.c:
16688         Use fb_width/height instead of modeinfo.xres/yres.
16689
16690         * gdk/linux-fb/gdkprivate-fb.h:
16691         Added fb_men, fb_width, fb_height & fb_stride. When using
16692         shadow fb these can differ from the framebuffer stuff.
16693         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
16694         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
16695         _gdk_fb_screen_angle. Removed CM, RP.
16696
16697         * gdk/linux-fb/gdkrender-fb.c:
16698         Added code for shadowfb handling and screen rotation using
16699         shadowfb.
16700
16701         * gdk/linux-fb/gdkwindow-fb.c:
16702         Use fb_mem, fb_stride, fb_width, fb_height.
16703         Added recompute_rowstride to reset the rowstride of all windows.
16704         Added gdk_fb_recompute_all() which recomputes rootwindow size,
16705         window abs positions and window rowstrides. Usefull when the
16706         rotation has changed.
16707
16708 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
16709
16710         * docs/faq/gtk-faq.sgml: update to make web site updating easier
16711
16712 2001-01-10  Havoc Pennington  <hp@redhat.com>
16713
16714         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
16715         where sibling == iter
16716         (gtk_tree_store_insert_after): handle sibling == iter
16717         (gtk_tree_store_prepend): remove stamp checks
16718         (gtk_tree_store_insert_before): ditto
16719         (gtk_tree_store_append): ditto
16720         (gtk_tree_store_get_path): ditto
16721         (gtk_tree_store_get_value): ditto
16722         (gtk_tree_store_iter_has_child): ditto
16723         (gtk_tree_store_iter_n_children): ditto
16724         (gtk_tree_store_iter_nth_child): ditto
16725         (gtk_tree_store_insert_after): ditto
16726         (gtk_tree_store_is_ancestor): ditto
16727         (gtk_tree_store_iter_depth): ditto
16728         (gtk_tree_store_insert_before): assert that sibling's parent is
16729         the same as the passed-in parent
16730         (gtk_tree_store_insert_after): assert that sibling's parent is
16731         the same as the passed-in parent
16732
16733         
16734         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
16735         function to get the first iterator in a model
16736         
16737         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
16738         conventionally the "root" in this sense is just NULL afaict.
16739
16740         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
16741         where sibling == iter
16742         (gtk_list_store_insert_after): handle case where sibling == iter
16743
16744         * tests/testtreeview.c (run_automated_tests): fairly lame basic
16745         automated tests for ListStore, TreeStore
16746
16747         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
16748         (gtk_list_store_insert): update tail pointer, and fix it to work
16749         (gtk_list_store_insert_before): update tail pointer, and fix it to work
16750         (gtk_list_store_append): use tail to be faster
16751         (gtk_list_store_prepend): fix it, update tail pointer
16752         (gtk_list_store_insert_after): fix it, update tail pointer
16753
16754         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
16755         the list
16756
16757 2001-01-09  Havoc Pennington  <hp@redhat.com>
16758
16759         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
16760         is NULL due to a pending resize
16761
16762         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
16763         column width to values less than 1
16764
16765         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
16766         width to be between min/max width, and still set the width 
16767         even if autosize is turned on, so the tree view can use this 
16768         function in order to autosize.
16769         (gtk_tree_view_column_init): set initial width to 1 not 0
16770
16771         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
16772         setter function to modify column width, so we get notification
16773         (gtk_tree_view_insert_iter_height): ditto
16774         (gtk_tree_view_calc_size): ditto
16775         (gtk_tree_view_check_dirty): ditto
16776
16777         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
16778         properties to change all the interesting attributes of the tree
16779         view column.
16780         (gtk_tree_view_column_set_header_clickable): rename set_clickable
16781         (gtk_tree_view_column_get_clickable): add
16782         (gtk_tree_view_column_set_cell_renderer): don't unset the current
16783         attributes; assume a cell renderer with equivalent object
16784         properties has been swapped in. Do g_object_notify().
16785         (gtk_tree_view_column_set_visible): g_object_notify
16786         (gtk_tree_view_column_get_sizing): rename from get_col_type
16787         (gtk_tree_view_column_set_sizing): g_object_notify
16788         (gtk_tree_view_column_set_width): add g_object_notify
16789         (gtk_tree_view_column_set_min_width): ditto
16790         (gtk_tree_view_column_set_max_width): ditto
16791         (gtk_tree_view_column_set_title): ditto
16792         (gtk_tree_view_column_set_clickable): ditto
16793         (gtk_tree_view_column_set_widget): ditto
16794         (gtk_tree_view_column_set_justification): ditto
16795
16796 2001-01-09  Havoc Pennington  <hp@redhat.com>
16797
16798         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
16799         there are no rows in the model
16800
16801         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
16802         NULL, then return the start of the list
16803
16804         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
16805         if we can't get any rows from an empty model 
16806
16807         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
16808         extraneous * after function pointer typedef usage
16809
16810         * Makefile.am: don't specify full path to cp and rm
16811
16812         * gtk/gtkcellrenderertextpixbuf.c
16813         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
16814         NULL before dereferencing, fixes a segfault that happened from
16815         time to time
16816
16817         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
16818         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
16819         and reindent the function
16820         (gtk_cell_renderer_pixbuf_get_size): indentation
16821
16822         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
16823         we quit it
16824         (gtk_dialog_add_buttons_valist): add g_return_if_fail
16825         (gtk_dialog_set_default_response): New function, to set default
16826         button
16827         (gtk_dialog_set_response_sensitive): New function, to set 
16828         sensitivity of buttons
16829
16830         * gtk/gtkcellrendererpixbuf.c
16831         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
16832         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
16833
16834         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
16835         handle any G_TYPE_OBJECT subclass, not just the base class, and 
16836         also boxed types.
16837         (_gtk_tree_data_list_value_to_node): ditto
16838
16839         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
16840         --gtk-debug=tree
16841
16842         * gtk/gtkmain.c: add GTK_DEBUG_TREE
16843
16844         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
16845
16846 2001-01-09  Tor Lillqvist  <tml@iki.fi>
16847
16848         * gdk/win32/gdkevents-win32.c: Implement better mouse
16849         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
16850         (find_window_for_pointer_event): New function.
16851         (gdk_event_translate): Use it when handling mouse events.
16852
16853 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
16854
16855         * configure.in:
16856         Added --with-included-loaders option
16857
16858         * gdk-pixbuf/Makefile.am:
16859         * gdk-pixbuf/gdk-pixbuf-io.c:
16860         Add support for including selected gdk-pixbuf loaders only.
16861
16862         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
16863         gtk_window_set_has_frame):
16864         Added inline documentation.
16865
16866         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
16867         * docs/reference/gdk/tmpl/windows.sgml:
16868         Added inline documentation.
16869
16870 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
16871
16872         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
16873         realizing buttons that have already been realized.
16874
16875 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
16876
16877         * tests/testtreeview.c (main): Show menu items before adding to
16878         option menu.
16879
16880         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
16881         around if we kill them.
16882
16883         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
16884         Return if we pass in a NULL model.
16885
16886 2001-01-08  Havoc Pennington  <hp@redhat.com>
16887
16888         * tests/testtreeview.c: hack on this some
16889
16890         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
16891         gtk_tree_store_set_valist, v is for arrays, valist for varargs
16892         list
16893         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
16894
16895         * gtk/gtkliststore.h: Add varargs set() and get() convenience
16896         functions
16897
16898 2001-01-08  Alexander Larsson  <alexl@redhat.com>
16899
16900         * gtk/gtkwindow-decorate.[hc]:
16901         * gtk/Makefile.am:
16902         New files. Contains an implementation of a minimal WM for
16903         linux-fb.
16904
16905         * gtk/gtkwindow.h:
16906         Add the possibility for GtkWindows to specify a frame. This
16907         is used for the window decoration code, but could concievably
16908         be used for X programs too (xmms style windows).
16909         GtkWindow->frame is the toplevel window if the window is framed.
16910         The signal frame_event gets all events that are targeted to
16911         GtkWindow->frame.
16912         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
16913         
16914         * gtk/gtkwindow.c:
16915         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
16916         Call out to gtkwindow-decorate.c for WM support in linx-fb.
16917
16918 2001-01-08  Alexander Larsson  <alexl@redhat.com>
16919
16920         * docs/README.linux-fb:
16921         Correct filename ~/.pangoft2_aliases
16922
16923         * gdk/gdkwindow.h:
16924         Added new function gdk_window_get_decorations.
16925
16926         * gdk/linux-fb/gdkfb.h:
16927         Removed _gdk_window_get_decorations declaration.
16928         Renamed _gdk_window_set_child_handler to
16929         gdk_fb_window_set_child_handler.
16930
16931         * gdk/linux-fb/gdkwindow-fb.c:
16932         Renamed _gdk_window_set_child_handler to
16933         gdk_fb_window_set_child_handler.
16934
16935         * gdk/x11/gdkwindow-x11.c:
16936         New function gdk_window_get_mwm_hints().
16937         Implemented gdk_window_get_decorations.
16938
16939         * docs/reference/gdk/tmpl/windows.sgml:
16940         * docs/reference/gdk/gdk-sections.txt:
16941         Added gdk_window_get_decorations docs.
16942         
16943 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
16944
16945         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
16946         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
16947         gdk_fb_window_send_crossing_events):
16948         Possibly send focus events when the mouse moves from one
16949         window to another.
16950
16951 2001-01-07  Tor Lillqvist  <tml@iki.fi>
16952
16953         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
16954         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
16955         to match current API.
16956
16957         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
16958         environment variable is set, don't call g_error when on a
16959         palettized (PseudoColor) display. Some people want to use GTK+ 
16960         in 256-colour mode even though works only partially.
16961
16962         * gdk/gdk.def
16963         * gtk/gtk.def
16964         * gtk/makefile.mingw.in: Update.
16965
16966 2001-01-05  Havoc Pennington  <hp@redhat.com>
16967
16968         * tests/testtreeview.c: hack on this a bit
16969
16970         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
16971         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
16972
16973         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
16974         was spelled incorrectly
16975         (GTK_IS_TREE_MODEL_SIMPLE): ditto
16976
16977         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
16978         from gtk_tree_view_set_headers_active   
16979
16980         * gtk/gtktexttag.c:
16981         (gtk_text_tag_get_property): handle PROP_DIRECTION
16982         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
16983         properties, bug 40235
16984
16985         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
16986         forward_to_line_end
16987
16988 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
16989
16990         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
16991         modules/input/gtkimcontextxim.c: Adapt to new prototypes
16992         for unicode,locale,filename conversion functions.
16993
16994 2001-01-05  Havoc Pennington  <hp@redhat.com>
16995
16996         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
16997         broken if called on the first position in the buffer.
16998
16999         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
17000         forward_to_delimiters to be called only if we aren't already at
17001         the delimiters.
17002
17003 2001-01-05  Havoc Pennington  <hp@redhat.com>
17004
17005         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
17006
17007 2001-01-05  Alexander Larsson  <alexl@redhat.com>
17008
17009         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
17010         colormap in here. Sync from X port.
17011         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
17012         Sync from X port.
17013         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
17014         This happens now and then, and i don't think it is a bug.
17015         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
17016         != endpoint.
17017         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
17018         GDK_LINE_SOLID.
17019
17020         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
17021         some of the fields filled in at least.
17022
17023         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
17024         miLineArcD is no more, remove it from the function definition.
17025
17026 2001-01-04  Havoc Pennington  <hp@redhat.com>
17027
17028         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
17029         this
17030
17031         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
17032         user_data instead of tree_node
17033
17034         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
17035         TREE_VIEW_COLUMN_SIZE
17036
17037         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
17038         "size" field to "width" finishes bug 40061
17039
17040         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
17041         for bitfields, bug 40268
17042
17043 2001-01-04  Havoc Pennington  <hp@redhat.com>
17044
17045         Rename some stuff:
17046         
17047         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
17048
17049         s/GtkModelSimple/GtkTreeModelSimple/g;
17050         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
17051         s/gtk_model_simple/gtk_tree_model_simple/g;
17052         s/gtkmodelsimple/gtktreemodelsimple/g;
17053
17054         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
17055
17056         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
17057         s/column_set_col_type/column_set_sizing/g;
17058
17059         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
17060         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
17061
17062         s/GtkCellRendererType/GtkCellRendererState/g;
17063         
17064         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
17065         (gtk_cell_renderer_toggle_class_init): change "state" property to
17066         "active", to match GtkToggleButton
17067         (gtk_cell_renderer_toggle_get_active): new function, bug
17068         40269
17069         (gtk_cell_renderer_toggle_set_active): new function
17070         (gtk_cell_renderer_toggle_set_property): route changes to toggle
17071         state through gtk_cell_renderer_set_active
17072
17073 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
17074
17075         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
17076         temporarily until they work again.  Brought up to date with
17077         changes in the model.
17078         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
17079         model.
17080
17081 2001-01-04  Havoc Pennington  <hp@redhat.com>
17082
17083         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
17084         equal to the line length, then position iterator before paragraph 
17085         separators. Fixes crash reported by Mikael Hermansson when
17086         pressing left arrow from the start of a line.   
17087
17088         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
17089         about byte indexes off the end
17090         (iter_set_from_char_offset): add g_error about char offsets
17091         off the end
17092
17093 2001-01-03  Havoc Pennington  <hp@redhat.com>
17094
17095         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
17096
17097         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
17098         of private functions; remove inclusion of private headers.
17099
17100         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
17101         function, so we don't need private functions in gtktextdisplay.c
17102
17103         * gtk/gtktextiterprivate.h: underscore-ification
17104
17105         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
17106         to instead say "only useful to implement widgets"
17107
17108         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
17109         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
17110         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
17111
17112         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
17113         This function was completely broken
17114
17115         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
17116
17117         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
17118
17119         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
17120
17121         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
17122
17123         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
17124
17125         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
17126
17127         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
17128         gtk_paint_layout
17129
17130         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
17131         gtk_paint_layout
17132
17133         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
17134         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
17135         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
17136         which were not implemented.     
17137
17138         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
17139         insert_pixbuf signal. Rename delete_text to delete_range since it
17140         also deletes pixbufs and child anchors. This almost closes bug
17141         40245 (still need to deal with child anchors)
17142
17143         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
17144         insert_pixbuf, change signal names as appropriate, change types of
17145         signals taking marks/tags to have the specific type, not just
17146         G_TYPE_OBJECT
17147         
17148         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
17149         closes bug 40051
17150
17151         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
17152         unnecessary remove_contents() call
17153         (gtk_option_menu_class_init): add a "changed" signal, closes
17154         bug 40039
17155         (gtk_option_menu_update_contents): emit "changed" if the 
17156         active menu item changes
17157
17158         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
17159         cast to GtkObject, reported by Jonas Borgstrom
17160         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
17161         we can't do stuff with side effects in finalize. Instead, spew a
17162         warning if the loader isn't closed.
17163
17164         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
17165         colormap in here, non-X ports probably need to sync to this change
17166
17167         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
17168         assertion that colormap != NULL, you can set the colormap to NULL
17169         if you like.
17170         
17171         * Makefile.am: remove gtk-config-2.0
17172
17173         * configure.in: Use pkg-config to locate GLib. Remove
17174         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
17175         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
17176         Use pkg-config to locate Pango. Output correct Pango libs to
17177         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
17178
17179         * Makefile.am (pkgconfig_DATA): install only target-specific pc
17180         files
17181         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
17182         X11 pc files
17183
17184         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
17185         unref from here
17186
17187 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
17188
17189         * configure.in:
17190         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
17191
17192 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
17193
17194         * gtk/gtktextlayout.c
17195         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
17196         variable when moving back onto a single line.
17197
17198 2001-01-01  Havoc Pennington  <hp@redhat.com>
17199
17200         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
17201
17202         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
17203
17204         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
17205         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
17206
17207 2001-01-01  Havoc Pennington  <hp@redhat.com>
17208
17209         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
17210
17211         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
17212         GtkTextAttributes
17213
17214         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
17215         #40246
17216         (gtk_text_attributes_copy_values): rename from 
17217         gtk_text_attributes_copy
17218         (gtk_text_attributes_copy): a more standard GTK copy function, 
17219         which returns a new object
17220
17221 2001-01-01  Havoc Pennington  <hp@redhat.com>
17222
17223         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
17224         
17225         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
17226         don't fill in tree_view->priv->selection, kind of an unexpected
17227         side effect
17228
17229         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
17230         gtkintl.h
17231         
17232         * gtk/gtkcellrenderer.c: Remove definition of _ and include
17233         gtkintl.h
17234         (gtk_cell_renderer_get_property): remove calls to g_value_init
17235
17236         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
17237         gtkintl.h
17238
17239         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
17240         and include gtkintl.h
17241         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
17242         property names
17243
17244         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
17245         GtkTreeSelection
17246         (_gtk_tree_selection_new_from_with_view): rename, return
17247         GtkTreeSelection
17248         (_gtk_tree_selection_set_tree_view): rename with uscore
17249         (gtk_tree_selection_get_selected): fill in the "model" out param
17250         first, so it gets filled in even if we return at the top of the 
17251         function
17252         (gtk_tree_selection_real_select_all): add a comment and an else{}
17253         to clarify this a bit
17254         (gtk_tree_selection_real_unselect_all): add the same else{}
17255
17256         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
17257         set_tree_view to have underscore prefixes, move them to the
17258         private header, fix return type of new_with_tree_view
17259         (struct _GtkTreeSelection): mark struct
17260         fields private  
17261
17262         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
17263         GtkTreeModelFlags, not a guint
17264         (gtk_tree_path_prev): return gboolean not gint
17265         (gtk_tree_path_up): return gboolean not gint
17266
17267         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
17268         return GtkTreeModelFlags, not a guint
17269
17270         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
17271         that child model is non-null before unrefing it
17272         (g_value_int_compare_func): make this a qsort compare func, not 
17273         a boolean predicate
17274
17275         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
17276         (add -umn to the end), and mark it unimplemented
17277         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
17278         I don't see what it's for - doesn't the model always sort itself?
17279         (gtk_tree_model_sort_set_compare): this had the wrong signature
17280
17281         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
17282         Fix the docs to say that it destructively replaces existing
17283         attributes (previously said that it added attributes).
17284         (gtk_tree_view_column_set_visible): canonicalize bool before
17285         equality testing. Also, check for realization before
17286         hiding/showing the tree_column->window; if this window could exist
17287         before realization, then it's busted and needs fixing, we can't 
17288         create GDK resources pre-realization. Also, remove
17289         superfluous queue_resize(), since set_size() does that for us.
17290         (gtk_tree_view_column_set_col_type): check realization before 
17291         using tree_column->window
17292
17293         * gtk/gtktreedatalist.c: fix filename in copyright notice
17294
17295 2000-12-31  Havoc Pennington  <hp@pobox.com>
17296
17297         * gtk/gtktextview.c: Rearrange all the
17298         scroll-while-dragging-or-selecting code to be different, not
17299         necessarily better. ;-)
17300         (gtk_text_view_scroll_to_mark): Change this
17301         function to take within_margin as a fraction instead of a pixel
17302         value, and to take alignment arguments (indicating where to align 
17303         the mark inside the visible area)
17304         
17305         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
17306         to GtkObject
17307
17308         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
17309         behavior so that offsets past the end of the line are not 
17310         allowed, and an offset equal to the line length moves the iterator
17311         to the next line
17312         (gtk_text_iter_set_line_index): make parallel change
17313         (gtk_text_iter_get_bytes_in_line): add this function
17314         
17315         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
17316         of byte indexes off the end of the line; byte index at the end of
17317         the line now returns FALSE and doesn't fill in the requested
17318         values, byte index past the end of the line is an error.  Also,
17319         don't allow -1 offset anymore, since its meaning is unclear.
17320
17321         This change exposes some bug in visual cursor motion, where we
17322         end up with a huge invalid byte index; needs fixing. Symptom of 
17323         bug is a crash when you hit up arrow.
17324         
17325         (_gtk_text_line_char_locate): match the change to byte_locate
17326
17327         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
17328         from start of line properly. fixes bug reported by Mikael
17329         Hermansson where backspace would delete all text before the
17330         cursor.
17331
17332 2000-12-30  Tor Lillqvist  <tml@iki.fi>
17333
17334         * gdk/win32/gdkwindow-win32.c
17335         (gdk_window_impl_win32_get_visible_region): New function, as in
17336         the X11 backend.
17337         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
17338         instead of duplicating the same code here.
17339
17340         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
17341         GDK_COLORMAP macro.
17342
17343         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
17344         destroy function.
17345         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
17346         access that.
17347
17348         * gtk/gtk.def: Update.
17349
17350         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
17351
17352 2000-12-30  Havoc Pennington  <hp@pobox.com>
17353
17354         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
17355         colormap on input only windows, to avoid special cases all over
17356         the code for these windows.
17357
17358 2000-12-26  Tor Lillqvist  <tml@iki.fi>
17359
17360         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
17361         we are on a palettized display ("PseudoColor" in X11), as the code
17362         for that doesn't work anyway, and never has.
17363
17364 2000-12-22  Alexander Larsson  <alexl@redhat.com>
17365
17366         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
17367         Don't use isprint() for chars > 255.
17368
17369 2000-12-21  Havoc Pennington  <hp@redhat.com>
17370
17371         * tests/testtreeview.c: more work
17372
17373 2000-12-21  Alexander Larsson  <alexl@redhat.com>
17374
17375         * docs/README.linux-fb:
17376         Update the docs to the new pangoft2 way.
17377
17378 2000-12-21  Alexander Larsson  <alexl@redhat.com>
17379
17380         * configure.in:
17381         For linux-fb get the pangoft2 cflags and libs. This needs a recent
17382         pango version.
17383         Remove modules/linux-fb/Makefile.
17384
17385         * gdk/linux-fb/gdkdrawable-fb2.c:
17386         Render glyphs using freetype.
17387
17388         * gdk/linux-fb/gdkfb.h:
17389         Add new fb-specific functions needed for managing windows.
17390
17391         * gdk/linux-fb/gdkmain-fb.c:
17392         Remove gdk_font_init/fini() calls.
17393
17394         * gdk/linux-fb/gdkpango-fb.c:
17395         Remove old implementation. Use pangoft2 instead.
17396
17397         * gdk/linux-fb/gdkprivate-fb.h:
17398         Remove PangoFBFont and related stuff.
17399
17400         * gdk/linux-fb/gdkwindow-fb.c:
17401         Implement drawable->get_visible_region.
17402         Implement support for _gdk_window_set_child_handler () and
17403         _gdk_window_get_decorations().
17404
17405         * modules/Makefile.am:
17406         Remove linux-fb subdir.
17407
17408         * modules/linux-fb/*:
17409         Removed all.
17410         
17411 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
17412
17413         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
17414         calls, as they are no longer needed.
17415
17416         * gtk/gtktreemodelsort.c: Fix up the comparison code.
17417         
17418         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
17419         figure out how to emit a signal on an interface.
17420
17421 2000-12-20  Havoc Pennington  <hp@redhat.com>
17422
17423         * tests: new directory to contain tests, gtk/test* should move
17424         here sometime (with appropriate on-cvs-server hackery)
17425
17426         * tests/testtreeview.c, tests/Makefile.am: a test
17427         
17428         * configure.in (AC_OUTPUT): add tests/Makefile
17429
17430         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
17431         and "invisible_set" which were missing
17432
17433         * gtk/gtkrbtree.h: some cheesy indentation fix
17434         
17435 2000-12-20  Alexander Larsson  <alexl@redhat.com>
17436
17437         * gtk/gtkinvisible.c (gtk_invisible_realize):
17438         Attach the style to the window so that the style it is not
17439         leaked when unrealizing the window.
17440
17441 2000-12-18  Havoc Pennington  <hp@redhat.com>
17442
17443         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
17444         begin/end user action where appropriate
17445         (gtk_text_view_commit_handler): add begin/end user action
17446
17447         * gtk/gtktextbuffer.c: add begin/end user action signals, and
17448         bracket interactive operations with begin/end user action pair.
17449         
17450         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
17451         "interactive" arg from insert_text and delete_text signals.
17452         Add begin_user_action, end_user_action signals
17453         (gtk_text_buffer_begin_user_action): 
17454         (gtk_text_buffer_end_user_action): New functions to delimit 
17455         a user-visible action
17456
17457         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
17458         signals.
17459         
17460 2000-12-18  Havoc Pennington  <hp@redhat.com>
17461
17462         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
17463         was pretty non-working.
17464
17465         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
17466         by passing the length to g_utf8_validate().
17467
17468 2000-12-16  Havoc Pennington  <hp@pobox.com>
17469
17470         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
17471         Port to GObject, can go back in gdk-pixbuf after setting up 
17472         a gdk-pixbuf-marshal.h header over there.
17473
17474         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
17475         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
17476         args
17477         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
17478         set
17479         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
17480         here, do it when we create the buttons later
17481         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
17482         (gtk_tree_view_map): paranoia checks that column->button is shown 
17483         and unmapped
17484         (gtk_tree_view_size_request): only request visible children.
17485         Move header size calculation in here, for cleanliness, and 
17486         to maintain invariants for child widgets if we eventually 
17487         let users set different children inside the buttons
17488         (gtk_tree_view_map_buttons): factor out code to map buttons,
17489         since it was being called several times
17490         (gtk_tree_view_size_allocate_buttons): move_resize the drag
17491         windows instead of just moving them; their height may change 
17492         if we allow random widgets in there, or the theme changes.
17493         (gtk_tree_view_size_allocate): move button size allocation 
17494         above emitting the scroll signals, to ensure a sane state when we
17495         hit user code
17496         (gtk_tree_view_button_release): remove queue_resize after
17497         tree_view_set_size(), set_size() will handle any resize queuing
17498         that's needed
17499         (gtk_tree_view_focus_in): just queue a draw, don't fool with
17500         draw_focus goo
17501         (gtk_tree_view_focus): use gtk_get_current_event() and
17502         gdk_event_get_state()
17503         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
17504         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
17505         semicolon
17506         (gtk_tree_view_create_button): show the button here
17507         (gtk_tree_view_button_clicked): actually emit the clicked signal
17508         on the column
17509         (_gtk_tree_view_set_size): return right away if the size is
17510         unchanged, as a cheesy optimization
17511         (gtk_tree_view_setup_model): rename set_model_realized to 
17512         setup_model to match the flag that indicates whether we've 
17513         called it
17514         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
17515         exist, because set_scroll_adjustment does that and it shouldn't
17516         matter what order you call these in
17517         (gtk_tree_view_get_vadjustment): ditto
17518         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
17519         for paranoia
17520         (gtk_tree_view_set_headers_visible): call
17521         gtk_tree_view_map_buttons() instead of using cut-and-paste code
17522         (gtk_tree_view_append_column): clarify whether the return value
17523         is the count of columns before or after, and do the increment 
17524         separately from the return statement so you can tell from the code.
17525         (gtk_tree_view_remove_column): ditto
17526         (gtk_tree_view_insert_column): ditto
17527         (gtk_tree_view_get_column): remove g_return_if_fail for columns
17528         outside the existing range, the docs say that outside-range
17529         columns are allowed, so we handle them as documented. (Presumably
17530         this allows a nice loop with column != NULL as test.)
17531         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
17532         mean (left/right/center etc.).
17533         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
17534         (gtk_tree_view_expand_row): add docs
17535         (gtk_tree_view_collapse_row): add docs
17536
17537         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
17538         function to emit the clicked signal on a column
17539         
17540         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
17541         state of an event
17542         (gdk_event_get_time): don't treat GDK_SCROLL 
17543         as a button event, remove default case from switch so gcc 
17544         will whine if we don't explicitly handle all event types
17545
17546         * gtk/gtktreeselection.h: added some FIXME 
17547         
17548         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
17549         "columns" to "n_columns" and "column" to "columns" for clarity
17550
17551 2000-12-16  Havoc Pennington  <hp@pobox.com>
17552         
17553         * gtk/gtktextiter.c: General cleanup of the log attr iteration
17554         stuff. This should make e.g. the delete key work again in the
17555         text widget...
17556         (gtk_text_iter_forward_cursor_positions): handle negative count
17557         (gtk_text_iter_backward_cursor_positions): handle negative count
17558         (gtk_text_iter_forward_word_ends): handle negative count
17559         (gtk_text_iter_backward_word_starts): handle negative count
17560
17561         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
17562         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
17563         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
17564         GObject. No doubt will cause breakage.
17565
17566         * demos/gtk-demo/textview.c: remove hacks around
17567         non-GObject-ification of the text objects
17568
17569         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
17570         the text tag
17571         
17572 2000-12-14  Havoc Pennington  <hp@pobox.com>
17573
17574         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
17575         that we have Xrender
17576
17577 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
17578
17579         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
17580         Add two virtualized functions gdk_drawable_get_clip_region - to
17581         get the clip region when drawing.
17582         
17583         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
17584         use invalidate_region.
17585
17586         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
17587         region.
17588
17589         * acconfig.h configure.in: Check for Xft. For now, assume
17590         that if Xft is found, Pango was compiled with Xft support
17591         as well.
17592
17593         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
17594         gdk_colormap_query_color().
17595         
17596         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
17597         with Xft if appropriate.
17598
17599         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
17600         a pangoxft context if we have XFT and the environment
17601         variable GD_USE_XFT is set.
17602         
17603         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
17604         and also possibly an XftDraw structure.
17605
17606         * gtk/gtkfontsel.c: Handle the case where the font from the
17607         style doesn't match any of the fonts a bit better.
17608         
17609         * gtk/testgtk.c: Add tabs between directional segments for
17610         hebrew/arabic test. (Not really necessary, just a little
17611         prettier.)
17612
17613 2000-12-14  Havoc Pennington  <hp@redhat.com>
17614
17615         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
17616         reading a file
17617
17618 2000-12-14  Havoc Pennington  <hp@redhat.com>
17619
17620         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
17621         unused call to get_last_line()
17622
17623         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
17624         here until boxed is working (and maybe after that - we should
17625         really not gratuitously break old code)
17626
17627         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
17628         specific types for font_desc and tabs args, move them to
17629         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
17630         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
17631
17632         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
17633         use GTK_TYPE_POINTER for signal signatures as a hack-around
17634
17635         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
17636         PangoTabArray
17637
17638         * gtk/gtktextlayout.c (line_display_iter_to_index): 
17639         make static
17640         (line_display_index_to_iter): make static
17641
17642         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
17643         to marshal a string not a boxed
17644
17645         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
17646
17647         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
17648         since the UTF-8 isn't validated yet
17649
17650         * gtk/gtktextsegment.c (char_segment_check_func): don't require
17651         lines to end in '\n'
17652         
17653         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
17654         forward_to_delimiters, and grapheme boundaries
17655         (gtk_text_view_delete_from_cursor): properly handle non-newline
17656         delimiters, and grapheme boundaries
17657
17658         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
17659         to gtk_text_iter_forward_to_delimiters, and make it work properly
17660         if empty lines end with a character other than '\n'
17661
17662         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
17663         position
17664
17665 2000-12-15  Tor Lillqvist  <tml@iki.fi>
17666
17667         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
17668
17669         * gtk/gtk.def
17670         * gdk/gdk.def: Update.
17671
17672         * gdk/win32/gdkmain-win32.c
17673         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
17674         gdkmain-win32.c here.
17675
17676         * gdk/win32/makefile.mingw.in (all): No need to make
17677         gdk-win32res.o here, the makefile one step up will call us to make
17678         it.
17679
17680         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
17681         gdkkeys-win32.
17682
17683         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
17684
17685         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
17686         call to g_source_add().
17687
17688         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
17689         leak. Thanks to Andreas Kemnade.
17690
17691 2000-12-13  Havoc Pennington  <hp@pobox.com>
17692
17693         * gtk/gtktextbtree.h: Remove double _ in front of some functions
17694
17695         * gtk/gtktext*.[hc]: update accordingly
17696         
17697 2000-12-13  Havoc Pennington  <hp@pobox.com>
17698
17699         * gtk/gtktextbtree.h: Put _ in front of every function in this 
17700         header file
17701
17702         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
17703
17704 2000-12-13  Alex Larsson  <alexl@redhat.com>
17705
17706         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
17707         Add support for ps2 intellimouse.
17708
17709         * gdkkeyboard-fb.c:
17710         Move shift-F1 repaint handling to xlate handler only.
17711         
17712         * docs/README.linux-fb:
17713         Add imps2 to docs.
17714         Document the new refresh keys.
17715         
17716 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
17717
17718         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
17719
17720         * gtk/gtkbox.c: change property types from (u)long to (u)int for
17721         ::position and ::padding.
17722
17723         * gtk/gtkcontainer.c: make ::border_width an INT property.
17724
17725         * gtk/gtkpacker.c: make ::position an INT property.
17726
17727         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
17728         guard against NULL h/v scrollbars, since this is used at construction
17729         time.
17730
17731         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
17732         internal gtk_clist_constructor().
17733
17734         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
17735         gtk_ctree_constructor().
17736
17737         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
17738         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
17739
17740         * docs/reference/Makefile.am: fun stuff, disabled docs generation
17741         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
17742
17743         * gtk/gtkwidget.[hc]:
17744         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
17745         and gtk_widget_get().
17746         (gtk_widget_new): use g_object_new_valist().
17747         (gtk_widget_set): use g_object_set_valist().
17748
17749         * gtk/gtkobject.[hc]:
17750         removed gtk_object_arg_get_info(), gtk_object_getv(),
17751         gtk_object_query_args(), gtk_object_newv(),
17752         gtk_object_class_add_signals(),
17753         gtk_object_class_user_signal_new(),
17754         gtk_object_class_user_signal_newv(),
17755         gtk_object_arg_set(), gtk_object_arg_get(),
17756         gtk_object_args_collect(),
17757         gtk_object_default_construct(),
17758         gtk_object_constructed(),
17759         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
17760         removed nsignals, signals and n_args members from GtkObjectClass.
17761         (gtk_object_new): use g_object_new_valist().
17762         (gtk_object_set): use g_object_set_valist().
17763         (gtk_object_get): use g_object_get_valist().
17764         
17765         * gtk/gtkcompat.h: define gtk_object_default_construct().
17766         
17767         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
17768         g_object_new().
17769
17770         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
17771         fucntions, cleaned up method assignments (make sure your structures
17772         are setup properly before calling out). removed all GTK_CONSTRUCTED
17773         hacks ;)
17774
17775 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
17776
17777         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
17778         off-by-one error in checks. (Dave Lambert)
17779
17780 2000-12-12  Alexander Larsson  <alexl@redhat.com>
17781
17782         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
17783         Don't free gdk_fb_keyboard twice.
17784
17785 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
17786
17787         * gtk/testgtk.c:
17788         (create_tooltips): 
17789         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
17790         use GObject swapped_signal:: properties instead.
17791
17792         * gtk/gtkcellrenderertoggle.c: 
17793         * gtk/gtkcellrenderertextpixbuf.c: 
17794         * gtk/gtkcellrenderertext.c: 
17795         * gtk/gtkcellrendererpixbuf.c: 
17796         * gtk/gtkcellrenderer.c:
17797         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
17798         missing warnings for invalid property ids, install properties
17799         with g_object_class_install_property() now.
17800         
17801         * gtk/gtksignal.c:
17802         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
17803         
17804 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
17805         
17806         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
17807         to determine if a window is the focus widget within
17808         its toplevel.
17809
17810         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
17811         to be boolean.
17812
17813         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
17814         of the case where the container CAN_FOCUS to here instead
17815         of having it in each individual move-the-focus place.
17816
17817         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
17818         focusing to be geometric in a much more obvious sense. Arrowing
17819         around is still non-intuitive because it isn't perfect and
17820         because entries, etc, grab the arrow keys, but it at least
17821         usually will do what you expect now.
17822         
17823         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
17824         file.
17825
17826         * gtk/gtknotebook.c: Change tabs to be a single item in
17827         the focus chain. Make movement of focus on tabs with arrow
17828         keys wrap around.
17829         
17830         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
17831         CHECK_FIND_CHILD macro to give informative error messages
17832         instead of silent returns.
17833
17834         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
17835         flag since we handle GdkReturn on the tabs.
17836
17837         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
17838         windows rather than sending expose events directly.
17839
17840         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
17841         definition for GtkNotebookPage into .c file, since it is private.
17842
17843         * gtk/testgtk.c (create_notebook): Add option for 
17844         testing borderless notebook.
17845
17846         * gtk/testgtk.c (page_switch): Removed egregious poking
17847         around in GTK+ internals.
17848
17849         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
17850
17851         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
17852         properly through gtk_clist_focus. Make the title headers a
17853         single item in the tab-focus chain, and make left-right wrap
17854         around.
17855
17856         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
17857         focus method so that wrapping around works properly.
17858
17859         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
17860         that is handled for the widget now. 
17861
17862 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
17863
17864         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
17865         widgets as TOPLEVEL.
17866
17867         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
17868         TOPLEVEL widgets are containers.
17869
17870         * gtk/gtkinvisible.h: Remove useless include.
17871
17872 2000-12-11  Havoc Pennington  <hp@redhat.com>
17873
17874         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
17875         Handle chopping off \r\n and 0x2029 in addition to \n before
17876         passing to PangoLayout
17877
17878         * gtk/gtkimcontextsimple.c
17879         (gtk_im_context_simple_get_preedit_string): 
17880         return an empty string if no match is pending
17881
17882         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
17883         assertion that the returned preedit string was sane
17884
17885         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
17886         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
17887         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
17888
17889 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
17890
17891         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
17892         Fix up finalizer to chain to its parent.
17893
17894 2000-12-11  Alexander Larsson  <alexl@redhat.com>
17895
17896         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
17897         Clearified the difference between the keyboard types. Wrote a note
17898         about the magic sysrq key to get out of raw mode.
17899
17900 2000-12-09  James Henstridge  <james@daa.com.au>
17901
17902         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
17903         member to hold masks for detecting the start of a protocol packet.
17904         (mouse_devs): add packet start masks for ps2 and ms device types.
17905         Left the mask for fidmour blank, as I have no idea what it should
17906         be.
17907         (handle_mouse_io): skip bytes until we get to the start of a
17908         packet.  My Logitech mouse seems to be passing an extra NULL pad
17909         byte, and GPM does a similar thing here.
17910         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
17911         this is the ms mouse driver.
17912         (gdk_fb_mouse_ms_packet): fix up button handling, which was
17913         completely broken except for button1.  It was checking the wrong
17914         bit in the packet for the status of the right mouse button, and
17915         wrongly assuming right == button2 rather than 3.  I fixed that and
17916         also added support for middle button (button2).
17917
17918 2000-12-08  Havoc Pennington  <hp@redhat.com>
17919
17920         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
17921         that cause a segfault on text insertion
17922
17923         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
17924         warning
17925
17926         * gtk/gtktextiter.c (test_log_attrs): use
17927         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
17928
17929         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
17930         Get log attrs for a line, using a cache stored on the buffer
17931         
17932         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
17933         reported by Jeff Franks
17934
17935 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
17936
17937         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
17938         /dev/ttyS0 -> /dev/mouse
17939
17940 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
17941
17942         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
17943         Added dummy gdk_fontset_load.
17944
17945 2000-12-08  Alexander Larsson  <alexl@redhat.com>
17946
17947         * docs/README.linux-fb:
17948         * docs/Makefile.am:
17949         Initial GtkFB docs.
17950         
17951         * gdk/linux-fb/Makefile.am:
17952         Define GDK_DATA_PREFIX.
17953
17954         * gdk/linux-fb/gdkmain-fb.c:
17955         Fix typo.
17956         Change default display to /dev/fb0.
17957
17958         * gdk/linux-fb/gdkpango-fb.c:
17959         Add $(prefix)/share/fonts/ to font path.
17960         
17961 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
17962
17963         * gdk/linux-fb/gdkkeyboard-fb.c:
17964         New file containing the abstracted keyboard driver. Most code
17965         taken from gdkinput-ps2.c
17966
17967         * gdk/linux-fb/gdkinput-ps2.c:
17968         Removed file.
17969         
17970         * gdk/linux-fb/Makefile.am:
17971         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
17972
17973         * gdk/linux-fb/gdkcolor-fb.c:
17974         display->fb was renamed to display->fb_fd.
17975
17976         * gdk/linux-fb/gdkcursor-fb.c:
17977         gdk_mouse_get_info -> gdk_fb_mouse_get_info
17978
17979         * gdk/linux-fb/gdkinput.c:
17980         Moved gdk_input_init here from gdkinput-ps2.c
17981
17982         * gdk/linux-fb/gdkmain-fb.c:
17983         display->fb was renamed to display->fb_fd.
17984         Now the tty and the console is opened here instead
17985         of in the keyboard driver. Also check GDK_VT to see what
17986         tty to open.
17987         Move gdk_beep () here from gdkinput-ps2.c
17988         gdk_mouse_get_info -> gdk_fb_mouse_get_info
17989
17990         * gdk/linux-fb/gdkmouse-fb.c:
17991         Add header.
17992         gdk_mouse_get_info -> gdk_fb_mouse_get_info
17993         Return correct keyboard modifiers.
17994         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
17995
17996         * gdk/linux-fb/gdkprivate-fb.h:
17997         Add tty and vt info to display.
17998         Add orignal modeinfo storage to display
17999         Update global functions
18000
18001         * gdk/linux-fb/gdkwindow-fb.c:
18002         Added gdk_fb_window_find_focus().
18003         gdk_mouse_get_info -> gdk_fb_mouse_get_info
18004
18005 2000-12-07  Havoc Pennington  <hp@pobox.com>
18006
18007         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
18008         function, noticed by Alex
18009
18010 2000-12-06  Elliot Lee  <sopwith@redhat.com>
18011
18012         * configure.in: Detect freetype properly
18013
18014         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
18015         above.
18016
18017 2000-12-06  Alexander Larsson  <alexl@redhat.com>
18018
18019         * gdk/linux-fb/Makefile.am:
18020         Add gdkmouse-fb.c
18021         
18022         * gdk/linux-fb/gdkmouse-fb.c:
18023         New file. Abstracted the mouse drivers a bit.
18024
18025         * gdk/linux-fb/gdkcursor-fb.c:
18026         The cursor hide/show functions was moved here from gdkinput-ps2.c.
18027
18028         * gdk/linux-fb/gdkinput-ps2.c:
18029         Removed old mouse handling code. Moved cursor handling code
18030         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
18031         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
18032         gdk_mouse_get_info.
18033
18034         * gdk/linux-fb/gdkmain-fb.c:
18035         Pass NULL pointers for x,y in gdk_mouse_get_info call.
18036
18037         * gdk/linux-fb/gdkprivate-fb.h:
18038         Removed public gdk_fb_find_common_ancestor, added and renamed
18039         functions for the new mouse handling code.
18040
18041         * gdk/linux-fb/gdkwindow-fb.c:
18042         Moved gdk_fb_window_send_crossing_events here. added global
18043         variable gdk_fb_window_containing_pointer. made
18044         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
18045         renamed to gdk_mouse_get_info.
18046
18047 2000-12-06  Alexander Larsson  <alexl@redhat.com>
18048
18049         * gdk/linux-fb/gdkevents-fb.c:
18050         Update to match latest gmain/gsource changes.
18051
18052         * gdk/linux-fb/gdkinput-ps2.c:
18053         Bogus gdk_keymap_get_entries_for_keycode implementation so that
18054         it links. Will be implemented later.
18055
18056 2000-12-03  Havoc Pennington  <hp@pobox.com>
18057
18058         * gdk/Makefile.am: add gdkkeys.[hc]
18059
18060         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
18061         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
18062
18063         * acconfig.h, configure.in: add checks and command line options
18064         for XKB
18065
18066         * gdk/x11/gdkkeys-x11.c: Implement the above functions
18067         
18068         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
18069         and group in the key event
18070
18071         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
18072         field with the low-level hardware key code, and a group
18073         field with the keyboard group
18074
18075         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
18076         and declare a couple globals used for keymap handling
18077         
18078         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
18079         hold down Shift-Control and type a hex number to get a Unicode 
18080         character corresponding to the hex number
18081         (gtk_im_context_simple_get_preedit_string): Fix cursor position
18082         (return bytes not chars)
18083
18084 2000-12-05  Elliot Lee  <sopwith@redhat.com>
18085
18086         * gdk/gdkcolor.h: Make GdkColor specify element sizes
18087         to avoid waste on 64-bit platforms.
18088
18089 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
18090
18091         * INSTALL: Fix link to PNG home, remove reference
18092         to fribidi.
18093
18094         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
18095         
18096         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
18097         tested.)
18098
18099         * gtk/gtkcheckmenuitem.c: Permanently turn on
18100         always_show_toggle.
18101
18102         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
18103         be NULL. (Vladimir Klebanov, #26545)
18104
18105         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
18106         some signed/unsigned comparison problems. (#6510,
18107         David Kaelbling)
18108
18109         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
18110         return type to boolean (Oskar Liljeblad, #18648)
18111
18112 2000-12-05  Alexander Larsson  <alexl@redhat.com>
18113
18114         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
18115         Remove bogus colormap setting.
18116
18117 2000-12-05  Alexander Larsson  <alexl@redhat.com>
18118
18119         * gdk/linux-fb/gdkcolor-fb.c:
18120         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
18121
18122         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
18123         Must set colormap.
18124         
18125 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
18126
18127         * docs/tutorial/gtk-tut.sgml: DND updates
18128
18129 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
18130
18131         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
18132         Remove old debug g_warning().
18133         (gdk_fb_draw_drawable): The src argument can be either a wrapper
18134         or an implementation, just pass the implementation to draw_drawable_2.
18135         
18136         * gdk/linux-fb/gdkprivate-fb.h:
18137         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
18138
18139         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
18140         clear and invalidate area when window is destroyed.
18141         (send_map_events): Remove old commented out code.
18142
18143 2000-12-05  Alexander Larsson  <alexl@redhat.com>
18144
18145         * gdk/linux-fb/gdkpango-fb.c:
18146         Use italic instead of oblique in font aliases.
18147         
18148         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
18149         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
18150         other unsupported functions.
18151
18152 2000-12-04  Havoc Pennington  <hp@redhat.com>
18153
18154         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
18155
18156         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
18157
18158         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
18159
18160         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
18161         hack to avoid infinite loops (synthetic expose event) - 
18162         Owen has more appropriate fixes in a branch he'll check in later.
18163
18164         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
18165         separator, CR, and CRLF as line ends
18166
18167         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
18168         into lines using pango_find_paragraph_boundary(); other bits of
18169         the widget are still going to be broken if the boundary isn't '\n'
18170         though
18171
18172 2000-12-04  Alexander Larsson  <alexl@redhat.com>
18173
18174         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
18175         multiply.
18176
18177         * gdk/linux-fb/gdkpango-fb.c:
18178         Copied some 26.6 scaling macros from pango to clean up the rounding.
18179         (pango_fb_font_get_glyph_info): Correct sign on x value.
18180
18181         * gdk/linux-fb/gdkprivate-fb.h:
18182         Removed unreferenced external functions.
18183
18184         * modules/linux-fb/Makefile.am: Use ` instead of '.
18185
18186         * modules/linux-fb/basic.c:
18187         Remove dead code. In particular the dummy lang engine which broke all
18188         pango layouts in GtkFB. Don't include tables-big.i anymore.
18189
18190         * modules/linux-fb/tables-big.i:
18191         Upgrade to latest version from pango. Left for reference, basic_ranges
18192         moved to basic.c.
18193         
18194 2000-12-04  Havoc Pennington  <hp@redhat.com>
18195
18196         Fix bugs Alex found:
18197         
18198         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
18199         to "draw"
18200
18201         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
18202
18203         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
18204
18205         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
18206         implementation in here, apparently the expose() implementation was
18207         dead code.
18208
18209 2000-12-04  Alexander Larsson  <alexl@redhat.com>
18210
18211         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
18212         Return positive descent.
18213
18214 2000-12-02  Havoc Pennington  <hp@pobox.com>
18215
18216         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
18217         method and signal
18218         
18219         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
18220         calls gdk_window_process_updates() to push the exposes through
18221         (gtk_widget_class_init): No more draw signal, no
18222         gtk_widget_real_draw()  
18223         
18224         * gtk/gtkbin.c (gtk_bin_draw): remove
18225
18226         * gtk/gtkbox.c (gtk_box_draw): remove
18227
18228         * gtk/gtkbutton.c (gtk_button_draw): remove
18229
18230         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
18231
18232         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
18233
18234         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
18235
18236         * gtk/gtkclist.c (gtk_clist_draw): remove
18237
18238         * gtk/gtkentry.c (gtk_entry_draw): remove
18239
18240         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
18241
18242         * gtk/gtkfixed.c (gtk_fixed_draw): remove
18243
18244         * gtk/gtkframe.c (gtk_frame_draw): remove
18245
18246         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
18247
18248         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
18249
18250         * gtk/gtklayout.c (gtk_layout_draw): remove
18251
18252         * gtk/gtklist.c (gtk_list_draw): remove
18253
18254         * gtk/gtklistitem.c (gtk_list_item_draw): remove
18255
18256         * gtk/gtkmenu.c (gtk_menu_draw): remove
18257
18258         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
18259
18260         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
18261
18262         * gtk/gtknotebook.c (gtk_notebook_draw): remove
18263
18264         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
18265
18266         * gtk/gtkpacker.c (gtk_packer_draw): remove
18267
18268         * gtk/gtkrange.c (gtk_range_draw): remove
18269
18270         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
18271
18272         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
18273
18274         * gtk/gtktable.c (gtk_table_draw): remove
18275
18276         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
18277
18278         * gtk/gtktext.c (gtk_text_draw): remove
18279
18280         * gtk/gtktextview.c (gtk_text_view_draw): remove
18281
18282         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
18283
18284         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
18285
18286         * gtk/gtktree.c (gtk_tree_draw): remove
18287
18288         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
18289
18290         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
18291
18292         * gtk/gtkviewport.c (gtk_viewport_draw): remove
18293
18294         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
18295
18296         * gtk/gtkvscale.c (gtk_vscale_draw): remove
18297
18298         * gtk/gtkwindow.c (gtk_window_draw): remove
18299
18300 2000-20-01  Anders Carlsson  <andersca@gnu.org>
18301
18302         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
18303         a GtkToggleButton is both insensitive and active, it was being
18304         drawn by the GtkButton draw handler which doesn't check the
18305         state. Now it's calling gtk_toggle_button_paint instead.
18306         
18307 2000-12-01  Havoc Pennington  <hp@redhat.com>
18308
18309         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
18310         dangling pointers to the appearance attributes from the 
18311         line display
18312
18313         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
18314         width/height to mean "full width/height of drawable"
18315
18316         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
18317         click to select word/line
18318         
18319         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
18320         when getting log attrs. Get a slice, so that pixmaps and stuff
18321         are properly handled.
18322
18323         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
18324         paste into the selection (replaces selection now, previously
18325         crashed or added to selection). Reveals longstanding btree bug -
18326         select multiple lines, middle-click on the selection, boom. This
18327         isn't related to my changes though.
18328
18329         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
18330         PangoLogAttrs changes
18331         (gtk_entry_move_backward_word): ditto
18332
18333         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
18334         functions return bool whether the iter moved onto a
18335         dereferenceable position.
18336  
18337         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
18338         functions for motion in terms of display lines.
18339
18340         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
18341         get the buffer a mark is inside
18342         
18343 2000-12-01  Alexander Larsson  <alexl@redhat.com>
18344
18345         * gdk/linux-fb/Makefile.am:
18346         * modules/linux-fb/Makefile.am:
18347         Freetype 2 final uses freetype-config
18348
18349         * gdk/linux-fb/gdkpango-fb.c:
18350         Upgrade to use Freetype 2 final.
18351         More flexible support for font aliases, this also fixes a bug with
18352         GtkFontSelector, as the aliases must be visible in the font/family list,
18353         or GtkFontSelector reads uninitialized memory.
18354
18355 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
18356
18357         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
18358         XGetIMValues to properly terminate variable argument list, and do
18359         NULL return check for ic_values and xim_styles.
18360
18361         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
18362         Restore preedit state after XmbResetIC().
18363         
18364         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
18365         XvaCreateNestedList() should take XvaNestedList, but not
18366         XvaNestedList*.
18367
18368         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
18369         preedit_draw_callback, preedit_caret_callback): Match
18370         "preedit-changed" signal name to "preedit_changed" to be
18371         consistent to the spec.
18372
18373         * gtk/gtkimcontextsimple.c (check_table):
18374         Match "preedit-changed" to "preedit_changed" to be consistent
18375         to the spec.
18376
18377 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
18378
18379         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
18380         gc->clip_region == NULL>
18381
18382 2000-11-30  Tor Lillqvist  <tml@iki.fi>
18383
18384         Changes by Hans Breuer:
18385         
18386         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
18387         Dont't use negative width and height as max_hints. This fixes
18388         Owen's recent testgtk changes for win32.
18389
18390         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
18391         gdk_win32_hdc_release): These are exported and may be called with
18392         other drawable types than our GdkDrawableImplWin32 (?).
18393
18394         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
18395         so always #define USE_BACKING_STORE.
18396
18397         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
18398         of printf for debugging output.
18399
18400         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
18401         
18402         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
18403
18404         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
18405         declaration.
18406
18407         * gtk/gtktexttypes.h: Ditto.
18408
18409         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
18410         (GDK_VoidSymbol) also if in case of arg check failure.
18411
18412         * gtk/gtkimcontextsimple.c
18413         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
18414         position to the pointer, but to the variable it points to.
18415
18416         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
18417
18418         * gtk/gtk.def: Updates.
18419
18420 2000-11-29  Elliot Lee  <sopwith@redhat.com>
18421
18422         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
18423         GTK_TYPE_TREE_MODEL.
18424
18425 2000-11-29  Alexander Larsson  <alexl@redhat.com>
18426
18427         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
18428         Set the size of the font from the description.
18429         (gdk_text_width): Gross hack that calculates the width
18430         of text by text_length * size/2. This is necessary because
18431         GtkLabel does some ugly gtk_string_width call to calculate
18432         an good size.
18433         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
18434
18435 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
18436
18437         * docs/tutorial/gtk-tut.sgml: DND updates
18438
18439 2000-11-29  Alexander Larsson  <alexl@redhat.com>
18440
18441         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
18442         If you pass width or height == 0 to gdk_window_clear_area they
18443         should be calculated from the window size.
18444
18445 2000-11-29  Alexander Larsson  <alexl@redhat.com>
18446
18447         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
18448         a grab, but no grab-cursor, use the cursor from the grabbed
18449         window. (gdk_fb_window_send_crossing_events): Send normal
18450         enter/leave notifications if grab and owner_events == TRUE.
18451
18452 2000-11-29  Alexander Larsson  <alexl@redhat.com>
18453
18454         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
18455         Do implicit button grabs, even if the window doesn't
18456         want the event.
18457         (gdk_fb_window_send_crossing_events): If there is a
18458         grab, only the grabbed window gets normal enter/leave
18459         notifications. On ungrab go from grabbed window to current.
18460         Don't send any notification to b when propagating from c -> b.
18461         If setting a grab on window, don't set prev_window.
18462         (handle_mouse_input): Send enter/leave events to the window the
18463         mouse is over, not the grabbed one.
18464         
18465 2000-11-28  Elliot Lee  <sopwith@redhat.com>
18466
18467         * gdk/gdkregion-generic.c: Zap warning.
18468         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
18469         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
18470
18471 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
18472
18473         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
18474         The cursor should be hidden if it is part of either the
18475         source or destination region. Not only if it is in both.
18476         (gdk_window_set_transient_for): Silence warnings.
18477
18478 2000-11-28  Alexander Larsson  <alexl@redhat.com>
18479
18480         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
18481         The default mode in X is Pie Arcs, therefore that is
18482         what Gtk+ uses.
18483
18484 2000-11-28  Alexander Larsson  <alexl@redhat.com>
18485
18486         * gdk/linux-fb/gdkinput-ps2.c:
18487         Implement correct EnterNotify/LeaveNotify:
18488         (gdk_fb_window_send_crossing_events): New function that sends
18489         all GdkCrossingEvents from the last mouse-window to the specified
18490         destination.
18491         (gdk_fb_window_visibility_crossing): Removed function.
18492         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
18493         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
18494         instead of gdk_window_get_pointer() for better readability.
18495
18496         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
18497         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
18498
18499         * gdk/linux-fb/gdkprivate-fb.h:
18500         removed gdk_fb_window_visibility_crossing, added
18501         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
18502
18503         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
18504         New function that finds the least common ancestor of two windows.
18505         (gdk_window_show, gdk_window_hide):
18506         Use gdk_fb_window_send_crossing_events.
18507         (gdk_fb_window_move_resize): Send configure events to toplevel
18508         windows. Use gdk_fb_window_send_crossing_events.
18509
18510 2000-11-27  Havoc Pennington  <hp@redhat.com>
18511
18512         * gtk/gtkprivate.h (enum): Remove a trailing comma
18513
18514 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
18515
18516         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
18517         the "changed" callback of the adjustment.  We need to redraw the
18518         spin button's arrows when the adjustment's range changes.
18519         (adjustment_changed_cb): Draw the arrows.
18520         (gtk_spin_button_value_changed): Draw the arrows.
18521
18522 2000-11-23  Alexander Larsson  <alexl@redhat.com>
18523
18524         * gdk/linux-fb/gdkselection-fb.c:
18525         Initial selection implementation.
18526
18527         * gtk/gtkselection.c:
18528         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
18529         requestor in gtk_selection_request.
18530         
18531         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
18532         Added gdk_selection_property atom.
18533
18534         * gdk/linux-fb/gdkprivate-fb.h:
18535         Export _gdk_selection_window_destroyed.
18536         Removed mask_off_x/y from GdkCursorPrivateFB.
18537         Removed hbearing, added top, left to PangoFBGlyphInfo.
18538
18539         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
18540         Call _gdk_selection_window_destroyed
18541         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
18542         the root window has been created.
18543         (static_dx_hack, static_dy_hack, compare_draw_rects,
18544         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
18545         in region. They are already sorted. Instead just traverse them in
18546         reverse if draw_direction < 0.
18547         
18548         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
18549         Double-clicks must be sent after the normal button_press.
18550         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
18551         
18552         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
18553         Pass _gdk_fb_screen_gc instead of NULL.
18554
18555         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
18556         Initialize gdk_selection_property.
18557         (gdk_event_make): Remove unused code.
18558
18559         * gdk/linux-fb/gdkcursor-fb.c:
18560         Make the pixmap for the cursor the same size as the mask. Also remove
18561         the mask_off_x/y fields in GdkCursorPrivateFB and combine
18562         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
18563         Now the whole cursor is visible.
18564
18565         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
18566         Fix bug where xdest+height instead of ydest+height was used
18567         to calculate if the source and dest overlapped. This fixes the
18568         redraw bug when the main window in testgtk was scrolled when
18569         partially covered by a tall window.
18570         Copy rectangles in region in order depending on draw_direction.
18571         Also moved the draw_direction flipping of start_y and end_y into
18572         the gc functions, as this might not be what all of them want.
18573         (gdk_fb_draw_lines): Support dashed lines.
18574         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
18575         so that the text is positioned correctly (was 1 pixel high).
18576
18577         gdk/linux-fb/gdkgc-fb.c:
18578         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
18579         all lines were drawn a pixel to short. Also checked the default of
18580         the rest of the values, and they're the same as X now.
18581
18582         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
18583         Clean up pixel positioning of the glyphs. Just use bgy->top and
18584         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
18585         to all divisions to get correct rounding behaviour.
18586
18587         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
18588         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
18589         Moved start_y/end_y flip into draw_drawable implementations.
18590         Flip also x rendering when draw_direction < 0.
18591         Remove unneccesary multiply with draw_direction.
18592
18593 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
18594
18595         * docs/tutorial/gtk-tut.sgml:
18596           - get rid of gtk_toggle_button_toggled FUD
18597           - start DND section - needs work - based on:
18598                 http://wolfpack.twu.net/docs/gtkdnd/
18599
18600 2000-11-22  Alexander Larsson  <alexl@redhat.com>
18601
18602         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
18603         Correct calculation of font metrics. Now GtkEntrys have sane
18604         size.
18605
18606 2000-11-22  Alexander Larsson  <alexl@redhat.com>
18607
18608         * gdk/gdktypes.h:
18609         Add new type GdkSpan
18610         
18611         * docs/reference/gdk/gdk-sections.txt,
18612         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
18613         gdk/gdkregion.h:
18614         Implement and document gdk_region_spans_intersect_foreach.
18615
18616         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
18617         Add new file gdkrender-fb.c which contains all core
18618         rendering code.
18619         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
18620         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
18621         (optimized rectangle fillers).
18622
18623         * gdk/linux-fb/gdkdrawable-fb2.c:
18624         Move all rendering code to gdkrender-fb.c.
18625         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
18626         Use the new span intersection functions in gdk_fb_fill_spans.
18627         gdk_fb_draw_rectangle() clips filled rectangles and calls
18628         gc->fill_rectangle with the result.
18629         gdk_fb_fill_spans() gets extra argument "sorted".
18630
18631         * gdk/linux-fb/gdkevents-fb.c:
18632         Remove unused includes and defines.
18633         New function gdk_fb_get_time() to get correct time for events.
18634
18635         * gdk/linux-fb/gdkinput-ps2.c:
18636         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
18637         Make sure to set the time of all events.
18638
18639         * gdk/linux-fb/gdkmain-fb.c:
18640         Use gdk_fb_get_time ().
18641
18642         * gdk/linux-fb/gdkprivate-fb.h:
18643         New virtual GC calls: fill_span & fill_rectangle.
18644         Export gdk_fb_get_time().
18645         gdk_fb_fill_spans() gets extra argument "sorted".
18646
18647         * gdk/linux-fb/mi*.c:
18648         Use GdkSpan instead of GdkRectangle.
18649         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
18650         from XFree 4 source)
18651         
18652 2000-11-22    <jrb@redhat.com>
18653
18654         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
18655         reversing the order in an if statement will do.  Doing so managed
18656         to make the treemodelsort half work.  Other half will follow after
18657         I get the insert function fully fixed.
18658
18659 2000-11-21  Elliot Lee  <sopwith@redhat.com>
18660         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
18661         more than 2 bits. Besides, I need to implement an evil hack. :)
18662
18663 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
18664
18665         * docs/tutorial/gtk-tut.sgml: minor corrections
18666
18667 2000-11-20  Jonathan Blandford <jrb@redhat.com>
18668         * gtk/gtktreemodelsort.h: Add convertion functions to let you
18669           convert to and from relative path's and iters.
18670
18671         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
18672           testing sorting functions a bit better.  Currently broken -- will
18673           fix in morning.
18674
18675 2000-11-20  Havoc Pennington  <hp@redhat.com>
18676
18677         * gtk/gtkwidget.c: Documented a bunch of functions in here
18678         (gtk_widget_realize): Warn if you try to realize
18679         a widget with no parent that isn't a toplevel
18680         (gtk_widget_intersect): return a gboolean
18681
18682 2000-11-20  Havoc Pennington  <hp@redhat.com>
18683
18684         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
18685         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
18686         scrolling to be implemented in GDK to finish. Also, right now
18687         we just size_allocate all children on every layout change,
18688         which is pretty lame. Test commented out of testtext.c, 
18689         until it works better.
18690
18691 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
18692
18693         * gdk/linux-fb/gdkdrawable-fb2.c:
18694         Removed unused arguments from gdk_fb_drawable_get_pixel().
18695
18696         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
18697         Renamed fidur specific mouse packet data in MouseDevice to
18698         generic. Used it in ps2 mouse handling code to avoid blocking
18699         reads.
18700
18701 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
18702
18703         * demos/gtk-demo/main.c: Changed to have the list become
18704         non-italic when the demo window is destroyed through an external
18705         event (like a close button).  Doing so found three bugs in the
18706         widget.
18707
18708         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
18709
18710         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
18711         we actually set the cell.
18712
18713         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
18714
18715         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
18716         free a leaked path.  Thanks memprof.
18717
18718 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
18719
18720         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
18721         off-by-one error when destroying allocated segments
18722         on failure. (Elliot)
18723
18724 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
18725
18726         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
18727         memleaks found by Evan Martin.
18728
18729 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
18730
18731         * Released 1.3.2
18732         
18733         * NEWS: Updates for 1.3.2
18734
18735 2000-11-17  Tor Lillqvist  <tml@iki.fi>
18736
18737         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
18738         but in general for window system specific events.
18739
18740         * gtk/gtk.def
18741         * gtk/makefile.mingw.in
18742         * gtk/makefile.msc.in: Update.
18743         
18744         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
18745
18746 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
18747
18748         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
18749         distribute gtk.immodules.
18750
18751         * gtk/Makefile.am (install-data-local): Don't install the
18752         gtk.immodules file created for the uninstalled modules;
18753         instead run gtk-query-immodules after install
18754
18755 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
18756
18757         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
18758         -rpath to the right install location.
18759
18760         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
18761         -export-dynamic.
18762
18763         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
18764         properly.
18765
18766 2000-11-15  Havoc Pennington  <hp@pobox.com>
18767
18768         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
18769         patch from Mikael Hermansson to temporarily stop blinking while
18770         the user is using the keyboard to type or navigate. 
18771
18772         Also, when blinking, stay on for longer than we stay off. Also,
18773         return from start_cursor_blink if !cursor_visible, to save
18774         checking that flag all over the place before we call
18775         start_cursor_blink.
18776
18777 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
18778
18779         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
18780         only contain a "fontset" line, which is now ignored.
18781
18782         * gtk/gtkentry.c (gtk_entry_button_release): Make 
18783         double-click-to-select-word work.
18784         
18785 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
18786
18787         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
18788         Don't move back one char when we are actually at the end of the 
18789         paragraph.
18790
18791 2000-11-15  Robert Brady  <robert@suse.co.uk>
18792
18793         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
18794         'o' < 'p'.
18795         
18796         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
18797         bind_textdomain_codeset.
18798
18799         (gtk_init_check): Make the warning about translating default:LTR
18800         sterner.
18801         
18802 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
18803
18804         * **/Makefile.am : remove unecessary rules for win32-specific
18805         config-substituted targets. If you want these rules, use
18806         --enable-maintainer-mode (called automatically by autogen.sh).
18807         Stops a lot of unneccessary make-time warnings.
18808
18809         * gtk/gtktext{layout,display}.c: Factor in total width as
18810         well as screen when figuring alignment for word-wrap as well as
18811         no wrap; this is necessary to handle lines that cannot be wrapped
18812         at all.
18813
18814 2000-11-15  Havoc Pennington  <hp@redhat.com>
18815
18816         * gtk/testtext.c: Implement essential color cycling feature
18817
18818 2000-11-15  Havoc Pennington  <hp@redhat.com>
18819
18820         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
18821         when we invalidate the main window.
18822
18823         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
18824         GtkTextView will now invalidate the side windows for us when text
18825         changes.
18826
18827 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
18828
18829         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
18830         unconditionally, since we may need to update the horizontal
18831         scrollbars even if the height didn't change.
18832
18833         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
18834         the extra attrs, since some of them affect size.
18835
18836         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
18837         x_offset correctly.
18838
18839 2000-11-15  Havoc Pennington  <hp@redhat.com>
18840
18841         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
18842         don't move the first line out into the margin, instead move the
18843         whole paragraph in order to make space for the first line within 
18844         the margin
18845
18846 2000-11-15  Havoc Pennington  <hp@redhat.com>
18847
18848         * gtk/gtktextview.c (changed_handler): offset redraw rect by
18849         xoffset in addition to yoffset, so horizontal scrolling doesn't
18850         break redraws
18851
18852 2000-11-15  Havoc Pennington  <hp@redhat.com>
18853
18854         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
18855         from the cursor
18856         (render_layout_line): fix reversed test that caused weird
18857         underlines to get drawn
18858
18859 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
18860
18861         * gdk/linux-fb/gdkprivate-fb.h:
18862         Fix debug macros.
18863         
18864 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
18865
18866         * gdk/linux-fb/gdkprivate-fb.h:
18867         Added virtual functions set_pixel, get_color,
18868         fill_span and draw_drawable to the GC.
18869         Added global _gdk_fb_screen_gc to use instead of
18870         NULL when drawing to the screen.
18871         Added _gdk_fb_gc_calc_state() prototype.
18872
18873         * gdk/linux-fb/gdkgc-fb.c:
18874         Call _gdk_fb_gc_calc_state() on any gc state change.
18875
18876         * gdk/linux-fb/gdkglobals-fb.c:
18877         Add _gdk_fb_screen_gc
18878                 
18879         * gdk/linux-fb/gdkdrawable-fb2.c:
18880         _gdk_fb_gc_calc_state() calculates best functions
18881         for the GC state and depth.
18882         Moved bpp specialized code to separate functions.
18883         Added optimized 24 bpp AA draw_drawable.
18884
18885         * gdk/linux-fb/gdkevents-fb.c:
18886         Silence gcc warning.
18887
18888         * gdk/linux-fb/gdkimage-fb.c:
18889         Use _gdk_fb_screen_gc
18890
18891         * gdk/linux-fb/gdkwindow-fb.c:
18892         Init and use _gdk_fb_screen_gc
18893
18894         * gdk/linux-fb/mitypes.h:
18895         Remove unused types.
18896
18897 2000-11-14  Havoc Pennington  <hp@pobox.com>
18898
18899         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
18900         to pixels
18901
18902 2000-11-14  Havoc Pennington  <hp@pobox.com>
18903
18904         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
18905
18906         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
18907         unknown char, no real reason we were using a variable. 
18908         Remove gtk_text_unknown_char variable. Fix all the text widget
18909         files accordingly.
18910
18911         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
18912         since the Unicode spec seems to prefer that character for our
18913         purposes.
18914
18915 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
18916
18917         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
18918         value of g_getenv() isn't freeable, so g_strdup it.
18919
18920         * modules/input/inuktitut.c: Inuktitut input method.
18921
18922         * modules/input/Makefile.am: Build this.
18923         
18924 2000-11-14  Elliot Lee  <sopwith@redhat.com>
18925
18926         * gtk/Makefile.am: Install gtk.immodules, needed for operation
18927         of gtk programs.
18928
18929 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
18930
18931         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
18932         reversed > that was causing Home to go to end of previous line.
18933
18934         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
18935         modified-keypresses (leave for bindings.)
18936
18937         * modules/input/Makefile.am: Remove useless -export-dynamic
18938         from module LDFLAGS.
18939
18940 2000-11-14  Havoc Pennington  <hp@redhat.com>
18941
18942         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
18943         higher.
18944
18945         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
18946         account. Also, render rise, underline, background, etc. for
18947         pixbufs as well as text. Also, draw underlines one pixel higher.
18948
18949         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
18950         PangoAttribute for the rise, so it gets drawn properly. Also,
18951         add the GtkTextAppearance attribute for pixbuf/widget segments
18952         as well; we should go ahead and have rise, underline, background,
18953         stipple work for those
18954
18955         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
18956         Pango
18957
18958 2000-11-15  Tor Lillqvist  <tml@iki.fi>
18959
18960         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
18961
18962         * gtk/gtk.def: Update.
18963
18964         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
18965         included.
18966         (gtk_rc_get_im_module_file): Use run-time installation directory
18967         on Win32.
18968
18969         * gdk/win32/rc/gdk.rc: Remove.
18970         * gdk/win32/rc/gdk.rc.in: New file.
18971         * gdk/win32/rc/Makefile.am: New file
18972         * gdk/win32/Makefile.am: Corresponding changes.
18973
18974         * gtk/gtk.rc: Remove.
18975         * gtk/gtk-win32.rc.in: New file.
18976         * gtk/Makefile.am: Corresponding changes.
18977
18978         * configure.in: Corresponding changes.
18979
18980         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
18981         has a built gtkcompat.h. Developers using CVS code on Win32 can
18982         hand-edit it from gtkcompat.h.in.
18983
18984         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
18985         gtkcompat.h from gtkcompat.h.win32.
18986
18987 2000-11-14  Havoc Pennington  <hp@redhat.com>
18988
18989         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
18990         to default to GDK_ACTION_MOVE if the drag is within a single
18991         widget. Defaults to GDK_ACTION_COPY between widgets.
18992
18993 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
18994
18995         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
18996
18997         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
18998
18999         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
19000         srcdir != builddir
19001
19002         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
19003
19004         * configure.in (GTK_VERSION): Up to 1.3.2
19005
19006         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
19007         gtkimcontextxim.h
19008
19009         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
19010         missing doc comment.
19011
19012 2000-11-14  Alexander Larsson  <alexl@redhat.com>
19013
19014         * modules/linux-fb/basic.c:
19015         Use the glib iconv wrappers.
19016
19017 2000-11-13  Havoc Pennington  <hp@pobox.com>
19018
19019         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
19020         still more bugs.
19021
19022         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
19023         scroll the GdkWindows before realization.
19024
19025 2000-11-13  Havoc Pennington  <hp@redhat.com>
19026
19027         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
19028         where GC didn't always get updated properly
19029
19030         * demos/gtk-demo/textview.c (create_tags): Use subattributes
19031         of fonts instead of setting the entire font
19032
19033         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
19034         setting entire font
19035
19036         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
19037
19038         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
19039         a bunch of individually-settable font attributes. You can still 
19040         use the "font" and "font_desc" args, they just set all the font
19041         attributes at once.
19042
19043 2000-11-13 Elliot Lee <sopwith@redhat.com>
19044
19045         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
19046
19047 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
19048
19049         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
19050         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
19051
19052         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
19053         work better.
19054
19055 2000-11-13  Havoc Pennington  <hp@redhat.com>
19056
19057         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
19058         the module file.
19059
19060         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
19061         dest->language
19062
19063         * gtk/testtext.c: Test pixels above/below/inside paragraphs
19064         settings
19065
19066         * gtk/gtktextview.c: Implement object args and setters/getters for
19067         all the aspects of the GtkTextAttributes that are not set from
19068         GtkWidget attributes. This is spacing, justification, margins,
19069         etc.
19070
19071         (gtk_text_view_set_arg)
19072         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
19073         args
19074         (gtk_text_view_class_init): Add args for justify, left_margin,
19075         right_margin, indent, and tabs
19076         
19077
19078         * gtk/gtktextlayout.c (set_para_values): fix to display indent
19079         attribute properly
19080
19081         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
19082         replace with indent attribute
19083
19084         * gtk/gtktextlayout.c (set_para_values): multiply indent by
19085         PANGO_SCALE
19086
19087         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
19088         rearranging code to do that
19089         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
19090         i.e. don't subtract the top_margin first, just to keep
19091         all margin-futzing in one place.
19092
19093         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
19094
19095         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
19096         special case of last line, Pango now handles this itself.
19097         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
19098         Y coordinate
19099         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
19100         (find_display_line_above): wasn't moving the byte index as it
19101         iterated over lines, so always returned byte 0. Also, port to use
19102         PangoLayoutIter.
19103         (find_display_line_below): same problem as
19104         find_display_line_above. Also, port to use PangoLayoutIter.
19105
19106 2000-11-13  Alexander Larsson  <alexl@redhat.com>
19107
19108         * gdk/linux-fb/*.[ch]:
19109         Massive reindent to gtk+ standard. My hands hurt.
19110
19111         * gdk/linux-fb/gdkcolor-fb.c:
19112         Move GdkColorPrivateFB from inherited to windowing_data
19113
19114         * gdk/linux-fb/gdkcursor-fb.c:
19115         _gdk_cursor_new_from_pixmap made static
19116
19117         * gdk/linux-fb/gdkdnd-fb.c:
19118         GdkDragContextPrivate moved to windowing_data
19119
19120         * gdk/linux-fb/gdkdrawable-fb2.c:
19121         Removed endian.h, use glib endianness macros instead
19122         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
19123         and GDK_DRAWABLE_IMPL_FBDATA
19124
19125         * gdk/linux-fb/gdkfont-fb.c:
19126         Add empty gdk_font_load(). Needed for linking of Gtk+.
19127
19128         * gdk/linux-fb/gdkimage-fb.c:
19129         Removed endian.h, use glib endianness macros instead
19130         Moved GdkImagePrivateFB to windowing_data
19131         gdk_image_new_bitmap didn't always allocate enough
19132         memory.
19133
19134         * gdk/linux-fb/gdkinput-ps2.c:
19135         Added semi-working support for MS serial mice.
19136
19137         * gdk/linux-fb/gdkprivate-fb.h:
19138         s/GdkWindowPrivate/GdkWindowObject/
19139         Removed GdkWindowPrivate typedef
19140         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
19141         Removed GDK_DRAWABLE_P
19142         Move GdkColorPrivateFB from inherited to windowing_data
19143         Moved GdkImagePrivateFB to windowing_data
19144
19145         * gdk/linux-fb/gdkvisual-fb.c:
19146         Removed some unused debug code.
19147
19148         * gdk/linux-fb/gdkwindow-fb.c:
19149         Use stock cursors instead of including X headers.
19150         s/GdkWindowPrivate/GdkWindowObject/
19151
19152         * gdk/linux-fb/mitypes.h:
19153         Removed unused types.
19154
19155         * modules/linux-fb/basic.c:
19156         Use the pango fribidi wrappers.
19157
19158 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
19159
19160         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
19161         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
19162         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
19163         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
19164         GEqualFunc where applicable.
19165         
19166         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
19167         pango_font_description_equal as changed in pango.
19168         
19169         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
19170
19171         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
19172
19173         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
19174
19175         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
19176
19177         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
19178
19179         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
19180
19181         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
19182         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
19183
19184         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
19185         gtk_rc_styles_compare -> gtk_rc_styles_equal.
19186
19187 2000-11-12  Havoc Pennington  <hp@pobox.com>
19188
19189         * demos/gtk-demo/Makefile.am (democodedir): change demo install
19190         dir to datadir/gtk+-2.0/demo
19191
19192         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
19193         sorts of text widget and Pango font bugs. Urgh.
19194
19195         * demos/gtk-demo/Makefile.am (demos): Add textview.c
19196
19197         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
19198         tree that you should double click to see the demo. Fix 
19199         types of variables to reflect changed return values from 
19200         GtkTreeStore and GtkTreeViewColumn constructors.
19201
19202         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
19203         newly-created buffer to prepare for GObject semantics
19204
19205         * gtk/testtext.c: don't leak the buffer with GObject semantics
19206
19207         * gtk/testtextbuffer.c: ditto
19208         
19209 2000-11-12  Havoc Pennington  <hp@pobox.com>
19210
19211         Rename this testgtk to gtk-demo to avoid confusion, and 
19212         install it so people can use it as a supplement to 
19213         the documentation.
19214         
19215         * demos/gtk-demo: Moved from demos/testgtk
19216
19217         * demos/testgtk: Removed
19218
19219         * configure.in: make Makefile in gtk-demo
19220         
19221         * demos/gtk-demo/Makefile.am: Install sample source to 
19222         datadir/gtk-demo (maybe there's a better place?), and 
19223         rename the binary to gtk-demo
19224         
19225         * demos/gtk-demo/main.c (load_file): Load installed sample
19226         source if source isn't found in pwd.
19227
19228 2000-11-09  Havoc Pennington  <hp@pobox.com>
19229
19230         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
19231         argument to set the char displayed when visibility == FALSE
19232         (gtk_entry_create_layout): If !entry->visible, replace 
19233         all chars with the "invisible char"
19234
19235         * gtk/testgtk.c: Test the invisible_char deal
19236         
19237 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
19238
19239         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
19240         can't get a native font in the right encoding.
19241
19242 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
19243
19244         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
19245         respectively.
19246
19247 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
19248
19249         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
19250         Fix warning when moving between paragraphs.
19251
19252         * gtk/gtkentry.[ch]: Change move => move_cursor, 
19253         delete => delete_from_cursor, insert => insert_at_cursor
19254
19255 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
19256
19257         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
19258
19259         * modules/input/imthai-broken.c: A Thai input method for use if
19260         Thai keys are really generating Latin1 keysyms.
19261
19262         * modules/input/Makefile.am: Build these.
19263
19264 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
19265
19266         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
19267         g_filename_{to,from}_utf8 now takes an extra parameter.
19268
19269         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
19270         strftime into UTF-8.
19271
19272         (column_from_x, gtk_calendar_paint_day_names): Support RTL
19273         calendars.
19274
19275         (gtk_calendar_paint_day_names): Draw day names in the right 
19276         place.
19277         
19278 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
19279
19280         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
19281         problem with using result of g_get_charset() backwards -
19282         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
19283
19284         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
19285         negative min_width/height and max_width/height to
19286         mean "requisition"; this allows setting a window
19287         to be user-resizable in only one direction easily.
19288
19289         * gtk/testgtk.c (create_main_window): Remove hard-coded
19290         usize - set a default size in the vertical direction.
19291
19292 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
19293
19294         * gtk/gtkrange.c: Add some missing casts. Support 
19295         2 and 3 button clicks on the arrows to mean 
19296         "move by pages" and "jump to end". (Like gtkspinbutton)
19297
19298 2000-11-12 Hans Breuer <Hans@Breuer.Org>
19299
19300         * gdk/win32/makefile.msc : reflect build module changes
19301
19302         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
19303         from GdkPixmap*, cast implementation member instead.
19304
19305         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
19306         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
19307         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
19308         more Gdi functions return value checking. 
19309         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
19310         GdkImagePrivateWin32 *.
19311
19312         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
19313         menus useable again. Add #pragma message to keep reminded on this issue.
19314         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
19315         windows. This allows to enable backing store on Win32!
19316
19317         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
19318         in drawable is of impl type. Correct specific type checks appropriate.
19319  
19320         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
19321         GDK_WINDOW_DESTROYED before allocating new resources.
19322
19323         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
19324
19325         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
19326         (gdk_window_foreign_new) initialize parent handle.
19327         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
19328
19329         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
19330         Let the GDI invalidate the window on MoveWindow call to fix scrolling
19331         problems (e.g. main buttons in testgtk). 
19332
19333 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
19334
19335         * gtk/gtkentry.c (gtk_entry_key_press): Call 
19336         gtk_widget_activate for GDK_Return.
19337
19338         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
19339         of preedit cursor position.
19340
19341 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
19342
19343         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
19344         static.
19345
19346 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
19347
19348         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
19349         out support for multiple locales; that simple doesn't
19350         work reliably with current Xlib
19351
19352         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
19353         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
19354         Add support for positioning the cursor within the preedit string.
19355
19356 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
19357
19358         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
19359         at XIM input method module.
19360
19361         * gtk/gtktextview.c: Check for bindings after passing
19362         events to im context filter.
19363
19364 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
19365
19366         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
19367         empty attribute lists properly.
19368
19369 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
19370
19371         * gtk/queryimmodules.c (main): Return non-zero exit
19372         status if errors were encountered querying any
19373         modules.
19374
19375         * modules/input/Makefile.am (moduledir): remove
19376         leftover bin program target.
19377
19378         * docs/make-todo: Fix typo in error message.
19379
19380 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
19381
19382         * configure.in: Add modules/input/Makefile
19383
19384 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
19385
19386         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
19387         don't include gtkthemes.h.
19388
19389         * gtk/testgtk.c gtk/testtext.c: Set environment variables
19390         to point
19391
19392         * gtk/Makefile.am: Add new .c and .h files, build 
19393         gtk-query-immodules and use it to create a gtk.immodules
19394         file for use of test programs.
19395
19396         * gtk/gtkpreview.c: remove extra blank line.
19397
19398 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
19399
19400         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
19401         Add the ability to add extra tables beyond the default
19402         one, and also the ability to have compose sequences 
19403         that are prefixes of other compose sequences. 
19404
19405         * gtk/gtkimcontextsimple.c: Export a preedit string which
19406         consists of possible candidates for keystrokes that have
19407         been entered but not yet committed.
19408
19409         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
19410         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
19411
19412         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
19413         Add a function to add input-method switching menu items
19414         to a menu.
19415
19416         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
19417         when switching input methods.
19418
19419         * gtk/gtkimcontextsimple.[ch]: Change the format of
19420         the compose table to allow compose tables of different
19421         lengths / sequence.
19422
19423 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
19424
19425         * gtk/gtkimmodule.[ch]: Support routines for loading
19426         GtkIMContext implementations dynamically at runtime.
19427
19428         * modules/input/imcyrillic-translit.c: A sample input
19429         method (based on GtkIMContextSimple with an extra table),
19430         which demonstrates preedit strings and the module
19431         system for input modules
19432
19433         * gtk/queryimmodules.c: Program to query the available
19434         input modules and write the results into a file.
19435          
19436         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
19437         extra config options "im_module_file" (cache file for
19438         input method modules), and "im_module_path" - path
19439         to look for modules when generating cache file.
19440
19441         This doesn't scale.
19442
19443 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
19444
19445         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
19446         generic code from gtkthemes into a new abstraction
19447         GtkModule which has the logic for implementing
19448         a loadable module which implements a number of 
19449         GObject types.
19450
19451 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
19452
19453         * gtk/gtkeditable.[ch]: Convert GtkEditable from
19454         a class into an interface  
19455         
19456         * gtk/gtkoldeditable.[ch]: Move the old editable
19457         implementation into here, so legacy widgets can
19458         still rely on the implemenation. GtkOldEditable
19459         exports GtkEditable. Make selection handling
19460         code use new text conversion functions (and
19461         handle UTF-8 as a side-effect). Use GtkClipboard
19462         for CLIPBOARD.
19463
19464         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
19465         Adopt to match above changes.
19466
19467         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
19468         avoid GtkOldEditable implementation. Restructure
19469         to reduce number of places that modify state directly.
19470         Move to GtkBindingSet. Display the preedit string.
19471         Queue recomputation of PangoLayout and scroll position
19472         to improve effiency of doing complex changes naively.
19473         Add a menu with cut/copy/paste and input method selection.
19474
19475 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
19476
19477         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
19478         to set preedit string and attributes; display preedit string by
19479         inserting string and attributes at cursor when creating the
19480         GtkTextLineDisplay.
19481
19482         * gtk/gtktextlayout.c: Move all conversions between byte
19483         positions in PangoLayout and GtkTextIter into new functions
19484         line_display_iter_to_index/index_to_iter that properly
19485         handle the preedit string.
19486
19487         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
19488         it to return const char * (eventually will end up
19489         as GCONST char *, most likely.)
19490
19491         * gtk/gtktextview.[ch]: Handle the preedit string, call
19492         gtk_im_context_reset() as necessary, add a menu to switch
19493         input methods.
19494         
19495         * gtk/gtktextlayout.[ch]: Remove useless
19496         gtk_text_layout_get_log_attrs() function.
19497
19498 2000-11-11  Tor Lillqvist  <tml@iki.fi>
19499
19500         * gdk/gdk.def
19501         * gtk/gtk.def: Update.
19502
19503         * gdk/win32/*.c: Add last argument to g_type_register_static()
19504         calls.
19505
19506         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
19507
19508         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
19509         generated by older wheel mouse drivers. Get the correct y
19510         coordinate from WM_MOUSEWHEEL messages.
19511
19512         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
19513         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
19514         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
19515         Debugging functions.
19516
19517         * gdk/win32/gdkprivate-win32.h: Declare them.
19518
19519         * gdk/win32/gdkinput-win32.h: Add declaration for
19520         gdk_input_window_destroy().
19521
19522         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
19523
19524 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
19525
19526         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
19527         function to help handle keeping things in sync.
19528
19529 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
19530
19531         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
19532         BOXED marshallers.
19533
19534         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
19535         (gtk_list_store_class_init): use the new BOXED marshallers.
19536
19537         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
19538         new_with_values to new_with_types.
19539         (gtk_tree_store_get_column_type): add this.
19540         (gtk_tree_store_class_init): use the new BOXED marshallers.
19541
19542         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
19543         mirror some POINTER marshallers.
19544
19545 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
19546
19547         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
19548         allow more interesting iterators.  Also, made the lifecycle of
19549         iterators more explicit.
19550
19551         * gtk/gtktreemodelsort.[ch]: New model for sorting.
19552
19553         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
19554         types.
19555
19556 2000-11-09  Alexander Larsson  <alexl@redhat.com>
19557
19558         * demos/testgtk/menus.c:
19559         Changes to make the new testgtk compile after
19560         gtk_menu_append was removed.
19561
19562         * gdk/linux-fb/gdkdrawable-fb2.c
19563         (gdk_fb_get_depth, gdk_fb_get_visual,
19564         gdk_drawable_impl_fb_class_init): Implement
19565         these drawable functions. Now GtkImages work again.
19566
19567         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
19568
19569         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
19570         
19571         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
19572         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
19573         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
19574         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
19575
19576 2000-11-08  Havoc Pennington  <hp@pobox.com>
19577
19578         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
19579         visible_set args, don't know where these had gone, I thought they
19580         used to be there
19581
19582         * gtk/testtext.c: Add a menu item to apply invisibility tag;
19583         now we can test the feature and see that it's totally broken.
19584
19585 2000-11-08  Havoc Pennington  <hp@pobox.com>
19586
19587         Make DND copy pixbufs and tags when source and target share a 
19588         tag table.
19589         
19590         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
19591         in-process GTK_TEXT_BUFFER_CONTENTS target
19592         (gtk_text_view_drag_data_received): Paste from
19593         GTK_TEXT_BUFFER_CONTENTS if we receive it.
19594
19595 2000-11-08  Alexander Larsson  <alexl@redhat.com>
19596
19597         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
19598         API changes.
19599
19600         * gtk/gtkmenu.c: Add support for scrolling menus.
19601         Remove gtk_menu_append/prepend/insert, these have been moved to
19602         gtkcompat.h as #defines.
19603
19604         * gtk/gtkcompat.h.in:
19605         Add compatibility #defines for gtk_menu_append/prepend/insert
19606
19607         * gtk/gtkmenu.h: Add data needed for scrolling menus.
19608         GtkMenuPositionFunc gets an extra argument push_in.
19609         gtk_menu_append/prepend/insert removed.
19610         
19611         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
19612         positioning behaviour to fit to scrolling menus.
19613
19614         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
19615         into menuitem->submeny. That is wrong, and broke torn
19616         off submenus of torn off menus, since they were unrealized
19617         when the first menu was unrealized.
19618
19619         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
19620         gtk_menu_shell_select_item() since these need to be overridden in
19621         GtkMenu.
19622
19623         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
19624         positioning behaviour to fit to scrolling menus.
19625         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
19626         the current item so that it is prelighted when the menu pops up.
19627         This is a workaround to the fact that the menu doesn't get the
19628         initial enter event (due to grabs).
19629
19630         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
19631         s/gtk_menu_append/gtk_menu_shell_append/
19632
19633         * gtk/gtknotebook.c:
19634         s/gtk_menu_insert/gtk_menu_shell_insert/
19635
19636         * gtk/testgtk.c (create_menu, create_menus):
19637         Create the first menu with 50 items so that menu scrolling
19638         can be tested.
19639         
19640         
19641         Patch from Jonathan Blandford  <jrb@redhat.com>
19642
19643         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
19644         system to handle size requests.  First, we ask what the size of
19645         the toggle is.  Then, when allocating the size, we allocate the
19646         toggle_size first.  This way we can have multiple menu-item
19647         classes w/o needing a seperate class for each.
19648
19649         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
19650         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
19651
19652         * gtk/gtkcheckmenuitem.c
19653         (gtk_check_menu_item_toggle_size_request): New function to handle
19654         the toggle size-request.
19655
19656 2000-11-07  Havoc Pennington  <hp@redhat.com>
19657
19658         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
19659         Half-ass somewhat fix this function, so that scrolling to the
19660         insertion point works. Pango hacking is in the future to really
19661         fix it.
19662
19663         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
19664         length of data, no longer used.
19665
19666         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
19667         method contents in here, get rid of destroy method
19668         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
19669         that were backward. Remove debug spew.
19670         (cut_or_copy): Make the clipboard work with insert_range to
19671         preserve tags and pixbufs, not just the primary selection.
19672
19673 2000-11-07  Havoc Pennington  <hp@redhat.com>
19674
19675         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
19676         to gtk_text_mark_get_visible
19677
19678         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
19679         bug that was generating an invalid iterator
19680
19681         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
19682         ensure_char_offsets() in front of code placing the iter in an
19683         invalid state.
19684
19685         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
19686         make override_location arg const
19687         (paste): Replace the selection if we paste into the 
19688         current selection
19689
19690         * gtk/gtkselection.h: Remove "GtkSelectioData"
19691         (struct _GtkSelectionData): move the definition here.
19692
19693         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
19694         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
19695
19696         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
19697
19698         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
19699         (gtk_text_buffer_insert_range_interactive): implement
19700         (gtk_text_buffer_get_tags): Remove, replaced by
19701         gtk_text_iter_get_tags()
19702
19703         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
19704         limit parameter, to avoid infinite linear scan.
19705         (gtk_text_iter_backward_search): Add search limit
19706         (gtk_text_iter_forward_find_char): Add search limit
19707         (gtk_text_iter_backward_find_char): Add search limit
19708
19709 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
19710
19711         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
19712         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
19713         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
19714         gdk/linux-fb/gdkwindow-fb.c:
19715         use g_object_new() instead of g_type_create_instance() which
19716         is a private function for fundamental type implementations.
19717
19718         * gdk/linux-fb/gdkinput-ps2.c:
19719         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
19720         instead just store the current modifier state. Add a (somewhat broken)
19721         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
19722         Rename exported function gdk_input_ps2_get_mouseinfo to
19723         gdk_input_get_mouseinfo.
19724
19725         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
19726         gdk/linux-fb/gdkwindow-fb.c:
19727         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
19728         
19729
19730 2000-11-02  Havoc Pennington  <hp@redhat.com>
19731
19732         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
19733         use stock buttons. Should be 100% source compatible, appropriate
19734         filesel fields now point to dialog->vbox and dialog->action_area.
19735         On the bizarre side, dialog->action_area and filesel->action_area
19736         are not the same widget.
19737         (gtk_file_selection_init): Put some padding around the selection
19738         entry, so it isn't touching the GtkDialog separator.    
19739
19740         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
19741         use stock buttons, etc. Should also be source compatible.
19742         Set the dialog default title in _init not _new().
19743         
19744         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
19745         Use stock buttons; don't put a button box inside the existing
19746         dialog button box. Don't bother with push/pop colormap anymore.
19747
19748         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
19749         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
19750         for message dialog, and necessary for the font selection and color
19751         selection with help and apply buttons.
19752         
19753         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
19754         to the created button widget. Set GTK_CAN_DEFAULT on the button.
19755         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
19756         between buttons, put less padding around the action area.
19757         (gtk_dialog_run): Exit on unmap rather than on destroy. 
19758         This will also exit the loop if the widget is hidden.
19759         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
19760         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
19761         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
19762         special-case delete event.
19763
19764         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
19765         formatting
19766         
19767 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
19768
19769         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
19770         button to temporarily disable position recording in the
19771         "saved position" test.
19772
19773 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
19774
19775         * gtk/gtkthemes.c: added compat code that temporarily implements
19776         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
19777         going to be revamped by owen's upcoming GtkModule patches, but
19778         untill then people want gtk to build, right? ;)
19779
19780 2000-11-04  Havoc Pennington  <hp@pobox.com>
19781
19782         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
19783         list
19784
19785         * docs/Changes-2.0.txt: Add note about
19786         gtk_container_get_toplevels()
19787
19788         * gtk/gtktextview.h: formatting
19789         
19790         * gtk/gtktextview.c: don't start descriptions with "Returns",
19791         confuses gtk-doc
19792
19793 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
19794
19795         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
19796         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
19797
19798 2000-11-03  Havoc Pennington  <hp@redhat.com>
19799
19800         * gtk/gtktexttagtable.c: Docs
19801         (gtk_text_tag_table_size): return a signed int
19802
19803         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
19804         (gtk_text_tag_event): make the event_object a GObject
19805
19806         * gtk/gtktextview.c: Write API docs for all functions.
19807
19808         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
19809         for gtk_text_view_get_window_type() called on one of the private
19810         windows.
19811
19812         * gtk/gtktextview.c: Instead of accessing text_view->buffer
19813         directly, call get_buffer() which demand-creates a default
19814         buffer. So gtk_text_view_new() can be used to create a view with a
19815         default buffer in it, if you just want an empty text box users can
19816         put data in. Useful for GUI builders also.
19817
19818 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
19819
19820         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
19821         the charset encodign portion MUST be in lowercase.
19822         * gtk/gtkrc.az: added file for Azeri language
19823
19824 2000-11-03  Havoc Pennington  <hp@redhat.com>
19825
19826         Get widgets working on the btree/buffer side. Display of them 
19827         still doesn't work.
19828         
19829         * gtk/gtktextview.c: start implementing child widget stuff
19830
19831         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
19832
19833         * gtk/gtktextlayout.c: handle embedded widgets
19834
19835         * gtk/gtktextdisplay.c: handle embedded widgets
19836
19837         * gtk/gtktextchild.c: Implement all the child anchor goo
19838
19839         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
19840         function
19841
19842         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
19843         (insert_pixbuf_or_widget_segment): abstract out common portions of 
19844         creating a child anchor or a pixbuf segment.
19845         (gtk_text_btree_create_child_anchor): new function
19846         (gtk_text_btree_unregister_child_anchor): new function
19847
19848         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
19849         allocate_child signal on GtkTextLayout
19850
19851         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
19852         values
19853         (gtk_text_iter_get_child_anchor): new function
19854
19855         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
19856         default handler for the changed signal, which calls
19857         gtk_text_buffer_set_modified(), instead of just always emitting
19858         changed then calling set_modified() manually. I guess this is
19859         maybe more flexible. It seems logical.
19860
19861 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
19862
19863         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
19864         now.
19865
19866         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
19867
19868 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
19869
19870         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
19871         been marked static.
19872
19873 2000-11-02  Havoc Pennington  <hp@redhat.com>
19874
19875         * gtk/testgtk.c (create_labels): had a test backward
19876
19877         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
19878         fields, so the dest GC ends up with the correct clip origin, 
19879         etc. Fixes a bug where colored labels didn't redraw 
19880         properly.
19881
19882 2000-11-02  Alexander Larsson  <alexl@redhat.com>
19883
19884         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
19885         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
19886         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
19887         Add last argument to t_type_register_static call.
19888         
19889         * gdk/linux-fb/gdkdrawable-fb2.c:
19890         Add last argument to t_type_register_static call.
19891         export the get_image drawable virtual function.
19892
19893         * gdk/linux-fb/gdkimage-fb.c:
19894         Add last argument to t_type_register_static call.
19895         rename gtk_image_get to _gdk_fb_get_image and
19896         export it for use by gdkdrawable-fb2.
19897
19898         * gdk/linux-fb/gdkprivate-fb.h:
19899         export _gdk_fb_get_image.
19900
19901         * gdk/linux-fb/gdkselection-fb.c:
19902         Add new api call stubs.
19903
19904         * gtk/Makefile.am:
19905         Missing ( in linux-fb part.
19906
19907         * modules/linux-fb/Makefile.am:
19908         Must link with gdk_pixbuf or get unresolved symbol.
19909
19910 2000-11-01  Havoc Pennington  <hp@pobox.com>
19911
19912         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
19913         GTK_TYPE_TEXT_ITER and BOXED marshallers
19914
19915         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
19916
19917         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
19918         
19919         * gtk/gtk-boxed.defs: add GtkTextIter
19920
19921         * gtk/gtkmarshal.list: Add marshallers for text widget that 
19922         properly use OBJECT and BOXED
19923
19924 2000-11-01  Havoc Pennington  <hp@redhat.com>
19925
19926         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
19927
19928         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
19929         before returning it. 
19930         
19931 2000-11-01  Havoc Pennington  <hp@redhat.com>
19932
19933         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
19934         Clip the rectangle to be rendered to the drawable, since
19935         get_from_drawable() requires a region within the drawable
19936
19937 2000-11-01  Havoc Pennington  <hp@redhat.com>
19938
19939         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
19940         from coordinates.
19941
19942 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
19943
19944         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
19945         it isn't NULL.
19946
19947 2000-11-01  Havoc Pennington  <hp@pobox.com>
19948
19949         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
19950         on a label
19951         (gtk_label_finalize): unref the attr list if any.
19952
19953         * gtk/testgtk.c (create_get_image): close test on second click
19954         (make_message_dialog): close dialog if it exists
19955
19956         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
19957
19958         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
19959         gdk-pixbuf
19960
19961         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
19962         from Pango markup format
19963         (gtk_label_set_markup_with_accel): ditto but with accelerator
19964         parsing
19965
19966         * gtk/gtkimage.c (gtk_image_expose): reformatting.
19967
19968         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
19969         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
19970         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
19971         call gdk_window_get_origin().
19972
19973         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
19974         implement GDK_PIXBUF_ALPHA_FULL
19975         
19976 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
19977
19978         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
19979         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
19980         g_signal_handlers_disconnect_matched to block/unblock and disconnect
19981         multiple handlers respectively, instead of only treating the
19982         first handler found (bug reported by owen).
19983
19984 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
19985
19986         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
19987
19988         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
19989
19990         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
19991         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
19992         gtk/gtktreeviewcolumn.h: Fixed inline docs.
19993
19994         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
19995         widget.  Needs writing someday.
19996
19997         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
19998         the docs.
19999
20000 2000-10-30  Havoc Pennington  <hp@redhat.com>
20001
20002         * gtk/gtktextview.h, gtk/gtktextview.c:
20003         Rename delete_at_cursor delete_from_cursor, and 
20004         move to move_cursor.
20005
20006 2000-10-30  Havoc Pennington  <hp@redhat.com>
20007
20008         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
20009         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
20010         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
20011         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
20012         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
20013         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
20014         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
20015         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
20016         gtktexttypes.h, gtktextview.c, gtktextview.h:
20017
20018         Massive reindentation and reformatting. Arg alignment and comments
20019         still need fixing in various places.
20020
20021 2000-10-30  Havoc Pennington  <hp@redhat.com>
20022
20023         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
20024         to be named insert_at_cursor and delete_at_cursor so C++ can
20025         handle them.
20026
20027 2000-10-28  Tor Lillqvist  <tml@iki.fi>
20028
20029         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
20030         to get a double directory separator in case the home directory
20031         ends with one. This would cause trouble especially on Windows,
20032         where the path will be confused with the syntax for an an UNC
20033         (network share) path \\server\share\path.
20034         (gtk_rc_add_initial_default_files): Ditto.
20035
20036 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
20037
20038         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
20039
20040         * gtk/gtktextview.c: Use correct marshallers.
20041
20042 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
20043
20044         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
20045         use new iter stuff, and added all the appropriate signals et al.
20046
20047         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
20048         code is internal to gtk only.
20049
20050 2000-10-28  Tor Lillqvist  <tml@iki.fi>
20051
20052         * gtk/gtk.def
20053         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
20054         glib-genmarshal etc.
20055
20056 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
20057
20058         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
20059         parallel builds.
20060
20061 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
20062
20063         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
20064
20065 2000-10-27  Robert Brady  <robert@suse.co.uk>
20066
20067         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
20068         en_GB (British), ia (Interlingua).
20069
20070 2000-10-26  Havoc Pennington  <hp@redhat.com>
20071
20072         * gtk/gtktextiter.c (my_strrstr): fix constness warning
20073
20074         Fixed output of:
20075         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
20076         
20077         * gtk/gtktextsegment.c (char_segment_new): rename
20078         (_char_segment_new_from_two_strings): rename
20079         (_toggle_segment_new): rename
20080         
20081         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
20082         (make_clipboard_widget): make it static
20083         (text_get_func): static
20084         (text_clear_func): static
20085
20086         * gtk/gtkcolorsel.c (adjustment_changed): make this function
20087         static
20088         (hex_changed): make it static
20089         (hsv_changed): make it static
20090         (opacity_entry_changed): make it static
20091
20092         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
20093         (toggle_segment_check_func): rename with _gtk
20094
20095         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
20096         (_widget_segment_new): rename
20097         (_widget_segment_add): rename
20098         (_widget_segment_remove): rename
20099         (_widget_segment_ref): rename
20100         (_widget_segment_unref): rename
20101
20102         * gtk/gtktextmark.c (_mark_segment_new): Rename
20103         _gtk_mark_segment_new   
20104
20105 2000-10-26  Havoc Pennington  <hp@redhat.com>
20106
20107         * gtk/gtkmarshal.list: add new marshallers used by the text widget
20108         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
20109         types
20110
20111         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
20112         marshaller types
20113
20114         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
20115         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
20116         license on these files.
20117
20118         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
20119         work.
20120
20121         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
20122         runtime random number different for each tree, instead of 
20123         a constant I made up.
20124
20125 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
20126
20127         * gtk/Makefile.am: buncha cleanups, kludged build sources
20128         dependencies with a Makefile: oldest-source-stamp dependancy
20129         for the moment. automake is really fighting us here, with
20130         intentionally not allowing user-defined rules or dependancies
20131         prior to it's -include $(DEP_FILES) statement. sucks rocks!
20132
20133         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
20134         to public headers. tehy have a comment stating that they are
20135         "semi-public" aren't included by gtk.h and if enums popup there,
20136         they can be /*< skip >*/-ed.
20137
20138         * gtk/gtktextlayout.h: 
20139         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
20140         added LGPL... <SIGH>
20141
20142 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
20143
20144         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
20145         GtkTreeIter.  Added iterators everywhere.
20146
20147         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
20148
20149         * gtk/gtktreeviewselection.c: Changed to use the iterators.
20150
20151         * gtk/gtktreestore.c: Changed to use the iterators.
20152
20153         * gtk/gtkliststore.c: Commented out the code.  Will convert to
20154         iterators tomorrow.
20155
20156         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
20157         iterators tomorrow.
20158
20159         * gtk/treestoretest.c: Changed to use iterators.
20160
20161         * demos/testgtk/main.c: Moved to use the new iterator system.
20162
20163 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
20164
20165         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
20166         localization misbehaviour.
20167
20168         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
20169         a useless type without copy/free.
20170
20171         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
20172         of GTK_TYPE_CTREE_NODE.
20173
20174 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
20175
20176         * gtk/gtksignal.c:
20177         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
20178         applicable.
20179
20180         * gtk/gtk-boxed.defs (GtkSelectionData): specify
20181         gtk_selection_data_copy and gtk_selection_data_free
20182         do GtkSelectionData work as params in signals.
20183
20184 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
20185
20186         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
20187         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
20188         couldn't they at least give it a non-standard name?
20189         
20190         * gtk/gtktextlayout.c: arg! yet another implementation of
20191         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
20192
20193         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
20194         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
20195         home. now i know this _is_ a conspiracy.
20196
20197         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
20198         ::state-changed.
20199
20200         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
20201         (gtk_accel_group_create_add): marshaller signature fixups.
20202
20203         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
20204         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
20205
20206         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
20207         anymore.
20208
20209 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
20210
20211         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
20212         due to the signal system changes, it wouldn't build currently. to
20213         be fixed soon.
20214
20215         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
20216
20217         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
20218         so it needs gtk_marshal_VOID__ENUM() instead of
20219         gtk_marshal_NONE__UINT().
20220
20221         * gdk/gdk*.c: adapted type registration functions.
20222
20223         * gtk/gtkbindings.c:
20224         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
20225         gone.
20226
20227         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
20228
20229         * gtk/gtkobject.c:
20230         (gtk_object_destroy):
20231         (gtk_object_shutdown): fixed recursion guards. basically we have to
20232         catch the case where any of GObject.shutdown() or gtk_object_destroy()
20233         is called during ::destroy, and avoid recursion there.
20234
20235         * gtk/gtktypeutils.c:
20236         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
20237         boxed_copy/boxed_free. this needs a more general solution based on a
20238         publically installed code-generator utility.
20239
20240         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
20241         glib's gobject has support for that now.
20242         define GtkSignalMarshaller in terms of GSignalCMarshaller.
20243
20244 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
20245
20246         * gtk/gtksignal.[hc]:
20247         * gtk/gtkmarshal.[hc]:
20248         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
20249         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
20250         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
20251         care of that.
20252
20253         * *.c: marshaller name fixups.
20254
20255         * gtk/gtkmarshal.list: added a comment briefing the format.
20256
20257 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
20258
20259         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
20260         compatibility macros here now. more specifically, most of
20261         the API is preserved (yes, _most_, nonwithstanding the
20262         following exceptions listed, the API is stil lHUGE ;)
20263         things that got removed completely:
20264         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
20265         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
20266         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
20267         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
20268         gtk_signal_remove_emission_hook().
20269         non-functional functions variants:
20270         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
20271         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
20272         not supported anymore.
20273         (gtk_signal_compat_matched): new internal function to aid
20274         implementation of the compatibility macros, it  provides
20275         functionality to block/unblock/disconnect handlers based
20276         on func/data.
20277
20278         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
20279
20280         * *.c: adaptions to new type registration API signatures.
20281
20282 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
20283
20284         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
20285
20286 2000-10-25  Robert Brady  <robert@suse.co.uk>
20287
20288         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
20289         gdk_property_delete): If window == NULL, assume the root window.
20290         (restoring the behaviour that was in 1.2).
20291         
20292         * gtk/testtext.c (save_buffer): Allow creation of new files when
20293         saving.
20294
20295         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
20296         calls to read().
20297
20298 2000-10-25  Tor Lillqvist  <tml@iki.fi>
20299
20300         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
20301
20302         * gdk/win32/gdkdrawable-win32.c
20303         * gdk/win32/gdkimage-win32.c
20304         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
20305         X11 backend.
20306
20307         * gdk/win32/gdkcc-win32.c
20308         * gdk/win32/gdkcolor-win32.c
20309         * gdk/win32/gdkfont-win32.c
20310         * gdk/win32/gdkinput-win32.c
20311         * gdk/win32/gdkmain-win32.c
20312         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
20313
20314 2000-10-24  Havoc Pennington  <hp@redhat.com>
20315
20316         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
20317         it a static function
20318
20319         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
20320         redraw text when a tag is applied to it.
20321
20322         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
20323         (gtk_text_tag_affects_nonsize_appearance): private functions to
20324         see if a tag requires various kinds of redraw/layout to be queued
20325         up.
20326
20327         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
20328
20329         * gtk/testtext.c (fill_example_buffer): Put the cursor 
20330         at the start of the buffer, so search works by default
20331
20332         * gtk/gtktextiter.c (lines_match): init match_start always
20333
20334         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
20335         function, get iter at a line + a byte index
20336
20337         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
20338         to set byte position within a line
20339         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
20340
20341 2000-10-23  Havoc Pennington  <hp@redhat.com>
20342
20343         * gtk/testtext.c: Re-enable the "find" dialog
20344
20345         * gtk/testgtk.c: Add test for gdk_drawable_get_image
20346         
20347         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
20348         the arguments to gdk_draw_drawable were in the wrong order
20349         (gdk_window_paint_init_bg): This function was ignoring the
20350         init_region, instead of clipping to it, so the entire backing
20351         pixmap was cleared on every begin_paint()
20352         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
20353         was in here again, the loop kept using the same GtkWindowPaint
20354         over and over.
20355         (gdk_window_begin_paint_region): Fix a bug where we had two
20356         x_offset instead of x_offset and y_offset
20357
20358         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
20359         before we get the image.
20360         (gdk_draw_drawable): get the composite before we draw the drawable.
20361         (gdk_drawable_real_get_composite_drawable): default
20362         get_composite_drawable implementation that returns the drawable 
20363         itself
20364
20365         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
20366         get_composite_drawable virtual function
20367
20368         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
20369         list-walking bug
20370
20371         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
20372         make this work if the source drawable is a GdkDrawableImplX11
20373         instead of a public drawable type. This is really broken; the
20374         problem is that GdkDrawable needs a virtual method get_xid(), but
20375         of course that doesn't work in practice. Enter RTTI.
20376
20377         Also, improve mismatched depth message.
20378
20379         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
20380         GdkPixmap
20381
20382         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
20383         install _gdk_x11_get_image as our implementation of get_image
20384         
20385         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
20386         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
20387
20388         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
20389         gdk_drawable_get_image
20390
20391         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
20392
20393         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
20394         get_image
20395
20396         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
20397         trailing semicolon after for loop
20398
20399 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
20400
20401         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
20402         where font_desc for widget's context lagged widget's font_desc by
20403         one step.
20404
20405 2000-10-22  Tor Lillqvist  <tml@iki.fi>
20406
20407         * gdk/win32/gdkgc-win32.c
20408         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
20409
20410         * gtk/makefile.mingw.in
20411         * gtk/gtk.def: Updates.
20412
20413         * gtk/testgtk.c: sleep() is called _sleep in MS's C
20414         library.
20415
20416         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
20417
20418         * gtk/makefile.msc: Remove
20419
20420         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
20421
20422         * gtk/Makefile.am: Add it.
20423
20424         * configure.in: Generate it.
20425
20426         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
20427         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
20428         something even if not implemented, to satisfy picky MSVC.
20429
20430         Patches by Hans Breuer:
20431         
20432         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
20433         SetBkMode() and SetTextAlign() before calling
20434         pango_win32_render().
20435
20436         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
20437         Set hcliprgn to NULL after destroying it.
20438         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
20439
20440         * gdk/win32/gdkgeometry-win32.c
20441         (_gdk_windowing_window_queue_antiexpose): More effective
20442         implementation.
20443
20444         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
20445         depth as default, not the visual's.
20446
20447         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
20448         against empty title.
20449
20450         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
20451         IMAGE_PRIVATE_DATA.
20452
20453         * gdk/win32/gdkimage-win32.c: Use it.
20454
20455 2000-10-22  Robert Brady  <robert@suse.co.uk>
20456
20457         * configure.in: Check for bind_textdomain_codeset
20458
20459         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
20460         present, make use of it.
20461
20462         Add a translatable string "default:LTR" which, if translated
20463         to "default:RTL", will cause the default direction to be
20464         Right-to-Left.
20465
20466         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
20467         direction if marked as flippable.
20468
20469         * gtk/gtkhscale.c: Mark widget as flippable.
20470         
20471 2000-10-04  Havoc Pennington  <hp@redhat.com>
20472
20473         * gtk/testgtk.c (create_buttons): create some stock buttons
20474         with the default accel group
20475         (create_image): test some new GtkImage features
20476         (make_message_dialog): test GtkMessageDialog
20477         (create_modal_window): fix someone's bizzarro indentation
20478
20479         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
20480         GTK_WIN_POS_CENTER_ON_PARENT. 
20481         Add "destroy with parent" setting, which means the window goes
20482         away with its transient parent.
20483         (gtk_window_get_default_accel_group): get the default accel group
20484         for the window.
20485         (gtk_window_set_destroy_with_parent): set/unset destroy with
20486         parent flag
20487         (gtk_window_read_rcfiles): invalidate icon set caches
20488         after reloading rcfiles 
20489
20490         * gtk/gtkenums.h (GtkWindowPosition): add
20491         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
20492         on its parent window when the dialog is mapped for the first time.
20493
20494         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
20495         a simple message dialog class
20496         
20497         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
20498         handler to emit response signal, and maybe later it would
20499         honor a hide_on_delete flag - though that isn't there yet.
20500         Set border width on the vbox to 2, so we get some padding.      
20501         Use a button box for the action area.
20502         (gtk_dialog_key_press): synthesize a delete event if Esc
20503         is pressed and the GtkWidget key press handler didn't 
20504         handle the escape key.
20505         (gtk_dialog_new_with_buttons): new function creates a dialog
20506         with some default buttons in it.
20507         (gtk_dialog_add_action_widget): add an activatable widget
20508         as a button in the dialog - you can also add a non-activatable
20509         widget by accessing the action area directly.
20510         (gtk_dialog_add_button): add a simple button - stock ID or 
20511         label - to the action area
20512         (gtk_dialog_response): emit response signal
20513         (gtk_dialog_run): block waiting for the dialog, return 
20514         the response. Override normal delete_event behavior, so that 
20515         delete_event does nothing inside gtk_dialog_run().
20516         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
20517         emitted when an action widget is clicked or the dialog gets
20518         delete_event
20519
20520         * gtk/gtk.h: add gtkmessagedialog.h
20521
20522         * gtk/Makefile.am: add gtkmessagedialog.[hc]
20523
20524 2000-10-18  Havoc Pennington  <hp@redhat.com>
20525
20526         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
20527         where any number of empty lines would get skipped
20528
20529         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
20530         edge.
20531
20532         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
20533         warning about invalid iterators (explain more thoroughly)
20534         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
20535
20536         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
20537         big
20538
20539         * demos/*.c: Add error handling
20540
20541         * gtk/gtktextbuffer.c: don't modify const iterators
20542
20543         * gtk/gdk-pixbuf-loader.c: Add full error handling here
20544
20545         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
20546         on file load
20547
20548         * gtk/gtkiconfactory.c: Update to reflect addition of error
20549         handling to gdk-pixbuf loaders
20550
20551 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
20552
20553         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
20554         move to new modularized testgtk.
20555
20556 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
20557
20558         * gtk/gtktreeview.c: Draw the arrows correctly.
20559
20560         * gtk/gtktreemodel.c: Added user docs.
20561
20562         * gtk/gtk.h: remove gtktreedatalist.h.
20563
20564         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
20565         parent when generating my type.
20566
20567         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
20568         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
20569
20570 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
20571
20572         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
20573         GtkTreeModel from object to interface.
20574
20575 2000-10-16  Havoc Pennington  <hp@redhat.com>
20576
20577         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
20578         compilation
20579
20580 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
20581
20582         * gtk/gtktreeselection.c: Add API documentation to all public
20583         functions.
20584
20585         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
20586         functions.
20587
20588 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
20589
20590         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
20591         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
20592         docs to all public functions.
20593
20594         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
20595         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
20596         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
20597         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
20598         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
20599         issue.
20600
20601 2000-10-14  Robert Brady  <robert@suse.co.uk>
20602
20603         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
20604
20605 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
20606
20607         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
20608         values other then G_TYPE_STRING.
20609         * gtk/gtktreeselection.c: Minor commenting updates.
20610         * gtk/gtktreeview.c: Format updates.
20611
20612 2000-10-09  Tor Lillqvist  <tml@iki.fi>
20613
20614         * README.win32: Update.
20615
20616         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
20617         lines that had been deleted by mistake (?).
20618
20619         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
20620         also the case fg==white and bg==black (but still not randomly
20621         coloured cursors). Thanks to Wolfgang Sourdeau.
20622
20623         * gdk/win32/*.c: Silence gcc -Wall.
20624
20625         * gtk/gtk.def: Add missing entry points.
20626
20627         Fixes by Hans Breuer:
20628
20629         * gdk/makefile.msc
20630         * gdk/win32/makefile.msc: Update.
20631
20632         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
20633         some MSVC thing, presumably), cause breakpoint on failures. Add
20634         GDK_NOR case. Call g_log_set_always_fatal.
20635
20636         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
20637         should be pased by reference.
20638         
20639         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
20640         
20641         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
20642
20643         * gdk/win32/gdkevents-win32.c
20644         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
20645
20646         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
20647         implementation object.
20648
20649         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
20650         not just windows.
20651         
20652         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
20653         Use the wrapper object.
20654         
20655 2000-10-06  Havoc Pennington  <hp@redhat.com>
20656
20657         * Makefile.am (SRC_SUBDIRS): contrib subdir
20658
20659         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
20660         so it can be used in Xlib version
20661
20662         * demos/testpixbuf.c (update_timeout): error checking from 1.0
20663         tree
20664
20665         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
20666         change from 1.0 tree that returns first frame of animation
20667         if the loaded file is an animation.
20668
20669         * contrib: add new directory to hold stuff that comes with GTK+
20670         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
20671         
20672         * configure.in: add contrib/*
20673
20674 2000-10-05  Havoc Pennington  <hp@redhat.com>
20675
20676         * demos/testpixbuf-save.c: add pixbuf save test
20677
20678         * demos/Makefile.am: add testpixbuf-save.c
20679
20680 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
20681
20682         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
20683         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
20684         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
20685         * gtk/gtktreeselection.[ch]: Replaced
20686         "node_selected"/"node_unselected" signal with "selection_changed"
20687         signal.
20688
20689 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
20690
20691         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
20692         tree widget.
20693
20694 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
20695
20696         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
20697         drawing.
20698
20699 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
20700
20701         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
20702         Move list pointer forwards before removing item from
20703         list. (Crash reported by Salmaso Raffaele)
20704
20705         * gdk/gdkwindow.h: Remove spurious trailing ,
20706
20707         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
20708         dependencies on uninstalled libraries, sorry folks.
20709
20710 2000-10-04  Havoc Pennington  <hp@redhat.com>
20711
20712         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
20713         gtk/gtkiconfactory.c: Fix copyrights    
20714
20715         * demos/testpixbuf.c: add inline pixbuf test
20716         
20717 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
20718
20719         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
20720         Add gdk_window_iconify.
20721
20722         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
20723         (gdk_window_set_geometry_hints): Add win_gravity
20724         to geometry structure.
20725
20726         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
20727         Implement _NET_WM_PING.
20728
20729         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
20730         Set _NET_WM_PID on the client leader.
20731
20732         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
20733         Handle UTF-8 better.
20734
20735         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
20736         UTF-8 better, set _NET_WM_NAME as well. Only set
20737         icon name if it hasn't previously been explicitely 
20738         set.
20739
20740 2000-10-03  Havoc Pennington  <hp@redhat.com>
20741
20742         * gtk/testtextbuffer.c: clean up trailing whitespace,
20743         add extensive tests for tag toggle iteration.
20744         
20745         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
20746         distance
20747
20748         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
20749         optimize case where the tag root is on level 1
20750         (gtk_text_line_previous_could_contain_tag): attempt to implement
20751         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
20752         functionality
20753
20754         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
20755         Implement this, though not very efficiently.
20756
20757         * gtk/gtktextiterprivate.h: reformat
20758
20759         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
20760         iterator
20761
20762         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
20763         this to properly revalidate the iterators.
20764
20765         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
20766         properly at the end of the line (and therefore on empty lines)
20767
20768         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
20769         maybe we should return a value...
20770
20771 2000-10-03  Tor Lillqvist  <tml@iki.fi>
20772
20773         * config.h.win32: Guard definition of alloca(). glib.h now handles
20774         that.
20775
20776         * gdk/gdk.def
20777         * gtk/gtk.def: Add new entry points.
20778
20779         Changes just to make GTK+ build without errors on Win32. No hope
20780         of it working in its current state, though...:
20781         
20782         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
20783         some functions from the X11 backend, just to make GTK+ build.
20784
20785         * gdk/makefile.mingw.in
20786         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
20787         number. Add new object files.
20788
20789         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
20790         GetMessageTime to get timestamp (where on X11 uses
20791         gdk_x11_get_server_time()).
20792
20793 2000-10-02  Havoc Pennington  <hp@pobox.com>
20794
20795         * gtk/gtktextview.c: text_window_* weren't static and should have
20796         been.
20797         Start work on child widgets; not yet complete, syncing to 
20798         office computer.
20799
20800         * gtk/gtktextchild.h: change this to contain a public interface,
20801         starting work on child interfaces.
20802         * gtk/gtktextchildprivate.h: move private interfaces here
20803
20804         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
20805
20806         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
20807         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
20808         gtk/gtktextmark.c: copyright notices
20809
20810         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
20811         internal functions      
20812
20813         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
20814         internal function
20815
20816         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
20817         Reformatting    
20818
20819 2000-09-30  Havoc Pennington  <hp@pobox.com>
20820
20821         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
20822         NULL start/end pointers
20823
20824         * gtk/gtktextbuffer.c: Write some docs
20825         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
20826         NULL, so you can just check whether there's a selection.        
20827
20828         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
20829         cleanup_line or segments_changed ourselves, it gets done 
20830         in unlink_segment
20831
20832         * gtk/gtktextmark.h:
20833         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
20834         
20835         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
20836
20837         * gtk/gtktextmark.c: delete some more old Tk cruft
20838
20839         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
20840         mark before removing it, so we can emit MARK_DELETED with a valid
20841         pointer.
20842         (gtk_text_buffer_mark_set): hold ref across signal emission
20843
20844         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
20845         whining about attempts to delete special marks
20846
20847         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
20848         underscore, since it's internal.
20849
20850         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
20851         now implemented in terms of iterators in gtktextiter.h
20852
20853         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
20854         New function, destructively sets contents of buffer. Also 
20855         a convenient way to clear the buffer by setting text to ""
20856
20857         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
20858         multiline string literal
20859
20860         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
20861         text changes.
20862
20863         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
20864         is not dereferenceable
20865         (gtk_text_iter_forward_lines): fix return value
20866
20867 2000-09-29  Havoc Pennington  <hp@redhat.com>
20868
20869         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
20870
20871         * gtk/gtktextview.c: Implement drag thresholding; change functions 
20872         that set border window size to have nicer name
20873         (gtk_text_view_mark_set_handler):  Fix this to have the 
20874         right signature.
20875
20876         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
20877
20878         * gtk/testtext.c: Update with API changes, put line numbers on 
20879         both sides.
20880         
20881         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
20882         with this
20883
20884         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
20885         pixbuf; delete a big block of #if 0 Tk code
20886
20887         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
20888         insert_pixmap with insert_pixbuf
20889
20890 2000-09-29  Martin Baulig  <baulig@suse.de>
20891
20892         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
20893         confusion with the GdkPixbuf of the GNOME 1.x platform.
20894
20895 2000-09-29  Havoc Pennington  <hp@pobox.com>
20896
20897         * gtk/gtktextview.c: Implement the side windows.
20898
20899         * gtk/testtext.c: Implement simple line numbering in the 
20900         left side window; seems to make scrolling sloooow. Oops.
20901         Also, cursor blink is for some reason causing redraws
20902         of the line numbers. Should investigate...
20903
20904 2000-09-28  Havoc Pennington  <hp@redhat.com>
20905
20906         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
20907         scrolling child windows, and draw focus rectangle properly.
20908         
20909         (gtk_text_view_buffer_to_window_coords):
20910         Coordinate transformation to deal with all these freaking windows
20911         and offsets
20912         (gtk_text_view_window_to_buffer_coords): transform the other way
20913
20914         * gtk/testtext.c (create_buffer): Update to match Pango API change
20915
20916         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
20917         anonymous tags
20918         (foreach_unref): don't emit remove signal from finalize, just
20919         set tag's parent to NULL
20920
20921 2000-09-26  Havoc Pennington  <hp@redhat.com>
20922
20923         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
20924         Fix some warnings       
20925
20926 2000-09-26  Havoc Pennington  <hp@redhat.com>
20927
20928         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
20929         headers into the private header list
20930
20931         * Makefile.am (pkgconfig_DATA): install pkg-config files
20932
20933         * configure.in: add pkg-config files
20934
20935         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
20936
20937         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
20938         outstanding icon caches on theme change.
20939
20940         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
20941         important types:
20942
20943         (GtkIconSource): Specification for creating a pixbuf 
20944         appropriate for a direction/state/size triplet from 
20945         a source pixbuf or filename
20946
20947         (GtkIconSet): List of GtkIconSource objects that are used to
20948         create the "same" icon (e.g. an OK button icon), and cache for
20949         rendered icons
20950
20951         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
20952         up the icon set for a given stock ID.  GTK maintains a stack of
20953         GtkIconFactory to search, and applications or libraries can add
20954         additional icon factories on top of the stack
20955         
20956         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
20957         the set of GtkIconSource specified for a given stock ID into 
20958         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
20959         RcStyle, under the specified stock ID.
20960
20961         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
20962         render_icon used to derive a GdkPixbuf from a GtkIconSource.
20963         This allows people to theme how prelight, insensitive, etc. are
20964         done.
20965
20966         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
20967         icon factories for a style, and return the resulting 
20968         icon set if any.
20969
20970         (gtk_style_render_icon): Render an icon using the render_icon 
20971         method in the GtkStyleClass.
20972
20973         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
20974         Use the style for a given widget to look up a stock ID, get the
20975         icon set, and render an icon using the render_icon method 
20976         of the style
20977
20978         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
20979         (contains information about a stock item), the built-in stock item
20980         IDs, and functions to add/lookup stock items.
20981
20982         * gtk/stock-icons/*: Stock icons that come with GTK
20983
20984         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
20985         a button based on a GtkStockItem
20986         (gtk_button_new_accel): Takes a uline string and accel group, and
20987         installs the accelerator.
20988
20989         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
20990         image-display widget.
20991
20992 2000-09-25  Havoc Pennington  <hp@redhat.com>
20993
20994         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
20995
20996         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
20997         Fix a bug when removing node data, we didn't properly 
20998         re-splice the linked list after removing the data.
20999
21000         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
21001         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
21002
21003         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
21004
21005         * gtk/gtktextlayout.c (set_para_values): Set tab array 
21006         for the layout from the GtkTextTag.
21007
21008         * gtk/gtktexttypes.h: delete tab and search cruft, 
21009         remove g_convert() in favor of GLib version
21010
21011         * gtk/gtktexttypes.c: remove tab implementation from here,
21012         move to Pango
21013
21014         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
21015         tab stuff using new PangoTabArray from Pango
21016
21017         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
21018         unused border_width stuff
21019
21020 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
21021
21022         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
21023         glib) and now useless utf_to_latin1() latin1_to_utf()
21024
21025         * gtk/gtktextview.[ch]: Change ::move_insert and
21026         ::delete_text action signals to ::move and ::delete;
21027         create the signals with the right enumeration type,
21028         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
21029         C-v bindings, change Home, End to move to beginning/end
21030         of line, Add C-Home C-End to move to beginning/end
21031         of buffer. Change ::cut_text to ::cut_clipboard, etc;
21032         combine ::scroll_text into ::move; use new GtkSelectionData
21033         functions to simplify DND text handling.
21034         
21035         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
21036         deletion enumerations here, rename enumeration values to 
21037         be consistently plural.
21038
21039         * gtk/gtktextbuffer.c: Use new clipboard interfaces
21040         for cut/copy/paste and primary selection.
21041
21042         * gtk/gtktextbuffer.[ch]: Remove excess time and
21043         'interactive' arguments from cut/copy/paste;
21044         rename cut to cut_clipboard, etc; remove
21045         gtk_text_buffer_get_clipboard_contents().
21046
21047         * gtk/gtktextlayout.[ch]: Add 
21048         gtk_text_layout_move_iter_to_line_end() to move the iter to 
21049         line ends.
21050
21051         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
21052         Functions to set or get a UTF-8 string on the selection
21053         data.
21054
21055         * gtk/gtkclipboard.[ch]: New, simplified selection handling
21056         interfaces.
21057
21058         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
21059         created widgets - one of these is useless if we don't.
21060
21061         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
21062         a public function clear all targets registered for the
21063         widget.
21064
21065         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
21066         Never call gtk_widget_realize() - that was just asking
21067         for bizarre side-effects.
21068
21069         * gtk/gtkselection.c (gtk_selection_owner_set): Call
21070         gdk_selection_owner_set even if the widget is the
21071         same so that we reliably update the timestamp on
21072         the server.
21073
21074         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
21075         gdk_x11_get_server_time() function.
21076         
21077         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
21078         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
21079         Add some tricky filtering on serial numbers for
21080         selection clear events to fix up long-standard
21081         race condition FIXME's in gtkselection.c.
21082
21083         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
21084         routines to convert from utf8 to compound text or
21085         STRING and from a text property to UTF-8.
21086
21087         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
21088         a convenience function gdk_get_current_event_time().
21089
21090         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
21091         and free selection_data->data properly
21092
21093 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
21094
21095         * gtk/gtkthemes.c: Remove some unecessary includes.
21096
21097 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
21098
21099         * gtk/gtktextdisplay.c
21100         * gtk/gtktextlayout.c
21101         * gtk/gtktexttag.c
21102         * gtk/gtktexttag.h
21103         * gtk/testtext.c: Change the overstrike property to strikethrough,
21104         to closer match pango.
21105
21106 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
21107
21108         * gtk/gtktextview.c: Fix up visibility so that focus,
21109         cursor_visible and blink interact properly.  Reenable cursor blink
21110         which had been roughly disabled. Make blink and focus
21111         properly per-view.
21112
21113         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
21114         Add a flag for whether to display insertion cursor and
21115         a function to set the flag.
21116
21117         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
21118         get_line_y() to get_line_yrange(), to be a bit more generally
21119         useful.
21120
21121 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
21122
21123         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
21124           do stop_navigating_submenu, to clear last timeout properly.
21125           Also in gtk_menu_motion_notify move ignore_enter above
21126           the conditional to make it always happen as suggested by Owen
21127
21128 2000-09-07  Tor Lillqvist  <tml@iki.fi>
21129
21130         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
21131
21132         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
21133         w32api headers.
21134
21135         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
21136         declarations.
21137
21138         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
21139         (gdk_win32_get_colormap): A line had been deleted by mistake.
21140
21141         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
21142         (gdk_event_translate): Handle more virtual keycodes to be able to
21143         generate GDK events for Control-comma, Control-period, etc.
21144
21145         * gtk/gtk.def: Add some missing entry points.
21146
21147 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
21148
21149         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
21150         Doc comment fixing. (Mostly non-matching parameter names.)
21151
21152         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
21153         comments a little to avoid looking like a doc comment.
21154
21155         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
21156         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
21157         conversions be changed to GError?)
21158
21159         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
21160         Move private #defines into .c file.
21161
21162         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
21163         order of argument addition, remove duplicates.
21164
21165         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
21166         parent class is FrameClass, not BinClass.
21167
21168         * gtk/gtk.h: Add gtkinvisible, which was missing.
21169         (It's occasionalyl useful for client apps, if seldom.)
21170
21171         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
21172         #define.
21173
21174 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
21175
21176         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
21177         coordinates when creating window, instead of GDK-space
21178         coordinates. (Avoid BadValue on too large windows.)
21179
21180 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
21181
21182         * configure.in (use_mmx_asm): Remove conftest* after use along the
21183         lines of AC_TRY_COMPILE.        
21184         
21185         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
21186         of g_dirname, which is deprecated.
21187         (gtk_rc_parse_any): Removed calls to
21188         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
21189
21190         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
21191         Removed calls to g_hash_table_{freeze,thaw}, as they are
21192         deprecated now.
21193
21194         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
21195         instead of g_basename.
21196         
21197 2000-09-04 Elliot Lee <sopwith@redhat.com>
21198         
21199         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
21200         ANSI warning.
21201
21202 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
21203
21204         * gtk/gtkwidget.h:  Add some documenting comments about 
21205           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
21206           just as owen said on irc.
21207
21208         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
21209           set HAS_DEFAULT.  Only set it if there isn't another window
21210           holding it (a focus window which RECEIVES_DEFAULT) and only unset
21211           it if the widget is not the focused window with RECEIVES_DEFAULT.
21212           This fixes weird double default bugs in dialogs which has things
21213           call gtk_window_set_default at times.
21214
21215 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
21216
21217         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
21218         Nils Barth and David Santiago to improve submenu
21219         navigation. The patch does this by creating a triangular
21220         region from the point where the pointer leaves the
21221         menu to the submenu.  While the pointer is in
21222         that region and a timeout has not expired, events 
21223         that would cause the active submenu to change are
21224         ignored.
21225
21226 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
21227
21228         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
21229         moving a toplevel window immediately after sizing it would
21230         result in it being sized back to the old size since 
21231         impl->width, impl->height aren't updated until we hear
21232         back from the server. There is still a (longstanding) bug
21233         here that gdk_window_get_size() will give the wrong size
21234         until we do hear back.
21235
21236 2000-08-31  Havoc Pennington  <hp@redhat.com>
21237
21238         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
21239         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
21240         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
21241         Rename GtkTextStyleValues to GtkTextAttributes
21242
21243 2000-08-31  Havoc Pennington  <hp@pobox.com>
21244
21245         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
21246         for rapid testing whether an iterator is the end iterator
21247         (gtk_text_btree_new): init end line cache
21248         (gtk_text_line_is_last): use fast cached line to 
21249         see if we're the last line.
21250         (get_last_line): use cached line here too, should 
21251         speed up some random unrelated code.
21252         
21253 2000-08-30  Havoc Pennington  <hp@pobox.com>
21254
21255         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
21256         signals.
21257
21258         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
21259         delete_text signals. This allows the signals to be used for
21260         implementing undo.
21261
21262         * gtk/gtktextbuffer.c: Change signal handler signatures; 
21263         provide "interactive" argument when emitting insert_text or
21264         delete_text signal.
21265         
21266 2000-08-30  Havoc Pennington  <hp@pobox.com>
21267
21268         * gtk/gtktextbuffer.c: Docs
21269
21270 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
21271
21272         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
21273         from switch statements, since Tor removed the enumeration
21274         value.
21275         
21276         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
21277         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
21278
21279 2000-08-29 Elliot Lee <sopwith@redhat.com>
21280         * */*.h: Use G_GNUC_CONST.
21281
21282 2000-08-27  Havoc Pennington  <hp@pobox.com>
21283
21284         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
21285         minor indentation fixes, inserted some FIXME about stuff I
21286         realized was broken while documenting it.
21287         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
21288         GTK convention  
21289
21290 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
21291
21292         * gtk/testgtk.c (create_styles): Fix double free of
21293         font desc.
21294
21295 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
21296
21297         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
21298         
21299         * gtk/testgtk.c (create_styles): Add a test for modifying
21300         the style through gtk_widget_modify_*.
21301
21302         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
21303         a function to get the current modifier style.
21304
21305         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
21306         of the passed in GtkRcStyle instead of ref'ing it.
21307
21308         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
21309
21310 2000-08-20  Tor Lillqvist  <tml@iki.fi>
21311
21312         * gdk/gdkimage.h
21313         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
21314         shared memory image+pixmap GdkImage type, or
21315         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
21316         I am dropping that.
21317
21318         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
21319         actually call gtk_init_abi_check(), passing also
21320         sizeof(GtkWindow). Ditto for gtk_init_check(). 
21321
21322         * gtk/gtk.def
21323         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
21324         New functions, used to check that the GTK+-using code has been
21325         compiled using the correct compiler and switches. In particular,
21326         with gcc one has to use the -fnative-struct switch as GTK+ is
21327         compiled with that.
21328
21329 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
21330
21331         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
21332         ->prev fields when merging lists. (Found simultaneously
21333         by Pawel Salek and Jakub Jelinek)
21334
21335 2000-08-12  Tor Lillqvist  <tml@iki.fi>
21336
21337         * gdk/gdk.def
21338         * gtk/gtk.def: Add missing entries.
21339
21340         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
21341         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
21342
21343         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
21344         function. Dummy implementation at this point.
21345
21346         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
21347         rules. Undefine GTK_COMPILATION when compiling the test programs.
21348         
21349         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
21350
21351 2000-08-11  Tor Lillqvist  <tml@iki.fi>
21352
21353         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
21354         to convert back and forth from UTF-8 and the "system" (or "current
21355         locale") charset when necessary. Indentation/spacing cleanup.
21356
21357 2000-08-10  Havoc Pennington  <hp@redhat.com>
21358
21359         * Makefile.am (snapshot): Change the format of the snapshot
21360         version to match glib
21361
21362         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
21363         from EXTRA_DIST since it doesn't seem to exist
21364
21365 2000-08-10  Tor Lillqvist  <tml@iki.fi>
21366
21367         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
21368         version of the directory name (not the UTF-8 one) when building
21369         the path name to stat().
21370
21371 2000-08-03  Elliot Lee  <sopwith@redhat.com>
21372
21373         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
21374         PANGO_ATTR_SHAPE set.
21375
21376 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
21377
21378         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
21379         Peter Osterlund to simplify the code while keeping the
21380         functionality the same.
21381
21382 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
21383
21384         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
21385         is_viewable() test further inside the function, since removing the 
21386         window from the redraw list without clearing ->update_area
21387         was also very broken.
21388
21389 2000-08-02  Tor Lillqvist  <tml@iki.fi>
21390
21391         * configure.in: Check for <unistd.h>.
21392
21393 2000-08-01  Martin Baulig  <baulig@suse.de>
21394
21395         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
21396         to display the message that this is a development version of GTK+.
21397
21398 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
21399
21400         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
21401         was depending on widget->allocation instead of the width of text_area,
21402         which was incorrect for subclasses like GtkSpinButton.
21403
21404         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
21405         with width == 1 tests that should be width == -1.
21406
21407 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
21408
21409         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
21410         (broken, Elliot, every single window blank on X) custom code with call
21411         to gdk_window_is_viewable() which a) prevents code duplicate and
21412         b) works. 
21413
21414 2000-07-31  Elliot Lee  <sopwith@redhat.com>
21415
21416         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
21417         to get the GDK_PARENT_ROOT() macro to work.
21418         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
21419         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
21420         of, windows that aren't shown.
21421         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
21422         pointer grab stuff.
21423
21424 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
21425
21426         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
21427           s/gtk_main_iteration/g_main_iteration/
21428
21429           Did this already in change:
21430                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
21431           don't know how it got reverted.
21432
21433 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
21434
21435         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
21436         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
21437
21438         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
21439         not gdk_pixbuf.
21440
21441 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
21442
21443         * configure.in,po/{sp,sr}.po: Added Serbian files
21444
21445 2000-07-30  Tor Lillqvist  <tml@iki.fi>
21446
21447         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
21448
21449         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
21450         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
21451         GIOChannel implementation.
21452
21453         * gdk/win32/gdkinput.c
21454         * gdk/win32/gdkpango-win32.c: Update license name here, too.
21455
21456         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
21457         definition to match prototype.
21458
21459         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
21460
21461 2000-07-27  Elliot Lee  <sopwith@redhat.com>
21462
21463         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
21464         function, to allow handling image formats that cannot be detected
21465         by looking at content alone.
21466
21467 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
21468
21469         * docs/tutorial/*.gif *.jpg *.eps
21470           Update these to the same look-n-feel.
21471           Why does including images in DocBook suck so badly?
21472
21473 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
21474
21475         * gtk/gtktable.c: applied patch from Phil Thompson
21476         <phil@river-bank.demon.co.uk> that enables space settings for
21477         the last row/columns as well.
21478
21479 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
21480
21481         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
21482         updates the license headers to the GNU Lesser General Public License,
21483         as well as updating the copyright year to 2000.
21484
21485 2000-07-26  Robert Brady  <rwb197@zepler.org>
21486
21487         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
21488           and po/Makefile, was installing and looking for them under gtk20
21489           and gtk2 respectively.
21490
21491 2000-07-25  Havoc Pennington  <hp@redhat.com>
21492
21493         * gtk/testtext.c: Comment out some stuff that depends on the rest
21494         of my patches.
21495
21496 2000-07-25  Havoc Pennington  <hp@redhat.com>
21497
21498         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
21499         buffer
21500
21501 2000-07-25  Havoc Pennington  <hp@redhat.com>
21502
21503         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
21504         widget changes.
21505
21506         * gtk/gtktextview.h: To be consistent with usage of "line"
21507         throughout the API to mean "newline-terminated thingy", change
21508         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
21509         to MOVEMENT_LINE.
21510
21511         (GtkTextView): Add flags for default editability, and whether to
21512         show the cursor. Add functions to get/set that. Add 
21513
21514         (gtk_text_view_get_iter_location): new function
21515
21516         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
21517         gtktextlayout.h
21518         (g_convert): Add g_convert temporarily, will go in glib in a bit
21519         
21520         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
21521         GtkTextTagTableForeach instead of brokenly using GHFunc.
21522         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
21523
21524         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
21525         moved to public header.
21526
21527         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
21528         "invisible", since "elide" was a bad name.
21529         (gtk_text_tag_get_priority): Added
21530
21531         (GtkTextStyleValues): put this in public header, along with
21532         functions to use it.
21533
21534         * gtk/gtktextmarkprivate.h: Include more headers, since we no
21535         longer include gtktextbtree.h.
21536
21537         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
21538         gtk_text_mark_deleted
21539
21540         * gtk/gtktextlayout.h: Don't include the "really private" headers,
21541         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
21542         to make this possible. Now we only need to install
21543         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
21544         (However the Makefile.am isn't changed yet because of the
21545         logistics of merging gtk-hp-patches piecemeal)
21546
21547         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
21548         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
21549         gtk_text_iter_get_line is now used in the public API for a
21550         different purpose.
21551
21552         * gtk/gtktextiter.h: Clean up function names to be more
21553         consistent. Always call char offset "offset" and byte index
21554         "index". A "line" is always a line number. 
21555
21556         (gtk_text_iter_is_last): new function, more efficient than 
21557         the existing way to check
21558         (gtk_text_iter_is_first): new function, also more efficient
21559
21560         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
21561
21562         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
21563         gtk_text_iter_forward_char, etc.
21564
21565         (gtk_text_iter_forward_to_tag_toggle): Renamed from
21566         forward_find_tag_toggle, since this isn't a linear search
21567
21568         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
21569
21570         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
21571         New functions, search for a buffer substring.
21572
21573         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
21574         interactive and default editable (since we need to store that info
21575         until we receive the selection data).
21576
21577         Remove all the _at_char and at_line etc. versions of functions;
21578         only have iterator versions.
21579
21580         Add _interactive() versions of functions, that consider the
21581         editability of text. (FIXME add interactive flag to the 
21582         insert/delete signals per Darin's suggestion)
21583
21584         (gtk_text_buffer_get_tag_table): new function, demand-creates the
21585         tag table if necessary
21586
21587         Remove declaration of gtk_text_buffer_get_iter_from_string
21588
21589         (_gtk_text_buffer_get_btree): private/internal function, added.
21590         
21591
21592         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
21593         (gtk_text_line_is_last): new function
21594
21595 2000-07-25  Havoc Pennington  <hp@redhat.com>
21596
21597         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
21598         using GtkProgressBar. See Changes-2.0.txt for details.
21599
21600         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
21601         "pulse_step" which are the equivalent of
21602         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
21603         Implement new API.
21604         
21605         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
21606         (use_text_format) to mark whether text set on the progress bar is
21607         a format string. Deprecate entire GtkProgress interface.
21608
21609         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
21610         (gtk_progress_build_string): make this a no-op if use_text_format
21611         is FALSE
21612
21613         * docs/Changes-2.0.txt: Describe progress bar changes.
21614
21615 2000-07-25  Tor Lillqvist  <tml@iki.fi>
21616
21617         * Makefile.am: Include the build directory.
21618
21619         * configure.in: Generate build/Makefile, build/win32/Makefile,
21620         gdk/, gdk/win32/, and gtk/makefile.mingw.
21621
21622         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
21623         Add GETTEXT_PACKAGE.
21624         
21625         * gdk/gdk.def
21626         * gtk/gtk.def: Updates.
21627
21628         * gdk/gdkfont.h
21629         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
21630         need them any longer.
21631
21632         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
21633
21634         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
21635         PANGOWIN32_LIBS and gdk_pixbuf.
21636
21637         * gdk/win32: Compiles, but no doubt doesn't work at all.
21638
21639         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
21640
21641         * gdk/win32/gdkinput.c: New file, temporarily.
21642         
21643         * gdk/win32/gdkinput-win32.h: New file
21644
21645         * gdk/win32/gdkinputprivate.h: Remove.
21646
21647         * gdk/win32/gdkpango-win32.c: New file.
21648
21649         * gtk/makefile.mingw.in: New file
21650
21651         * gtk/makefile.cygwin: Removed
21652         
21653         * gtk/Makefile.am: Update accordingly.
21654
21655         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
21656         made externally visible.
21657
21658         * gtk/gtkmain.c: Use it.
21659         
21660         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
21661         is enough.
21662
21663         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
21664
21665 2000-07-24 Elliot Lee <sopwith@redhat.com>
21666         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
21667         individual backends already.
21668         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
21669         again. Yes, there really is a good reason for this, if you are using the gdkregion
21670         internals, and if you're not, why do you care?
21671         * gdk/gdkwindow.c: Fix inverted condition
21672         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
21673         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
21674         * gtk/gtkrange.c: Redraw trough when moving.
21675         * gtk/gtktypeutils.c: Fix warning by adding const cast.
21676         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
21677
21678 2000-07-23  Tor Lillqvist  <tml@iki.fi>
21679
21680         * configure.in: Check for mkstemp and sigsetjmp. Output
21681         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
21682
21683         More work on GDK for Win32. Still in an intermediate state.
21684
21685         * gdk/makefile.cygwin
21686         * gdk/win32/makefile.cygwin: Removed.
21687         
21688         * gdk/makefile.mingw.in
21689         * gdk/win32/makefile.mingw.in: New files.
21690
21691         * gdk/Makefile.am
21692         * gdk/win32/Makefile.am: Generate and distribute them.
21693
21694         * gdk/win32/gdkwindow-win32.h
21695         * gdk/win32/gdkdrawable-win32.h
21696         * gdk/win32/gdkpixmap-win32.h: New files.
21697
21698         * gdk/win32/gdkcolor-win32.c
21699         * gdk/win32/gdkcursor-win32.c
21700         * gdk/win32/gdkdrawable-win32.c
21701         * gdk/win32/gdkgc-win32.c
21702         * gdk/win32/gdkimage-win32.c
21703         * gdk/win32/gdkprivate-win32.h
21704         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
21705         Rename fields and variables called xcursor, xid, etc (these names
21706         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
21707
21708 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
21709
21710         * gtk/gtkentry.[ch]: Fix some problems with vertical
21711         alignment.
21712
21713         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
21714         char/byte confusion.
21715
21716 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
21717
21718         * gtk/gtktextview.c (changed_handler): Fix bug where
21719         redraw wasn't being done properly when height of
21720         dirty region changed.
21721
21722         * demos/Makefile.am: Remove various references to
21723         -lgmodule
21724
21725 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
21726
21727         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
21728         PangoAttrShape to reserve space for pixmaps, add 
21729         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
21730         in the display functions.
21731         
21732         * gtk/testgtk.c (create_layout): Set some more exotic
21733         scrolled window options
21734
21735         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
21736         Add function to set the shadow type of a window, to allow
21737         putting a shadow around widgets such as GtkLayout or GnomeCanvas
21738         which don't draw their own frame.
21739
21740 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
21741
21742         * docs/tutorial/package-db-tutorial.sh: New file for
21743           packaging DocBook format tutorial
21744
21745 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
21746
21747         * docs/tutorial/gtk-tut.sgml: Minor updates
21748
21749         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
21750
21751 2000-07-19  Tor Lillqvist  <tml@iki.fi>
21752
21753         * gtk/gtksignal.c: Fix C++ comment.
21754
21755         * gtk/gtkimmulticontext.c
21756         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
21757         don't return value from void functions.
21758
21759         * gtk/gtk.def: Add gtk_rc_style_unref.
21760
21761 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
21762
21763         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
21764         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
21765         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
21766         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
21767         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
21768         gtk/gtktypeutils.h: Include files outside of the extern "C"
21769         block. Makes some C++ compiler happy. Reported by Denis Vakatov
21770         <vakatov@peony.nlm.nih.gov>.
21771
21772 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
21773
21774         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
21775           Completes first pass. Hurrah!
21776
21777 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
21778
21779         * docs/tutorial/gtk-tut.sgml: More clean ups.
21780
21781 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
21782
21783         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
21784         paint the background of the text area which was accidentally
21785         removed at some point.
21786
21787         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
21788           
21789          - Move most of the functionality from the theme vtable
21790            into GtkRcStyleClass and GtkStyleClass. The moved
21791            vtable functions were changed a bit in the move to
21792            work better in their new home.
21793
21794          - Get rid of the engine and engine_data fields from
21795            GtkRcStyle and GtkStyle; instead the theme
21796            engine derives theme-specific subclasses of GtkRcStyle
21797            and GtkStyle
21798
21799          - Add extra dlsym() found entry point to themes,
21800            theme_create_rc_style().
21801
21802         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
21803         in gtk_style_real_copy.
21804
21805         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
21806         to register a type associated with an engine. (The engine
21807         won't be unloaded as there is an instance of the type.)
21808
21809
21810 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
21811
21812         * docs/tutorial/gtk-tut.sgml: Clean ups.
21813
21814 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
21815
21816         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
21817           of cleaning up to do.
21818
21819 2000-07-15  Tor Lillqvist  <tml@iki.fi>
21820
21821         * gdk/testgdk.c: New file, quick hack to test backends for
21822         pixel-by-pixel correctness of the most simple graphic operations.
21823
21824 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
21825
21826         * Really release 1.3.1
21827         
21828         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
21829         include structure.
21830
21831 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
21832
21833         * Released 1.3.1
21834
21835 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
21836
21837         * gtk/gtktextlayout.c: use FALSE for size_only most
21838         of the time when calling gtk_text_layout_get_line_display()
21839         to avoid causing double reshapes when a redraw follows
21840         immediately after.
21841
21842 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
21843
21844         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
21845         appropriate region and gdk_window_process_updates() so trough
21846         updating doesn't lag behind the window being scrolled.
21847
21848         * gdk/gdkgc.c: Make parent_class pointer static.
21849          
21850 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
21851
21852         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
21853         include <string.h>.
21854          
21855         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
21856         cut-and-paste error in computing memory offset for 4 channels.
21857
21858 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
21859
21860         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
21861         gtk_rc_append_default_pixmap_path(), since it wasn't
21862         adding an interesting path and we don't have a meaningful
21863         default for this value.
21864
21865 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
21866
21867         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
21868         gtk-config to gtk-config-2.0 move gtk_.m4 to
21869         gtk-2.0.m4
21870
21871         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
21872         gdk/Makefile.am demos/Makefile.am: Change 
21873         library names to libgtk-1.3.la, etc, so that we
21874         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
21875
21876         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
21877         gdk/Makefile.am gdk/x11/Makfile.am
21878         Move include files into /usr/include/gtk-2.0, 
21879         /usr/lib/gtk-2.0/include/
21880          
21881         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
21882         gtk/gtkintl.h: Change package for gettext from 
21883         gtk+ to gtk20. Put hack in autogen.sh to modify
21884         po/Makefile.in.in after gettextize to make this
21885         possible.
21886
21887         * gtk+.spec: Some updates, not tested.
21888
21889         * gdk-pixbuf/Makefile.am: Move loaders into
21890         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
21891
21892         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
21893         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
21894         to THEMENAME/gtk-2.0/. Move engine directory  to
21895         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
21896         
21897 2000-07-12  Tor Lillqvist  <tml@iki.fi>
21898
21899         Win32 changes, still doesn't build though.
21900
21901         * gdk/makefile.cygwin
21902         * gdk/win32/makefile.cygwin
21903         * gtk/makefile.cygwin: Updates.
21904
21905         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
21906         default values for fg and bg pixel as X11 does (0 and 1), not
21907         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
21908         Use 0 for pen width by default (treated as 1 anyway later, but for
21909         apps that might check the value in the GdkGC).
21910         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
21911         interface to gdk_gc_predraw and _postdraw.
21912
21913         * gdk/win32/gdkwin32.h
21914         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
21915
21916         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
21917         extraneous semicolon.
21918
21919         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
21920
21921         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
21922         not the Win32 bitspixel value.
21923
21924         * gdk/win32/gdkcc-win32.c:
21925         * gdk/win32/gdkcolor-win32.c 
21926         * gdk/win32/gdkprivate-win32.h
21927         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
21928         GDK object structure.
21929
21930 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
21931
21932         * docs/tutorial/gtk_tut_12.es.sgml (name): 
21933         * docs/tutorial/gtk_tut_it.sgml (name): 
21934         * docs/tutorial/gtk_tut_fr.sgml (name): 
21935         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
21936         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
21937
21938 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
21939
21940         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
21941           small changes.
21942
21943 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
21944
21945         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
21946         a bug here, never been here and never fixed anything ;(
21947         (don't segfault if tree->root_tree is NULL, which happens prior
21948         to widget realization, but puke instead).
21949
21950 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
21951
21952         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
21953         add the necessary tokens.
21954
21955         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
21956         (gtk_rc_style_to_style): copy thicknesses.
21957         (gtk_rc_init_style): apply thicknesses.
21958         (gtk_rc_parse_style): parse xthickness and ythickness.
21959
21960         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
21961
21962         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
21963         (gdk_window_new): 
21964         (_gdk_windowing_window_init): 
21965         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
21966         (gdk_pixmap_create_from_data): 
21967         (gdk_bitmap_create_from_data): 
21968         (gdk_pixmap_new): 
21969         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
21970         (gdk_image_new): 
21971         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
21972         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
21973         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
21974         (gdk_colormap_get_system): 
21975         (gdk_colormap_new): 
21976         * gdk/gdkwindow.c (gdk_window_init): 
21977         * gtk/gtkstyle.c (gtk_style_new):
21978         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
21979         * gdk/gdkpixmap.c (gdk_pixmap_init): 
21980         * gtk/gtkrc.c (gtk_rc_style_new):
21981         use g_object_new() instead of g_type_create_instance() which
21982         is a private function for fundamental type implementations.
21983
21984 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
21985
21986         * configure.in: Add check for db2html
21987
21988 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
21989
21990         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
21991         hack to set glib_debug_objects based on gtk_debug_flags.
21992
21993 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
21994
21995         * INSTALL.in: Update the Prerequisites section.
21996
21997         * Makefile.am demos/Makefile.am docs/Makefile.am
21998         docs/tutorial/Makefile.am gdk/x11/Makefile.am
21999         gdk/linux-fb/Makefile.am: Dist fixes
22000
22001 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
22002
22003         * NEWS: 10,000 foot view of 1.3.1 changes.
22004
22005 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
22006
22007         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
22008         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
22009         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
22010         gdk/x11/gdkmain-x11.c: 
22011
22012         Patch from George Lebl to add a GdkGrabStatus enumeration to use
22013         as a return value of gdk_*_grab(). Previously, we just
22014         returned the X11 values directly.
22015
22016 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
22017
22018         * gdk/x11/Makefile.am: Patch from George Lebl to 
22019         install all the headers in the right place.
22020
22021 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
22022
22023         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
22024           initial conversion to DocBook.
22025
22026 2000-07-04  Tor Lillqvist  <tml@iki.fi>
22027
22028         * README.win32: Improve a bit.
22029
22030         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
22031         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
22032         Alt+0nnn on the numpad (used to enter characters by numeric code
22033         from current DOS or ANSI codepage) working correctly, as in other
22034         Windows apps.
22035
22036         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
22037         same argument validity tests as in X11 version.
22038         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
22039
22040         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
22041         definitions in case missing from headers.
22042
22043         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
22044         destroy the window-specific cursor.
22045         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
22046         calling GetModuleHandle(NULL).
22047         (gdk_window_set_cursor): Reworked to always copy the passed cursor
22048         with CopyCursor before setting it as the window-specific
22049         cursor. It is OK for the caller to destroy the GdkCursor (and thus
22050         also its Windows cursor) after calling this function. Destroy any
22051         previous window-specific cursor.
22052
22053 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
22054
22055         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
22056         font charset is iso8859-1, not iso-8859-1.
22057
22058 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
22059
22060         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
22061         Use g_get_charset() instead of g_get_codeset().
22062
22063         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
22064         Comment out some strdup'ing functions to keep timj
22065         happy until we finish fighting this out.
22066
22067 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
22068
22069         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
22070         <= width or height.
22071
22072         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
22073         from 1.2 for parent/child states.
22074
22075         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
22076         of typos.
22077
22078         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
22079         event structures, replace with a generic axes field. Replace 
22080         deviceid/sourec with GdkDevice *device.
22081
22082         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
22083         to extract particular axis use value from event. (Also
22084         can be used for normal X/Y.)
22085
22086         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
22087         allow for arbitrary number of axes, namespace everything
22088         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
22089         everywhere.
22090
22091         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
22092         Get rid of the gdk_input_vtable setup if favor of simply
22093         defining the functions in gdkinput-none/gxi/xfree.c in
22094         a similar fashion to the way that the port structure is 
22095         done.
22096
22097         * gtk/gtkdnd.c: Fix fields of synthesized button press event
22098         for new event structures. 
22099
22100         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
22101         new device interfaces.
22102
22103 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
22104
22105         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
22106         set the initial text.
22107
22108         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
22109         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
22110         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
22111         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
22112
22113         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
22114         pango_layout_set_font_description to simplify.
22115
22116 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
22117
22118         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
22119         pango_layout_set_font_description to simplify.
22120
22121 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
22122
22123         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
22124         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
22125         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
22126
22127         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
22128         PANGO_PIXELS() macro.
22129
22130 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
22131
22132         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
22133         that returns a PangoContext owned by the widget and updated to
22134         match future changes in the widget. Also, make 
22135         gtk_widget_create_pango_layout() use this context. If we ever
22136         add a ::changed signal to PangoContext, this will make things
22137         much more convenient. 
22138
22139         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
22140         in the appropriate places instead of destroying the layouts and
22141         creating new ones.
22142
22143         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
22144         in a few strategic places.
22145
22146 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
22147
22148         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
22149         gtk_widget_size_request() on reparented child, if one. Otherwise,
22150         queue_resize() on the child never results in it getting size-requested
22151         at all.
22152
22153         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
22154         in option menus, so that (with luck) people won't copy it into
22155         their apps in the future.
22156
22157         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
22158         to gtk_option_menu_calc_size. This isn't perfect, but should fix
22159         a lot of problems with changing the size of the menu's menu
22160         items after adding it to the option menu.
22161
22162         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
22163
22164         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
22165         the text direction for a widget changes.
22166
22167         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
22168         ::direction_changed to get rid of various hacks.
22169
22170 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
22171
22172         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
22173         name.
22174
22175 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
22176
22177         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
22178         flag to the structure. Do not call XFreePixmap on pixmaps created
22179         by gdk_pixmap_foreign_new().
22180
22181 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
22182
22183         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
22184         value using GdkRGB functionality given GdkColormap and GdkColor.
22185         (name not final, waiting for inspiration.)
22186         
22187         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
22188         set the foreground/background of a GC using the GC's colormap
22189         and GdkRGB. (name not final, waiting for inspiration.)
22190
22191         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
22192         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
22193
22194         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
22195         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
22196         purely a function of the corresponding colormap. Make
22197         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
22198
22199         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
22200         gdk_pixbuf_*create_from_xpm_* in terms of
22201         gdk_pixbuf_new_from_xpm_data(), move into platform independent
22202         code.
22203
22204         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
22205         advantage of the new draw_rgb_32_image_dithalign.
22206
22207         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
22208
22209         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
22210         on each created GC.
22211
22212         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
22213
22214         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
22215         which we initialize from the drawable when the GC is created,
22216         if the drawable has a colormap.
22217
22218         * gdk/x11/gdkgc-x11.c: include string.h for memset.
22219
22220         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
22221
22222         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
22223
22224 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
22225
22226         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
22227         actually returning expose events, make sure to set
22228         the count field properly.
22229
22230         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
22231         accidentally reintroced bug which always cleared
22232         the graphics_exposures value. 
22233
22234 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
22235
22236         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
22237
22238 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
22239
22240         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
22241
22242 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
22243
22244         * docs/faq/gtk-faq.sgml: Start of Section 6.
22245
22246 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
22247
22248         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
22249         
22250         (Fixes problem with drawing childless frames. Pointed out
22251         by and a first patch from Anders)
22252         
22253         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
22254         compute a child_allocation, even if we don't have a child.
22255
22256         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
22257         Always chain to the parent's impl, even if we don't have a child.
22258
22259 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
22260
22261         * gdk/gdkrgb.c: If possible, create only a single shm segment and
22262         use multiple parts of it instead of creating a bunch of separate
22263         segments, since the maximum number of segments per system is not
22264         large. (This might be worth backporting to GTK+-1.2.x if we make a
22265         new release )
22266
22267         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
22268         structure in preparation for per-colormap GdkRGB.
22269
22270         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
22271         to False when we get EINVAL from shmget so that the caller of
22272         gdk_image_new can retry with a smaller segment size.
22273
22274 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
22275
22276         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
22277
22278 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
22279
22280         * configure.in: make the current version number 1.3.1 (binary age 0,
22281         interface age 0).
22282         
22283         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
22284         gtkcompat.h is all we want.
22285
22286         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
22287         GLib primitive types. fixed g_type_register_fundamental() argument
22288         ordering.
22289
22290         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
22291         compiles.
22292
22293         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
22294         object code cleanup, comment trigraph fixes, etc...
22295
22296 2000-06-23  Havoc Pennington  <hp@redhat.com>
22297
22298         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
22299         instead of making up a bogus name for first_para_mark
22300
22301         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
22302         0 as a context ID
22303
22304 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
22305
22306         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
22307
22308 2000-06-21  Havoc Pennington  <hp@pobox.com>
22309
22310         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
22311         we didn't check window->bg_pixmap != GDK_NO_BG.
22312
22313         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
22314         gdk-pixbuf
22315
22316 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
22317
22318         * docs/faq/gtk-faq.sgm: Move file to here.
22319           TODO: Update Makfile.am 
22320
22321 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
22322
22323         * docs/gtk-faq.sgm: Add Section 2
22324
22325 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
22326
22327         * docs/gtk-faq.sgm: New file. Start of DocBook
22328           version of the FAQ.
22329
22330 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
22331
22332         * configure.in (GDK_PIXBUF_MAJOR): Define version
22333         numbers for GDK_PIXBUF_*, as they get substituted
22334         into a header file. Need to consider versioning
22335         for gdk-pixbuf more carefully later.
22336
22337 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
22338
22339         Work with srcdir != builddir.   
22340         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
22341         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
22342         * demos/testpixbuf.c: Likewise.
22343         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
22344         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
22345         <gdk/x11/gdkx.h>.
22346         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
22347         "gdk-pixbuf.h".
22348         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
22349
22350 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
22351
22352         * TODO.xml: Change 1.4 version numbers to 2.0.
22353
22354 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
22355
22356         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
22357         fixups to GTK+ standard.
22358
22359 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
22360
22361         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
22362         gdk-pixbuf.
22363
22364         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
22365         fixups for GObject.
22366
22367         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
22368         gdk-pixbuf with GDK dependencies moved into GDK.
22369         
22370         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
22371         move gdk-pixbuf-loader here until GObject has signals.
22372
22373         * demos/: New directory of demos. Move demos from
22374         gdk-pixbuf here.
22375
22376         * demos/pixbuf-init.c: Small bit of code to check for
22377         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
22378         set GDK_PIXBUF_MODULEDIR appropriately.
22379
22380         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
22381         define which no longer makes sense.
22382
22383 2000-06-21  Havoc Pennington  <hp@redhat.com>
22384
22385         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
22386         gtk_get_default_language
22387
22388         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
22389         new function to get the default language
22390
22391         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
22392         s/gtk_text_view_style_values/gtk_text_style_values/
22393
22394         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
22395         Add a "language" field to tags.
22396
22397         (gtk_text_tag_set_arg): Fix bug in setting
22398         "bg_full_height_set" tag.
22399
22400 2000-06-21  Havoc Pennington  <hp@redhat.com>
22401
22402         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
22403         in the interfaces
22404
22405         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
22406         stuff instead when possible.
22407
22408         * gtk/gtktexttypes.h: Delete some unused constants
22409
22410         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
22411         testtextbuffer.c: use glib instead of custom unicode routines
22412
22413 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
22414
22415         * docs/es/: Removed mistakenly added generated sgml
22416
22417         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
22418         Remove outdated info files.
22419
22420         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
22421         Moved tutorial files into subdir
22422
22423         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
22424         subdir.
22425
22426         * docs/man/gtk_button.pod: Remove. (contents will be
22427         integrated into gtk-reference button page.)
22428
22429         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
22430         docs/faq/Makefile.am: Adjust for new organization
22431
22432 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
22433
22434         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
22435         not $(MKINSTALLDIRS)
22436
22437 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
22438
22439         * gtk/testgtk.c (create_text): Finish the job Elliot started
22440         of removing font setting test for text widget. (Since text widget
22441         and GdkFont are not deprecated, and cause portability problems.)
22442
22443 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
22444
22445         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
22446         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
22447         Remove use of libunicode in favor of new GLib functions.
22448
22449         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
22450         nano-x, framebuffer. The X11 include is just a hack until we get
22451         the necessary functions in gdkcolor.h, so there is no reason to
22452         add other includes of platforms.
22453
22454         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
22455         window bigger than the screen change.
22456
22457         * gtk/testgtk.c: Revert some random changes from Elliot
22458         that had no particular point and were causing testgtkrc
22459         not to function correctly.
22460         
22461         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
22462         because GdkSegment and GdkRegionBox have the same fields,
22463         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
22464         results in clearer code.
22465
22466         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
22467         gdk_input_translate_coordinates): Fix missed GdkObjectification
22468
22469 2000-06-18  Elliot Lee  <sopwith@redhat.com>
22470
22471         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
22472         * gtk/gtk{plug,socket}.h: Missed commits from previous.
22473
22474 2000-06-20  Havoc Pennington  <hp@redhat.com>
22475
22476         * modules/linux-fb/Makefile.am: Make this compile
22477         without framebuffer enabled
22478
22479         * gdk/linux-fb/Makefile.am: Add conditional to not build
22480         framebuffer unless specified in configure
22481
22482         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
22483         the size of the target instead of source if -1 was passed for
22484         width/height
22485
22486         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
22487         width/height confusion.
22488
22489 2000-06-19  Havoc Pennington  <hp@redhat.com>
22490
22491         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
22492         GDK_DRAWABLE_XID. In the future, we probably want to make it
22493         faster with G_DISABLE_CHECKS turned on.
22494
22495 2000-06-14  Havoc Pennington  <hp@redhat.com>
22496
22497         * gdk/Makefile.am: add gdkpixmap.c
22498
22499         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
22500         s/gdk_image_init/_gdk_windowing_image_init
22501
22502         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
22503         ref/unref
22504
22505         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
22506
22507         * gdk/gdkcompat.h: remove GdkWindowType compat, since
22508         GdkWindowType is now non-deprecated; 
22509         change gdk_window_get_type() compat to be
22510         gdk_window_get_window_type().
22511
22512         * gdk/gdkdnd.h: make GdkDragContext a GObject.
22513
22514         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
22515         virtual GObject. Make all functions call into the vtable.
22516         Move gdk_image_put() guts in here. Remove GdkDrawableType
22517         and gdk_drawable_get_type(), these are now GdkWindow-specific.
22518         draw_image, get_depth, get_size, set_colormap, get_colormap,
22519         get_visual added to the vtable.
22520         
22521         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
22522         GObject. Virtualize everything. 
22523         (gdk_gc_new_with_values): remove check for destroyed window,
22524         because now GdkWindow::create_gc will check this.
22525         (gdk_gc_set_values): New function to set GC values, this 
22526         was already implemented but wasn't in the header
22527
22528         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
22529
22530         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
22531         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
22532         remove _gdk_window_class; add _gdk_window_impl_get_type() and
22533         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
22534         _gdk_windowing_window_init, rename gdk_image_init to
22535         _gdk_windowing_image_init.
22536         
22537         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
22538         (gdk_draw_layout): Remove check for destroyed window, 
22539         because all the drawable methods already check it.
22540         
22541         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
22542         Add gdkpixmap.c which contains implementation of GdkDrawable
22543         virtual table (by chaining to a platform-specific implementation
22544         object).
22545         
22546         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
22547         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
22548         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
22549         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
22550         GdkColormapPrivate. 
22551
22552         * gdk/gdktypes.h: #include <glib-object.h>
22553
22554         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
22555         Move most functionality to platform-specific implementation
22556         object. GdkWindow itself now handles the backing store, then
22557         chains to the platform-specific implementation.
22558         (gdk_window_get_window_type): return GdkWindowType of the window.
22559         (gdk_window_peek_children): New routine, returns the children of 
22560         a GdkWindow
22561         (gdk_window_get_children): Was in X11-specific code and did 
22562         XQueryTree. Changed to simply return a copy of window->children; 
22563         so it can go in cross-platform code.
22564         
22565         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
22566
22567         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
22568         GdkColormap; just changed to use the new private data instead
22569         of casting to GdkColormapPrivate.
22570
22571         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
22572         gdk_cursor_new().
22573
22574         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
22575         (private data member in the GObject). 
22576         (xdnd_manager_source_filter): Function had broken 
22577         error handling, fix it (use gdk_error_trap_push).
22578
22579         * gdk/x11/gdkdrawable-x11.c: This file now implements
22580         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
22581         base class is purely for the convenience of the X port,
22582         and not part of the interface to cross-platform GDK.
22583
22584         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
22585         
22586         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
22587         specific to X, and returned by the create_gc virtual method
22588         of GdkDrawableImplX11. 
22589         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
22590         rather than gchar, this was also changed in the GdkGC vtable.
22591         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
22592         mask is 0, return immediately, instead of checking every flag.
22593         This is faster, and keeps us from segfaulting if values is NULL
22594         and the mask contains some nonzero flags.
22595
22596         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
22597         GdkWindow.
22598
22599         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
22600         GdkWindowPrivate is gone.
22601
22602         * gdk/x11/gdkim-x11.c: rename things that got renamed.
22603
22604         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
22605         remove the image_put stuff that got transferred to GdkDrawable.
22606         
22607         * gdk/x11/gdkinput.c: renamings
22608
22609         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
22610
22611         * gdk/x11/gdkpixmap-x11.c: GObject conversion
22612
22613         * gdk/x11/gdkprivate-x11.h: indentation fixes
22614
22615         * gdk/x11/gdkproperty-x11.c: renamings
22616
22617         * gdk/x11/gdkselection-x11.c: renamings
22618
22619         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
22620         implements the platform-specific "impl" object.
22621         Moved gdk_window_get_children to gdk/gdkwindow.c
22622
22623         * gdk/x11/gdkx.h: Remove all the private structs and private datas
22624         that no longer exist. Add declaration of GdkGCX11 object here.
22625         Fix all the macros to still work. 
22626
22627         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
22628         GdkDragContext from the boxed types since they are now GObjects.
22629
22630         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
22631         moved xthickness/ythickness into the instance. GtkStyleClass
22632         functions are now in the standard vtable for GtkStyle, so you have
22633         to create a GObject subclass to write a theme engine.
22634         (gtk_style_copy): fixed a leaked PangoFontDescription
22635         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
22636         can be the standard GObject function.
22637         
22638         * Throughout GTK:
22639         s/style->klass->[xy]thickness/style->[xy]thickness
22640         s/pango_layout_unref/g_object_unref/
22641
22642         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
22643         
22644         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
22645         accessing GDK internals.
22646
22647         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
22648         accessing GDK internals.
22649
22650 2000-06-18  Elliot Lee  <sopwith@redhat.com>
22651
22652         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
22653
22654         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
22655         problem by calculating event position relative to the trough
22656         rather than the slider.
22657         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
22658
22659         * gdk/gdkgc.h: Add GDK_NOR.
22660
22661         * configure.in, Makefile.am: Add modules top level dir
22662         * configure.in: Only use pangox library if building x11 target.
22663         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
22664
22665 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
22666
22667         * gtk/gtkcolorsel.c: Change private class member to be named
22668         private_data throughout the file.
22669
22670         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
22671         private_data to avoid clashing with keyword.
22672
22673 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
22674
22675         * gdk/gdkdnd.h: Add comment to remove warning.
22676
22677 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
22678
22679         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
22680         Byelorussian language; changed the Makefile and file names 
22681         to reflect that.
22682
22683 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
22684
22685         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
22686         rather than gdk_window_hide; this makes things work
22687         correctly if the window is programmatically hidden while
22688         iconified.
22689
22690 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
22691
22692         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
22693         cut and paste typo where wrong pixmap was being
22694         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
22695
22696 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
22697
22698         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
22699         Add helper function to compute format / bytes 
22700         relationship. Use in a couple places to fix up
22701         errors which assume 8 * format.
22702
22703         * gtk/gtkselection.c (gtk_selection_request): Use 32
22704         rather than 8 * sizeof (GdkAtom), to work correctly
22705         on Alpha.
22706
22707 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
22708
22709         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
22710         libgtk.la
22711         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
22712         versions
22713
22714         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
22715         checking macros return NULL since the function has a return value.
22716
22717 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
22718
22719         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
22720         GTK+ from building at all.
22721
22722         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
22723
22724 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
22725
22726         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
22727         gtk/Makefile.am: make it possible to configure gtk for different
22728         targets on the same platform. The library name is now 
22729         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
22730         flag. Only the x11 target compiles right now.
22731         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
22732         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
22733         * gdk/nanox/gdk*generic*: delete generic region code.
22734         * gdk/linux-fb/gdk*generic*: delete generic region code.
22735         * README.nanox: update information.
22736         
22737 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
22738
22739         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
22740         prepend not append. (Pointed out by Brett Hall.)
22741
22742 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
22743
22744         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
22745
22746 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
22747
22748         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
22749         need this later, and this makes sure that the atexit for
22750         glib gets called after that for GDK, so atexits are
22751         properly ordered for object leak checking.
22752
22753         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
22754
22755         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
22756         pango_x_shutdown_display()
22757
22758         * gtk/simple.c (main): Close window on destroy.
22759
22760 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
22761
22762         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
22763         to treat initial creation different from setting with 
22764         regards to the graphics-exposures parameter, so add a parameter
22765         indicating whether this is initial or not.
22766
22767 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
22768
22769         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
22770         to sort of work by adding an extra return_exposes arg
22771         to gdk_event_translate() - it might be better to simply
22772         deprecate the function altogether and force people to rewrite
22773         without it. gdk_window_scroll() handles most of it, and where
22774         gdk_window_scroll() doesn't work, simply redrawing more does.
22775
22776         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
22777         assertion.
22778
22779         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
22780
22781         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
22782         bunch of pretty much useless /* Print debugging info */ comments 
22783         which had drifted away from the code they were commenting.
22784
22785 2000-06-02  Havoc Pennington  <hp@pobox.com>
22786
22787         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
22788         is in working order.
22789         
22790         * gtk/testtext.c: Change to reflect anonymous mark API
22791
22792         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
22793
22794         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
22795         field, which was unused.
22796
22797         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
22798         saves some typing.
22799
22800         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
22801
22802         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
22803         flag on the insertion point and selection bound
22804
22805         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
22806         make mark-manipulation functions take a GtkTextMark* instead of a
22807         mark name.
22808         
22809         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
22810         GtkTextMarkBody; will be used to detect attempts to delete
22811         the permanent marks (insert and selection bound)
22812
22813         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
22814
22815 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
22816
22817         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
22818         flag to on.
22819
22820         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
22821         Honor DOUBLE_BUFFRED_FLAG
22822
22823         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
22824         function to set the DOUBLE_BUFFERED flag.
22825
22826         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
22827         or not exposes done on the widget should be double-buffered.
22828
22829         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
22830         to be what would be expected. (Fixes problem with a
22831         g_return_if_fail() validating a TextDirection enumeration)
22832
22833 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
22834
22835         * gtk/gtkwidget.c: Remove all references to 
22836         offscreen flag which was no longer used.
22837
22838         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
22839
22840         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
22841         for non-null label_widget->parent.
22842
22843         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
22844         which no longer was used.
22845
22846         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
22847
22848         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
22849         for null arguments.
22850
22851         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
22852         check for destroyed windows.
22853
22854 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
22855
22856         * gtk/gtkimmulticontext.c: Add a finalize method and unref
22857         the slave context there.
22858
22859         * gtk/gtkinvisible.[ch]: Make reference counting behavior
22860         identical to GtkWindow.
22861
22862 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
22863
22864         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
22865         pangox to here, so we can write them independent of rendering
22866         system, using GDK primitives.
22867
22868         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
22869         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
22870         since we have a rendering-system independent implementation in
22871         terms of draw_glyphs().
22872         
22873         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
22874         function to render a single line.
22875
22876         * gdk/x11/gdkpango.c: Move the guts of this file mostly
22877         into ../gdkpango.c, which simplifies things, since we
22878         don't have to deal with raw X gc's.
22879
22880 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
22881
22882         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
22883         get the logical attributes for a given GtkTextLine.
22884
22885 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
22886
22887         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
22888         g_locale_get_codeset() to g_get_codeset() change.
22889
22890 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
22891
22892         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
22893         descriptions.
22894
22895         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
22896         the entry.
22897
22898         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
22899         redoing (vastly simplifying) for Pango. Still needs quite
22900         a bit of work. (Size selection is currently poor. List of 
22901         predefined sizes is not a good idea, since all of these
22902         sizes won't necessarily be distinct.)
22903
22904 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
22905
22906         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
22907         CODESET results for LANG=C.
22908
22909 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
22910
22911         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
22912         which takes a stringized pango font description;
22913         ignore the older 'font' and 'fontset' declarations.
22914
22915         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
22916         field with a GdkFont derived via gdk_font_from_description(),
22917         for compatibility. (Should we just remove it entirely?
22918         Probably too much compatibility breakage, but people
22919         should be migrating to the new Pango stuff as quickly
22920         as possible.)
22921
22922 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
22923
22924         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
22925
22926 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
22927
22928         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
22929         redoing; there are some bugs in size allocation right
22930         now, the semi-existant distinction between header / day
22931         fonts was removed, but, with Pango, could actually
22932         be made functional in a nice way.
22933         
22934         * gtk/testcalender: Move calender from examples into this
22935         directory as a test program. (We really need to restrcture
22936         testgtk into a whole directory full of tests for every
22937         widget or functionality group, separated into multiple .c
22938         files.)
22939
22940 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
22941
22942         * gtk/testgtk.c (file_exists): Fix stupid typo that
22943         was keeping RC file from being loaded.
22944
22945         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
22946         RC file font code.
22947
22948 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
22949
22950         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
22951         Add function to load a GdkFont from a PangoFontDescription.
22952
22953 2000-05-29  Tor Lillqvist  <tml@iki.fi>
22954
22955         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
22956         variable should be of type GdkEventPrivate.
22957
22958 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
22959
22960         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
22961         to have any widget for the label, use a GtkLabel widget
22962         to display the text. (Based partially on a patch from
22963         Anders Carlson.)
22964
22965         (Quite a bit of code reorganization - strip 90% of the
22966         guts out of gtkaspectframe and add a single virtual
22967         func to GtkFrameClass - compute_child_allocation.)
22968
22969 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
22970
22971         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
22972         (Removed clist->row_center_offset field because caching
22973         it wasn't saving time or code, added private function
22974         _gtk_clist_create_cell_layout()).
22975
22976 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
22977
22978         * gtk/gtkaccellabel.c: Pangoized.
22979
22980         * gtk/[hv]ruler.c: Pangoized
22981
22982 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
22983
22984         * gtk/gtkfilesel.c (gtk_file_selection_init):
22985         Use gtk_clist_set_column_auto_resize() to remove need
22986         need for manual column width computations.
22987
22988 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
22989
22990         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
22991         ensuring Pango correctness, and considerably simplifying the
22992         code.
22993         
22994         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
22995
22996         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
22997         getting of numbers of lines.
22998
22999         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
23000         to the actual requested width of the lable, not to the wrap
23001         width we set.
23002
23003         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
23004
23005         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
23006           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
23007
23008         * gtk/gtktextview.c: Fix structure inheritance.
23009
23010         * gtk/gtkprogressbar.c: Pangoize.
23011
23012 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
23013
23014         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
23015         in a function.
23016
23017         * gtk/gtktextlayout.c (find_display_line_above): Fixed
23018         bug with computing line tops.
23019
23020         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
23021
23022 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
23023
23024         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
23025         and y_offset coordinates to do what we need now. (The offset between
23026         buffer and layout coordinates has been reintroduced, but is a 
23027         bit different than before.)
23028
23029         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
23030         handle the adjustments ourselves, and scroll as necessary using
23031         the new gdk_window_scroll().
23032         
23033         The advantage of this is that when we are incrementally revalidating,
23034         we are essentially rearranging things around the visible portion
23035         of the screen. With the old setup, the visible portion of the
23036         screen was moved around in the layout, so scrolling and redrawing
23037         to track that caused jumping of the display. Since we now
23038         control the scrolling ourselves, we can suppress this and
23039         only redraw when things actually change.
23040
23041 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
23042
23043         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
23044         the region not just redisplay it after-all, since we store the
23045         cursors in the LineDisplay. (Ugly interactions here between
23046         GtkLayout and GtkTextBTree here.)
23047         
23048         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
23049
23050 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
23051
23052         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
23053         Added function to scroll contents of a window while keeping the
23054         window constant. Works by XCopyArea or guffaw-scrolling depending
23055         on the details of how the window is set up. (guffaw-scrolling
23056         still needs to be filled in.)
23057
23058 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
23059
23060         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
23061         move the debugging that was tied to a global variable
23062         to that.
23063
23064         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
23065
23066         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
23067         validated flag, in line data instead of setting height/width to
23068         -1. This allows us to perform operations with partially invalid
23069         buffer (using the old size for invalid lines) and thus to do
23070         incremental vaidation. Keep height/width aggregates up to date
23071         when deleting text and rebalancing the tree.
23072
23073         * gtk/gtktextbtree.[ch]: Add functions validate a line
23074         (gtk_text_btree_validate_line), and to validate up
23075         to a number of pixels (gtk_text_btree_validate).
23076
23077         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
23078         that indicates that something is changed and a revalidation
23079         pass is needed. Change ::need_repaint to ::changed, and
23080         make it take old and new yranges instead of a rectangle.
23081
23082         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
23083         the line_data_destroy() function from 
23084         gtk_text_btree_add_view() to a virtual function in 
23085         GtkTextLayout
23086
23087         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
23088         since we are handling partial repaints in a different fashion
23089         now.
23090
23091         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
23092         of the selection instead of queueing a repaint on the
23093         entire widget.
23094
23095         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
23096         get_selection_bounds() down to btree, make the function
23097         in buffer a wrapper around the btree function.
23098
23099         * gtk/gtktextlayout.[ch]: Add functions to check if the
23100         layout is valid and to recompute either a range of pixels
23101         aroudn a line or a certain total number of pixels.
23102
23103         * gtk/gtktextlayout.[ch]: Cache a single line display;
23104         now that we only redraw the needed portions, the hit rate
23105         for this cache is quite high.
23106         
23107         * gtk/gtktextview.[ch]: Keep track of the first paragraph
23108         on the screen so that when re-laying-out the buffer, we can
23109         keep the same place. This requires connecting to ::value_changed
23110         on the adjustments
23111
23112         * gtk/gtktextview.[ch]: Add idle functions to revalidate
23113         the buffer after we receive an ::invalidated signal.
23114         
23115 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
23116
23117         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
23118         to max of allocation and layout size, not just to the
23119         layout size.
23120
23121         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
23122         Invalidate window so it gets redrawn properly.
23123
23124         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
23125         to mean the entire window.
23126
23127         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
23128         into public header.
23129
23130 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
23131
23132         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
23133         to get the name of a mark.
23134
23135         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
23136         to find the paragraph from a y position.
23137
23138 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
23139
23140         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
23141         nodes have width/height >= 0, not > 0.
23142
23143 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
23144
23145         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
23146         Add a size_only flag, so when we only need the size, we don't create
23147         useless appearance attributes.
23148
23149         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
23150         duplicate setting of font description.
23151
23152         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
23153
23154 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
23155
23156         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
23157         EXTRA_DIST. It does not work well when the file that
23158         everything depends on is not in the tarball.
23159
23160 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
23161
23162         * gtk/testgtk.c: Some hacks and fixes so that it basically
23163         works when not sitting in the GTK+ build tree.
23164
23165 2000-05-03  Havoc Pennington  <hp@redhat.com>
23166
23167         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
23168         Properly determine the ordering of the tag root and the current
23169         line within the tree. Previous algorithm only worked if the tag
23170         root's immediate parent was the common root of both the current
23171         line and the tag root.
23172
23173 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
23174
23175         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
23176         alignment.
23177
23178         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
23179         the widget text directional dynamically.
23180
23181         * gtk/gtktextview.[ch]: Added functions to get and set default
23182         wrap mode.
23183
23184 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
23185
23186         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
23187         in cursor location computation.
23188
23189 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
23190
23191         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
23192         vadjusment values properly when layout gets smaller.
23193
23194         * gtk/gtktextview.c (need_repaint_handler): Areas being
23195         passed in are far completely inaccurate, and sometimes
23196         too small, so, for now, just queue a redraw on the
23197         whole visible region.
23198
23199 2000-04-25  Havoc Pennington  <hp@redhat.com>
23200
23201         * gtk/gtktextbtree.c (summary_destroy): new function to 
23202         destroy tag summary nodes
23203         (gtk_text_line_next_could_contain_tag): this function was 
23204         totally broken if the line passed in wasn't below the tag
23205         root. Fix it.
23206         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
23207         "wildcard" case, we have to do a linear scan. Blah.
23208         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
23209         we have to do the linear scan
23210         (tag_removed_cb): When a tag is removed from the tag table, 
23211         remove the GtkTextTagInfo node from the btree.
23212         (gtk_text_btree_spew): Implement the spew function, for 
23213         our debugging pleasure.
23214
23215 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
23216
23217         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
23218         a problem with referring to the wrong buffer.
23219
23220         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
23221
23222         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
23223         font description to gtk_style_new() - otherwise things
23224         don't work without a .gtkrc file.
23225
23226         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
23227         tags table if we create it ourself, too.
23228
23229         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
23230         it was conflicting with XKB modifiers.
23231
23232         * gtk/gtktextview.[ch]: Add simple support for 
23233         GtkIMContext.
23234
23235 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
23236
23237         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
23238         with deletion from last commit.
23239
23240 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
23241
23242         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
23243         in the context from the current locale.
23244         
23245         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
23246         context, not hardcoded value.
23247
23248         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
23249         not logical.
23250
23251 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
23252
23253         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
23254         attributes - that doesn't handle partial-glyph selection
23255         properly. Instead use new pango_layout_line_get_x_ranges()
23256         functionality to draw the selection.
23257
23258         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
23259         now properly handles out-of-range coordinates.
23260
23261         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
23262
23263         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
23264         public.
23265
23266         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
23267         for paragraphs opposite to the base direction of the widget.
23268
23269         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
23270
23271         * gtk/gtktextlayout.c: Don't split segments on marks, since that
23272         causes Arabic words to reshape as you cursor through.
23273
23274         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
23275         cursor position when moving vertically with the arrow keys and
23276         scrolling with page-up/page-down. (Arrow keys save only the X,
23277         scrolling saves both X and Y.)
23278
23279         This means you can line-up / line-down or page-up / page-down
23280         without losing your place, and also that moving vertically
23281         with the cursor keys keeps the same X position, not the same
23282         character count:
23283
23284         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
23285         arrow keys move by display lines, not paragraphs.
23286
23287 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
23288
23289         * gtk/gtklayout.c: Make sure that the bin window is at least
23290         as big as the allocation. (Should we also make sure that the
23291         bin window is big enough to completely cover widget->window?)
23292
23293         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
23294         function to get the onscreen rectangle.
23295
23296         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
23297         for offsets in window coordinates.
23298
23299 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
23300
23301         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
23302         confusion.
23303
23304         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
23305         from the widget direction.
23306
23307         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
23308         Add a "direction" attribute.
23309
23310         * gtk/gtktextview.c: global s/tkxt/text_view/.
23311
23312         * gtk/testtext.c: Added long block of text in Arabic, to test out
23313         the direction attributes. (Some problems with the shaping system
23314         for arabic become obvious - like the fact the cursor splits words
23315         into unjoined pieces.)
23316
23317 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
23318
23319         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
23320
23321         * gtk/gtktextlayout.c: Fix up alignment.
23322
23323         * gtk/testtext.c: Add some tests for centering, wrapping.
23324
23325 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
23326
23327         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
23328         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
23329         If we wrote GTK+-specific layout-render function this could just replace
23330         the draw_layout() operation in the vtable.
23331
23332         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
23333         pango_layout_get_cursor_pos() and use that function.
23334
23335         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
23336         is a non-static symbol.
23337
23338         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
23339         with gtk_text_btree_find_line_by_y()
23340
23341         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
23342         renderer that handles GtkTextAppearance attributes.
23343
23344         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
23345
23346           - Move the values in the style that don't affect geometry into a
23347             GtkTextAppearance structure.
23348           - Change underline to take a PangoUnderline and "font" a string
23349             representation of a font description
23350           - Add a "font_desc" attribute which takes a FontDescription structure.
23351
23352         * gtk/gtktextlayout.[ch]:
23353
23354           - Get rid of the display-line list per each line. Instead, we
23355             generate, on demand, a GtkTextLineDisplay structure which]
23356             contains a PangoLayout * and other necesary information
23357             (offsets, cursor locations) for displaying a paragraph.
23358           - Get rid of the code to wrap lines, create display chunks,
23359             etc. Instead, we just go through a paragraph and convert
23360             it into the necessary inputs to a PangoLayout.
23361           - Implement a new attribute type, GtkTextAttrAppearance. This
23362             holds a GtkTextAppearance, and is used to pass colors, 
23363             stipple, etc, through from the layout to the display without
23364             having to use lots and lots of individual attributes.
23365           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
23366             in terms of PangoLayout functions.
23367         
23368         * gtk/gtktextview.c: 
23369          
23370           - Handle passing the necessary PangoContext to the layout
23371           - Some fixups in painting to deal with the automatic backing store
23372             and offsetting of GTK+-1.4
23373           - Add a style_set handler so that the default style reacts
23374             properly to theme changes.
23375         
23376         * gtk/gtktext?*.[ch]: Random code-style fixes.
23377
23378         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
23379
23380 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
23381
23382         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
23383         in original form preparatory to Pango-ization and gdkimcontext-ization.
23384
23385 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
23386
23387         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
23388         so that we can derive from gtkimcontext in language bindings properly.
23389
23390 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
23391
23392         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
23393         Add a compose table including (almost) all the compose combinations
23394         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
23395         data in the XIM implementation.
23396
23397         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
23398         Moved functions to convert keyvalues from and to unicode here from
23399         the win32 port and made them public.
23400
23401 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
23402
23403         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
23404
23405 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
23406
23407         * gtk/gtkimcontext.[ch]: Base class for new input context system
23408
23409         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
23410         the real input context implementation to be loaded from modules
23411         and switched on the fly.
23412
23413         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
23414         context that just does direct keysymbol => unicode translation.
23415
23416         * gtk/gtkentry.[ch]: Start switching editing over to using
23417         GtkInputContext. (No handling of preedit yet.)
23418
23419 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
23420
23421         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
23422         many substitutions. (klass should not be subsituted.)
23423
23424 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
23425
23426         * configure.in: Add checks for Pango
23427
23428         * configure.in docs/Makefile.am: Add test for sgml2html
23429         and allow 'make dist' without building html, but print out
23430         warnings in that case. (For making snapshots)
23431
23432         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
23433         Add Pango libraries and C flags
23434
23435         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
23436         Add function (gdk_draw_layout) to draw a pango layout.
23437
23438         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
23439         for getting Pango contexts for GDK.
23440
23441         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
23442
23443         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
23444         editing.
23445
23446         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
23447         keysym => unicode translations. More languages can be added
23448         here, but real input-method support is needed.
23449
23450         * docs/Changes-1.4.txt: Added note about entry behavior.
23451         
23452         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
23453         to set the reading direction for a widget and the global direction.
23454         Add test which allows toggling the global direction. Two private
23455         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
23456
23457         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
23458           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
23459
23460         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
23461
23462         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
23463         underlining now handled by Pango.
23464
23465         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
23466         to RCStyle and Style. (Having both this and the old font name and GdkFont 
23467         is temporary.)
23468
23469         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
23470         convenience functions for creating contexts and layouts for widgets.
23471
23472         * gtk/testgtk.c: Enhance label tests with multilingual labels.
23473
23474 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
23475
23476         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
23477         titles to be active, even if they aren't visible.
23478         (gtk_clist_column_titles_passive):  Ditto.
23479
23480 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
23481
23482         * gtkmenu.c:
23483         * gtkmenu.h:
23484         * gtktypeutils.h: Spelling/grammar fixes in comments.
23485
23486 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
23487
23488         * gdk/nanox/*.h: add missing header files.
23489
23490 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
23491
23492         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
23493         send_event to TRUE.
23494         (gtk_drawing_area_size): queue a resize.
23495
23496 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
23497
23498         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
23499         the handlers, also invalidate them. bug nailed down by Karl Nelson
23500         <kenelson@ece.ucdavis.edu>.
23501
23502 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
23503
23504         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
23505         "(nil)" foundries, patch from Grigorios Magklis.
23506
23507         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
23508         on non-available fonts, based on a patch by Grigorios Magklis
23509         <maglis@cs.rochester.edu>.
23510
23511 2000-05-18  Elliot Lee  <sopwith@redhat.com>
23512
23513         * gdk/x11/gdkregion-generic.c: If a region does not have any
23514         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
23515         instead of GDK_OVERLAP_RECTANGLE_IN.
23516
23517 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
23518
23519         * gtk/gtklayout.c (gtk_layout_map): Remove references to
23520         OFFSCREEN, as it is no longer necessary.
23521
23522 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
23523
23524         * gtk/gtkcolorsel.c: Patch from David Santiago
23525         <mrcooger@cyberverse.com> to change things so that the 
23526         indicator of the active palette entry is done independently,
23527         not via the focus, since it should always be visible.
23528
23529 2000-05-17  Tor Lillqvist  <tml@iki.fi>
23530
23531         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
23532         refcount leaks as in the X11 backend.
23533
23534         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
23535         cosmetics.
23536
23537         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
23538         backend. Add _gdk_windowing_window_destroy().
23539
23540         * gtk/gtkcolorsel.c: Include correct backend-specific header.
23541         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
23542         either, but these probably do exist on nanox?)
23543         
23544         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
23545         which isn't necessarily defined by <math.h>.
23546
23547         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
23548         ancestry past GtkObject.
23549
23550         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
23551         from DLL on Win32.
23552
23553         * gtk/gtk.def: Update corresponding to recent changes.
23554
23555         * gtk/makefile.{cygwin,msc}: Updates.
23556
23557 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
23558
23559         * docs/Changes-1.4.txt: A bit of editing.
23560
23561         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
23562         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
23563         to clear the update area for the window, and clear it
23564         when hiding a window.
23565
23566         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
23567         if window destroyed.
23568
23569         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
23570
23571         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
23572         gdk_window_destroy() to the generic code, since there was a lot of 
23573         window-system-independent logic it in. Add a function:
23574         
23575          _gdk_window_destroy() 
23576
23577         to the internal API to destroy a window without unreferencing it.
23578         Add a function:
23579
23580          _gdk_windowing_window_destroy()
23581
23582         That does the windowing-system-dependent part of destroying 
23583         the window.
23584
23585 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
23586
23587         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
23588
23589 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
23590
23591         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
23592         Make gtk_widget_shape_combine_mask() keep a reference count on
23593         the pixmap since it keeps it around.
23594
23595 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
23596
23597         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
23598         leak.
23599
23600         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
23601         leak with event filters.
23602
23603 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
23604
23605         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
23606         signal handlers with the right data arguments. (Fixes
23607         some warnings when a widget was repeatedly set as a drag
23608         destination.)
23609
23610         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
23611         window so we can avoid avoid setting the DND properties on the
23612         toplevel window repeatedly.
23613
23614 2000-05-13  Tor Lillqvist  <tml@iki.fi>
23615
23616         * gdk/win32/gdkwin32.h: Define more message types missing from
23617         mingw headers.
23618
23619         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
23620         call gdk_window_destroy_notify(). It was never called. This
23621         probably meant that the GdkWindow was never freed. Thanks Owen for
23622         noticing (!).
23623
23624         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
23625         window as destroyed before calling DestroyWindow(). DestroyWindow()
23626         causes a call to the window procedure (gdk_WindowProc), which
23627         calls gdk_event_translate(), which calls
23628         gdk_window_destroy_notify(), which gets confused unless the window
23629         is set as destroyed.
23630
23631         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
23632         this function to indicate it's win32 only. Put inside #ifdef
23633         G_ENABLE_DEBUG.
23634
23635         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
23636         debugging function. (gdk_event_translate:) Add a default branch
23637         that uses the above function to print debug messages with all
23638         Windows messages symbolically.
23639
23640         * gdk/win32/gdkprivate-win32.h: Declare it, and
23641         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
23642
23643 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
23644
23645         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
23646         public header file.
23647
23648 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
23649
23650         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
23651
23652         * gtk/gtktext.c: made the adjustments no-construct args, simply
23653         provide default adjustments.
23654         (gtk_text_destroy): release adjustments.
23655
23656         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
23657         adjustment argument non-construct.
23658
23659         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
23660         instead of in finalize.
23661         (gtk_progress_get_text_from_value): 
23662         (gtk_progress_get_current_text): 
23663         (gtk_progress_set_value): 
23664         (gtk_progress_get_percentage_from_value): 
23665         (gtk_progress_get_current_percentage): 
23666         (gtk_progress_set_percentage): 
23667         (gtk_progress_configure): ensure an adjustment is present.
23668
23669 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
23670
23671         * gtk/gtkcolorsel.[hc]:
23672         * gtk/gtkcolorseldialog.[hc]:
23673         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
23674         their parent implementation, use bit fields for boolean values, don't
23675         create unused widgets, usage of glib types, braces go on their own
23676         lines, function argument alignment, #include directives etc. etc. etc..
23677
23678         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
23679
23680 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
23681
23682         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
23683
23684         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
23685         of NULL.
23686
23687         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
23688         to freed data.
23689         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
23690
23691         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
23692         to NULL when the toplevel is getting destroyed.
23693         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
23694         (gtk_menu_destroy): 
23695         (gtk_menu_init): store the information of whether we have to
23696         readd the initial child ref_count during destruction in a new
23697         GtkMenu field needs_destruction_ref_count.
23698
23699         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
23700         here, those reading: learn from my mistake! ;)
23701         in order for set_?adjustment to support a default adjustemnt if
23702         invoked with an adjustment pointer of NULL, the code read (pseudo):
23703         if (v->adjustment) unref (v->adjustment);
23704         if (!adjustment) adjustment = adjustment_new ();
23705         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
23706         now imagine the first unref to actually free the old adjustment and
23707         adjustment_new() creating a new adjustment from the very same memory
23708         portion. here, the latter comparision will unintendedly fail, and
23709         all hell breaks loose.
23710         (gtk_viewport_set_hadjustment):
23711         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
23712         after unreferencing it.
23713
23714         * gtk/gtkcontainer.[hc]: removed toplevel registration
23715         functions: gtk_container_register_toplevel(),
23716         gtk_container_unregister_toplevel() and
23717         gtk_container_get_toplevels() which had wrong semantics
23718         anyways: it didn't reference and copy the list.
23719
23720         * gtk/gtkwindow.c: we take over the container toplevel registration
23721         bussiness now. windows are registered across multiple destructions,
23722         untill they are finalized. the initial implicit reference count
23723         users are holding on windows is removed with the first destruction
23724         though.
23725         (gtk_window_init): ref & sink and set has_user_ref_count, got
23726         rid of gtk_container_register_toplevel() call. add window to
23727         toplevel_list.
23728         (gtk_window_destroy): unref the window if has_user_ref_count
23729         is still set, got rid of call to
23730         gtk_container_unregister_toplevel().
23731         (gtk_window_finalize): remove window from toplevel list.
23732         (gtk_window_list_toplevels): new function to return a newly
23733         created list with referenced toplevels.
23734         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
23735
23736         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
23737         adjustment a non-construct arg.
23738         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
23739         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
23740         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
23741
23742         * gtk/gtkrange.c: added some realized checks.
23743         (gtk_range_destroy): get rid of the h/v adjustments in the
23744         destroy handler instead of finalize. remove timer.
23745         (gtk_range_get_adjustment): demand create adjustment.
23746
23747         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
23748         we simply create them on demand now and get rid of them in
23749         the destroy handler.
23750         (gtk_viewport_destroy): get rid of the h/v adjustments in the
23751         destroy handler instead of finalize.
23752         (gtk_viewport_get_hadjustment): 
23753         (gtk_viewport_get_vadjustment): 
23754         (gtk_viewport_size_allocate): demand create h/v adjustment
23755         if required.
23756
23757         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
23758         gtk_widget_real_destroy () functionality.
23759         (gtk_widget_real_destroy): reinitialize with a new style, instead
23760         of setting widget->style to NULL.
23761
23762 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
23763
23764         * gtk/gtkcalendar.c:
23765         * gtk/gtkbutton.c: ported _get_type() implementation over to
23766         GType, either to preserve memchunks allocation facilities,
23767         or because Gtk+ 1.0 GtkTypeInfo was still being used.
23768
23769         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
23770         over. prepare for ::destroy to be emitted multiple times.
23771         removed reference tracer magic. chain into GObjectClass.shutdown()
23772         to emit ::destroy signal.
23773
23774         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
23775         fundamental.
23776
23777         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
23778         cludge.
23779
23780         * gtk/gtksocket.c:
23781         * gtk/gtkplug.c:
23782         * gtk/gtklayout.c:
23783         * gtk/gtklabel.c:
23784         * gtk/gtkargcollector.c:
23785         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
23786         not being a fundamental anymore, and to work with the new
23787         type system (nuked fundamental type varargs clutter).
23788
23789         * gtk/*.c: install finalize handlers in the GObjectClass
23790         part of the class structure.
23791         changed direct GTK_OBJECT()->klass accesses to
23792         GTK_*_GET_CLASS().
23793         changed direct object_class->type accesses to GTK_CLASS_TYPE().
23794
23795         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
23796         GType. made most of the GTK_*() type macros and Gtk* typedefs
23797         simple wrappers around macros and types provided by GType.
23798         most notably, a significant portion of the old API vanished:
23799         GTK_TYPE_MAKE(),
23800         GTK_TYPE_SEQNO(),
23801         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
23802         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
23803         GTK_TYPE_ARGS,
23804         GTK_TYPE_CALLBACK,
23805         GTK_TYPE_C_CALLBACK,
23806         GTK_TYPE_FOREIGN,
23807         GtkTypeQuery,
23808         gtk_type_query(),
23809         gtk_type_set_varargs_type(),
23810         gtk_type_get_varargs_type(),
23811         gtk_type_check_object_cast(),
23812         gtk_type_check_class_cast(),
23813         gtk_type_describe_tree(),
23814         gtk_type_describe_heritage(),
23815         gtk_type_free(),
23816         gtk_type_children_types(),
23817         gtk_type_set_chunk_alloc(),
23818         gtk_type_register_enum(),
23819         gtk_type_register_flags(),
23820         gtk_type_parent_class().
23821         replacements, where available are described in ../docs/Changes-1.4.txt.
23822         implemented compatibility functions for the remaining API.
23823
23824         * configure.in: depend on glib 1.3.1, use gobject module.
23825
23826 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
23827
23828         * TODO.xml: Various updates to current status.
23829
23830 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
23831
23832         * gtk.m4: Print out version when test succeeds.
23833
23834 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
23835
23836         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
23837         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
23838         
23839         (Original triangle color selector from Simon Budig
23840         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
23841         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
23842         Santiago <mrcooger@cyberverse.com>)
23843
23844         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
23845         out into a separate widget.
23846
23847         * gtk/testgtk.c: Add some checkbuttons for toggling palette
23848         and opacity controls.
23849
23850 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
23851
23852         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
23853         snuck in prematurely.
23854
23855 2000-05-07  Tor Lillqvist  <tml@iki.fi>
23856
23857         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
23858         had deleted a ! operator by mistake, which caused
23859         GDK_SELECTION_CLEAR events never to be generated, which caused
23860         only the first copy to the clipboard from an gtkeditable to
23861         actually cause a copy to the Windows clipboard.
23862
23863 2000-05-06  Tor Lillqvist  <tml@iki.fi>
23864
23865         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
23866         compilation, too. Current mingw gcc distributions include the
23867         necessary headers. Also the necessary IIDs are now in mingw
23868         headers/libraries, and own definitions unnecessary.
23869
23870         More hacking on OLE2 DND, still doesn't work though, and thus
23871         ifdeffed out.
23872
23873         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
23874         here, too.
23875
23876 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
23877
23878         * gdk/nanox/*: nano-X port work in progress.
23879         * gdk/simple.c: simple test for Gdk.
23880         * README.nanox: notes about the port: read this first!
23881         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
23882         with nano-X.
23883
23884 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
23885
23886         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
23887         gdk_window_clear() into common code, implement in terms of
23888         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
23889         not redirected to the backing rectangle.
23890
23891 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
23892
23893         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
23894         EXTRA_DIST. It does not work well when the file that
23895         everything depends on is not in the tarball.
23896
23897 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
23898
23899         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
23900         with recursion where process_updates() is called from
23901         an expose handler. (GtkTextView is highly broken in
23902         doing this, but it should work, so it is a nice test
23903         case.)
23904
23905 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
23906
23907         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
23908         handle the case where updates are queued during processing of
23909         updates.
23910
23911 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
23912
23913         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
23914         window is on gdk_display - use that instead of segfaulting.
23915
23916 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
23917
23918         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
23919         broken and require an empty arg, give it to them.
23920
23921 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
23922
23923         * gtk/gtklabel.h: indentation fixes.
23924
23925 2000-05-02  Tor Lillqvist  <tml@iki.fi>
23926
23927         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
23928         draw too narrow or too low arcs, they seem to fail, at least with
23929         some display drivers.
23930
23931         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
23932
23933         Large changes to the Win32 backend, partially made necessary by
23934         the changes to the backend-independent internal
23935         structures. Attempts to implement similar backing store stuff as
23936         on X11. The current (CVS) version of the Win32 backend is *not* as
23937         stable as it was before the no-flicker branch was merged. A
23938         zipfile with that version is available from
23939         http://www.gimp.org/win32/. That should be use by "production"
23940         code until this CVS version is usable. (But note, the Win32
23941         backend has never been claimed to be "production quality".)
23942
23943         * README.win32: Add the above comment about versions.
23944
23945         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
23946
23947         * gdk/gdk.def: Update.
23948
23949         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
23950         presumably be replaced by some more better mechanism as 1.4 gets
23951         closer to release shape.
23952
23953         * gdk/makefile.{cygwin,msc}: Update.
23954
23955         * gdk/win32/*.c: Correct inclusions of the backend-specific and
23956         internal headers. Change code according to changes in these. Use
23957         gdk_drawable_*, not gdk_window_* where necessary.
23958
23959         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
23960         our old DND.
23961
23962         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
23963         to interpret single characters as UTF-8. Thanks to Hans Breuer.
23964         Use correct function name in warning messages.
23965
23966         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
23967         GSourceFuncs gdk_event_prepare and gdk_event_check.
23968         (gdk_event_get_graphics_expose): Do implement, use
23969         PeekMessage. Thanks to Hans Breuer.
23970         (event_mask_string): Debugging function to print an GdkEventMask.
23971         (gdk_pointer_grab): Use it.
23972
23973         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
23974         (old) book I used claimed was Hangul actually is CJK Unified
23975         Ideographs Extension A. Also, Hangul Syllables were missing.
23976         Improve logging.
23977
23978         * gdk/win32/gdkgc-win32.c: Largish changes.
23979
23980         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
23981         g_win32_getlocale() from GLib, and not setlocale() to get current
23982         locale name.
23983
23984         * gdk/win32/gdkprivate-win32.h
23985         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
23986         gdkwin32.h, similarily as in the X11 backend.
23987
23988         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
23989         assignment was used instead of equals in if test. Thanks to Hans
23990         Breuer.
23991
23992         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
23993         the X11 version.
23994
23995         * gdk/win32/makefile.{cygwin,msc}
23996         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
23997         path to the Win32 headers that works also with the mingw compiler.
23998
23999         * gtk/gtkstyle.c: Include <string.h>.
24000
24001 2000-04-26  Havoc Pennington  <hp@redhat.com>
24002
24003         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
24004         replacing the broken gtk_label_get ()
24005
24006 2000-04-15  Havoc Pennington  <hp@pobox.com>
24007
24008         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
24009         this keeps scanner scripts from getting confused.
24010
24011         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
24012         data, rather than void
24013
24014 2000-04-15  Tor Lillqvist  <tml@iki.fi>
24015
24016         * gtk/gtkclist.c (gtk_clist_motion)
24017         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
24018         with is_hint FALSE, get x and y from the event. They used to be
24019         used uninitialised. The Win32 backend never sends motion events
24020         marked as hints. This for instance fixes the annoying file and
24021         font selector behaviour in the Win32 version.
24022
24023 2000-04-14  Tor Lillqvist  <tml@iki.fi>
24024
24025         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
24026         gtk_private_n_signals variables, they are used by some software,
24027         sigh.
24028
24029         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
24030         installation directory from the Registry, where the installer
24031         should have put it.
24032
24033 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
24034
24035         * gdk/x11/Makefile.am: Fix problem with installation directory for
24036         gdkx.h
24037
24038         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
24039         <mrcooger@cyberverse.com> so that when selecting menus with the
24040         mouse, the first item will not be selected, but when selecting
24041         with an accelerator, or navigating left-right on a menubar with
24042         the menus popped up, the first item will be selected.
24043
24044 2000-04-05  Dan Damian  <dand@dnttm.ro>
24045
24046         * configure.in: Added "ro" to ALL_LINGUAS.
24047
24048 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
24049
24050         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
24051         indentation.
24052
24053         * Makefile.am (EXTRA_DIST): Fix typo.
24054
24055         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
24056         to catch gdkconfig.h
24057
24058         * gtk/gtkitemfactory.c: Added FIXME.
24059
24060 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
24061
24062         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
24063         s/return_if_fail/return_val_if_fail/g and add a return value.
24064
24065 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
24066
24067         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
24068         merge slipup.
24069
24070         * gdk/gdkinput.h: Fix missing line from merge.
24071
24072 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
24073
24074         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
24075         instead of gdkprivate.h.
24076
24077 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
24078
24079         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
24080         parent class to correctly be GtkDialogClass.
24081
24082 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
24083
24084         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
24085         toplevel windows and their immediate children by their parents,
24086         since the size of toplevel windows is out of our immediate
24087         control and we don't get any real benefit from trying to track
24088         this size for clipping.
24089
24090         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
24091         for input_only windows.
24092
24093         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
24094         to fix some hacks and make sure that we don't try to set the
24095         background of input only windows.
24096
24097 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
24098
24099         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
24100         the _really_ internal stuff, and leave gdkprivate.h for the fake private
24101         stuff that we've traditionally exposed.
24102
24103         * gdk/**.c: Use gdkinternals.h where appropriate.
24104
24105         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
24106         not include gdkprivate-x11.h, move all stuff of conceivable public
24107         interest into gdkx.h; keep all really private stuff in
24108         uninstalled header gdkprivate-x11.h.
24109
24110         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
24111         image->image_put on windows through a new function _gdk_window_draw_image()
24112         to allow us to do backing store for images. (Sort of ugly)
24113
24114         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
24115         contexts locally so that we can offset them properly when drawing 
24116         onto backing pixmaps.
24117
24118         * gdk/gdkinput.h: Reindented
24119
24120         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
24121         pixmap or color for the window, so we can properly initialize
24122         our double-buffer pixmaps, and also so that we temporarily set
24123         a background of None while scrolling.
24124
24125         * gdk/gdkregion.h: Revise region boolean operators to have an
24126         interface that is actually convenient - switch from creating new
24127         regions on every op, to "methods" that modify existing regions
24128         (A = A OP B). 3 argument forms which allow dest == src, would also
24129         be possible, but the current interfaces seem to map nicely
24130         onto what needs to be done. (There is quite a lot of region
24131         code in GDK now.)
24132
24133         * gdk/gdkregion.h: Add constructor from rectangle and a copy
24134         operator.
24135
24136         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
24137         gdkpoly-generic.h: Copy region code from Xlib, switch it over
24138         to 32 bit coordinates, modify it to be mostly GTK+ style
24139         and to have interfaces that match gdkregion.h.
24140
24141         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
24142         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
24143         create a backing pixmap and redirect all drawing to
24144         that backing pixmap until a matching gdk_window_end_paint().
24145
24146         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
24147         Create a special drawable class for GtkWindow's that 
24148         redirects the drawing to the backing pixmap as necessary
24149         and then calls the real operations in _gdk_windowing_window_class.
24150
24151         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
24152         Store invalid region for each window. Generate expose events for invalid
24153         region in an idle. This replaces both the expose compression
24154         and the redrawing queuing in GTK+. It is both more efficient and
24155         simpler than either one individually and far more so then the
24156         combination.
24157
24158         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
24159         Emulate 32 bit coordinates for windows with 16 bit coordinates
24160         by offsetting drawing, guffaw scrolling techniques and
24161         mapping/unmapping child windows as necessary.
24162
24163         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
24164         where, when invalid regions are processed, the region is stored,
24165         and if expose events come in that are detectably duplicate
24166         the processed exposes (by comparison of event serial numbers),
24167         the stored region is subtracted out of those exposes.
24168
24169         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
24170         regions newly exposed when scrolling or resizing windows.
24171         This, combined with forcing processesing of queued invalidated
24172         regions, gives nice flicker-free scrolling.
24173
24174         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
24175         invalidated regions after every scroll.
24176
24177         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
24178         emulation in GDK. Its, for all practical purposes just a
24179         GtkViewport/GtkFixed hybrid now.
24180
24181         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
24182         (16-bit) structures as necessary instead of just casting.
24183
24184         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
24185         in terms of the structures from gdkregion-generic.c, using appropriate
24186         offsets from GDK to X11 coordinates. Cache clip mask and
24187         origin and ts origin locally and only flush to the server
24188         when drawing, to avoid constantly setting and resetting these
24189         values when offsetting GC's for scrolling and backing pixmaps.
24190
24191         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
24192
24193         * gtk/gtkcontainer.c: Call process_all_updates at end
24194         of resizing to reduce flicker. (Avoids having redraw
24195         lag arbitrarily behind resize under some circumstances)
24196
24197         * gtk/gtkentry.c: Remove old backing store code, and simply take
24198         advantage of the new backing store capabilities of GDK.
24199
24200         * gtk/gtkmain.c: Simple implementation of widget backing
24201         store - simply push a paint while handling each expose.
24202         (Should really be configurable widget for widget.)
24203         
24204         * gtk/gtkwidget.c: Remove all the old complicated redraw
24205         code, and simply invalidate the GDK windows from
24206         gdk_window_queue_clear(), etc. (Sigh, so much carefully
24207         debugged complexity ... gone to the winds.)
24208
24209         Remove all the code for suppressing expose events while
24210         resizes are pending; this isn't needed since the invalid
24211         areas won't be processed until after the resizes are
24212         processed, since they are in a lower priority idle.
24213
24214 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
24215
24216         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
24217         and height of dest rectangle for non-intersecting rectangles.
24218
24219 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
24220
24221         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
24222         for GdkRectangle.
24223
24224 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
24225
24226         * gdk/gdk{events,image,private,types,window}.h
24227          gdk/x11/gdkinputprivate.h: Change all coordinates
24228          from int16 to int. Also, Change width and height from
24229          unsigned to signed to avoid all the stupid C 
24230          signedness bugs.
24231
24232 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
24233
24234         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
24235         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
24236         Add some more detailed checking.
24237
24238         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
24239         New function to retrieve the depth of a drawable.
24240
24241         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
24242         field, reorder fields to save memory. 
24243
24244 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
24245
24246         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
24247         of the background image instead of scaling the background down to
24248         a line.
24249
24250         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
24251         which temporarily set slider to wrong size.
24252
24253         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
24254         queue_clear().
24255
24256 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
24257
24258 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
24259
24260         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
24261
24262 2000-03-17  Tor Lillqvist  <tml@iki.fi>
24263
24264         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
24265         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
24266
24267         * gdk/win32/gdkfont-win32.c
24268         * gdk/win32/gdkproperty-win32.c
24269         * gdk/win32/gdkselection-win32.c
24270         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
24271         now declared such.
24272
24273 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
24274
24275         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
24276
24277 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
24278
24279         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
24280         is called without trapping X errors.
24281
24282 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
24283
24284         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
24285         way into the fontset lists.
24286
24287 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
24288
24289         * gtk/gtkthemes.h: add extern "C" scope.
24290
24291 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
24292
24293         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
24294         to make appends to the list constant. (gtk-guy-990901-0.patch)
24295
24296 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
24297
24298         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
24299         for the typename hash table.
24300
24301 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
24302
24303         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
24304         to make sure we never divide by zero. 
24305         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
24306
24307 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
24308
24309         * gtk/gtkfontsel.c: Apply patch from
24310         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
24311         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
24312
24313         Also, some cleanups in atom handling.
24314
24315 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
24316
24317         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
24318         not GtkWidget.
24319
24320 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
24321
24322         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
24323         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
24324         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
24325         more guint wrap-around bugs before going to bed.
24326
24327 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
24328
24329         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
24330         guint wrap arounds in allocation.width.
24331
24332         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
24333         process untill we fit the allocation given.
24334
24335 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
24336
24337         * gtk/gtkwidget.c:
24338         (gtk_widget_unrealize): guard widget access with ref/unref
24339         around signal emission.
24340         (gtk_widget_hide): same here, but also check its destroyed
24341         state before queueing a resize.
24342
24343 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
24344
24345         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
24346         of gtk_default_insensitive_bg as insensitive base color.
24347
24348         * gtk/gtktext.c (gtk_text_style_set): set the background color according
24349         to the widget's state.
24350         (gtk_text_realize): same here.
24351         (gtk_text_state_changed): same here.
24352         (draw_bg_rect): compare background color against base[] from
24353         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
24354
24355 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
24356
24357         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
24358         grabs are active, unless a delete event is send to the toplevel
24359         of the currently grab holding widget.
24360
24361 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
24362
24363         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
24364         debugging g_print's.
24365
24366 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
24367
24368         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
24369         ever make the scrolled-window requisition ever depend on the 
24370         visibility state of the scrollbars for the AUTOMATIC policy. 
24371         This breaks the GTK+ requisition model, and causes loops.
24372
24373 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
24374
24375         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
24376         the default font to avoid problems with XFree86-4.0 where the
24377         default charset is iso10646-1, not iso8859-1.
24378
24379 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
24380
24381         * acinclude.m4
24382         * config.guess
24383         * config.sub
24384         * ltconfig
24385         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
24386
24387         * gtk/Makefile.am: minor cosmetic consistency tweak
24388
24389 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
24390
24391         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
24392         the activate_time to 0, so that we handle a quick
24393         press/release press/release properly and don't suppress
24394         the second release. (Red Hat bug #7545)
24395
24396 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
24397
24398         * gtk/gtkctree.c (row_delete):
24399         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
24400         bugs with destruction notifier, *always* update internal
24401         structures *before* calling user code.
24402
24403 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
24404
24405         A few more fixes for bug #5487, #2051, #2677.
24406         * gtk/gtkclist.c : 
24407         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
24408         not GDK_BUTTON_PRESS.
24409         (resync_selection): resync only if selection_mode is
24410         GTK_SELECTION_EXTENDED
24411         * gtk/gtkctree.c (resync_selection): same here
24412
24413 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
24414
24415         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
24416         gdk_drag_get_selection() and gtk_menu_detach().
24417
24418         [ From Jeroen Ruigrok/Asmodai ]
24419
24420 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
24421
24422         * gtk/gtknotebook.c (gtk_notebook_size_request): 
24423         page->tab_label can be NULL.
24424
24425 2000-01-25  Havoc Pennington  <hp@pobox.com>
24426         
24427         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
24428         arg is boolean
24429
24430         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
24431
24432         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
24433
24434         * gdk/gdkproperty.c (gdk_property_get): return boolean
24435
24436         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
24437
24438         * gdk/gdkim.c (gdk_im_ready): return boolean
24439
24440         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
24441
24442         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
24443         glib clash, should fix glib)
24444
24445         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
24446         (gdk_get_show_events): return gboolean, and canonicalize 
24447         to TRUE/FALSE
24448
24449         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
24450         colormap is private
24451         (gdk_colors_alloc): gboolean whether to be contiguous
24452         (gdk_color_equal): return gboolean since we are a predicate
24453         and not a qsort() (this looks semi-wrong due to glib breakage,
24454         IMO glib should be fixed)
24455         
24456         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
24457         (gdk_get_use_xshm): return gboolean
24458         (gdk_pointer_is_grabbed): return gboolean
24459
24460         * gdk/gdk.h: Change prototypes to match all the above changes,
24461         and re-run egtk-format-protos as required.
24462
24463 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
24464
24465         * gtk/gtkctree.c (resync_selection): 
24466         * gtk/gtkclist.c (resync_selection):
24467
24468         Return immediately if clist->drag_pos < 0. This is a workaround
24469         for the corrupt state that the clist gets into when a
24470         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
24471
24472         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
24473         
24474         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
24475         variable from recent commit.
24476
24477 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
24478
24479         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
24480
24481 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
24482
24483         * gtk/Makefile.am: prefix all autogenerated source that get build in
24484         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
24485         in builddir. since we subsequently cd into srcdir for autogeneration,
24486         the paths have to be stripped from the target file names, thusly we
24487         use $(@F) as target names now.
24488         put a comment about configure.in's --disable-rebuilds option,
24489         which can be used for non-writable source directories, for development
24490         setups though, srcdir has to be *writable*.
24491
24492 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
24493
24494         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
24495           Finish the job of allowing event to be NULL.
24496           (Fixes bug #4283, reported by Chris Blizzard)
24497
24498         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
24499           things so that the cursor appears on screen, properly
24500           take into account INNER_BORDER.
24501           (Fixes bug #4754, reported by Antonio Campos)
24502
24503 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
24504
24505         * gtk/gtknotebook.c (gtk_notebook_map): Don't
24506           show the tab_label unless it itself is visible.
24507
24508           gtk/gtknotebook.c (gtk_notebook_size_request):
24509           Do a better job of making sure that the visibility
24510           of the tab label corresponds to whether it should
24511           be mapped or not.
24512
24513 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
24514
24515         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
24516           Use the requisition, not the allocation, since the
24517           allocation has not necessarily been computed yet.
24518           (Pointed out by Eugene Osintsev)
24519
24520 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
24521
24522         * gtk/gtkstyle.c (gtk_style_new): Dont' set
24523           style/base[GTK_STATE_INSENSITIVE] both to
24524           gtk_default_insensitive_bg!
24525           (Bug #2187, reported by Jonathan Blandford)
24526
24527         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
24528           Add Alt_L, Alt_R to list of invalid accelerators.
24529           (Bug #3736, reported by Vlad Harchev)
24530
24531 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
24532
24533         * gtk/gtkfilesel.c (open_ref_dir): Fix several
24534         bugs which occured after an attempt to open 
24535         invalid home directory left cmpl_state->reference_dir == NULL.
24536
24537          - completion on files in home directory didn't work
24538          - completion on an empty string caused  segfault
24539
24540          (Bug #3678, reported by Steve Ratcliffe)
24541
24542         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
24543         cut and paste error that was causing scales to
24544         be incorrectly positioned.
24545         (Bug #2956,
24546          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
24547
24548 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
24549
24550         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
24551         when checking for dcgettext, if we've found we needed
24552         it for dgettext.
24553 +
24554 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
24555
24556         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
24557         queue_clear on NO_WINDOW widgets during a reparent,
24558         since at that point the window and widget heirarchies
24559         are out of sync. This stops crashing in some cases
24560         (the scrolled window reparent test, for instance), and
24561         _probably_ won't cause drawing errors.
24562
24563         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
24564         test do what it was supposed to do and be robust against
24565         window closings, etc. (Bug #2443)
24566
24567 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
24568
24569         * gtk/gtkentry.c: Fix return values on mouse events.
24570         (Bug #2686, Sky <seb_sky@yahoo.com>)
24571
24572         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
24573         (pointed out by George Lebl)
24574
24575         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
24576         (From Ettore Perazzoli  <ettore@helixcode.com>)
24577  
24578 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
24579
24580         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
24581         clicks between rows or outside calender area correctly.
24582         (Patch from Damon Chaplin)
24583
24584         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
24585         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
24586           Call destroy function when overwriting existing data. 
24587           (Pointed out by Damon Chaplin)
24588
24589 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
24590
24591         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
24592           which was causing problems on various systems with Xmu.
24593           This hasn't been needed for a very long time.
24594           (Fixes #1185 3167)
24595
24596 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
24597
24598         * gdk/gdki18n.h: Include <ctype.h> when defining
24599           gdk_isw* in terms of is* as a fallback.
24600           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
24601
24602 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
24603
24604         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
24605           realize the widget when it is size allocated!
24606           (old, old bug)
24607
24608         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
24609           Removed unused call to gdk_window_get_size() that
24610           showed up when the above was fixed.
24611
24612 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
24613
24614         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
24615           fix up widget->window when the widget is a
24616           NO_WINDOW container widget.
24617
24618 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
24619
24620         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
24621           to account for the fact that feof() does _not_ 
24622           return TRUE on errors, and thus avoid infinite loops
24623           when trying to use gdk_pixmap_create_from_xpm()
24624           on unreadable values.
24625
24626 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
24627
24628         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
24629
24630 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
24631
24632         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
24633           gdk_gc_set_dashes to take gint8 instead of gchar to
24634           make it clearer that it is _not_ a NULL terminated string.
24635
24636         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
24637           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
24638           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
24639           arguments.
24640
24641 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
24642
24643         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
24644         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
24645         background size relative to our allocation, guard against small
24646         allocations, we may have not yet been size allocated.
24647
24648 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
24649
24650         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
24651         not just version == 3. We implement all 3 + most of 4 - 
24652         (we don't support matching text/plain;charset=iso-8859-1
24653         to a dest that expects text/plain). We'll still advertise
24654         3 to be safe, but any client implementing version >= 3
24655         must interoperate with 3.
24656         
24657 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
24658
24659         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
24660         background and gc members, add a warning in gtk_tooltips_set_color()
24661         indicating that this function is deprecated.
24662
24663 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
24664
24665         * docs/gtkfaq.sgml: FAQ Update:
24666           - Minor cleanups (Emmanuel, me)
24667           - New questions:
24668                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
24669                 How can I retrieve the text from a GtkMenuItem? (timj)
24670                 How do I validate/limit/filter the input to a GtkEntry? (me)
24671                 Memory does not seem to be released when I free the list
24672                         nodes I've allocated (timj)
24673
24674 2000-03-07  Tor Lillqvist  <tml@iki.fi>
24675
24676         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
24677         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
24678         for which it is no use to call GetLastError onWin9x.
24679         (gdk_other_api_failed) New function, for general error
24680         reporting without calling GetLastError.
24681         (gdk_win32_api_failed) OTOH, this function always calls
24682         GetLastError. (gdk_win32_last_error_string) Remove this function,
24683         GLib has the equivalent now.
24684
24685         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
24686         call them with function name, file name and line number in the
24687         arguments.
24688
24689         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
24690         functions.
24691         
24692         * gtk/gtk.def: Add some missing entry points.
24693
24694         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
24695         gtk_paned_set_gutter_size, which don't exist any longer, as void.
24696         
24697         Fixes by Hans Breuer:
24698
24699         * gdk/makefile.msc: Update for debugging.
24700
24701         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
24702         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
24703         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
24704         in the dash_list.
24705
24706         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
24707         the x11 backend.
24708
24709         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
24710
24711         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
24712
24713 2000-03-04  Tor Lillqvist  <tml@iki.fi>
24714
24715         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
24716         just pixel value of background colour.
24717
24718         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
24719         containing code snippet previously duplicated in a couple of
24720         places.
24721         
24722         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
24723         gdk_colormap_color.
24724
24725         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
24726         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
24727         events for autorepeated Shift, Control and Alt keys. Use
24728         gdk_colormap_color.
24729
24730         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
24731         pointer is inside the window the cursor of which we are setting,
24732         call SetCursor immediately.
24733
24734         * gdk/win32/makefile.cygwin
24735         * gtk/makefile.cygwin: If we don't have the build number stamp
24736         file, use zero.
24737
24738         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
24739         gtk_paned_set_gutter_size as empty.
24740
24741         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
24742         
24743 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
24744
24745         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
24746           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
24747           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
24748           docs/gtk_tut.sgml docs/gtk.texi TODO:
24749
24750           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
24751
24752 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
24753
24754         * gtk/gtkcalendar.c: Implement num_marked_dates,
24755           and don't emit mutiple day_selected signals on
24756           month_prev.
24757
24758 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
24759
24760         * docs/make-todo (lineno): let title and logo be configurable so
24761         that GNOME can use this script too.
24762
24763         * TODO.xml: added logourl and a title
24764
24765 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
24766
24767         * TODO.xml: Added some UI items, and an explanatory
24768         comment at the top of the file.
24769
24770 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
24771
24772         * TODO.xml: some updates, added abunch of new entries.
24773         a note for those fiddeling with this file, when done
24774         with it, invoke:
24775         $ ./docs/make-todo TODO.xml >/dev/null
24776         and correct output errors before comitting changes.
24777
24778 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
24779
24780         * TODO.xml: Added XML-structured TODO file.
24781         * docs/make-todo: python script to turn TODO.xml into
24782           pretty XML output. 
24783
24784 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
24785
24786         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
24787         the function to let it draw the seven dots, instead of the old,
24788         much maligned, method.
24789         (draw_dot): New function to draw a dot.
24790
24791         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
24792         to draw the handle inside the border width as opposed to outside.
24793         Use paint function instead of gdk_draw_point.
24794
24795         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
24796         to draw the handle inside the border width as opposed to outside.
24797         Use paint function instead of gdk_draw_point.
24798
24799         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
24800         Change indenting to be more GTK like.
24801
24802 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
24803
24804         * docs/gtk_tut.sgml: New section on GtkCalendar
24805         * examples/calendar: Update example code
24806
24807 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
24808
24809         * docs/gtkfaq.sgml: FAQ Update
24810
24811 2000-02-19  Anders Carlsson  <andersca@gnu.org>
24812
24813         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
24814         to prevent the scroll event to be propagated upwards.
24815
24816 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
24817
24818         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
24819         OwnerGrabButtonMask from button entries for
24820         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
24821
24822         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
24823         to the event mask (which will result in button/press release
24824         being added to the event mask on Unix) so scrolling works
24825         for layouts in scroll windows.
24826
24827         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
24828
24829         Patch from Anders Carlsson  <andersca@gnu.org> to add
24830         a scroll event.
24831
24832         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
24833         scrolling to the "Test Scrolling" part of testgtk.
24834  
24835         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
24836  
24837         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
24838         it against GDK_SCROLL.
24839  
24840         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
24841         way of mouse wheel scrolling.
24842  
24843         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
24844  
24845         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
24846  
24847         * gtk/gtkmain.c: Removed previous mouse wheel hack.
24848  
24849         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
24850         gdk_event_mask_table.
24851  
24852         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
24853         GdkEventScroll handler.
24854  
24855         * gdk/gdkevents.h: Added GdkEventScroll structure.
24856  
24857 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
24858
24859         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
24860         and Anders Carlsson to change the Paned widgets so that they
24861         can be dragged from anywhere along the length. Also change
24862         the way that this is drawn to make this apparent.
24863
24864         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
24865         from George Lebl to check that option_menu->menu is present
24866         before getting history.
24867
24868 2000-02-14  Tor Lillqvist  <tml@iki.fi>
24869
24870         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
24871         before the assertion for non-NULL segment list.
24872
24873         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
24874         Seems that pattern brushes *must* be 8x8 pixels! At least on my
24875         machine, but it might be display driver dependent. Sigh, so make
24876         sure the stipple is that size. Does Windows suck or what?
24877
24878         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
24879         places.
24880
24881 2000-02-13  Havoc Pennington  <hp@pobox.com>
24882
24883         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
24884         refcount to 1
24885         (gdk_cursor_new): init refcount to 1
24886
24887         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
24888
24889 2000-02-13  Tor Lillqvist  <tml@iki.fi>
24890
24891         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
24892         so that we don't have to do unnecessary settings to the HDC.
24893
24894         * gdk/win32/gdkdrawable-win32.c
24895         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
24896         gdk_gc_predraw.
24897
24898         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
24899         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
24900         GDI paths, call WidenPath to get the outline of the stroken path,
24901         and then fill the outline (with the brush that was built from the
24902         stipple).
24903
24904         * gdk/win32/gdkgc-win32.c: Factor out common code from
24905         _gdk_win32_gc_new and gdk_win32_gc_set_values into
24906         gdk_win32_gc_values_to_win32values. Use correct colour for
24907         SetBkColor() (Until now the code actually used a random colour in
24908         the call to SetBkColor()... but that didn't show up as not many
24909         GDI APIs use the background colour. Pattern (opaque stippled)
24910         brushes do.)
24911
24912         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
24913         gdk_win32_api_failed): New functions for error logging.
24914
24915         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
24916         WIN32_API_FAILED to call them, passing function or file name and
24917         line number.
24918
24919         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
24920
24921         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
24922         GdkColor for foreground and background in GdkGCWin32Data.
24923
24924         * gdk/makefile.cygwin: Link in the resource object separately.
24925
24926         * gdk/win32/rc/gdk.rc
24927         * gtk/gtk.rc (New file)
24928         * gdk/win32/makefile.cygwin
24929         * gtk/makefile.cygwin: Update build number in DLLs automatically,
24930         as in GLib.
24931
24932 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
24933
24934         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
24935         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
24936         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
24937         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
24938         parameters given and cursor->ref_count. coding style fixups.
24939
24940         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
24941         not GtkWidget.
24942         
24943         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
24944         fix up widget macros and add _GET_CLASS() variant.
24945         
24946         * gtk/*.c: some GtkType fixups.
24947
24948 2000-02-09  Tor Lillqvist  <tml@iki.fi>
24949
24950         * gdk/win32/gdkproperty-win32.c
24951         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
24952         were reversed.
24953
24954 2000-02-04  Tor Lillqvist  <tml@iki.fi>
24955
24956         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
24957         g_filename_to_utf8 to convert the font names Windows gives us from
24958         whatever is the default codepage to UTF-8.
24959         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
24960         in the other direction.
24961
24962         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
24963         error in debugging output.
24964
24965 2000-02-02  Tor Lillqvist  <tml@iki.fi>
24966
24967         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
24968         and height parameters to gdk_window_clear_area(). Not minus one.
24969
24970 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
24971
24972         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
24973         checks if the widget passed to gtk_drag_get_data() was not the
24974         dest widget.
24975
24976 2000-02-01  Tor Lillqvist  <tml@iki.fi>
24977
24978         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
24979         g_filename_from_utf8 functions (which were added a moment ago to
24980         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
24981         size buffers.
24982
24983         gtk_file_selection_get_filename returns the filename in the C
24984         runtime encoding. It calls g_filename_from_utf8, but copies the
24985         returned string to a static buffer, which is returned. I think
24986         this is better than returning the result from g_filename_from_utf8
24987         directly, which would mean all apps that use it would have to free
24988         the return value. Or should this function care about this issue at
24989         all? Maybe a new function with clearly defined semantics.
24990
24991         * gtk/gtkfilesel.h: Add comment about
24992         gtk_file_selection_get_filename returning the filename in the C
24993         runtime's encoding.
24994
24995         * README.win32
24996         * gdk/gdk.def
24997         * gdk/makefile.{cygwin,msc}
24998         * gtk/gtk.def: Updates.
24999
25000         * gdk/gdkcursor-win32.c: Initialise refcount.
25001
25002 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
25003
25004         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
25005
25006 2000-01-30  Havoc Pennington  <hp@pobox.com>
25007
25008         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
25009         destroy
25010
25011         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
25012
25013         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
25014         implemented in platform-specific code
25015
25016         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
25017
25018         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
25019         underscore in front
25020
25021         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
25022         put an underscore in front
25023
25024         * gdk/gdkcursor.c: new file, implements
25025         gdk_cursor_ref/gdk_cursor_unref
25026
25027         * gdk/gdkcursor.h: Refcount GdkCursor
25028
25029         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
25030
25031 2000-01-29  Tor Lillqvist  <tml@iki.fi>
25032
25033         * gdk/gdkwindow.h
25034         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
25035
25036 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
25037
25038         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
25039         structures to properly inherit from GtkWidget not GtkBin.
25040
25041 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
25042
25043         * gtk+.spec.in: Added lib/gtk+/include/* to %files
25044         (bug #5178 - Peter Wainright)
25045         
25046         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
25047         so that it will be installed.
25048         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
25049
25050 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
25051
25052         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
25053         for the GtkStyleClass vtable const.
25054
25055         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
25056         take a const string argument like GtkTranslateFunc. This will
25057         require changes in use code.
25058
25059 2000-01-19  Tor Lillqvist  <tml@iki.fi>
25060
25061         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
25062         semantics (to mimic the X11 backend, which just calls XClearArea)
25063         is to check for zero width (and height), and in that case use the
25064         window's width minus x (height minus y). This fixes for instance
25065         some redraw problems with gtkclist, which were easily noticeable
25066         in the gtk file selection widget.
25067
25068         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
25069         windows.
25070
25071 2000-01-13  Tor Lillqvist  <tml@iki.fi>
25072
25073         * configure.in
25074         * gdk/Makefile.am
25075         * gdk/x11/Makefile.am
25076         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
25077         (bug #5177).
25078         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
25079         out later.
25080
25081 2000-01-09  Tor Lillqvist  <tml@iki.fi>
25082
25083         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
25084         WM_MOVE for iconified or invisible windows. This fixes various
25085         problems when minimising windows. Thanks to Bernd Herd.
25086
25087 2000-01-05  Tor Lillqvist  <tml@iki.fi>
25088
25089         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
25090         backend's draw_lines method, not draw_points.
25091
25092 2000-01-02  Tor Lillqvist  <tml@iki.fi>
25093
25094         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
25095         before Owen's reorganisation: Don't have queued_events and
25096         queued_tail statics in this file, but use gdk_queued_events and
25097         gdk_queued_tail. This makes exposure event compression work again.
25098
25099         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
25100         seem to be needed?
25101
25102 1999-12-30  Tor Lillqvist  <tml@iki.fi>
25103
25104         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
25105         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
25106         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
25107         doesn't do anything.
25108
25109         * gdk/gdk.def: Add gdk_xid_table_insert.
25110
25111         * gdk/win32/gdkprivate-win32.h
25112         * gdk/win32/gdkevents-win32.c
25113         * gdk/win32/gdkinput-win32.c
25114         
25115         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
25116         extension_events field in the GdkWindowWin32Data struct. Use only
25117         the extension_events field in GdkWindowPrivate. Previously one was
25118         set, and the other one tested, which broke tablet
25119         functionality. Thanks to Keishi Suenaga for pointing this out.
25120
25121 1999-12-18  Tor Lillqvist  <tml@iki.fi>
25122
25123         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
25124         When handling a single character (text length == 1), don't handle
25125         it as if it was UTF-8.
25126
25127 1999-12-11  Tor Lillqvist  <tml@iki.fi>
25128
25129         * Makefile.am: Distribute README.win32.
25130         
25131         * gdk/Makefile.am
25132         * gdk/win32/Makefile.am: Distribute Win32 files.
25133
25134         * gdk/makefile.msc: New file.
25135
25136         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
25137         after label).
25138
25139         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
25140         gdk_error_code as GDKVAR, as they are referred outside GDK.
25141
25142         * gdk/win32/makefile.msc: Update.
25143
25144         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
25145         tweaks. Check only if at least one of those Unicode subrange bits
25146         we care for is set. If no code page bits are set, guess (wildly)
25147         based on the charset.
25148
25149         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
25150
25151         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
25152         non-NULL.
25153
25154         * gtk/gtkdnd.c
25155         * gtk/gtklayout.c
25156         * gtk/gtkplug.c
25157         * gtk/gtkselection.c
25158         * gtk/gtksocket.c
25159         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
25160         appropriate. There must be a cleaner way to handle this?
25161
25162         * gtk/gtkrc.c: Must include windows.h on Win32.
25163
25164         * gtk/testgtk.c: No need to include gdkx.h.
25165
25166         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
25167
25168 1999-12-07  Tor Lillqvist  <tml@iki.fi>
25169
25170         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
25171         the rbearing is set to the same as the width, but this should be
25172         fixed.
25173
25174 1999-12-06  Tor Lillqvist  <tml@iki.fi>
25175
25176         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
25177         function. If Windows doesn't tell us what Unicode subranges a font
25178         covers, guesstimate based on the codepages it covers. This will
25179         hopefully help those Windows versions or fonts that don't give us
25180         any useful Unicode subrange information with GetTextCharsetInfo.
25181         Call this function in gdk_font_load_internal.
25182
25183         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
25184         minor changes.
25185
25186 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
25187
25188         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
25189         New function, long needed.
25190
25191 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
25192
25193         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
25194         only_if_exists argument of gdk_atom_intern to
25195         bool.
25196
25197 1999-11-25  Tor Lillqvist  <tml@iki.fi>
25198
25199         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
25200         Fix two copy&paste errors.
25201
25202         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
25203         win32 has changed.
25204
25205         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
25206         GdkWin32SingleFont struct.
25207
25208         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
25209         subranges of loaded fonts. Clear font signature first, in case
25210         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
25211         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
25212
25213         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
25214         Unoffset clip region.
25215
25216 1999-11-23  Tor Lillqvist  <tml@iki.fi>
25217
25218         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
25219         event->any.window before calling filter functions.
25220
25221 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
25222
25223         * gtk/gtkgamma.h: Adapt cast macros to standard.
25224
25225 [ Merges from 1.2 ]
25226
25227 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
25228
25229         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
25230         If translation does not include a '/', use entire
25231         translation instead of crashing.
25232
25233 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
25234
25235         * docs/gtk_tut.sgml:
25236         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
25237
25238 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
25239
25240         * gtk/gtkselection.c (gtk_target_list_remove): Use
25241         g_list_remove_link, not g_list_remove.
25242
25243         [ From Geert Bevin <gbevin@thunderstorms.org> ]
25244         
25245 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
25246
25247         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
25248         statement upon unselection (how the heck did that slip in?).
25249
25250 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
25251
25252         * gtk/gtktext.c (gtk_text_freeze): 
25253         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
25254         in frozen state (and aparently crashes). patch provided by Anders
25255         Melchiorsen <and@kampsax.dtu.dk>.
25256
25257 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
25258
25259         * fix insensitive default/focus widget activation,
25260         reported by Matt Goodall <mgg@isotek.co.uk>.
25261
25262         * gtk/gtkwindow.c (gtk_window_key_press_event): 
25263         (gtk_window_activate_default):
25264         (gtk_window_activate_focus):
25265         return handled=FALSE for actiavtion of insensitive default
25266         widgets. return handled=TRUE for activation of insensitive
25267         focus widgets. don't activate in either case.
25268
25269 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
25270
25271         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
25272         and $glib_cflags to match library order and in the
25273         theory that an old version of GLib is more likely to
25274         be in the include directory for X then vice-versa.
25275         (Bug #2776)
25276
25277 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
25278
25279         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
25280         to determine the locale for fontsets, not LC_MESSAGES;
25281         the user may want English messages with a handling
25282         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
25283         will still be broken) (Bug #2891)
25284
25285 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
25286
25287         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
25288
25289 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
25290
25291         * gtk/gtkrc.ko: Changed the Korean default fontset.
25292
25293 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
25294
25295         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
25296         where when scrolling to the left or top double exposes
25297         were done, causing major slowdowns.
25298
25299 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
25300
25301         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
25302         names to lowercase and alphanumeric, before looking
25303         them up.
25304
25305         * gtk/Makefile.am: Install codeset variant gtkrc files
25306         with normalized names.
25307
25308 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
25309
25310         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
25311         popup menus when the menu is already visible, but its parent
25312         is still hidden, (happens after tornoff window got hidden).
25313
25314 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
25315
25316         * gtk/Makefile.am (install-data-local): Fix
25317         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
25318         deleted, causing error messages on install.
25319
25320 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
25321
25322         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
25323         the handle as well, since we now sometimes ignore
25324         exposes on the handle while resizing.
25325
25326 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
25327
25328         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
25329         extra g_free introduced in one of the last one or two 
25330         commits.
25331
25332 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
25333
25334         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
25335         consistent, put each style that a gtkrc.* file creates
25336         in a unique namespace, remove old files before installing.
25337
25338 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
25339
25340         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
25341         gtk_rc_init is called multiple times. (Yes, people who
25342         do that have bugs in their code.)
25343
25344 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
25345
25346         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
25347         Remove it since it's generated by the Makefile anyway
25348
25349 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
25350
25351         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
25352         device->info.axes for core pointer.
25353
25354 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
25355
25356         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
25357         idle_id, to deal with obsolete, broken C libraries.
25358
25359 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
25360
25361         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
25362         allocation->x/y twice!
25363
25364         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
25365         consistent with gtk_vscale_pos_trough().
25366
25367 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
25368
25369         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
25370         be queueing a resize on a toplevel container between
25371         the time we show it and when we map it. So, we need
25372         to test GTK_WIDGET_VISIBLE() for toplevels, and only
25373         use GTK_WIDGET_DRAWABLE() for child windows.
25374
25375 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
25376
25377         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
25378         (fixes bug #2144)
25379
25380 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
25381
25382         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
25383         container DRAWABLE (instead of VISIBLE), so we don't queue
25384         resizes on non-toplevel containers.
25385
25386 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
25387
25388         * gtk/gtkselection.[ch]: Make the data argument
25389         const guchar *.
25390
25391 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
25392
25393         * gtk/gtkwindow.c: Try to behave sensibly if 
25394         the focus widget is the window itself. (Should
25395         we allow this at all?)
25396
25397 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
25398
25399         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
25400         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
25401         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
25402         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
25403         in prototypes and implementations consistent (Tomas Ogren).
25404
25405         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
25406         before the widget is unparented (reported by damon).
25407
25408         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
25409         since we provide unsigned data anyways.
25410
25411 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
25412
25413         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
25414         the call to gtk_tooltips_layout_text() until later.
25415
25416         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
25417         Call gtk_widget_ensure_style() before using the style.
25418
25419 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
25420
25421         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
25422         for old widgets that don't propagate draws to all
25423         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
25424
25425 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
25426
25427         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
25428         for a redraw but just the widget that requested the resize.
25429
25430 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
25431
25432         * gtk/gtkcontainer.c: added new widget level method
25433         gtk_container_set_reallocate_redraws() and a GtkContainer flag
25434         reallocate_redraws : 1 to reflect the setting, exported this through
25435         the argument system as a boolean ::reallocate_redraws.
25436
25437         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
25438         on the widget because the allocation changes, do so as well for
25439         widget->parent if the parent has reallocate_redraws set to TRUE.
25440         with that containers requesting reallocation redraws get automatically
25441         redrawn if their children changed allocation (this unfortunately
25442         affects also other children that didn't change allocation, but we
25443         cannot work around that before 1.3).
25444
25445 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
25446
25447         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
25448         _and_ height are >0 (not _or_).
25449
25450         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
25451         instead of gtk_container_queue_resize(), which is a core gtk internal
25452         function (must have been on crack when i queued that).
25453
25454         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
25455         we can check more reliably if we want to discard expose events.
25456         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
25457         flag.
25458         
25459         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
25460         we simply trust these events. for deciding whether to discard exposes,
25461         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
25462         
25463 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
25464
25465         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
25466         queues of areas that are completely off screen.
25467
25468         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
25469         logic for handleboxes.
25470
25471         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
25472         check on width/height.
25473
25474 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
25475
25476         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
25477         we are fine with using $@ the way we do (if we actually encounter
25478         brokeness with $@ in VPATH builds because of additional path prefixes,
25479         we need to use $(@F) actually).
25480
25481 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
25482
25483         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
25484         short lived bugs, that would allow language bindings to do surgeries
25485         to our guts.
25486
25487 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
25488
25489         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
25490         where comparison was being done against an uninitialized
25491         value causing intermittant results depending on
25492         compiler flags. Also make it clearer that we aren't
25493         ever initializing the child as 0x0 (though this will
25494         be caught in gtk_widget_size_allocate())
25495
25496 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
25497
25498         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
25499         gtk_window_unset_transient_for() call after we do checks
25500         involving the old transient parent.
25501         [ From Lance Capser <lmc@cyberhighway.net> ]
25502
25503 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
25504
25505         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
25506         an empty file.
25507
25508 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
25509
25510         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
25511         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
25512
25513 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
25514
25515         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
25516         `$@' is valid only in the build dir, not after we've done 
25517         `cd $srcdir'.  Also use `test -f' instead of less portable
25518         `test -e'.
25519
25520 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
25521
25522         * gtk/gtktext.c (correct_cache_insert): Rewrite
25523          for simplicity, and hopefully correctness.
25524          (Fixes bug #1322, which was a segfault when
25525           on some insertions with the properties around
25526           the insertion set up just wrong.)
25527
25528         * gtk/gtktext.c (gtk_text_adjustment): When we receive
25529          a "changed" signal, clamp the new value to the adjustment
25530          bounds to avoid segfaulting if someone tries to change
25531          the adjustment to a bogus value. (Bug #1795)
25532
25533 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
25534
25535         * gtk/gtkmain.c: Ignore unexpected destroy notifies
25536         for children, for toplevel windows handle them
25537         like delete_event.
25538
25539         * gtk/gtkplug.c: Add an unrealize handler so that
25540         we unref plug->socket_window when we are done
25541         with it.
25542
25543 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
25544
25545         * gtk/gtktext.c (clear_area): Fix stupid signedness
25546          problem that was causing background to sometimes
25547          be misaligned.
25548
25549 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
25550
25551         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
25552         
25553         * gtk/gtkmenu.c (gtk_menu_position): Make
25554          sure we never position menus with negative x, y,
25555          since gtk_widget_set_uposition() can't handle that.
25556
25557         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
25558          Modify the positioning code a bit so that we always
25559          put the top-left corner onscreen. (This is for
25560          UI reasons, gtk_menu_position() now takes care of
25561          gtk_widet_set_uposition() brokeness.)
25562
25563 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
25564
25565         * gtk/Makefile.am: fixed up things for -jx, x > 1.
25566
25567 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
25568
25569         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
25570           RC style that is passed in. The lack of the ref
25571           before was a bug. If people worked around this
25572           bug, this will introduce a slight memory leak
25573           in their code. The code should typically look like:
25574
25575             rc_style = gtk_rc_style_new ();
25576             [...]
25577             gtk_widget_modify_style (widget, rc_style);
25578             gtk_rc_style_unref (rc_style);
25579
25580         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
25581           the style if it was already set.
25582
25583         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
25584           style if it was set before.
25585
25586 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
25587
25588         * gtk/testgtk.c (main): Add a check to see if we
25589           are being run from the correct directory and
25590           to quit nicely if we are not.
25591
25592         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
25593           static.
25594
25595 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
25596
25597         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
25598
25599         * gtk/gtkwindow.c:
25600         queue resizes unconditionally (gtk_widget_queue_resize will figure
25601         what to do if the window is not realized).
25602         (gtk_window_move_resize): only recenter the window
25603         for GTK_WIN_POS_CENTER_ALWAYS.
25604         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
25605         the same way as GTK_WIN_POS_CENTER.
25606
25607 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
25608
25609         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
25610         with (!(info->last_flags & GDK_HINT_POS)) instead of
25611         (!info->last_flags & GDK_HINT_POS).
25612
25613         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
25614         new_height unconditionally, because we use these values even if
25615         !default_size_changed && !hints_changed.
25616         comented the (default_size_changed || hints_changed) case with
25617         respect to resize rejects from the window manager.
25618
25619         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
25620         in the zvt condition hack, since this includes the window hints, set
25621         the hints after the handling_resize case.
25622
25623         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
25624         window is initially shown with to the geometry.
25625
25626 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
25627
25628         * gtk/gtkwindow.c (gtk_window_move_resize):
25629         s/size_changed/default_size_changed/g so i know what's
25630         really going on (frying brain on smaller flame now).
25631
25632 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
25633
25634         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
25635         we have size_changed upon handling_resize. this is a gross
25636         workaround for the broken zvt widget and should be removed in
25637         1.3 again (search for FIXME).
25638         Owen provided an accurate comment for this:
25639
25640         /* We could be here for two reasons
25641          *  1) We coincidentally got a resize while handling
25642          *     another resize.
25643          *  2) Our computation of size_changed was completely
25644          *     screwed up, probably because one of our children
25645          *     is broken. It's probably a zvt widget.
25646          *
25647          * For 1), we could just go ahead and ask for the
25648          * new size right now, but doing that for 2)
25649          * might well be fighting the user (and can even
25650          * trigger a loop). Since we really don't want to
25651          * do that, we requeue a resize in hopes that
25652          * by the time it gets handled, the child has seen
25653          * the light and is willing to go along with the
25654          * new size. (this happens for the zvt widget, since
25655          * the size_allocate() above will have stored the
25656          * requisition corresponding to the new size in the
25657          * zvt widget)
25658          *
25659          * This doesn't buy us anything for 1), but it shouldn't
25660          * hurt us too badly, since it is what would have
25661          * happened if we had gotten the configure event before
25662          * the new size had been set.
25663          */
25664
25665 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
25666
25667         * gtk/gtkrc.c: deal properly with the fact that RC
25668           style lists may include rc styles more than once.
25669
25670         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
25671           unused static function.
25672
25673         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
25674           stack of directories of RC files currently being
25675           parsed and implicitely add them to pixmap path.
25676           
25677           This fixes a bug where the directory would get
25678           appended then overwritten by pixmap_path declarations.
25679
25680           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
25681
25682         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
25683           theme's exit function. (Patch from Peter Wainwright,
25684           bug #1454)
25685
25686         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
25687           Add a destroy() handler to take care of removing
25688           group for menu item. (Fixes bug #1197)
25689
25690         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
25691           in warning message.
25692
25693 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
25694
25695         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
25696         roundtrip to figure window's width and height, since we know that
25697         anyways from widget->allocation.
25698
25699 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
25700
25701         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
25702           the hints after we request the new size.
25703
25704 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
25705
25706         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
25707           GTK_WIDGET_REALIZED() assertion - we can compute the
25708           hints before we are realized.
25709
25710         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
25711           hint changing so that we have a value of hints_changed
25712           when we decide whether to constrain the window size.
25713
25714         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
25715
25716         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
25717         change back to G_MAXINT.
25718
25719 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
25720
25721         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
25722         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
25723         contain uncluttered values.
25724         (gtk_window_compute_hints): simply assert that window is realized
25725         and that geometry_info is valid, since we rely on this anyways.
25726         (gtk_window_constrain_size): major cleanups to the code.
25727         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
25728         for the base size, instead of the minimums. use 32767 as max width
25729         and height (like in gtkwindow.c) instead of G_MAXINT.
25730
25731 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
25732
25733         * cleaned up the GtkContainer.need_resize flag handling mess, we
25734         only need to force resize requests when we were prematurely
25735         realized, or our widget tree was modified when we were temporarily
25736         hidden. handling these cases directly upon showing the window (i.e.
25737         while the GdkWindow is still unmapped) avoids the need to wait for
25738         a configure event response and therefore makes the GUI more snappier
25739         and avoids blank windows during the roundtrip.
25740
25741         * gtk/gtkwidget.c:
25742         (gtk_widget_hide): 
25743         (gtk_widget_show): don't queue resizes on toplevels, they know how
25744         to deal with matters.
25745
25746         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
25747         flag directly for not visible resize containers and spare us unecessary
25748         signal emissions.
25749
25750         * gtk/gtkwindow.c:
25751         (gtk_window_realize): if we need to enforce premature size allocation,
25752         queue a container resize so we are correctly resized later on.
25753         (gtk_window_init):
25754         (gtk_window_size_request):
25755         don't freak around with the ->need_resize flag,
25756         gtk_container_queue_resize() will care about that.
25757         (gtk_window_show):
25758         handle initial resizing issues here, we can handle matters better in
25759         this place, especially since we know that our GdkWindow is still
25760         unmapped.
25761         (gtk_window_move_resize):
25762         don't care about ->need_resize at all.
25763         handle size changes properly that occoured while we waited for a
25764         configure event.
25765
25766 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
25767
25768         * gtk/gtkwidget.c (gtk_widget_set_uposition):
25769         * gtk/gtkwindow.[hc] (gtk_window_reposition):
25770         Move the hint setting code from gtk_widget_set_uposition
25771         to here; set the hints so that we respect any previously
25772         set geometry hints.
25773
25774         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
25775         change the window hints here or move the window here,
25776         let that happen in gtk_window_move_resize().
25777
25778 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
25779
25780         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
25781         to already queued resizes (and therefore redraws) on a widget, check
25782         its anchestry as well.
25783
25784         * gtk/gtkcontainer.c:
25785         (gtk_container_queue_resize): clear resize widgets for resize
25786         containers before aborting prematurely. this is especially important
25787         for toplevels which may need imemdiate processing or their resize
25788         handler to be queued.
25789         (gtk_container_dequeue_resize_handler): added new internal function for
25790         gtkwindow.c.
25791
25792         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
25793         configure event, take possible changes in window position into account
25794         as well.
25795         if we request a new window size, queue up a resize handler that will
25796         last until the configure event response arrives.
25797         combined the ->need_resize case (initial show) with the general size
25798         (hints) changed case and added even more comments.
25799         if !auto_shrink, only revert to the old allocation if the new size
25800         is smaller than the current allocation.
25801
25802 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
25803
25804         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
25805                            gtk_window_set_geometry_hints
25806                            gtk_window_set_default_size):
25807         When hints are set, queue a resize so that the hints will
25808         be eventually reset on the toplevel.
25809
25810         * gtk/gtkwindow.c (gtk_window_show): Use
25811         gtk_window_compute_default_size(). Clear the need_resize flag
25812         on the initail map so that we don't unnecessarily trigger the
25813         resize code.
25814
25815         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
25816         into separate functions. Compare the hints we are setting
25817         with what we set last time so that we can accurately
25818         tell when we need to reset the hints.
25819
25820         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
25821         function to figure out the size from requisition
25822         and default_size.
25823
25824         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
25825         from fvwm to constrain a size to the geometry hints.
25826
25827         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
25828         to compare two sets of geometry hints.
25829
25830         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
25831         from gtk_window_set_hints(), just compute the hints,
25832         don't set them.
25833
25834         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
25835         code from gtk_window_move_resize() to separate function,
25836         rationalize a bit.
25837
25838 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
25839
25840         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
25841         structure into a new private structure.
25842
25843         * gtkrc.c: Split GtkRcStyle into public/private.
25844         In the private part, add a list of pointers to the
25845         RcStyle lists this RcStyle participates in.
25846
25847         * gtkrc.c: When a RcStyle is free, remove all
25848         lists referencing it from the 
25849         realized_style_ht hash, and free those lists.
25850         
25851         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
25852         gtk_rc_init(), since that adds the default styles
25853         to the list of parsed RC files again.
25854
25855         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
25856         
25857 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
25858
25859         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
25860         checks that ensure that a widget's allocation is at least 1 in width
25861         and height. (GNOME note: this doesn't affect old panel code anymore,
25862         because GtkSocket will request width and height of at least 1 since
25863         Fri Jul 23).
25864
25865         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
25866         allocated yet (happens if the user realizes the window prematurely),
25867         size request and allocate it.
25868         (gtk_window_size_allocate): guard against guint underflows.
25869
25870 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
25871
25872         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
25873         in gtk_built_sources, so gtk.defs gets built prior to all other
25874         sources.
25875
25876 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
25877
25878         * gtk/Makefile.am:
25879         invoke indent on gtkmarshal.*. 
25880         rewrote source generation rules, use COPYING as oldest source tag for
25881         a piggyback rule to generate all sources from (don't touch it ;).
25882         major cleanups, strip spaces on build rules for GNU Make.
25883
25884         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
25885         source and target files from commandline arguments. don't invoke indent.
25886
25887 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
25888
25889         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
25890         notebook after switch to avoid drawing problems.
25891         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
25892         
25893         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
25894         show them instead. 
25895         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
25896
25897 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
25898
25899         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
25900         notebook after switch to avoid drawing problems.
25901         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
25902         
25903         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
25904         show them instead. 
25905         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
25906
25907 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
25908
25909         * gtk/gtkwindow.c:
25910         we use window->need_resize from configure_event now, to indicate that
25911         the gtkwindow should keep its allocation (e.g. because the user resized
25912         the window through window manager handles). resize_count is now reliably
25913         used to figure whether we got the allocation we requested from the
25914         window manager.
25915         configure events get queued as resizes now, the real stuff (size
25916         computation and allocation) now only goes on in gtk_window_move_resize().
25917         GtkWindow's requisition now contains its *real* requisition (like all
25918         other widgets), *not* taking usize into account.
25919         geometry_info->last_{width|height} is now updated from set_hints() only
25920         so it always contains the last hints we set for the window manager.
25921         made some event handlers return TRUE instead of FALSE.
25922         the overall code should be much more straight forward now, and the
25923         significant code portions are accompanied by comments now.
25924         (gtk_window_set_hints):
25925         removed requisition argument and made it
25926         fetch the requisition through gtk_widget_get_child_requisition.
25927         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
25928         does that now.
25929         (gtk_window_show):
25930         ensure that the widget is realized before calling 
25931         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
25932         ensure that we got properly size requested and allocated before
25933         realization.
25934         (gtk_window_configure_event):
25935         ignore plain window moves, or reallocate the widget tree through the
25936         resize queue otherwise.
25937         (gtk_window_move_resize):
25938         mostly rewrote this function to figure window manager hints more
25939         reliably, coalesce window moves and resizes to reduce configure events
25940         and do actuall size allocations.
25941
25942 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
25943
25944         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
25945         that have a resize pending, because a redraw is already queued for them.
25946
25947         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
25948         hack to clear resize_widgets.
25949
25950         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
25951         for resize containers prior to size allocation. (this is also a bit
25952         ugly, but avoids side effects for stopped emissions and is thus more
25953         reliable).
25954         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
25955
25956         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
25957         function from gtk_tooltips_expose, as we connect to ::expose_event
25958         *and* ::draw now.
25959
25960 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
25961
25962         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
25963         checks.
25964         (gtk_target_list_unref): Likewise.
25965
25966         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
25967
25968 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
25969
25970         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
25971         guard against division by zero. (Fixes bug #1339)
25972
25973 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
25974
25975         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
25976         Prevent the trivial leak of information of allowing
25977         word motion when the entry is not visible.
25978
25979 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
25980
25981         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
25982         modality to error dialog as well as confirmation dialogs.
25983         (Bug #1803, reported by Rosanna Wing Sze Yuen)
25984
25985 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
25986
25987         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
25988         tree->view_lines.
25989         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
25990
25991         * gtk/Makefile.am (install-data-local): Solaris apparently
25992         has various troubles with ln -f; use rm first instead.
25993         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
25994
25995 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
25996
25997         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
25998         use `cp' followed by `rm' (the `rm' was already there).
25999
26000 July 30, 1999 Elliot Lee <sopwith@redhat.com>
26001         
26002         * configure.in: Fix autoconf warnings about cross compilation by
26003         trying to provide sane defaults for AC_TRY_RUN.
26004         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
26005         put them into $(srcdir) when generated. Also add a dependency of
26006         gtksignal.h on gtkmarshal.h for -j builds. 
26007         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
26008
26009 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
26010
26011         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
26012         GDK_THREADS_{LEAVE,ENTER} pair.
26013         (From Paul Fisher <pnfisher@redhat.com>)
26014
26015 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
26016
26017         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
26018         width and height are always >0 (owen).
26019
26020 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
26021
26022         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
26023         change that assured that a widget's allocated with and height are
26024         always >1, since this breaks *buggy* panel code. unfortunately this
26025         back-breaks the gimp's color selector.
26026
26027         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
26028         allocation is always >0 in width and height, before sending the
26029         configure event; this is a *gross* hack to get the gimp back to work.
26030         
26031         * marked both cases with TODO-1.3
26032
26033 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
26034
26035         * gtk/gtktext.c: Don't display wrap indicators when
26036         text is not editable and word wrap is on.
26037
26038 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
26039
26040         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
26041         option menus here as they are not derived from menu shell, assure that
26042         the option menu has a menu we can add items to.
26043
26044 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
26045
26046         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
26047         width/height to (gint) before calculations and check against < 0 to
26048         avoid guint wraparounds.
26049
26050 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
26051
26052         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
26053         width and height is never zero. sanity check both dimensions against
26054         32767 and issue a warning if the allocation is greater than that.
26055
26056 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
26057
26058         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
26059         to g_main_pending() as well.
26060
26061 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
26062
26063         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
26064         call to g_main_iteration() - since that will regrab
26065         GTK+ lock to process events.
26066
26067 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
26068
26069         * gtk/gtkwindow.c
26070         - Regularize with the rest of GTK+ by making widget->requisition
26071           not reflect the set_usize()
26072         - Always recompute geometry hints, then check if they
26073           changed before sending them to the X server. The
26074           previous checks for changes would fail in a number
26075           of circumstances. 
26076
26077 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
26078
26079         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
26080
26081 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
26082
26083         * gtk/gtkdnd.c:
26084         - Code cleanups
26085         - Instantaneously update on modifier key presses
26086         - Allow cancellation of the drag with Escape.
26087
26088 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
26089
26090         * gtk/testgtk.c (create_handle_box): Set the policy
26091         to auto_shrink - otherwise the appearance is rather
26092         strange when flipping between horizontal and vertical.
26093
26094 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
26095
26096         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
26097         (gtk_window_set_default_size): don't change a value if it's < 0.
26098         queue a resize.
26099
26100 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
26101
26102         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
26103
26104 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
26105
26106         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
26107         add an extra "/" when concating "/" + filename.
26108         (From Matt Grossman <mattg@oz.net>)
26109
26110 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
26111
26112         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
26113         for fg_gc if we set it for drawing pixmap.
26114
26115 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
26116
26117         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
26118         
26119         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
26120         already set, call old engine's destroy function and
26121         unref the old engine.
26122
26123 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
26124
26125         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
26126
26127 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
26128
26129         * gtk/gtkaccelgroup.h: mark certain functions as internal.
26130
26131 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
26132
26133         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
26134         expand behaviour changed.
26135
26136         * gtk/gtklabel.c (gtk_label_set_pattern):
26137         (gtk_label_set_justify):
26138         (gtk_label_set_line_wrap):
26139         don't bother invoking queue_clear, the reallocation does
26140         that for us, always free_words so the upcoming resize will
26141         relayout the label's contents.
26142
26143 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
26144
26145         * applied argument implementation patches from Elena Devdariani
26146         <elena@cogent.ca>.
26147
26148         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
26149         ::space_style, ::relief
26150         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
26151         * gtk/gtkpreview.c: ::expand
26152         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
26153         * gtk/gtknotebook.c: ::homogeneous
26154         * gtk/gtklabel.c: ::wrap
26155         * gtk/gtklist.c: ::selection_mode
26156         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
26157         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
26158         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
26159         * gtk/gtkclist.c: ::sort_type
26160         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
26161         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
26162
26163 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
26164
26165         * gtk/gtkstyle.c: Removed ill-thought-out part of last
26166         comment.
26167
26168 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
26169
26170         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
26171         counting right when we have to attach a new style
26172         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
26173
26174         * gtk/gtkstyle.c: Documented the refcounting
26175         peculularities of gtk_style_attach.
26176
26177 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
26178
26179         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
26180         window types.
26181
26182         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
26183         of GTK_TOPLEVEL for creating the window.
26184
26185 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
26186
26187         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
26188         the last argument (reported by Per Winkvist).
26189         
26190 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
26191
26192         Fixes for invisible XOR lines (Frank Loemker
26193         <floemker@TechFak.Uni-Bielefeld.DE>)
26194         
26195         * gtk/gtkclist.c (gtk_clist_realize): Always use
26196         a non-zero pixel for GDK_XOR.
26197
26198         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
26199         Use GDK_INVERT instead of GDK_XOR.
26200
26201 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
26202
26203         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
26204         signals if h/voffsets differ from adjustment values.
26205         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
26206
26207 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
26208
26209         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
26210         ::selection-done emissions up to the topmost menu shell.
26211
26212 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
26213
26214         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
26215         the user data on the window before destroying it.
26216
26217         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
26218         unrealize handler to take care of destroying 
26219         notebook->panel properly. 
26220         (Bug #1198 - Morten Welinder <terra@diku.dk>)
26221
26222         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
26223         of g_new and g_realloc to stop memory leak. (Actually,
26224         we could just use g_realloc(), but I'm not 100% sure
26225         that is portable).
26226         (Bug #1196 - Morten Welinder <terra@diku.dk>)
26227
26228 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
26229
26230         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
26231
26232         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
26233         for fontsets.
26234
26235         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
26236         with bin/button confusion.
26237
26238 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
26239
26240         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
26241         and show how preselection of radio items is done.
26242
26243 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
26244
26245         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
26246         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
26247         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
26248         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
26249         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
26250         * gtk/gtktable.c (gtk_table_attach): 
26251         * gtk/gtklist.c (gtk_list_insert_items): 
26252         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
26253         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
26254         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
26255         * gtk/gtkbin.c (gtk_bin_add): 
26256         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
26257         * gtk/gtkfixed.c (gtk_fixed_put): 
26258         * gtk/gtklayout.c (gtk_layout_put):
26259         general fixups to container_add logic. always realize child if
26260         child->parent is realized, only map the child and queue a resize
26261         if child and child->parent are both visible.
26262
26263 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
26264
26265         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
26266         instead of gtk_container_foreach to walk and unrealize children, so
26267         composite children get also unrealized.
26268         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
26269         (gtk_widget_map): assert that the widget is visible (basic constrain).
26270         (gtk_widget_real_map): assert that the widget is realized (basic
26271         constrain).
26272
26273 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
26274
26275         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
26276
26277 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
26278
26279         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
26280         file for iso-8859-2 locales.
26281
26282         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
26283
26284 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
26285
26286         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
26287          (Pointed out by andy@rz.uni-karlsruhe.de and others).
26288          Remove some suspicious and useless lines. 
26289
26290 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
26291
26292         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
26293         width,height = 0, 0 to mean - here to edge of window,
26294         instead of -1, -1, since the former is all we support.
26295
26296 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
26297
26298         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
26299         when removing from quit_functions list.
26300
26301 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
26302
26303         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
26304
26305 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
26306
26307         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
26308          When redrawing characters on non-visible entry, use appropriate
26309          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
26310
26311 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
26312
26313         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
26314         from drag coordinates.
26315         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
26316         use drag_dest_cell.
26317
26318         * gtk/gtktree (drag_dest_cell)
26319         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
26320         (Bug #1129)
26321
26322 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
26323
26324         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
26325         translate_* fields.
26326         (gtk_item_factory_finalize): invoke translate_notify independant from
26327         translate_data.
26328         (gtk_item_factory_set_translate_func): likewise.
26329         (gtk_item_factory_destroy): only remove ifactory pointer from those
26330         widgets that belong to us (stupid me).
26331
26332 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
26333
26334         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
26335         rc_style list when lookup succeeeds.
26336
26337 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
26338
26339         * gtk/gtkctree.c (resync_selection): 
26340         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
26341         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
26342         bug.
26343
26344 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
26345
26346         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
26347         Add some missing GDK_THREADS_ENTER()/LEAVE around
26348         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
26349
26350 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
26351
26352         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
26353         rather than emit_by_name.
26354
26355         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
26356         on the widget across multiple signal emissions.
26357         (gtk_editable_delete_text): same here.
26358         (gtk_editable_class_init): set widget_class->activate_signal after
26359         editable_signals[ACTIVATE] has been created.
26360
26361 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
26362
26363         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
26364         position here prematurely -- we might not have the
26365         right ->min_position and ->max_position yet.
26366
26367 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
26368
26369         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
26370         Add error traps so if the other end of the connection
26371         dies, we survive.
26372
26373         * gtk/gtkselection.c (gtk_selection_notify): Clean
26374         up properly when selection property retrieval fails.
26375         
26376         * gtk/gtkselection.c (gtk_selection_request): Correctly
26377         reject SelectionRequest notifies where the handler
26378         returns no data.
26379
26380 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
26381
26382         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
26383         when we've previously highlighted.
26384
26385         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
26386         emit two "drag_leave" signals for Motif drops.
26387
26388         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
26389         back the correct status messages when dropping from
26390         Motif onto a proxy window that is rejecting the
26391         drop.
26392
26393 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
26394
26395         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
26396         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
26397         to compare two argument values. added gtk_arg_to_valueloc() to set a
26398         variable from an arg through its location (pointer).
26399
26400         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
26401         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
26402         as gfloat*, uchars are collected as guchar*, ints are collected as
26403         gint*, etc...
26404
26405 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
26406
26407         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
26408         Include <string.h> instead of <strings.h>.
26409
26410         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
26411         (actually, a lot more duplicate includes occur if
26412          you trace through the sequence of #include's)
26413         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
26414         
26415 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
26416
26417         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
26418         gtk-a-higuti-990322-[0-3]
26419
26420         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
26421         that was causing -DX_LOCALE not to work.
26422
26423         * gtk/gtkrc.c (gtk_rc_init):
26424         X_LOCALE will never have LC_MESSAGES defined
26425
26426 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
26427
26428         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
26429         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
26430
26431         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
26432         left/right as well (gtk-michael-980726-0.patch.gz).
26433
26434         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
26435         for pointer values, use gchar instead of char. fixed uline allocation
26436         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
26437         chunks instead of G_ALLOC_ONLY.
26438         (gtk_label_size_request): always alter requisition as passed and leave
26439         widget->requisition alone.
26440         (gtk_label_set_text): allow NULL strings.
26441         (gtk_label_new): likewise.
26442
26443 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
26444
26445         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
26446
26447 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
26448
26449         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
26450         *and* mapped (i.e. drawable).
26451         (gtk_bin_expose): only send exposes to drawable children.
26452
26453         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
26454         (gtk_box_expose): only send exposes to drawable children.
26455
26456         * gtk/gtkhscale.c (gtk_hscale_draw): 
26457         * gtk/gtkvscale.c (gtk_vscale_draw):
26458         hm, this is an ugly one. we first compute the size of our trough area
26459         here (window relative) and then check intersection with the draw_area
26460         which is parent relative because we're a NO_WINDOW widget, so we need
26461         to offset the trough area by allocation.x and allocation.y before the
26462         check. (this must not be done for the background area though, since
26463         that's already computed parent relative).
26464
26465 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
26466
26467         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
26468         unrealize title buttons.
26469
26470 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
26471
26472         * gtk/gtkclist.c (gtk_clist_column_title_passive)
26473         (gtk_clist_column_title_active): 
26474         only connect/disconnect to GtkWidgetClass::event to block mouse events.
26475
26476         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
26477         zero initialize event, removed superfluous gdk_window_get_pointer call
26478
26479         * gtk/gtklist.c (gtk_list_vertical_timeout)
26480         (gtk_list_horizontal_timeout): removed superfluous
26481         gdk_window_get_pointer call
26482
26483 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
26484
26485         * plugging problems reported by "Bruce Mitchener, Jr."
26486         <bruce@puremagic.com> due to a purify session.
26487
26488         * gtk/gtkstyle.c:
26489         (gtk_style_ref): 
26490         (gtk_style_unref): assert ref_count to be > 0.
26491
26492         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
26493         the requisition.
26494         (gtk_clist_set_shift): likewise.
26495
26496         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
26497         adjustments.
26498
26499         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
26500         event before sending it and set send_event to TRUE (which needs to
26501         be done for *all* synthesized events).
26502         (gtk_list_vertical_timeout): likewise.
26503
26504         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
26505         leaks.
26506
26507         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
26508         to TRUE when synthesizing events.
26509
26510 [ *** end of merges from 1.2 *** ]      
26511         
26512 1999-11-21  Tor Lillqvist  <tml@iki.fi>
26513
26514         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
26515         (or copied from gdkconfig.h.win32 on Win32, sigh).
26516
26517         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
26518
26519         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
26520
26521         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
26522
26523         * gdk/gdkconfig.h.win32: New file.
26524
26525         * gdk/win32/makefile.cygwin: Build just a static archive here.
26526
26527         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
26528         for the DLL from the static archive built above.
26529
26530         * gdk/gdk.def: Moved here from the win32 subdirectory.
26531
26532         * gdk/win32/*: Adapt for the changed private struct organisation.
26533
26534         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
26535
26536 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
26537
26538         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
26539         for wheel mice (buttons 4 and 5).
26540
26541 1999-11-18  Tor Lillqvist  <tml@iki.fi>
26542
26543         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
26544         drawables use just the pixel field in the foreground and
26545         background GdkColor of the GdkGC.
26546
26547         gdk_gc_set_{fore,back}ground() are called in the GIMP with
26548         GdkColors containing uninitialized (red,green,blue) fields, and
26549         just the pixel field filled in, and furthermore in the
26550         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
26551         It thus turns out that we really don't need to have the full
26552         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
26553         it later to have just the pixel values.
26554
26555 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
26556
26557         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
26558
26559 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
26560
26561         * docs/gtkfaq.sgml: threads example from Erik Mouw.
26562         New question on GtkLabel background colors.
26563
26564         * docs/gtk_tut.sgml:
26565           - Correct the example code callback
26566             function definitions.
26567           - Update the gtkdial example code, from Frans van Schaik.
26568           - Update setselection.c to current API.
26569
26570         * examples/Makefile examples/*/*.c: Update to code
26571         listed in tutorial.
26572
26573 1999-11-10  Tor Lillqvist  <tml@iki.fi>
26574
26575         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
26576         subrange table (from the "Developing International Software for
26577         WIndows 95 and Windows NT" book) was missing the Hangul syllable
26578         block... Get the loaded font's charset correctly.
26579
26580         (Note that this, and the other *-win32.c files, still really are
26581         the old ones, the win32 subdirectory is not ready for compilation
26582         yet after the reorg.)
26583
26584 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
26585
26586         * gtk/gtkclist.c: Fix off-by-one bug in parameter
26587         check.
26588
26589 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
26590
26591         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
26592         on results of XQueryDeviceState().
26593
26594 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
26595
26596         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
26597         we need to accesss only ->children. We need an accessor
26598         for the children.
26599
26600         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
26601         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
26602         to get rid of gdkx.h include.
26603         
26604         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
26605         and random references to 'None'.
26606
26607         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
26608         Get rid of unused #include <gdk/gdkx.h>
26609
26610         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
26611         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
26612         gdkconfig.h.
26613
26614 1999-11-08  Tor Lillqvist  <tml@iki.fi>
26615
26616         * gdk/win32/gdkdraw.c
26617         * gdk/win32/gdkfont.c
26618         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
26619         following yesterday's changes. (Unrelated to Owen's reorg.)
26620
26621 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
26622
26623         * gdk/x11/gdkinput-gxi.c: Add missing include,
26624           fix GdkWindowPrivate => GdkDrawablePrivate.
26625
26626         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
26627
26628         * gdk/x11/Makefile.am (xinput_sources): Add missing
26629         backslash to fix building with --with-xinput=none
26630
26631 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
26632
26633         Move all X specific code into the x11/ directory.
26634         Aside from shuffling things around, did the following:
26635
26636        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
26637          gdk_arg_context_* - a simple argument parsing system
26638          in the style of popt.
26639
26640        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
26641          gdk/x11/gdkprivate-x11.h:
26642          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
26643          add ->klass and ->klass_data fields. The klass_data
26644          field points to an auxilliary structure that is
26645          windowing system dependent.
26646
26647        * gdk/gdkfont.c: Make most of the measurement functions
26648          simply wrappers around gdk_text_extents().
26649
26650        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
26651          _gdk_font_strlen() function that hides the weird
26652          behavior in gtk+-1.[02] where a string is interpreted
26653          differently for 8-bit and 16-bit fonts.
26654
26655        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
26656          to store common code for synthesizing double/triple
26657          press events.
26658         
26659        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
26660          Make all the function that modify an existing GC
26661          simply wrappers around gdk_gc_set_values().
26662          
26663        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
26664          for throwing out later.
26665
26666        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
26667          GdkImagePrivate and GdkColormapPrivate to have a
26668          windowing system dependent part (GdkFontPrivateX etc.)
26669          that "derives" from the system-independent part.
26670
26671        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
26672          Got rid of the included-source-files for XInput in
26673          favor of automake conditionals. (Which didn't exist
26674          when XInput support was originally added.)
26675
26676        * gdk/gdkrgb.c: Remove the visual id from the debugging
26677          statements since that is X11 specific; print out
26678          type/depth info instead.
26679          
26680
26681 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
26682
26683         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
26684         loading duplicates of hashed fonts.
26685
26686         * gdk/gdk.c (gdk_keysym_convert_case): rename
26687         gdk_XConvertCase to gdk_keysym_convert_case, allow
26688         results to be NULL in the GTK+ style.
26689
26690         * gdk/gdkcompat.h: Started compatibility header
26691         for renames.
26692
26693 1999-11-07  Tor Lillqvist  <tml@iki.fi>
26694
26695         * gdk/win32/gdkprivate.h: New font private structures, related to
26696         fontsets.
26697
26698         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
26699         gdk_font_list_free(). On X11, will just be wrappers to
26700         XListFonts() and XFreeFontNames(). On Win32, the code previously
26701         in gtkfontsel.c is now here.
26702
26703         New function gdk_font_xlfd_create(). On X11 will get the FONT
26704         property of the font (for GDK_FONT_FONTs), or call
26705         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
26706         builds a XLFD style name from the font information in the LOGFONT
26707         struct(s).
26708
26709         New function gdk_font_xlfd_free(), which correspondingly frees the
26710         string returned by gdk_font_xlfd_create().
26711
26712         Implement fontsets on Win32. Add a function that iterates over a
26713         wide char string and calls a callback function for each substring
26714         of wide chars from the same Unicode subrange (and thus probably
26715         available in the same real font).
26716
26717         Improve the XLFD emulation a bit.
26718
26719         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
26720
26721         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
26722         Beta3, WM_IME_CHAR messages don't seem to contain the composed
26723         multi-byte char as with the Active IMM on Win9x. Oh well, handle
26724         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
26725         ImmGetCompositionStringW() to get the composed Unicode chars.
26726
26727         * gdk/win32/gdkgc.c
26728         * gdk/win32/gdkdraw.c: Changes needed because of the font private
26729         struct changes.
26730
26731         * gdk/win32/gdk.def: Add the new functions.
26732
26733 1999-11-04  Tor Lillqvist  <tml@iki.fi>
26734
26735         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
26736         get the Platform SDK to get <dimm.h>.
26737
26738         * gdk/win32/gdkevents.c: More event handling fixes and
26739         simplification. Never generate motion events with is_hint true. We
26740         used to do that on bogus grounds earlier. Windows sends
26741         WM_MOUSEMOVE messages on button events even if the mouse hasn't
26742         moved, ignore these.
26743
26744         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
26745
26746         * gdk/win32/gdkglobals.c
26747         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
26748         the TrackMouseEvent function, and use it.
26749
26750         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
26751         char before calling WideCharToMultiByte in order to get a string
26752         for the window title.
26753
26754         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
26755
26756         * gdk/win32/gdk.def: Remove obsolete functions.
26757
26758         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
26759         /nodefaultlib and /defaultlib switches.
26760
26761         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
26762
26763 1999-10-31  Tor Lillqvist  <tml@iki.fi>
26764
26765         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
26766         EuroSign).
26767
26768         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
26769         same type as GdkWChar, especially on Win32.
26770
26771         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
26772
26773         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
26774         before passing to Windows GDI for drawing etc. Convert to the
26775         system default codepage before passing to Windows as window
26776         titles.
26777
26778         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
26779         support changing input locale on the fly.
26780
26781         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
26782         on-the-fly changes. Convert incoming characters from the current
26783         codepage to Unicode (and then to a UTF-8 multi-byte string) based
26784         on the current input language. Use keysym<->Unicode mapping tables
26785         and functions borrowed from xterm sources.
26786
26787         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
26788         editions of Win9x, use the ActiveX-based Active IMM (Input Method
26789         Manager) if available. IMEs and the Active IMM are available under
26790         the disguise of Chinese, Korean and Japanese support for IE and
26791         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
26792         support is present in all editions (as long as you install it).
26793
26794         Call DispatchMessage from gdk_events_queue() (and thus
26795         gdk_WindowProc()), instead of duplicating the code in
26796         gdk_WindowProc().
26797
26798         Reworked the grab handling and propagation code, factored out
26799         duplicated code snippets into separate functions. Other cleanups,
26800         too.
26801
26802         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
26803         the <dimm.h> header describing the Active IMM.
26804
26805         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
26806         just do the same as for "single" fonts.
26807
26808         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
26809         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
26810         the new keysyms from gdkkeysyms.h.
26811
26812         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
26813         fontset, so that gtkentry uses wide characters.
26814
26815         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
26816         GTk+'s system directory "gtk+", not "gtk".
26817
26818 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
26819
26820         * docs/gtkfaq.sgml: FAQ update
26821
26822 1999-10-21  Tor Lillqvist  <tml@iki.fi>
26823
26824         * gdk/win32/gdkprivate.h: Add more font private data.
26825
26826         * gdk/win32/gdkfont.c
26827         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
26828         fonts and strings. Now works much better. You still have to
26829         have a correct font selected, though. No fontset emulation yet.
26830
26831 1999-10-19  Tor Lillqvist  <tml@iki.fi>
26832
26833         * gtk/maketypes.awk: Use G_OS_WIN32.
26834
26835         * gtk/gtk.def: Add some missing entry points. Also some non-public
26836         ones, but PyGTK porter claims to need them.
26837
26838         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
26839         built-in type generation.
26840
26841 1999-10-14  Tor Lillqvist  <tml@iki.fi>
26842
26843         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
26844         GDK_FONT_FONT fonts (which is all we have for now, we don't
26845         emulate fontsets). The X11 version uses plain XDrawString in that
26846         case, too. The string passed to gdk_draw_text_wc seems to be in
26847         fact (at least, when used by gtkentry and gtktext) either in a
26848         single-byte charset, or a DBCS. Not Unicode.
26849
26850         This fixes the problem in gtkfontsel, where even if you had
26851         selected a font with a non-Latin1 charset (windows-greek, for
26852         instance), the preview still used Latin-1 glyphs.
26853
26854         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
26855         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
26856         (gdk_font_load): Recognize the demibold etc weights, even if we
26857         don't have the corresponding constants in the headers.
26858         (gdk_font_hash_insert): Use same hash mechanism as in the X11
26859         version. Should save font resources a bit, when we don't have
26860         multiple HFONTs for the same font.
26861
26862         * gdk/win32/gdkprivate.h: Add the names field as in the X11
26863         version.
26864
26865 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
26866
26867         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
26868         X values
26869
26870 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
26871
26872         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
26873         layout support (as mentioned on
26874         http://www.jcinteractive.com/gnome-ui/software/widgets/)
26875
26876 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
26877
26878         * gtk/fnmatch.c
26879         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
26880
26881 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
26882
26883         * configure.in (ALL_LINGUAS): Added Galician (gl)
26884
26885 1999-10-05  Tor Lillqvist  <tml@iki.fi>
26886
26887         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
26888
26889         * gdk/win32/gdkcompat.c: New file, actually provide an
26890         implementation for the deprecated functions. (Just temporarily.)
26891
26892         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
26893
26894         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
26895
26896         * gdk/win32/gdk.def gtk/gtk.def: Updates.
26897
26898 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
26899
26900         * configure.in: Added "uk" to ALL_LINGUAS.
26901         
26902 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
26903
26904         * configure.in: correct checking for BeOS check
26905
26906         * gdk/gdktypes.h
26907         * gtk/fnmatch.c
26908         * gtk/gtkfilesel.c
26909         * gtk/gtkitemfactory.c
26910         * gtk/gtkmain.[ch]
26911         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
26912
26913 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
26914
26915         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
26916         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
26917         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
26918         by Bulgarian). 
26919
26920 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
26921
26922         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
26923         Fix a reference to window_private->destroyed.   
26924
26925         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
26926         (ugly) setting of an internal GdkWindow member to use
26927         a _slightly_ cleaner macro.
26928
26929         * gdk/gdkprivate.h: Split GdkWindowPrivate into
26930         GdkDrawablePrivate and GdkWindowPrivate.
26931         Add extra macros for accessing GDK_DRAWABLE_ components.
26932
26933         * *.[ch]: Massive adjustments for the above, use the
26934         new macros in a lot of places.
26935
26936 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
26937
26938         * gdk/gdktypes.h: Make GdkDrawable the base type,
26939         not GdkWindow.
26940
26941 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
26942
26943         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
26944
26945 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
26946
26947         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
26948
26949 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
26950
26951         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
26952         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
26953
26954         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
26955
26956         * docs/gtk-config.1: Now autogenerated.
26957         * docs/Changes-1.4.txt: started
26958         
26959 1999-10-03  Tor Lillqvist  <tml@iki.fi>
26960
26961         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
26962         to #ifdef also here.
26963
26964         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
26965         Owen did to the X11 backend.
26966
26967         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
26968         ScrollWindowEx when blitting inside a window, it can't be correct
26969         in the general case.
26970
26971         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
26972         WM_GETMINMAXINFO is easier.
26973
26974         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
26975         depth equal to the bitspixel value, not the visual's depth.
26976
26977         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
26978         to 24 even if the bitspixel value is 32.
26979
26980         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
26981         need to check for depth==32 when bpp==32, depth will always be 24.
26982
26983 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
26984
26985         * docs/Changes-1.4.txt: Started
26986         
26987         * gtk/Makefile.am (gdk_headers): Include all the new headers.
26988
26989         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
26990         
26991         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
26992         into C file.
26993         
26994         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
26995         header to gdkinputprivate.h.
26996
26997         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
26998         unused since before 1.2.
26999
27000 1999-09-30  Tor Lillqvist  <tml@iki.fi>
27001
27002         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
27003         expand possible hex escapes in the font family (put there by
27004         logfont_to_xlfd if the font name isn't a legal XLFD font family,
27005         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
27006         On Win32, add hex escapes here, too.
27007
27008 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
27009
27010         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
27011         to #ifdef GDK_WINDOWING_X11.
27012
27013 [ Merges from gtk-1-2 ]
27014
27015 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
27016
27017         * configure.in: fixed "GNU Make" check to pass with new make version
27018         3.77.95.
27019
27020 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
27021
27022         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
27023         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
27024         AM_PATH_GTK() macros don't get confused by the -pre1.
27025
27026 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
27027
27028         * configure.in (REBUILD): Change check for perl5
27029           to check explicitely for v >= 5.002. (5.001
27030           does not work with our scripts.)
27031
27032 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
27033
27034         * configure.in: evaluate $PERL for the perl version check. added
27035         --disable-rebuilds to give the user an option to completely disable
27036         any source autogeneration rules.
27037
27038 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
27039
27040         * configure.in: evaluate $ac_make when checking for GNU Make.
27041
27042 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
27043
27044         * docs/Makefile.am: added generation.txt.
27045
27046         * Makefile.am: require automake 1.4, build README from README.in and
27047         INSTALL from INSTALL.in in dist-hook.
27048         
27049         * README.in:
27050         * INSTALL.in: new files to autogenerate README and INSTALL from.
27051
27052         * configure.in: figure whether we have GNU Make
27053
27054         * docs/generation.txt: minor additions/corrections.
27055
27056 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
27057
27058         * docs/gtkfaq.sgml: FAQ Update
27059
27060 July 30, 1999 Elliot Lee <sopwith@redhat.com>
27061         
27062         * configure.in: Fix autoconf warnings about cross compilation by
27063         trying to provide sane defaults for AC_TRY_RUN.
27064
27065 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
27066
27067         * ltconfig
27068         * ltmain.sh: upgrade to libtool 1.3.3
27069
27070 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
27071
27072         * INSTALL: Indicate that the --with-glib= configure
27073         time flag is unsupported.
27074
27075 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
27076
27077         * docs/generation.txt: Added a file that gives
27078         documenation about the autogeneration process for
27079         various autogenerated files.
27080         
27081 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
27082
27083         * configure.in (LIBS): Look for libgmodule in the
27084         right location.
27085
27086 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
27087
27088         * docs/gtk_tut.sgml: Removed references to
27089         code examples in my directory on gtk.org as
27090         they should all be in the tutorial now.
27091
27092         * docs/gtk_tut.sgml: Added sources for dial-test
27093         and scribble-xinput programs that were previously
27094         missing.
27095
27096 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
27097
27098         * TODO: Added entry about menu keyboard navigation, removed
27099         some finished items.
27100
27101 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
27102
27103         * acinclude.m4: Standardize on func_dgettext
27104         not func_gettext, so that the checks for dgettext
27105         actually are paid attention to.
27106
27107 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
27108
27109         * configure.in (LIBS): Add $INTLLIBS into $LIBS
27110         directly, rather than repeating the checks for
27111         gettext.
27112
27113         * INSTALL: Added information about gettext and
27114         NLS support.
27115
27116         * acinclude.m4 (LIBM): Check for dgettext, not
27117         just gettext. This should hopefully fix things wrt
27118         systems with old versions of GNU gettext installed.
27119
27120 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
27121
27122         * configure.in (LIBS): Look for libgmodule in the
27123         right location.
27124
27125 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
27126
27127         * autogen.sh: add --enable-maintainer-mode
27128
27129         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
27130
27131 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
27132
27133         * docs/gtk-config.1.in:
27134           docs/Makefile.am:
27135           configure.in: gtk-config is now generated.
27136
27137         * docs/gtk-config.1: Removed, now generated.
27138
27139 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
27140
27141         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
27142         handle CreateNotify itself, still put out a debuging message for
27143         --gdk-debug=events. made the ReparentNotify debugging message more
27144         verbose.
27145         wrap xcoords translation for ConfigureEvents into an error trap,
27146         a destroy event may already be pending, and in that case, the
27147         actuall coordinate values are not at all critical.
27148
27149 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
27150
27151         * gdk/gdkcc.c: Stop leaking the color_hash all over
27152         the place. Simplify and improve the logic.
27153
27154 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
27155
27156         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
27157         for prototypes and function implementations consistent (reported
27158         by Tomas Ogren).
27159
27160 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
27161
27162         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
27163         send_event set in debugging output.
27164         (gdk_compress_exposures): default initialize the event so we don't
27165         operate on bogus values (namely send_event).
27166
27167 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
27168
27169         * gdk/gdkwindow.c: When we receive an unexpected
27170         destroy notify on one of our windows, don't just
27171         warn about it, also mark our windows as destroyed.
27172
27173 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
27174
27175         * gdk/gdkfont.c (gdk_font_hash_insert): Add
27176           name => font and name => fontset hashes. The 
27177           name => fontset hash is a _big_ win since we
27178           weren't previously caching fontsets at all and loading
27179           fontsets is expensive. The name => font hash
27180           is less of a win, but it does save us from doing
27181           repeated XQueryFont calls on the same font.
27182
27183         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
27184           list so we can remove font/fontset from hash.
27185
27186 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
27187
27188         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
27189           and slightly confusing test. [ XInternAtom (,,TRUE)
27190           will never return None ].
27191
27192 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
27193
27194         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
27195           gdk/gdkwindow.c (gdk_window_set_hints):
27196
27197         Don't omit setting the properties if flags == 0 -
27198         there may be an existing set of properties there
27199         already. (Very old bug. Would it be better to
27200         delete the property instead?)
27201
27202         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
27203           spelling error in comment.
27204
27205 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
27206
27207         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
27208           to avoid stomping over gdk_error_warnings.
27209
27210         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
27211           as (bits_per_pixel + 7) / 8. This gives the same
27212           result as before for multiples of 8, but actually
27213           a "reasonable" value for 1bit or 4bit displays.
27214
27215 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
27216
27217         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
27218         GNU Make.
27219
27220 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
27221
27222         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
27223         discarding configure events.
27224
27225 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
27226
27227         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
27228         refcount is greater than zero.
27229
27230         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
27231
27232         * gdk/gdkfont.c (gdk_font_unref): Likewise.
27233
27234         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
27235
27236         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
27237
27238 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
27239
27240         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
27241         that format 32 => sizeof(item) == 4. It really is
27242         sizeof(long).
27243
27244 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
27245
27246         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
27247         core dump at all on X IO errors, only core dump
27248         if --enable-debug for X errors.
27249
27250 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
27251
27252         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
27253         unknown window:" message. disabled ConfigureNotify discarding code,
27254         because it led to events being processed out of order.
27255
27256 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
27257
27258         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
27259
27260         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
27261         we export this function, supress error warnings and don't reset the
27262         error code in the first half of this function.
27263
27264         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
27265         code (instead of just -1) so gdk_error_trap_pop() reveals something
27266         actually informative about the error that happened.
27267
27268         * gdk/*.c:
27269         don't rely on gdk_error_code being -1 if an error occoured, but just
27270         gdk_error_code != 0.
27271
27272 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
27273
27274         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
27275         pointer *before* invoking the filter function, so we at least don't
27276         crash if a filter is removed that is currently executed. window filters
27277         *really* need to be made truely reentrant at some point.
27278
27279 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
27280
27281         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
27282         PropertyNotify debug messages.
27283
27284 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
27285         
27286         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
27287         
27288         * gdk/gdkim.c: Fix cut-and-paste errors for 
27289         x/y and PreeditAttributes/StatusAttributes.
27290
27291 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
27292
27293         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
27294         G_MAXINT to 2^16 to alleviate overflow problems in
27295         various window managers.
27296
27297 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
27298
27299         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
27300         for fontsets.
27301
27302 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
27303
27304         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
27305         Initialize size_hints.x and size_hints.y because kwm
27306         brokenly pays attention to them.
27307         (Bug #1181 -  Lars Heete <hel@admin.de>)
27308
27309 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
27310
27311         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
27312         return value of gdk_list_visuals(). 
27313         (Bug #1193 - Morten Welinder <terra@diku.dk>)
27314
27315 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
27316
27317         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
27318         XSetIMValues to (void *) when comparing to NULL, to workaround
27319         the problem of some compilers barfing since older X headers don't
27320         have the prototype for it.
27321
27322 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
27323
27324         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
27325         for pseudocolor where colormap->colors was double
27326         allocated.
27327
27328         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
27329         color value in the hash table with the pixel filled
27330         in so when we do later hash table lookups, the color
27331         value is correct.
27332         
27333 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
27334
27335         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
27336         making the call
27337
27338 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
27339
27340         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
27341         pointed out by Morten Welinder <terra@diku.dk>.
27342
27343 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
27344
27345         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
27346           default filter from the list
27347
27348 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
27349
27350         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
27351           default filter from the list
27352
27353 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
27354
27355         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
27356
27357         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
27358         g_strdup_printf instead of calcing the length separately
27359
27360 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
27361
27362         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
27363         that we don't do in many other places. (Fixing duplicate 
27364         #include of config.h)
27365
27366         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
27367         Otherwise, #ifndef XINPUT_NONE check in the latter
27368         doesn't work. (Bug #546)
27369
27370 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
27371
27372         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
27373         "None" case insensitive.
27374
27375 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
27376
27377         * gdk/gdkselection.c: 
27378         Add error traps so if the other end of the connection
27379         dies, we survive.
27380
27381 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
27382
27383         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
27384         dest_xid field into two fields - one for the window
27385         to send in messages, one to indicate the last looked
27386         up window for caching purposes. This is needed, so
27387         that Leave messages get the correct window.
27388
27389 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
27390
27391         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
27392         Fix warning created by people mucking around
27393         with the gsource API.
27394
27395         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
27396         Change mapping between GIOCondition and GdkInputCondition
27397         to match the way the Linux kernel does it. This should
27398         fix problems where closed pipes were no longer signalling
27399         GDK_INPUT_READ on systems with a native poll().
27400
27401 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
27402
27403         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
27404         explicitly for the string "None" - it is in the XPM
27405         spec and some servers treat unknown colors in odd ways
27406         (like asking the user!)
27407
27408 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
27409
27410         * gdk/gdkevents.c: made "->" into a "." of previous change so
27411         it compiles
27412
27413 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
27414
27415         * gdk/gdkevents.c (gdk_compress_exposures): Set the
27416         window field of the event structure before calling
27417         user filters.
27418
27419 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
27420
27421         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
27422         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
27423
27424 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
27425
27426         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
27427         intermediate text property - prevents major memory
27428         leak when gdk_use_mb.
27429         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
27430
27431 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
27432
27433         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
27434         gtk-a-higuti-990322-[0-3]
27435
27436         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
27437         sizeof(wchar_t) != sizeof (GdkWChar)
27438
27439         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
27440         that was causing -DX_LOCALE not to work.
27441
27442         * gtk/gtkrc.c (gtk_rc_init):
27443         X_LOCALE will never have LC_MESSAGES defined
27444
27445         * gdk/gdk.c (gdk_init_check):
27446         Remove --xim-preedit and --xim-status from argv properly.
27447
27448         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
27449         that the client window is present on the X server
27450         before we pass it to the input method.
27451
27452 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
27453
27454         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
27455         if --display is specified on the command line, than
27456         the drag window will not be created on that display.
27457         
27458 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
27459
27460         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
27461         lookups with only_if_exists == TRUE were inserting
27462         bogus values into the atom cache.
27463
27464 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
27465
27466         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
27467         then reset it to NULL.
27468
27469         * gdk/gdkcolor.c:
27470         (gdk_colors_free): 
27471         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
27472         key for g_hash_table_remove() in both functions, this prevents us
27473         from accessing possibly uninitialized portions of a GdkColor structure
27474         where we are only interested in its pixel value.
27475
27476 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
27477
27478         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
27479         font hash table, if we have a GdkFontPrivate entry for this font
27480         already, simply increment its reference count, provided by Olaf Dietsche
27481         <olaf.dietsche+list.gtk@netcologne.de>.
27482
27483 1999-09-21  Tor Lillqvist  <tml@iki.fi>
27484
27485         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
27486         just to be sure.
27487
27488         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
27489         unused variables, leftovers from the X11 version.
27490
27491         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
27492
27493         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
27494         downcase fields on X11.
27495
27496 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
27497         
27498         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
27499         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
27500
27501 1999-09-17  Tor Lillqvist  <tml@iki.fi>
27502
27503         * gdk/win32/gdk.def: Add gdk_threads_mutex.
27504
27505         * gtk/makefile.msc: Correct path to libintl.
27506
27507         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
27508         use of gint vs. int, and gint vs. gboolean in headers and
27509         definitions. Use GtkType for the *_get_type functions. Note that
27510         these changes preserve binary compatibility.
27511
27512         * gdk/gdk.c
27513         * gdk/win32/gdk.c
27514         * gdk/gdk.h: Fix inconsistencies: gint vs int.
27515
27516         * gtk/gtkmain.c
27517         * gtk/gtkclist.c
27518         * gtk/gtkmenufactory.c
27519         * gtk/gtknotebook.c
27520         * gtk/gtkwidget.c: Fix inconsistencies, also gint
27521         vs. gboolean.
27522
27523         * gtk/gtkcolorsel.[ch]
27524         * gtk/gtkcombo.[ch]
27525         * gtk/gtkdrawingarea.[ch]
27526         * gtk/gtkgamma.[ch]
27527         * gtk/gtkhandlebox.[ch]
27528         * gtk/gtkhpaned.[ch]
27529         * gtk/gtkhruler.[ch]
27530         * gtk/gtkplug.[ch]
27531         * gtk/gtkpreview.[ch]
27532         * gtk/gtkruler.[ch]
27533         * gtk/gtksocket.[ch]
27534         * gtk/gtkstatusbar.[ch]
27535         * gtk/gtktoolbar.[ch]
27536         * gtk/gtkvbbox.[ch]
27537         * gtk/gtkvpaned.[ch]
27538         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
27539         functions.
27540
27541         * gtk/gtkgamma.h: Fix bug, missing () in call of
27542         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
27543
27544 1999-09-14  Tor Lillqvist  <tml@iki.fi>
27545
27546         * gdk/gdkcolor.c (gdk_colormap_new)
27547         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
27548         colormap->colors was allocated twice.
27549
27550         * gdk/win32/gdk.c: Remove some unused stuff.
27551
27552         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
27553         colormap.
27554
27555         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
27556         * gtk/gtklabel.h (gtk_label_get_type)
27557         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
27558         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
27559         in a couple of places, not guint.
27560
27561 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
27562
27563         * configure.in,po/et.po: added Estonian language file
27564
27565 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
27566
27567         * configure.in,po/da.po: added Danish file
27568
27569 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
27570
27571         * docs/gtkfaq.sgml: Minor FAQ Update
27572
27573 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
27574
27575         * docs/gtkfaq.sgml: FAQ update
27576
27577 1999-08-27  Tor Lillqvist  <tml@iki.fi>
27578
27579         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
27580         way to get window contents continually refreshed while resizing. I
27581         didn't like the effects myself, so it's not on by default.
27582
27583         * gdk/win32/gdkprivate.h: New flag variable
27584         gdk_event_func_from_window_proc, FALSE by default.
27585
27586         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
27587         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
27588         are passed --gdk-event-func-from-window-proc.
27589
27590         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
27591         and we have am event_func, call it instead of enqueing the event.
27592
27593 1999-08-23  Tor Lillqvist  <tml@iki.fi>
27594
27595         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
27596         Kelley: Set expose_count in GdkEventExposes correctly.
27597
27598         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
27599         MULTIPLE_WINDOW_CLASSES).
27600
27601         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
27602         for bug in NT, apparently NT *does* draw the end pixel, too, in
27603         LineTo with a one-pixel pen, so we don't have to do it ourselves.
27604
27605 1999-08-21  Tor Lillqvist  <tml@iki.fi>
27606
27607         Improvements by Hans Breuer: 
27608
27609         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
27610
27611         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
27612         CS_?REDRAW flags as they cause lots of (late) redraws when "show
27613         window contents while dragging" is turned on. Allocate at least
27614         one unique class for every GdkWindowType. If support for single
27615         window-specific icons is ever needed (eg. Dialog specific), every
27616         such window should get its own class.
27617
27618 1999-08-19  Tor Lillqvist  <tml@iki.fi>
27619
27620         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
27621         error that caused crashes.
27622
27623 1999-08-17  Tor Lillqvist  <tml@iki.fi>
27624
27625         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
27626         window, use ScrollWindowEx, and call UpdateWindow. This prevents
27627         bugs when for instance part of the window was outside the
27628         display. Thanks to Philippe Colantoni for finding and fixing this.
27629
27630 1999-08-16  Tor Lillqvist  <tml@iki.fi>
27631
27632         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
27633         endpoint calculations which were totally wrong. (A little RTFMing
27634         helps a lot ;-)
27635
27636         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
27637         from a separate directory, not from gettext, because of licensing
27638         issues (we want to use the LGPL version).
27639
27640         * README.win32: Mention the intl from glibc vs from gettext issue.
27641
27642 1999-08-13  Tor Lillqvist  <tml@iki.fi>
27643
27644         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
27645         in the key event handling: Now AltGr chars work again. Also,
27646         now Alt-digits are passed up as well as Control-digits.
27647         Pass keypad plus and minus as normal plus and minus.
27648
27649 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
27650
27651         * docs/gtkfaq.sgml: FAQ Update
27652
27653 1999-07-25  Tor Lillqvist  <tml@iki.fi>
27654
27655         * README.win32
27656         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
27657         the Wintab SDK.
27658
27659         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
27660         OK, but getting closer. Guard against bogus tilt data from Wacom
27661         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
27662         enable easier building without Wintab.
27663
27664         * gdk/win32/gdkinput.h
27665         * gdk/win32/gdkevents.c 
27666         * gdk/win32/gdkwindow.c: Minor changes related related to above.
27667         
27668         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
27669         code. As we have just one visual on Win32, no sense to have it in a
27670         table, and no need for the hash table.
27671
27672         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
27673         better on white background.
27674
27675 1999-07-21  Tor Lillqvist  <tml@iki.fi>
27676
27677         * README.win32: Update gcc build instructions. Mention gettext is
27678         GPL.
27679
27680         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
27681         supported cursor size with GetSystemMetrics.
27682
27683         * gdk/win32/gdkfont.c
27684         * gtk/gtkfontsel.c: Guard against some font weight and charset
27685         symbols being undefined (in mingw32 headers).
27686
27687         * gdk/win32/makefile.cygwin
27688         * gtk/makefile.cygwin
27689         * gtk/gtkthemes.c: No longer need to have differently named
27690         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
27691
27692 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
27693
27694         * docs/gtkfaq.sgml: Long awaited FAQ update.
27695
27696 1999-07-15  Tor Lillqvist  <tml@iki.fi>
27697
27698         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
27699         it. Obscure bit manipulation needed.
27700
27701         * gdk/win32/gdkevents.c: Logging.
27702         
27703         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
27704         style (file name include compiler name) for theme engines.
27705
27706 1999-07-13  Tor Lillqvist  <tml@iki.fi>
27707
27708         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
27709
27710         * gdk/win32/gdkevents.c: Fix long-standing bug in key
27711         events. The key.string wasn't zero-terminated, still we strdup'ed
27712         it in gdk_event_copy(). Synthesize crossing events for button
27713         events before possible propagation.
27714
27715         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
27716
27717         * gdk/win32/makefile.cygwin
27718         * gtk/makefile.cygwin: Use new DLL naming style for the
27719         GCC-compiled ones.
27720
27721         * gdk/win32/makefile.msc
27722         * gtk/makefile.msc: Cosmetics mostly.
27723
27724         * gtk/gtk.def: Add missing entry points.
27725
27726         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
27727
27728 1999-07-09  Tor Lillqvist  <tml@iki.fi>
27729
27730         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
27731         or height is zero. Don't print a warning if Pie or Arc fails, they
27732         always fail (?) for very narrow ellipses.
27733
27734         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
27735         the part or the destination window corresponding to source area
27736         outside of the source drawable's boundary.
27737
27738         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
27739         anything if less than two points.
27740
27741         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
27742         return NULL. Gtk cut-and-paste inside a single program works
27743         better this way. (It always gets the clipboard contents from
27744         Windows, not from its own copy, which is cleared anyway. I can't
27745         say I fully understand what happens... Emulating the X selection
27746         and property stuff is a bit of a mess.)
27747
27748         * gdk/win32/gdkevents.c
27749         * gdk/win32/gdkproperty.c: A bit more verbose logging.
27750
27751         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
27752         that never got deleted). Revamp gdk_region_shrink.
27753
27754         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
27755         after use.
27756
27757         * gtk/gtk.def: Add some missing entry points.
27758
27759         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
27760         component.
27761
27762 1999-07-04  Tor Lillqvist  <tml@iki.fi>
27763
27764         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
27765         Control-digits specially.
27766
27767 1999-07-03  Tor Lillqvist  <tml@iki.fi>
27768
27769         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
27770
27771 1999-06-28  Tor Lillqvist  <tml@iki.fi>
27772
27773         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
27774         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
27775         finding this.)
27776
27777 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
27778
27779         * gtk+.spec.in: Corrected some typos in files section.
27780         
27781 1999-06-15  Tor Lillqvist  <tml@iki.fi>
27782
27783         * README.win32: Mention using GNU gettext.
27784         * config.h.win32: Enable NLS stuff.
27785         * gtk/makefile.msc: Use GNU gettext.
27786         * gdk/win32/gdkdnd.c: Minor header reorg.
27787         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
27788         cosmetics.
27789         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
27790         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
27791
27792 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
27793
27794         * acinclude.m4
27795         * config.guess
27796         * config.status
27797         * ltconfig
27798         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
27799
27800 1999-05-30  Tor Lillqvist  <tml@iki.fi>
27801
27802         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
27803         SafeAdjustWindowRectEx. Don't override all calls to
27804         AdjustWindowRectEx by it, but use it only in two places: When
27805         creating a new top-level window and when moving a top-level
27806         window.
27807
27808         Use screen coordinate rectangle, not client rectangle, in
27809         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
27810         when we try to place a window so that the decoration (mainly,
27811         title bar) isn't visible.
27812
27813         These changes fix the bug that showed up for instance as the
27814         GIMP's saved top-level windows moving right and down (by an amount
27815         equal to the window decoration) for each session. This bug showed
27816         up also in testgtk's "Saved Position".
27817
27818         gdk_window_resize also redone a bit.
27819
27820 1999-05-25  Tor Lillqvist  <tml@iki.fi>
27821
27822         * gtk/testgtkrc: Add (commented out) Windows-style theme
27823         include line.
27824
27825         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
27826
27827 1999-05-18  Tor Lillqvist  <tml@iki.fi>
27828
27829         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
27830         gdkx.h to a gdk subdirectory, so that applications can include
27831         these with <gdk/*.h> without trouble.
27832
27833         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
27834         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
27835         have their bitmap destroyed.
27836
27837         * gdk/win32/gdk.def: Add gdk_root_parent.
27838
27839 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
27840
27841         * configure.in
27842           gtk-config.in
27843           ltconfig
27844           ltmain.sh     
27845           gtk/Makefile.am: changes to compile nicely (with xlib) 
27846           on BeOS
27847
27848 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
27849
27850         * acinclude.m4
27851         * config.guess
27852         * config.sub
27853         * ltconfig
27854         * ltmain.sh: upgrade to libtool 1.3
27855
27856 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
27857
27858         * gtk/gtkclist.c:
27859         * gtk/gtkctree.c: merges from gtk-1-2
27860
27861 1999-04-25  Tor Lillqvist  <tml@iki.fi>
27862
27863         Support added for building using a GNU toolchain on Win32,
27864         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
27865
27866         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
27867         * config.h.win32: Changes for gcc.
27868         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
27869         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
27870         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
27871         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
27872         Protect shl stuff unavaiilable with mingw32 headers.
27873         * gdk/win32/gdkevents.c: Fix typo.
27874         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
27875         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
27876         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
27877         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
27878         the mingw32 headers.
27879         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
27880         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
27881         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
27882         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
27883         Test for NATIVE_WIN32, not _MSC_VER.
27884         * gtk/gtkmain.c: No use warning about developer version on Win32,
27885         there aren't any non-developer versions anyhow.
27886         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
27887         * gtk/makefile.msc: Use pthread from another directory. Minor other
27888         changes. 
27889
27890 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
27891
27892         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
27893           default filter from the list
27894
27895 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
27896
27897         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
27898          when gtk_widget_grab_default() is called for a widget that
27899          is not within a GtkWindow.
27900
27901 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
27902
27903         * docs/gtk_tut.sgml, examples/clist.c: use a
27904           scrolled window in the clist example. Minor
27905           tutorial fixes.
27906
27907 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
27908
27909         * docs/gtk_tut.sgml: Style check from David King
27910           <dking@youvegotmail.net>
27911
27912 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
27913
27914         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
27915         compile with unknown value of GDK_WINDOWING
27916
27917 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
27918
27919         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
27920         after the rule is fired.
27921         (install-exec-local): Install gdkconfig.h only if the contents are
27922         different from the currently installed gdkconfig.h.
27923
27924 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
27925
27926         * gdk/Makefile.am (configexecincludedir): Rename from 
27927         configincludedir so that gdkconfig.h will be installed 
27928         as part of `make install-exec'. 
27929
27930 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
27931
27932         * acinclude.m4
27933         * config.guess
27934         * config.sub
27935         * ltconfig
27936         * ltmain.sh: upgrade to libtool 1.2f
27937
27938         * autogen.sh: libtool is not required to autogen gtk+
27939
27940         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
27941         needed)
27942
27943 1999-03-18  Tor Lillqvist  <tml@iki.fi>
27944
27945         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
27946         declaring gdk variables exported/imported from the DLL. New image
27947         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
27948         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
27949         GDK_DRAG_PROTO_OLE2.
27950
27951         * gdk/gdk.h: Merge in Win32 version: Two new functions,
27952         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
27953         declared only for the Win32 version, but could be in the X11
27954         version as well. (Needed for a Xlib-less gdk_imlib.)
27955         gdk_color_hash should have only one parameter. Declare
27956         gdk_threads_mutex with GDKVAR.
27957         
27958         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
27959         just one parameter.
27960
27961         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
27962         per pixel, not bits.
27963
27964         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
27965         Fetch bpp (which means bits-per-pixel here) from another place on
27966         Win32. Accept also depth==32 (which we might get on Win32) with
27967         bpp==32.
27968
27969         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
27970         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
27971         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
27972         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
27973         in the backend-dependent directory, not in the common gdk
27974         directory.
27975
27976         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
27977         headers.
27978
27979 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
27980
27981         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
27982         want to use the Gtk+ devel version (which is true, and yes - even i am
27983         currently working with the 1.2.x branch). so everyone reading this, you
27984         probably want to issue
27985         cvs checkout -r glib-1-2 glib
27986         and
27987         cvs checkout -r gtk-1-2 gtk+
27988         as your next two comands.
27989
27990 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
27991
27992         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
27993         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
27994
27995         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
27996         file. strongly deprecated the GTK_HAVE_* macros, we provide
27997         GTK_CHECK_VERSION() for people that need to check for certain
27998         Gtk+ versions.
27999
28000         * gtk/gtkcompat.h: removed this from CVS.
28001         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
28002         idea right from the start, it just didn't seem like that back then.
28003
28004 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
28005
28006         * merges from gtk-1-2:
28007
28008 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
28009
28010         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
28011         item factory class has been created.
28012         (gtk_item_factory_parse_rc): likewise.
28013
28014         * gtk/gtkmenu.c:
28015         keep proper references for old_active_menu_item.
28016         (gtk_menu_reparent): unset the usize of the new parent,
28017         so the menu can sanely be size requested and we don't get nasty screen
28018         artefacts upon next reparentation.
28019         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
28020         enter notify. only synthesize enter notifies if the pointer really is
28021         inside the event window.
28022         (gtk_menu_popdown): use gtk_menu_shell_deselect().
28023         (gtk_menu_popup): move the background setting stuff into
28024         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
28025
28026         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
28027         gtk_menu_shell_select_item() to select the new item.
28028         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
28029         do the right thing for deselection as well.
28030
28031 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
28032
28033         * gtk/gtkwidget.[hc]:
28034         (gtk_widget_accelerators_locked): return whether a widget's accelerators
28035         are locked.
28036
28037         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
28038         existing accelerators if the widget's accelerators are locked.
28039
28040 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
28041
28042         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
28043
28044         * gtk/gtkmenu.c: truely forward key press and key release events to
28045         the menu widget from the toplevel or tearoff window. we can't simply
28046         connect to that, we need to stop further processing of the events as
28047         well.
28048
28049 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
28050
28051         * gtk/gtkmenu.c:
28052         (gtk_menu_key_press): pass event->keyval, event->state to
28053         gtk_accelerator_valid, instead of event->keyval twice.
28054         refuse to install single letter accelerators for menus that use
28055         single letter shortcuts.
28056
28057         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
28058         gtk_menu_ensure_uline_accel_group().
28059
28060         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
28061         which will always return an uline accel group, made
28062         gtk_menu_get_uline_accel_group() return NULL if the group isn't
28063         yet created.
28064
28065 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
28066
28067         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
28068
28069         * gtk/gtkclist.c (gtk_clist_column_title_passive):
28070         Leave button sensitive, trap  button_press, button_release,
28071         motion_notify, enter_notify and leave_notify events instead.
28072         (gtk_clist_column_title_active): disconnect event handler.
28073         (gtk_clist_drag_data_get): fixed memory leak. Reported by
28074         Guillaume Laurent <glaurent@worldnet.fr>
28075
28076 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
28077
28078         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
28079         width/height mixups.
28080
28081         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
28082         if needed.
28083
28084 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
28085
28086         * gtk/testgtk.c (create_item_factory): unref the item factory after
28087         window's destruction.
28088
28089         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
28090         count on the menu shell around the menu item's activation, since the
28091         signal emission may cause menu shell destruction.
28092
28093         * gtk/gtkitemfactory.c:
28094         the previous code leaked one accel group per menu. we use
28095         gtk_menu_get_uline_accel_group() now to fix that, and with that
28096         also create the underline accelerator group of the menus only if
28097         required (i.e. an underline accelerator has been specified).
28098         (gtk_item_factory_construct):
28099         (gtk_item_factory_create_item): removed code that would create an
28100         extra accel group for the menu (and leak references).
28101         (gtk_item_factory_create_item): adapted the underline accelerator
28102         installation code to properly feature gtk_menu_get_uline_accel_group().
28103
28104         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
28105         menu->accel_group, this may return NULL if the accelerator group
28106         hasn't been set yet.
28107         added gtk_menu_get_uline_accel_group() to retrive the underline
28108         accelerator group of the menu, this will be created on demand
28109         and proper care is taken about its reference count.
28110
28111         * gtk/gtkitemfactory.h:
28112         * gtk/gtkitemfactory.c:
28113         dumped the approach of keeping a widgets by action list on the
28114         factory since the factory<->widget destroy negotiation didn't work
28115         and would be hard to get going at all. instead we keep a list of
28116         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
28117         persistant throughout a program's life time).
28118         also, i removed the static const gchar *key_* variables, and made
28119         them inline strings (they weren't actually used anyways).
28120         (gtk_item_factory_add_item): update ifactory->items.
28121         (gtk_item_factory_destroy): destroy ifactory->items (and remove
28122         the item factory pointer from the remaining ifactory widgets).
28123         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
28124         list to find the widget.
28125         (gtk_item_factory_get_item): new function that works around
28126         gtk_item_factory_get_widget() limitations, this function will only
28127         return menu items, even for <Branch> entries.
28128
28129 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
28130
28131         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
28132         font hash table, if we have a GdkFontPrivate entry for this font
28133         already, simply increment its reference count, provided by Olaf Dietsche
28134         <olaf.dietsche+list.gtk@netcologne.de>.
28135
28136         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
28137         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
28138
28139 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
28140
28141         * gtk/gtkcontainer.c:
28142         (gtk_container_add_with_args):
28143         (gtk_container_addv):
28144         (gtk_container_add): before adding a child to a conatiner, make sure
28145         it is (default) constructed, this is neccessary because under certain
28146         circumstances the child will get relized and mapped immediatedly, in
28147         which case it has to be constructed already.
28148
28149 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
28150
28151         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
28152         values > 1 as TRUE also.
28153
28154 1999-03-16  Tor Lillqvist  <tml@iki.fi>
28155
28156         * README.win32: New file.
28157                 
28158         * configure.in: Check for lstat.
28159
28160         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
28161         completeness.
28162
28163         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
28164
28165         * gtk/gtk.def: Removed CRs.
28166
28167         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
28168         ..\gdk\win32).
28169
28170         * gdk/win32/makefile.msc: Correct upwards relative paths.
28171         
28172 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
28173
28174         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
28175           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
28176           it was connecting a void function to expose_event and the int
28177           returning function to the draw signal
28178
28179 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
28180
28181         * configure.in:
28182         Use correct path to libgmodule.la when ref'ing uninstalled copy
28183         of glib.  (Already in stable branch, Bug #417)
28184
28185 1999-03-15  Tor Lillqvist  <tml@iki.fi>
28186
28187         Win32 merge and general portability stuff:
28188                 
28189         * acconfig.h,configure.in: Check for <sys/time.h>.
28190
28191         * gdk/win32: New directory (actually, been there for a while).
28192         
28193         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
28194         NATIVE_WIN32, and use these. Always case fold on Win32. No
28195         backslashed escapes on native Win32.
28196
28197         * gtk/{gtk.def,makefile.msc}: New files.
28198
28199         * gtk/Makefile.am: Add above new files.
28200         
28201         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
28202         instead of <strings.h>.
28203
28204         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
28205         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
28206         <unistd.h> appropriately.
28207
28208         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
28209         Use ABS() (from <glib.h>) instead of abs().
28210         
28211         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
28212         of gtk (and thus glib) headers, so that WIN32 will be
28213         defined. With MS C, include <direct.h> for mkdir prototype.
28214
28215         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
28216         some casts, needed by MS C.
28217
28218         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
28219         implemented).
28220
28221         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
28222         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
28223         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
28224
28225         * gtk/gtkmain.h: Mark variables for export/import on Win32.
28226                 
28227         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
28228         the event is not a hint, or its window is not the slider. Needed
28229         on Win32, at least.
28230
28231         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
28232         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
28233         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
28234         a subdirectory of the Windows directory as gtk system
28235         configuration directory.
28236
28237         * gtk/gtkselection.c: No chunks on Win32.
28238
28239         * gtk/gtksocket.c: Not implemented on Win32.
28240
28241         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
28242
28243         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
28244
28245         * gtk/maketypes.awk: Declare variables with a macro that expands to
28246         necessary export/import magic in the case of Win32.
28247                 
28248         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
28249
28250 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
28251
28252         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
28253         since those were meant only for gdki18n.h.  
28254         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
28255         for widechar tests.
28256         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
28257
28258 1999-03-13  Tor Lillqvist  <tml@iki.fi>
28259
28260         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
28261         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
28262
28263         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
28264         installed) to CFLAGS.
28265
28266         * gdk/Makefile.am: Add rules for gdkconfig.h.
28267
28268         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
28269         APIs.
28270
28271         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
28272         gdkx.h anyway when compiling for X11.
28273         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
28274         general): Merge in Win32 version.
28275         
28276         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
28277         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
28278         expansion (if we don't have HAVE_PWD_H), allow for drive
28279         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
28280         included code from Craig Setera's port to Win32 (the one that uses
28281         X11, and the cygwin dll), even if it probably will be abandoned.
28282
28283         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
28284         the user entered one herself.  This way one can complete *.h and
28285         don't get matches on any .help files, for instance.
28286         
28287 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
28288
28289         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
28290         font hash table, if we have a GdkFontPrivate entry for this font
28291         already, simply increment its reference count, provided by Olaf Dietsche
28292         <olaf.dietsche+list.gtk@netcologne.de>.
28293
28294         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
28295         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
28296
28297 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
28298
28299         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
28300         the number of calls to gdk_draw_point() (and thus to X) by
28301         clipping the points by hand.
28302
28303         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
28304         the clip parameter.
28305         (gtk_handle_box_paint): Only paint the handle if the expose area
28306         intersects it.
28307
28308 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
28309
28310         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
28311
28312 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
28313
28314         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
28315         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
28316
28317 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
28318
28319         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
28320          textmode (O_TEXT) for OS/2 version.
28321
28322 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
28323
28324         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
28325         GtkSpinButton, "input" and "output", to make the output more flexible.
28326         The user has to provide a mapping between adjustment->value and the
28327         output string (and vice versa, if the spin button is editable). 
28328         See testgtk for examples.
28329
28330 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
28331
28332         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
28333         new one.
28334         
28335         * configure.in: set gtk+ version to 1.3.0.
28336
28337         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,