]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
fix a load of open line ends (cell_edited): modified patch from German Poo
[~andy/gtk] / ChangeLog.pre-2-10
1 Sat Jan 19 20:49:41 2002  Kristian Rietveld  <kris@gtk.org>
2
3         * demos/gtk-demo/editable_cells.c: fix a load of open line ends
4         (cell_edited): modified patch from German Poo Caaman~o
5         to fix up old_text declaration and free the memory
6         (do_editable_cells): unref the model after creating the treeview
7
8         * demos/gtk-demo/list_store.c: fix a load of open line ends,
9         (add_columns): set the sort column id, so we can sort
10
11         * demos/gtk-demo/tree_store.c: fix a load of open line ends,
12         (do_tree_store): unref the model after creating the treeview
13
14 2002-01-19  Havoc Pennington  <hp@pobox.com>
15
16         * gtk/gtkwindow.c: link to new X11 section in a lot of places when
17         mentioning the window manager.
18
19         * gtk/gtkwidget.c (gtk_widget_hide_on_delete): don't mention
20         window manager since we're portable.
21
22 Sat Jan 19 08:47:41 2002  Jeff Garzik  <jgarzik@mandrakesoft.com>
23
24         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
25         Wrap case values in GPOINTER_TO_UINT().  Fixes build with gcc 3.x.
26
27         * gtk/gtkmain.c:  Include sys/types.h if G_OS_UNIX.
28         Fixes build with gcc 3.x and -ansi.
29
30 Fri Jan 18 23:01:37 2002  Owen Taylor  <otaylor@redhat.com>
31
32         * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
33         an engine declaration occurs in a reopened style, and
34         g_free() of objects when errors occur.
35
36 2002-01-18  Matthias Clasen  <matthiasc@poet.de>
37
38         * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
39         Clarify documentation. (#69026)
40
41         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
42         missing initialization of adjustment. (#69025)
43
44 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
45
46         Simplify Makefiles. 
47         <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
48         * gdk/Makefile.am: Remove use of automake conditionals to pick
49         library to build.
50         * gtk/Makefile.am: Likewise.
51         
52         * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
53         * gtk/Makefile.am (LDFLAGS): Likewise.
54
55 Thu Jan 17 20:13:14 2002  Owen Taylor  <otaylor@redhat.com>
56
57         * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
58         missing allocation.x/y offsets. (#68962, Jacob
59         Berkman)
60
61         * gtk/gtknotebook.c (gtk_notebook_size_allocate):
62         Queue a redraw on the entire widget if we hide
63         the last page or show the first. (Also #68962)
64         
65 2002-01-17  Havoc Pennington  <hp@redhat.com>
66
67         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
68         GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
69         starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
70         as in the keynav spec, though it makes the interpretation of
71         GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
72         of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
73         any sense anyhow.
74
75 Thu Jan 17 16:34:55 2002  Jonathan Blandford  <jrb@redhat.com>
76
77         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
78         some reason, I was activating a row while just selecting it.
79         Reported by andersca.
80         (gtk_tree_view_size_request): add a
81         validate_rows_handler to give us a rough width of the widget.
82
83         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
84         Queue a resize here just in case.  It's needed in over half the
85         cases, and I don't want to do a diff to figure out exactly when
86         it's needed.
87
88 2002-01-17  Matthias Clasen  <matthiasc@poet.de>
89
90         * gtk/gtkinputdialog.c,
91         gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
92         Mark children as composite. (#66360)
93
94         * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
95         composite children some more. (#66360)
96
97 2002-01-17  Havoc Pennington  <hp@redhat.com>
98
99         * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
100         function (which I then decided not to use but I think it's needed
101         to fix #68963
102
103         * gtk/gtktextview.c: add page_horizontally action signal and
104         implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig, 
105         hackily modified to avoid adding GTK_MOVEMENT_ API. Part of 
106         #53934
107
108         * gtk/gtkmarshalers.list: add NONE:INT,BOOL
109
110 Thu Jan 17 17:02:38 2002  Owen Taylor  <otaylor@redhat.com>
111
112         * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
113         gtk_selection_remove_all() here, not in destroy/
114         finalize. (#66636, Sergey Vlasov)
115
116         * gtk/gtkselection.c (gtk_selection_request): Fix
117         reentrancy problem with multiple conversions.
118
119         * gtk/gtkselection.c (gtk_selection_remove_all): 
120         Don't remove incrs, we don't need the widget for
121         maintain the incr.
122
123         * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
124         the widget field from here, we don't need it.
125
126 Thu Jan 17 13:08:34 2002  Owen Taylor  <otaylor@redhat.com>
127
128         * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
129         here, and save/restore the X error handler to allow
130         people using GTK+ to set the X error handler to something
131         custom without disturbing the operation of GDK.
132
133         * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push) 
134         * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
135         dummy implementations.
136
137         * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c 
138         gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
139         for all error trapping.
140
141         * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
142
143         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
144         problem where we would add the results anyways,
145         and then add it again if no error occurred, and problem
146         where we could leave _gdk_error_warnings() unset.
147
148 Wed Jan 16 20:28:38 2002  Owen Taylor  <otaylor@redhat.com>
149
150         * gtk/gtkfilesel.c: Fix "deleting" filename by adding
151         another boolean parameter to file_selection_populate() -
152         whether to clear the entry. Also, never fill in the
153         entry when the user clicks on something in the 
154         directory list. (#6791, Reported by Jos Dehaes and many,
155         many, many others.)
156
157 2002-01-16  Havoc Pennington  <hp@redhat.com>
158
159         * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
160         cursor_y_pos with clamped delta rather than theoretical delta
161         (#68788). Also, if we can't page up/down further then jump 
162         to top/bottom of the document.
163
164 Wed Jan 16 19:33:41 2002  Owen Taylor  <otaylor@redhat.com>
165
166         * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
167         the dialog on map. (#52877, inspired by request from
168         Murray Cumming)
169
170 Wed Jan 16 19:23:04 2002  Owen Taylor  <otaylor@redhat.com>
171
172         * gtk/gtkbindings.c (gtk_binding_entry_activate): 
173         Support "optional" bindings. If a binding signal
174         has a boolean return value, and returns FALSE it
175         is as if it didn't exist all.
176
177         * gtk/gtkbindings.c (binding_compose_params): Switch
178         over to GValue.
179
180         * gtk/gtknotebook.[ch]: Make the select_page() and
181         change_current_page() signals only take effect when
182         the focus is on the tab area so that key presses
183         in children pass up to the toplevel correctly.
184
185 Wed Jan 16 12:16:37 2002  Owen Taylor  <otaylor@redhat.com>
186
187         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix 
188         calculation error in the (shouldn't happen) case where
189         option_menu->height < child_requisition.height. (Patch
190         from Jacob Berkman, #66969)
191
192 2002-01-15  Matthias Clasen  <matthiasc@poet.de>
193
194         * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
195
196         * gtk/gtkscale.h (gtk_scale_value_width): Remove useless 
197         compatibility macro. (#67730) 
198
199 Wed Jan 16 10:54:38 2002  Owen Taylor  <otaylor@redhat.com>
200
201         * configure.in: Fix typo in --help output.
202         (Arnaud Charlet).
203
204 Wed Jan 16 10:18:42 2002  Owen Taylor  <otaylor@redhat.com>
205
206         * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add 
207         gtkstockpixbufs.h.
208
209         * configure.in: Make TIFF, JPEG, PNG loaders mandatory
210         unless you configure with --without-libtiff, etc.
211         (#54045, Brian Cameron)
212
213 2002-01-16  Padraig O'Briain <padraig.obriain@sun.com>
214
215         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
216         Avoid unexpected warning message when navigating menu (#68517)
217
218 2002-01-15  Jody Goldberg <jody@gnome.org>
219
220         * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
221         GtkLayout may have been scrolled _before_ it was realized.
222
223 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
224
225         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
226         the timer on destroy, or when we are notified that we are
227         shadowed by a modal dialog.
228
229         * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
230         not needed any more.
231
232         * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
233         weren't sent out for the default grab group.
234
235         * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
236         were getting events because they were part of the previous grab.
237
238 Tue Jan 15 12:23:33 2002  Owen Taylor  <otaylor@redhat.com>
239
240         * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page): 
241         focus the activated tab, not the page. (#53612)
242
243         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
244         the last focus descendant of the page.
245
246         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
247         was on the previous page, move it to the last focused widget /
248         first element on the new page, if possible, or if not, to the 
249         notebook itself. (#68224, reported by Jonathan Blandford)
250
251         * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
252         tabs aren't visible. (#65462, Damon Chaplin, fixed based 
253         on patch from Anders Carlsson)
254
255 2002-01-15            Vitaly Tishkov       <tvv@sparc.spb.su>
256
257         * gtk/gtkstyle.c
258         a misprint in documentation for gtk_style_render_icon () is fixed
259
260 Mon Jan 14 23:21:47 2002  Tim Janik  <timj@gtk.org>
261
262         * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
263         mapping child, so we don't loose events.
264
265 2002-01-15  Sven Neumann  <sven@gimp.org>
266
267         * gtk/gtkaccellabel.h
268         * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
269         names used in headers and code.
270
271 2002-01-14  jacob berkman  <jacob@ximian.com>
272
273         * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
274
275 Tue Jan 15 01:13:51 2002  Kristian Rietveld  <kris@gtk.org>
276
277         * gtk/gtktreemodelsort.c: fix a load of open line ends,
278         (gtk_tree_model_sort_set_model): only free root level if it's
279         !NULL
280
281 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
282
283         * gtk/gtkoldeditable.c, gtk/gtkrc.c, 
284         gtk/gtkstyle.c: Documentation additions.
285
286         * gtk/gtkmenu.c (gtk_menu_set_accel_path),
287         gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path), 
288         gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
289
290         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
291
292         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
293
294 Mon Jan 14 17:14:13 2002  Owen Taylor  <otaylor@redhat.com>
295
296         * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
297         mangle sequences of consecutive \n or \r.
298
299 Mon Jan 14 17:42:28 2002  Jonathan Blandford  <jrb@redhat.com>
300
301         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
302         happen.
303
304         * gtk/gtktreeview.c (install_presize_handler): only install the
305         handler if we're realized, #68056
306
307 Mon Jan 14 16:35:58 2002  Owen Taylor  <otaylor@redhat.com>
308
309         * gtk/gtkwindow.c (gtk_window_move_resize): Unset 
310         initial_pos_set after the first configure request.
311
312 2002-01-13  Jody Goldberg <jody@gnome.org>
313
314         * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
315           and will use a mem_chunk to do it.  Avoid an unnecessary copy, a
316           leak, and confusion.
317
318 Sun Jan 13 23:23:22 2002  Owen Taylor  <otaylor@redhat.com>
319
320         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
321         widget->requisition was being used instead of
322         gtk_widget_get_child_requisition (), causing geometry widgets
323         with usizes to misbehave.
324
325 2002-01-14  Sven Neumann  <sven@gimp.org>
326
327         * gtk/gtkrc.c: g_getenv() returns a const string.
328
329 2002-01-14  Hasbullah Bin Pit  <sebol@ikhlas.com>
330
331         * configure.in: Added ms at ALL_LINGUAS.
332         * po/ms.po: Added Malay Translation.
333
334 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
335
336         * gtk/gtkitemfactory.c: Documentation.
337
338 2002-01-13  Sven Neumann  <sven@gimp.org>
339
340         * gdk/gdkwindow.c: documentation cleanups.
341
342 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
343
344         * gtk/gtktreemodelsort.c: various cleanups,
345         (get_child_iter_from_elt): removed,
346         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
347         and especially faster,
348         (gtk_tree_model_convert_iter_to_child_iter): use
349         gtk_tree_model_sort_elt_get_path
350
351 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
352
353         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
354         revert Owen's change (using a strdupped string as object data), so
355         the interactive search works again
356
357 2002-01-11  Havoc Pennington  <hp@pobox.com>
358
359         * gtk/gtklabel.c: put in more links to Pango markup format docs
360         (gtk_label_set_justify): mention gtk_misc_set_alignment
361
362 2002-01-12  Tor Lillqvist  <tml@iki.fi>
363
364         Fixes contributed by Archaeopteryx Software: This is a first small
365         part of their changes. Will commit more later.
366         
367         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
368         call fails, don't use bogus values.
369
370          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
371         memory leak: g_free() the AND and XOR bitmaps after use.
372         (_gdk_cursor_destroy): If we are destroying the current Windows
373         cursor, set the Windows cursor to none first.
374
375         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
376         brush that was in the DC, like the win32-procution branch does. I
377         guess this plugs a resource leak? With the HDC cache, the old
378         brush might be something we created ourselves, and not a stock
379         brush. And it doesn't do any harm to call DeleteObject on stock
380         brushes.
381
382         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
383         the window has a cursor which is the current Windows cursor,
384         before destroying it set the current Windows cursor to none.
385         (gdk_window_set_cursor): Also here, if destroying the current
386         Windows cursor, set the current Windows cursor to none first.
387         (gdk_window_get_pointer): Revamp logic.
388         
389 2002-01-10  jacob berkman  <jacob@ximian.com>
390
391         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
392         through the list rather than infinitely loop
393
394 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
395
396         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
397         reset_rc_styles_recurse(). (#68084)
398
399 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
400         * gtk/gtkimage.c
401         * gtk/gtkimcontext.c
402         * gtk/gtktreemodel.c
403         * gtk/gtktreemodelsort.c
404         * gtk/gtkwindow.c
405         fix docs        
406
407 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
408
409         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
410         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
411
412 2002-01-10  Tor Lillqvist  <tml@iki.fi>
413
414         Apply the same fixes and improvements as to the
415         gtk-1-3-win32-production branch: Bug fixes and cleanup of
416         selection and DND functionality. Still doesn't work as well as the
417         win32-production branch, though, but getting closer.
418
419         After this, need to add Archaeopteryx Software's OLE2 DND support.
420
421         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
422         gdk_selection_send_notify, generate_selection_notify): Don't use
423         SendMessage() to generate events for the same app, instead use
424         gdk_event_put().
425
426         * gdk/win32/gdkprivate-win32.h
427         * gdk/win32/gdkglobals-win32.c
428         * gdk/win32/gdkmain-win32.c
429         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
430         initialisation and handling of gdk_selection_notify_msg,
431         gdk_selection_request_msg and gdk_selection_clear_msg. 
432
433         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
434         gdk_free_text_list, gdk_string_to_compound_text,
435         gdk_free_compound_text): Implement trivially, witrh a text_list
436         always having a single element, and a compound text always
437         consisting of just a single (UTF-8!) string. Let's see how well
438         this works.
439
440         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
441         non-ASCII paste from the clipboard: Try getting the same formats
442         from the Windows clipboard that gdk_property_change() puts there:
443         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
444
445         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
446         storing text on the clipboard, handle non-ASCII text
447         correctly. The logic is as follows:
448
449         If we have only ASCII characters, use CF_TEXT.
450
451         Else, if we are on NT, use CF_UNICODETEXT.
452
453         Else (we are on Win9x), if all the characters are present in the
454         code page of some installed locale, use CF_TEXT and also set
455         CF_LOCALE to that locale.
456
457         Else (still on Win9x) store as RTF. We use a very simple RTF
458         string, just the text, no fonts or other crap, with the non-ASCII
459         characters as Unicode \uN keywords. Additionally, also store the
460         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
461         can also paste from the Clipboard what it has copied there. (Thus
462         no need to implement any RTF parser.)
463         
464         (find_common_locale): New function, implements the search for a
465         locale for case 3 above.
466
467         * gdk/win32/gdkglobals-win32.c: New global variables
468         compound_text, text_uri_list, utf8_string, cf_rtf and
469         cf_utf8_string.
470
471         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
472         converts from a wchar_t string to UTF-8.
473         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
474         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
475
476         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
477         _gdk_ucs2_to_utf8().
478
479         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
480
481         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
482         gdk_drag_context_ref() was called unnecessarily in a couple of
483         places, meaning drag contexts were never freed. The same memory
484         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
485
486         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
487         stored file list.
488
489         * gdk/win32/gdkselection-win32.c: Clarify the use of the
490         sel_prop_table. Now it is used only for storing the GDK_SELECTION
491         "properties".
492
493         The file names dropped with WM_DROPFILES -style DND is stored
494         temporarily (between the drop and the target picking them up) in a
495         separate place.
496
497         Have a separate hash table to map selection atoms to owner
498         windows. This used to be quite mixed up.
499
500         (_gdk_dropfiles_store): New function, to store the dropped file
501         list for the drop target to possibly fetch, and clear it
502         afterwards, from gdk_drop_reply().
503
504         (gdk_selection_owner_get): Much simplified now.
505
506 2002-01-09  jacob berkman  <jacob@ximian.com>
507
508         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
509         our bin window also (fixes #58957)
510
511 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
512
513         * gtk/gtktreeselection.c
514         (_gtk_tree_selection_internal_select_node): Now we test we can
515         unselect nodes before selecting new ones.
516         (gtk_tree_selection_real_select_node): be careful comparing booleans.
517
518 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
519
520         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
521         gtk_tree_model_rows_reordered and not an iter with user_data
522         set to NULL (which is an invalid liststore iter, so
523         iter_n_children failed, etc)
524
525 2002-01-09  Sven Neumann  <sven@gimp.org>
526
527         * tests/prop-editor.c: declared internal functions static.
528         
529 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
530
531         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
532         Fix problem with menus without accel groups, such as the
533         menus for option menus.
534
535         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
536         drawing of handle on whether both children are visible,
537         not the drawing of the other child!. (#68325, Diego Gonzalez)
538
539 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
540
541         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
542         RENDER before trying to use it... XRenderFindFormat() prints
543         warnings if called when extension isn't present.
544
545 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
546
547         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
548         path upon parent changes.
549
550 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
551
552         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
553         fix to force vadjustments at size_alocate time from Xavier Ordoquy
554         <mcarkan@users.sourceforge.net>.
555
556 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
557
558         * gtk/gtklayout.c (gtk_layout_get_property): 
559         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
560         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
561         * gtk/gtkwidget.c (gtk_widget_get_property): 
562         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
563         * gtk/gtkrange.c (gtk_range_get_property):
564         * gtk/gtkviewport.c (gtk_viewport_get_property):
565         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
566         possible NULL pointer.
567
568 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
569
570         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
571         * gtk/gtktreednd.h : ditto.
572         * gtk/gtktreemodel.h : ditto.
573         * gtk/gtktreesortable.h : ditto.
574         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
575
576 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
577
578         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
579         than XIDs in the docs.
580
581         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
582
583 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
584
585         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
586         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
587
588 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
589
590         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
591         Handle TOGGLE/RADIOBUTTON as well. (#68201,
592         Damon Chaplin.)
593
594         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
595         bug, just introduced.
596
597 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
598
599         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
600         translations, once and for all.
601
602         * gtk/gtktextbuffer.c (paste_from_buffer): Free
603         the ClipboardRequest structure. (#66198, HideToshi
604         Tajima)
605
606 2002-01-08  jacob berkman  <jacob@ximian.com>
607
608         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
609         the child rather than the layout. see bug #68263
610
611 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
612
613         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
614         the handle if we aren't showing both children.
615         (#68135, Diego Gonzalez)
616
617 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
618
619         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
620         leak of result of gtk_container_get_children().
621
622 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
623
624         * gtk/gtktoolbar.c: Fix leaks of results of
625         gtk_container_get_children(). (#68199, Damon Chaplin)
626
627 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
628
629         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
630         Fix problem where child->requisition was accessed
631         directly instead of calling get_child_requisition()
632         (#68199, Damon Chaplin)
633
634 2001-01-08  James Henstridge  <james@daa.com.au>
635
636         * gtk/gtkstyle.c: add trailing */ on doc comment.
637
638 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
639
640         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
641         problem where were the offset into the image was passed
642         into convert_to_format() wrong.
643
644         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
645         gdk_x11_drawable_update_picture_clip () before using
646         the picture; allow update_picture_clip() to take a NULL gc
647         to mean no clipping.
648
649 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
650
651         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
652
653         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
654
655         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
656
657         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
658
659         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
660         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
661         gtk_widget_push_composite_child), gtk/gtkdialog.c 
662         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
663         from messing up the indentation of inline examples.     
664
665         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
666         instead of getenv().
667
668         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
669         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
670         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
671
672         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
673         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
674         Document.
675
676 2002-01-07  Anders Carlsson  <andersca@gnu.org>
677
678         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
679         unused pixels and rowstride variables.
680         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
681
682 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
683
684         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
685         the pointer by x/y_offset into the new window when we found
686         the drag destination.
687
688         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
689         for simulation when the entry already contains the required
690         accel key and mod.
691
692 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
693  
694         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
695         G_DISABLE_CAST_CHECKS.
696
697         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
698         gtk_accel_group_query, gtk_accel_group_find,
699         gtk_accel_groups_from_object): Document.
700
701         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
702
703 2002-01-04  Hans Breuer  <hans@breuer.org>
704
705         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
706         need to cast image->mem away from void* to avoid 
707         'error C2036: 'void *' : unknown size'. Doing pointer 
708         arithmetics on void pointers is a GCCism afaik.
709
710         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
711         _gdk_draw_pixbuf ()
712
713         * gdk/makefile.msc gdk/win32/makefile.msc 
714         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
715
716         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
717         and take care of image->visual possibly NULL.
718
719         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
720         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
721         Again take care of image->visual possibly NULL.
722
723         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
724
725         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
726         instead of private field access
727
728         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
729         colormap setting to the gdk-X behaviour
730
731 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
732
733         * gtk/gtkwidget.c: Documentation additions.
734
735 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
736
737         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
738
739         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
740
741 2002-01-04  Havoc Pennington  <hp@pobox.com>
742
743         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
744         
745 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
746
747         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
748         don't infinite loop if the widget and window heirarchies
749         don't correspond.
750
751         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
752         in heirarchy in ::drag_motion, ::drag_drop callbacks
753         by referencing child widget lists. (Patch from Tim)
754
755         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
756         with widgets where window.x != widget->allocation.x
757
758 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
759
760         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
761         a little bit. (More for consistency than because it
762         makes much of a difference.)
763
764 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
765
766         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
767         (_gdk_x11_have_render): Private function to tell if we have RENDER
768         extension.
769
770         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
771         None if we don't have RENDER extension.
772
773         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
774         use Xft unless we have render extension.
775
776         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
777         Handle missing render extension.
778
779         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
780         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
781         to the GdkDrawable vtable that extends get_image() to allow
782         copying onto existing images.  Make the default implementation of
783         get_image() use this so that backends don't have to implement
784         both. Add private wrapper _gdk_drawable_copy_to_image().
785
786         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
787         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
788         copy_to_image() semantics, speed up by using ShmPixmaps and
789         XCopyArea when possible, XFlush() after ungrabbing the server,
790         generally redo the logic once again.
791
792         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
793         _gdk_windowing_bits_per_depth(): Function to convert from depth to
794         bits-per-pixel. (We assume only one bpp per depth - X requires
795         this.)
796
797         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
798         scratch image code into a generic _gdk_image_get_scratch() chunk
799         of code that we can use other places we need scratch images.
800
801         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
802         Add _gdk_image_new_for_depth() as the backend 
803         to _gdk_image_new() to allowing creating images with
804         a depth and no visual.
805
806         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
807         parts of images not at 0,0 actually works.
808
809         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
810         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
811          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
812           _gdk_draw_pixbuf() [ will be made public later ], to allow 
813           backends to accelerate drawing pixbufs. 
814          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
815            to be the default implementation. 
816          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
817          - Optimize the default implementation by using 
818            _gdk_image_copy_to_pixmap() and scratch shared images, and
819            special casing the compositing.
820
821         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
822         with alpha using the RENDER extension.
823
824         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
825         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
826
827         * tests/testrgb.c: Add test for speed of alpha composition,
828         reduce the number of iterations since alpha composition
829         can be a bit slow.
830
831         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
832         Private function to get a ShmPixmap for an image, if possible.
833
834 2002-01-04  Anders Carlsson  <andersca@gnu.org>
835
836         * tests/testtreesort.c: Add my cool list of integers.
837
838 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
839
840         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
841         problem where retrieved atoms weren't properly returned.
842
843 2002-01-03  Anders Carlsson  <andersca@gnu.org>
844
845         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
846         tab is pressed and the text view isn't editable, 
847         move the focus instead.
848
849         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
850         necessary.
851
852         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
853
854         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
855
856         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
857         if it's NULL.
858
859         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
860         _gtk_tree_view_queue_draw_node.
861         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
862
863         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
864         sort_column_id can be 0.
865
866         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
867         Only redraw one the node being selected.
868
869         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
870         
871 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
872
873         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
874         realized but visible && !mapped resize containers (which is
875         possible with unset CHILD_VISIBLE now).
876
877 2002-01-02  jacob berkman  <jacob@ximian.com>
878
879         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
880         libsomething_la_LDFLAGS, so fix the build again
881
882 2002-01-01  Havoc Pennington  <hp@pobox.com>
883
884         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
885         exposes to no window children not in the buffer window.
886         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
887         - is this the right way to do it?
888         (gtk_text_view_focus): add focus method, just chains up for now, 
889         I'm not sure why the GtkContainer implementation doesn't work
890
891         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
892         in the text line for the child anchor segment
893
894         * tests/testtext.c (do_add_focus_children): add another test
895         example (to put focusable buttons into the widget)
896
897 2002-01-01  Havoc Pennington  <hp@pobox.com>
898
899         * docs/README.linux-fb: note that this file is obsolete
900
901         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
902         files that they should not be edited and look in the reference 
903         manual instead. Probably these files should just be replaced by 
904         the note, and their main contents deleted.
905
906         * gtk/gtktextview.c: docs
907
908         * gtk/gtktextmark.c: docs
909
910         * gtk/gtktextchild.c: docs
911
912         * gtk/gtktextbuffer.c: docs stuff
913
914         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
915         give people more leads in sorting out PRIMARY vs. CLIPBOARD
916
917 2002-01-01  Tor Lillqvist  <tml@iki.fi>
918
919         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
920         ../gdk-pixbuf/gdk-pixbuf-csource.
921
922 2001-12-31  Tor Lillqvist  <tml@iki.fi>
923
924         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
925         handling.
926         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
927
928         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
929         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
930         one more place.
931
932         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
933         -Wall.
934
935         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
936
937 2002-01-01  Havoc Pennington  <hp@pobox.com>
938
939         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
940         fix
941         
942 2002-01-01  Havoc Pennington  <hp@pobox.com>
943
944         * gtk/gtktextview.c (changed_handler): Replace call to
945         gtk_widget_size_request() that expected to actually compute the
946         request with a direct use of widget_class->size_request, so we get
947         our size request right; fixes remaining part of #63065 reported by
948         Matthias Clasen
949
950 2001-12-31  Havoc Pennington  <hp@pobox.com>
951
952         * tests/testtext.c (do_insert_and_scroll): remove backward_char
953         since we no longer have bogus newline
954         (dialog_response_callback): remove another backward_char horkage, 
955         reported by Matthias Clasen #63065
956
957 2001-12-31  Havoc Pennington  <hp@pobox.com>
958
959         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
960         fix an incorrect assertion that the "valid" flag is always correct
961         in a node and add explanatory comment. This keeps me from 
962         reproducing #59101, but I'm remembering that 59101 was actually 
963         about incorrect pixel totals, so I'm not sure 59101 is actually 
964         fixed. May just have stopped happening due to some change in 
965         how C-k works.
966
967 2001-12-31  Havoc Pennington  <hp@pobox.com>
968
969         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
970         selection if shift is down, bug #50939
971         (gtk_text_view_button_press_event): add double/triple click
972         selection to the current selection if shift is down
973
974 2001-12-31  Havoc Pennington  <hp@pobox.com>
975
976         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
977         to use ensure_byte_offsets not ensure_char_offsets, patch 
978         from Padraig O'Briain bug #67356
979         
980 2001-12-30  Havoc Pennington  <hp@pobox.com>
981
982         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
983         the right values, reported by Jeff Franks
984
985 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
986
987         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
988
989 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
990
991         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
992         Minor documentation tweaks.
993
994 2001-12-28  Tor Lillqvist  <tml@iki.fi>
995
996         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
997         (unicode_classify): Don't return -1 on encountering an
998         unclassified character, but play it safe and return U_BASIC_LATIN.
999
1000 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
1001
1002         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
1003         of misc->xpad/ypad consistent with GtkLabel. Do 
1004         directional flipping when interpreting misc->xalign/yalign.
1005         Fix off-by-one error for negative x,y. (#67472, reported
1006         by Mathieu Lacage)
1007
1008 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
1009
1010         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
1011         Remove optimization that was causing problems because
1012         we called gtk_widget_size_request() before we called
1013         gtk_widget_queue_resize() so RESIZE_NEEDED was not
1014         set. Optimization shouldn't mattter now that we
1015         are smart about needlessly size requesting or allocating
1016         widgets. (#67598, reported by Jacob Berkman)
1017
1018 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
1019
1020         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
1021         Call gdk_window_get_pointer() on menu->bin_window not
1022         menu->window, so we get the correct window for the
1023         menu item. (#65213, Guillermo S. Romero)
1024
1025 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
1026
1027         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
1028         the title by setting to NULL. Move docs inline. 
1029         Update the title if the tearoff window already
1030         exists. Code cleanup. (Fixes #65190, reported by
1031         Vitaly Tishkov.)
1032
1033 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
1034
1035         * gtk/gtksocket.c (gtk_socket_key_press_event): 
1036         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
1037         special handling of key presses unless we are doing 
1038         iter-app embedding. (Fixes #67590, Anders Carlsson)
1039
1040 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
1041
1042         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
1043         (gtk_tree_model_sort_sort_level),
1044         (gtk_tree_model_sort_insert_value): fix a few places where
1045         I was confused between modelsort iters and other iters. This was
1046         really going to happen someday ;)
1047
1048 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
1049
1050         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
1051         we are unprelighted before reordering
1052
1053         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
1054         need to break out of the for loop, not return (this fixed
1055         the 'selection freeze' bug).
1056
1057         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
1058         be pretty stable now, though it still needs some more code
1059         cleanups.
1060
1061 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
1062
1063         * docs/Changes-2.0.txt: Document the fact that
1064         gtk_paned_set_handle_size() has been removed.
1065
1066         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
1067         since it pointed to gtk_paned_set_handle_size(), which
1068         was removed. (#66760, Matt Wilson)
1069
1070 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
1071
1072         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
1073         gtk_drag_hightlight_expose _after_, so it works with
1074         widgets that paint there entire background. (#66735)
1075
1076 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
1077
1078         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
1079         allocation to widget->allocation. (Fixes #67290,
1080         Chris Phelps.)
1081
1082 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
1083
1084         (#67542, reported by Anders Carlsson)
1085         
1086         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
1087         rc_style->font_desc with defaul style instead of replacing
1088         it.
1089
1090         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
1091         font descriptions in RC styles by calling
1092         pango_font_description_merge(). 
1093
1094 2001-12-24  James Henstridge  <james@daa.com.au>
1095
1096         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
1097         valid with both SGML and XML.
1098
1099 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
1100
1101         * configure.in: 1.3.12, interface, binary age 0.
1102
1103         * configure.in: Require new versions of Glib, Pango, ATK.
1104
1105         * NEWS: Updated.
1106
1107         * configure.in: Make explicit what libtool we are executing.
1108         (Tomas Ogren)
1109
1110         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
1111
1112         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
1113         parameter names for docs.
1114
1115 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
1116
1117         * gtk/gtkwindow.c (gtk_window_realize) 
1118           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
1119
1120         * gtk/gtkentry.c (gtk_entry_key_release)
1121           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
1122         key release events to the input method.
1123
1124         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
1125         Handle release of Control/Shift to end hex sequence.
1126
1127         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
1128         Handle key releases as well as presses.
1129
1130 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
1131
1132         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
1133
1134         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
1135         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
1136         documentation about underscores and mnemonics. (#66380)
1137
1138         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
1139         cyclic reference in docs.
1140
1141         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
1142         of default value. (#65402)
1143
1144         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
1145         Markup fixes.
1146
1147 2001-12-20  Anders Carlsson  <andersca@gnu.org>
1148
1149         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
1150         map here.
1151
1152 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
1153
1154         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
1155         (reported by Jeff Franks.)
1156
1157 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
1158
1159         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
1160         prototype for direction_changed. (Reported by
1161         Jeff Franks.)
1162
1163 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
1164
1165         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
1166         Fix typo (list->data becomes list->next)
1167
1168 2001-12-06  Havoc Pennington  <hp@redhat.com>
1169
1170         Add Unicode control char menu, based on patch from Dov.
1171         Bug #63495
1172         
1173         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
1174         gtk_entry_enter_text
1175         (gtk_entry_enter_text): function to do "typing in text"
1176         (popup_targets_received): add the Unicode menu items
1177
1178         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
1179         on Input Methods item, and add the unicode menu items.
1180
1181         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
1182         used in GtkEntry and GtkTextView - may become public later.     
1183
1184 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
1185
1186         * gtk/gtkprogressbar.c: Fix a typo.
1187         * gtk/gtkpaned.c: Fix a typo.
1188         
1189 2001-12-15  Darin Adler  <darin@bentspoon.com>
1190
1191         Fix some warnings.
1192
1193         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
1194         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
1195         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
1196         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
1197         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
1198         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
1199         Restructure loop to get rid of uninitialized variable warning. Also
1200         gives a tiny efficiency gain.
1201
1202 2001-12-15  Murray Cumming  <murrayc@usa.net>
1203
1204         * Fixed first arg type of GtkScale's "format_value" signal's
1205         function pointer.
1206
1207 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
1208         docs/reference/gtk/tmpl/gtkcelleditable.sgml
1209                 gtkcelleditable -> GtkCellEditable
1210         docs/reference/gtk/tmpl/gtktreesortable.sgml
1211                 gtktreesortable -> GtkTreeSortable
1212
1213 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1214
1215         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
1216         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
1217         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
1218         resp.
1219
1220 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
1221
1222         * gtk/gtktreeview.c (validate_visible_area): free path
1223         at the end
1224
1225 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
1226
1227         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
1228
1229 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
1230
1231         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
1232         to find the clicked node in the tree when tree == NULL
1233
1234 2001-12-13  Anders Carlsson  <andersca@gnu.org>
1235
1236         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
1237         event->state with the default mod mask. 
1238
1239 2001-12-12  jacob berkman  <jacob@ximian.com>
1240
1241         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
1242
1243 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
1244
1245         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
1246         Reset the existing slave before removing it to give
1247         it a chance to commit and emit "preedit_changed" 
1248         in case there was still a preedit string.
1249
1250 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
1251         
1252         * gtk/gtktextlayout.c: Typo fixes
1253         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
1254
1255         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
1256         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
1257
1258         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
1259
1260 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
1261
1262         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
1263         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
1264
1265 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
1266
1267         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
1268         "prepainting" the menu before realizing other than
1269         via gtk_style_set_background() - this was broken when
1270         we added menu scroll support.
1271
1272         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
1273         window in the expose event -- fixes problem with border
1274         flashing during scrolling.
1275
1276 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
1277
1278         * gtk/gtksettings.c (gtk_settings_get_property): Support
1279         using names/nicks for the gdk_settings values for enum valued
1280         types. (#57678, reported by Anders Carlsson)
1281
1282 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
1283
1284         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
1285         with insert_page_menu.  Code duplication is bad.
1286
1287         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
1288         wrong fix yesterday.
1289
1290 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
1291
1292         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
1293         modifiers.
1294
1295 2001-12-12  James Henstridge  <james@daa.com.au>
1296
1297         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
1298         (menu_item)->accel_path first when looking up the accel path.
1299
1300 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
1301
1302         * tests/testgtk.c (layout_expose_handler): Only draw
1303         for events on the bin window.
1304
1305 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
1306
1307         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
1308         mnemonics work with notebooks.
1309
1310 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
1311
1312         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
1313         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
1314         Makes some flicker while scrolling go away.
1315
1316 2001-12-11  Michael Natterer  <mitch@gimp.org>
1317
1318         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
1319         adds alpha to the pixbuf; re-load the saved pixbuf and
1320         pixel-by-pixel compare it with the original one.
1321
1322 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
1323
1324         * ChangeLog: Fix wrong ChangeLog entry
1325         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
1326         right corner
1327
1328 2001-12-10  jacob berkman  <jacob@ximian.com>
1329
1330         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
1331         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
1332         (gdk_keyboard_grab): do not grab things if the nograb debug flag
1333         is set
1334
1335         * gdk/gdkinternals.h: 
1336         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
1337         keyboard / mouse
1338
1339 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
1340
1341         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
1342         didn't reset the timer.
1343
1344 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
1345
1346         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
1347
1348 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
1349
1350         * gtk/gtkviewport.c: Add docs.
1351
1352 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
1353
1354         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
1355         RBTree corruption bug--
1356
1357 2001-12-10  Anders Carlsson  <andersca@gnu.org>
1358
1359         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
1360         if edited_column is NULL, also grab focus before removing
1361         the cell_editable.
1362
1363 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
1364
1365         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
1366           denominator in the horizontal case just like we do in the vertical
1367           case (why I didn't notice that there were two cases the first time
1368           around is beyond me:).  Also fix indentation in the vertical case.
1369
1370 2001-12-09  Anders Carlsson  <andersca@gnu.org>
1371
1372         * gdk/x11/gdkevents-x11.c: Update xsettings name.
1373
1374         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
1375         gtk-dnd-drag-threshold GtkSetting.
1376
1377         * gtk/gtksettings.c (gtk_settings_class_init): Add 
1378         setting for dnd drag threshold.
1379
1380 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
1381
1382         * gtk/gtkcontainer.c: Add docs.
1383
1384 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
1385
1386         * gtk/gtkwidget.c: Doc markup fix. 
1387
1388         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
1389
1390         * gtk/gtktreestore.c: Typo fixes. (#66445)
1391
1392         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
1393
1394         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
1395         to gtk_clipboard_set_with_owner(). (#66424)
1396  
1397 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
1398
1399         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
1400         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
1401         Fabrice Bellet <fabrice@gnu.org>, #54127).
1402
1403 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
1404
1405         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
1406         of places, so that people with crashy trees can just run their
1407         program with GTK_DEBUG=TREE.
1408
1409 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
1410
1411         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
1412         per jrb's request
1413
1414 2001-12-08  Anders Carlsson  <andersca@gnu.org>
1415
1416         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
1417         since then the default GtkLayout expose handler won't be called.
1418
1419 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
1420
1421         * gtk/gtktreeview.c (validate_rows_handler): remove
1422         g_return_if_fail.
1423
1424         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
1425         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
1426         empty model.
1427
1428 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
1429
1430         * gtk/gtktreeview.c (validate_visible_area): get logic right,
1431         #66249
1432
1433         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
1434         removing a node ended up with a corrupt tree.  Really really nasty
1435         bug.
1436         (_gtk_rbtree_debug_spew): new debug helper function
1437         (_fixup_validation): new inline function to clean up code
1438         readability a lot. 
1439
1440 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
1441
1442         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
1443         Close comment.
1444
1445 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
1446
1447         * gtk/gtkstyle.h: Typo fixes.
1448
1449         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
1450
1451         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
1452
1453 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
1454
1455         * modules/input/gtkimcontextxim.c: Display the XIM
1456         status callbacks with a popup window. (Patch from
1457         HideToshi Tajima, #50628, somewhat modified.)
1458
1459 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
1460
1461         * gtk/Makefile.am: each source generation rule needs to use its own
1462         temporary file, to avoid clashes for parallel builds. fixed rules
1463         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
1464
1465 2001-12-07  Havoc Pennington  <hp@pobox.com>
1466
1467         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
1468         "cursors that are actually useful" in gdk_cursor_new() docs
1469
1470 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
1471
1472         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
1473         in computing the size of the second child.
1474
1475 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
1476
1477         * gtk/gtkrange.c: Make button 1 clicks on the trough
1478         do pages, button 3 steps. (Patch from Hans Breuer
1479         #63735)
1480
1481 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
1482
1483         * gtk/gtklabel.c: Fix docs. (#66383)
1484
1485         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
1486         (#66278, #66280)
1487         
1488         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
1489         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
1490
1491         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
1492         Don't emit a g_warning() about being deprecated. (#66208)       
1493
1494         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
1495
1496         * gtk/gtkcontainer.c: Doc fixes.
1497         
1498         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
1499
1500         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
1501
1502 2001-12-05  Sven Neumann  <sven@gimp.org>
1503
1504         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
1505
1506         * gtk/queryimmodules.c: g_dir_read_name() returns const.
1507
1508 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
1509
1510         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
1511         #66225
1512         
1513 2001-12-04  Manish Singh  <yosh@gimp.org>
1514
1515         * gtk/gtkmain.c
1516         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
1517         a gpointer.
1518
1519         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
1520         correction to docs.
1521
1522         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
1523
1524 2001-12-04  Havoc Pennington  <hp@redhat.com>
1525
1526         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
1527         g_assert_not_reached() that was bogus, since we demand-create the
1528         tag info. reported by Chris Phelps
1529
1530         Jump through assorted hoops to fix bug from Chris Phelps where 
1531         removing tags from the table resulted in btree trying to 
1532         access tag->table
1533         
1534         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
1535         ourselves to the tag table
1536
1537         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
1538         (_gtk_text_tag_table_remove_buffer): private cruft to 
1539         let us notify buffer of disappearing tags
1540
1541         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
1542         header, put it in tagprivate    
1543
1544         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
1545         tag_removed; it's emitted too late.
1546         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
1547         this
1548
1549         Padding for ABI-compat expansion
1550         
1551         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
1552         (struct _GtkTextAppearance): one pad in here too
1553
1554         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
1555
1556         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
1557         since action signals etc. seem pretty likely
1558
1559         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
1560
1561         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
1562
1563         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
1564
1565 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
1566
1567         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
1568
1569         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
1570
1571         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
1572
1573 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
1574
1575         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
1576         #62084.
1577
1578 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
1579
1580         * demos/gtk-demo/main.c: (create_tree): Minor fix.
1581
1582         * docs/tree-column-sizing.txt: Update
1583
1584         * gtk/gtkrbtree.[ch]: Massive work to support validation.
1585
1586         * gtk/gtktreemodel.c: Doc fixes.
1587
1588         * gtk/gtktreeview.c: Incremental reflow added.
1589         * gtk/gtktreeviewcolumn.c: ditto
1590         * gtk/gtktreeviewcolumn.h: ditto
1591
1592 2001-12-04  Havoc Pennington  <hp@redhat.com>
1593         
1594         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
1595         "invisible" property, #65999
1596
1597 2001-12-04  Matt Wilson  <msw@redhat.com>
1598
1599         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
1600
1601 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
1602
1603         * gtk/gtksettings.c (gtk_settings_set_property_value):
1604         Simplify, make more efficient and fix memory leak
1605         when turning quark into a string. (#66103, HideToshi
1606         Tajima)
1607
1608         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
1609         init() and unref priv->tooltips in destroy rather
1610         than calling gtk_object_destroy() which has no
1611         effect on memory management. (#66104, HideToshi
1612         Tajima)
1613
1614         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
1615         so we free the when the object is freed. (Fixes memory
1616         leak, #66096, HideToshi Tajima)
1617
1618         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
1619         a full GdkEvent structure to avoid reads of uninitialized/
1620         invalid memory in gdk_event_put() (#65877, patch
1621         from Hidetoshi Tajima)
1622
1623 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
1624
1625         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
1626         toggle-size-request doesn't take a requisition.
1627
1628         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
1629         reference to marshaler that no longer exists.
1630
1631 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
1632
1633         Patch from Bill Haneman (with many modifications) to make
1634         the focus color work on dark themes and to make the
1635         focus line width configurable. (#61079, #63074)
1636
1637         * gtk/gtkwidget.c: Add style properties, 
1638         ::focus-widget, ::focus-line-width, and ::focus-padding.
1639
1640         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
1641         state argument as well so we can use fg[STATE] to
1642         draw instead of always drawing with black. 
1643         Cange paint_focus() to respect GtkWidget::focus-width
1644         and GtkWidget::focus-line-pattern. Fix continuity
1645         problem where the default 1-1 stipple had a blob
1646         in one corner and a gap in the other. Change the
1647         interpretation of x/y/width/height to be the bounding
1648         box of the focus rect instead of the rectangle
1649         passed to gdk_draw_rectangle.
1650
1651         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
1652         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
1653         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
1654         and ::focus-line-padding.
1655
1656         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
1657         and remove duplicated code; fix drawing of focus rectangle
1658         when interior-focus = FALSE. (#63072, #63073)
1659
1660         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
1661         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
1662         Range and TreeViewColumn will need more extensive fixing.
1663
1664         * gtk/gtkcolorsel.c: Honor focus line attributes when
1665         drawing the focus on the color swatches. (#63071)
1666
1667         * gtk/gtkhsv.c: Honor focus line attributes when
1668         drawing the focus for the ring and triangle.
1669
1670         * docs/widget_geometry.txt: Start at documenting how 
1671         various widgets are drawn.
1672
1673         * gtk/gtkbutton.c (_gtk_button_paint): Export 
1674         _gtk_button_paint() librarywide, so we don't have 
1675         duplicate a bunch of code in gtktogglebutton.c.
1676
1677         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
1678
1679 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
1680
1681         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
1682         NONE:POINTER.
1683
1684 2001-12-03  Alex Larsson  <alexl@redhat.com>
1685
1686         * gtk/gtkaccellabel.c:
1687         * gtk/gtkarrow.c:
1688         * gtk/gtkcolorsel.c:
1689         * gtk/gtkcontainer.c:
1690         * gtk/gtklabel.c:
1691         * gtk/gtktextview.c:
1692         * gtk/gtktogglebutton.c:
1693         * gtk/gtktreeview.c:
1694         * gtk/gtkwindow.c:
1695         Return FALSE from expose handlers.
1696
1697 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
1698
1699         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
1700         we use pointers, we should free the previous pointer first (if
1701         it exists), before we set a new pointer. (#64726)
1702
1703         * gtk/gtktreeprivate.h: get rid of cursor_drag
1704
1705         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
1706         for cursor_drag
1707         (gtk_tree_view_bin_expose): don't directly return in the while
1708         loop
1709         (gtk_tree_view_class_init): indentend expanders by default
1710         (gtk_tree_view_header_focus): only give the button focus
1711         if it's clickable, visible and the column is reorderable
1712         (#65539)
1713
1714         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
1715         create and free cursor
1716
1717 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
1718
1719         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
1720         some bugs with size requisition. (From Bill Haneman)
1721
1722         * gtk/gtkcalendar.c: Draw headers and selection in 
1723         base/text[SELECTED] instead of fg/bg[SELECTED].
1724
1725         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
1726         code and formatting.
1727
1728 2001-12-03  Havoc Pennington  <hp@pobox.com>
1729
1730         * gtk/gtktextview.c (set_window_height): 
1731         (set_window_width): Hmm, setter functions normally assign the new
1732         value to the object field. Reported by Chris Phelps.
1733
1734 2001-11-30  jacob berkman  <jacob@ximian.com>
1735
1736         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
1737         signal id to 0 after we disconnect from it
1738
1739 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
1740
1741         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
1742         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
1743         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
1744         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
1745
1746         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
1747         GTK_DISABLE_DEPRECATED.
1748
1749         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
1750         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
1751
1752 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
1753
1754         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
1755         move/resize code, removing various bad, non-functional
1756         hacks. (Fixes #65048, reported by Damon Chaplin.)
1757
1758 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
1759
1760         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
1761         bad match error when target drawable is not the 
1762         same depth as the root window. (#65841)
1763
1764         * HACKING: Update.
1765
1766 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
1767
1768         * gdk/gdkwindow.c: Typo fix.
1769
1770 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
1771
1772         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
1773         empty menu items to behave like insensitive items (#59456)
1774
1775         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
1776         next item if the first item in the menu is a tear off item
1777         (#59456-2, suggestion by Matthias Clasen)
1778
1779         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1780         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
1781         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
1782         (gtk_real_menu_shell_activate_current): add check, so empty
1783         menu items behave like insensitive items (#59456)
1784         
1785         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
1786         the checks more readable ...
1787         
1788         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1789         (gtk_menu_shell_button_release): causes the menu to dropdown if the
1790         caption is clicked again (#64977)
1791
1792 2001-11-29  Havoc Pennington  <hp@redhat.com>
1793
1794         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1795         assertion here that we were at the end iterator was not correct;
1796         change code to move us to the end iterator. bug #65731
1797
1798 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
1799
1800         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
1801         improper use of g_locale_to_utf8() to convert from
1802         latin-1, and do it the easy way by building the string
1803         correctly in the first place.
1804
1805 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
1806
1807         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
1808         Convert atoms to and from atoms for properties of type XA_ATOM.
1809         (#65555, patch from Hidetoshi Tajima)
1810
1811 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
1812
1813         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
1814         to avoid problems with Objective C.
1815
1816 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
1817         
1818         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
1819
1820         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
1821         Fix docs. (#65505)
1822
1823         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
1824
1825 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
1826
1827         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
1828         accounting of menu->tearoff_scrollbar width to here
1829         and make sure we have the correct requisition.
1830
1831         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
1832         by using gtk_window_move().
1833
1834         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
1835         the requisition to be updated by calling
1836         gtk_widget_size_request() (#65440)
1837
1838         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
1839         queue resize before calling gtk_menu_set_tearoff_state().
1840
1841 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
1842
1843         * demos/gtk-demo/editable_cells.c: fix typo
1844
1845         * demos/gtk-demo/list_store.c (add_columns): remove call to
1846         gtk_tree_view_column_set_clickable which didn't make sense
1847
1848 2001-11-28  Havoc Pennington  <hp@redhat.com>
1849
1850         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
1851         explaining the validation error in front of the G_BREAKPOINT
1852
1853         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
1854         process updates with include_children = FALSE instead of TRUE, so
1855         we redraw the range only, not the whole darn window.  Making
1856         GtkRange a NO_WINDOW widget had weirdly caused the text widget
1857         Trace/breakpoint trap bug to become much easier to trigger.
1858
1859 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
1860
1861         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
1862         to gdkcursors.h.
1863
1864 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
1865
1866         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
1867
1868         * gdk/gdkcursor.h: Directly include the contents
1869         of gdkcursors.h in the GdkCursorType enum.
1870
1871         * gdk/gdkcursors.h: Deleted.
1872
1873         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
1874         header boilerplate.
1875
1876         * gdk/Makefile.am: Remove the X-derived-headers rule.
1877
1878 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
1879
1880         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
1881         Notify on the ::active property _here_, not in
1882         gtk_check_menu_item_set_active.
1883
1884 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
1885
1886         * gtk/gtkcellrendererpixbuf.c
1887         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
1888         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
1889
1890 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
1891
1892         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
1893         comment about what is going on in this file.
1894
1895         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
1896         x/y problem.
1897
1898 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
1899
1900         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
1901         Calculate size based on the _child_ of the menu item,
1902         not the menuitem. (#65005, Damon Chaplin)
1903
1904         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
1905         some extra vertical padding to the label widget ... restores
1906         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
1907
1908 2001-11-26  Tor Lillqvist  <tml@iki.fi>
1909
1910         * demos/pixbuf-demo.c
1911         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
1912
1913         * demos/gtk-demo/main.c (read_line): No flockfile() or
1914         getc_unlocked() on Win32.
1915
1916 2001-11-25  Tor Lillqvist  <tml@iki.fi>
1917
1918         * configure.in
1919         * acconfig.h: As we now use GDir, no need to check for dirent.h.
1920
1921 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
1922
1923         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
1924         when finished (#65266)
1925
1926 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
1927
1928         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
1929         data after we set the property. (#65264)
1930
1931 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
1932
1933         * gtk/gtkbutton.c: add destroy method so label_text gets freed
1934         if it has been allocated (#65268)
1935
1936 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
1937
1938         * gdk/linux-fb/gdkdrawable-fb2.c
1939         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
1940
1941         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
1942
1943         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
1944         set_family
1945         
1946         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
1947
1948 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
1949
1950         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
1951         deactivate menu when menu_item isn't sensitive (#61389)
1952
1953 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
1954
1955         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
1956         we return (in case of a failure here)
1957
1958 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
1959
1960         * gtk/gtknotebook.c: Handle events in windows other
1961         than widget->event_window properly. (#65079, reported
1962         by Damon Chaplin)
1963
1964         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
1965
1966 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
1967
1968         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
1969         the image at the top. (#65020, request from Seth Nickell)
1970
1971 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
1972
1973         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
1974         arithmetic that was resulting in rows being drawn too low.
1975         (#65001, reported by Damon Chaplin)
1976
1977 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
1978
1979         * gtk/gtkrange.c (gtk_range_button_press): Offset 
1980         invalidated range correctly.
1981
1982         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
1983         of title window. (#65001, reported by Damon Chaplin)
1984
1985         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
1986         horrible hack with use of ::event_after.
1987
1988 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
1989
1990         * Version 1.3.11
1991
1992         * configure.in (ATK_REQUIRED_VERSION): Require
1993         GLib-1.3.11, Pango-0.22, ATK-0.7.
1994
1995         * tests/prop-editor.c (property_widget): Restore
1996         to working as well as it did before.
1997
1998         * gtk/gtklistitem.h: Mark deprecated since it is
1999         an integral part of GtkList.
2000
2001         * demos/gtk-demo/demo-common.h: New header file,
2002         for a common functions not important to the meat
2003         of the demos.
2004         
2005         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
2006         function to search for a file used by the demo.
2007
2008         * demos/*.c: Use demo_find_file.
2009
2010 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
2011
2012         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
2013         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
2014         fixes already mentioned in ChangeLog entry on 2001-11-14.
2015
2016         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
2017
2018 2001-11-23  Hans Breuer  <hans@breuer.org>
2019
2020         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
2021         reflect Pango API change
2022
2023         * gtk/gtk.def : updated externals
2024
2025         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
2026         g_return_val_if_fail() to avoid 'function must return a value'
2027
2028         * gtk/gtkrc.c : added spaces to fix small coding style issues
2029         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
2030         'static correctness'
2031
2032         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
2033         because they only can be build on win32 after applying my patch
2034
2035 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
2036
2037         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
2038         children, in order for the input pnly window to stay *above*
2039         children.
2040
2041 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
2042
2043         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
2044         type walks againts G_TYPE_FUNDAMENTAL_MAX.
2045         
2046         * tests/prop-editor.c: disable type hackery.
2047
2048 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
2049
2050         * gdk/gdkimage.c (gdk_image_get): Fix problem with
2051         lost parameter.
2052
2053 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
2054
2055         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
2056         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
2057         trailing commas in enum declarations.
2058
2059 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
2060
2061         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
2062         interface, binary age 0.
2063
2064         * NEWS: Updates
2065
2066         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
2067         fixes in docs.
2068
2069         * gtk/gtkmain.h: Remove unused and misnamespaced
2070         get_gtk_win32_directory() prototype.
2071
2072         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
2073         to match header.
2074
2075         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
2076         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
2077         to match docs.
2078
2079         * gdk/gdkevents.c (gdk_event_get_coords)
2080           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
2081           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
2082         Fix parameter names in docs.
2083         
2084         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
2085         (#64961, Akira Tagoh)
2086
2087 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
2088
2089         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
2090
2091         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
2092
2093         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
2094
2095         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
2096         back to gtk_accel_groups_from_object(), change @acceleratable
2097         parameter to gtk_accel_groups_activate() accordingly.
2098
2099         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
2100         left-over comment about quark return.
2101
2102         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
2103
2104         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
2105         (Patch from Matt Wilson)
2106
2107         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
2108         object is finalized.
2109
2110 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
2111
2112         * applied patch from owen to get rid of accel map notifiers.
2113         changed things to fix reentrancy and API as discussed on gtk-devel.
2114
2115         * gtk/gtkaccelgroup.[hc]:
2116         (gtk_accel_group_finalize): unregister this accel group from all
2117         accel map paths.
2118         (accel_closure_invalidate): handle invalidation of closures by
2119         disconnecting their accelerators.
2120         (quick_accel_add): move closure connection and changed notification
2121         into this function to reduce code duplication. don't emit change
2122         notification on closurers without accelerators.
2123         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
2124         for a GtkAccelGroupEntry.
2125         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
2126         (gtk_accel_group_connect_by_path): new function to add accelerators
2127         with an accel path.
2128         (gtk_accel_group_disconnect_closure): new function, disconnect a
2129         closure from of an accel group.
2130         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
2131         accel_mods pair and remove them.
2132         (_gtk_accel_group_reconnect): new function that basically does
2133         gtk_accel_group_disconnect_closure() and
2134         gtk_accel_group_connect_by_path() once an accel path changed.
2135         (gtk_accel_groups_disconnect_closure): remove this, there's
2136         gtk_accel_group_disconnect_closure().
2137         
2138         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
2139         nuke notifiers.
2140         (_gtk_accel_path_is_valid): make this non-static for
2141         gtkwidget.c and gtkaccelgroup.c assertions.
2142         (gtk_accel_map_add_notifer): removed this function.
2143         (gtk_accel_map_remove_notifer): same.
2144         (_gtk_accel_map_add_group):
2145         (_gtk_accel_map_remove_group): (un-)register accel groups, with
2146         accel paths for correct propagation.
2147         (gtk_accel_map_add_entry): return void.
2148         (gtk_accel_map_lookup): return gboolean instead of GQuark.
2149         
2150         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
2151         set accel_path on widgets.
2152         
2153         * gtk/gtkwidget.[hc]:
2154         (accel_path_changed): got rid of this, changes are handled by
2155         accel maps internally now.
2156         (_gtk_widget_set_accel_path): get things to work without notifiers.
2157         (gtk_widget_list_accel_closures): list accel closures of a widget.
2158         
2159         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
2160
2161 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
2162
2163         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
2164
2165 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
2166
2167         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
2168         replace gboolean free_last in the function parameters with
2169         gint depth. Changes to reflect new situation.
2170
2171         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
2172         replace gboolean free_last, with gint depth, add gint current_depth.
2173         Changes to reflect new situation.
2174
2175         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
2176         to reflect new situation
2177
2178         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
2179
2180 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
2181
2182         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
2183         where notebook gap was double shifted by allocation.x/y
2184
2185         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
2186         to unmap children.
2187
2188 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
2189
2190         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
2191         allocation to be relative to paned->allocation, now
2192         that this is a NO_WINDOW widget.
2193         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
2194
2195         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
2196         needs to be a boxed property.
2197
2198 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
2199
2200         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
2201         Use the widget's state when drawing the indicator, as
2202         in GtkCheckButton. This gives us color changes for
2203         un-prelighted checkbuttons. (#63308, Matt Wilson)
2204
2205 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
2206
2207         (Fixes related to #64428, Michael Meeks)
2208
2209         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
2210         widget, so it gets mapped again properly when we
2211         add to a parent.
2212
2213         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2214         plug->socket_window. 
2215
2216         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
2217         socket_window to NULL, not FALSE.
2218
2219         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2220         socket->same_app to TRUE. (#64612)
2221
2222 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
2223
2224         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
2225         gtk_fixed_set/get_has_window() to remove criticism
2226         about GTK_WIDGET_SET_FLAGS() hacks.
2227
2228 2001-11-19  Michael Natterer  <mitch@gimp.org>
2229
2230         * gtk/gtknotebook.c: show notebook->event_window with
2231         gdk_window_show_unraised(), so it doesn't catch the events which
2232         should go to the tab widgets first.
2233
2234 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
2235
2236         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
2237         "resizable" property, to get rid of the
2238         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
2239         (gtk_tree_view_column_set_resizable): New function to set resizable.
2240         (gtk_tree_view_column_set_resizable): getter.
2241
2242         * tests/testtreecolumns.c (add_clicked): modify for above change.
2243
2244         * Makefile.am (install-data-hook): remove old .pc files before
2245         installing the new one.  We used to symlink this, and it will
2246         break old installs.
2247
2248 2001-11-19  Havoc Pennington  <hp@pobox.com>
2249
2250         * tests/testtext.c (fill_example_buffer): put in a test for
2251         negative indentation values
2252
2253 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
2254
2255         * gtk/gtklabel.c (gtk_label_init): Change default for
2256         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
2257         labels are most often wrapped labels, this gives better
2258         compatibility with GTK+-1.2, where justification was
2259         ignored for wrapped labesl and is a more sensible
2260         default in any case. (#64489)
2261
2262         * gtk/gtklabel.c (gtk_label_class_init): Fix default
2263         for wrap property to FALSE.
2264
2265 2001-11-19  jacob berkman  <jacob@ximian.com>
2266
2267         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
2268
2269 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
2270
2271         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
2272         RevertToParent, not RevertToNone. (#64613, 
2273         Matthias Clasen)
2274
2275 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
2276
2277         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
2278         and label_yalign need to be float properties to
2279         correspond to GTK+-1.2, to gtk_frame_set_label_align,
2280         and to the types of the xalign and yalign properties of GtkMisc.
2281         (#63484, Vitaly Tishkov)
2282
2283 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
2284
2285         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
2286         of plug_added vfunc. (#64408, Jeff Franks)
2287
2288 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
2289
2290         * configure.in (deps): Undef HAVE_STDLIB_H before
2291         checking for jpeg, because jconfig.h has this
2292         in it too (%#$@!). Fix from Matthias Clasen, #64500.
2293
2294 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
2295
2296         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
2297         memory leak when retrieving atom names. (Michael Meeks,
2298         #64508)
2299
2300 2001-11-18  Alex Larsson  <alexl@redhat.com>
2301
2302         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
2303         Update to new Pango API.
2304         
2305 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
2306
2307         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
2308         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
2309         GTK_OBJECT_DESTROYED() check macro.
2310
2311         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
2312         instances of GTK_OBJECT_DESTROYED() that weren't
2313         needed any more.
2314
2315         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
2316         for a connection to ::destroy.
2317
2318 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
2319
2320         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
2321         have been since the beginning, but as special hack,
2322         allow clearing the NO_WINDOW flag to get a window widget.
2323
2324 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
2325
2326         * gtk/gtktreestore.c: return TRUE when value changed, so
2327         row_changed is being emitted
2328
2329 2001-11-18  Hans Breuer  <hans@breuer.org>
2330
2331         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
2332         no label without op, even if it's a no-op.
2333
2334         * gtk/gtk.def :
2335         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
2336
2337         * config.h.win32.in : remove definition of HAVE_DIRENT_H
2338         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
2339         required anymore, replace it.
2340         * gtk/queryimmodules.c : DIR -> GDir replacement, also
2341         getcwd() -> g_get_current_dir()
2342
2343         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
2344         Even 'noisy laugh' scolling appears to work, though I still can't
2345         claim to have fully understood what it is supposed to do ...
2346
2347 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
2348
2349         * gtk/gtkenums.h: Include glib-object.h instead of
2350         gobject/gsignal.h
2351
2352         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
2353           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
2354         argument to the window_at_pointer() field of
2355         GdkPointerHooks. (Patch from Erwann Chenede)
2356
2357         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
2358         to 6 pointers.
2359
2360 2001-11-17  Matt Wilson  <msw@redhat.com>
2361
2362         * gtk/gtkenums.h: must include glib-object.h only
2363
2364 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
2365
2366         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
2367         key bindings in order of visibility - mnemonics, then 
2368         accelerators, then send key to the focus widget, then
2369         bindings on the GtkWindow.
2370
2371         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
2372         Removed the xoffset, yoffset fields of GtkLayout which were
2373         identically zero for compat with 1.2, but were no longer 
2374         compatible with all uses of these fields in 1.2.
2375
2376         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
2377         unused variable.
2378
2379 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
2380
2381         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
2382         We no longer need to create the signals here ... they
2383         come from the interface.
2384
2385         * gtk/maketypes.awk: Use GType, not GtkType in output.
2386
2387         * gtk/gtktypeutils.h: Mark virtually all of this
2388         file deprecated.
2389
2390         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
2391         the only use of this function is the GtkArg using
2392         GtkCallbackMarshal, since destroy notification is
2393         silly here.
2394
2395 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
2396
2397         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
2398         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
2399         only for compatibility with GTK+-1.2; and deprecate it; 
2400         put all marshalers we actually use into gtkmarshalers.list 
2401         and use the _gtk_marshal_ prefix for these marshalers.
2402
2403 2001-11-17  Murray Cumming  <murrayc@usa.net>
2404
2405         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
2406         The first parameters of the signals are now registered as
2407         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
2408         
2409 2001-11-17  Tor Lillqvist  <tml@iki.fi>
2410
2411         * gtk-zip.sh.in: Build separate runtime and developer
2412         packages.
2413
2414         * gtk/gtk.def: Reflect recent accelerator-related changes.
2415
2416 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
2417
2418         * gtk/gtkwindow.c (gtk_window_set_default): Move 
2419         notification of "has_default" to here, so it
2420         is safe to call gtk_window_set_default() instead
2421         of gtk_widget_grab_default().
2422
2423         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
2424         gtk_widget_grab_focus(), which then calls 
2425         _gtk_widget_internal_set_focus(). This makes 
2426         gtk_window_set_focus() a safe way of both setting
2427         and unsetting the focus widget.
2428
2429         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
2430         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
2431         to find the toplevel.
2432
2433         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
2434         from the "internal functions" section.
2435
2436 2001-11-16  jacob berkman  <jacob@ximian.com>
2437
2438         * tests/testgtk.c (create_radio_buttons): add some no-indicator
2439         radio buttons
2440
2441         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
2442         initially active, also initially be depressed
2443         (gtk_radio_button_clicked): also update our depressed state
2444
2445 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
2446
2447         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
2448         key press events not just to focus/window but also to
2449         intermediate widgets.
2450
2451         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
2452         to switch pages. (Needs some work on handling focus
2453         when switching pages.)
2454
2455 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
2456
2457         * gtk/gtknotebook.c: Fix child allocations to be relative to 
2458         widget position and some drawing bugs.
2459
2460         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
2461         with reading uninitialized variable.
2462
2463 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
2464
2465         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
2466         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
2467         NO_WINDOW widgets.
2468
2469         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
2470         cleanup.
2471
2472         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
2473         we are drawing in a window when drawing the paned handle.
2474
2475 2001-11-16  Sven Neumann  <sven@gimp.org>
2476
2477         * demos/gtk-demo/appwindow.c
2478         * demos/gtk-demo/menus.c: reduce compiler warnings
2479
2480 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
2481
2482         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
2483         unused callback to make things compile with 
2484         gtk_tree_view_path_at_pos_change().
2485
2486 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
2487
2488         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
2489
2490 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
2491
2492         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
2493  
2494 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
2495
2496         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
2497         to get a GdkWindow to compare event->window to.
2498
2499         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
2500         the signal for lateral motion too, #64361
2501
2502         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
2503         arg as it is useless, #64137
2504
2505 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
2506
2507         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
2508
2509 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
2510  
2511         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
2512         gdk_window_invalidate_maybe_recurse() for recursion.
2513         (Soeren Sandmann)
2514
2515         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
2516  
2517         * gtk/gtkcontainer.c (gtk_container_expose): Call
2518         gtk_container_forall() not _foreach() to propagate,
2519         since we need to propagate exposes to internal children
2520         as well.
2521
2522         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
2523         Remove the restriction of only being able to call these
2524         on window widgets, since we have lots of NO_WINDOW widgets
2525         with windows now; for add events, recurse over the children
2526         of widget->window to find one owned by the widget.
2527
2528         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
2529         window to catch events.
2530
2531         * gtk/gtktogglebutton.[ch]: Remove the code for switching
2532         between NO_WINDOW and WINDOW widgets based on the mode.
2533
2534         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
2535         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
2536
2537         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
2538
2539         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
2540         change for range.
2541
2542         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
2543  
2544         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
2545
2546 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
2547
2548         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
2549         "message_type" and "buttons" CONSTRUCT properties. (#64069)
2550
2551         * tests/testsocket.c: Expand tests to add a "local passive
2552         child" (Test case for #64428)
2553
2554 2001-11-14  jacob berkman  <jacob@ximian.com>
2555
2556         * gtk/gtkgamma.c (button_clicked_callback): create the label with
2557         a mnemonic
2558
2559 2001-11-15  Sven Neumann  <sven@gimp.org>
2560
2561         * tests/testgtk.c: make it compile without warnings.
2562
2563 2001-11-14  Alex Larsson  <alexl@redhat.com>
2564
2565         * gtk/gtklabel.c:
2566         Don't recalculate the layout on each gkt_label_ensure_layout () for
2567         wrapped labels.
2568
2569 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
2570
2571         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
2572         the currently selected column when we get the column, #64380
2573
2574         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
2575         to cancel CellRendererText editting, #63613
2576
2577         * gtk/gtkcellrenderertext.c: ditto
2578
2579         * gtk/gtkcellrenderertext.h: formatting changes
2580
2581 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
2582
2583         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
2584
2585         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
2586
2587         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
2588
2589         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
2590
2591         * gtk/gtklabel.c: Documentation fixes (#64452)
2592
2593 2001-11-14  Daniel Egger  <degger@fhm.edu>
2594
2595         * gdk-pixbuf/io-xpm.c: 
2596         (xpm_skip_whitespaces): Remove unused static function.
2597         (xpm_skip_string): Dito.        
2598         (xpm_extract_color): Declare const variable const to avoid warnings. 
2599
2600         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
2601         
2602         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
2603         
2604         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
2605         a long.
2606
2607 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
2608
2609         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
2610         out accidental commit of debugging timing code.
2611
2612 2001-11-14  Havoc Pennington  <hp@redhat.com>
2613
2614         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
2615         it doesn't move to a new line each time you press it
2616
2617         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
2618         return value, #62987
2619
2620 2001-11-14  Havoc Pennington  <hp@redhat.com>
2621
2622         * tests/testtextbuffer.c (main): bulk of the tests were commented
2623         out, oops.
2624
2625         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
2626         function work, should resolve #63426
2627         (gtk_text_iter_ends_line): return TRUE for the end iterator
2628
2629         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
2630         a couple things that might get cached in here.
2631
2632 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
2633
2634         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
2635         "model" construct property for language bindings.
2636
2637         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
2638         function to let you set the column types of a GtkTreeStore for
2639         language bindings.
2640
2641         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
2642
2643 2001-11-13  Havoc Pennington  <hp@redhat.com>
2644
2645         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
2646         including reference to bugzilla bug about how we should have 
2647         a better way of positioning children
2648
2649         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
2650
2651         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
2652         size to side rects if they don't exist, #63438
2653
2654 2001-11-13  Havoc Pennington  <hp@redhat.com>
2655
2656         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
2657         properly replace selection with Return or Tab
2658
2659         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
2660         that didn't locate the end of the line correctly, should fix #63800
2661
2662 2001-11-13  Havoc Pennington  <hp@redhat.com>
2663
2664         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
2665         to requisition, request non-anchored children
2666         (gtk_text_view_size_allocate): handle border width, allocate
2667         non-anchored children
2668         (text_view_child_new_window): set the child as object data
2669         (gtk_text_view_move_child): allow children at negative
2670         coordinates, no reason why not
2671         (gtk_text_view_forall): make it copy the list of children before
2672         walking it, to avoid reentrancy issues  
2673         (gtk_text_view_move_child): short-circuit if position is unchanged
2674         (changed_handler): only queue_resize if requisition has changed
2675         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
2676         a better job of invalidation ourselves
2677
2678         * tests/testtext.c: add tests for the fixed-position children
2679
2680 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
2681
2682         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
2683         with gdk threads macro.
2684
2685 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
2686
2687         * gtk/maketypes.awk: fix type utils generation on unix.
2688
2689         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
2690         registry.
2691
2692         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
2693         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
2694         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
2695         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
2696         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
2697         introduced ::accel_changed signal for change notification, and
2698         gtk_accel_group_connect/disconnect to connect closures to accel groups.
2699         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
2700         functions.
2701         deprecated gtk_accel_group_ref/unref.
2702
2703         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
2704         to accel group changed notification and basically operate on closures.
2705         removed gtk_accel_label_get_accel_object and
2706         gtk_accel_label_set_accel_object.
2707         introduced gtk_accel_label_set_accel_closure, and for convenience,
2708         gtk_accel_label_set_accel_widget.
2709
2710         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
2711         which mostly moved into gtkaccelmap.[hc].
2712         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
2713         and gtk_item_factory_print_func.
2714
2715         * gtk/gtkmain.c: call _gtk_accel_map_init().
2716
2717         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
2718         that associates an accelerator path with menu items, through which
2719         persistent accelerator settings on menu items are enabled.
2720
2721         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
2722         paths of menu item can be default constructed to allow installation
2723         of accelerators on menu items that don't come with an accelerator
2724         binding by default.
2725
2726         * gtk/gtksettings.c: fix STRING type rc settings by special casing
2727         them appropriately in the parser.
2728
2729         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
2730         gtk_signal_newv().
2731
2732         * gtk/gtkwidget.[hc]: accelerator API revamp.
2733         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
2734         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
2735         gtk_widget_(un)lock_accelerators.
2736         accelerators maintained through gtk_widget_add/remove_accelerator()
2737         are not runtime changable now, the correct sequence to setup a
2738         widget for runtime changable accelerators is now:
2739           gtk_accel_map_add_entry(accel_path, key, mods);
2740           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
2741
2742         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
2743         group changes (as well as mnemonic changes) through the new signal
2744         ::accels_changed.
2745
2746 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
2747
2748         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
2749         GString->string conversions.
2750
2751 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
2752
2753         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
2754         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
2755
2756 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
2757
2758         * gtk/gtktreeview.c: Documentation fixes. (#64377)
2759         
2760         * gtk/gtktreestore.c: Documentation fixes. (#64376)
2761
2762 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
2763
2764         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
2765         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
2766         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
2767         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
2768
2769 2001-11-10  Hans Breuer  <hans@breuer.org>
2770
2771         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
2772         we know what we are talking about when asked for MINMAXINFO.
2773         Also some cleaning for !HAVE_DIMM_H etc.
2774
2775 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
2776
2777         * gtk/gtktreeviewcolumn.c: Fix docs for 
2778         gtk_tree_view_column_set_sort_order. (#62647)
2779         
2780         * gtk/gtkcontainer.c: Fix docs for 
2781         gtk_container_set_border_width. (#64139)
2782
2783         * gtk/gtkcolorsel.c: Documentation fixes.
2784
2785 2001-11-10  Hans Breuer  <hans@breuer.org>
2786
2787         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
2788         don't have strcasecmp()
2789
2790         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
2791         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
2792         code duplication wrap it in its own function and use it in 
2793         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
2794
2795         * gdk/win32/gdkdrawable-win32.c : implement the finalize
2796         method like the X11 version does, allow to set_colormap NULL
2797         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
2798         set_colormap, also some adaption to X11 version :
2799         (gdk_window_hide) call _gdk_window_clear_update_area
2800         (gdk_window_reparent) call _gdk_window_init_position
2801
2802         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
2803         call gdk_window_resize() after all hints are set, because the
2804         window resizing process (WM_GETMINMAXINFO) takes all of them into 
2805         account
2806
2807         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
2808
2809         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
2810         sizeof (GdkVisualPrivate)
2811
2812         * gdk/gdk.def gtk/gtk.def : upated externals
2813
2814         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
2815           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
2816         from now on use make.msc from $(TOP)/glib/build/win32
2817
2818         * gtk/stock-icons/makefile.msc : add stock_missing_image
2819
2820 2001-11-08  Tor Lillqvist  <tml@iki.fi>
2821
2822         * README.win32: Add headers. Add section about ActiveIMM.
2823
2824         * configure.in: Add --with-ie55 flag to specify the location of
2825         the "IE55 libs and headers" package downloadable from Microsoft,
2826         which contains, among other things, the Active IMM header dimm.h
2827         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
2828         Require GLib 1.3.10.
2829         
2830         * config.h.win32.in: New version, produced by merging two
2831         configure-generated ones (for gcc and MSVC). Hopefully #defines
2832         the same flags that the previous, hand-written one, did.
2833
2834         * gdk/Makefile.am
2835         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
2836
2837         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
2838         stuff. Remove unused GdkIOClosure.
2839
2840         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
2841         available).
2842
2843         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
2844         for uuid.lib. (Does it really have to be this hard to use an
2845         existing library with libtool? Probably I am missing something.)
2846
2847 2001-11-08  Darin Adler  <darin@bentspoon.com>
2848
2849         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
2850         typo where it says LEFT instead of CENTER.
2851
2852 2001-11-07  Darin Adler  <darin@bentspoon.com>
2853
2854         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
2855         (gtk_dialog_set_default_response): Add g_return_if_fail.
2856
2857 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
2858
2859         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
2860         Add row_draggable() vfunc, and wrapper function.
2861
2862         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
2863         row_drop_possible take a GtkSelectionData, rather than
2864         model/row pair.
2865
2866         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
2867         new DND interfaces.
2868
2869         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
2870         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
2871         and rename them to enable_model_drag_source/dest.
2872
2873         * gtk/treeviewcolumn.c: Add DND of columns between rows.
2874         Still can't drop _to_ the left tree, but other places
2875         work.
2876
2877         * gtk/gtktreeview.c (unset_reorderable): Unset the
2878         reorderable property if unset/enable_model_drag_source/dest
2879         are called manually.
2880
2881         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
2882         Correct for change in depth count handling.
2883
2884         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
2885         Pass in a expose area to gtk_tree_view_column_cell_render()
2886
2887 2001-11-06  Havoc Pennington  <hp@redhat.com>
2888
2889         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
2890
2891 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
2892
2893         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
2894
2895 2001-11-05  Havoc Pennington  <hp@redhat.com>
2896
2897         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
2898         widgets in here
2899         (gtk_text_view_realize): set parent window of child widgets
2900         (gtk_text_view_size_request): use child req to decide whether
2901         to invalidate layout, not widget->requisition
2902
2903         * gtk/gtktextdisplay.c (render_layout_line): set
2904         shaped_width_pixels for NULL shape objects, so that we properly
2905         draw the "missing pixbuf/widget" thing
2906         (render_layout_line): don't draw the widget here
2907         (gtk_text_layout_draw): pass out a list of widgets that need exposing
2908
2909         * demos/gtk-demo/textview.c (insert_text): add demo of child
2910         widgets
2911
2912         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
2913
2914         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
2915
2916         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
2917         scroll offsets
2918         (gtk_text_view_value_changed): poke new X and Y into child allocations
2919
2920 2001-11-06  Tor Lillqvist  <tml@iki.fi>
2921
2922         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
2923         -specific directory on Windows, too (#63759).
2924
2925 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
2926
2927         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
2928         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
2929         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
2930         directly to Picture objects instead of using XftDraw.
2931         This fixes the problem where we weren't able to 
2932         properly destroy XftDraw objects before destroying
2933         the accompanying windows, and probably improves
2934         efficiency a bit too. (#50214)
2935
2936 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
2937
2938         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
2939         Clamp max window width/height to 32767, not 32768 since
2940         we have to be able to deal with a dx/y of -32768 without
2941         getting a width of 65536 when guffaw scrolling.
2942
2943         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
2944         for the guffaw scrolling case, fixing some problems with
2945         copy-area case as well. Fix BadValue bug with moving windows
2946         by large amounts.
2947
2948         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
2949         clip in window structue before calling gdk_window_invalidate_region
2950         since that trims new invalidations to the window's visible
2951         region.
2952
2953         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
2954         Really set the static window gravity on the children, not
2955         repeatedly on the window.
2956
2957         * gtk/testgtk.c: Add a torture test for big windows and 
2958         gdk_window_scroll().
2959
2960 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
2961
2962         * acconfig.h configure.in: sigsetjmp is macroized in some places,
2963         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
2964
2965 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
2966
2967         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
2968         in terms of pango_color_parse().
2969
2970         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
2971         gdk_color_parse() implementations.
2972
2973 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
2974
2975         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
2976         queue_resize_on_group with both the old and new mode, not
2977         just the new mode. (#60171, Nicolas Setton). Also, notify
2978         the "mode" property.
2979         
2980 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
2981
2982         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
2983         for use in "shallow invalidation" of a widget. (Windows belonging
2984         to the widget, but not to the widget's children)
2985
2986         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
2987         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
2988         up on ancestors up to the resize container on queue_resize. Size
2989         requests only actually take place if GTK_REQUEST_NEEDED, size
2990         allocations only take place if GTK_ALLOC_NEEDED or the size
2991         changed.
2992
2993         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
2994         container->resize_widgets and the RESIZE_NEEDED flag since the
2995         above flags are sufficient to figure out what needs to be
2996         resized/reallocated. Remove code manipulating
2997         container->resize_widget.
2998
2999         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
3000         allows widgets to turn off being automatically invalidated is when
3001         they are resized.
3002
3003         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
3004         a widget is resized or moved is "shallow" as described above -
3005         only the windows that need to be invalidated are invalidated.
3006
3007         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
3008         Make these widget's init functions call 
3009         gtk_widget_set_redraw_on_allocate(widget,FALSE).
3010
3011         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
3012         _gtk_container_queue_resize(), since we don't want
3013         redrawing. (Probably could be done for other 
3014         calls to gtk_widget_queue_resize() in gtkwindow.c,
3015         but this is the most important one.)
3016
3017         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
3018         gtk_widget_queue_draw() - size_allocate() handles
3019         that as appropriate.
3020
3021         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
3022         of queue_clear() to avoid invalidating children.
3023
3024 2001-11-04  jacob berkman  <jacob@ximian.com>
3025
3026         * gtk/gtkmain.c (find_module): don't free the module name until
3027         after we load the module
3028
3029 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
3030  
3031         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
3032         derivation instead of boxed derivation.
3033  
3034         * gtk/gtkmarshal.list: Remove some now unused marshallers.
3035  
3036 2001-11-04  Tor Lillqvist  <tml@iki.fi>
3037
3038         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
3039         include yesterday, without really thinking), as that defeats the
3040         working of correct_libdir_prefix() (it becomes a no-op.). Add
3041         comment mentioning that. Thanks to Hans Breuer for noticing.
3042         
3043 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
3044
3045         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
3046         signal argument (was GtkWidget*).
3047
3048         * gtk/gtkwindow.c (gtk_window_frame_event),
3049           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
3050         Fixed argument types as above, removed GTK_WINDOW casts and
3051         added some GTK_WIDGET casts instead.
3052
3053 2001-11-03  Hans Breuer  <hans@breuer.org>
3054
3055         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
3056         finalize to parent class to get removed from the toplevel_list.
3057         Should fix 'random' crashes of #63474.
3058
3059         * gtk/gtktreemodelsort.c : chain finalize() to parent class
3060
3061 2001-11-03  Tor Lillqvist  <tml@iki.fi>
3062
3063         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
3064         for .dll or .so as appropriate as module suffix.
3065
3066         * gtk-zip.sh.in: Use correct import library names.
3067
3068         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
3069
3070         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
3071         Windows to turn build-time paths from a gtk.immodules distributed
3072         as part of a binary package into runtime ones in the
3073         end-user-chosen installation directory.
3074         (gtk_im_module_init): Use it for module path and domain
3075         directory.
3076
3077 2001-11-02  Tor Lillqvist  <tml@iki.fi>
3078
3079         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
3080         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
3081         Windows.
3082
3083 2001-10-30  Tor Lillqvist  <tml@iki.fi>
3084
3085         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
3086         files. Configure on Win32 (running on Cygwin) thinks symlinks
3087         exist, but pkg-config is not necesarily a Cygwin program, and
3088         doesn't understand them.
3089
3090 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
3091
3092         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
3093         a bit.  I don't think it's completely correct yet, but it's
3094         getting there.
3095
3096 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
3097
3098         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
3099         random + 5 for width and height. If people want padding,
3100         they should add padding. (Note the +5 isn't padding
3101         that will always appear - it just appears in the case
3102         where the widget is allocated it's requisition.)
3103         (#51018, Janet Davis)
3104
3105 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
3106
3107         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
3108         the structure for future expansion.
3109
3110 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
3111
3112         Patch from HideToshi Tajima (#51922)
3113         
3114         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
3115
3116         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
3117         set_use_preedit().
3118         
3119         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
3120         to destroy the input context because we change the
3121         client window or use_preedit, make sure we empty
3122         the preedit string.
3123
3124 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
3125
3126         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
3127         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
3128         proposed ordering of buttons with [OK] in the lower
3129         right hand corner. Patch from Gregory Merchan,
3130         #56331.
3131
3132 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
3133
3134         * gtk/gtklabel.c (gtk_label_select_region_index): remove
3135         extraneous gtk_label_clear_layout (label)
3136
3137 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3138
3139         * tests/makefile.msc, gtk/makefile.msc.in: Removed
3140         -DGTK_DISABLE_COMPAT_H.
3141
3142         * docs/Changes-2.0.txt:
3143         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
3144
3145         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
3146
3147 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
3148
3149         * examples/**/Makefile.am: Convert to use pkg-config
3150         rather than gtk-config. (#53375, Skip Montanaro)
3151
3152 2001-11-02  Matt Wilson  <msw@redhat.com>
3153
3154         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
3155         broken unused, non-compiling, static function.
3156
3157 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
3158
3159         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
3160         Iterate through children of the action area, not of
3161         the vbox. (#58278, Sergey Kuzminov)
3162
3163 2001-11-01  Havoc Pennington  <hp@pobox.com>
3164
3165         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
3166         order to remove a workaround in Nautilus that forced
3167         GTK_ENABLE_BROKEN
3168
3169         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
3170
3171 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
3172
3173         * gtk/gtkrange.c: Patch from George Lebl to 
3174         fix division by zero for full scroll bars. (#62114)
3175
3176 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
3177
3178         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
3179         around gtk_widget_event() if we are going to
3180         set a flag afterwards. (#63464)
3181
3182 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
3183
3184         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
3185         Actually add the missing/broken image icon as the
3186         image for the "missing image" stock icon.
3187
3188 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
3189
3190         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
3191         Set a reasonable default height for the window.
3192
3193         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
3194         bug where subsequent '-' weren't converted to '_'.
3195         (#59550, Matthias Clasen)
3196
3197         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
3198         justify the Help menu - just include a comment on
3199         how to do it. (#63539,  Marius Andreiana)
3200
3201         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
3202         list GTK_ICON_SIZE_INVALID.
3203
3204         * demos/gtk-demo/stock_browser.c: Show the biggest available
3205         size, not a fixed size. (Often reported, including #63539, 
3206         Marius Andreiana)
3207
3208 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
3209
3210         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
3211         #59583
3212
3213         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
3214         warning.
3215
3216 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
3217
3218         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
3219         (Daniel Elstner).
3220
3221 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
3222
3223         * gtk/gtkimcontext.[ch]: Add:
3224           - A ::retrieve_surrounding signal that asks the widget for
3225             context around the insertion point.
3226           - A ::delete_surrounding signal that asks the widget to 
3227             delete context aroudn the insertion point.
3228           - gtk_im_context_set_context() for widgets to set context
3229             around the insertion point in response to ::retrieve_context.
3230           - gtk_im_context_get_context() for context to get context
3231             around the insertion point
3232
3233         * gtkmarshal.list: Add BOOL:INT,INT
3234
3235         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
3236         set_surrounding() methods, and the ::retrieve_surrounding /
3237         ::delete_surrounding signals.
3238
3239         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
3240         GtkIMContext::retrieve_surrounding / ::delete_surrounding
3241         signals.
3242
3243 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
3244
3245         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3246         it's amazing how well things work sometimes, even when they're
3247         completely wrong.
3248
3249         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
3250         where you could try to collapse a node w/o it having children.
3251
3252         (gtk_tree_view_class_init): remove Shift L<->R as they already
3253         existed for expand/collapse.
3254
3255 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
3256
3257         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
3258         found by Matt Wilson.
3259
3260 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
3261
3262         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
3263         Control, and Shift|Control L<->R, #63475
3264
3265 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
3266
3267         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
3268         infinite loop noticed by yosh.
3269
3270 2001-11-01  Michael Meeks  <michael@ximian.com>
3271
3272         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
3273         GTK_REALIZED flag so we don't re-enter when we are
3274         destroyed from the plug side.
3275
3276 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
3277
3278         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
3279         Add a "menu" property and notify on it. (#62798,
3280         Padraig O'Briain)
3281
3282         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
3283         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
3284         Fix set_text to take a gchar, not a guchar, and to have 
3285         a len argument.
3286
3287 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
3288
3289         * gtk/gtkstock.c: fix typo to make it compile
3290
3291 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
3292
3293         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
3294         the widget is insensitive, draw the text insensitively, #63306
3295
3296 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
3297
3298         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
3299
3300 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
3301
3302         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
3303         gtk_selection_data_set_tree_row, #60218
3304         (gtk_tree_get_row_drag_data): rename
3305         gtk_selection_data_get_tree_row, #60218
3306
3307         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
3308         get this right, after the third try, #63122.
3309
3310 2001-10-31  jacob berkman  <jacob@ximian.com>
3311
3312         * gdk/gdkselection.h (GDK_TARGET_STRING): 
3313         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
3314         for Xatoms (and not using the XA_* macros)!
3315
3316 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
3317
3318         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
3319         gtk_window_get_focus() getter to determine the currently
3320         focused widget within the window. (#63145, request
3321         from Damian Ivereigh)
3322
3323 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
3324
3325         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
3326
3327         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
3328         GTK_SELECTION_NONE enum.
3329         (_gtk_tree_selection_internal_select_node): ditto
3330
3331         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
3332         constness.
3333
3334         * gtk/gtkcellrenderertoggle.c: more yummy constness.
3335
3336         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
3337         if mode == GTK_SELECTION_NONE
3338
3339 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
3340
3341         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
3342         "cursor_changed" signal, #62850.
3343
3344 2001-10-31  Matt Wilson  <msw@redhat.com>
3345
3346         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
3347         allocating the treedatalist, zero it to make sure the values are
3348         cleared from any garbage that was in this chunk.
3349
3350 2001-10-31  Murray Cumming  <murrayc@usa.net>
3351
3352         * gtk/cellrenderertext.h: "edited" default signal handler
3353         gchar* args are now const.
3354         gtk/cellrenderertoggle.h: "toggled" default signal handler
3355         gchar* arg is now const.
3356         Also changed other signal handlers for "edited" and "toggled" to
3357         have the same signature.
3358
3359 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
3360
3361         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
3362         rewrite.  Static models now totally work.  I'm not 100% sure about
3363         row_inserted and row_changed, but I'll get those later.
3364
3365 2001-10-30  Sven Neumann  <sven@gimp.org>
3366
3367         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
3368         output for configure --help.
3369
3370 2001-10-30  Havoc Pennington  <hp@pobox.com>
3371
3372         * gtk/gtktextview.c (changed_handler): Update the IM spot location
3373         here, if text was invalidated in the visible area, because the
3374         scroll offset doesn't normally change in that case, and the mark
3375         isn't set, just implicitly moved over as text is added/removed
3376         
3377 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
3378
3379         * gtk/gtkseparatormenuitem.c: Code cleanup.
3380         (gtk_separator_menu_item_class_init): Fix bugs in this code.
3381
3382 2001-10-29  jacob berkman  <jacob@ximian.com>
3383
3384         * gdk/Makefile.am (LDFLAGS): 
3385         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
3386         LDFLAGS, so put win32 flags in here
3387
3388 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
3389
3390         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
3391         I can't believe this took this long to fix.
3392
3393 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
3394
3395         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
3396         reordered signal.
3397
3398 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
3399
3400         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
3401         the focus to the fileop entry for create dir / rename
3402         file. (#62838)
3403
3404 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
3405
3406         * configure.in: Don't use AC_CHECK_FILE to check for a 
3407         file since it always spits warnings about cross compilation,
3408         use -f instead. It's not like we cross compile properly
3409         anyways.
3410
3411         * configure.in (gtktargetlib): Move call to AC_PROG_CC
3412         to suppress autoconf warning.
3413
3414         * acconfig.h: Add some missing #undefs from recent
3415         Win32 additions.
3416
3417 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
3418
3419         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
3420         when we didn't find it. (#62944, Eric Lemings)
3421
3422         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
3423         sign in assignment. (#63209, Arkadiusz Miskiewicz)
3424
3425 2001-10-29  Anders Carlsson  <andersca@gnu.org>
3426
3427         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
3428         the buttons size request before using it. Fixes #61696.
3429
3430 2001-10-29  Tor Lillqvist  <tml@iki.fi>
3431
3432         * README.win32: Updates.
3433
3434         * gtk-zip.sh.in: New file, used to build distribution package for
3435         Windows.
3436
3437         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
3438         applicable with GDKVAR.
3439
3440         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
3441         Wintab library.
3442
3443         * gdk/win32/gdkwin32.h
3444         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
3445         X11 headers better, and to enable gdkwin32.h to be installed and
3446         included from applications, but not the *-win32.h headers.
3447
3448         * gdk/win32/*.c: Corresponding small changes, simplifications of
3449         #includes.
3450         
3451         * gdk/win32/gdkregion-win32.c: Remove.
3452
3453         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
3454
3455         * gdk/win32/gdkfont-win32.c
3456         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
3457
3458         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
3459         GDK_NONE values into hash table.
3460
3461         * gtk/gtk.def: Update.
3462
3463         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
3464         gethostname().
3465
3466         * gtk/gtkmain.c 
3467         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
3468         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
3469         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
3470         g_win32_get_package_installation_subdirectory() with the actual
3471         DLL name saved above. Redefine above directory name macros to call
3472         these functions. Remove some ifdefs.
3473
3474         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
3475         variable for export on Win32) also to the _vars file.
3476
3477         Changes for autoconfiscated build on Win32, and addition of Win32
3478         backend to the related files:
3479         
3480         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
3481         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
3482         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
3483         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
3484         win32 target, using pangowin32. Don't use the
3485         -export-symbols-regex option on Win32, we use .def files to list
3486         exported symbols. Check <winsock.h> (for gethostname() in
3487         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
3488         prevent premature m4 expansion.
3489
3490         * acconfig.h: Add HAVE_WINTAB.
3491
3492         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
3493         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
3494         MS_LIB_AVAILABLE, build MS import library. Install the import
3495         libraries. If HAVE_WINTAB, link with the Wintab library.
3496
3497         * gdk/win32/Makefile.am: Actually enable building the win32
3498         objects here, not just list all files in EXTRA_DIST. Link in the
3499         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
3500         copy the Wintab library into the .libs directory. 
3501
3502         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
3503         name of the GDK DLL when fetching the icon. Use the HMODULE saved
3504         in gdk_dll_hinstance by DllMain.
3505
3506         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
3507         build/win32/lt-compile-resource script.
3508
3509         * gdk/win32/rc/gdk.rc.in
3510         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
3511
3512         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
3513         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
3514         file. Install import libraries.
3515
3516 2001-10-29  Anders Carlsson  <andersca@gnu.org>
3517
3518         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
3519
3520 2001-10-28  Hans Breuer  <hans@breuer.org>
3521
3522         * gdk/gdk.c gdk/gdkevents.c
3523           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
3524           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
3525           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
3526           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
3527           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
3528           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
3529           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
3530         static correct-ness, underscore prefixing of library internal 
3531         functions
3532         (applied the undisputed and the win32 part. Of the latter 
3533          I'm probably the one who will change it back again, if Owen
3534          decides that the Gdk*Impl types should not be private to Gdk)
3535
3536         * gdk/gdk.def : added the remaining exported functions
3537
3538 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
3539
3540         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
3541         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
3542         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
3543
3544 2001-10-28  jacob berkman  <jacob@ximian.com>
3545
3546         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
3547         gtk_settings_get_default() here as that requires an X connection
3548         (which breaks doc building with no X connection) and is not
3549         multihead safe
3550         (gtk_color_selection_init): delay palette loading until realize
3551         time
3552         (gtk_color_selection_realize): load the palette, and initialize
3553         the global palette if it hasn't been already
3554
3555         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
3556         visual/cmap fields of klass->info since they are gone
3557         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
3558         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
3559         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
3560
3561         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
3562         cmap fields
3563         (gtk_preview_get_visual):
3564         (gtk_preview_get_cmap): mark as deprecated
3565
3566         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
3567         changes
3568
3569 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
3570
3571         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
3572         structure to have GObject not GtkObject as
3573         parent_instance. (Jeff Franks.)
3574
3575 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
3576
3577         * gdk/x11/gdkinput.c: Typo fix.
3578
3579 2001-10-26  Havoc Pennington  <hp@pobox.com>
3580
3581         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
3582         update_im_spot_location here explicitly
3583         (gtk_text_view_reset_im_context): don't update the spot location
3584         here
3585
3586 2001-10-27  Anders Carlsson  <andersca@gnu.org>
3587
3588         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
3589         This fixes #62942.
3590
3591         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
3592         Clarify that we're returning a spin button in the _new function.
3593         This fixes #54097.
3594         
3595 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
3596
3597         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
3598         Unfortunately, people apparently erroneously connect
3599         to ::clicked for GtkToggleButton and expect
3600         they know what happened in the default signal handler
3601         instead of appropriately connecting to notification
3602         signal ::toggled. When the revolution comes, such
3603         people will be first against the wall.
3604
3605         We'll just have to go back to the old less-reliable
3606         set-it-back hacks for handling model-view check
3607         buttons and radio buttons. :-(. 
3608
3609 2001-10-27  Hans Breuer  <hans@breuer.org>
3610
3611         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
3612           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
3613           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
3614           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
3615           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
3616           gtk/gtktreestore.c gtk/gtkvbbox.c : 
3617         to simplify parsing for exported functions:
3618         - made implementation signature static, when the local 
3619           prototype already was
3620         - put the functions return value on it's own line
3621         - added as space between the function name and the 
3622           opening bracket
3623
3624         * gtk/gtk.def : added the remaining exported functions
3625
3626 2001-10-27  Anders Carlsson  <andersca@gnu.org>
3627
3628         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3629         Add note about width having to be greater than 0. This fixes
3630         #55574. 
3631
3632         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
3633         Fix docs to say previous instead of next.
3634         (gtk_text_iter_backward_word_start): Likewise.
3635         This fixes bug #62980.
3636
3637         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
3638         that the valid width is in range 0-65535 pixels. Fixes bug 
3639         #56754.
3640
3641         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
3642         a dot in the documentation. Fixes bug #62632.
3643
3644         * gdk/x11/gdkmain-x11.c: Replace int and guint with
3645         long and gulong in some places to make the code 64-bit
3646         clean.
3647         (_gdk_windowing_init_check): Replace gint with gulong.
3648         This patch was made by George Lebl and fixes bug #62113.
3649
3650         * tests/testgtk.c (create_range_controls): Don't set a 
3651         fixed height on the hscale widget. This fixes "bug" 
3652         #55840.
3653         (create_window_states): Set up destroy signals so that
3654         all windows will be destroyed when one is. This fixes 
3655         bug #58133.
3656
3657 2001-10-26  Anders Carlsson  <andersca@gnu.org>
3658
3659         * gtk/gtktreeview.c: 
3660         (gtk_tree_view_class_init): Create new "indent_expander"
3661         style property.
3662
3663         (gtk_tree_view_get_arrow_xrange): Add a tree argument
3664         to the function since the xrange can change depending
3665         on where in the tree we are. 
3666         
3667         (coords_are_over_arrow): Update function call to
3668         gtk_tree_view_get_arrow_xrange.
3669         (gtk_tree_view_draw_arrow): Likewise.
3670         
3671         (gtk_tree_view_real_expand_collapse_cursor_row):
3672         Call real_{expand|collapse}_row, so that we'll have an
3673         animation.
3674
3675 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
3676
3677         * tests/Makefile.am: fixed a small typo
3678
3679 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
3680
3681         * demos/gtk-demo/list_store.c (create_model): Anders
3682         Carlsson suggested to use G_N_ELEMENTS here
3683
3684 2001-10-26  Sven Neumann  <sven@gimp.org>
3685
3686         * gtk/gtkbutton.[ch]
3687         * gtk/gtkdnd.c: fixed inline comments
3688         
3689         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
3690
3691 2001-10-26  Hans Breuer  <hans@breuer.org>
3692
3693         * gdk-pixbuf/gdk_pixbuf.def : 
3694         * gdk/gdk.def : 
3695         * gtk/gtk.def : updated externals
3696
3697         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
3698         gdk_window_lookup implementation. It already was in
3699         gdk/win32/gdkwindow-win32.c
3700
3701         * gdk/win32/gdkproperty-win32.c : made it compile again
3702         after GdkAtom API change
3703
3704         * gtk/gtk/makefile.msc.in : updated
3705
3706 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
3707
3708         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
3709         require GLib 1.3.10.
3710
3711         * NEWS: updates.
3712
3713 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
3714
3715         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
3716         invalid nodes.
3717          (_gtk_rbnode_rotate_right): Ditto.
3718          (_gtk_rbtree_node_mark_invalid): New function.
3719          (_gtk_rbtree_node_mark_valid): New function.
3720
3721         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
3722         GObject, not a GtkObject.
3723         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
3724         correct.
3725         (gtk_tree_model_sort_row_deleted): ditto.
3726         (gtk_tree_model_sort_{un,}ref_node): Fix.
3727
3728         * gtk/gtktreeview.c: Protean incremental reflow support (commented
3729         out)
3730
3731         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
3732         to const char *key.
3733
3734         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3735         Important 1 line fix to fix a lot of refcounting woes.
3736
3737 2001-10-25  Matt Wilson  <msw@redhat.com>
3738
3739         * gtk/gtktextview.c (gtk_text_view_destroy): call
3740         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
3741         now invalidates) so that we remove our idle functions.
3742         (gtk_text_view_destroy_layout): remove the first_validate_idle as
3743         well.
3744
3745         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
3746         the 'indent' property is G_MININT to G_MAXINT.  Don't use
3747         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
3748         instead.
3749
3750 2001-10-24  Anders Carlsson  <andersca@gnu.org>
3751
3752         * gtk/gtktreeview.c: 
3753         (gtk_tree_view_real_expand_row): add an animate argument
3754         (gtk_tree_view_real_collapse_row): likewise
3755         
3756         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
3757         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
3758         (gtk_tree_view_collapse_row): update functions that call
3759         real_{expand|collapse}_row to set the animate argument 
3760         accordingly.
3761         
3762 2001-10-24  Alex Larsson  <alexl@redhat.com>
3763
3764         * gdk/linux-fb/gdkfont-fb.c:
3765         Update to new Pango APIs
3766
3767         * gdk/linux-fb/gdkproperty-fb.c:
3768         Update to new GdkAtom APIs
3769
3770         * gdk/linux-fb/gdkwindow-fb.c:
3771         Remove warnings
3772
3773 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
3774
3775         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
3776
3777 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
3778
3779         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
3780         s_path as a child path
3781
3782 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
3783
3784         * gtk/gtktreemodelsort.c: more changes in an attempt to get
3785         it right. It's not yet ready for general consumption.
3786
3787         * tests/treestoretest.c: add a button and entry for the new
3788         iter_change function
3789         (iter_change): new function, to test
3790         the row_changed signal implementation of the GtkTreeModelSort
3791
3792         * tests/testtreesort.c: cleanups, changes to test more features
3793         of the GtkTreeModelSort at once
3794
3795 2001-10-24  Havoc Pennington  <hp@redhat.com>
3796
3797         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
3798         remove hack to strip off the bogus newline, since we killed the
3799         bogus newline; fixes #61779
3800
3801 2001-10-24  Havoc Pennington  <hp@redhat.com>
3802
3803         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
3804         create layout if we didn't have one
3805         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
3806         as appropriate, avoids blanking the screen 
3807         (gtk_text_view_invalidate): new function to do invalidation,
3808         containing old guts of invalidated_handler
3809
3810 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
3811
3812         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
3813         dreadful tooltips.
3814
3815 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
3816
3817         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
3818         set window->parent (except or the root window itself); if 
3819         the window's parent is not a GdkWindow, or is a window of 
3820         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
3821
3822         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
3823         windows of type GDK_WINDOW_FOREIGN.
3824
3825 2001-10-24  Havoc Pennington  <hp@pobox.com>
3826
3827         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
3828         the front of a segment, use the "slow" technique for moving
3829         backward, so we don't mess up the any_segment field in the iter. 
3830         Fixes #57707
3831
3832         * tests/testtextbuffer.c: add code to detect #57707, to avoid
3833         regression
3834
3835 2001-10-23  Havoc Pennington  <hp@redhat.com>
3836
3837         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
3838         if selection contains some editable text, #60975
3839         (gtk_text_view_scroll_to_iter): remove warning about scrolling
3840         prior to map; it should actually be OK to do so in many cases, 
3841         it would be nice to warn about scrolling when many lines have
3842         height 0, but I don't know what to do about that. Perhaps 
3843         move part of flush_scroll into this function? comment added 
3844         to consider this.
3845
3846 2001-10-23  Havoc Pennington  <hp@redhat.com>
3847
3848         * gtk/gtktextview.c (changed_handler): Correctly keep the same
3849         text on the top of the screen, considering that the changed region
3850         may have overlapped the first paragraph. Should fix msw's "text
3851         widget scrolled to wrong place on map" bug, and probably some
3852         other scrolling cases as well.
3853         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
3854         instead of some random value
3855
3856         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
3857         grab_focus, so #59708 is really fixed
3858
3859 2001-10-24  Anders Carlsson  <andersca@gnu.org>
3860
3861         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
3862         (popup_targets_received): Call append_action_signal with stock items
3863         
3864         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
3865         (gtk_label_do_popup): Call append_action_signal with stock items
3866         
3867         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
3868         (popup_targets_received): Call append_action_signal with stock items
3869
3870 2001-10-23  Havoc Pennington  <hp@redhat.com>
3871
3872         * gtk/gtktextview.c (changed_handler): queue a resize here; will
3873         temporarily slow down the widget a lot, until we figure out how to
3874         optimize to avoid full redraw everytime we queue a resize.
3875
3876 2001-10-23  Havoc Pennington  <hp@redhat.com>
3877
3878         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
3879         0 and char_len == 0, bug #61729
3880
3881 2001-10-23  Havoc Pennington  <hp@redhat.com>
3882
3883         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
3884         return value, #61714 (Vitaly Tishkov)
3885         (gtk_text_iter_backward_sentence_starts): ditto
3886         (gtk_text_iter_backward_word_starts): ditto
3887         (gtk_text_iter_forward_word_ends): ditto
3888         (gtk_text_iter_forward_sentence_ends): ditto
3889         (gtk_text_iter_backward_cursor_positions): ditto
3890
3891 2001-10-23  Havoc Pennington  <hp@redhat.com>
3892
3893         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
3894         fix from Dov Grobgeld, #61858
3895
3896 2001-10-23  Havoc Pennington  <hp@redhat.com>
3897
3898         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
3899         Update IM spot location at appropriate times, #50626
3900         (Hidetoshi Tajima)
3901
3902 2001-10-23  Havoc Pennington  <hp@redhat.com>
3903
3904         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
3905         on grab focus, unless it's caused by button click, #59708
3906
3907 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
3908
3909         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
3910
3911         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
3912         G_CONST_RETURN. (Murray Cumming)        
3913
3914         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
3915         Make G_CONST_RETURN.
3916
3917         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
3918         results of g_get_home_dir().
3919
3920         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
3921         copy. Storing the return from gtk_entry_get_text() is evil.
3922
3923         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
3924         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
3925         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
3926         gtk/gtksignal.c: Add const.
3927
3928         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
3929
3930         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
3931         if we are setting them on private widgets.
3932
3933         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
3934         Duplicate entry->text before setting it as object data.
3935
3936 2001-10-22  Havoc Pennington  <hp@redhat.com>
3937
3938         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
3939         up a char from the end iterator, fixes #61859 ("can't put cursor
3940         at the end of the buffer")
3941
3942         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
3943         to work with delimiters other than newline.
3944
3945         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
3946         get_bytes_in_line
3947
3948         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
3949         last line, since the newline is no longer counted.
3950         (gtk_text_iter_get_bytes_in_line): ditto
3951
3952 2001-10-22  Havoc Pennington  <hp@redhat.com>
3953
3954         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
3955         #58290 would trigger if it reappeared, I think
3956
3957 2001-10-22  Havoc Pennington  <hp@redhat.com>
3958
3959         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3960         add temporary code to dump btree contents on assertion failure
3961         described in #62656
3962         
3963         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
3964         assertions that we're getting the right end iter segment
3965
3966         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3967         verify that we aren't on the end iterator after moving 
3968         forward one segment - fixes return value in an obscure case. 
3969         Also, some trivial code cleanup/rearranging.
3970         
3971 2001-10-22  Havoc Pennington  <hp@redhat.com>
3972
3973         * gtk/gtktextlayout.h: add a #error unless you define
3974         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
3975
3976         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
3977         
3978 2001-10-22  Havoc Pennington  <hp@redhat.com>
3979
3980         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
3981         #62365
3982
3983 2001-10-22  Havoc Pennington  <hp@redhat.com>
3984
3985         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
3986         #62436
3987
3988 2001-10-22  Havoc Pennington  <hp@redhat.com>
3989
3990         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
3991         #62366
3992
3993 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
3994
3995         * gtk/gtklabel.c: Add cursor-position, selection-bound 
3996         properties. (#62148, reported by Padraig O'Briain)
3997
3998         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
3999         to cursor_position. (1.3.x addition, text_position is an awful
4000         name.) Make cursor_position read-only to avoid sticky questions
4001         of interaction with selection_bound. (#62636, reported by
4002         Padraig O'Briain)
4003
4004 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
4005
4006         Fixing popup menus to have "Paste" sensitized correctly. Original
4007         patches from Damian Ivereigh, much mangled.
4008
4009         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
4010         gtk_selection_data_targets_include_text(). (#60854)
4011
4012         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
4013         the clipboard has text" function gtk_clipboard_wait_is_text_available.
4014         (#60854)
4015
4016         * gtk/gtkentry.c: Only enable the paste item if the clipboard
4017         contains text. (#60973)
4018
4019         * gtk/gtktextview.c: Only enable the paste item if the clipboard
4020         contains text. (#60975)
4021
4022 2001-10-22  Havoc Pennington  <hp@redhat.com>
4023
4024         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
4025         "height_lines" and "width_columns" properties, it doesn't make
4026         sense to set the size request on a text view really. #62103
4027
4028 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
4029
4030         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
4031         g_node_depth is broken, and that it's not worth being consistent
4032         with it.
4033
4034 2001-10-22  Havoc Pennington  <hp@redhat.com>
4035
4036         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
4037         docs, #61777
4038         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
4039         change the two boolean args to a flags field, so we can extend 
4040         to add case insensitive, regexp searches later. #61852
4041
4042 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
4043
4044         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
4045         reflect reality, #62810
4046
4047 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
4048
4049         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
4050
4051         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
4052         system.  Instead of having a window the size of the tree, we have
4053         a window the size of widget->allocation, and simply draw with the
4054         offset.
4055         (coords_are_over_arrow): ditto.  Move to window coordinates.
4056         (do_prelight): ditto
4057         (do_unprelight): ditto
4058
4059         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
4060         Minor fix from Kristian Rietveld to fix unsorted case.
4061
4062 2001-10-22  jacob berkman  <jacob@ximian.com>
4063
4064         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
4065         a PIXMAP cell (fixes crash when using PIXTEXT cells)
4066
4067 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
4068
4069         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
4070         (#58768, Vitaly Tishkov)
4071         
4072         * gtk/gtkobject.h: Deprecate with abandon. 
4073         (#61942, Vitaly Tishkov, Matthias Clasen)
4074
4075         * gtk/gtksignal.h: Deprecate everything.
4076
4077         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
4078         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
4079         (#61942, Matthias Clasen)
4080
4081         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
4082         Havoc Pennington)
4083
4084         * gtk/gtkitemfactory.h: Deprecate compat functions
4085         for GtkMenuFactory code. (#62071)
4086
4087         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
4088         gdk_draw_text,gdk_draw_text_wc. (#62071)
4089
4090 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
4091
4092         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
4093         g_thread_init(), we don't want to link to -lgthread if we don't
4094         have to.
4095
4096 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
4097
4098         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
4099         Add a function, gdk_threads_init() that must be explicitely 
4100         called to enable the GDK thread mutex.
4101
4102 2001-10-22  Jakub Steiner <jimmac@ximian.com>
4103
4104         * gtk/stock-icons/stock_stop.png: no body parts
4105         
4106 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
4107
4108         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
4109         problem with g_return_if_fail return value.
4110
4111         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
4112         virtual atom code from the gdk-multihead branch, removing the per-display
4113         part. Virtualizing atoms needs to be done now to prevent compat
4114         breakage in direct Xlib accessing code in the future. (#62208)
4115  
4116         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
4117         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
4118  
4119         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
4120         an opaque pointer type so the compiler catches attempts
4121         to mingle it with X atoms.
4122
4123         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
4124           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
4125           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
4126           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
4127           tests/testdnd.c,tests/testselection.c: 
4128         Fix up for above atom changes.
4129
4130         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
4131         now have the ability to add custom predefines.
4132
4133         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
4134         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
4135         to gtk_clipboard_get().
4136
4137         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
4138         for GdkAtom => pointer change.
4139
4140         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
4141         atoms, fix for GdkAtom => pointer change.
4142
4143 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
4144
4145         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
4146         new function spin_button_get_arrow_size() instead.
4147
4148         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
4149         arrow was hardcoded, it's now variable.
4150
4151         Fixes bug #50200
4152
4153 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
4154
4155         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
4156         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
4157         for those
4158
4159 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
4160
4161         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
4162         in favor of g_signal_*, gtk_object_* in favor of 
4163         g_object_*.
4164
4165 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
4166
4167         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
4168         from GObject now, we have to use the g_object_* functions, not
4169         gtk_object_*.
4170
4171 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
4172
4173         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
4174         nailed down now (this code is not yet ready for general consumption)
4175
4176 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
4177
4178         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
4179         for use_align
4180
4181 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
4182
4183         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
4184
4185 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
4186
4187         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
4188         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
4189         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
4190         GObject, not GtkObject. (#62621)
4191
4192 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
4193
4194         * tests/testsocket.c: Remove now useless include of unistd.h,
4195         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
4196         
4197 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
4198
4199         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
4200         Pango font API. #61933. (Untested, even for compilation.)
4201
4202 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
4203
4204         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
4205         export gtk_disable_setlocale(). (Caught by Sven Neumann)
4206
4207 2001-10-18  Havoc Pennington  <hp@redhat.com>
4208
4209         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
4210
4211 2001-10-18  Havoc Pennington  <hp@redhat.com>
4212
4213         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
4214         to GTK_RUN_LAST, #50239
4215
4216 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
4217
4218         * gtk/gtkimmodule.c (match_locale):
4219         Support "*" for all locales with least priority
4220         when to select default im module, #58201
4221
4222 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
4223
4224         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
4225         Fix docs. (#61976)
4226  
4227         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
4228
4229         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
4230
4231         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
4232         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
4233         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
4234         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
4235         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
4236         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
4237         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
4238
4239         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
4240
4241         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
4242         Don't restrict the width of the spinbutton entry field 
4243         to 10 digits. (#58681)
4244
4245 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
4246
4247         * tests/testtreeflow.c: new test program for the tree.
4248
4249 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
4250
4251         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
4252         reported by (Oleg Maiboroda), #62600
4253
4254 2001-10-18  Michael Meeks  <michael@ximian.com>
4255
4256         * gtk/gtkentry.c (gtk_entry_set_property),
4257         (gtk_entry_get_property): impl 'text'
4258         (gtk_entry_class_init): add the 'text' prop.
4259         (gtk_entry_insert_text): notify 'text' changed.
4260         (gtk_entry_delete_text): ditto.
4261
4262 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
4263
4264         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
4265         Documentation updates.
4266
4267 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
4268
4269         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
4270         in truncating length of text to MAX_SIZE. (Found by 
4271         Padraig O'Briain, #62055)
4272
4273 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
4274
4275         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
4276         MNEMONIC_ACTIVATE; signal was changed a long time
4277         ago.
4278
4279         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
4280         Fix wrong return statement. (Reported by HideToshi
4281         Tajima and others.)
4282
4283         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
4284         left over select_all vfunc.
4285
4286 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
4287
4288         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
4289         a utility function to translate coordinates relative to
4290         one widget's allocation to coordinates relative to another
4291         widget's allocation.
4292
4293         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
4294         that:
4295          - only accepts external focus if there is no active
4296            member of the group or the button is active.
4297          - makes arrow keys move the active button as well
4298            as the focus
4299          - make tab tab out directly.
4300         This makes a radio button group act as a single focus location.
4301         (#53577).
4302         
4303         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
4304         it was only a small optimization that didn't matter and made
4305         things more complicated.
4306
4307         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
4308         sorter for FOCUS_TAB as we did for the other focus directions,
4309         sort by center of widgets, not upper-left corner. (Shouldn't
4310         matter in general.)
4311
4312         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
4313         from the different types of focusing: encapsulate sorting the
4314         widgets for the focus direction into one routine
4315         (gtk_container_focus_sort()) and then share the work of moving the
4316         focus between the different focus directions.
4317
4318         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
4319         work correctly with focus chains containing non-immediate
4320         children. Sorting was being done using allocation coordinates for
4321         each widget in the focus chain, and if there were intermediate
4322         window-widgets, these allocations would not be in the same
4323         coordinate system.
4324
4325 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
4326
4327         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
4328         mnemonic_activate function to option menu.
4329
4330 2001-10-15  Murray Cumming <murrayc@usa.net>
4331
4332         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
4333           Corrected the type names used in some calls to g_signal_new().
4334         
4335 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
4336
4337         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
4338         specs, use g_pattern_spec_equal() instead of direct field accesses.
4339         upon compressing two equal paths of the same type, the resulting
4340         priority has to be the maximum.
4341         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
4342         GtkPathPriorityType enum and make it a macro.
4343
4344 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
4345
4346         * gtk/gtkwidget.c: Fix some doc comments.
4347
4348 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
4349
4350         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
4351         on empty models.
4352
4353 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
4354
4355         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
4356         Remove stale gdk backend includes.
4357  
4358 2001-10-10  Michael Meeks  <michael@ximian.com>
4359
4360         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
4361         and value_in_list properties.
4362         (gtk_combo_set_value_in_list): notify change.
4363         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
4364
4365 2001-10-11  James Henstridge  <james@daa.com.au>
4366
4367         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
4368         that gtk+ can be built with automake 1.5 while not breaking
4369         things for automake 1.4.
4370
4371 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
4372
4373         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
4374         (#60606)
4375
4376         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
4377         to disable calling setlocale (LC_ALL, "").
4378
4379         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
4380         docs that this function is not typically useful.
4381
4382         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
4383         Automatically initialize GDK for the current locale
4384         on gdk_init(). Don't reset locale to C when
4385         XSupportsLocale() fails.
4386
4387         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
4388         useless checks for UTF-8 locale breakage that mattered
4389         only for X.
4390
4391         * examples/calendar/calendar.c
4392         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
4393         gtk_set_locale().
4394
4395         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
4396         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
4397
4398 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
4399
4400         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
4401
4402         Fixes bug #61904
4403
4404 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
4405
4406         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
4407         new function, #61923
4408         (gtk_tree_selection_path_is_selected): Ditto
4409
4410 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
4411
4412         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
4413         not a GtkObject.  Thanks andersca.
4414
4415         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
4416
4417 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
4418
4419         * gtk/gtktreeviewcolumn.c
4420         (gtk_tree_view_model_sort_column_changed): fix broken code.
4421
4422 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
4423
4424         * gtk/gtkselection.c: s/succesfully/successfully/g
4425
4426 2001-10-08  Havoc Pennington  <hp@pobox.com>
4427
4428         * demos/gtk-demo/stock_browser.c: remove unused enum
4429
4430         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
4431         pass the current selection state of the node in to the user
4432         selection func
4433
4434 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
4435
4436         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
4437         non-existent function gdk_x11_cursor_get_xid 
4438         by gdk_x11_cursor_get_xcursor.
4439
4440 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
4441
4442         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
4443         warning.
4444
4445         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
4446         unref nodes, #okay61676
4447
4448         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
4449         to the property; no need to clear the other columns.  Also, we go
4450         to 'unsorted' if the model supports it.
4451
4452 2001-10-05  Sven Neumann  <sven@gimp.org>
4453
4454         * demos/testpixbuf-save.c
4455         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
4456         feature.
4457
4458 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
4459
4460         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
4461         destroy the search dialog
4462
4463         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
4464         added check to prevent creation of a search dialog if there's
4465         already one around
4466
4467         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
4468         it instead of "search-dialog" (when getting/setting the search dialog
4469         widget).
4470
4471 2001-10-05  Jakub Steiner <jimmac@ximian.com>
4472
4473         * gtk/stock-icons/stock_broken_image.png: broken images icon
4474
4475 2001-10-04  Havoc Pennington  <hp@pobox.com>
4476
4477         Fix #56586
4478         
4479         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
4480         accelerator setting here...
4481
4482         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
4483         because we try to use it when a menu bar hasn't necessarily been 
4484         initialized.
4485
4486 2001-10-03  Havoc Pennington  <hp@redhat.com>
4487
4488         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
4489         it previously verified incorrect behavior
4490
4491         Fixes for #61565
4492         
4493         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
4494         off the end
4495         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
4496         the end
4497         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
4498         the end
4499         (gtk_text_iter_forward_lines): if on the last line, move to end of
4500         it
4501
4502         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
4503         don't return a line off the end
4504
4505 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
4506
4507         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
4508         functions to do_insert_text and do_delete_text, add signals
4509         insert_text, delete_text and changed
4510
4511         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
4512         and changed. Updates to match new situation.
4513
4514         * gtk/gtkspinbutton.c: updates to match new situation
4515
4516         * gtk/gtkoldeditable.h: remove signals changed, insert_text
4517         and delete_text
4518
4519         * gtk/gtkoldeditable.c: updates to match new situation
4520
4521         * gtk/gtktext.c: updates to match new situation
4522
4523         Fixes bug #59803
4524
4525 2001-10-03  Havoc Pennington  <hp@redhat.com>
4526
4527         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
4528         position
4529
4530         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
4531         changes
4532
4533         * tests/testtextbuffer.c (logical_motion_tests): updates
4534
4535 2001-10-03  jacob berkman  <jacob@ximian.com>
4536
4537         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
4538         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
4539         * gtk/gtksettings.c (apply_queued_setting): 
4540         * gtk/gtkmain.c (gtk_init_check): 
4541         * gtk/gtkcontainer.c (gtk_container_child_get_property):
4542         s/retrive/retrieve/
4543
4544 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
4545
4546         * gtk/gtktreemodelsort.[ch]: preparation for surgery
4547         * tests/testtreesort.c: ditto
4548
4549 2001-10-02  Havoc Pennington  <hp@redhat.com>
4550
4551         Throughout: assorted docs
4552         
4553         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
4554         gdk_window_set_geometry_hints() should be used instead.
4555
4556         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
4557         document them
4558
4559         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
4560         seem to exist in any .c files
4561
4562         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
4563         g_return_if_fail (pixel < colormap->size).
4564
4565 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
4566
4567         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
4568         NULL for @target_list to mean, use
4569         gtk_drag_dest_get_target_list (widget).
4570
4571         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
4572         drop could hang when calling gtk_drag_finish with 
4573         success == FALSE and del == TRUE.
4574
4575         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
4576         drops without a matching target found would propagate
4577         to the parent widget rather than being rejected.
4578
4579         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
4580         Use text_view->dnd_mark instead of mark name to be
4581         consistent with the rest of the code.
4582
4583         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
4584         pendantically correct for a drop-only-in-some-places
4585         widget. (Check whether you can insert in drag_drop,
4586         not just in drag_motion ... matters in theory, and
4587         for Motif drag and drop in practice.)
4588
4589         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
4590         Damian Ivereigh to not allow drops on non-editable
4591         entries. (#61124)
4592
4593         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
4594         text to be moved from a non-editable entry.
4595         
4596 2001-10-03  James Henstridge  <james@daa.com.au>
4597
4598         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
4599         s/width/fixed_width/ in order to get things to compile.
4600
4601 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
4602
4603         * gtk/gtkcelleditable.c: docs
4604
4605         * gtk/gtktreemodel.h: more docs.
4606
4607 2001-10-02  Havoc Pennington  <hp@redhat.com>
4608
4609         * gdk/x11/gdkwindow-x11.c: docs
4610
4611         * tests/testtextbuffer.c (logical_motion_tests): add sentence
4612         boundary tests
4613
4614 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
4615
4616         * demos/gtk-demo/Makefile.am: add editable_cells.c,
4617         list_store.c and tree_store.c
4618
4619         * demos/gtk-demo/appwindow.c: remove tearoff item from
4620         File menu, put menubar and toolbar in handle boxes.
4621
4622         * demos/gtk-demo/genincude.pl: various changes to support trees
4623
4624         * demos/gtk-demo/main.c: various changes to support trees
4625
4626         * demos/gtk-demo/stock_browser.c: changed name of demo
4627         to Stock Item and Icon Browser, so geninclude.pl doesn't see
4628         it as child
4629
4630         * demos/gtk-demo/editable_cells.c: new file/demo
4631         * demos/gtk-demo/list_store.c: new file/demo
4632         * demos/gtk-demo/tree_store.c: new file/demo
4633
4634 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
4635
4636         * gtk/gtkrc.c gtk/gtksettings.c: 
4637         g_string_printfa => g_string_append_printf.
4638
4639 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
4640
4641         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
4642         and destroy handler.
4643
4644         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
4645
4646         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
4647         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
4648         Singh <yosh@gimp.org>.
4649
4650 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
4651
4652         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
4653         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
4654
4655         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
4656
4657 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
4658
4659         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
4660         scroll_to_cell delayed code to happen in size_allocate.
4661
4662         * gtk/gtkstyle.c (gtk_default_draw_expander): change
4663         prelight/normal arrow drawing.
4664
4665         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
4666
4667         * gtk/gtktreestore.c: refactor.
4668
4669 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
4670
4671         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
4672         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
4673         centers the child in relation to the to indicator height.
4674
4675 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
4676
4677         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
4678         correct
4679
4680 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
4681
4682         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
4683         property code using g_param_spec_int and changed from
4684         g_value_get_enum to g_value_get_int instead. Probably a better way
4685         to fix the problem :-)
4686
4687 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
4688
4689     * gtk/gtkcellrenderertext.c changed "weight" property type from 
4690       g_param_spec_int to g_param_spec_enum.
4691
4692 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
4693
4694         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
4695         fix: s/Wether/Whether/ in reorderable property description
4696
4697 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
4698
4699         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
4700         start editing when you select with a keyboard.
4701
4702         (gtk_tree_view_button_press_event): much more graceful now.
4703
4704         * gtk/gtkstyle.c: Draw togglebutton better.
4705
4706 2001-09-26  Havoc Pennington  <hp@redhat.com>
4707
4708         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
4709         of passing non-stock label in to gtk_dialog_new_with_buttons
4710
4711         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
4712         debugging updates
4713
4714         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
4715         are private
4716
4717         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
4718         exist, fall back to mnemonic label, not plain label, bug #61184
4719         
4720 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
4721
4722         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
4723         stupid and emitting the signal every time.
4724
4725         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
4726
4727 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
4728
4729        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
4730
4731        * contrib/gdk-pixbuf-xlib/Makefile.am: install
4732        gdk-pixbuf-xlib-2.0.pc.
4733
4734 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
4735
4736         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
4737         problem where menmonic wasn't removed properly when
4738         setting a label when there already is a label.
4739         Also, handle setting the tab label back to the same
4740         value. (#61160, #61161)
4741
4742         * gtk/gtkentry.c (paste_received): Patch from 
4743         Damian Ivereigh to replace selection if there is 
4744         one. (#61121)
4745
4746 2001-09-25  Darin Adler  <darin@bentspoon.com>
4747
4748         * tests/.cvsignore: Ignore new test program.
4749
4750 2001-09-25  Havoc Pennington  <hp@redhat.com>
4751
4752         * gtk/gtktextview.c: fix for #50317
4753         
4754 2001-09-25  Havoc Pennington  <hp@redhat.com>
4755
4756         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
4757         gtk_text_iter_can_insert
4758         
4759         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
4760
4761         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
4762          (gtk_text_iter_can_insert): new function to fix #60282, should
4763         also fix msw's "can paste into empty buffer" bug.
4764
4765         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
4766         "event object,"  #59091
4767
4768         * gtk/gtktextbtree.c: indentation fixes
4769
4770         * gtk/gtktextiter.c (find_by_log_attrs): fixes
4771
4772 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
4773
4774         * configure.in: Version 1.3.9, interface age 0, binary age 0.
4775
4776         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
4777
4778         * NEWS: Updates.
4779
4780 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
4781
4782         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
4783         function for drawing cursors between gtkentry/gtklabel/gtktextview.
4784         Should this be public? It has a bit of an odd interface, but
4785         custom editing widgets probably should be using it.
4786         Function will draw with wider width for taller cursors, and
4787         draws a little indicator arrow to indicate directoin for split 
4788         cursors.
4789
4790         * gtk/gtktextview.c: Add a "cursor_color" property.
4791
4792         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
4793         gtk_text_layout_draw().
4794
4795         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
4796         _gtk_draw_insertion_cursor().
4797
4798 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
4799
4800         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
4801         the behavior where you could turn family_set (etc) back on
4802         and get back the values you had before.
4803
4804         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
4805         g_string_ascii_up() rather than looping through the
4806         string ourself.
4807
4808 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
4809
4810         * gtk/gtktreeviewcolumn.c
4811         (gtk_tree_view_column_set_cell_renderer): Removed
4812         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
4813
4814         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
4815         Patch from Detlef Reichl
4816
4817 2001-09-25  Havoc Pennington  <hp@redhat.com>
4818
4819         * tests/testtextbuffer.c (line_separator_tests): Add tests for
4820         line separators, addresses bug #57428
4821
4822 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
4823
4824         * gtk/gtkentry.c: Make a GtkCellEditable
4825         (get_widget_window_size): Change to let it honor size_allocate
4826         when a CellEditable.
4827
4828         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
4829         editable changes.
4830         (gtk_tree_view_set_cursor): Now you can set the cursor
4831         horizontally, as well as start editing.
4832
4833         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
4834         code to look more like the other check buttons.
4835
4836         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
4837         Change the way we calculate cell size.
4838
4839         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
4840
4841         * demos/gtk-demo/sizegroup.c: Add mnemonics.
4842
4843         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
4844         Fix logic.
4845
4846         * gtk/gtkcellrenderertext.c: Change to be editable.
4847
4848         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
4849
4850         * test/testtreesort.c: Fix misspelling
4851
4852         * test/testreecolumns.c: Add mnemonics.
4853
4854         * test/testreeedit.c: New test program.
4855
4856 2001-09-25  Havoc Pennington  <hp@pobox.com>
4857
4858         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
4859         etc. docs about how these are not going to do what you want for 
4860         the X/win32 ports. Futile attempt to avoid a FAQ...
4861
4862 2001-09-24  James Henstridge  <james@daa.com.au>
4863
4864         * gtk/gtkmarshal.list (VOID): add marshal function types.
4865
4866         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
4867         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
4868         GTK_TYPE_POINTER.
4869         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
4870         with no-op copy/free functions.
4871
4872         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
4873         GtkCTreeNode get_type function.
4874
4875 2001-09-24  Havoc Pennington  <hp@redhat.com>
4876
4877         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
4878         gtktextlayout.c:
4879         Get rid of the newline-that-could-not-be-deleted; buffers may 
4880         now be zero-length. Much easier to fix than expected, once 
4881         I figured out the right way to do it. However, there are 
4882         various subtle bugs introduced by this that will have to get 
4883         sorted out. Please use bugzilla.
4884
4885 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
4886
4887         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
4888         response back from the window manager if our size hasn't changed 
4889         since we won't get a response back from the window manager;
4890         there was code in there to do this, but it was in the wrong
4891         place so if the hints change and the size didn't we'd expect
4892         a response.
4893
4894         Also, optimize the position-only-changed case by running
4895         the resize queue immediately, and clean up some comments
4896         for the changes.
4897
4898 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
4899
4900         * gtk/gtknotebook.h: Add a compat macro that got lost.
4901
4902         * gtk/gtktreestore.c: Doc fixes.
4903
4904         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
4905         leak for windows that receive events after being destroyed.
4906         (#60863, Joshua N. Pritikin)
4907
4908         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
4909         rather than gtk_container_queue_resize().
4910
4911         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
4912         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
4913         gtk_container_child_composite_name. (#60217.)
4914
4915 2001-09-22  Hans Breuer  <hans@breuer.org>
4916
4917         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
4918
4919 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
4920
4921         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
4922         weight value should be an int
4923
4924 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
4925
4926         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
4927         to gtk_menu_scroll_item_visible(). Only call
4928         gtk_menu_scroll_item_visible() if the menu widget has been
4929         realized. Fixes bug #55310.
4930
4931 2001-09-21  Havoc Pennington  <hp@redhat.com>
4932
4933         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
4934         key press to IM context if cursor isn't in an editable location;
4935         bug #58425, patch from Hidetoshi Tajima
4936
4937 2001-09-21  Havoc Pennington  <hp@redhat.com>
4938
4939         Bug #60862
4940         
4941         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
4942         (_gtk_text_btree_unref): fix up mark memory management
4943
4944         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
4945
4946 2001-09-20  Havoc Pennington  <hp@redhat.com>
4947
4948         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
4949         try to handle alignment here, because it's done by PangoLayout
4950         after we set the layout width. Fix from Dov.
4951
4952 2001-09-21  Hans Breuer  <hans@breuer.org>
4953
4954         * gdk/gdk.def :
4955         * gtk/gtk.def : updated externals
4956
4957         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
4958         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
4959         Also handle that Win32 pathes cann't be hard-coded      
4960
4961         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
4962         module, themes etc directory calculations
4963
4964         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
4965         >16 bit right. The size limit within Win9x appears _not_ to be 32767
4966         but slightly smaller ...
4967
4968         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
4969         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
4970
4971         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
4972
4973         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4974         handling. I'm not sure if it is better now, but at least not worse
4975
4976         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
4977
4978         * gdk/win32/gdkwin32.h : reflect recent API restrictions
4979
4980 2001-09-21  Matt Wilson  <msw@redhat.com>
4981
4982         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
4983         radio_menu_item->group to NULL after removing it from the list, as
4984         it is no longer in the group. (#60869)
4985
4986         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
4987
4988 2001-09-20  Havoc Pennington  <hp@pobox.com>
4989
4990         * configure.in (PANGO_REQUIRED_VERSION)
4991         (ATK_REQUIRED_VERSION): add variables and checks for specific 
4992         versions of dependencies. Previously we didn't verify the 
4993         Pango or ATk versions.
4994
4995 2001-09-09  Havoc Pennington  <hp@pobox.com>
4996
4997         * gtk/gtktextiter.c: fool with indentation
4998         (gtk_text_iter_in_range): add g_return_if_fail
4999
5000 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
5001
5002         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
5003         ref count on new tag to be 1.  Update doc.  (#60836)
5004
5005 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
5006
5007         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
5008         call to gdk_image_new_bitmap(). (#59094, reported by
5009         by Sven Neumann)
5010
5011 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
5012
5013         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
5014         day, as well as the current month and year.
5015         (#59047, reported by Vitaly Tishkov)
5016
5017 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
5018
5019         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
5020         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
5021         
5022 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
5023
5024         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
5025
5026         (build_option_menu): add func argument, connect ::changed
5027         signal to option menu instead of connecting the ::activate
5028         signal to the menu items,
5029
5030         (toplevel): get rid of RADIOMENUTOGGLED macro,
5031
5032         (list_toggle_sel_mode), (clist_toggle_sel_mode),
5033         (ctree_toggle_line_style), (ctree_toggle_expander_style),
5034         (ctree_toggle_justify), (ctree_toggle_sel_mode),
5035         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
5036         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
5037
5038         (notebook_type_changed): merged standard_notebook(),
5039         notabs_notebook(), scrollable_notebook() and borderless_notebook()
5040         into notebook_type_changed()
5041
5042         (create_list), (create_ctree), (create_notebook),
5043         (create_progress_bar): changed OptionMenuItem arrays into
5044         gchar * arrays. Removed "Extended" item where used.
5045
5046         Fixes bug #59885
5047
5048 2001-09-20  Sven Neumann  <sven@gimp.org>
5049
5050         * configure.in
5051         * gdk/Makefile.am
5052         * gtk/Makefile.am
5053         * gtk/gtkselection.c
5054         * gtk/gtktreeview.c
5055         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
5056
5057 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
5058
5059         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
5060         a missing pango_layout_iter_free ().
5061
5062 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
5063
5064         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
5065         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
5066
5067         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
5068         the function definition so we don't accidentally rely on
5069         the compat #define from gtk_radio_menu_item_group.
5070         (#60782, Jeff Franks)
5071
5072 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
5073
5074         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
5075         incorrect values for top, right and bottom due to cut-and-paste
5076         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
5077
5078 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
5079
5080         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
5081         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
5082         window, not just on the client leader. (#58463)
5083
5084 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
5085
5086         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
5087
5088         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
5089         non-public _gtk_menu_item_set_placement.
5090
5091         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
5092
5093 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
5094
5095         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
5096           gdk/linux-fb/gdkcolor-fb.c:
5097         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
5098         (#59723)
5099
5100 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
5101
5102         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
5103         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
5104         #59723)
5105
5106 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
5107
5108         Patch from Frank Belew #59037 for Solaris compilation.
5109
5110         * gtk/maketypes.awk: Change syntax slightly for a call
5111         to sub(), apparently making awk on Solaris happier.
5112
5113         * gtk/gtktreeview.c: Remove C++ comments.
5114
5115 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
5116
5117         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
5118         to handle '99% of the time. (#60473, reported by Christian Rose)
5119
5120         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
5121         which no longer exists. (#60379, reported by Vitaly Tishkov)
5122
5123 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
5124
5125         * Released 1.3.8.
5126
5127         * gdk/Makefile.am: kill EXTRA_DIST clearing.
5128         
5129 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
5130
5131         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
5132         as its broken in automake 1.4, add explicit object rule to
5133         generate this.
5134         
5135         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
5136         get rid of uneccessary stamps, group stuff more logically, and build
5137         sources due to object rules. fix srcdir!=builddir.
5138
5139 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
5140
5141         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
5142         incorrect parameter to compute_double_length
5143         (#58680, patch from Matthias Clasen)
5144
5145         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
5146
5147         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
5148
5149         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
5150         for GDK_RELEASE_MASK to avoid warnings with Forte.
5151
5152         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
5153         break; statements.
5154
5155 2001-09-18  Alex Larsson  <alexl@redhat.com>
5156
5157         * gtk/gtkcheckbutton.c:
5158         * gtk/gtkradiobutton.c:
5159         Don't draw with GTK_STATE_ACTIVE.
5160
5161         * gtk/gtkclist.c:
5162         * gtk/gtkctree.c:
5163         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
5164
5165         * gtk/gtktextdisplay.c:
5166         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5167         unfocused with base_gc [GTK_STATE_ACTIVE].
5168         
5169         * gtk/gtkentry.c:
5170         Add select all menu-item.
5171         Default cursor color is red.
5172         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5173         unfocused with base_gc [GTK_STATE_ACTIVE].
5174
5175         * gtk/gtklabel.[ch]:
5176         Add keynav + menu to selectable lables.
5177         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5178         unfocused with base_gc [GTK_STATE_ACTIVE].
5179
5180         * gtk/gtkfilesel.c:
5181         Add drag and drop support.
5182
5183         * gtk/gtkstyle.c:
5184         (This was checked in earlier)
5185         New default values for text/base SELECTED and ACTIVE
5186         
5187 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
5188
5189         * configure.in: up version to 1.3.8, interface age 0,
5190         binary age 0, depend on glib 1.3.8.
5191
5192         * NEWS: 1.3.8 updates.
5193
5194 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
5195
5196         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
5197         the editing code
5198
5199         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
5200         reason to call it beyond emiting the two signals.
5201
5202         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
5203         to GtkEntry.
5204
5205 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
5206
5207         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
5208           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
5209         PangoFontDescription.
5210
5211         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
5212         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
5213         structure.
5214   
5215         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
5216
5217         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
5218         direct access to style->font. Deprecate gtk_style_ref/unref.
5219   
5220         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
5221         Remove gtk_style_ref/unref with g_object_ref/unref.
5222   
5223         * gtk/gtkcalendar.c: Remove leftover macros accessing
5224         style->font.
5225   
5226         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
5227         variable.
5228   
5229         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
5230         style->font.
5231
5232 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
5233
5234         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
5235         "can_activate" properties in favor of
5236         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
5237         and GTK_CELL_RENDERER_MODE_EDITABLE
5238
5239 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
5240
5241         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
5242         editable widgets.  This function is private, and should only be
5243         used by GtkTreeView.
5244
5245 2001-09-18  Matt Wilson  <msw@redhat.com>
5246
5247         * docs/Makefile.am (EXTRA_DIST): don't use += before =
5248
5249         * docs/faq/Makefile.am (EXTRA_DIST): likewise
5250
5251         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
5252         
5253         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
5254         (EXTRA_HEADERS): likewise
5255
5256         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
5257         (EXTRA_HEADERS): likewise
5258         (EXTRA_DIST): likewise
5259         (CLEANFILES): likewise
5260
5261         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
5262
5263         * tests/Makefile.am (EXTRA_DIST): likewise
5264         
5265         * Makefile.am (install-data-local): changed to use
5266         install-data-hook, which runs after install-pkgconfigDATA, so that
5267         the pkgconfigdir will have been created and populated first.
5268
5269 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
5270
5271         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
5272         be the last big GtkTreeView API change.
5273
5274         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
5275         replace with "activate" and "start_editing".  Also, added a
5276         "can_activate" and "can_edit" property.
5277
5278         * gtk/gtktreeviewcolumn.c: modify to use above.
5279
5280 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
5281
5282         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
5283
5284 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
5285
5286         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
5287         icon instead of one with ugly white background.
5288
5289 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
5290
5291         * demos/gtk-demo/stock_browser.c (id_to_macro): make
5292         the uppercasing work. (#59550)
5293
5294 2001-09-14  Jakub Steiner <jimmac@ximian.com>
5295
5296         * gtk/stock-icons/dialog_error.png:
5297         * gtk/stock-icons/dialog_question.png: more road signs
5298
5299 2001-09-13  Jakub Steiner <jimmac@ximian.com>
5300
5301         * gtk/stock-icons/dialog_question.png:
5302         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
5303           like a road sign.
5304
5305 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
5306
5307         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
5308         signals to make them more clear.  Also, change ::range_changed to
5309         ::row_changed.
5310         * gtk/gtktreemodel.c: Adjust to interface change
5311         * gtk/gtktreemodel.h: ditto
5312         * gtk/gtktreemodelsort.c: ditto
5313         * gtk/gtktreestore.c: ditto
5314         * gtk/gtkliststore.c: ditto
5315         * gtk/gtktreeview.c: ditto
5316         * tests/testtreecolumns.c: ditto
5317         * gtk/gtkmarshal.list: Actually remove a marshaller!
5318
5319 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
5320
5321         * gtk/gtktextview.c
5322         Add support for Ctrl+Up/Down arrow to move cursor to beginning
5323         of previous/next paragraph. If within a paragraph cursor moves to
5324         beginning of that paragraph.
5325
5326 2001-09-12  Jakub Steiner <jimmac@ximian.com>
5327
5328         * gtk/stock-icons/dialog_question.png: replacing the shaky
5329           question mark with a sans-serif one.
5330         * gtk/stock-icons/stock_top.png, stock_bottom.png,
5331      stock_first.png, stock_last.png: using the new style arrows
5332         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
5333      colors.
5334         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
5335      color.
5336         * gtk/stock-icons/stock_zoom*: anti-aliased
5337         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
5338      '-' with a '_', removed the wrong files
5339
5340 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
5341  
5342         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
5343  
5344         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
5345         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
5346         than in gtk-2.0/major.minor.micro/<type>/. This
5347         works better for a search path for modules.
5348  
5349         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
5350         gtk_binary_version variable holding major.minor.(micro-binary_age).
5351  
5352         * modules/input/Makefile.am (moduledir): Fix installation
5353         directory to match change in lookup location.
5354  
5355         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
5356         suffixes. Needs to be handled in g_module_build_path().
5357
5358         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
5359         appropriate.
5360  
5361 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
5362
5363         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
5364         causing RC properties not to work.
5365
5366 2001-09-11  Jakub Steiner <jimmac@ximian.com>
5367
5368         * gtk/stock-icons/dialog-error.png: less drastic
5369         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
5370           "STOP" is international enough.
5371         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
5372         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
5373
5374 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
5375
5376         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
5377         (add|remove)_selection_clipboard symmetric. (bug #59836)
5378
5379         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
5380         Avoid SEGV for empty tree. (bug #60243)
5381
5382 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
5383
5384         * tests/testgtk.c (create_idle_test): slight fix for
5385         g_object_set() not usable for nesting anymore.
5386
5387         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
5388         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
5389         properties, supply ::shadow_type properties instead as most
5390         other widgets do.
5391
5392 2001-09-10  Alex Larsson  <alexl@redhat.com>
5393
5394         * demos/gtk-demo/stock_browser.c:
5395         * gdk/gdkcolor.c:
5396         * gdk/gdkfont.c:
5397         * gdk/gdkcursor.c:
5398         * gdk/gdkevents.c:
5399         * gdk/gdkrectangle.c:
5400         * gtk/gtktypeutils.c:
5401         Update to use the new g_boxed_type_register_static API.
5402
5403 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
5404
5405         * gtk/gtktreestore.c:
5406         Fix looping in gtk_tree_store_init() waiting for zero random int.
5407
5408 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
5409
5410         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
5411         behaviour which havoc broke. they have to default to 1.0 for
5412         expand behaviour.
5413
5414         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
5415
5416 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
5417
5418         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
5419         Amend previous change to avoid runtime error in g_param_spec_ref()
5420
5421 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
5422
5423         * gtk/gtkrc.c (insert_rc_property): Fix blank line
5424         in the wrong place.
5425
5426 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
5427
5428         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
5429         do a lookup immediately after creating style->property_cache,
5430         since bsearch crashes on zero length for Solaris.
5431         (Found by Padraig O'Briain.)
5432
5433 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
5434
5435         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
5436         Really return NULL if not set.
5437         (gtk_widget_init): Remove unused varaible.
5438         
5439 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
5440
5441         * configure.in:
5442         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
5443         in cvs.
5444
5445 2001-09-08  Havoc Pennington  <hp@pobox.com>
5446
5447         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
5448         people might want to use
5449
5450 2001-09-08  Havoc Pennington  <hp@pobox.com>
5451
5452         * gtk/gtkalignment.c (gtk_alignment_class_init): default
5453         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
5454
5455         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
5456
5457         * gtk/gtktextiter.c: fix docs
5458         (gtk_text_iter_spew): get rid of this
5459
5460         * gtk/gtklayout.c: docs
5461
5462         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
5463         to center image and label together, instead of having image on
5464         left and label centered, patch/suggestion from Jacob
5465
5466         * gtk/gtkdialog.c: docs
5467
5468 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
5469
5470         * gtk/gtkliststore.c: Write documentation
5471         * gtk/gtktreestore.c: Write documentation
5472
5473 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
5474
5475         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
5476         with GArray and bsearch(), to remove dependency on a still
5477         evolving interface that we want to keep private to glib/gobject. 
5478
5479 2001-09-08  Havoc Pennington  <hp@pobox.com>
5480
5481         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
5482         docs fixes
5483
5484         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
5485
5486         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
5487
5488         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
5489
5490         * gtk/gtkscrolledwindow.h: docs fixes
5491
5492         * gtk/gtkimage.c (gtk_image_new): docs fixes
5493
5494 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
5495
5496         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
5497         false alarm  constness warning with a cast.
5498
5499         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
5500         for the inside-gdk case.
5501
5502 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
5503
5504         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
5505         remove g_print.
5506
5507         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
5508         change models, #59899
5509
5510 2001-09-07  Havoc Pennington  <hp@pobox.com>
5511
5512         * gtk/gtkmain.c: move some docs inline
5513
5514 2001-09-07  Havoc Pennington  <hp@pobox.com>
5515
5516         * gtk/gtk.h: tsk tsk, jrb broke the build
5517
5518 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
5519
5520         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
5521         Removed 'fill' attribute.  It was silly b/c that was a property of
5522         the cell renderer, anyway.
5523         (gtk_tree_view_column_render): Actually render the packed
5524         renderers.
5525         * doc/tree-column-sizing.txt: initial devel documentation.
5526         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
5527         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
5528
5529         * tests/testtreefocus.c: fix up to reflect above changes.
5530         * tests/testtreeview.c: ditto
5531         * demos/gtk-demo/stock_browser.c: ditto
5532
5533 2001-09-07  Alex Larsson  <alexl@redhat.com>
5534
5535         * gdk/linux-fb/gdkcolor-fb.c:
5536         Removed unused function.
5537         
5538         * gdk/linux-fb/gdkdrawable-fb2.c
5539         * gdk/linux-fb/gdkfont-fb.c:
5540         Use PangoLanguage functions.
5541
5542         * gdk/linux-fb/gdkinput.c:
5543         * gdk/linux-fb/gdkselection-fb.c:
5544         Fix const warnings.
5545         
5546         * gdk/linux-fb/gdkwindow-fb.c:
5547         Fix warning. Implement gdk_window_set_icon_list() and
5548         gdk_window_get_frame_extents(). (No icon support yet though.)
5549
5550         * gtk/gtkwindow.c (gtk_window_get_position):
5551         If window->frame is set get the extents of it instead.
5552         
5553 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
5554
5555         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
5556         Make the default default colormap the GdkRGB colormap,
5557         not the system colormap.
5558
5559         * gtk/gtkinvisible.c (gtk_invisible_init) 
5560           gtk/gtkwindow.c (gtk_window_init): Set the current
5561         colormap, as returned by _gtk_widget_peek_colormap()
5562         on the widget.
5563
5564         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
5565         to GTK+. Make it return %NULL instead of the default
5566         colormap if no colormap has explicitely been pushed.
5567
5568         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
5569         colormaps on ancestral widgets before defaulting the
5570         the system default colormap.
5571
5572         * docs/Changes-2.0.txt: explain colormap changes.
5573
5574 2001-09-07  Havoc Pennington  <hp@redhat.com>
5575
5576         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
5577         #57424
5578
5579 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
5580
5581         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
5582         make gdk_set_use_xshm a noop. Remove --no-xshm command line
5583         option. If we aren't autodetecting properly, we need
5584         to fix the problem, or at least make it an environment
5585         variable setting, to avoid problems with propagating
5586         to embedded children, plugins, etc.
5587
5588         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
5589
5590         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
5591         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
5592         New function to render a pixmap and mask for a particular colormap.
5593
5594         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
5595         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
5596         of internal implementation of the same.
5597
5598 2001-09-07  Havoc Pennington  <hp@redhat.com>
5599
5600         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
5601         debug code that seems to have caused a breakpoint in valid cases
5602         
5603         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
5604         pointer on the first view when adding the second view, fixes
5605         crash when closing gtk-demo text test with active selection
5606
5607         * gtk/gtktextbuffer.c
5608         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
5609         clipboards in the list of clipboards - probably fixes #59836
5610
5611 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
5612
5613       Make gdkx.h the only installed header from gdk/x11.
5614       All structures in gdk/x11 are opaque.
5615
5616         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
5617         Don't install gdk{drawable,pixmap,window}-x11.h.
5618
5619         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
5620         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
5621         GdkVisualClass into C files.
5622
5623         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
5624
5625         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
5626         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
5627         Add public functions to replace previously exported direct
5628         structure access.
5629         gdk_x11_colormap_get_{xdisplay,xcolormap} 
5630         gdk_x11_cursor_get_{xdisplay,xcursor},
5631         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
5632         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
5633         gdk_x11_gc_get_{xdisplay,ximage}
5634         
5635         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
5636         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
5637
5638       Fix a number of variables and functions that were exported
5639       "accidentally" from GDK.
5640
5641         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
5642         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
5643         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
5644         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
5645         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
5646         gdk_event_queue_find_first, gdk_event_queue_remove_link,
5647         gdk_event_queue_append, gdk_event_button_generate,
5648         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
5649
5650         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
5651            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
5652         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
5653         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
5654         gdk_use_xshm, gdk_input_ignore_core.
5655
5656         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
5657         #defines to namespace functions into the private _gdk_ 
5658         namespace.
5659
5660         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
5661         to replace gdk_parent_root exported variable. Adjust and
5662         deprecate GDK_ROOT_PARENT().
5663
5664         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
5665         GDK_ROOT_PARENT usage, remove includes of port-specific
5666         headers.
5667
5668         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
5669         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
5670         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
5671
5672         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
5673         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
5674         gdk_wm_delete_window functions, gdk_wm_take_focus, 
5675         use gdk_atom_intern() instead.
5676
5677         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
5678           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
5679           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
5680           gtk/gtkselection.c 
5681         Unexport gdk_selection_property, just use 
5682         gdk_atom_intern ("GDK_SELECTION").
5683
5684         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
5685         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
5686         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
5687         GdkVisualprivate, gdk_x11_gc_flush.
5688
5689       Make a number of public exports of variables into functions
5690       to increase encapsulation.
5691
5692         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
5693         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
5694         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
5695
5696         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
5697         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
5698         gdk_error_warnings.
5699
5700         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
5701           docs/Changes-2.0.txt: 
5702         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
5703         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
5704         Add gdk_x11_get_default_xdisplay().
5705
5706         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
5707         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
5708         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
5709         Don't export gdk_progclass, move --class command line
5710         option and handling to common portion of GDK.
5711
5712       Miscellaneous fixes:
5713
5714         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
5715         g_return_val_if_fail that should have been g_return_if_fail.
5716
5717         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
5718         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
5719
5720         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
5721         X11 dependency.
5722
5723         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
5724         Remove unused gdk_key_repeat_disable/restore.
5725
5726         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
5727         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
5728         Remove unused gdk_null_window_warnings variable.
5729
5730         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
5731         it can be retrieved from the repository; it is too far
5732         from functional to be worth having people check out;
5733         it would be easier to start from scratch, I suspect.
5734
5735         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
5736
5737         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
5738         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
5739         Fix some accidentally global variables and unused global variables.
5740
5741         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
5742         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
5743         Fix some accidentally global variables and unused global variables.
5744
5745       Add some space for future expansion to multihead.
5746
5747         * gdk/gdkdrawable.h: Add four reserved function pointers
5748         for future expansion of GdkDrawableClass.
5749
5750         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
5751         where we can put a GdkScreen * later.
5752
5753 2001-09-07  Havoc Pennington  <hp@redhat.com>
5754
5755         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
5756         adjustments after validating destination yrange; fixes #53918
5757         (This may cause other issues, but I hope it won't)
5758         
5759 2001-09-05  Havoc Pennington  <hp@redhat.com>
5760
5761         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
5762         line into start line, update the character counts in parent nodes; 
5763         caused a bug when end and start line had different parent nodes.
5764
5765 2001-08-30  Havoc Pennington  <hp@redhat.com>
5766         
5767         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
5768         assertion that tag is in a table
5769
5770 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
5771
5772         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
5773         g_strcasecmp on NULL strings. (#59058)
5774
5775 2001-09-06  Alex Larsson  <alexl@redhat.com>
5776
5777         * gtk/gtkbin.c:
5778         * gtk/gtkfontsel.c:
5779         * gtk/gtkspinbutton.c:
5780         * gtk/gtktipsquery.c:
5781         Use GtkType/GType instead of uint.
5782
5783 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
5784
5785         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
5786         sort column.
5787
5788         * gtk/gtktreestore.c (gtk_list_store_init): ditto
5789
5790         * gtk/gtktreesortable.c: add docs.
5791
5792 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
5793
5794         * Version 1.3.7
5795
5796         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
5797         docs for gtk-config
5798
5799         * modules/input/Makefile.am (install-data-local): Don't
5800         run gtk-query-immodules if DESTDIR is set.
5801
5802         * NEWS: Various additions.
5803
5804 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
5805
5806         * NEWS: updates for 1.3.7 release.
5807
5808 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
5809
5810         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
5811         handle default sort feature
5812
5813         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
5814         new function to handle default sort.
5815         (gtk_tree_sortable_has_default_sort_func): check if default sort
5816         is set.
5817
5818         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
5819         handle default sort feature
5820
5821 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
5822
5823         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
5824         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
5825         #59731
5826
5827 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
5828
5829         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
5830         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
5831         time, #59727
5832
5833         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
5834         correctly.
5835
5836 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
5837
5838         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
5839         so that we don't eternally update the keymap after we
5840         get a change notification.
5841
5842         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
5843         incorrect cast.
5844
5845 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
5846
5847         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
5848         it working. It mostly works now, although there're still a few issues
5849         to be worked out.
5850
5851         * tests/testtreesort.c (main): changes to have a better test
5852         application for the GtkTreeModelSort.
5853
5854 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
5855
5856         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
5857         fix for bug #59222.
5858
5859         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
5860         gpointer search_data argument to function definition and
5861         prototype, to match GtkTreeViewSearchEqualFunc typedef.
5862
5863 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
5864
5865         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
5866         per jrb's request.
5867
5868 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
5869
5870         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
5871
5872         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
5873
5874 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
5875
5876         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
5877         Instead of always mirroring the selection to a single PRIMARY
5878         selection, allow it to be mirrored to any number of clipboards.
5879
5880         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
5881         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
5882
5883         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
5884         GtkClipboard argument, and for paste_clipboard, the
5885         @override_location argument from @paste_primary.
5886
5887         * gtk/gtktextview.c: Adapt to above change.
5888         
5889 2001-08-30  Havoc Pennington  <hp@redhat.com>
5890
5891         * gtk/gtktextview.c (invalidated_handler): put validate idle at
5892         resize - 2 just for flexibility
5893
5894 2001-08-30  Havoc Pennington  <hp@redhat.com>
5895
5896         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
5897         object from the empty-child-anchor case by drawing a little box.
5898         
5899         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
5900         if the child anchor has no anchored widgets - fixes #59328.
5901
5902         Also, remove bizarre deletion of preedit string that seems to have
5903         gotten in here somehow.
5904
5905 2001-08-30  Havoc Pennington  <hp@redhat.com>
5906
5907         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
5908         to #58420 from Hidetoshi Tajima and Matthias Clasen
5909
5910 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
5911
5912         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5913         change color when the GtkTreeView loses focus.
5914
5915         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
5916         ditto.
5917         
5918         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
5919
5920 2001-08-28  Havoc Pennington  <hp@pobox.com>
5921
5922         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
5923
5924 2001-08-28  Havoc Pennington  <hp@pobox.com>
5925
5926         * demos/gtk-demo/main.c (setup_default_icon): add default icon
5927
5928         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
5929         warning fix
5930         (gtk_radio_button_new_with_label): warning fix
5931
5932         * gtk/gtkdnd.c: used some random GtkImage private structs, 
5933         update to reflect GtkImage changes
5934
5935         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
5936         whether the hint is supported, just always set the icon. A task
5937         list might want to use it even if the WM doesn't, and the WM may
5938         change over time. Also, XDeleteProperty() if list == NULL.
5939
5940         * gtk/gtkwindow.c (gtk_window_set_icon_list)
5941         (gtk_window_get_icon_list)
5942         (gtk_window_set_icon)
5943         (gtk_window_get_icon)
5944         (gtk_window_set_default_icon_list)
5945         (gtk_window_get_default_icon_list):
5946         new functions
5947
5948         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
5949
5950         * gtk/gtkimage.c: Implement property support, bug #59408
5951
5952         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
5953         on reparent-without-removing-first a bit more helpful.
5954         Let's just destroy this FAQ.
5955
5956 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
5957
5958         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
5959         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
5960
5961 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
5962
5963         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
5964         of use_text_format to the end of the function. (#56447)
5965
5966 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
5967
5968         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
5969         only in response to an area_prepared signal.
5970
5971 2001-08-28  Alex Larsson  <alexl@redhat.com>
5972
5973         * gtk/gtkwidget.c (gtk_widget_class_init):
5974         Make unrealize GTK_RUN_LAST.
5975
5976 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
5977
5978         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
5979         with_label and with_mnemonic should create radio buttons, not
5980         check buttons
5981
5982 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
5983
5984         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
5985         * tests/treestoretest.c (make_window): ditto
5986         * demos/gtk-demo/main.c (create_tree): ditto
5987         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
5988
5989 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
5990
5991         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
5992         GTK selection types rather than GtkTreeSelectionMode.
5993
5994         * docs/Changes-2.0: Add comment about selection change.
5995
5996 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
5997
5998         * gtk/gtkenums.h (GtkSelectionMode): deprecate
5999         GTK_SELECTION_EXTENDED.
6000
6001         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
6002         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
6003
6004         * gtk/gtkctree.c: ditto
6005
6006         * gtk/gtklist.c: ditto
6007
6008         * gtk/gtktree.c: ditto
6009
6010 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
6011
6012         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
6013         of typos in compat macros. (#59624, Skip Montaro)
6014
6015 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
6016
6017         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
6018         macro.
6019
6020          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
6021  
6022         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
6023         interface to be a standard setter from gtk_menu_item_right_justify.
6024         (gtk_menu_item_get_right_justified): a getter to go with the setter
6025
6026         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
6027         gtk_menu_item_right_justify.
6028
6029         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
6030         gtk_menu_item_set_right_justified.
6031  
6032 2001-08-27  Jens Finke <jens@gnome.org>
6033
6034         * gtk+.spec.in: Updated to match gpp requirements, reworked the
6035         files section to make it work with 1.3.x releases.
6036
6037 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
6038
6039         * gtk/gtkbutton.[ch]:
6040         Add properties for labels, mnemonics and stock items.
6041         Added C accessor functions for the properties.
6042         Removed deprecated button->child.
6043
6044         * gtk/gtkradiobutton.c:
6045         * gtk/gtktogglebutton.c:
6046         Update to use the functions in GtkButton.
6047
6048         * gtk/gtkcheckbutton.c:
6049         Update to use the functions in GtkButton.
6050         Changed size allocation of child. Now only gets as much
6051         space as it requests.
6052
6053         * gtk/gtkclist.c:
6054         Don't use GtkButton->child
6055
6056         * gtk/gtklabel.c:
6057         Fixed typo in docs
6058         
6059 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
6060
6061         * tests/testgtk.c:
6062         * tests/Makefile.am:
6063         Ressurect the properties test.
6064         I don't care if it is inferior, I just want to test my property code.
6065
6066 2001-08-25  Chema Celorio  <chema@celorio.com>
6067
6068         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
6069         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
6070         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
6071
6072 2001-08-24  Havoc Pennington  <hp@pobox.com>
6073
6074         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
6075         these are already in gtkmenu.h, and the copies
6076         here were broken.
6077
6078         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
6079
6080         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
6081         special-case bitmaps to allow no colormap
6082         (bitmap1): implement no-colormap bitmap-getting
6083         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
6084         alpha
6085         (rgb8): indentation
6086         (rgb1a, rgb1): change the way we read the data out of the image, 
6087         old way didn't seem to work quite right.
6088
6089         I'm pretty sure a lot of the rgbconvert code is still broken.
6090         
6091         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
6092         above position constraint (I really intended to do this before,
6093         don't know what's up with that)
6094         (gtk_XParseGeometry): shut up gcc
6095
6096         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
6097         and "0" should have been. remove the attempted 4-bytes-at-once
6098         optimization, it was totally broken.
6099
6100 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
6101
6102         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
6103         on push to buttons (based on patch from Soeren Sandmann, #54720)
6104
6105           - Add child_displacement_x/y style properties to control how far the
6106             child moves when the button is depressed.
6107
6108           - Add non-exported function _gtk_button_set_depressed to clean
6109             up the handling of the in/out shadow and separate it frmo
6110             widget->state.
6111
6112           - Lots of code cleanup and simplification of state handling
6113             for GtkButton/GtkToggleButton.
6114  
6115         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
6116         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
6117
6118 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
6119
6120         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
6121         and make gtk_image_new() take no arguments. The compiler will
6122         catch it, and it is vastly more useful than having
6123         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
6124
6125         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
6126         to add tearoff-title property (#51319, Lee Mallabone)
6127
6128 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
6129
6130         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
6131         gtk_menu_item_configure(). (#58925)
6132
6133 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
6134
6135         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
6136         "use_align" to give people the option to just make a cell visible.
6137
6138         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
6139         we were scrolling past the end of the tree.
6140
6141         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
6142         rename gtk_tree_view_column_pack_start_cell_renderer to
6143         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
6144
6145 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
6146
6147         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
6148         a stray g_object_ref() left over from gtk_object_ref/sink.
6149         (Pointed out by Josh Pritikin.)
6150
6151 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
6152
6153         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
6154         to gtk_container_get_children. Added deprecated compatibility
6155         macro. (Suggested by Vitaly Tishkov, #59051)
6156
6157         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
6158         calls.
6159
6160 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
6161
6162         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
6163         gtk_menu_bar_append/prepend/insert, forgot to do this
6164         when we deprecated gtk_menu_append/prepend/insert.
6165
6166         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
6167         compat macros.
6168
6169         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
6170         renamed by compat macro.
6171
6172         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
6173         gtk_font_selection_dialog_get_font(). (Suggested by
6174         Vitaly Tishkov, #59383)
6175
6176 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
6177
6178         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
6179         Rename from gtk_text_tag_table_size(). (#59366)
6180
6181 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
6182
6183         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
6184         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
6185         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
6186         (#59173).
6187
6188 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
6189
6190         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
6191         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
6192         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
6193
6194 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
6195
6196         [ Patch from Sebastian Wilhelmi, 52790 ]
6197
6198         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
6199
6200         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
6201         Move compatibility macros from g[dt]kcompat.h to within 
6202         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
6203
6204         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
6205
6206         * demos/Makefile.am demos/gtk-demo/Makefile.am 
6207           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
6208           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
6209
6210         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
6211                  testpixbuf.c}: Fix usages of deprecated functions.
6212
6213 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
6214
6215         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
6216         when changing models.
6217
6218 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
6219
6220         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
6221         We check the current event for modifiers rather than try to trap
6222         all presses.
6223
6224 2001-08-22  Anders Carlsson  <andersca@gnu.org>
6225
6226         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
6227         It's LIST_STORE, not LISTSTORE.
6228
6229 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
6230
6231         * gtk/gtk.h: Remove commented out gtkpacker reference.
6232
6233 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6234
6235         * configure.in (all_loaders): Add tga loader, 
6236         patch by Nicola Girardi. (#56067)
6237
6238 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
6239
6240         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
6241         a little.  More needs to be done tomorrow.
6242
6243 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
6244
6245         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
6246
6247 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
6248
6249         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
6250         reported by Kristian Rietveld <kristian@planet.nl> to handle row
6251         == NULL.
6252         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
6253         <kristian@planet.nl> to change destroy order.
6254
6255 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
6256
6257         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
6258         correct marshaller.
6259
6260 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
6261
6262         * gtk/gtkliststore.c: Fix up warnings, #58928.
6263
6264         * gtk/gtktreeselection.h: Change signal prototype, #58647
6265
6266         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
6267         #59221.
6268
6269         * gtk/gtkstyle.c: Actually prelight arrow, #50981
6270         
6271 2001-08-18  Hans Breuer  <hans@breuer.org>
6272
6273         * gdk/gdk.def : updated externals
6274
6275         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
6276         is required to get (at least) visible in entry fields. Some selections
6277         are really handled now - even on win32 - but copying via middle
6278         mouse button into a different app needs to wait ... 
6279
6280         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
6281         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
6282
6283         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
6284         handling. I'm not sure if it is better now, but at least not worse
6285
6286         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
6287         with SetWindowPos () which allows more fine-tuning backing-store wise
6288
6289         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
6290         Also changed move/resize to be more like the X version.
6291
6292         * gtk/gtk.def : updated externals
6293
6294 2001-08-19  Sven Neumann  <sven@gimp.org>
6295
6296         * gtk/gtktooltips.c
6297         * tests/testtreesort.c
6298         * tests/treestoretest.c: inserted some casts to get rid of compiler
6299         warnings.
6300
6301 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
6302
6303         * gtk/gtktreeviewcolumn.c
6304         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
6305
6306         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
6307         (_gtk_tree_view_find_node): If *node is NULL,
6308         *tree should be NULL too.
6309
6310         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
6311         column/renderers.
6312         * tests/testtreecolumns.c: ditto
6313         * tests/testtreefocus.c: ditto
6314         * tests/testtreesort.c: ditto
6315         * tests/testtreeview.c: ditto
6316         * tests/treestoretest.c: ditto
6317
6318 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
6319
6320         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
6321         signals; is_expander/is_expanded.
6322
6323         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
6324         pixbufs.
6325
6326         * gtk/gtktreeview.c: set above properties.
6327
6328 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
6329
6330         * gtk/gtkwidget.h: Really remove set_default_style().
6331
6332         * docs/Changes-2.0.txt: added a note about
6333         gtk_widget_push/pop/set_default_style.
6334
6335 2001-08-18  Havoc Pennington  <hp@pobox.com>
6336
6337         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
6338         hints_changed in addition to the other cases.
6339         (gtk_window_move_resize): include last position from configure
6340         notify in debug spew
6341
6342 2001-08-18  James Henstridge  <james@daa.com.au>
6343
6344         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
6345         second argument to the weak ref notify, cleaning up some uglyness.
6346         (gtk_accel_group_attach): remove and add the weak notifier when
6347         changing the accel groups slist.
6348         (gtk_accel_group_detach): same here.
6349
6350 2001-08-17  Darin Adler  <darin@bentspoon.com>
6351
6352         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
6353         missing parameters to utf8 functions to make it compile.
6354
6355 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
6356
6357         * gtk/gtktreeprivate.h:
6358         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
6359         (gtk_tree_view_init), (gtk_tree_view_set_property),
6360         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
6361         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
6362         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
6363         (gtk_tree_view_set_destroy_count_func),
6364         (gtk_tree_view_set_enable_search),
6365         (gtk_tree_view_get_enable_search),
6366         (gtk_tree_view_get_search_column),
6367         (gtk_tree_view_set_search_column),
6368         (gtk_tree_view_get_search_equal_func),
6369         (gtk_tree_view_set_search_equal_func),
6370         (gtk_tree_view_search_dialog_destroy),
6371         (gtk_tree_view_search_position_func),
6372         (gtk_tree_view_interactive_search),
6373         (gtk_tree_view_search_delete_event),
6374         (gtk_tree_view_search_button_press_event),
6375         (gtk_tree_view_search_key_press_event),
6376         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
6377         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
6378         * gtk/gtktreeview.h:
6379         Add heavily modified patch from Kristian Rietveld to handle
6380         interactive searching.
6381
6382 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
6383
6384         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
6385         string parameter.
6386
6387         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
6388         GtkMenuShell::selection_done, now that we have it, instead of 
6389         ::deactivate so we're not tearing the menu apart and notify
6390         the user prematurely.
6391
6392 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
6393
6394         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
6395         window, clear window->need_default_position to avoid infinite loops.
6396         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
6397
6398 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
6399
6400         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
6401         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
6402         (gtk_tree_view_set_property): don't cast possible NULL objects.
6403         (gtk_tree_view_destroy): reset the model to NULL.
6404
6405         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
6406         parent_class handler.
6407
6408 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6409
6410         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
6411
6412 2001-08-17  Anders Carlsson  <andersca@gnu.org>
6413
6414         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
6415         point numbers so that the result will be floating point.
6416
6417 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6418
6419         * tests/testgtk.c (create_handle_box): 
6420         (create_toolbar): Replace gtk_window_set_policy calls by
6421         gtk_window_set_resizable.
6422
6423 2001-08-16  Jakub Steiner <jimmac@ximian.com>
6424
6425         * gtk/stock-icons/dialog_info.png: new style bulb
6426         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
6427         * gtk/stock-icons/dialog_warning.png: need a hand?
6428         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
6429           the aa border gets chopped off ok
6430         * gtk/stock-icons/stock_colorselector.png: using the new hand
6431         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
6432           this one is for, but the old icon was butt ugly.
6433         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
6434         * gtk/stock-icons/stock*_insert_object.png: "
6435         * gtk/stock-icons/stock_index.png: using new hand icon
6436         * gtk/stock-icons/stock*_new.png: the document template being used 
6437           elsewhere too
6438         * gtk/stock-icons/stock*_print*.png: new print and print preview 
6439           icons (panel/menu)  
6440         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
6441           icons based on Tuomas' floppy image.
6442         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
6443         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
6444         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
6445         * gtk/stock-icons/stock*_undelete.png: "
6446         * gtk/stock-icons/stock_preferences.png: I have a version with a 
6447           document base if the sliders are no good.
6448         * gtk/stock-icons/stock_properties.png: properties 
6449         
6450
6451         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
6452           (tigert@ximian.com) clipboard icons
6453         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
6454         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
6455         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
6456           little bigger IMHO
6457
6458 2001-08-16  Sven Neumann  <sven@gimp.org>
6459
6460         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
6461
6462 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
6463
6464         * gtk/gtkcellrenderertext.c:
6465         Avoid warning when specifying NULL for "attributes" property
6466
6467 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6468
6469         * docs/debugging.txt: Add a warning about --enable-debug=no,
6470         some editorial changes.
6471
6472 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6473
6474         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
6475         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
6476         debugging info, remove unused debug flags. (#58330)
6477
6478 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
6479
6480         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
6481         (gtk_tree_selection_select_all): Remove strict checking for rows.
6482
6483 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6484         
6485         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
6486         Don't remove the tooltip window when the tip text changes. (#15891)
6487
6488 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
6489
6490         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
6491         $(srcdir).
6492
6493 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
6494
6495         * Makefile.am (EXTRA_DIST): Fix problem with trying to
6496         dist files from intl/, which is no longer there.
6497
6498 2001-08-11  Hans Breuer  <hans@breuer.org>
6499
6500         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
6501           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
6502           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
6503           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
6504           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
6505           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
6506
6507         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
6508           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
6509         GDK_TYPE_EVENT signals
6510
6511         * gtk/gtkalignment.c : removed 'direct allocation bug',
6512         which Tim discovered while reading the patch
6513
6514 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
6515
6516         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
6517         compat macros for push/pop/set_visual that were supposed
6518         to be added a long time ago, but got dropped. 
6519
6520 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
6521
6522         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
6523         property notifies.
6524
6525 2001-08-07  Havoc Pennington  <hp@pobox.com>
6526
6527         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
6528
6529         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
6530         some fixage is needed here, but nothing simple. Owen understands
6531         it. ;-)
6532
6533         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
6534         sizing and positioning.  Also, fix bug in compute_geometry_hints
6535         (width/height confusion for setting min size). 
6536         (gtk_window_move): new function
6537         (gtk_window_resize): new function
6538         (gtk_window_get_size): new function
6539         (gtk_window_get_position): new function
6540         (gtk_window_parse_geometry): new function
6541         
6542         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
6543         (gtk_widget_get_size_request): new function
6544         (gtk_widget_get_usize): delete, that was a short-lived function
6545         ;-)
6546         (gtk_widget_set_usize): deprecate
6547         (gtk_widget_set_uposition): deprecate, make it a trivial 
6548         gtk_window_move() wrapper
6549         (gtk_widget_class_init): remove x/y/width/height properties,
6550         add width_request height_request
6551         
6552         * demos/*: update to avoid deprecated functions
6553         
6554         * gtk/gtklayout.c: add x/y child properties
6555
6556         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
6557         uses of "gint16"
6558
6559         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
6560         sizing test
6561
6562         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
6563         configure events on toplevel windows are always in root window
6564         coordinates, following ICCCM spec that all synthetic events 
6565         are in root window coords already, while real events are 
6566         in parent window coords. Previously the code assumed that 
6567         coords of 0,0 were parent window coords, which was 
6568         really broken.
6569   
6570         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
6571         warning
6572  
6573         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
6574         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
6575         hints in gtk_window_parse_geometry()
6576  
6577         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
6578         new USER_POS USER_SIZE hints    
6579
6580 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6581
6582         * tests/prop-editor.c (properties_from_type): Use 
6583         g_object_class_list_properties to get the param specs 
6584         for a given type. (#58609)
6585
6586 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6587
6588         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
6589         free the text_aa parts. (#57549)
6590
6591 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6592
6593         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
6594         not the foreground color. (#57621)
6595
6596 2001-08-09  Alexander Larsson <alexl@redhat.com>
6597
6598         * gdk/win32/gdkfont-win32.c:
6599         Update to the new pango win32 api.
6600
6601 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
6602
6603         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
6604         COMPOUND_TEXT instead of TEXT
6605         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
6606         interpret the return value of g_string_to_compound_text()
6607         (#55152)
6608
6609 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6610
6611         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
6612         fail if iter is NULL. (#58347)
6613
6614 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6615
6616         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
6617         some off-by-one issues, fixing selection of line-ends. (#50323)
6618
6619 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6620
6621         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
6622         functions in order to make mouse operation work again in the
6623         color wheel. (#58604)
6624
6625 2001-08-07  James Henstridge  <james@daa.com.au>
6626
6627         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
6628         the accelerator when the accel object is changed.  Fixes bug
6629         #58628.
6630
6631 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
6632
6633         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
6634         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
6635         (gnome bugzilla #58202)
6636
6637 2001-08-06  Havoc Pennington  <hp@pobox.com>
6638  
6639         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
6640         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
6641         it was expecting a GdkWindow, not a GdkWindowImplX11.
6642  
6643         Also, we were getting the window rect in screen coords 
6644         and the screen rect in window coords then intersecting 
6645         them; instead, get window rect in window coords.
6646  
6647         Finally, there were codepaths that resulted in a stuck server grab
6648         (when the window was fully onscreen, or on gdk_image_new()
6649         failure); make the server ungrab thing a bit more
6650         robust/consistent.
6651
6652 2001-08-06  Sven Neumann  <sven@gimp.org>
6653
6654         * gdk/gdkpango.c (gdk_pango_context_destroy): 
6655         check if info->colormap != NULL before unref'ing it. It might have
6656         been set to NULL using gdk_pango_context_set_colormap().
6657
6658 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
6659
6660         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
6661         Fix conversion from float to int so that we don't get
6662         skew in the int => float => int roundtrip. 
6663         (#58120, reported by Vitaly Tishkov). Also fix problem
6664         where if no alpha was set, the returned alpha
6665         from (say) set_current_alpha() was returned as 1, not 65535.
6666
6667 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
6668
6669         * gtk/gtklist.c (gtk_list_clear_items): Fix
6670         problem with selecting a new focus child.
6671
6672         * gtk/gtklist.c (gtk_list_clear_items): Clear 
6673         list->undo/list_focus_child after unparenting
6674         child, since unparenting the child can result
6675         in list->last_focus_child being set. (#58024)
6676
6677         * Makefile.am (SUBDIRS): Add target specific pc
6678         files to DISTCLEANFILES.
6679
6680         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
6681         (58327, Matthias Clasen)
6682
6683 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
6684
6685         * tests/testgtk.c: Patch from Hans (with various modifications),
6686         to add the ability to use testgtk as a rough-and-ready
6687         benchmark. Try, 'testgtk --bench all:5' (if you want decent
6688         numbers, run without a window manager)
6689
6690 2001-08-04 Alexander Larsson <alexl@redhat.com>
6691
6692         * gdk/win32/gdkinput.c:
6693         Add #ifdef HAVE_WINTAB around wintab.h include.
6694
6695         * gtk/gtk.def:
6696         Removed marshals that have been moved to glib.
6697         Commented out plug and socket. They didn't compile for me 
6698         on win32.
6699
6700 2001-08-04  Hans Breuer  <hans@breuer.org>
6701
6702         * gtk/stocks-icons/makefile.msc : new file
6703         * gtk/makefile.msc.in : use it
6704
6705         * gtk/gtkstyle.c : not all platforms do provide M_PI and
6706         friends, but luckily there is G_PI
6707
6708         * gtk/gtk.def : updated
6709
6710         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
6711         windows WS_POPUP, but only those without a parent. This fixes the 
6712         mis-alignment between the selectable (temp, input only) window and 
6713         the window text of GtkLabel.
6714
6715         (gdk_window_show) : respect private->state when actually showing
6716         the window.
6717
6718         (gdk_window_set_transient_for) : Implementation from Wolfgang 
6719         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
6720         error handling. Should fix #50586.
6721
6722         * gdk/win32/gdkevents-win32.c : beautify log output
6723
6724 2001-08-04  Michael Natterer  <mitch@gimp.org>
6725
6726         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
6727         Need to show the image after adding it to the GtkImageMenuItem.
6728         This used to work without in testgtk because of the
6729         gtk_widget_show_all() at the end of the function.
6730         (Closes #54978).
6731
6732 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
6733
6734         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
6735         (gtk_notebook_set_child_property): fix finding of child's page,
6736         since we have to validly deal with labels and menus here as well.
6737         (gtk_notebook_get_child_property): fix warning.
6738         (gtk_notebook_class_init): property tab_pack is of type
6739         GTK_TYPE_PACK_TYPE (enum) not boolean.
6740         (gtk_notebook_find_child): don't always warn, we might be looking
6741         for a label or menu child.
6742         (gtk_notebook_map): fix mapping of panel.
6743
6744         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
6745         widget's mapped state, regardless of the value being set equals
6746         old settings, since things like REALIZED(parent) or MAPPED(parent)
6747         may have changed since the old value was set. make it an error to
6748         invoke this function on a toplevel widget.
6749
6750 2001-07-31  Darin Adler  <darin@bentspoon.com>
6751
6752         * gdk/gdkprivate.h:
6753         * gdk/x11/gdkx.h:
6754         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
6755
6756         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
6757         GTK_OBJECT.
6758
6759 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
6760
6761         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
6762         scoping error pointed out by matthiasc@poet.de.
6763
6764 2001-07-31  Sven Neumann  <sven@gimp.org>
6765
6766         * demos/gtk-demo/appwindow.c
6767         * demos/gtk-demo/item_factory.c
6768         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
6769
6770 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
6771
6772         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
6773         argument order for g_signal_has_handler_pending.
6774
6775 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
6776
6777         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
6778         instead of long deprecated g_scanner_stat_mode().
6779
6780 2001-07-29  Hans Breuer  <hans@breuer.org>
6781
6782         * gdk/makefile.msc : build in the backend dir after
6783         auto-generating files
6784
6785         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
6786         with code from win32-production-branch.
6787
6788         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
6789         before calling DestroyWindow, which indirectly calls 
6790         gdk_window_destroy_notify ()
6791
6792         (performance patch merged from win32-production-branch)
6793         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
6794         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
6795         R2_COPYPEN rop). It is claimed to be much faster.
6796
6797 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
6798
6799         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
6800         add an "attributes" property to the text renderer for ATK.
6801
6802 2001-07-26  Alex Larsson  <alexl@redhat.com>
6803
6804         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6805         Initialize image->bits_per_pixel from the drawable, not from
6806         the root window.
6807
6808         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
6809         Fix cast. argument is an IMPL already.
6810
6811 2001-07-15  James Henstridge  <james@daa.com.au>
6812
6813         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
6814         (gtk_window_remove_accel_group): same here.
6815         (gtk_window_key_press_event): same here.
6816
6817         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
6818         (gtk_widget_remove_accelerator): same here.
6819         (gtk_widget_remove_accelerators): same here.
6820
6821         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
6822
6823         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
6824         instead of GtkObject.
6825
6826         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
6827         now takes GObjects.
6828
6829         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
6830         pass a GObject to gtk_accel_group_entries_from_object.
6831         (gtk_item_factory_create_item): s/accel_widget/accel_object/
6832
6833         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
6834
6835         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
6836
6837         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
6838         GObjects can have accelerators set now.  Add compatibility
6839         defines.
6840
6841         * gtk/gtkmarshal.list: add missing marshallers.
6842
6843         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
6844         accelerators on plain GObjects.  gtk_accel_group_object_destroy
6845         has been converted into a weak reference, and
6846         gtk_accel_group_delete_entries is now a destroy notify for that
6847         piece of data.
6848
6849 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
6850
6851         * gdk/gdkdraw.c: Added a check on the colormap depth to
6852         gdk_drawable_set_colormap()
6853         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
6854         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
6855         for pixmaps without visuals (more specifically, bitmaps)
6856         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
6857         doesn't set a colormap with the wrong depth
6858
6859
6860 2001-07-22  Anders Carlsson  <andersca@gnome.org>
6861
6862         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
6863         expander_height and expander_width properties with a single
6864         property, expander_size.
6865         (gtk_tree_view_init): Set the tab_offset to expander_size
6866         plus some padding.
6867         (gtk_tree_view_unrealize): Remove the expand/collapse
6868         timeout if it exists.
6869         (coords_are_over_arrow): Fix a small bug.
6870         (gtk_tree_view_motion_draw_column_motion_arrow): Use
6871         expander_size.
6872         (gtk_tree_view_draw_focus): Use "treeview" instead of
6873         "add-mode" as detail when drawing the focus.
6874         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
6875         instead of "add-mode" as detail when drawing the focus.
6876         (gtk_tree_view_deleted): If we have a node currently being
6877         expanded or collapsed, remove the timeout and set the node 
6878         to NULL.
6879         (gtk_tree_view_queue_draw_arrow): New function that just
6880         redraws the arrow of a node.
6881         (gtk_tree_view_draw_arrow): Use expander_size instead of
6882         expander_width/expander_height, also pass a different
6883         expander_style to gtk_paint_expander depending on the 
6884         state of the node being drawn.
6885         (expand_collapse_timeout): New function for expanding 
6886         or collapsing a node depending on the previous state.
6887         (gtk_tree_view_real_expand_row): Add timeout and set 
6888         correct state for node being expanded.
6889         (gtk_tree_view_real_collapse_row): Add timeout and set
6890         correct state for node being collapsed.
6891
6892         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
6893         information about the node currently being expanded or
6894         collapsed, and also a timeout id.
6895
6896         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
6897         with expander_style for draw_expander.
6898
6899         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
6900         expander_style.
6901         (create_expander_affine): New function for creating an 
6902         expander affine.
6903         (apply_affine_on_point): New function for applying an 
6904         affine to a point.
6905         (gtk_default_draw_expander): Modified to take expander_style
6906         instead of is_open, and to draw the rectangle rotated differently
6907         depending on the expander style.
6908         (gtk_paint_expander): Replace is_open with expander_style.
6909
6910         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
6911
6912         * gtk/gtkenums.h: Add expander style enum.
6913
6914 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
6915
6916         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
6917         value from gtk_tree_model_get_iter, the model might be empty.
6918
6919 2001-07-20  Hans Breuer  <hans@breuer.org>
6920
6921         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
6922         gdk/gdkinput.c like the other backends
6923
6924         * gdk/win32/gdkinput-win32.h :
6925         * gdk/win32/gdkinput.c :
6926         * gdk/win32/gdkvisual-win32.c :
6927         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
6928         GdkVisual GObjectification. UNTESTED for pen-devices because
6929         I simply have none.
6930
6931         * gdk/gdk.def :
6932         * gtk/gtk.def : updated externals
6933
6934         * gtk/gtkiconfactory.c :
6935         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
6936         before passing &error to functions to avoid strange crashes
6937         
6938         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
6939
6940         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
6941
6942         * gtk/makefile.msc.in : updated
6943
6944 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
6945
6946         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
6947         Add property support. (#51858)
6948
6949 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
6950
6951         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
6952         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
6953         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
6954
6955 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
6956
6957         * gtk/gtkcolorsel.c: Add propery support (roughly
6958         based on patch from Lee Mallabone, #51014)
6959
6960         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
6961         deprecated, since we already g_warning() on it.
6962
6963 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
6964
6965         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
6966         typo that sometimes caused selection not to work properly.
6967
6968         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
6969         entry when tabbing in. (#57743)
6970         
6971         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
6972         user drags up above or down below the entry, move
6973         to the end or the beginning of the entry. (Suggestion
6974         from Jay Cox, #50940)
6975
6976         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
6977         a current selection, then when moving by chars or
6978         words, move to the end of the selection rather than
6979         from entry->current_pos. (Suggestion from Jay Cox,
6980         #50942)
6981         
6982 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
6983
6984         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
6985         set window->decorated. (Patch from Hidetoshi Tajima,
6986         #55846)
6987
6988 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
6989
6990         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
6991         the widget/child realization/mapping invariants.
6992
6993         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
6994         gtk_widget_[get/set]_child_visible() to control
6995         whether visible children of a mapped window are
6996         mapped.
6997
6998         * docs/widget_system.txt: Updated for changes in
6999         container contract, and addition of GTK_CHILD_VISIBLE.
7000
7001         * gtk/gtkcontainer.c: Add generic map()/unmap()
7002         functions that work for almost all containers.
7003
7004         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
7005         gtk_widget_set_child_visible() where necessary.
7006
7007         * gtk/*.c: Remove excess map(), unmap(), and 
7008         realization/mapping invariant enforcing code
7009         from many containers.
7010
7011 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
7012
7013         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
7014         Get the foreground color from 'text', nor 'fg'. (#57568)
7015
7016 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
7017
7018         * gtk/*.c: Patch from Matthias Clasen to remove remove
7019         all instances of g_return_if_fail (foo != NULL); that are
7020         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
7021         since the second check catches the NULL anyways.
7022
7023 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
7024
7025         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
7026         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
7027         GDK_THREADS_ENTER()/LEAVE() pairs.
7028
7029         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
7030         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
7031         pairs. (Problem found by M. Meeks)
7032
7033 2001-07-18  Darin Adler  <darin@bentspoon.com>
7034
7035         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
7036         that we don't get a g_warning message every time we register a new
7037         icon size.
7038
7039         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
7040         using pixel variable of the correct type.
7041         
7042 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
7043
7044         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
7045         so that using X functions on a GdkWindow is possible, if
7046         a little hairy.
7047
7048         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
7049         and ts_origin of a GC, so that external parties can offset/restore
7050         a GC, when using gdk_window_get_internal_paint_info().
7051
7052 2001-07-17  Darin Adler  <darin@bentspoon.com>
7053
7054         * .cvsignore: Ignore the sgml directory made by gtkdoc.
7055         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
7056         instead of the deprecated gtk_window_set_policy.
7057         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
7058         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
7059         function to get rid of warning and some code too.
7060         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
7061         missing const.
7062         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
7063         unused local.
7064         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
7065         const.
7066         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
7067         (gdk_utf8_to_compound_text): Add missing const.
7068         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
7069         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
7070         cast and get rid of an unnecessary one.
7071         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
7072         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
7073         local.
7074         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
7075         Remove unused local.
7076         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
7077         missing const.
7078         * tests/testsocket.c: (add_child): Add cast so the printf format
7079         doesn't make us implicitly depend on what integer type
7080         gtk_socket_get_id returns.
7081         * tests/testtextbuffer.c: Add missing const.
7082         * tests/testtreefocus.c: (main): Remove unused local.
7083         * tests/treestoretest.c: (iter_remove): Remove unused local.
7084         (uppercase_value): Remove unused function.
7085         (make_window): Add statement to quiet the compiler's uninitialized
7086         variable warning.
7087
7088 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
7089
7090         * gtk/gtkrange.c:
7091         (second_timeout): 
7092         (initial_timeout): 
7093         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
7094         (gtk_range_calc_layout): compute the new layout based on an
7095         adjustment->value being passed in as argument.
7096         (gtk_range_button_press): for button2 slider warps, first recalc
7097         the layout, then adjust the value. also, use update_slider_position()
7098         for adjusting the value, so we keep pixel quantisation at which we
7099         usually operate (upon motion or button releases). the reason for this
7100         is that, we can't change the adjustment upon button2 presses to a non
7101         quantised value and upon button2 release re-quantise the value since
7102         that'd alter the value even if we didn't get any motion events (causing
7103         unexpected scroll area warps upon release and/or slider pixel-jitter).
7104         (gtk_range_motion_notify): update the slider position from queried
7105         coordinates, not event coordinates.
7106
7107 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
7108
7109         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
7110         the default gc values are: width=0, CapBut, JoinMiter.
7111
7112 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
7113
7114         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
7115         into account the xpad and ypad when calculating the width and the
7116         height of the pixbuf cel.
7117
7118 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
7119
7120         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
7121         Rename to gtk_radio_menu_item_get_group(), add deprecated
7122         alias. (#57044)
7123
7124         * gtk/gtkfilesel.c: Indentation fix.
7125
7126 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
7127
7128         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
7129         Hasselmann to fix warnings in compat macros. 
7130         (#56773)
7131
7132         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
7133         stupid wrong cast added in last patch.
7134
7135 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
7136
7137         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
7138         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
7139
7140 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
7141
7142         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
7143         missing cast.
7144
7145         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
7146         NULL/FALSE return value confusion.
7147
7148         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
7149         problem when scrollbar completely fills range. (Patch
7150         from  Matthias Clasen, #57047)
7151
7152 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
7153
7154         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
7155         clean up when handling events for move-resize emulation.
7156         (Problem traced down by Matthias Clasen, #57271)
7157
7158 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
7159
7160         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
7161           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
7162           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
7163           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
7164           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
7165           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
7166           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
7167         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
7168
7169 2001-07-09  Peter Williams  <peterw@ximian.com>
7170
7171         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
7172         for when srcdir != builddir
7173
7174 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
7175
7176         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
7177         gtk_tree_model_get_iter_root.
7178
7179         * gtk/gtkliststore.c: Add a bunch of g_return statements.
7180         (gtk_list_store_iter_n_children): Fix up.
7181
7182         * gtk/gtktreestore.c: Add a bunch of g_return statements.
7183
7184 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
7185
7186         * gtk/gtkwidget.c (gtk_widget_class_init):
7187         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
7188         restore some workingness.
7189
7190         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
7191         handle of window type for input-only windows.
7192
7193 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
7194
7195         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
7196         Patch from Gregory Merchan to add 
7197         gtk_button_box_set_secondary(), which separates
7198         the child into a separate group from the normal
7199         buttons. (#56331)
7200
7201         * gtk/gtkdialog.c: Make help buttons secondary by
7202         default.
7203
7204         * gtk/gtkbbox.c: Added a child property "secondary".
7205
7206         * gtk/testgtk.c: Turn on the help button for the 
7207         color selector to check that it properly appears
7208         as secondary.
7209
7210 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
7211  
7212         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
7213         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
7214         Add gdk_set_pointer_hooks() to allow pointer-querying to
7215         be hooked by an event record/playback system like GERD.
7216         (#56914)
7217         
7218 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
7219
7220         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
7221         in the right value of initial_emission to
7222         gtk_widget_set_style_internal (#57091)
7223
7224 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
7225
7226         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
7227         Make compile.
7228
7229         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
7230         with calling gtk_widget_set_style_internal() with
7231         the old style, not the new style. (#56989)
7232
7233 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
7234
7235         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
7236           gtk/gtkwidget.c:
7237         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
7238         not GTK_WIDGET_GET_ANCESTOR ... see 
7239         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
7240         Indicate the best practice in the docs for gtk_widget_get_toplevel().
7241
7242         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
7243         so GtkPlug can give the correct signals when transforming
7244         from a child to a toplevel.
7245         
7246         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
7247         reparentation correctly.
7248
7249         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
7250         Propagate the previous_toplevel argument down properly.
7251
7252         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
7253         of wrong atr list.
7254
7255         * gtk/gtkplug.[ch]: Add an "embedded" signal.
7256
7257         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
7258         signals.
7259
7260         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
7261         functions gtk_plug_get_id(), gtk_socket_get_id(),
7262         to avoid the user having to worry about realization,
7263         and gdkx.h.
7264
7265         * tests/testsocket.c: Extend to try out the new signals
7266         and gtk_plug/socket_get_id().
7267
7268         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
7269         setting of underline attributes.
7270
7271         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
7272         DestroyNotify events from SubstructureNotifyMask
7273
7274         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
7275         Switch GDK_WINDOW_TYPE (window) as needed.
7276
7277         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
7278         allow creation of toplevel windows as children of
7279         foreign windows.
7280
7281         * gtk/gtkplug.c: Remove hacks involving changing private
7282         fields of GdkWindow.
7283
7284         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
7285         exactly the same signals and notification
7286         be emitted for local embedding as for inter-process
7287         embedding.
7288
7289 2001-07-04  James Henstridge  <james@daa.com.au>
7290
7291         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
7292
7293 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
7294
7295         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
7296         XEMBED embedding add a _XEMBED_INFO property to the
7297         client with version number and a "mapped" flags.
7298         Use the mapped flag instead of the racy MapRequestEvent
7299
7300         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
7301         code to reliably set things (when the child is a passive
7302         embedder participating in the XEMBED protocol) intead
7303         of just being a hack for embedding non-participating
7304         programs. Fix various bugs and race conditions.
7305         
7306         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
7307         work by simply making the GtkSocket the gtk parent
7308         of the GtkPlug. Set a flag in this case and make
7309         the GtkPlug work like a normal container by overriding
7310         methods such as check_resize and "chaining past" GtkWindow
7311         to GtkBin.
7312
7313         * gtk/gtkentry.c (gtk_entry_real_activate)
7314           gtk/gtkmain.c (gtk_propagate_event): 
7315         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
7316         
7317         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
7318         gtk_widget_get_ancestor):
7319         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
7320         might not give the expected result and recommend
7321         an alternative.
7322
7323         * tests/testsocket.c tests/testsocket_child.c
7324         tests/testsocket_common.c tests/Makefile.am: Extended
7325         to test different type of adding plugs to sockets
7326         (local,active,passive), and to test mapping/unmapping
7327         the plug.
7328
7329         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
7330         mark the window as destroyed until after we
7331         called _gdk_windowing_window_destroy().
7332         (_gdk_windowing_window_destroy() may use GDK functions
7333         on the window.)
7334
7335         * gdk/x11/gdkinput.c: Remove the check for finalization - 
7336         devices can be finalized under some circumnstances.
7337  
7338         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
7339         small problem with GDK_TYPE_DEVICE.
7340  
7341 2001-07-02  Havoc Pennington  <hp@pobox.com>
7342
7343         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
7344         use constants not atoms.
7345
7346 2001-07-02  James Henstridge  <james@daa.com.au>
7347
7348         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
7349         PANGO_TYPE_TAB_ARRAY.
7350
7351         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
7352         for PANGO_TYPE_TAB_ARRAY.
7353
7354         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
7355         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
7356
7357         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
7358         the file.  Remove Pango types from defs -- they are now defined in
7359         libpango.
7360
7361 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
7362
7363         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
7364
7365         * gtk/gtkobject.c (gtk_object_destroy): invoke
7366         g_object_run_dispose().
7367
7368         * gtk/gtkwindow.c: 
7369         * gtk/gtkwidget.c: 
7370         * gtk/gtkobject.c:
7371         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
7372         method.
7373
7374 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
7375
7376         * gtk/gtktypeutils.c (gtk_type_class): Remove
7377         change check for GTK_TYPE_OBJECT derivation to
7378         G_TYPE_OBJECTS - it's Tim-approved to use this 
7379         for arbitary objects.
7380
7381         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
7382         prefix gtk_container_dequeue_resize_handler().
7383
7384         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
7385         to the hierarachy_changed signal, since you otherwise
7386         have to always keep that around.
7387
7388         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
7389         for extra argument to hierarchy_changed.
7390
7391 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
7392
7393         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
7394         for style to mean "revert to default style"
7395
7396         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
7397           gtk_widget_restore_default_style): Make this functions
7398         deprecated aliases for gtk_widget_set_style (widget, NULL).
7399
7400         * gtk/gtkwidget.[ch]: Remove:
7401            gtk_widget_set_default_style ()
7402            gtk_widget_push_style ()
7403            gtk_widget_pop_style ()
7404         These functions interact are overriden by RC files, and
7405         thus virtually useless, and complicated.
7406
7407 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
7408
7409         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
7410         most of the previous global variables in gtkrc.c. This is
7411         in preparation for multi-head, since each screen can
7412         have different GtkSettings and RC information.
7413
7414         * gtk/gtkrc.[ch]: 
7415
7416         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
7417         GtkSettings parameter to GtkRcStyle::parse.
7418
7419         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
7420         Add two new settings gtk-theme-name, gtk-key-theme-name,
7421         for RC files that are loaded by name after reading
7422         the default RC files.
7423         
7424         * gtk/gtkrc.c: Allow priorities for styles, as wll as
7425         bindings.
7426
7427         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
7428         and use it by default for RC files loaded via 
7429         gtk-theme-name, gtk-key-theme-name.
7430
7431         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
7432         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
7433         tests/testgtkrc: Require pathnames to be absolute.
7434
7435         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
7436         the source when parsing, since the operation of looking up a
7437         pixmap from an RC file depends on the parsing context.
7438
7439         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
7440         reset RC styles on all widgets when files are reparsed.
7441
7442         * tests/testgtk.c (create_rc_file) 
7443           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
7444         Simplify, now that gtk_rc_reparse_all() resets styles on
7445         all widgets itself.
7446
7447         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
7448         return value.
7449
7450         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
7451         GtkSettings argument.
7452
7453         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
7454         gtk_settings_get_global().
7455
7456         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
7457         to get the appropriate GtkSettings for a widget. (For now,
7458         just gets the default GtkSetttings.) 
7459
7460         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
7461           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
7462         changes.
7463
7464         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
7465         getting a style for a path without actually having a widget.
7466         (Allows using a style for a subpart of a widget, for
7467         example.)
7468
7469         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
7470         the RC files to be reloaded for just one GtkSettings
7471         (not sure how useful this really is.)
7472
7473         * gtk/gtkrc.h: Deprecate
7474         gtk_rc_add_widget_name/widget_class/class_style
7475
7476 2001-06-30  Alex Larsson  <alexl@redhat.com>
7477
7478         * gdk/linux-fb/gdkinput-none.c:
7479         * gdk/linux-fb/gdkinput.c:
7480         * gdk/linux-fb/gdkinputprivate.h:
7481         Convert GdkDevice to a GObject.
7482
7483         * linux-fb/gdkprivate-fb.h:
7484         * linux-fb/gdkvisual-fb.c:
7485         Convert GdkVisual to a GObject.
7486
7487 2001-06-29  Alex Larsson  <alexl@redhat.com>
7488
7489         * gdk/gdkvisual.h:
7490         * gdk/gdkcolor.c:
7491         * gdk/x11/gdkx.h:
7492         * gdk/x11/gdkvisual-x11.c:
7493         Convert GdkVisual to a GObject.
7494
7495         * gdk/gdkinput.h:
7496         * gdk/gdkevents.c:
7497         * gdk/x11/gdkinputprivate.h:
7498         * gdk/x11/gdkinput-gxi.c:
7499         * gdk/x11/gdkinput-none.c:
7500         * gdk/x11/gdkinput-x11.c:
7501         * gdk/x11/gdkinput-xfree.c:
7502         * gdk/x11/gdkinput.c:
7503         Convert GdkDevice to a GObject.
7504
7505 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
7506
7507         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
7508         to just plain new, fixing the number of columns, and column types
7509         at creation time.
7510
7511         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
7512
7513         * gtk/gtkcellrenderertext.c
7514         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
7515         height to a specific font.
7516
7517         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
7518
7519         * tests/*c: change to work with new store models.
7520
7521 2001-06-29  Havoc Pennington  <hp@redhat.com>
7522
7523        * Throughout: fixes to compile with G_DISABLE_COMPAT
7524         (s/g_signal_connectc/g_signal_connect/,
7525         s/g_signal_newc/g_signal_new/,
7526         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
7527
7528 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
7529
7530         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7531         add path argument to selection callbacks.
7532
7533 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
7534
7535         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
7536         walk through a model in a depth first manner, with the option to
7537         break out.
7538
7539 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
7540
7541         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
7542         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
7543         column and follow it when draged, rather than a location in the
7544         view. "expander_column" property and drawing functions changed
7545         accordingly.  Fixes bug #55942.
7546
7547         (gtk_tree_view_{set,get}_expander_column): Now works with a
7548         GtkTreeViewColumn* instead of int.
7549
7550 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
7551
7552         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
7553
7554 2001-06-28  Havoc Pennington  <hp@pobox.com>
7555
7556         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
7557         image data to the screen, using a server grab to avoid race
7558         conditions.
7559
7560         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
7561         check for NULL return from gtk_image_new_from_stock(), it never
7562         returns NULL.
7563         (gtk_item_factory_create_item): fix bug where we parsed the stock
7564         ID as an inline pixbuf
7565
7566         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
7567
7568         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
7569         support (should be using binding set here)
7570
7571         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
7572         support (should be using binding set here)
7573
7574         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
7575         support
7576
7577         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
7578
7579         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
7580
7581         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
7582
7583         * gtk/gtkimcontextsimple.c
7584         (gtk_im_context_simple_filter_keypress): keypad
7585
7586         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
7587
7588         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
7589
7590         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
7591
7592         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
7593         should be binding-setted)
7594
7595         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
7596
7597         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
7598
7599         * gtk/gtkcalendar.c: numeric keypad fixes
7600
7601         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
7602         support
7603
7604         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
7605         screwup
7606
7607         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
7608         clip the render area to the drawable's clip region in advance,
7609         so we don't get data from the server that we don't need.
7610
7611         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7612         check return value of gdk_pixbuf_get_from_drawable(), fall back 
7613         to bilevel alpha if we can't get the pixbuf to composite against.
7614
7615         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
7616
7617         * gdk/gdkimage.c (gdk_image_get_colormap): add
7618         gdk_image_set_colormap, gdk_image_get_colormap
7619
7620         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
7621         take a region of the image, instead of converting the entire
7622         image.
7623
7624         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
7625         keybinding signal. Add default bindings for it. Add default
7626         handler for show_help that shows the tooltip for the widget.
7627
7628         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
7629         "close" keybinding signal, remove key press handler.
7630
7631         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
7632         it's not our usual practice to leave a deprecated function around
7633         with a runtime warning, plus we don't want it to appear in docs,
7634         plus if we make them yellow no one will want to change them
7635         anyhow.
7636
7637 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
7638
7639         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
7640         GTK_WIDGET_REALIZE() for resize queueing.
7641
7642         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
7643         GTK_WIDGET_REALIZE() for post event delivery destruction upon
7644         GDK_DESTROY.
7645         
7646         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
7647         sompensate for former (pre-2.0) connect_after() facility.
7648         (gtk_widget_send_expose): 
7649         (gtk_widget_event): assert the widget is realized, since event delivery
7650         to non-realized widgets is essentially a bug. event handlers should
7651         be able to unconditionally rely on widget->window (unless they
7652         emit events on their own which can trigger widget destruction).
7653         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
7654         logic. event delivery happens as follows:
7655         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
7656         b) if !was_handled in (a) and the widget is still realized, emit event-
7657            specific signal (RUN_LAST handler). returns was_handled.
7658         c) emission of GtkWidget::event-after for notification if the widget is
7659            still realized (regardless of was_handled from previous stages, no
7660            class handler). no return value.
7661         d) was_handled gets passed on to caller, to determine further
7662            propagation. if the widget got unrealized meanwhile, was_handled
7663            is returned as TRUE.
7664
7665         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
7666         gdk_event_get_coords().
7667
7668 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
7669
7670         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
7671         age 0, binary age 0. depend on glib 1.3.7.
7672
7673         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
7674
7675         * gtk/gtkmenubar.c: same here.
7676         
7677         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
7678
7679         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
7680
7681         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
7682         
7683         * gtk/gtkmenubar.c (add_to_window): likewise.
7684         
7685         * gtk/gtktextbtree.c: and here...
7686         
7687         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
7688         
7689         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
7690         
7691         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
7692         
7693         * gtk/gtktreeviewcolumn.c:
7694         (_gtk_tree_view_column_set_tree_view): yet again.
7695
7696         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
7697         signal connections without g_signal_connect_data().
7698         
7699         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
7700         demo of the matter.
7701         
7702         * demos/testpixbuf.c (main): running out of equality phrases for the
7703         ChangeLog, but had to adapt connections here as well.
7704         
7705         * demos/testanimation.c (progressive_timeout): and for the fun of it,
7706         tackled this the same way.
7707         
7708         * tests/testtext.c (create_view): ok, it's becoming a pain at this
7709         point, but had enough enery for one more fix.
7710
7711         * tests/testtreecolumns.c (main): stand up man, do your work!
7712
7713         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
7714         fix, either that's been all of it or CVS gtk is broken yet again.
7715         
7716 2001-06-29  James Henstridge  <james@daa.com.au>
7717
7718         The following changes correspond to bug #56812
7719
7720         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
7721         code for GdkDevice.
7722
7723         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
7724         GdkCursor.
7725
7726 2001-06-19  Havoc Pennington  <hp@pobox.com>
7727
7728         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
7729         for mapping a window without fooling with stacking order, but
7730         updating the "withdrawn" flag
7731
7732         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
7733         filtering as soon as possible, moving move resize and wmspec_check
7734         handling after the event filter.  Make default filter apply to all
7735         events, not just those with no GdkWindow wrapped around the X
7736         window. Fix a FIXME about how the window could be a pixmap using 
7737         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
7738
7739         Also, be robust against events not on a known GdkWindow.
7740
7741         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
7742         gdk_x11_ungrab_server): export reference-counted server grabs, so
7743         other people can grab server over a GDK function that also does
7744         so.
7745
7746 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
7747
7748         * gtk/gtktreeviewcolumn.c
7749         (gtk_tree_view_column_pack_start_cell_renderer): New function to
7750         reflect that you can (hypothetically) pack cell renderers into a
7751         column.
7752         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
7753         (gtk_tree_view_column_cell_is_visible): Move more functionality to
7754         the column.
7755         (gtk_tree_view_column_cell_can_focus): Move more functionality to
7756         the column.
7757
7758         * gtk/gtktreeview.c: Move to use new column-packing code.
7759         (gtk_tree_view_real_expand_row): remove totally braindead code.
7760         (gtk_tree_view_real_collapse_row): ditto.
7761
7762 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
7763
7764         * gtk/gtktreeviewcolumn.c: Fix a typo.
7765         
7766 2001-06-26  Joel Becker  <jlbec@evilplan.org>
7767
7768         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
7769           at the end of the file
7770
7771 2001-06-26  Havoc Pennington  <hp@redhat.com>
7772
7773         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
7774
7775 2001-06-26  Havoc Pennington  <hp@redhat.com>
7776
7777         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
7778         property
7779
7780 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
7781
7782         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
7783         stupid missing statement
7784
7785         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
7786         private function for ATK.  It notifies you of how many _visible_
7787         children are deleted when a node is deleted.  Should be used by
7788         atk only.
7789
7790 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
7791
7792         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
7793         Use new pango_context_get_metrics() to fix problems
7794         with font lists in descriptions. (#56184, reported by
7795         Jonas Borgström)
7796
7797 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
7798
7799         * gtk/gtkiconfactory.c:
7800         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
7801         item factory so inlined pixbufs actually work.
7802
7803 2001-06-25  Havoc Pennington  <hp@redhat.com>
7804
7805         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
7806         s/RESIZEABLE/RESIZABLE/
7807
7808         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
7809
7810 2001-06-25  Alexander Larsson  <alexl@redhat.com>
7811
7812         * configure.in:
7813         Added --enable-fbmanager. This is some experimental code
7814         that lets several GtkFB apps coordinate their access to the
7815         framebuffer.
7816         
7817         * acconfig.h:
7818         Added ENABLE_FB_MANAGER.
7819
7820         * gdk/linux-fb/Makefile.am:
7821         Added gdkfbmanager and gdkfbswitch.
7822
7823         * gdk/linux-fb/gdkkeyboard-fb.c:
7824         * gdk/linux-fb/gdkmouse-fb.c:
7825         * gdk/linux-fb/gdkprivate-fb.h:
7826         Split device init and open so that
7827         they can be opened and closed while switched
7828         away.
7829
7830         * gdk/linux-fb/gdkmain-fb.c:
7831         Add the basic manager communication.
7832
7833         * gdk/linux-fb/gdkrender-fb.c:
7834         Don't update to the shadow fb if we're
7835         blocked by the fb manager.
7836
7837 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
7838
7839         * docs/Changes-2.0.txt: Add note about child property
7840         changes.
7841
7842 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
7843
7844         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
7845         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
7846
7847         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
7848         with un'reffing wrong list reported by Jeff Franks.
7849
7850         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
7851
7852         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
7853         for the default icon. Remove inline XPM.
7854
7855         * gtk/gtkstock.h gtk/gtkiconfactory.c:
7856         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
7857         is used for GTK_STOCK_DND, but it is a bit too small.)
7858
7859         * gtk/stock-icons/stock_dnd_multiple.png
7860         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
7861
7862         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
7863         TRUE when starting a drag. In other cases, we are
7864         just observing. (#52995)
7865
7866         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
7867         function to set the icon for a drag from a GdkPixbuf
7868         or stock ID.
7869
7870         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
7871         Likewise, for drag sources.
7872
7873         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
7874         (Now should be done using the stock system.)
7875
7876 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
7877
7878         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
7879         Removed - didn't work and not particularly useful anyways
7880         if it did. 
7881
7882 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
7883
7884         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
7885         introduced last night that was making things decidedly not work.
7886
7887         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
7888         so that we have getter/setter pairing everywhere it makes
7889         sense. (#55767)
7890
7891         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
7892         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
7893         deprecated compat macro. (#55516)
7894
7895         * gtk/gtklabel.[ch]: Add functions
7896         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
7897         gtk_label_set_label(), which mirror the property API for GtkLabel.
7898         Make gtk_label_get_attributes() only reflect the attributes
7899         set by gtk_label_set_attributes.
7900
7901         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
7902         from gtk_notebook_set_page().
7903
7904 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
7905
7906         * configure.in: Fix tests for XShm.h.
7907
7908         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
7909         gdk_image_new() by use of goto, properly use g_object_unref().
7910
7911 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
7912
7913         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
7914         calls, as GdkImage is an object. these should be g_obejct_unref()
7915         instead but that won't work because of the g_error() statement
7916         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
7917         to spot these places.
7918
7919 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
7920
7921         * modules/input/gtkimcontextxim.c: Fixup some problems with 
7922         text length handling in error cases.
7923
7924         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
7925         a bit to make test actually warn on attempt to allocation
7926         a negative size. (#56101, Matthias Clasen)
7927
7928 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
7929
7930         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7931         noticed by Brian Cameron.
7932         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
7933         Cameron.
7934
7935 2001-06-22  Hans Breuer  <hans@breuer.org>
7936
7937         * gdk/gdk.def : updated externals
7938
7939         * gdk/win32/gdkdrawable-win32.c : corrected some casts
7940         in GDK_NOTEs
7941
7942         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
7943         to translate coordinates to the internal > 16 bit system
7944         Try to handle WM_WINDOWPOSCHANGED to get better performance for
7945         when moving/resizing
7946
7947         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
7948         and gdk_keymap_get_direction (). The latter is untested for
7949         the RTL case
7950
7951         * gtk/gtk.def : updated externals
7952
7953         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
7954         from pango_language_from_string (), not an already freed pointer
7955
7956         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
7957         binary (-kb) to be useable on windoze
7958  
7959 2001-06-21  Alexander Larsson  <alexl@redhat.com>
7960
7961         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
7962         Update to new PangoLanguage changes.
7963         
7964         * gtk/gtkwindow-decorate.c:
7965         * gtk/gtkwindow.[ch]:
7966         Added setting argument to gtk_window_set_has_frame ()
7967         
7968 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
7969
7970         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
7971         the case without XKB properly.
7972
7973         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
7974         unused gtk_rc_auto_parse variable.
7975
7976         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
7977         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
7978         longer needed with GdkPixbuf.
7979
7980         * gtk/gtkrc.c (_gtk_rc_init): Make private.
7981
7982 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
7983
7984         * gtk/gtkentry.h: Mark deprecated functions with
7985         GTK_DISABLE_DEPRECATED.
7986
7987 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
7988
7989         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
7990
7991         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
7992
7993         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
7994           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
7995           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
7996           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
7997           to recent changes in Pango.
7998
7999         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
8000           to test whether the basic engine honors them.
8001
8002 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
8003
8004         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
8005         gtk_container_child_get_property().
8006
8007 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
8008
8009         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
8010         (gtk_tree_view_move_cursor_page_up_down): implement.
8011
8012 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
8013
8014         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
8015         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
8016         don't use automatic fixed size buffer for printf-ing floats, doubles
8017         can expand to really _huge_ strings, use g_strdup_printf() instead.
8018
8019 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
8020
8021         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
8022         construct property in 1.2 and still needs to be.
8023
8024         * gtk/gtkwidget.c: "composite_child" is not a settable property.
8025
8026 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
8027
8028         * gtk/gtkliststore.c (gtk_list_store_clear): 
8029         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
8030         clear a model.
8031
8032 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
8033
8034         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
8035
8036         * gtk/Makefile.am:
8037         * gtk/gtk.h: disabled GtkPacker compilation.
8038
8039         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
8040
8041         * gtk/gtknotebook.c:
8042         * gtk/gtktable.c:
8043         * gtk/gtkbox.c: ported this over to child properties.
8044
8045         * gtk/gtksettings.c: fetch class properties via
8046         g_object_class_list_properties().
8047
8048         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
8049         child arg interface. use gobjectnotifyqueue.c for child property
8050         notification.
8051
8052         * gtk/gtkwidget.[hc]: provide necessary means for container child
8053         properties, i.e. ::child_notify signal,
8054         gtk_widget_freeze_child_notify(),
8055         gtk_widget_child_notify(),
8056         gtk_widget_thaw_child_notify().
8057
8058         * tests/testgtk.c: removed inferior property handling code, for
8059         property editing, a generic module should be used, and GLE
8060         coincidentally fullfills that purpose.
8061
8062         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
8063         needs to be adapted to g_object_class_list_properties() before this
8064         builds again.
8065
8066 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
8067
8068         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
8069         test if a node is expanded.
8070
8071 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
8072
8073         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
8074         where collapsing a selected row would result in the cursor/anchor
8075         getting screwed up.
8076
8077 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
8078
8079         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
8080         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
8081         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
8082         Now I can really reorder/sort all Store widgets.  treesorttest
8083         seems to just work now.
8084         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
8085         testtreesort worked through a big coincidence all this time.
8086         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
8087         code.
8088         * tests/testtreecolumns.c: Big 'ol warning at the top letting
8089         people know that this code should never ever ever be copied.
8090
8091 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
8092
8093         * gtk/gtkwindow.h: Fixed a small typo, it should be
8094         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
8095         on line 134.
8096
8097 2001-06-14  Havoc Pennington  <hp@redhat.com>
8098
8099         Docs fixups, and:
8100         
8101         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
8102         GTK_DISABLE_DEPRECATED
8103
8104 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
8105
8106         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
8107         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
8108         finish it off tonight, though it basically works now when it's a
8109         list.  Also, I have a sinking feeling neither GtkTreeStore or
8110         GtkListStore actually resort when adding a new item.  I'll look
8111         into it.
8112
8113 2001-06-14  Havoc Pennington  <hp@redhat.com>
8114
8115         * demos/gtk-demo/main.c (load_file): fix bug identified by
8116         warnings I just added to gtktextbuffer
8117
8118 2001-06-14  Havoc Pennington  <hp@redhat.com>
8119
8120         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
8121
8122         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
8123
8124         * gtk/gtktextbtree.c: don't leak node data all over the place.
8125
8126         * demos/gtk-demo/main.c (main): create fontify tags for the right
8127         buffer
8128
8129         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
8130         to mention tags in the same table can't have the same name,
8131         suggested by Skip Montanaro
8132
8133 2001-06-11  Havoc Pennington  <hp@redhat.com>
8134
8135         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
8136         for trying to add two tags with same name to the tag table
8137
8138         * demos/gtk-demo/main.c (main): fix colors ;-)
8139
8140 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
8141
8142         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
8143         that allows grouping together multiple windows so that grabs
8144         within that set of windows only affect those windows.
8145
8146         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
8147         signal for notification when a widget becomes shadowed
8148         by a grab or is no longer shadowed by a grab.
8149
8150         * gtk/gtkwidget.c (gtk_widget_propagate_state)
8151           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
8152         insenstive widgets to maintain a grab.
8153
8154 2001-06-14  Alexander Larsson  <alexl@redhat.com>
8155
8156         * docs/README.linux-fb:
8157         Add some example config files that can be used with the URW fonts.
8158         
8159         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
8160         Set up the color ramps for DirectColor mode.
8161
8162 2001-06-11  Havoc Pennington  <hp@redhat.com>
8163
8164         * Release 1.3.6
8165          
8166 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
8167
8168         * gdk/linux-fb/gdkwindow-fb.c:
8169         Unify shaped window code and make it repaint the area that used
8170         to be part of the shape, but isn't anymore.
8171
8172 2001-06-11  Havoc Pennington  <hp@redhat.com>
8173
8174         * NEWS: Updates
8175
8176         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
8177
8178         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
8179         
8180 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
8181
8182         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
8183         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
8184         passes zero instead, so do we.
8185         
8186 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
8187
8188         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
8189         Deep copy dash_list too.
8190         (_gdk_fb_gc_new): Set default cap_style before
8191         setting values.
8192
8193 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
8194
8195         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
8196         gdk_keymap_get_direction): New functions.
8197
8198 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
8199
8200         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
8201         gtk_tree_model_get_flags by adding a second flag for atk.
8202
8203         * gtk/gtktreemodel.c: make cursor behavior interact better with
8204         mouse presses.
8205
8206 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
8207
8208         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
8209         expand_row/collapse_row to be 2 signals each -- test_expand_row
8210         and row_expanded as well as test_collapse_row and row_collapsed.
8211
8212 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
8213
8214         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
8215         signal name to be changed instead of selection_changed.
8216
8217 2001-06-08  Havoc Pennington  <hp@redhat.com>
8218
8219         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
8220         "scroll_offset" property for notification when the layout offsets
8221         may have changed
8222         (gtk_entry_adjust_scroll): add notify for scroll_offset
8223         (gtk_entry_layout_index_to_text_index): function to compensate for
8224         preedit string when doing coordinate stuff on the entry's layout
8225         (gtk_entry_text_index_to_layout_index): inverse function
8226         (gtk_entry_get_layout_offsets): hook to get current position of
8227         the layout      
8228         (gtk_entry_get_layout): hook to get the layout itself.
8229
8230         * gtk/gtklabel.c (gtk_label_get_layout): new function
8231
8232 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
8233
8234         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
8235         keybinding.
8236         (gtk_tree_view_focus): Fix merge conflict.
8237
8238 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
8239
8240         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
8241         clean up cursor handling.
8242
8243 2001-06-08  Havoc Pennington  <hp@redhat.com>
8244
8245         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
8246         function
8247
8248         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
8249         this function
8250
8251 2001-06-08  Alex Larsson  <alexl@redhat.com>
8252
8253         * gtk/gtkcompat.h.in:
8254         Added compat macros for all old GTK_TYPE_GDK_xxx types.
8255         Fixes bug #52892
8256
8257 2001-06-08  Havoc Pennington  <hp@redhat.com>
8258         
8259         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
8260         parent still
8261
8262 2001-06-08  Havoc Pennington  <hp@redhat.com>
8263
8264         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
8265         don't call g_list funcs on GSList
8266
8267         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
8268         gtk_container_focus(), since some widgets have focusable locations
8269         which are not other widgets. These widgets should not have to be 
8270         containers just to manage the focus. For example, GtkHSV is
8271         currently a container for no good reason. Also, this cleans
8272         up the "if (is_container && is_sensitive && is_drawable)
8273         container_focus ()" mess in widget implementations.
8274
8275         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
8276         function, and have it just call gtk_widget_child_focus().
8277
8278         * gtk/gtkhsv.c: derive from widget not container
8279         
8280         Throughout: fix to reflect GtkContainer::focus change
8281         
8282 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
8283
8284         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
8285         range.  Fix bug #55921
8286
8287         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
8288         (#55920).
8289
8290 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
8291
8292         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
8293         and gdk_keymap_get_current_direction().
8294
8295         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
8296           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
8297         the current locked group, use it to set the keymap
8298         direction.
8299
8300         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
8301         to determine whether we draw a split cursor or use
8302         a jumping cursor based on the current direction.
8303
8304         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
8305         Obey the split cursor setting. 
8306
8307 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
8308
8309         * gtk/gtkimmulticontext.c (activate_cb): Only activate
8310         when toggling on, not when toggling off... (#55906)
8311
8312 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
8313
8314         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
8315         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
8316         in docs. (#55812, Vitaly Tishkov)
8317
8318 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
8319
8320         * demos/gtk-demo/main.c (create_tree): Changed signal name from
8321         selection_changed to changed in signal connection to GtkTreeSelection,
8322         also used g_signal_connectc since GtkTreeSelection is now a GObject.
8323
8324 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
8325
8326         * gtk/gtktreeselection.c: Now it's a GObject instead of a
8327         GtkObject.  The GtkTreeSelection::selection_changed signal is now
8328         the GtkTreeSelection::changed signal.
8329
8330         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
8331         object.
8332
8333         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
8334         object.
8335
8336 2001-06-07  Havoc Pennington  <hp@redhat.com>
8337
8338         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
8339
8340 2001-06-07  Havoc Pennington  <hp@redhat.com>
8341         
8342         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
8343         (not tested yet because with absolute path to srcdir I can't build
8344         atk, but it was broken anyway so this may help) 
8345
8346 2001-06-07  Havoc Pennington  <hp@redhat.com>
8347
8348         * configure.in: output m4macros/Makefile
8349         
8350 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
8351
8352         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
8353         buttons.  Fixes #55460 reported by matthiasc@poet.de.
8354
8355 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
8356
8357         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
8358         expansion/collapsing so it only happens in one place.
8359         (gtk_tree_view_real_expand_row): ditto.
8360
8361 2001-06-07  Havoc Pennington  <hp@redhat.com>
8362
8363         * tests/Makefile.am: add missing -I flag
8364
8365         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
8366
8367         * configure.in: use pkg-config to see if GModule is
8368         supported; fix to properly turn on included loaders 
8369         when GModule isn't supported; don't use AC_CHECK_LIB 
8370         when libs are not installed yet
8371
8372         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
8373
8374         * Makefile.am (SUBDIRS): add m4macros subdir
8375
8376         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
8377         dependencies also.
8378
8379 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
8380
8381         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
8382         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
8383
8384 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
8385
8386         * gtk/gtktreeview.c
8387         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
8388         bindings to expand and collapse rows.
8389         (gtk_tree_view_real_select_cursor_parent): New key binding.
8390         (gtk_tree_view_real_toggle_cursor_row): New key binding.
8391
8392         * gtk/gtkmarshal.list: new
8393         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
8394
8395 2001-06-06  Havoc Pennington  <hp@redhat.com>
8396
8397         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
8398
8399         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
8400         Down to move visually rather than logically, since it confuses 
8401         people. Add -/+ and Ctrl--/+ bindings for logical movement.
8402
8403 2001-06-06  Alex Larsson  <alexl@redhat.com>
8404
8405         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
8406         Fix up error messages.
8407
8408 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
8409
8410         * gtk/gtktooltips.h: Include gtkwidget.h 
8411         (#55798, Karl Nelson)
8412
8413         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
8414         a valid latin-1 character. (Marc Lehmann, #35467)
8415
8416         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
8417         (Marc Lehmann, #35467)
8418         
8419 2001-06-05  Alex Larsson  <alexl@redhat.com>
8420
8421         * demos/gtk-demo/appwindow.c (do_appwindow):
8422         Don't swap the order of the args to gtk_widget_destroyed.
8423
8424         * tests/testgtk.c (destroy_properties):
8425         Don't crash when the properties window is destroyed.
8426
8427         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
8428         Use with_mnemonics to handle the case of stock items with
8429         underscores in them.
8430
8431 2001-06-05  Havoc Pennington  <hp@redhat.com>
8432
8433         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
8434         gtk_text_iter_reorder
8435
8436 2001-06-05  Havoc Pennington  <hp@redhat.com>
8437
8438         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
8439
8440 2001-06-05  Havoc Pennington  <hp@redhat.com>
8441
8442         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
8443         to the range that was set
8444
8445         * gtk/gtkrange.c: add value_changed signal, primarily 
8446         intended for use with GtkScale
8447         (gtk_range_set_increments): new function
8448         (gtk_range_set_range): new function with weird name
8449         (gtk_range_set_value): new function
8450         (gtk_range_get_value): new function
8451
8452         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
8453         from gtk_spin_button_get_value_as_float(). Compat #define
8454         added for get_value_as_float.
8455
8456         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
8457
8458         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
8459
8460 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
8461
8462         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
8463
8464 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
8465
8466         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
8467
8468         * tests/testgtk.c (create_tooltips): Remove usage of
8469         gtk_widget_set().
8470
8471 2001-06-05  Havoc Pennington  <hp@redhat.com>
8472
8473         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
8474
8475         Applying patch from Jeff Franks, with function docs added.
8476         
8477         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
8478         remove call to set_mnemonic_widget, change docs a bit.  
8479
8480         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
8481         new function
8482
8483         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
8484         new function
8485
8486         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
8487
8488         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
8489         function
8490         (gtk_radio_button_new_with_mnemonic_from_widget): new function
8491
8492         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
8493         new function
8494
8495         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
8496         function        
8497
8498         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
8499         auto-selection of mnemonic widget.
8500
8501 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
8502
8503         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
8504         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
8505         (gtk_tree_view_column_set_min_width): ditto.
8506
8507 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
8508
8509         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
8510         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
8511
8512 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
8513
8514         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
8515         gtk_clist_thaw().
8516
8517 2001-06-04  Havoc Pennington  <hp@pobox.com>
8518
8519         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
8520 r       eleases for buttons 6, 7
8521
8522 2001-06-04  Havoc Pennington  <hp@redhat.com>
8523
8524         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
8525         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
8526         #55562
8527
8528 2001-06-04  Havoc Pennington  <hp@redhat.com>
8529
8530         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
8531         where text_view->layout == NULL by assuming its size is 0, 
8532         i.e. same as if we haven't done any reflow. Reported by 
8533         Hidetoshi Tajima #55448 
8534
8535 2001-06-04  Havoc Pennington  <hp@redhat.com>
8536
8537         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
8538         and 7 for scroll left/right, from Thomas Broyer
8539
8540 2001-05-10  Havoc Pennington  <hp@redhat.com>
8541
8542         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
8543         we need to parse the xsetting as if it were an RC file string.
8544
8545         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
8546         value of palette from settings, not from static variable
8547
8548         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
8549         xsettings translation table
8550
8551         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
8552         hardcoding the toolbar style conflicts with new customizable 
8553         toolbar style philosophy
8554         (gtk_toolbar_class_init): add settings for default toolbar style;
8555         these are used unless the app specifically forces a toolbar style
8556
8557         * gtk/gtksettings.c (settings_install_property_parser): only
8558         return at the start if we warn and parser == NULL
8559
8560         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
8561         palette changed handler so we don't notify dead color selections
8562
8563         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
8564         xthickness/ythickness of 0 or 1 properly 
8565         (gtk_default_draw_resize_grip): clear the background behind the
8566         resize grips, and align to bottom right if we square the 
8567         area to be drawn.
8568
8569         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
8570         statusbar label to 1, so it doesn't make toplevels resize oddly
8571         (gtk_statusbar_size_request): add grip size to request
8572         (gtk_statusbar_size_allocate): hack so the hbox still works with 
8573         the grip size in the request
8574
8575         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
8576         bug where showing all on a toplevel makes the toolbar 
8577         button text appear despite the toolbar mode
8578
8579         * gtk/gtkmenubar.c: add internal padding style property
8580
8581         * gtk/gtktoolbar.c: Add internal padding style property; add
8582         shadow type style property
8583
8584         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
8585         state; and put Container::border_width outside the frame
8586
8587         * gtk/gtktextview.c: don't draw focus rectangle if we're in
8588         interior focus mode, we just use blinking cursor
8589
8590 2001-06-04  Havoc Pennington  <hp@redhat.com>
8591
8592         * configure.in: Make gdk-pixbuf have same version number as GTK
8593
8594 2001-06-04  Havoc Pennington  <hp@redhat.com>
8595
8596         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
8597         digits greater than 6. If there actually are limits (which there
8598         likely aren't), should clamp to them not warn.
8599         (gtk_spin_button_new_with_range): don't take log of 0
8600         (gtk_spin_button_size_request): use digits to compute size
8601         request, rather than step increment.
8602
8603         * tests/testgtk.c (create_spins): test larger values of digits
8604         
8605         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
8606         font on map not expose, so we don't get weirdness during scrolling
8607
8608 2001-06-04  Havoc Pennington  <hp@redhat.com>
8609
8610         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
8611         Sam Solon, bug #54577, update value even if not drawable.
8612
8613 2001-06-04  Havoc Pennington  <hp@redhat.com>
8614
8615         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
8616         SCROLL_LEFT, reported by Thomas Broyer.
8617
8618 2001-06-04  Havoc Pennington  <hp@redhat.com>
8619
8620         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
8621         Process updates immediately, to prevent funny lag effect
8622         when scrolling, at some mild potential efficiency cost.
8623
8624 2001-06-04  Havoc Pennington  <hp@redhat.com>
8625
8626         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
8627         slider on the click.
8628
8629 2001-06-03  Havoc Pennington  <hp@pobox.com>
8630
8631         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
8632         hscale/vscale details, so we can use it for scrollbar as well.
8633
8634         * tests/testgtk.c (reformat_value): honor digits from GtkScale
8635
8636         * gtk/gtkenums.h (GtkTroughType): Remove this enum
8637         (GtkScrollType): add START and END from GtkTroughType
8638
8639         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
8640         its x/y arguments
8641
8642         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
8643         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
8644         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
8645         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
8646         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
8647
8648         Notable changes in the process:
8649          
8650         - stepper_size style property is the height for vertical 
8651           ranges, width for horizontal; the other dimension matches
8652           the trough size
8653         - add ability to do NeXT-style steppers (and several other styles
8654           that don't make any sense)
8655         - added min_slider_length, fixed_slider_length properties to
8656           GtkScrollbar
8657         - cleaned some private (or at least useless) functions out of
8658           gtkscale.h    
8659         - moved bindings to GtkScale from subclasses, even arrow keys,
8660           since blind users don't know scale orientation.
8661         - change move_slider action signal to use new GtkScrollType,
8662           remove GtkTroughType argument
8663         - digits rounds the values a range will input to the given 
8664           number of decimals, but will not try to force adjustment 
8665           values set by other controllers. That is, we no longer
8666           modify adjustment->value inside a value_changed handler.
8667         - added getters for GtkScale setters
8668         - middle-click begins a slider drag
8669         
8670 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
8671
8672         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
8673         getting the focus code to work.
8674         (gtk_tree_view_class_init): Add a bunch of keybindings.
8675
8676         * gtk/gtktreeviewcolumn.c
8677         (gtk_tree_view_column_set_cell_data_func):
8678         s/GtkCellDataFunc/GtkTreeCellDataFunc.
8679         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
8680         of "properties_changed" to help justify the death of the latter
8681         signal. (-:
8682
8683         * tests/testtreefocus.c (main): Let some columns be focussable to
8684         test focus better.
8685
8686 2001-06-01  Havoc Pennington  <hp@redhat.com>
8687
8688         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
8689         
8690         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
8691         overwrite in overwrite mode if we already deleted the selection
8692         and replaced it with new text.  
8693
8694         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
8695         selection to an empty range, clear the clipboard if we owned it.
8696         (gtk_label_set_selectable): give up selection if we become
8697         unselectable.
8698         (gtk_label_state_changed): override state changed to unselect text
8699         when insensitive
8700         (get_text_callback): add paranoia check that indexes aren't
8701         outside of label->text
8702         (gtk_label_select_region): make -1 for start_offset mean "end of
8703         label," for consistency with GtkEditable
8704
8705         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
8706         GTK_DIALOG_NO_SEPARATOR flag
8707
8708 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
8709
8710         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
8711         notifications on non-existant "enable_arrow_keys".
8712         (#53753, Skip Montanaro)
8713
8714 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
8715
8716         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
8717         GDK_TYPE_RECTANGLE.
8718
8719         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
8720         of allocation argument be GDK_TYPE_RECTANGLE.
8721
8722 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
8723
8724         * gtk/gtkoptionmenu.c: Account for the fact that the border
8725         width is _outside_ the window. (Fixes #54585, bug found
8726         by Bastien Nocera.)
8727
8728 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
8729
8730         * gtk/gtksettings.c (gtk_settings_get_property): Validate
8731         value from GDK settings against parameter spec.
8732
8733         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
8734         to temporary values and use g_value_transform(), since
8735         thinking that GValue was going to be easy or efficient
8736         to use was, of course, a mistake.
8737
8738         * gtk/gtksettings.c: Add cursor blink setting.
8739         
8740         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
8741
8742         * gtk/gtkentry.c: Add cursor blinking.
8743
8744         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
8745         cursor blink global settings.
8746
8747         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
8748         for :text_position in places where it is missing.
8749
8750 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
8751
8752         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
8753
8754 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
8755
8756         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
8757         not pkg-config. (#51032)
8758
8759         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
8760         (fixes #51952, James Henstridge)
8761         
8762 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
8763
8764         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
8765         Rename to the more correct gtk-go-up.
8766
8767         * gtk/stock-icons/stock_menu_sort_ascending.png:
8768         Added new file.
8769         
8770         * gtk/stock-icons/stock_menu_sort_descending.png:
8771         Changed to show descending instead of ascending.
8772
8773         * gtk/gtkiconfactory.c:
8774         Added menu size icon to sort ascending.
8775
8776         * gtk/stock-icons/Makefile.am:
8777         Added stock_menu_sort_ascending.png.
8778         
8779         * gtk/gtkseparatormenuitem.c:
8780         Use correct typenames.
8781
8782 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
8783
8784         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
8785         gulong as in GSignal.
8786
8787 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
8788
8789         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
8790         instances of GtkCellRenderer in code (all but dnd icon code).
8791         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
8792         there, and I can do multiple Cells per column.
8793
8794         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
8795
8796         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
8797         when model was unreffed prior to removing the row reference.
8798
8799 2001-05-25  Havoc Pennington  <hp@redhat.com>
8800
8801         * gtk/gtkiconfactory.c: fix so that default icons are created if 
8802         you call gtk_stock_list_ids()
8803
8804         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
8805         in list
8806
8807 2001-05-25  Havoc Pennington  <hp@redhat.com>
8808
8809         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
8810         set can render without falling back to missing image icon
8811
8812         * gtk/gtktextview.c (gtk_text_view_size_request): request full
8813         size of text, instead of random values
8814
8815         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
8816         size of tree view, instead of random values
8817
8818         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
8819         image in an appropriate size
8820
8821         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
8822         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
8823
8824         Throughout: fix GTK_STOCK_BUTTON_ instances
8825         
8826         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
8827         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
8828         Add a bunch of new stock items/icons
8829
8830         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
8831         new function, convenience for inserting columns with a data func
8832
8833         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
8834         (_gtk_icon_factory_list_ids): use list of all factories to
8835         generate a list of all known IDs
8836
8837         * gtk/gtkstock.c (gtk_stock_list_ids): replace
8838         gtk_stock_list_items() with a function that returns all IDs known
8839         including those for GtkIconFactory.
8840
8841 2001-05-25  Hans Breuer  <hans@breuer.org>
8842
8843         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
8844         work -> check boxes and radio buttons are drawn now, even on win9x.
8845         Improved line settings a bit, still no clue how to get really dotted
8846         lines on win9x, on NT it's PS_ALTERNATE.
8847
8848         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
8849         GDK_HINT_MIN_SIZE as well
8850
8851         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
8852
8853         * gtk/gtk.def : updated
8854
8855         * gtk/gtktreeprivate.h : change column_drop_func to be a function
8856         pointer not a function pointer pointer
8857
8858         * tests/testdnd.c : include <stdlib.h> for putenv prototype
8859
8860         * tests/testsocket.c : made it compile on win32 again
8861
8862         * tests/makefile.msc : one more test-app uses prop-editor.obj
8863
8864 2001-05-22  Havoc Pennington  <hp@pobox.com>
8865
8866         * gtk/gtkbin.c (gtk_bin_get_child): New function
8867
8868 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
8869
8870         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
8871         to ignore when doing compose processing.
8872
8873 2001-05-22  Joe Shaw  <joe@ximian.com>
8874
8875         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
8876         Simplify as suggested by Havoc. Just get the last iter and work
8877         backward to the tag instead of getting a line and working back from
8878         there. Fixes passing in an invalid offset to
8879         iter_init_from_byte_offset().
8880
8881 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
8882
8883         * gtk/gtktreeview*.h: 
8884         * gtk/gtkcell*.h:
8885         * gtk/gtk*store.h:
8886         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
8887         macros to all objects.
8888
8889 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
8890
8891         * gtk/gtkcellrenderertext.c
8892         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
8893         with very large (TM) amounts of text.  May be moved to
8894         GtkCellRenderer in the future, though I'm not sure it wants to be
8895         this accessible.
8896
8897         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
8898         More sanity brought to this class.  I like it.
8899
8900         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
8901         case.  Kids, don't try this at home.
8902
8903         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
8904         convenience function.
8905
8906         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
8907
8908 2001-05-21  Alexander Larsson  <alexl@redhat.com>
8909
8910         * gtk/gtkfontsel.c:
8911         Added properties. Based on patch by Lee Mallabone.
8912
8913         * gtk/gtkruler.c:
8914         * gtk/gtkhruler.c:
8915         * gtk/gtkvruler.c:
8916         * gtk/gtktext.c:
8917         * gtk/gtktextview.c:
8918         Converted GtkArg to GParam. Based on patches by John Margaglione.
8919
8920         * tests/Makefile.am:
8921         * tests/testtext.c:
8922         Add a property editor to testtext.
8923         
8924 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
8925
8926         * gtk/gtk{h,v,}paned.c: Only show the separator if 
8927
8928         * configure.in: Fixed reversed conditional causing all image
8929         libraries to be linked in.
8930
8931 2001-05-21  Joe Shaw  <joe@ximian.com>
8932
8933         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
8934         that top_y needs to be >= 0.
8935
8936 2001-05-11  Havoc Pennington  <hp@pobox.com>
8937         
8938         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
8939         losing connection to the X server.
8940
8941 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
8942
8943         * configure.in: Start checks for X from pangox/pangoxft
8944         CFLAGS to avoid duplicate libraries.
8945
8946         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
8947
8948         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
8949         to include gobject.
8950         
8951 2001-05-18  Alexander Larsson  <alexl@redhat.com>
8952
8953         * gtk/gtkspinbutton.c:
8954         Convert GtkArgs to GParams. Based on patch by John Margaglione.
8955         Also do size request reasonable for MAXDOUBLE. Previously it printed
8956         the limits to a buffer and overran it. Instead do it using log10() and
8957         limit the width to 10 digits.
8958         
8959         * gtk/gtkwidget.c (gtk_widget_get_property):
8960         Correctly handle setting the parent property to NULL.
8961
8962 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
8963
8964         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
8965         style attributes even if the widget isn't realized.
8966
8967         * demos/gtk-demo/main.c: Use a slightly smaller font.
8968
8969 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
8970
8971         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
8972         This is something that only a widget writer would ever want
8973         to change.
8974
8975         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
8976         gtk_signal_emit_by_name().
8977
8978         * gtk/gtkviewport.c: Fix some warnings.
8979
8980         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
8981         allowing the requisitions of multiple widgets to be grouped
8982         together.
8983
8984         * tests/testgtk.c: Add GtkSizeGroup test
8985
8986         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
8987
8988         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
8989         warnings.
8990
8991         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
8992
8993 2001-04-28  Martin Baulig  <baulig@suse.de>
8994
8995         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
8996         to gtk_image_menu_item_set_icon() and made it work if there's already
8997         an image.
8998         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
8999         (gtk_image_menu_item_new_with_label): New function.
9000
9001 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
9002
9003         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
9004         highlighting code!!!!  The result is okay so long as you don't try
9005         to stress it.  It also highlights a bug in the TextView so it's in
9006         an unproportional font right now until it's fixed.
9007
9008         *demos/gtk-demo/*.c: Clean up code a bit to make it
9009         ugly-parser(TM) friendly. (-:
9010
9011 2001-05-17  Joe Shaw  <joe@ximian.com>
9012
9013         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
9014         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
9015         if it is only partially onscreen.
9016
9017 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
9018
9019         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
9020         not by characters.
9021
9022         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
9023         are not zero or one; that is, when graphemes of multiple characters
9024         are involved.
9025
9026         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
9027         FIXME.
9028
9029 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
9030         
9031         * gtk/gtkbbox.c:
9032         Add properties, based on patch by Lee Mallabone.
9033
9034         * gtk/gtknotebook.c:
9035         * gtk/gtktoolbar.c:
9036         Convert from GtkArg to GParam, based on patch by John Margaglione.
9037         
9038         * gtk/gtkhscale.c:
9039         * gtk/gtkvscale.c:
9040         * gtk/gtkhscrollbar.c:
9041         * gtk/gtkvscrollbar.c:
9042         * gtk/gtkrange.c:
9043         Move adjustment property to GtkRange.
9044
9045         * gtk/gtklabel.c:
9046         Setup mnemonics on property changes
9047
9048         * gtk/gtkwidget.c (gtk_widget_get_property):
9049         GdkExtensionMode is an enum, not a flag. Set it with
9050         g_value_set_enum ().
9051
9052         * tests/prop-editor.c:
9053         Better propery editor.
9054
9055         * tests/testgtk.c:
9056         Add new property test. Pass zero to the property editor to
9057         get properties from all derived types.
9058         
9059 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
9060
9061         * autogen.sh (have_automake): Require libtool-1.4,
9062         automake-1.4p1.
9063
9064         * acinclude.m4: Remove libtool macros.
9065
9066         * gdk-pixbuf/Makefile.am: Add dependencies to loade
9067         modules.
9068
9069         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
9070         for libgdk.
9071
9072         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
9073         libgdk.la for libgtk.
9074
9075         * modules/input/Makefile.am: Make modules have full
9076         dependencies.
9077
9078 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
9079
9080         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
9081         #54699 where paths weren't being checked for correctness.
9082
9083 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
9084
9085         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
9086         in any order you wan, whether or not the column is added to the
9087         tree, or the tree is realized.  Yay!
9088
9089         * gtk/gtktreeviewcolumn.c
9090         (gtk_tree_view_column_setup_sort_column_id_callback): handle
9091         sorting columns a lot saner
9092
9093         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
9094         new function to actually set wether or not a column is
9095         reorderable.
9096
9097         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
9098         if we have 'em.
9099
9100         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
9101         Fix nasty bug where we were showing the button just before
9102         realizing it.  As a result, the parent window was
9103         tree_view->window instead of tree_view->priv->header_window.
9104
9105         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
9106         to let you easily reorder a list or tree.
9107
9108 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
9109
9110         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
9111         from args to properties.
9112
9113 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
9114
9115         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
9116         from args to properties. (#51957)
9117
9118         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
9119         calls to after ->set_property call.
9120
9121 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
9122
9123         * tests/prop-editor.c: Block against redundant changes.
9124
9125         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
9126         properties.
9127
9128 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
9129
9130         * gdk/gdkpixmap.h: Remove creative formatting.
9131
9132 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
9133
9134         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
9135         property API. (#51669)
9136
9137         * gtk/gtkscale.c: Patch from John Margaglione converting to
9138         property API. (#51891)
9139
9140         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
9141         to property API. (#50985)
9142
9143 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
9144
9145         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
9146         buffering state across expose event, so we still call end_paint().
9147
9148 2001-05-11  Alexander Larsson  <alexl@redhat.com>
9149
9150         * gtk/gtkhsv.c (paint_triangle):
9151         Expose the ring in the triangle at the correct place when
9152         exposing just a part of the triangle.
9153
9154         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
9155         Return FALSE, or window focusing will not work.
9156
9157 2001-05-11  Havoc Pennington  <hp@pobox.com>
9158
9159         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
9160         #54144
9161
9162         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
9163         bug #54330
9164
9165 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
9166
9167         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
9168         propagate exposes to NULL child.
9169
9170         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
9171         against not having one of the scrollbars.
9172
9173         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
9174         we don't keep a mnemonic window if we have no mnemonic installed.
9175
9176 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
9177
9178         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
9179         it has the _important_ side effect of initializing a class.
9180
9181 2001-05-10  Alexander Larsson  <alexl@redhat.com>
9182
9183         * gdk/linux-fb/gdkprivate-fb.h:
9184         Make sure you can compile out the implementation/wrapper assert
9185         macros.
9186
9187         * gdk/linux-fb/gdkdrawable-fb2.c:
9188         Check implementation/wrappers, initialize type for pixmap dummys.
9189
9190         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
9191         Hide the cursor if reading from the screen.
9192
9193         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9194         Fix sign bug in tiling code.
9195
9196         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
9197         Handle background pixmaps.
9198
9199 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
9200
9201         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
9202         function to let user control where columns are dragged.
9203
9204         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
9205         Escape is pressed.
9206
9207 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
9208
9209         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
9210         "columns_changed" signal.
9211         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
9212         motion code to draw arrows to the side if indicator is outside the
9213         widget.
9214         (gtk_tree_view_map_expanded_rows): Implement.
9215
9216 2001-05-07  Alexander Larsson  <alexl@redhat.com>
9217
9218         * demos/testpixbuf-save.c: 
9219         * demos/testpixbuf-drawable.c:
9220         Include gdkfb.h on linux-fb.
9221
9222 2001-05-07  Alexander Larsson  <alexl@redhat.com>
9223
9224         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
9225         New function for getting toplevel window at position.
9226         (gdk_drag_find_window): Use get_toplevel_window () instead
9227         of gdk_window_get_pointer(). (gdk_drag_status): Use
9228         correct context for getting window.
9229
9230         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
9231         g_strdup the atom name.
9232
9233         * gdk/linux-fb/gdkwindow-fb.c:
9234         Costmetic fix.
9235
9236         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
9237         Add code for changing cursor on linux-fb backend (same as
9238         win32).
9239
9240 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
9241
9242         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
9243         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
9244         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
9245         report was not for the development branch of GTK+, but it applies
9246         anyways).
9247
9248 2001-05-04  Havoc Pennington  <hp@redhat.com>
9249
9250         * configure.in: fix some shell typos
9251
9252         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
9253
9254         * gtk/gtkimage.c: handle animations
9255
9256         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
9257         border_width * 2, not just border_width
9258
9259         * gtk/gtkscale.c: add "format_value" signal to allow people
9260         to override the way values are drawn.
9261         (gtk_scale_get_value_size): fix width/height mistake,
9262         and compute size from actual displayed text, not 
9263         from made-up text.
9264
9265         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
9266         signal registration
9267
9268         * tests/testtext.c: Add "Remove all tags" menu item for testing
9269
9270         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
9271
9272         * demos/gtk-demo/main.c (main): add hack so we can find modules
9273         without installing gtk
9274
9275         * demos/gtk-demo/textview.c (insert_text): demo font scaling
9276
9277         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
9278         factor)
9279         (gtk_cell_renderer_text_set_property): remove some bogus
9280         g_object_notify
9281
9282         * gtk/gtktexttag.c: add "scale" property which is a font scaling
9283         factor
9284
9285         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
9286         to layout
9287
9288         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
9289         gtk_text_iter_is_first
9290
9291 2001-01-06  Hans Breuer  <hans@breuer.org>
9292
9293         * gdk/gdk.def : updated exports
9294
9295         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
9296         gdk won't compile anymore
9297  
9298         * gdk/win32/gdkevents-win32.c : initialize ret_val when
9299         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
9300         Improved gdk_flush () to not only do pending drawing operations
9301         but also process all currently pending events. This should make
9302         the behaviour more similar to the X11 version.  
9303
9304         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
9305         option needs to be set even if there is no GDK_GC_BACKGROUND.
9306         (gdk_win32_hdc_get) : use predraw_set_background () independent
9307         of value_mask. This allows to draw dashed lines leaving the original
9308         background intact.
9309
9310         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
9311         after processing, because we can't reuse it as the X11 version does.
9312
9313         * gtk/gtk.def : updated exports
9314
9315         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
9316         would like to get rid of this file again, and use straight
9317         makefile.msc again, as the other Gtk+ subdirs do)
9318
9319         * test/makefile.msc (new file) : build the test apps here
9320
9321 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
9322
9323         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
9324         strike-through setting
9325         (gdk_draw_layout_line_with_colors): Render strike-through
9326
9327 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
9328
9329         * Release 1.3.5
9330
9331         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
9332
9333         * NEWS: Updated
9334
9335         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
9336         Makefile breakage.
9337
9338 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
9339
9340         * demos/gtk-demo/images.c (progressive_timeout): Fix
9341         typo in filename.
9342
9343         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
9344         out FIXME warning; just too annoying.
9345
9346 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
9347
9348         * gdk/linux-fb/gdkcolor-fb.c:
9349         Better error messages.
9350
9351         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
9352         Initialize abs_x and abs_y.
9353         
9354         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9355         Correct handling of stipple offset.
9356
9357         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
9358         Treat directcolor framebuffers as truecolor.
9359         
9360 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
9361
9362         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
9363         dependency on Atk for accessibility support.
9364
9365         * configure.in **/Makefile.am: Major reworking of substituted
9366         variables for CFLAGS/LIBS to make a lot more sane and 
9367         keep the the compile/link lines a bit shorter.
9368
9369         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
9370
9371 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
9372
9373         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
9374         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
9375         use _gtk_boolean_handled_accumulator.
9376
9377 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
9378
9379         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
9380         to fix things so clicking inside selection leaves cursor
9381         at point where clicked. (#50324)
9382
9383         * gtk/gtksettings.c (gtk_settings_class_init): Restore
9384         sane value for default double click time.
9385
9386         * tests/testtext.c (test_init): Really path to input modules.
9387
9388 2001-05-03  Sven Neumann  <sven@convergence.de>
9389
9390         * demos/testpixbuf-save.c: include target-specific headers as
9391         done in testpixbuf-drawable.c
9392
9393 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
9394
9395         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
9396         new_text_length appropriately when we run into the 
9397         size limit for the entry. (#53445, reported by Jeff Franks)
9398
9399         * tests/testgtk.c (create_entry): Remove most of the
9400         property toggle buttons. Replace with a "Props" button
9401         that brings up a property editor.
9402
9403         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
9404         Split the property editor code out for reuse, improve.
9405
9406 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
9407
9408         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
9409         trap errors around calls to XSetInputFocus since we have
9410         no way of knowing reliably whether we are viewable or
9411         not. (#53947)
9412
9413 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
9414
9415         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9416         fix bug in dropping columns.  Moving columns now basically works
9417         modula some fine tuning.
9418
9419 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
9420
9421         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
9422         autoscroll support.  It mostly works, but could use some fine
9423         tuning.
9424         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9425         Actually move the column.
9426
9427 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
9428
9429         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
9430           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
9431           New default theme! A slighly improved version of the 2.0 Raleigh
9432           theme, with Windows-esque focus/drawing default. 
9433           (GtkWidget::interior_focus defaults to TRUE.)
9434
9435         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
9436
9437 2001-04-30  Havoc Pennington  <hp@pobox.com>
9438
9439         * tests/testtext.c (line_numbers_expose): fix to work with
9440         gtk_paint_layout change
9441
9442 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
9443
9444         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
9445           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
9446           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
9447           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
9448
9449         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
9450           with GtkWidget::interior_focus = TRUE better.
9451
9452         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
9453         ::default_outside_border for more flexibility.
9454
9455         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
9456         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
9457         change that had to be made with g_object_get.
9458
9459 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
9460
9461         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
9462         (gtk_tree_view_move_column_after): Clean up interface. 
9463
9464 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
9465
9466         * gtk/gtkpacker.h:
9467         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
9468          to gtkenum.h.
9469
9470         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
9471         handled in switch).
9472
9473         * gtk/Makefile.am:
9474         (gtk.defs): generate enum portions with  glib-mkenums.
9475         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
9476         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
9477         
9478         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
9479         addition.
9480
9481         * docs/Changes-2.0.txt: keep a note on signal handlers now
9482         not getting emitted during the emission they were connected within.
9483
9484 2001-04-28  Havoc Pennington  <hp@pobox.com>
9485
9486         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
9487
9488 2001-04-24  Havoc Pennington  <hp@redhat.com>
9489
9490         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
9491         (gtk_text_layout_move_iter_to_next_line): fix these two for
9492         invisible text, lots of other stuff still hosed.
9493
9494         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
9495         new function, replaces the get/set palette stuff. This function 
9496         is intended for use by libgnomeui which should set the hook to a
9497         thing which sets the palette in GConf, and we need the
9498         GConf-to-xsettings proxy which will result in the change being
9499         propagated back to the GTK app.
9500
9501         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
9502         about unusable signals that it may be because the signal has 
9503         parameters.
9504
9505         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
9506         style, otherwise gtkrc.c won't know to create a new GtkStyle for
9507         it.
9508         (gtk_widget_modify_color_component): call
9509         gtk_widget_modify_style() so the rc style will get copied.
9510         (gtk_widget_modify_font): ditto
9511
9512         * gtk/gtkrc.c: make a couple variables static
9513
9514         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
9515         help button by default, since it does nothing
9516
9517         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
9518         around with UI
9519
9520         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
9521         so we can have tooltips
9522
9523         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
9524         can have tooltips
9525
9526         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
9527         GDK_ENABLE_BROKEN, because its memory behavior is completely
9528         hosed.
9529
9530         * gtk/gtknotebook.c: remove key press handler, replace with
9531         binding set, add numeric keypad support
9532
9533         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
9534
9535         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
9536
9537         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
9538         addition to plain Delete
9539
9540         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
9541         GDK_KP_Enter in addition to GDK_Return
9542
9543         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
9544         activate on entry instead of key press
9545         (gtk_font_selection_on_clist_key_press): get
9546         rid of this signal handler, not needed with new font sel.
9547
9548         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
9549         no-longer-needed emit_stop_by_name(), just return TRUE
9550
9551         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
9552         cruft, this widget is no longer focusable.
9553
9554         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
9555         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
9556         move_slider action signal, add binding set for vscale/hscale, in
9557         the process support numeric keypad
9558
9559         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
9560         make GDK_Return and GDK_KP_Enter activate the entry via 
9561         binding set, instead of hardcoded.
9562
9563 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
9564
9565         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
9566         code.  Some documentation added.
9567
9568 2001-04-27  Havoc Pennington  <hp@redhat.com>
9569
9570         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
9571
9572         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
9573
9574         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
9575         line/para separators
9576         (gtk_entry_create_layout): set single paragraph mode on the layout
9577
9578         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
9579         spacing between the image and label; instead, inside a button box 
9580         the button will get extra space that will go there, but if people 
9581         configure button box for 0 chubbiness, then there's no spacing.
9582
9583         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
9584         and min/max size style properties, so people can tune their
9585         chubbiness.
9586
9587         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
9588         functions
9589
9590         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
9591         space_style, and button_relief into style properties, remove
9592         functions for setting them
9593         
9594         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
9595         it back down
9596
9597         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
9598         types from gtk_widget_style_get
9599
9600         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
9601         with a style property.
9602
9603         * gdk/x11/gdkevents-x11.c: namespace the settings
9604
9605         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
9606
9607         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
9608         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
9609         be used. Also, translate doc strings for settings. Also, namespace
9610         the double-click-time property. Also, remove bell properties crap.
9611
9612 2001-04-27  Sven Neumann  <sven@gimp.org>
9613
9614         * Makefile.am: before creating links, check if pkg-config files
9615         exist for the default target. Otherwise link to the pkg-config files
9616         that got installed with this build.
9617
9618 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
9619
9620         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
9621         dragging code.  Revealed some (potential) GdkWindow bugs.
9622
9623         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
9624         _gdk_window_init_position to the end of reparent to fix the case
9625         of reparenting when new_x != old_x and new_y != old_y.
9626
9627 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
9628
9629         * gtk/gtkentry.c (strstr_len): Fix optimization that
9630         was correct for the use here, but completely incorrect
9631         in general.
9632
9633 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
9634
9635         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
9636         until patch adding gtk_window_set_size() is recommitted. 
9637
9638         * **Makefile.am configure.in gdk/x11/gdkim-11.c
9639           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
9640           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
9641           (#10784)
9642
9643 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
9644
9645         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
9646         window == NULL in a number of cases.
9647
9648         * tests/testdnd.c: Set module path for gdk-pixbuf.
9649
9650 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
9651
9652         * gtk/Makefile.am xembed.h: File containing #defines
9653         for XEMBED protocol.
9654
9655         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
9656
9657         - Change protocol from old plug/socket specific protocol
9658           to XEMBED draft
9659         - Various fixes to work with GTK+-2.0
9660
9661         Still quite a bit of work to do here to handle initiation
9662         from the socket side (as specified by XEMBED), to handle
9663         the more advanced features of XEMBED, and to figure out
9664         a good way to handle same-app embedding with less overhead
9665         than using full XEMBED.
9666
9667 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
9668
9669         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
9670         track of whether the toplevel has the focus; only send
9671         focus-in events to the focus widget when the window
9672         actually has the focus.
9673
9674 2001-04-25  Havoc Pennington  <hp@pobox.com>
9675
9676         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
9677         were still in the header
9678
9679 2001-04-24  Alexander Larsson  <alexl@redhat.com>
9680
9681         * gtk/gtkclist.[ch]:
9682         * gtk/gtkctree.c:
9683         When there is a row highlighted for D'n'D it must alse
9684         be painted hightlighted on exposes. Otherwise exposes from
9685         the icon being dragged will mess up the hightlight.
9686
9687         * gtk/gtkfontsel.c:
9688         Don't recenter selected font when exposing the font family
9689         clist. This means you can now actually scroll the font family
9690         list.
9691
9692         * gtk/gtknotebook.c:
9693         Fix focus movement on scrolling tabs that are placed on the left
9694         and right.
9695
9696 2001-04-21  Havoc Pennington  <hp@pobox.com>
9697
9698         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
9699         empty/invisible lines.
9700
9701         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
9702         (gtk_text_iter_set_visible_line_index): new functions to set
9703         indexes excluding invisible text
9704
9705         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
9706         index
9707
9708         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
9709         (gtk_text_iter_get_visible_line_offset): new functions to 
9710         get indexes excluding invisible text
9711
9712         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
9713         bunch of extra padding that served no purpose
9714
9715         * gtk/gtkdialog.c: Make all the spacings configurable via style
9716         properties, for chubbiness configuration in themes
9717
9718         * tests/testtext.c: fix path to the immodules.
9719         
9720 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
9721
9722         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
9723         got munched by #endif.
9724
9725         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
9726
9727         * gtk/gtktreeview.c: Refactored code to clean up a number of
9728         events.
9729
9730         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
9731         values to make consistent with other functions.  Spotted by Jeff
9732         Franks <jcf@tpg.com.au>.
9733
9734         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
9735         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
9736
9737 2001-04-23  Sven Neumann  <sven@gimp.org>
9738
9739         * gtk/Makefile.am
9740         * gtk/gtkplug.c
9741         * gtk/gtksocket.c: on request of Owen, reverted my last change 
9742         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
9743
9744 2001-04-23  Sven Neumann  <sven@gimp.org>
9745
9746         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
9747         compile for non-X11 targets again
9748
9749 2001-04-20  Alexander Larsson  <alexl@redhat.com>
9750
9751         * gtk/gtkcolorsel.[ch]:
9752         API Change. Take GdkColor arguments instead of gdouble *.
9753         Leave the old gtk_color_selection_set_color for compatibility,
9754         but marked deprecated.
9755         Do correct rounding when converting RGB <-> HSV.
9756         
9757         * gtk/gtkcolorseldialog.c:
9758         * tests/testgtk.c:
9759         Use new GtkColorSelection API.
9760
9761         * gtk/gtkhsv.c:
9762         Fix problem selecting colors in triangle when Hue is 330.
9763         Fix some black dots around the HSB triangle.
9764         
9765         * gtk/gtkfilesel.c:
9766         return FALSE from the focus_in_event handler to fix focus problems.
9767
9768 2001-04-18  Havoc Pennington  <hp@redhat.com>
9769
9770         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
9771         set, so keybindings are configurable    
9772         (gtk_window_activate_default): Change to activate the focus widget
9773         instead if there's a focus widget, to be consistent with the
9774         behavior that previously existed in key_press_event
9775
9776 2001-04-18  Havoc Pennington  <hp@redhat.com>
9777
9778         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
9779
9780 2001-04-18  Havoc Pennington  <hp@redhat.com>
9781
9782         Close bug #50615:
9783         
9784         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
9785         the layout
9786
9787         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
9788
9789         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
9790
9791         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
9792         
9793         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
9794         to blue for base, in addition to bg
9795         
9796 2001-04-18  Havoc Pennington  <hp@redhat.com>
9797
9798         * tests/testgtk.c (create_image): allow shrinking the image window
9799         to test that we clip to allocation.
9800
9801         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
9802         #9845
9803
9804         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
9805
9806 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
9807
9808         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
9809         mode on shm segments to 0600. We'll see who complains.
9810
9811         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
9812         _gdk_windowing_window_destroy() AFTER recursing through
9813         children.
9814
9815         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
9816         testsocket_child on X.
9817
9818         * tests/testsocket[_child].c: Fix uses of
9819         gtk_window_get_default_accel_group().
9820
9821         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
9822
9823         * gdk/gdkimage.c: (gdk_image_get):
9824         Deal with the possibility that XGetImage() might return NULL.
9825         Allocate the GdkImagePrivate structure only after XGetImage()
9826         succeeds in order not to dereference a NULL ximage pointer.  This
9827         prevents a core dump when XGetImage() fails - which is unlikely,
9828         but can happen due to race conditions accessing the geometries of
9829         drawables.  An x error will still be triggered, but the gdk image
9830         wrapper at least wont seg fault.
9831         
9832 2001-04-18  Havoc Pennington  <hp@redhat.com>
9833
9834         * gtk/gtkimage.c: fix to properly queue resizes when the image is
9835         set
9836
9837         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
9838         if the insertion point isn't editable
9839
9840         * demos/gtk-demo/images.c: Added a GtkImage demo
9841
9842         * demos/gtk-demo/drawingarea.c: drawing area demo
9843         
9844         * demos/gtk-demo/menus.c (create_menu): cleanups
9845
9846 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
9847
9848         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
9849           gdk/x11/gdkevents-x11.c: Introduce an extra child
9850         of toplevel windows that serves to hold the focus to
9851         avoid events being delivered to embedded windows.
9852
9853         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
9854         some extra variables to clean up code and reduce the
9855         number of casts.
9856
9857         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
9858         guint for 1 bit bit fields, not gboolean.
9859
9860 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
9861
9862         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
9863         not TRUE. (Fixes #52925)
9864
9865 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
9866
9867         * Released 1.3.4
9868
9869         * NEWS: Updated
9870
9871         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
9872         use GTK_TYPE_ENUM.
9873
9874 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
9875
9876         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9877
9878         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
9879         names to compatibility #defines so docs work.
9880
9881         * gtk/gtkenums.h: Remove GtkMenuFactoryType
9882
9883         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
9884
9885         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9886
9887         * tests/testgtkrc: No magenta cursors, please.
9888
9889         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
9890
9891         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
9892         
9893 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
9894
9895         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
9896         grabs, since they are no longer necessary.
9897
9898         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
9899         by signal_connect() and call gtk_button_pressed() rather
9900         than signal_connect_after().
9901
9902         * tests/testgtk.c: Restore radio menu items to combos 
9903         since they'll look OK with Raleigh, and it is easier
9904         than finishing the process of removing them that was
9905         started earlier.
9906
9907 2001-04-16  Hans Breuer  <hans@breuer.org>
9908
9909         * gdk/gdk.def :
9910         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
9911
9912         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
9913         we are interested in the functions return value not the function address
9914         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
9915
9916         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
9917
9918 2001-04-14  Hans Breuer  <hans@breuer.org>
9919
9920         * gdk/gdk.def :
9921         * gdk/makefile.msc : updated
9922
9923         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
9924         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
9925         (the testgtk::text backgound pixmap is drawn again)
9926         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
9927         Win32 Pango change
9928         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
9929
9930         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
9931         Not sure if the returned settings have the right unit, because I couldn't
9932         find any docs for the X version ...
9933
9934         * gtk/gtk.def :
9935         * gtk/makefile.msc.in : updated
9936
9937 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
9938
9939         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
9940         wording problems. (Compared to version from Johannes Stezenbach to
9941         check correctness.)
9942
9943 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
9944
9945         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
9946         this to compile.
9947
9948 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
9949
9950         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
9951         not pixbufpos.
9952
9953         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
9954
9955         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
9956         are unsigned insts, therefore use g_value_set_uint.
9957         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
9958
9959 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
9960
9961         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
9962
9963         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
9964         GTK_TYPE_STRING.
9965
9966         * gtk/gtktreeview.c: New functions to allow initial column
9967         dragging work.
9968
9969         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
9970
9971         * tests/testtreefocus.c: give dave some love.
9972
9973         * tests/testtreesort.c: Modify test to check really long samples.
9974
9975 2001-04-11  Alexander Larsson  <alexl@redhat.com>
9976
9977         * gtk-2.0.m4: Pass pkg-config options
9978         before the other args so it works even if
9979         POSIXLY_CORRECT is set.
9980
9981 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
9982
9983         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
9984         0, interface 0).
9985
9986 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
9987
9988         * gtk/gtkcalendar.c (gtk_calendar_button_press):
9989         check for action_func != NULL
9990
9991 2001-04-04  Sven Neumann  <sven@gimp.org>
9992
9993         * tests/testgtk.c (test_init): corrected path to gtk.immodules
9994
9995 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
9996
9997         * Released Gtk+-1.3.3.
9998
9999 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
10000
10001         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
10002
10003 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
10004
10005         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
10006         files to/from source dir. (if we don't stay in builddir, we
10007         can't reach make-inline-pixbuf.
10008
10009         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
10010         deps.
10011
10012         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
10013         ages 0).
10014
10015 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
10016
10017         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
10018         moved to the GtkTreeSortable interface.
10019
10020         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
10021         Make more efficient (fixes #50262).
10022
10023 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
10024
10025         * NEWS: Updated.
10026
10027         * configure.in: Remove support for uninstalled glib.
10028
10029         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
10030         so as not to stop emission.
10031
10032         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
10033         is no longer supported.
10034
10035         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
10036         into tests, change build order to build modules before
10037         gtk/.
10038
10039         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
10040         to here.
10041
10042 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
10043
10044         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
10045         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
10046         GPatternSpec. this is actually unlikely to cause breakage in
10047         third-party apps since except for gle, pretty much ever caller
10048         passes NULL here.
10049
10050         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
10051
10052         * *.c: use g_pattern_*() API.
10053
10054         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
10055
10056         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
10057         directions aren't passed in.
10058
10059         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
10060         functionality to be usable from gtkstyle.c as well, give precedence
10061         for conversion to user-supplied parsers.
10062         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
10063
10064         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
10065         _gtk_settings_parse_convert() for rcporperty value conversion.
10066
10067 2001-04-03  Alexander Larsson  <alexl@redhat.com>
10068
10069         * gdk/linux-fb/gdkevents-fb.c:
10070         Add empty gdk_setting_get().
10071
10072 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
10073
10074         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
10075         variable names.
10076         
10077         * gtk/makeenums.pl: touch this so enum files get remade.
10078
10079 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
10080
10081         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
10082         work again when not sorted.
10083
10084         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
10085         and "expand_row" signal, closing bug 52578.
10086
10087         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
10088         support.
10089
10090         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
10091         support.
10092
10093 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
10094
10095         * gdk/gdkevents.h: Add GdkEventSetting event for notification
10096         of changes to system settings, gdk_setting_get() to retrieve
10097         a single system setting.
10098
10099         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
10100         to the draft XSETTINGS mechanism.
10101
10102         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
10103         XSETTINGS.
10104
10105         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
10106         of GDK settings changes to the GtkSettings object.
10107
10108         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
10109         double-click-timeout property to GDK.
10110
10111         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
10112         Define GDK boxed types here.
10113
10114         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
10115         gdk/gdkenumtypes.[ch] for enum definitions.
10116
10117         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
10118         * gtk/gtk-boxed.defs: Comment out GDK types
10119         * gtk/gtktypeutils.h: Remove GDK types
10120         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
10121
10122 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
10123
10124         * Applied patch from Ron Steinke to add signal accumulators
10125         so that signals with the convention 'TRUE return means
10126         handled' stop emission on a TRUE return.
10127
10128         * gtk/gtkmain.[ch]: Add private accumulator 
10129         _gtk_boolean_handled_accumulator, used throughout GTK+.
10130         
10131         * gtk/gtkspinbutton.c: Add accumulator for ::output.
10132
10133         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
10134         
10135         * gtk/gtkwidget.c: Add accumulators for event signals,
10136         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
10137         for ::mnemonic-activate.
10138
10139         * gtk/gtkwindow.c: Add accumulator for ::frame_event
10140
10141 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
10142
10143         * gtk/gtkwidget.c: Add missing include.
10144
10145 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
10146
10147         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
10148         marshaller.
10149
10150         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
10151         "changed" signal to "range_changed".
10152
10153         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
10154         removing a tree from one model would remove all trees from that
10155         model.
10156         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
10157         changed signal instead.
10158
10159 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
10160
10161         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
10162         chaining up to parent impl, since we have a INPUT_ONLY
10163         window.
10164
10165         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
10166         foreground color for the cursor.
10167
10168 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
10169
10170         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
10171         param spec when caching property values, since we unref it
10172         later when we free the style.
10173
10174         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
10175         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
10176
10177 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
10178
10179         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
10180         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
10181         stupidity.
10182
10183 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
10184
10185         [ First pass at adding style properties. Still needs some definite
10186         fine-tuning. ]
10187
10188         * gtk/gtkbutton.c: Add ::default_spacing style property.
10189          
10190         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
10191         ::indicator_spacing style properties.
10192
10193         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
10194         style properties.
10195
10196         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
10197         rather than a normal property.
10198
10199         * gtk/gtkwidget.c: Add an ::interior_focus style property to
10200         draw focus inside buttons, in the Windows/Java Metal/etc. style.
10201
10202         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
10203         Honor ::interior_focus.
10204         
10205         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
10206         TRUE.
10207
10208         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
10209         Add ::slider_width, ::trough_border, ::stepper_size,
10210         ::stepper_spacing style properties.
10211
10212         * gtk/gtkscale.[ch] Add ::slider-length style property.
10213
10214 2001-04-02 Alexander Larsson   <alexl@redhat.com>
10215
10216         * gdk/linux-fb/gdkwindow-fb.c:
10217         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
10218         warnings that were spewed on startup.
10219
10220         * gtk/gtkwindow-decorate.c:
10221         gtk_window_reposition -> _gtk_window_reposition
10222
10223 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
10224
10225         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10226         Add boxed type for GtkRequistion. Use it for ::size-request.
10227
10228         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10229         Add a new GtkBorder structure useful for geometry properties
10230         for widgets. Add corresponding GTK_TYPE_BORDER.
10231         
10232         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
10233         Support automatic parser selection like
10234         gtk_settings_install_property_parser().
10235
10236         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
10237         functionality for use by gtk_widget_class_install_style_property.
10238         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
10239
10240 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
10241
10242         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
10243         g_param_spec_unichar(). 
10244
10245 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
10246
10247         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
10248         _NET window managers.
10249
10250         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
10251
10252 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
10253
10254         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
10255         bad needs to be nuked, not just deprecated.
10256
10257         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
10258         gtk_widget_popup().
10259
10260         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
10261         
10262         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
10263         widget.
10264         
10265         * docs/Changes-2.0.txt: updates.
10266         
10267 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
10268
10269         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
10270         for (i = 0; i < 100; i ++)
10271           g_print ("I will confirm it compile before committing\n");
10272
10273 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
10274
10275         * gtk/gtktreestore.c: Initial work on implementing the
10276         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
10277
10278 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
10279
10280         * gtk/gtkwidget.c: fixed a bunch of notifications, added
10281         reference counts around emissions where the widget is used afterwards.
10282         added freeze/thaws around multiple properties being notified.
10283         (_gtk_widget_get_aux_info): cleanups.
10284         
10285         * gtk/gtksettings.c (gtk_settings_install_property): provide
10286         default parsing functions for gdkcolor, enums and flags.
10287
10288         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
10289         applied by owen.
10290         backed out gtk_window_get_location(), gtk_window_set_location(),
10291         gtk_window_get_size() and gtk_window_set_size(), these
10292         have to be sorted out wrg x/y/width/height/default_with/default_height
10293         properties.
10294         kept a flag in GtkWindowGeometryInfo to handle user
10295         resetting default sizes.
10296         cleaned up ZVT comments.
10297         bunch of assorted bug fixes, notification fixes.
10298         (_gtk_window_reposition): make this a really internal function.
10299         
10300         * gtk/testgtk.c: fixups.
10301         
10302 2001-03-31  Hans Breuer  <hans@breuer.org>
10303
10304         * config.h.win32.in : disable USE_MMX for msvc build cause
10305         the assembler doesn't fit and is out of my scope. Disable
10306         USE_GMODULE for msvc build as wel. The right way to share
10307         binaries on win32 would be to use libtiff.dll etc. To reduce
10308         installation hassles IMO it's better to include all fileformats
10309         builtin to gdk-pixbuf
10310
10311         * gdk-pixbuf/makefile.msc : new file
10312
10313         * gdk/gdk.def : updated
10314
10315         * gdk/win32/gdkevents-win32.c : don't erase the background if
10316         .no_bg is set. It improves the scrolling (e.g. of testgtk main
10317         buttons
10318         * gdk/win32/gdkgeometry-win32.c : added comment about the above
10319
10320         * gdk/win32/gdkwindow-win32.c : added three new functions like
10321         the X version. Only one is implemented, because the other two
10322         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
10323         be default behaviour on win32 anyway ...
10324
10325         * gtk/gtk.def : updated
10326
10327         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
10328         from where it was built and add an additional rule to automagically
10329         build gtkmarshal.[hc]
10330
10331         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
10332         before array access for the current entry isn't finished
10333
10334         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
10335         use g_return_val_if_fail
10336
10337         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
10338         for the static array, but let the compiler calculate it. It
10339         makes me wonder if gcc isn't capable to catch bugs like this ...
10340
10341 2001-03-31  James Henstridge  <james@daa.com.au>
10342
10343         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
10344         constant "-1" in the aux info structure.
10345
10346 2001-03-30  Alexander Larsson  <alexl@redhat.com>
10347
10348         * gtk/gtkbutton.c (gtk_button_get_property):
10349         * gtk/gtklabel.c:
10350         Remove leaks.
10351         
10352         * gtk/gtkcontainer.c:
10353         * gtk/gtkhscale.c:
10354         * gtk/gtkhscrollbar.c:
10355         * gtk/gtklayout.c:
10356         * gtk/gtkmisc.c:
10357         * gtk/gtkprogress.c:
10358         * gtk/gtkprogressbar.c:
10359         * gtk/gtkrange.c:
10360         * gtk/gtktable.c:
10361         * gtk/gtkviewport.c:
10362         * gtk/gtkvscale.c:
10363         * gtk/gtkvscrollbar.c:
10364         * gtk/gtkwidget.c:
10365         Property patches, based on patches from John Margaglione and Lee Mallabone.
10366
10367 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
10368
10369         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
10370         adjustment. Cleaned redundant preconditions (spin != NULL). Added
10371         inline API function docs.
10372         (gtk_spin_button_new_with_range): New convenience constructor.
10373         (gtk_spin_button_set_increments): New adjustment helper.
10374         (gtk_spin_button_set_range): New adjustment helper.
10375
10376         * gtk/testgtk.c : added test of the new convenince constructor and
10377         value_changed signals.
10378
10379 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
10380
10381         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
10382         listen to the reorder signal.
10383
10384 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
10385
10386         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
10387         to get the aux info structure fo the widget.
10388
10389         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
10390         above function.
10391
10392         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
10393
10394         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
10395         to get the size of the window manager frame, basically the same
10396         code that gdk_window_get_root_origin() had
10397         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
10398
10399         * gtk/gtkwindow.c (gtk_window_set_default_size): use
10400         gdk_window_resize() if the window is realized and resizeable
10401
10402         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
10403         typo so that setting gravity works
10404
10405         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
10406         allocation if auto_shrink is on, even if the default size
10407         has not changed.
10408
10409         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
10410         g_return_if_fail
10411
10412 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
10413
10414         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
10415         reordering/sorting work.  Now pretty much works.
10416
10417         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
10418         reorder mostly work.  Still need to get the parity correct.
10419
10420         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
10421         signal, so I can listen for the sort_column_changed signal so I
10422         can change my "sort_indicator" property.  Cool.
10423
10424 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
10425
10426         [ Patch from Havoc Pennington, hp@redhat.com ]
10427
10428         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
10429         Add functions gdk_window_begin_resize_drag/begin_move_drag
10430         to start resizing or moving a toplevel window. This
10431         is done either using the _NET_WM_MOVERESIZE protocol,
10432         or, if that isn't present, by emulation.
10433
10434         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
10435         to export the above to GTK+-land.
10436
10437         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
10438         
10439         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
10440         Move this function into gdkwindow, since we need it
10441         when implementing fallback resizing.
10442
10443         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
10444         Fix typo when setting gravity.
10445
10446         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
10447         Add an optional (but on by default) resize grip for resizing 
10448         the parent window.
10449
10450 01-03-29  Alexander Larsson  <alexl@redhat.com>
10451
10452         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
10453         Don't return TRUE from the event handler, that blocks all
10454         event signals on the tooltip widget. Now you can press buttons
10455         in toolbars again.
10456
10457 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
10458
10459         * gtk/testtext.c (create_buffer): Add missing NULL on
10460         valist.
10461
10462         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
10463         c-n-p problem with INCONSISTENT property.
10464
10465         [ Patch from Havoc Pennington  <hp@redhat.com> ]
10466
10467         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
10468         hook.
10469
10470         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
10471         signal as a hook for extending the default popup menu
10472
10473         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10474         use radio menu items for the input method menuitems
10475
10476         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
10477         inserted unicode from Ctrl-Shift-hex input method
10478
10479         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
10480         validatation here, already done at GtkTextBuffer level.
10481
10482         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
10483         popup_menu run action signal and Shift+F10 and Menu keybindings.
10484
10485         * gtk/gtkentry.c: implement a default handler for popup_menu
10486
10487         * gtk/gtktextview.c: implement a default handler for popup_menu
10488
10489         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
10490         from a key event
10491         
10492         * gtk/gtklabel.c: remove "trailer" cruft
10493
10494 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
10495
10496         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
10497         handle reordering of trees.  Seems to mostly work w/ the exception
10498         of the parity flag.
10499
10500         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
10501         signal.
10502
10503 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
10504
10505         * gtk/gtkwidget.h: c++ fixes.
10506
10507 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
10508
10509         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
10510         memory.
10511
10512 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
10513
10514         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
10515         Nils Barth fixing event return values. (#51041)
10516
10517         * gtk/gtkwidget.c: Fix some return values for default
10518         functions.
10519
10520         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
10521         return values for trough_keys functions.
10522
10523         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
10524         value for add_accelerator (shoudl have been a void
10525         return.)
10526
10527         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
10528         Fix return type of EVENT.
10529
10530         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
10531         signal return a boolean.
10532
10533 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
10534
10535         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
10536         reordered signal.
10537
10538         * tests/testtreesort.c (main): fix spelling.
10539
10540 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
10541
10542         * gtk/gtkliststore.c: More work on implementing sortable
10543         interface.
10544
10545 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
10546
10547         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
10548         reference the widgets in the resulting list. (#11821)
10549         This makes this consistent with gtk_container_children.
10550
10551         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
10552         uses of gtk_window_list_toplevels.
10553
10554 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
10555
10556         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
10557         a virtual function to set whether the IM context should use 
10558         the preedit string. (#51922)
10559         
10560 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
10561
10562         * gdk/gdkpango.h: Remove stale FIXME comment.
10563
10564 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
10565
10566         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
10567         Fixed bug that returned NULL if a filename was selected.
10568
10569 2001-03-24  Havoc Pennington  <hp@pobox.com>
10570
10571         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
10572         to contain the word "theme"
10573
10574 2001-03-24  Havoc Pennington  <hp@pobox.com>
10575
10576         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
10577         slower but finer-grained
10578         (gtk_hsv_focus): get initial focus on the ring or triangle 
10579         according to tab direction
10580
10581         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
10582
10583 2001-03-23  Havoc Pennington  <hp@pobox.com>
10584
10585         * gtk/gtkhsv.c: make this somewhat key-navigable
10586
10587         * gtk/gtkfontsel.c: mnemonics
10588
10589         * gtk/gtkgamma.c: mnemonics
10590
10591         * gtk/gtkcolorsel.c: add mnemonics to labels
10592
10593 2001-03-22  Havoc Pennington  <hp@pobox.com>
10594
10595         Applied big patch from Seth Lytle to fix event handler return
10596         values, slightly modified.
10597
10598         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
10599         handled.
10600         (gtk_calendar_key_press): return TRUE for GDK_space triggers
10601         select_day
10602
10603         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
10604         (gtk_clist_button_release): return TRUE if handled
10605
10606         * gtk/gtkcolorsel.c (mouse_release):
10607         (palette_activate): 
10608         (palette_press): 
10609         (palette_new): 
10610         (mouse_press): 
10611         (get_screen_color): 
10612         fixed return type (void to gboolean), return TRUE,
10613         added GTK_SIGNAL_FUNC cast
10614
10615         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
10616         (void to gboolean), and return TRUE
10617         (gtk_combo_button_release): changed return value to TRUE after
10618         gtk_grab_add on combo->popwin
10619
10620         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
10621         collapse or expand
10622
10623         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
10624         button/motion
10625
10626         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
10627         press/release and motion that trigger act
10628
10629         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
10630
10631         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
10632         for GDK_Return
10633         
10634         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
10635         (gtk_list_button_release): return TRUE if selection
10636
10637         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
10638         press
10639
10640         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
10641         (gtk_menu_shell_button_release): chain parent_menu_shell retval
10642
10643         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
10644         nothing triggered
10645         (gtk_notebook_button_release): return TRUE if we do anything
10646
10647         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
10648         (gtk_spin_button_button_release): return TRUE or chained retval
10649
10650         * gtk/gtktext.c (gtk_text_button_press): 
10651         (gtk_text_button_release): return TRUE
10652         (gtk_text_key_press): remove redundant retval code
10653         
10654         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
10655         and sensitive
10656         (gtk_tree_item_subtree_button_click): changed type to gint, and return
10657         TRUE if sensitive
10658
10659         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
10660         return TRUE
10661
10662 2001-03-23  Havoc Pennington  <hp@redhat.com>
10663
10664         * gtk/testgtk.c: fix warnings
10665
10666         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
10667
10668         * gtk/gtktextview.c: fix warnings
10669
10670         * gtk/gtktext.c (find_cursor_at_line): fix warning
10671
10672         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
10673
10674         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
10675         of this function
10676
10677         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10678         fix warning
10679
10680         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
10681
10682         * gtk/gtkfontsel.c: fix warning
10683
10684         * gtk/gtkcolorsel.c: fix warnings
10685
10686 2001-03-23  Havoc Pennington  <hp@redhat.com>
10687
10688         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
10689
10690         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
10691
10692         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
10693         and deprecated gtk_check_menu_item_set_show_toggle().
10694         
10695         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
10696
10697         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
10698
10699         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
10700
10701 2001-03-23  Havoc Pennington  <hp@redhat.com>
10702
10703         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
10704         some docs
10705
10706 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
10707
10708         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
10709         this.
10710
10711         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
10712         set_cell to set_value
10713
10714         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
10715         set_cell to set_value
10716
10717 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
10718
10719         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10720         fix braino.
10721         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
10722         support.
10723
10724         * gtk/gtktreeview.c: Addition of initial sortable support.
10725
10726         * gtk/gtktreestore.c: Addition of initial sortable support.
10727
10728         * gtk/gtkliststore.c: Addition of initial sortable support.
10729
10730         * gtk/gtkmarshal.list: yet another marshaller.
10731
10732         * gtk/gtktreedatallist.[ch]: shared code between the store models
10733         for handling sorting headers.
10734
10735 2001-03-22  Havoc Pennington  <hp@redhat.com>
10736
10737         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
10738         (gtk_container_unset_focus_chain): Add ability to override the 
10739         focus chain for a container explicitly
10740
10741 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
10742
10743         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
10744         added PROP_MNEMONIC_WIDGET.
10745
10746         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
10747         (gtk_window_remove_mnemonic): 
10748         (gtk_window_add_mnemonic): fixed assertions.
10749         (gtk_window_activate_mnemonic): constrain modifier checks to those
10750         permitted by gtk_accelerator_get_default_mod_mask().
10751         got rid of gtk_window_get_default_accel_group().
10752
10753         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
10754         activatable widgets either by focussing or a warning.
10755         added a signal accumulator to ::activate_mnemonic which stops the
10756         emission once a handler returned TRUE.
10757
10758 2001-03-22  Havoc Pennington  <hp@pobox.com>
10759
10760         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
10761         the stock item label
10762
10763         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
10764
10765         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
10766
10767         * demos/gtk-demo/*.c: Add mnemonics all over the place
10768
10769         * gtk/gtklabel.h: mark parse_uline deprecated
10770
10771 2001-03-21  Alexander Larsson  <alexl@redhat.com>
10772
10773         * gtk/gtkitemfactory.[ch]:
10774         Add support for stock and normal imagemenuitems.
10775         
10776         * gtk/testgtk.c:
10777         Add some tests for mnemonics, stock toolbars, stock
10778         and image menuitems in itemfactory and gdk_window_scroll.
10779
10780 2001-03-21  Alexander Larsson  <alexl@redhat.com>
10781
10782         * gtk/gtkbutton.[ch]:
10783         * gtk/gtkdialog.c:
10784         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
10785         removed accel_group argument. Renamed gtk_button_new_accel() to
10786         gtk_button_new_with_mnemonic() and removed accel_group argument.
10787
10788         * gtk/gtkcheckbutton.[ch]:
10789         New function gtk_check_button_new_with_mnemonic().
10790
10791         * gtk/gtkentry.c:
10792         Override activate_mnemonic and just grab focus.
10793
10794         * gtk/gtkitemfactory.c:
10795         Don't add menu uline accel group, instead use mnemonics support.
10796
10797         * gtk/gtklabel.[ch]:
10798         New support for mnemonics.
10799
10800         * gtk/gtkmarshal.list:
10801         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
10802
10803         * gtk/gtkmenu.[c]:
10804         * gtkmenushell.c:
10805         Use mnemonics instead of accel groups for uline
10806         support in menu items.
10807         Removed gtk_menu_get_uline_accel_group() and
10808         gtk_menu_ensure_uline_accel_group().
10809
10810         * gtk/gtkmenuitem.c:
10811         Override activate_mnemonic to handle switching between
10812         menu items if there are collisions.
10813         
10814         * gtk/gtknotebook.c:
10815         Connect to activate_mnemonic on the tab_label, so that
10816         activating it switches to that notebook page.
10817
10818         * gtk/gtkwidget.[ch]:
10819         Add activate_mnemonic signal. New function
10820         gtk_widget_activate_mnemonic() to emit it.
10821         Default implementation does activate/grab_focus.
10822
10823         * gtk/gtkwindow.[ch]:
10824         Add support for mnemonics in windows.
10825         New functions:
10826         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
10827         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
10828
10829         * gtk/testgtk.c:
10830         Update to function name changes.
10831         
10832 2001-03-21  Alexander Larsson  <alexl@redhat.com>
10833
10834         * gtk/gtkimagemenuitem.[c]:
10835         Add gtk_image_menu_item_new_from_stock()
10836
10837 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
10838
10839         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10840         Fix buglet in meeting.
10841
10842 2001-03-19  Havoc Pennington  <hp@redhat.com>
10843
10844         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
10845         add a bunch of accessor functions. This is because we have
10846         reasonable expectations of extending what fields it contains in
10847         the future.
10848
10849         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
10850         changes
10851
10852         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
10853         GtkIconSource   
10854
10855 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
10856
10857         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
10858         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
10859
10860         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
10861           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
10862           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
10863           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
10864         Change float to double everywhere with the exception of 0<->1.0 alignment
10865         and GtkCurve.
10866
10867 2001-03-19  Tor Lillqvist  <tml@iki.fi>
10868
10869         * gdk/win32/gdkdrawable-win32.c
10870         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
10871         output.
10872
10873         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
10874         gdkwin32.h.
10875
10876 2001-03-18  Tor Lillqvist  <tml@iki.fi>
10877
10878         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
10879         print_event_state, print_event): Use preprocessor macro to make
10880         code more compact. Print also GDK_WINDOW_STATE events.
10881         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
10882         
10883         * gtk/gtk.def
10884         * gtk/makefile.mingw.in: Update.
10885
10886         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
10887         to catch also Cygwin.
10888
10889 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
10890
10891         * gtk/gtkspinbutton.[hc]: added rc-style argument
10892         GtkSpinButton::shadow_type.
10893         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
10894         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
10895         rc-style settings.
10896
10897         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
10898
10899         * gtk/gtkwidget.c: quark cleanups.
10900
10901         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
10902         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
10903         to create_rc_style() (we don't do cloning in standard OO sense).
10904         added per rc style properties.
10905         
10906         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
10907         property values and for caching those. some cleanups.
10908         
10909         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
10910         
10911         * gtk/gtksettings.[hc]: new file for global rc-file properties
10912         (at least currently, should get extended to support X properties
10913         and other communication mechanisms).
10914         
10915         * gtk/gtkwidget.[hc]: added style property support:
10916         (gtk_widget_class_install_style_property_parser): install style
10917         property pspec with parser function for rc-file values other
10918         than LONG, DOUBLE or STRING.
10919         (gtk_widget_class_install_style_property): same as above without
10920         parser (parsers are going to be needed quite infrequently).
10921         (gtk_widget_style_get_property): retrive style property value.
10922         (gtk_widget_style_get_valist): same as above with varargs support,
10923         has NOCOPY semantics.
10924         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
10925
10926 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
10927
10928         * demos/gtk-demo/main.c (row_activated_cb): modified to use
10929         "row_activated" signal.
10930
10931         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
10932         stupidity.  Lets actually pass in the row with this signal...
10933
10934 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
10935
10936         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
10937
10938         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
10939
10940         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
10941         everything into the ::destroy function, and freed a lot more.
10942
10943 2001-03-16  Havoc Pennington  <hp@redhat.com>
10944
10945         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
10946         instead of gint16, to avoid overflow issues, since sizes > 16-bit
10947         are now allowed.
10948
10949 2001-03-16  Havoc Pennington  <hp@redhat.com>
10950
10951         * Applied patch from Nils Barth (bug # 51041) to 
10952         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
10953         in various places.
10954
10955 2001-03-15  Havoc Pennington  <hp@redhat.com>
10956         
10957         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
10958         for properties to set on the tag.
10959
10960         * gtk/testtext.c: fixups to reflect create_tag change
10961         
10962         * gtk/gtktexttag.c (gtk_text_tag_set_property):
10963         background/foreground stipple are objects, not boxed.
10964
10965         * demos/gtk-demo/textview.c: intellihancing
10966
10967 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
10968
10969         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
10970         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
10971
10972 2001-03-16  Alexander Larsson  <alexl@redhat.com>
10973
10974         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
10975         Fix sign error with queued region translations.
10976
10977 2001-03-15  HideToshi Tajima  <tajima@happy>
10978
10979         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
10980         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
10981         * gtk/gtkentry.c (update_im_cursor_location): 
10982         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
10983         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
10984         set_cursor_pos to set_cursor_location in GtkInputContext class
10985
10986 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
10987
10988         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
10989         the location of the cell relative to its area.
10990         * gtk/gtkcell*: modified for above change
10991         * gtk/gtktreeview.c: modified for above change.
10992
10993 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
10994
10995         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
10996          (gtk_tree_view_finalize): actually unref the model.  Thanks to
10997         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
10998
10999 2001-03-14  Havoc Pennington  <hp@redhat.com>
11000
11001         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
11002         
11003         * gtk/gtk.h: remove gtkdata.h
11004
11005         * gtk/Makefile.am: remove gtkdata
11006         
11007         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
11008         not "disconnect" on the adjustments.
11009         
11010         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
11011         GtkData
11012
11013         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
11014         not GtkData
11015
11016         * configure.in: handle case where X render exists, but Pango lacks
11017         Xft support.
11018
11019 2001-03-15 Alexander Larsson  <alexl@redhat.com>
11020
11021         * gtk/gtktoolbar.[ch]:
11022         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
11023         to add stock items to toolbars.
11024
11025         * gtk/Makefile.am:
11026         Remove ../gdk/gdkim.h from gdk_headers.
11027
11028 2001-03-15  Sven Neumann  <sven@gimp.org>
11029
11030         * gdk/gdkim.h: removed
11031         
11032         * gdk/gdkprivate.h
11033         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
11034
11035 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
11036
11037         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
11038         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
11039         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
11040         set_cursor_pos() virtual method
11041
11042         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
11043         (gtk_im_context_xim_set_cursor_pos): add implementation for
11044         set_cursor_pos() method
11045
11046         * gtk/gtkentry.c (recompute_idle_func): set current cursor
11047         position to input methods
11048
11049 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
11050
11051         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
11052         code a lot.
11053
11054         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
11055         g_mem_chunk.
11056         (_gtk_tree_data_list_alloc): use g_mem_chunk.
11057         (_gtk_tree_data_list_node_to_value): Fix to switch on
11058         G_TYPE_FUNDAMENTAL.
11059         (_gtk_tree_data_list_value_to_node): Fix to switch on
11060         G_TYPE_FUNDAMENTAL.
11061         (_gtk_tree_data_list_node_copy): Fix to switch on
11062         G_TYPE_FUNDAMENTAL.
11063
11064 2001-03-12  Havoc Pennington  <hp@redhat.com>
11065
11066         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
11067         to convert to new property API. Also, change default_width and
11068         default_height get_property to return 0 as the flag value for
11069         "unset"; -1 is not a valid value for these fields.
11070
11071 2001-03-12  Havoc Pennington  <hp@redhat.com>
11072
11073         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
11074         enum with registration for icon sizes, instead of strings.
11075
11076         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
11077         gtkwidget.c: Fix to reflect GtkIconSize
11078         
11079 2001-03-12  Alexander Larsson  <alexl@redhat.com>
11080
11081         Make GtkFB compile and link.
11082         
11083         * gdk/linux-fb/gdkdrawable-fb2.c:
11084         window->mapped to GDK_WINDOW_IS_MAPPED(). 
11085         
11086         * gdk/linux-fb/gdkwindow-fb.c:
11087         window->mapped to GDK_WINDOW_IS_MAPPED(). 
11088         Added gdk_window_shape_combine_region.
11089         Added assorted placeholders for unimplemented new GdkWindow API calls.
11090
11091 2001-03-12  Alexander Larsson  <alexl@redhat.com>
11092
11093         * gtk/gtkfilesel.c:
11094         Add more test when converting filenames from/to utf-8.
11095         Don't allow entering text in the filename entry which isn't allowed in
11096         a filename. Just beep instead.
11097
11098 2001-03-12  Alexander Larsson  <alexl@redhat.com>
11099
11100         * gtk/gtkclist.c:
11101         Scroll using gdk_window_scroll(). Don't wait for exposes.
11102         Move the column headers in an order that makes them flash less.
11103
11104 2001-03-10  Hans Breuer  <hans@breuer.org>
11105
11106         * gdk/gdk.def : updated
11107
11108         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
11109         to offseting the clip_mask at the right place
11110
11111         * gdk/win32/gdkwindow-win32.c : don't create background brushes
11112         for all the gdkClasses, especially not for the input_only case.
11113         Otherwise flickering wont be avoidable, because we don't get
11114         WM_ERASEBKGND message for these windows.
11115
11116         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
11117         and fixed massive redraw problems apparently triggered by Alexanders 
11118         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
11119         but it seems to work quite well :-)
11120
11121         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
11122         prototype
11123
11124 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
11125
11126         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
11127         (gtk_list_store_set_cell): Fix a stupid typo.
11128
11129 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
11130
11131         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
11132         select_all not work if you're in SINGLE mode (it doesn't make that
11133         much sense, anyway.)
11134
11135         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
11136         handle types more sanely.
11137         (_gtk_tree_data_list_value_to_node): handle types more sanely.
11138         (_gtk_tree_data_list_node_copy): handle types more sanely.
11139
11140         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
11141         GValue better. Converts the type as well.
11142
11143         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
11144         GValue better. Converts the type as well.
11145
11146 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
11147
11148         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
11149         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
11150         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
11151         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
11152
11153         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
11154         gdk_im/gdk_ic.
11155
11156 2001-03-09  Hans Breuer  <hans@breuer.org>
11157
11158         * gdk/gdk.def : updated
11159
11160         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
11161         for their palette
11162
11163         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
11164         removing
11165
11166         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
11167         removing and implemented Havoc's GdkWindow state functions; 
11168         stick/unstick only as no-op, cause I don't know how to emulate 
11169         on win32 ...
11170
11171         * gtk/gtk.def : updated
11172
11173         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
11174
11175         * gtk/gtktypeutils.c : #include <string.h>
11176
11177         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
11178
11179 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
11180
11181         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
11182         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
11183         not a boxed.
11184
11185 2001-03-09  Alexander Larsson  <alexl@redhat.com>
11186
11187         * docs/Changes-2.0.txt:
11188         Document expose event->region change and that gtk_widget_event
11189         doesn't allow passing expose events.
11190
11191         * gdk/gdkevents.h:
11192         Add region to expose event.
11193         
11194         * gdk/gdkevents.c:
11195         Handle event->region in gdk_event_copy() and gdk_event_free().
11196
11197         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
11198         Generate expose_event->region when creating expose events.
11199
11200         * gdk/x11/gdkevents-x11.c:
11201         Generate expose events with regions when translating X events.
11202
11203         * gtk/gtkcontainer.[ch]:
11204         Default expose handler that propagates expose events to NO_WINDOW
11205         children. New function gtk_container_propagate_expose()
11206
11207         * gtk/gtkwidget.[ch]:
11208         Moved gtk_widget_event implementation to gtk_widget_event_internal.
11209         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
11210         expose events. New function gtk_widget_send_expose() to send expose
11211         events. New function gtk_widget_region_intersect() to calculate
11212         window/region intersections.
11213         
11214         * gtk/gtkmain.c (gtk_main_do_event):
11215         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
11216         Use gtk_widget_send_expose() to send expose events.
11217         
11218         * gtk/gtkbin.c:
11219         * gtk/gtkbox.c:
11220         * gtk/gtkfixed.c:
11221         * gtk/gtkimagemenuitem.c:
11222         * gtk/gtklist.c:
11223         * gtk/gtkpacker.c:
11224         * gtk/gtktable.c:
11225         * gtk/gtktree.c:
11226         Remove expose handler, using the default container implementation
11227         instead.
11228         
11229         * gtk/gtkbutton.c:
11230         * gtk/gtkcheckbutton.c:
11231         * gtk/gtkeventbox.c:
11232         * gtk/gtkfixed.c:
11233         * gtk/gtkhandlebox.c:
11234         * gtk/gtklayout.c:
11235         * gtk/gtklistitem.c:
11236         * gtk/gtkmenu.c:
11237         * gtk/gtkmenubar.c:
11238         * gtk/gtkmenuitem.c:
11239         * gtk/gtknotebook.c:
11240         * gtk/gtkoptionmenu.c:
11241         * gtk/gtkpaned.c:
11242         * gtk/gtkscrolledwindow.c:
11243         * gtk/gtktogglebutton.c:
11244         * gtk/gtktoolbar.c:
11245         * gtk/gtktreeitem.c:
11246         * gtk/gtkviewport.c:
11247         Chain expose handler to parent class handler. Use
11248         gtk_container_propagate_expose() to propagate exposes.
11249
11250         * gtk/gtkclist.c (check_exposures):
11251         * gtk/gtktext.c (process_exposes):
11252         Use gtk_widget_send_expose instead of gtk_widget_event.
11253
11254 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
11255
11256         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
11257
11258 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
11259
11260         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
11261         unref the nodes.   Fixes bug #50058.
11262
11263         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
11264         "::ref_iter" to "::ref_node".
11265         (gtk_tree_model_unref_node): change "::unref_iter" to
11266         "::unref_node". Fixes bug #50064.
11267
11268 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
11269
11270         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
11271         support for invisible cells.
11272          (gtk_tree_view_bin_expose): ditto
11273
11274 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
11275
11276         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
11277         on gobjects.
11278
11279         * tests/testtreefocus.c (main): New test file.
11280
11281         * tests/testtreeview.c: update to latest glib changes.
11282
11283         * tests/testtreecolumns.c: update to latest glib changes.
11284
11285 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
11286
11287         * gtk/testgtk.c: re-enabled event watcher emission hooks.
11288
11289 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
11290
11291         * *.c: added accumulator data argument to g_signal_newc()
11292         functions.
11293
11294         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
11295         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
11296         * gtk/treestoretest.c (make_window):
11297         s/g_signal_connect/g_signal_connectc/.
11298
11299         * gtk/gtktextbuffer.c: completed signal arg fixups,
11300         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
11301
11302 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
11303
11304         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
11305         G_CONST_RETURN.
11306
11307         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
11308         ::hierarchy-changed signal when a widget changes
11309         from anchored to unanchored or vice versa.
11310         (anchored means 
11311          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
11312         Use a private flag to keep track of this efficiently.
11313
11314 2001-03-07  Havoc Pennington  <hp@redhat.com>
11315
11316         * gtk/testgtk.c (create_spins): uglify so that size request gets
11317         tested.
11318
11319         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
11320         request on values for upper/lower, completes #6152
11321
11322 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
11323
11324         * Makefile.am: Remove gtk-config-2.0 again.
11325         (Grrrr, pkg-config. And stops make loops.)
11326
11327 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
11328
11329         * gtk/gtksignal.[hc]: removed old emission hook API.
11330         
11331         * docs/Changes-2.0.txt: fixed sections.
11332         
11333         * gtk/gtktextbuffer.c: signal arg fixups.
11334
11335 2001-03-07  Havoc Pennington  <hp@redhat.com>
11336
11337         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
11338
11339         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
11340         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
11341         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
11342         validation and the redraw which is higher priority than the
11343         validation.
11344
11345 2001-03-07  Havoc Pennington  <hp@redhat.com>
11346
11347         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
11348         (gtk_entry_set_property): remove trailer
11349
11350         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
11351         (gtk_entry_get_width_chars): new functions, to set size request to 
11352         a given number of characters
11353
11354         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
11355
11356         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
11357         (gtk_dialog_get_has_separator): new function
11358         (run_delete_handler): fix to not emit "response" signal
11359         because we already did in the delete event handler installed
11360         at dialog creation time.
11361         
11362         * gtk/gtkdialog.h: add a has_separator property,
11363         add GTK_DIALOG_NO_SEPARATOR flag
11364
11365 2001-03-07  Havoc Pennington  <hp@redhat.com>
11366
11367         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
11368         off decorations for a window.
11369
11370         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
11371         changes
11372
11373         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
11374         to get location of PangoLayout inside the label, closes #51198
11375
11376         * gtk/testgtk.c (create_bbox): fix up button box usage
11377
11378         * gtk/testcalendar.c (create_calendar): fix up button box usage
11379
11380         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
11381
11382         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
11383
11384         * gtk/gtkhbbox.h: deprecations
11385
11386         * gtk/gtkvbbox.h: deprecations
11387
11388         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
11389         emulate deprecated gtk_button_box_get_spacing
11390
11391         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
11392         the "set global default" functions
11393         (struct _GtkButtonBox): remove "spacing" field, use the one from 
11394         GtkBox base class
11395
11396         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
11397
11398         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
11399         render the icon, return the missing image icon.
11400
11401         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
11402         image icon if the load fails.   
11403
11404         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
11405         when no image is found; should be the Netscape "missing image"
11406         icon eventually but for now is a random image
11407
11408         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
11409         role for the session manager
11410
11411         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
11412
11413         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
11414         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
11415
11416         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
11417
11418 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
11419
11420         * gtk/*.c: marshaller fixes.
11421         
11422         * gtk/gtkmarshal.list: extreme cleanup.
11423
11424         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
11425         param spec for now.
11426
11427         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
11428         where appliable.
11429
11430         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
11431         special cased autogenerated boxed types from gtktypebuiltins_ids.c
11432         which are not reference counted:
11433         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
11434         PangoFontDescription, GtkTreeIter and GtkTreePath.
11435
11436 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
11437
11438         * gtk/gtktreeselection.h: 
11439         * gtk/gtktreemodel.c:
11440         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
11441         file should be included directly, and gobject/gmarshal.h
11442         as well as gtk/gtkmarshal.h even can't be included directly.
11443
11444         * Makefile.am: grr, install gtk-config-2.0.
11445
11446         * gtk/testgtk.c:
11447         * gtk/simple.c:
11448         * gtk/gtkmenu.c:
11449         * gtk/gtkitemfactory.c: use g_object_connect() instead of
11450         passing "*signal*::*" args to gtk_widget_set().
11451         
11452         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
11453         
11454         * gtk/*.c: removed trailer arg from property setters and getters.
11455         macro fixups.
11456
11457 2001-03-07  Alexander Larsson  <alexl@redhat.com>
11458
11459         * gtk/gtklabel.c (set_markup): Removed warning
11460
11461 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
11462
11463         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
11464         field to allow you to hide cell renderers.
11465
11466         * gtk/gtkcellrenderer.c: Add support for invisible cells.
11467
11468         * gtk/gtktreeview.c: Add support for invisible cells.
11469
11470 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
11471
11472         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
11473         Add "clicked" signal back to columns.
11474
11475         * ChangeLog: remove conflict markers.
11476
11477 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
11478
11479         * gtk/gtkbutton.c: Add animation of activation by, on 
11480         activate, pressing the button, and adding a timeout that 
11481         releases the button after 250ms or on key release and
11482         emits ::clicked. (#51501)
11483
11484         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
11485         action area, we connect to ::clicked instead of ::activate
11486         so the dialog stays up through the animation.
11487
11488 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
11489
11490         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
11491         check the ignore_enter flag for the menu shell that
11492         the item is actually a child of, not for attached
11493         submenus. (#51536)
11494
11495 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
11496
11497         * gtk/gtkmain.c (gtk_propagate_event): Only do special
11498         special key-press grab handling for widgets within
11499         GtkWindows. Otherwise, fall through to normal case.
11500
11501         This prevents key events being sent twice to GtkInvisible
11502         widgets, which can cause all sorts of mischief.
11503
11504 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
11505
11506         * gtk/gtkmain.c (gtk_propagate_event): When a grab
11507         widget is in effect, give the grab widget a first
11508         crack at KEY_PRESS/RELEASE events. (#424)
11509
11510 2001-03-06  James Henstridge  <james@daa.com.au>
11511
11512         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
11513         offset for the window_state_event to point at window_state_event
11514         rather than no_expose_event.
11515
11516 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
11517
11518         * gtk/gtkimmodule.h: fix busted /* comment */
11519
11520 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
11521
11522         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
11523         object properties.
11524
11525 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
11526
11527         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
11528         add object properties.
11529
11530         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
11531         to add object properties.
11532
11533         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
11534         object properties.
11535
11536         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
11537         add object properties.
11538
11539         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
11540         object properties.
11541
11542 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
11543
11544         * gtk/gtktreemodel.c: renamed "child_toggled" to
11545         "has_child_toggled".
11546
11547         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
11548         handle new signal name.
11549
11550         * gtk/gtktreestore.c: Updated to handle new signal name.
11551         * gtk/gtklisttore.c: Updated to handle new signal name.
11552         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
11553
11554 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11555
11556         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
11557         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
11558
11559 2001-03-05  Michael Natterer  <mitch@gimp.org>
11560
11561         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
11562         pixbuf-engine coincidentially also failed to make one of it's
11563         parent_class pointers static, causing overwriting of GtkLabel's
11564         parent_class pointer in pixbuf_style_class_init().
11565         (Will commit the fix to the pixbuf-engine too).
11566
11567 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11568
11569         * gdk/gdkwindow.h:
11570         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
11571         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
11572         gdk_window_set_icon_list for net wmspec functionality.
11573
11574         * gdk/x11/gdkwindow-x11.c:
11575         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
11576         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
11577         gdk_window_set_icon_list.
11578         Added gdk_wmspec_change_state helper function and used it in the code.
11579         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
11580
11581         * gtk/gtkdialog.c (gtk_dialog_init):
11582         Set GDK_WINDOW_TYPE_HINT_DIALOG.
11583
11584         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
11585         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
11586
11587         * gtk/gtkwindow.c:
11588         new function gtk_window_set_type_hint.
11589         On realize, set type hint and modal hint.
11590
11591         * gtk/gtkwindow.h:
11592         Added type_hint field and gtk_window_set_type_hint.
11593
11594 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11595
11596         * gtk/gtklabel.[ch]:
11597         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
11598         New function gtk_label_get_accel_keyval () to get the underline accelerator
11599         of the label. Setting the label pattern overrides other attributes.
11600
11601 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
11602
11603         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
11604         Added missing initializers to gtk_rc_style_init().
11605
11606 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
11607
11608         * gtk/gtktextview.c: fixed bug #51097 about setting 
11609         gtk_text_view_set_border_window_size() if the widget is 
11610         already realized.
11611
11612 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
11613
11614         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
11615
11616         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
11617         comment. Won't do to have duplicated doc comments between
11618         the platform subdirs.
11619
11620 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
11621
11622         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
11623           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
11624
11625         Detectable auto-repeat - make a repeating key generate
11626         press/press/press/release instead of press/release pairs.
11627
11628         If we have Xkb and XkbSetDectableAutoRepeat supports
11629         that, we do it that way. Otherwise, when we get
11630         a release event, we check ahead with XPending to see
11631         if the next key is a KeyPress with the same keycode
11632         and timestamp. (Not 100% reliable, but pretty close.)
11633           
11634 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
11635         
11636         * gtk/gtkmain.c (gtk_propagate_event): Only do special
11637         special key-press grab handling for widgets within
11638         GtkWindows. Otherwise, fall through to normal case.
11639  
11640         This prevents key events being sent twice to GtkInvisible
11641         widgets, which can cause all sorts of mischief.
11642  
11643 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
11644  
11645         * gtk/gtkmain.c (gtk_propagate_event): When a grab
11646         widget is in effect, give the grab widget a first
11647         crack at KEY_PRESS/RELEASE events. (#424)
11648  
11649 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
11650
11651         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
11652         to extend the selection. (Roughly based on patch
11653         from Jay Cox, #50939)
11654
11655         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
11656         to properly handle previous GDK_BUTTON_PRESS. 
11657         (Patch from Jay Cox, #50938)
11658
11659         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
11660         '\0' back along with the deleted text. (#51148)
11661
11662 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
11663
11664         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
11665         the group when extracting it from the X keyboard event.
11666
11667         * modules/input/Makefile.am modules/input/imipa.c: 
11668         Simple module for entering IPA. (Do we need a 
11669         gtk-stupid-input-tricks CVS module?)
11670
11671 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
11672
11673         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
11674         const.
11675
11676         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
11677
11678         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
11679         is no focus widget for the dialog currently, grab the focus as well
11680         as the default.
11681
11682         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
11683         the action area's children to iterate through, not the
11684         dialog's children.
11685
11686 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
11687
11688         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
11689         Add plug-socket tests. (Won't work worth a darn until I commit
11690         the rest of the plug-socket changes, but no reason these
11691         can't go into CVS now.)
11692
11693 2001-03-02  Havoc Pennington  <hp@redhat.com>
11694
11695         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
11696         _gdk_region_get_xrectangles()
11697
11698         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
11699
11700         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
11701
11702         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
11703         function, contributed by Ron Steinke    
11704
11705         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
11706         gdk_net_wm_supports
11707
11708         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
11709         New function, contributed by Ron Steinke
11710
11711         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
11712         used to line up the text in the entry when using the entry for
11713         editable sheet cell hacks
11714
11715         * gtk/testgtk.c (create_entry): test the activate_default setting
11716         on GtkEntry
11717
11718         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
11719         cause the entry to activate the default button for a dialog when 
11720         activated
11721         (gtk_entry_get_activates_default): new function
11722
11723 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
11724
11725         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
11726         Hwang to move call to sync_selection() up a few lines
11727         to before the row list is modified, to fix crash when
11728         removing rows in the undo_selection list.
11729
11730         (Test case provided by Daniel Elstner:
11731
11732         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
11733
11734 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
11735
11736         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
11737         of tree->root_tree in parent_set rather than _map(), 
11738         fixing #50892 in a bit better manner.
11739
11740 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
11741
11742         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
11743
11744 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
11745
11746         * gtk/gtkstyle.c : Remove duplicate fwd decl for
11747         gtk_default_draw_shadow.
11748
11749 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
11750
11751         * gdk/gdkimage.c (gdk_image_new): Remove excess 
11752         warning, make warnings more verbose, treat a error
11753         in shmat as permanent, and don't try again.
11754         (#51163, Ed Randall.)
11755
11756 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
11757
11758         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
11759         delay for the first click before starting to scroll.
11760         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
11761
11762         * gtk/gtktext.c: GtkText should have I-beam cursor. 
11763         (based on gtk-enf-990513-1.patch, Eric Fisher.)
11764
11765 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
11766
11767         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
11768         cleanup to remove some references to unused
11769         ->xoffset, ->yoffset.
11770
11771 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
11772
11773         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
11774         mask. (#51039, fix from Martin Maierhofer)
11775
11776 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
11777
11778         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
11779         for unshifted + and shifted = for non-us keyboards.
11780         Make <Control>+ and <Control>- work as well as 
11781         <Control>KP_Plus, <Control>KP_Minus for recursive
11782         open/close.  (#2682, René Seindal)
11783
11784 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
11785
11786         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
11787         the active menu item before deactivating the menu,
11788         so gtk_menu_popdown doesn't change the history. (#50964)
11789         
11790 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
11791
11792         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
11793         draw lines with text_gc rather than black_gc.
11794         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
11795
11796 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
11797
11798         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
11799         Move handling of buttons fully in gtktreeviewcolumn.  This code is
11800         less interrelated then it was, but it still requires the
11801         GtkTreeView to map it.
11802
11803         * test/testtreecolumn.c: Now I can add a column to one view,
11804         remove it, add it to the another view, remove it, then re-add it
11805         to the first.  Nifty.
11806
11807 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
11808
11809         * docs/tutorial/gtk-tut.sgml: Minor corrections
11810
11811 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
11812
11813         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
11814         GtkRowReference.
11815
11816 2001-02-28  Havoc Pennington  <hp@redhat.com>
11817
11818         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
11819         draw_default
11820         (gtk_widget_draw_focus): remove this function; we could instead
11821         make it just gtk_widget_draw(), but in most cases I think the
11822         result would be broken user code, so think it's better to have
11823         that code not compile and get fixed
11824         (gtk_widget_draw_default): ditto
11825
11826         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
11827         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
11828         
11829         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
11830         widgets lose/get the default, instead of calling draw_default
11831         
11832         * docs/Changes-2.0.txt: note about all this
11833
11834         Then fixed every widget in GTK, I won't list all the filenames.
11835
11836 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
11837
11838         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
11839         _gtk_tree_row_reference_deleted.
11840         (inserted_callback): Proxy out to
11841         _gtk_tree_row_reference_inserted.
11842         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
11843         get around signal emission ordering problem.
11844
11845         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11846         fix to work with SINGLE 
11847         (_gtk_tree_selection_internal_select_node): Major sanitization on
11848         selections.  SINGLE now seems to work.
11849
11850         * tests/Makefile.am: add testtreecolumn.c:
11851
11852         * tests/testtreecolumn.c: New test.  Mostly points out selection
11853         bugs currently, but will test columns later.
11854
11855         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
11856         selection bug.  I hate touching this code -- it's scary.
11857
11858 2001-02-26  Havoc Pennington  <hp@redhat.com>
11859
11860         * gtk/testgtk.c: test the window state stuff
11861
11862         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
11863         window come to the user's attention as if it were just created
11864         (gtk_window_iconify): new function
11865         (gtk_window_deiconify): new function
11866         (gtk_window_stick): new function
11867         (gtk_window_unstick): new function
11868         (gtk_window_maximize): new function
11869         (gtk_window_unmaximize): new function
11870
11871         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
11872
11873         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
11874
11875         * gdk/x11/gdkevents-x11.c: create window state events when
11876         appropriate
11877         (gdk_wmspec_supported): new function
11878
11879         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
11880         iconification before showing the window
11881         (gdk_window_deiconify): new function
11882         (gdk_window_stick): new function
11883         (gdk_window_unstick): new function
11884         (gdk_window_maximize): new function
11885         (gdk_window_unmaximize): new function
11886
11887         * gdk/gdkwindow.c: store the window state in the window; 
11888         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
11889         window->mapped.
11890         (gdk_window_get_state): return the current window state
11891
11892         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
11893         (gdk_event_get_state): handle GDK_WINDOW_STATE
11894         (gdk_synthesize_window_state): function to create the window state
11895         events
11896
11897         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
11898         event, for changes to "window state" such as maximized, sticky, 
11899         etc.
11900         
11901         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
11902         focuses a window
11903
11904         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
11905         finds out if we support a given WM spec hint
11906
11907 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
11908
11909         * docs/faq/gtk-faq.sgml: New question re memory leaks.
11910
11911 2001-02-25  Hans Breuer  <hans@breuer.org>
11912
11913         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
11914         cause we want to loose those prototypes only in the latter case
11915
11916         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
11917         GdkPixmapImplWin32 because it itsn't derived from it. Use the
11918         impl member variable instead
11919
11920         * gtk/gtk.def : updated
11921
11922         * gtk/gtklist.c : 
11923         * gtk/gtkmenus.c : include <string.h> for memset ()
11924
11925         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
11926         for everthing built here, but for gtk-x.x.dll only. This solves
11927         problem of indifferent gtk type definitions
11928
11929 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
11930
11931         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
11932
11933 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
11934
11935         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
11936         column that is exposed.
11937
11938         (_gtk_tree_view_update_size): Changed name from set_size, and
11939         changed function to do more work, and not force people calling it
11940         to figure out the size.  Simplifies a lot of code elsewhere.
11941
11942 2001-02-23  Alexander Larsson  <alexl@redhat.com>
11943
11944         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
11945         return solid masks for xpms that have no transparent color.
11946         This makes the ..._create_from_xpm... API backwards
11947         compatible.
11948
11949 2001-02-23  Tor Lillqvist  <tml@iki.fi>
11950
11951         * README.win32: Update. Mention the gtk-1-3-win32-production
11952         branch.
11953
11954         * gdk/win32/bdfcursor.c: New file. A program that generates
11955         xcursors.h. Thanks to Stefan Ondrejicka.
11956
11957         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
11958         compact format.
11959
11960         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
11961
11962         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
11963         function, uses xcursors.h.
11964         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
11965         cursor from inline data instead of using LoadCursor() to generate
11966         it from a resource.
11967
11968         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
11969         event, must check the Windows message for mouse button state, as
11970         the GDK event state might not have been built if it is
11971         undelivered. Remove one goto.
11972
11973         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
11974         SetCursor() if the current cursor as returned by GetCursor() is
11975         the window's previous cursor. The ChildWindowFromPoint() test
11976         apparently didn't work correctly.
11977
11978         * gdk/win32/rc/*.cur: Remove.
11979
11980         * gdk/win32/rc/gdk.rc.in: Remove cursors.
11981
11982         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
11983
11984         * gtk/makefile.{mingw,msc}.in: Updates.
11985
11986 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
11987
11988         * gtk/gtktreemodel.h: add functions for signal emission.
11989
11990         * gtk/gtktreestore.c: move to use above functions instead of
11991         g_signal_emit.
11992
11993         * gtk/gtkliststore.c: ditto
11994
11995 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
11996
11997         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
11998         GObject instead of GtkObject.
11999
12000         * gtk/gtkliststore.c: ditto.
12001
12002         * gtk/gtktreemodelsort.c: ditto.
12003
12004         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
12005         GtkTreeModelIface, instead of in each model.
12006
12007 2001-02-21  Havoc Pennington  <hp@redhat.com>
12008
12009         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
12010         unbreak this function
12011
12012         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
12013         properties
12014
12015         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
12016         properties
12017
12018         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
12019         properties
12020
12021         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
12022         mean unset the max length
12023
12024 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
12025
12026         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
12027         Changed name to be set_cell_data_func to make it clear what
12028         the functino does.  Close bug #51069.
12029
12030 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
12031
12032         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
12033         have memory actually freed.  Keeps box running longer.
12034
12035 2001-02-21  Alexander Larsson  <alexl@redhat.com>
12036         
12037         * gtk/gtkseparatormenuitem.[ch]:
12038         Added new menu separator item. The drawing and size handling
12039         is still done in GtkMenuItem, but the API is a bit more sane.
12040         
12041         * gtk/Makefile.am:
12042         Add gtkseparatormenuitem.[ch].
12043
12044         * gtk/gtk.h:
12045         Add gtkseparatormenuitem.h.
12046         
12047         * gtk/gtkentry.c:
12048         * gtk/gtkmenufactory.c:
12049         * gtk/gtktextview.c:
12050         Use the new API for menu separators.
12051         
12052         * demos/gtk-demo/menus.c (create_menu):
12053         Add some GtkSeparatorMenuItem demo code.
12054
12055 2001-02-20  Havoc Pennington  <hp@redhat.com>
12056
12057         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
12058         Lee Mallabone
12059
12060         * gtk/gtkarrow.c: Convert to new property API, patch from 
12061         Lee Mallabone
12062
12063 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
12064
12065         * tests/testtreeview.c (toggled_callback): fix to reflect change
12066         in GtkTreeModelStore.
12067
12068 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
12069
12070         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
12071         function to create an icon set from a pixbuf.
12072
12073 2001-02-20  Alexander Larsson  <alexl@redhat.com>
12074
12075         * gtk/gtkcellrenderertext.[ch]:
12076         Add a "markup" property.
12077
12078         * gtk/treestoretest.c:
12079         Use the markup property, remove some leftover stuff from
12080         GtkTreeModelMapping.
12081
12082 2001-02-20  Alexander Larsson  <alexl@redhat.com>
12083
12084         * gtk/gtklabel.c (gtk_label_set_selectable):
12085         Queue a redraw if the selectable setting was changed.
12086
12087 2001-02-20  Alexander Larsson  <alexl@redhat.com>
12088
12089         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
12090         Actually copy the whole gc, not just the public parts.
12091         
12092         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12093         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
12094         labels.
12095
12096 2001-02-19  Havoc Pennington  <hp@pobox.com>
12097
12098         * gdk/gdkwindow.c: docs
12099
12100         * gdk/gdkrgb.c: docs
12101
12102         * gdk/gdkregion-generic.c: docs
12103
12104         * gdk/gdkgc.c (gdk_gc_set_values): docs
12105
12106         * gdk/gdkdraw.c: docs
12107
12108         * gdk/gdkdrawable.h: deprecate drawable get/set data
12109
12110 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
12111
12112         * demos/gtk-demo/dialog.c: Add simple new demo.
12113
12114 2001-02-19  Havoc Pennington  <hp@redhat.com>
12115
12116         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
12117         insert_child_anchor signal, bug #50245
12118
12119         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
12120         from create_child_anchor, so the anchor is passed in
12121
12122         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
12123         (_gtk_widget_segment_new): have the child anchor object passed in, 
12124         instead of creating it.
12125
12126         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
12127         to gtk_text_buffer_get_modified
12128
12129 2001-02-19  Havoc Pennington  <hp@redhat.com>
12130
12131         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
12132         changed GLib without fixing GTK
12133
12134         * gtk/gtkrange.h: Rename all the stupid implementation detail 
12135         functions to have an underscore in front. Most of them should 
12136         probably just go away, but for starters don't export them.
12137         Bug #50482
12138
12139 2001-02-19  Havoc Pennington  <hp@redhat.com>
12140
12141         * gdk/gdkcolor.h: test was backward, so deprecated functions were
12142         excluded by default
12143
12144         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
12145         clean up the old code a bit
12146
12147         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
12148         inconsistent state
12149
12150         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
12151         draw inconsistent state
12152
12153         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
12154         (create_menu): add inconsistent test
12155
12156         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
12157         new function
12158         (gtk_check_menu_item_get_inconsistent): new function
12159         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
12160         state (using etched in for now)
12161
12162         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
12163         draw inconsistent state
12164
12165         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
12166         function, used when the user has selected a range of stuff in
12167         different states
12168         (gtk_toggle_button_get_inconsistent): accessor for that
12169         (gtk_toggle_button_paint): draw inconsistent state (etched in?
12170         don't know what else to do)
12171
12172 2001-02-19  Hans Breuer <hans@breuer.org>
12173
12174         * gtk/gtk.def : updated exported symbols
12175
12176         * gtk/makefile.msc.in : updated
12177
12178         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
12179         a colormap, when invoked from testgtk::entry. I'm not sure where
12180         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
12181         avoids immediate crashing ...
12182
12183         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
12184         any objections ?
12185
12186         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
12187         0 parameter. At least msvc doesn't like macros with var args. 
12188         I simply removed the extra 0, was it a feature or a typo ?
12189
12190         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
12191         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
12192         because the value assignment to the internal struct wasn't working.
12193         I'm not absolutely sure. The problem could have been resolved by
12194         changing the "func" declartion in the struct, but was the pointer
12195         to the function pointer intended ?
12196
12197         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
12198
12199         * gdk/gdk.def : updated exported symbols
12200
12201         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
12202         only use SetDIBitsToDevice if there is a palette at the drawable
12203         and the image is GDK_VISUAL_PSEUDO_COLOR
12204
12205         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
12206
12207         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
12208
12209         * gdk/*/makefile.msc : updated
12210
12211 2001-02-19  Havoc Pennington  <hp@redhat.com>
12212
12213         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
12214         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
12215
12216         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
12217         (gdk_key_repeat_restore): nuke
12218
12219         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
12220         (gdk_init_check): no atexit func
12221
12222         * gdk/gdkrgb.h: mark some stuff deprecated
12223
12224         * gdk/gdkcolor.h: mark some stuff deprecated
12225         
12226         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
12227
12228         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
12229
12230 2001-02-16  Havoc Pennington  <hp@redhat.com>
12231
12232         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
12233         scroll steps.
12234
12235         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
12236         steps, and add Ctrl-arrow shortcuts for paging visually as with
12237         HScale, since Page Up and Page Down move logically.
12238
12239         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
12240         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
12241         
12242         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
12243         steps
12244         (gtk_range_scroll): handle the visual steps
12245
12246         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
12247         scroll steps
12248
12249         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
12250         steps, not the logical ones.
12251
12252         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
12253         (scroll_vertical): handle up/down steps
12254
12255 2001-02-19 Alexander Larsson  <alexl@redhat.com>
12256
12257         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
12258         Copy data and free data with free().
12259
12260         * gdk-pixbuf/gdk-pixbuf.c:
12261         * gdk-pixbuf/io-jpeg.c:
12262         * gdk-pixbuf/io-png.c:
12263         Use g_try_malloc/g_free instead malloc/free.
12264         
12265         * gdk-pixbuf/test-gdk-pixbuf.c:
12266         Must... initialize... gobject...
12267         
12268         * gdk-pixbuf/pixops/timescale.c:
12269         * gtk/gtkcalendar.c:
12270         Use g_malloc instead of malloc.
12271         
12272 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
12273
12274         * gtk/testgtkrc:
12275         Comment out property assignments, these don't work yet.
12276
12277 2001-02-17  Havoc Pennington  <hp@pobox.com>
12278
12279         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
12280         bit.
12281
12282 2001-02-17  Havoc Pennington  <hp@pobox.com>
12283
12284         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
12285         shadowed variables that had broken size request in some cases,
12286         leading to bogus tooltips (#50996)
12287
12288 2001-02-06  Jon K Hellan  <hellan@acm.org>
12289
12290         Implement fast browsing of tooltips, bug #50619
12291         
12292         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
12293         and last_popdown
12294         
12295         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
12296         use_sticky_delay and last_popdown.
12297         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
12298         time of popdown.
12299         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
12300         is NULL.
12301         (gtk_tooltips_recently_shown): New static function.  Return true
12302         if < sticky_delay has elapsed since last popdown.
12303         (gtk_tooltips_event_handler): Display window after sticky_delay
12304         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
12305         since last popdown.
12306         
12307 2001-02-17  Havoc Pennington  <hp@pobox.com>
12308
12309         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
12310         instead of (). #6394
12311
12312         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
12313         G_CONST_RETURN, make it return by reference, #50473
12314         
12315 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
12316
12317         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
12318         generated ENTER_NOTIFY event with 0, otherwise not explicitely
12319         setup fields contain garbage (e.g. subwindow, breaking
12320         gdk_drawable_ref() upon event copy).
12321         (gtk_menu_stop_navigating_submenu_cb): same here.
12322
12323         * gtk/gtklist.c (gtk_list_vertical_timeout): 
12324         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
12325         * gtk/gtkclist.c (vertical_timeout): 
12326         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
12327         default-zero-intialization for unions to memset(,0,), as unions are
12328         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
12329         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
12330
12331         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
12332         g_closure_sink() warning.
12333
12334         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
12335         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
12336         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
12337         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
12338         
12339 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
12340
12341         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
12342         gtk_*_store_get, and moved to GtkTreeModel.
12343
12344         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
12345
12346         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
12347
12348         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
12349
12350         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
12351         set the func.
12352
12353         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12354         freeze/thaw notify between setting all the properties for a cell.
12355
12356         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
12357
12358 2001-02-15  Havoc Pennington  <hp@redhat.com>
12359
12360         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
12361         the X coordinates so they're with respect to the line, rather than 
12362         with respect to the layout.
12363
12364         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
12365         Mallabone
12366
12367         * gtk/testgtk.c (create_range_controls): add vscale tests, 
12368         and inverted test
12369
12370         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
12371         #50806
12372
12373         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
12374
12375         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
12376         gtk_text_iter_is_end
12377
12378         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
12379         rename gtk_text_buffer_get_end_iter
12380
12381         * gtk/testgtk.c (create_labels): Add test for selectable
12382
12383         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
12384         the selection stuff. This code is kind of broken since it doesn't 
12385         use the theme engine.
12386
12387         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
12388         fix infinite loop and y offset problem
12389         (gdk_draw_layout_line_with_colors): fix foreground color handling
12390
12391         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
12392         that makes the label selectable.
12393         
12394         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
12395         layout when the style is set, since fonts etc. could have changed.      
12396
12397 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
12398
12399         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
12400
12401         * gtk/gtktreemodelsimple.[ch]: removed.
12402
12403 2001-02-16  Alexander Larsson  <alexl@redhat.com>
12404
12405         * gtk/gtktreemodelmapping.[ch]:
12406         New files. Implement GtkTreeModelMapping.
12407         
12408         * gtk/Makefile.am:
12409         Add gtktreemodelmapping.[ch].
12410         
12411         * gtk/gtk.h:
12412         Add gtktreemodelmapping.h
12413
12414         * gtk/treestoretest.c:
12415         Test the GtkTreeModelMapping
12416
12417 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
12418
12419         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
12420         have a demo, we might as well pass in real values.  Thanks to
12421         clahey for pointing this out.
12422
12423 2001-02-14  Havoc Pennington  <hp@pobox.com>
12424
12425         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
12426         "static" to a private function
12427         (gtk_image_menu_item_class_init): remove destroy handler,
12428         add "image" object property
12429
12430 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
12431
12432         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
12433         Add a shortcut if the window and the current clip_region doesn't
12434         overlap. This is needed when there are a lot of windows in a
12435         window. The layout test in testgtk is a good test.
12436
12437         * gdk/linux-fb/gdkwindow-fb.c:
12438         Whitespace fix.
12439
12440 2001-02-13  Sven Neumann  <sven@convergence.de>
12441
12442         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
12443
12444 2001-02-13  Alexander Larsson  <alexl@redhat.com>
12445
12446         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
12447         Don't reference last_cursor if it is null. Fixes crash when rotating
12448         the screen before having moved the mouse.
12449
12450         * gdk/linux-fb/gdkcc-fb.c: Zapp!
12451
12452         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
12453
12454         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
12455         when using 90 or 270 degrees rotation.
12456
12457 2001-02-12  Havoc Pennington  <hp@pobox.com>
12458
12459         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
12460         it always set the foreground, even if we were only using
12461         a stipple.
12462         (gdk_draw_layout_line_with_colors): new function, allow
12463         override colors
12464         (gdk_draw_layout_with_colors): new function, allow override
12465         colors
12466         (gdk_pango_layout_line_get_clip_region): function to get the clip
12467         region for a logical text range
12468         (gdk_pango_layout_get_clip_region): get the clip region for a
12469         logical text range
12470
12471         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
12472         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
12473         the right number of arguments.
12474
12475         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
12476         enhance the function to check that node data corresponds to a 
12477         view still belonging to the tree.
12478
12479         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
12480         GtkTreePath
12481         (gtk_tree_view_inserted): ditto
12482         (gtk_tree_view_child_toggled): ditto
12483
12484         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
12485         simplify this code.
12486
12487         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
12488         a PangoAttrList
12489
12490         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
12491
12492         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
12493
12494         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
12495         size in the size request 
12496         (gtk_menu_bar_size_allocate): consider toggle size here
12497
12498         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
12499         that displays a widget in the toggle slot
12500
12501         * gtk/testgtk.c: test GtkImageMenuItem
12502
12503         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
12504         
12505         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
12506         request and allocation
12507
12508         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
12509
12510         * gtk/gtkcheckmenuitem.c
12511         (gtk_check_menu_item_toggle_size_request): ditto
12512         
12513 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
12514
12515         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
12516         reference.
12517
12518         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
12519         and refuse to initialize GTK+ if they fail.
12520
12521 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
12522
12523         * configure.in: Add check for gtk-doc version.
12524
12525 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
12526
12527         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
12528         where the xpad/ypad was only being used on one side!
12529
12530 2001-02-11  Tor Lillqvist  <tml@iki.fi>
12531
12532         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
12533         function, copied from X11 version.
12534
12535         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
12536         DestroyCursor failures. The reason for the problem (despite the
12537         inconsistent messages from GetLastError()) was that
12538         DestroyCursor() cannot be called while a cursor is set in a
12539         window. Set the new cursor first and then destroy the old one.
12540         Thanks to jpe@archaeopteryx.com.
12541
12542         * gdk/win32/gdkcc-win32.c: Remove.
12543
12544         * gdk/win32/Makefile.am: Remove from here, too.
12545         
12546         * gdk/gdk.def
12547         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
12548
12549         * gtk/gtk.def
12550         * gtk/makefile.mingw.in: Updates.
12551
12552 2001-02-08  Havoc Pennington  <hp@redhat.com>
12553
12554         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
12555         add a widget to a bin that already has a child.
12556
12557         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
12558
12559         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
12560         
12561         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
12562
12563         * gdk/gdk.h: remove gdkcc.h
12564
12565         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
12566
12567         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
12568         GdkPixbuf, since the previous implementation was GdkColorContext
12569         dependent.
12570
12571         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
12572         
12573 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
12574
12575         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
12576         a sane value!
12577
12578 2001-02-08  Havoc Pennington  <hp@redhat.com>
12579
12580         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
12581         lighten them.
12582
12583 2001-02-08  Havoc Pennington  <hp@redhat.com>
12584
12585         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
12586         validation idle
12587
12588         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
12589         cell renderer
12590
12591         * demos/pixbuf-demo.c (timeout): remove deprecated
12592         gtk_widget_draw
12593
12594         * demos/testpixbuf-save.c (main): remove deprecated
12595         gtk_drawing_area_size
12596
12597         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
12598         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
12599         at the start of the allocation.
12600         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
12601         unsetup or NULL model.
12602
12603         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
12604         even/odd/sorted cells in the tree view.
12605
12606         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12607         bugfixes
12608
12609         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
12610         backgrounds with draw_flat_box using different detail for even/odd
12611         rows.
12612
12613         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
12614         row, so we can draw the alternating colors thing
12615
12616         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
12617         property from a synonym property, notify for the synonym.
12618         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
12619         (gtk_text_tag_get_property): Always return the font, even if
12620         all its fields aren't set
12621
12622         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
12623         store the attr list; it leaves us with no way to change attributes
12624         in _render according to the render flags, and no way to implement
12625         get_property. Instead store all the specific text attributes. 
12626         Separate whether an attribute is enabled from its value. Sync all
12627         properties with GtkTextTag, make them all consistent, etc.
12628
12629         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
12630         renderers can highlight the sort row/column     
12631
12632         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
12633         accessor functions to get values; this has the side effect of
12634         showing up which accessor functions were missing. Added those.
12635
12636         * gtk/gtktreeviewcolumn.h: Replace set_justification with
12637         set_alignment, to be consistent with GtkLabel, GtkMisc
12638
12639         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
12640         arrow.
12641
12642         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
12643
12644         * gtk/gtktreesortable.h: updates in here
12645
12646 2001-02-07  Sven Neumann  <sven@convergence.de>
12647
12648         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
12649         pango dimensions after painting the background. We used to draw
12650         gigantic flat boxes here.
12651
12652 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
12653
12654         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
12655         error introduced with earlier commit) (pointed out by
12656         Ollie Lho)
12657
12658 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
12659
12660         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
12661         which are no longer necessary.
12662
12663 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
12664
12665         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
12666
12667 2001-02-04  Tor Lillqvist  <tml@iki.fi>
12668
12669         * gdk/gdk.def
12670         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
12671         Provide dummy implementations.
12672
12673 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
12674
12675         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
12676
12677         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
12678         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
12679         deprecated this function.
12680
12681         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
12682         argument.
12683
12684 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
12685
12686         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
12687
12688 2001-02-03  Havoc Pennington  <hp@pobox.com>
12689
12690         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
12691         Mikael Hermansson with patch from Mikael (if there was a toggle
12692         start one after the first character in the range, this function
12693         was broken). Bug #50380
12694
12695 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
12696
12697         * configure.in: Remove confusing comment about X11.
12698
12699 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
12700
12701         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
12702         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
12703         
12704 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
12705
12706         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
12707         it breaks things on BSD. If you want to compile GTK+ with
12708         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
12709         when configuring, since GTK+ simply can't be "pure ANSI" 
12710         in the header files it uses. (#8170, Greg Hudson)
12711
12712 2001-02-02  Havoc Pennington  <hp@redhat.com>
12713
12714         * gtk/gtkwindow.c: docs
12715
12716         * gtk/gtkwidget.c: docs
12717         (gtk_widget_set_colormap): add a reference to the colormap
12718         (gtk_widget_get_default_colormap): add a reference to the colormap
12719
12720         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
12721
12722         * gtk/gtktextiter.c: docs
12723
12724         * gtk/gtkmain.c (gtk_propagate_event): docs
12725
12726         * gtk/gtkpaned.c (gtk_paned_get_position): docs
12727         (gtk_paned_set_position): docs
12728
12729         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
12730         sort interface, no implementation yet.
12731
12732         * demos/testpixbuf.c (new_testrgb_window): replace
12733         gtk_drawing_area_size() with gtk_widget_set_usize()
12734
12735         * demos/testpixbuf-drawable.c (main): ditto
12736         
12737         * gtk/testgtk.c: remove use of GtkStatusbarMsg
12738
12739         * gtk/gtktextbuffer.c: docs
12740
12741         * gtk/gtkstock.c: docs
12742
12743         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
12744
12745         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
12746
12747         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
12748         
12749         * gtk/gtkimage.c: add some docs in here
12750         (gtk_image_size_request): change name of
12751         gtk_widget_render_stock_icon
12752         (gtk_image_get_icon_set): don't dup returned string
12753         (gtk_image_get_icon_set): don't dup returned string
12754
12755         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
12756         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
12757         and gtkiconfactory.h functions
12758
12759         * gtk/gtkiconfactory.c: add some docs in here
12760
12761         * gtk/gtkmain.c (gtk_get_default_language): document
12762         (gtk_get_current_event): document
12763         (gtk_get_current_event_state): document
12764         (gtk_get_event_widget): document
12765
12766         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
12767
12768         * gtk/gtkcontainer.c: Add some documentation
12769         (gtk_container_add): give a more explanatory warning on adding an
12770         already-parented widget, this is kind of a FAQ and also a common
12771         typo that's easier to debug with a nice warning 
12772
12773         * gtk/gtkcellrenderertoggle.c
12774         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
12775         adding this, it's useless
12776         (gtk_cell_renderer_toggle_set_active): remove
12777         (gtk_cell_renderer_toggle_get_radio): add
12778
12779         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
12780         the NULL cell renderer, that doesn't make any sense to me. 
12781
12782         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
12783         demo code should never use deprecated features.
12784
12785         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
12786         code should never use deprecated features.
12787
12788         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
12789         gtk_widget_queue_clear_area deprecated
12790
12791         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
12792         deprecated
12793
12794         * gtk/gtklabel.h: mark gtk_label_get() deprecated
12795
12796         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
12797         a GdkImage deprecated, replaced by new consistently-named
12798         functions       
12799
12800         * gtk/gtkmain.h: Mark gtk_exit() deprecated
12801
12802         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
12803
12804         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
12805         deprecated
12806
12807         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
12808         so it won't appear in docs and confuse people.
12809
12810         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
12811
12812         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
12813         macros deprecated. (can't mark the type itself deprecated, since
12814         GtkProgressBar is not deprecated and we need the type decl to use
12815         GtkProgressBar)
12816
12817         * gtk/gtkpixmap.h: Mark deprecated
12818
12819         * gtk/gtkoldeditable.h: Mark deprecated
12820
12821         * gtk/gtklist.h: Mark deprecated
12822
12823         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
12824         for anything anymore.
12825
12826         * gtk/gtkctree.h: Mark deprecated
12827
12828         * gtk/gtkclist.h: Mark deprecated
12829
12830         * gtk/gtkpreview.h: Mark deprecated
12831
12832         * gtk/gtkpacker.h: Mark deprecated
12833
12834         * gtk/gtktipsquery.h: Mark deprecated
12835
12836         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
12837
12838         * gtk/gtkvruler.h: Add comment that it will move out of GTK
12839
12840         * gtk/gtkhruler.h: Add comment that it will move out of GTK
12841
12842         * gtk/gtkruler.h: Add comment that it will move out of GTK
12843
12844         * gtk/gtkgamma.h: Add comment that it will move out of GTK
12845
12846         * gtk/gtkcurve.h: Add comment that it will move out of GTK
12847
12848 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
12849
12850         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
12851         gdk_colormap_sync private since it was never exported
12852         in a header file.
12853
12854         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
12855         colormap->colors[] for StaticGray, StaticColor colormaps.
12856
12857         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
12858         was being used as if it was image->bits_per_pixel.
12859
12860         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
12861         for the image in the GdkImage structure since it isn't
12862         reconstructable, and we need it to handle packed types
12863
12864         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
12865         the assumption that on Win32 image->bits_per_pixel == image->depth,
12866         always.
12867
12868         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
12869
12870         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
12871         warning message if no converter can be found. 
12872
12873 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
12874
12875         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
12876         chars to isupper() / tolower(). (#567)
12877
12878         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
12879         to clear up 64-bit warnings. (#567)
12880
12881 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
12882
12883         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
12884         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
12885
12886         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
12887         since some people set $(libdir) separately. (#1290, David Kaelbling)
12888
12889 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
12890
12891         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
12892         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
12893         MAXPATHLEN, but the code here depends on a fixed value.)
12894         (#4524)
12895
12896 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
12897
12898         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
12899         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
12900
12901 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
12902
12903         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
12904         viewable there is no way that moving the node will cause the 
12905         focus row to become not viewable, so omit check on the visibility
12906         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
12907
12908 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
12909
12910         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
12911         selection before inserting new text.
12912
12913 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
12914
12915         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
12916         Make the sensitivity of the reparented child track that of
12917         the original parent menu item. (#34218, David Hodson)
12918
12919         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
12920         the case where the current item is destroyed properly.
12921
12922         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
12923         some edge cases with child-less menuitems.
12924         
12925 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
12926
12927         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
12928         key pop down window. (#12074, Jon K Hellan)
12929
12930 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
12931
12932         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
12933         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
12934         The solution here isn't perfect - you get an extraneous
12935         emission of "toggle", which could conceivably confuse an app,
12936         but better than the current situation. LXR search seems to
12937         indicate that no apps in GNOME CVS connect to "toggle".
12938
12939 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
12940
12941         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
12942         gtk_public_h_sources to directly here to avoid warning when
12943         building srcdir != builddir. (#9656)
12944
12945 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
12946
12947         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
12948         handlers in gtkrange.c return the proper values (TRUE == handled)
12949         (#10316).
12950
12951         This is just the tip of the iceberg, but gtkrange.c is the
12952         most common place where the propagation is problematical,
12953         and also a place where it is almost certainly safe to change
12954         this in the stable branch.
12955
12956         (You don't want right click popups on a range control or anything...)
12957
12958 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
12959
12960         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
12961         area on focus out, even if a background pixmap isn't set.
12962         (#13941)
12963         
12964 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
12965
12966         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
12967         to deal with setting the shape properly when scrolling arrows are
12968         turned on, but not visible because there is sufficient space.
12969         (#13432)
12970
12971 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
12972
12973         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
12974         items with submenus, destroy the item along with the submenu.
12975         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
12976         properly.
12977
12978         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
12979         later.
12980
12981 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
12982
12983         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
12984         the focus widget sometimes wasn't drawn with the default if there
12985         was no default widget.
12986
12987         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
12988         unreference pixmaps. 
12989
12990         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
12991         for some extra safety.
12992
12993 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
12994
12995         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
12996         the text of a cell to the old pointer value better, by
12997         copying the new text before freeing the old text. Some code
12998         cleanup. (#8079, Karl Nelson)
12999
13000 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
13001
13002         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
13003         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
13004
13005 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
13006
13007         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
13008         item from a menu, check to see if it matches 
13009         menu->old_active_menu_item, and if so, unref and clear
13010         old_active_menu_item (Patch from Pavel Cisler)
13011
13012         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
13013         menu_shell->active_menu_item, if it is the child being
13014         removed. (Patch based on that of Gene Ragan, #50337)
13015
13016 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
13017
13018         * gdk/linux-fb/gdkselection-fb.c: 
13019         * gdk/linux-fb/gdkcolor-fb.c: 
13020         * gdk/linux-fb/gdkdrawable-fb2.c: 
13021         * gdk/linux-fb/gdkfont-fb.c: 
13022         * gdk/linux-fb/gdkim-fb.c: 
13023         * gdk/linux-fb/gdkinput.c: 
13024         * gdk/linux-fb/gdkkeyboard-fb.c: 
13025         * gdk/linux-fb/gdkmain-fb.c: 
13026         * gdk/linux-fb/gdkrender-fb.c: 
13027         A bunch of whitespace cleanup.
13028         
13029 2001-01-30  Havoc Pennington  <hp@pobox.com>
13030
13031         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
13032         #ifdef GTK_ENABLE_BROKEN.
13033
13034         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
13035         GTK_ENABLE_BROKEN just before including the broken headers.
13036         
13037         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
13038         deprecated types registered.
13039
13040         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
13041         we have to test the broken stuff.
13042
13043         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
13044         
13045 2001-01-30  Havoc Pennington  <hp@redhat.com>
13046
13047         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
13048         here where prev pointer was set to the wrong thing
13049
13050         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
13051         (gtk_tree_path_is_descendant): new function
13052
13053         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
13054         cached length
13055         (gtk_list_store_get_iter): don't modify iter if we can't get the
13056         path.
13057
13058         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
13059         
13060         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
13061         GtkTreeDragDest
13062
13063         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
13064         was causing segfault
13065
13066         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
13067         pointer to NULL
13068
13069         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
13070
13071         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
13072         on returning FALSE
13073         (gtk_list_store_iter_children): ditto
13074         (gtk_list_store_iter_nth_child): ditto
13075         (gtk_list_store_iter_nth_child): ditto
13076         (gtk_list_store_iter_parent): ditto
13077
13078         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
13079         on iter->user_data != NULL instead of silently accepting it.
13080         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
13081         we are returning TRUE.
13082         (gtk_tree_store_iter_children): ditto
13083         (gtk_tree_store_iter_nth_child): ditto
13084         (gtk_tree_store_iter_parent): ditto
13085         (gtk_tree_store_insert): remove handling of parent->user_data ==
13086         NULL, replace with parent == NULL       
13087
13088         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
13089         and a comment explaining things
13090
13091         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
13092         interface support to GtkTreeStore.
13093
13094         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
13095         FALSE if no prev, fix
13096
13097         * gtk/gtktreeview.c (set_source_row): use a row reference
13098         (set_dest_row): use a row reference
13099
13100 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
13101
13102         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
13103         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
13104         (gtk_tree_selection_select_iter): The same as above.
13105
13106 2001-01-26  Havoc Pennington  <hp@redhat.com>
13107
13108         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
13109         which holds a handle to a specific row (particular set of values
13110         in the model, i.e. pointer-identity row).
13111
13112         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
13113         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
13114         Still need to use it for the src/dest row saved on the drag context.
13115
13116 2001-01-26  Havoc Pennington  <hp@redhat.com>
13117
13118         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
13119
13120         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
13121         not offset by TREE_VIEW_HEADER_HEIGHT
13122         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
13123         TREE_VIEW_HEADER_HEIGHT
13124
13125         * configure.in (included_loaders): for me, --with-included-loaders
13126         generates the error "the specified loader yes does not exist",
13127         i.e. the arg defaults to "yes", so change test for value ""
13128         to test for value "yes", and include all loaders in that case.
13129
13130         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
13131
13132         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
13133         handle TREE_VIEW_VERTICAL_SEPARATOR
13134         (gtk_tree_view_bin_expose): fix to consider the row offset as
13135         pointing halfway into vertical separator.       
13136         (gtk_tree_view_draw_node_focus_rect): ditto
13137
13138         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
13139         --gtk-debug=updates, which causes gdk_window_set_debug_updates
13140         (TRUE) to be called.
13141
13142         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
13143         debug mode where the invalid region is colored in on invalidate,
13144         so you can see the flicker and know whether your redraw code is 
13145         doing a good job.
13146
13147         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
13148         tree window coordinates (clip rect is in tree window coords)
13149
13150         * gtk/Makefile.am: add gtktreednd.[hc]
13151
13152         * gtk/gtkliststore.c: implement gtktreednd interfaces.
13153
13154         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
13155         drag-and-drop data operations on a model (so we can set up tree
13156         drag-and-drop automatically)
13157
13158         * gtk/testgtk.c: Add a window to change sensitivity in the
13159         GtkLabel test; add a way to change the entry frame in GtkEntry
13160         test
13161
13162         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
13163         (gtk_entry_get_has_frame): new functions to remove the frame
13164         around an entry
13165         (gtk_entry_size_request): shrink requisition if no frame
13166         (gtk_entry_draw_focus): don't draw frame if no frame
13167
13168         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
13169         checks inside a cell renderer
13170         (gtk_default_draw_option): ditto for options
13171
13172         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
13173         children from the alignment, not the button
13174         (gtk_tree_view_column_init): ref/sink the column, to emulate
13175         GObject refcounting.
13176
13177         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
13178         
13179         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
13180         Use theme functions to draw the toggles 
13181
13182         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
13183
13184         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
13185         GdkPangoAttrEmbossed to use in rendering insensitive text
13186
13187         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
13188
13189         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
13190         using new GDK features
13191         
13192 2001-01-24  Alexander Larsson  <alexl@redhat.com>
13193
13194         * gtk/gtkimage.c:
13195         Splitted gtk_image_clear into gtk_image_clear() and
13196         gtk_image_reset(). Call gtk_image_clear() in ::destroy
13197         to avoid leaks.
13198
13199         * gtk/gtklabel.c (set_markup):
13200         Don't leak text.
13201
13202         * gtk/gtktextlayout.c:
13203         Always free display->shaped_objects.
13204
13205         * gtk/testgtk.c (create_clist):
13206         Don't leak custom style.
13207
13208 2001-01-23  Alexander Larsson  <alexl@redhat.com>
13209
13210         * gtk/gtkcolorsel.c (grab_color_at_mouse):
13211         Don't leak image. Simplify using gdk_colormap_query_color().
13212         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
13213
13214         * linux-fb/gdkcolor-fb.c:
13215         Implemented gdk_colormap_query_color.
13216
13217 2001-01-23  Alexander Larsson  <alexl@redhat.com>
13218
13219         * linux-fb/gdkcursor-fb.c:
13220         Don't leak built-in cursors.
13221
13222         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
13223         Don't leak tmp_points.
13224
13225         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
13226         Don't modify desc. Don't leak font if the PangoFont
13227         isn't found.
13228         
13229         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
13230         Free dash_list.
13231
13232         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
13233         Don't leak string.
13234         
13235 2001-01-20  Havoc Pennington  <hp@pobox.com>
13236
13237         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
13238         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
13239         me, matches Pango
13240
13241 2001-01-22  Havoc Pennington  <hp@redhat.com>
13242
13243         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
13244
13245         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
13246
13247         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
13248         Remove, move back to gdk-pixbuf
13249
13250         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
13251         to all the word functions
13252
13253         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
13254         before doing anything on NULL layout or if we don't have the focus
13255
13256         * gtk/testtext.c (fill_example_buffer): "justification"
13257
13258         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
13259         to be called "justification" not "justify"
13260
13261         * demos/gtk-demo/textview.c (create_tags): "justification"
13262         
13263         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
13264
13265 2001-01-22  Alexander Larsson  <alexl@redhat.com>
13266
13267         * gdk/gdkwindow.c (gdk_window_invalidate_region):
13268         Don't leak visible_region. Use visible_region instead of region.
13269         
13270         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
13271         Don't do extra gdk_drawable_ref(). This is not X.
13272         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
13273         gdk_fb_focused_window is ref:ed.
13274         (gdk_fb_window_send_crossing_events): Watch out for destroyed
13275         windows.
13276
13277 2001-01-22  Alexander Larsson  <alexl@redhat.com>
13278
13279         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
13280         Don't leak the PangoFontDescriptor.
13281
13282 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
13283
13284         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
13285         when not realized.
13286         (gtk_tree_view_scroll_to_cell): Make work when not realized.
13287         (gtk_tree_view_realize): add scroll_to support
13288         (gtk_tree_view_finalize): add a finalize method.  Populate.
13289         (gtk_tree_view_insert_column): ref and sink the column.
13290         (gtk_tree_view_append_column): ref and sink the column.
13291         (gtk_tree_view_queue_draw_node): New function to handle redrawing
13292         individual nodes.  Should make the code much more efficient, if
13293         actually used.
13294
13295 2001-01-19  Havoc Pennington  <hp@redhat.com>
13296
13297         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
13298         byte_offset variable was being used to mean both "offset into
13299         layout" and "offset into buffer line" which was no longer true
13300         with addition of preedit string; fix
13301
13302 2001-01-19  Havoc Pennington  <hp@redhat.com>
13303
13304         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
13305
13306         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
13307         function
13308
13309         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
13310         implement
13311
13312         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
13313         scroll_to_cell, matches TextView scroll functions better
13314         (gtk_tree_view_tree_to_widget_coords): new function
13315         (gtk_tree_view_widget_to_tree_coords): new function
13316         (gtk_tree_view_get_visible_rect): new function
13317         (gtk_tree_view_get_path_at_pos): accept negative coordinates
13318         (gtk_tree_view_draw_node_focus_rect): new function moved from
13319         draw_focus, also, use width of bin_window as width of the focus
13320         rect
13321         (gtk_tree_view_expand_row): fix bug where it didn't recognize
13322         already-expanded rows
13323         (gtk_tree_view_get_cell_rect): new function
13324         (gtk_tree_view_get_path_at_pos): return the click position
13325         relative to the passed-in cell
13326         (gtk_tree_view_set_expander_column): new function
13327
13328         * configure.in: remove gtk-config-2.0 chmod
13329
13330         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
13331         and properly handle drags with targets we don't understand
13332         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
13333         scrolling anyway
13334         (gtk_text_view_drag_drop): stop scrolling here though, and set the
13335         mark invisible
13336
13337         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
13338         function
13339         (gtk_drag_dest_get_target_list): new function
13340         (gtk_drag_dest_set_target_list): new function
13341         
13342         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
13343
13344         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
13345         related to drag-and-drop
13346
13347 2001-01-19  Alexander Larsson  <alexl@redhat.com>
13348
13349         * gdk/linux-fb/gdkprivate-fb.h:
13350         Define EMULATE_GDKFONT.
13351         Add extra pango_font stuff to GfkFontPrivate.
13352         
13353         * gdk/linux-fb/gdkdrawable-fb2.c:
13354         * gdk/linux-fb/gdkfont-fb.c:
13355         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
13356         emulation using PangoFont.
13357
13358 2001-01-17  Havoc Pennington  <hp@pobox.com>
13359
13360         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
13361         all the non-deprecated set_foo functions. Added missing object
13362         properties, and added g_object_notify() to setters. 
13363         Wrote docs.
13364         
13365 2001-01-18  Tor Lillqvist  <tml@iki.fi>
13366
13367         * gtk/gtkmain.c
13368         * gtk/gtkrc.c: (Win32) Use the new
13369         g_win32_get_package_installation_(sub)directory() functions.
13370
13371         * config.h.win32.in: New file.
13372         
13373         * config.h.win32: Removed.
13374
13375         * configure.in: Output config.h.win32.
13376
13377         * Makefile.am: Add it to EXTRA_DIST.
13378
13379         * gtk/gtk.def: Update.
13380
13381 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
13382
13383         * gtk/gtklabel.c (gtk_label_size_request): Set the
13384         attributes onto the PangoLayout even if they are newly
13385         created from label->pattern.
13386
13387 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
13388
13389         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
13390
13391         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
13392         structures in functions. Fixes bug where gtk_dataset_*
13393         was accidentally still being used in one place, causing
13394         every dest side event to be treated independently.
13395
13396         * gtk/gtkdnd.c: Remove last vestages of handling
13397         ::draw (fixes warning)
13398         
13399         * gtk/gtkentry.[ch]: Add drag and drop support.
13400
13401         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
13402         new function gtk_check_drag_threshhold() for checking
13403         to check if (dx,dy) has exceeded the threshhold for starting
13404         a drag and use it everywhere.
13405
13406 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
13407
13408         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
13409         add -I{includedir}/gtk-2.0.
13410
13411         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
13412         gdk/gdk-pixbuf.h: Doc fixups.
13413         
13414         * gtk/gtkobject.h: Remove trailing , from enum
13415
13416 2001-01-17 Alexander Larsson <alexl@redhat.com> 
13417
13418         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
13419         Doh! Mixed up x and y.
13420
13421         * gdk/linux-fb/gdkglobals-fb.c:
13422         Removed gdk_fb_pointer_grab_window_events,
13423         added _gdk_fb_pointer_grab_owner_events and
13424         _gdk_fb_keyboard_grab_owner_events.
13425
13426         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
13427         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
13428         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
13429         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
13430         Send crossing events after ungrab finished.
13431         (gdk_keyboard_grab): Set ..._owner_events
13432         (type_masks): Move out of function.
13433         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
13434         gdk_fb_keyboard_event_window): New functions, return the
13435         window an event should be targeted at. Handles grabs and
13436         event propagation. Can return NULL.
13437         (gdk_event_make): Remove event_mask checking. Now always
13438         returns an event.
13439                 
13440         * gdk/linux-fb/gdkkeyboard-fb.c:
13441         * gdk/linux-fb/gdkproperty-fb.c:
13442         * gdk/linux-fb/gdkselection-fb.c:
13443         Use new event_window/gdk_event_make() behaviour.
13444         
13445         * gdk/linux-fb/gdkmouse-fb.c:
13446         Use new event_window/gdk_event_make() behaviour.
13447         Only send motion events if in the same window.
13448         If grabbed, use cursor from window if sibling of grabbed
13449         window, and cursor from grabbed window otherwise.
13450
13451         * gdk/linux-fb/gdkprivate-fb.h:
13452         Update gdk_fb_window_send_crossing_events, gdk_event_make
13453         and grab varaible declarations. Add gdk_fb_*_event_window().
13454
13455         * gdk/linux-fb/gdkwindow-fb.c:
13456         Use new event_window/gdk_event_make() behaviour.
13457         Keep correct track of focus window.
13458         (gdk_window_set_events): Set all specific button motion masks
13459         if GDK_BUTTON_MOTION_MASK set.
13460
13461         * gtk/gtkdnd.c (gtk_drag_update):
13462         Free info->last_event if gdk_drag_motion returned FALSE.
13463
13464 2001-01-16  Tor Lillqvist  <tml@iki.fi>
13465
13466         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
13467         Eliminate redraws when input-only windows are shown or
13468         hidden. Thanks to jpe@archaeopteryx.com.
13469
13470 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
13471
13472         * docs/faq/gtk-faq.sgml: FAQ update:
13473           - Update to bugzilla
13474           - Add GTK+ and security/SUID/SGID
13475           - Add DnD question
13476
13477 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
13478
13479         * gdk/linux-fb/gdkdnd-fb.c:
13480         Some cleanups.
13481         
13482 2001-01-15  Havoc Pennington  <hp@pobox.com>
13483
13484         * tests/testtreeview.c: add test stuff for CellRendererToggle
13485
13486         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
13487         accessor
13488
13489         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
13490         only toggle on button press (would do release like GtkButton, but
13491         we'd need implicit grab code for treeview cells)
13492
13493 2001-01-16  Tor Lillqvist  <tml@iki.fi>
13494
13495         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
13496
13497         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
13498         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
13499
13500         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
13501         to g_{locale,filename}_{to,from}_utf8 to match current API.
13502
13503         * gtk/makefile.msc.in (gtk_OBJECTS)
13504         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
13505
13506         * gtk/gtk.def: Update.
13507
13508 2001-01-15  Tor Lillqvist  <tml@iki.fi>
13509
13510         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
13511         implementaion that more closely mimics the events that an X server
13512         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
13513         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
13514         with nested preview widgets, for instance, more responsive when
13515         you move the mouse quickly into them.
13516         (find_window_for_pointer_event): Make it actually compile.
13517         (gdk_event_translate): Set send_event to the value of
13518         InSendMessage (). This doesn't really mean the same as X11's
13519         send_event flag, but is close enough, says jpe@archaeopteryx.com
13520
13521 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13522
13523         * gdk/linux-fb/gdkdnd-fb.c:
13524         Implemented drag and drop.
13525         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
13526         when it tries to free and then copy the same event (info->last_event).
13527         I am not sure about why this happens, but will continue looking.
13528
13529 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13530
13531         * gdk/linux-fb/gdkwindow-fb.c:
13532         Use gdk_window_invalidate_rect instead of
13533         gdk_window_invalidate_rect_clear to minimise flashing.
13534         When hiding windows you need to clear the root window though.
13535
13536 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13537
13538         * gdk/linux-fb/gdkdrawable-fb2.c:
13539         For optization, add an full_shapes argument to gdk_fb_clip_region.
13540         If this is false, only the cliprects of the shapes are used.
13541
13542         * gdk/linux-fb/gdkprivate-fb.h:
13543         Export gdk_fb_window_peek_shape.
13544         Add full_shapes to gdk_fb_clip_region.
13545
13546         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
13547         When moving a window, don't clear everything under the it, just the
13548         root window. Makes stuff faster and flash less.
13549         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
13550         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
13551         offset of the shape.
13552         
13553
13554 2001-01-12  Havoc Pennington  <hp@redhat.com>
13555
13556         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
13557         current invalid region, fixes redraw bug while scrolling the 
13558         text widget
13559
13560         * gtk/gtktextview.c, gtk/gtktextview.h:
13561         Rearrange the scrolling/validation/etc. code in a major way, 
13562         so it seems to make sense to me. Probably isn't genuinely that
13563         much better, but...
13564
13565         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
13566         notifies
13567
13568         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
13569
13570 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
13571
13572         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
13573         Hide mouse pointer while rotation. Show it afterwards.
13574
13575 2001-01-12  Alexander Larsson  <alexl@redhat.com>
13576
13577         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
13578         windows in consideration when generating clip region.
13579
13580         * gdk/linux-fb/gdkfb.h:
13581         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
13582
13583         * gdk/linux-fb/gdkprivate-fb.h:
13584         Add shape to GdkWindowFBDatat.
13585         exported gdk_fb_window_get_abs_shape().
13586         removed gdk_fb_draw_lines declaration.
13587
13588         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
13589         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
13590         send focus changes when there is a grabbed window.
13591         (gdk_window_get_pointer): Handle shaped windows.
13592         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
13593         (gdk_fb_window_peek_shape): Returns the shape for a window,
13594         handles GDK_FB_USE_CHILD_SHAPE.
13595         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
13596         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
13597         (gdk_window_shape_combine_mask): Implement.
13598
13599         * gtk/gtkwindow-decorate.c:
13600         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
13601         setting the shape of a window makes the window transparent.
13602
13603 2001-01-11  Havoc Pennington  <hp@redhat.com>
13604
13605         * gtk/gtktreemodelsimple.h: Oops, broke some macros
13606
13607 2001-01-10  Havoc Pennington  <hp@redhat.com>
13608
13609         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
13610         add this function, bug 40251
13611
13612         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
13613         of type macro   
13614
13615 2001-01-11  Alexander Larsson  <alexl@redhat.com>
13616
13617         * acconfig.h:
13618         Added ENABLE_SHADOW_FB
13619
13620         * configure.in:
13621         Added --disable-shadowfb
13622
13623         * gdk/linux-fb/gdkcursor-fb.c:
13624         Update shadowfb when updating cursor
13625
13626         * gdk/linux-fb/gdkdrawable-fb2.c:
13627         Added wrappers for shadowfb that calls  the normal drawable
13628         methods, but calls gdk_shadow_fb_update(bounding box) when
13629         GdkWindows are drawed to.
13630         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
13631         which also returns the bounding box.
13632
13633         * gdk/linux-fb/gdkfb.h:
13634         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
13635
13636         * gdk/linux-fb/gdkgeometry-fb.c:
13637         Update shadowfb when scrolling window.
13638
13639         * gdk/linux-fb/gdkglobals-fb.c:
13640         Add _gdk_fb_screen_angle.
13641         
13642         * gdk/linux-fb/gdkkeyboard-fb.c:
13643         Test code for screen rotation. Shift-F2 in the xlate driver
13644         rotates the screen.
13645
13646         * gdk/linux-fb/gdkmain-fb.c:
13647         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
13648
13649         * gdk/linux-fb/gdkmouse-fb.c:
13650         Use fb_width/height instead of modeinfo.xres/yres.
13651
13652         * gdk/linux-fb/gdkprivate-fb.h:
13653         Added fb_men, fb_width, fb_height & fb_stride. When using
13654         shadow fb these can differ from the framebuffer stuff.
13655         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
13656         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
13657         _gdk_fb_screen_angle. Removed CM, RP.
13658
13659         * gdk/linux-fb/gdkrender-fb.c:
13660         Added code for shadowfb handling and screen rotation using
13661         shadowfb.
13662
13663         * gdk/linux-fb/gdkwindow-fb.c:
13664         Use fb_mem, fb_stride, fb_width, fb_height.
13665         Added recompute_rowstride to reset the rowstride of all windows.
13666         Added gdk_fb_recompute_all() which recomputes rootwindow size,
13667         window abs positions and window rowstrides. Usefull when the
13668         rotation has changed.
13669
13670 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
13671
13672         * docs/faq/gtk-faq.sgml: update to make web site updating easier
13673
13674 2001-01-10  Havoc Pennington  <hp@redhat.com>
13675
13676         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
13677         where sibling == iter
13678         (gtk_tree_store_insert_after): handle sibling == iter
13679         (gtk_tree_store_prepend): remove stamp checks
13680         (gtk_tree_store_insert_before): ditto
13681         (gtk_tree_store_append): ditto
13682         (gtk_tree_store_get_path): ditto
13683         (gtk_tree_store_get_value): ditto
13684         (gtk_tree_store_iter_has_child): ditto
13685         (gtk_tree_store_iter_n_children): ditto
13686         (gtk_tree_store_iter_nth_child): ditto
13687         (gtk_tree_store_insert_after): ditto
13688         (gtk_tree_store_is_ancestor): ditto
13689         (gtk_tree_store_iter_depth): ditto
13690         (gtk_tree_store_insert_before): assert that sibling's parent is
13691         the same as the passed-in parent
13692         (gtk_tree_store_insert_after): assert that sibling's parent is
13693         the same as the passed-in parent
13694
13695         
13696         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
13697         function to get the first iterator in a model
13698         
13699         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
13700         conventionally the "root" in this sense is just NULL afaict.
13701
13702         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
13703         where sibling == iter
13704         (gtk_list_store_insert_after): handle case where sibling == iter
13705
13706         * tests/testtreeview.c (run_automated_tests): fairly lame basic
13707         automated tests for ListStore, TreeStore
13708
13709         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
13710         (gtk_list_store_insert): update tail pointer, and fix it to work
13711         (gtk_list_store_insert_before): update tail pointer, and fix it to work
13712         (gtk_list_store_append): use tail to be faster
13713         (gtk_list_store_prepend): fix it, update tail pointer
13714         (gtk_list_store_insert_after): fix it, update tail pointer
13715
13716         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
13717         the list
13718
13719 2001-01-09  Havoc Pennington  <hp@redhat.com>
13720
13721         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
13722         is NULL due to a pending resize
13723
13724         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
13725         column width to values less than 1
13726
13727         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
13728         width to be between min/max width, and still set the width 
13729         even if autosize is turned on, so the tree view can use this 
13730         function in order to autosize.
13731         (gtk_tree_view_column_init): set initial width to 1 not 0
13732
13733         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
13734         setter function to modify column width, so we get notification
13735         (gtk_tree_view_insert_iter_height): ditto
13736         (gtk_tree_view_calc_size): ditto
13737         (gtk_tree_view_check_dirty): ditto
13738
13739         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
13740         properties to change all the interesting attributes of the tree
13741         view column.
13742         (gtk_tree_view_column_set_header_clickable): rename set_clickable
13743         (gtk_tree_view_column_get_clickable): add
13744         (gtk_tree_view_column_set_cell_renderer): don't unset the current
13745         attributes; assume a cell renderer with equivalent object
13746         properties has been swapped in. Do g_object_notify().
13747         (gtk_tree_view_column_set_visible): g_object_notify
13748         (gtk_tree_view_column_get_sizing): rename from get_col_type
13749         (gtk_tree_view_column_set_sizing): g_object_notify
13750         (gtk_tree_view_column_set_width): add g_object_notify
13751         (gtk_tree_view_column_set_min_width): ditto
13752         (gtk_tree_view_column_set_max_width): ditto
13753         (gtk_tree_view_column_set_title): ditto
13754         (gtk_tree_view_column_set_clickable): ditto
13755         (gtk_tree_view_column_set_widget): ditto
13756         (gtk_tree_view_column_set_justification): ditto
13757
13758 2001-01-09  Havoc Pennington  <hp@redhat.com>
13759
13760         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
13761         there are no rows in the model
13762
13763         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
13764         NULL, then return the start of the list
13765
13766         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
13767         if we can't get any rows from an empty model 
13768
13769         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
13770         extraneous * after function pointer typedef usage
13771
13772         * Makefile.am: don't specify full path to cp and rm
13773
13774         * gtk/gtkcellrenderertextpixbuf.c
13775         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
13776         NULL before dereferencing, fixes a segfault that happened from
13777         time to time
13778
13779         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
13780         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
13781         and reindent the function
13782         (gtk_cell_renderer_pixbuf_get_size): indentation
13783
13784         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
13785         we quit it
13786         (gtk_dialog_add_buttons_valist): add g_return_if_fail
13787         (gtk_dialog_set_default_response): New function, to set default
13788         button
13789         (gtk_dialog_set_response_sensitive): New function, to set 
13790         sensitivity of buttons
13791
13792         * gtk/gtkcellrendererpixbuf.c
13793         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
13794         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
13795
13796         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
13797         handle any G_TYPE_OBJECT subclass, not just the base class, and 
13798         also boxed types.
13799         (_gtk_tree_data_list_value_to_node): ditto
13800
13801         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
13802         --gtk-debug=tree
13803
13804         * gtk/gtkmain.c: add GTK_DEBUG_TREE
13805
13806         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
13807
13808 2001-01-09  Tor Lillqvist  <tml@iki.fi>
13809
13810         * gdk/win32/gdkevents-win32.c: Implement better mouse
13811         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
13812         (find_window_for_pointer_event): New function.
13813         (gdk_event_translate): Use it when handling mouse events.
13814
13815 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
13816
13817         * configure.in:
13818         Added --with-included-loaders option
13819
13820         * gdk-pixbuf/Makefile.am:
13821         * gdk-pixbuf/gdk-pixbuf-io.c:
13822         Add support for including selected gdk-pixbuf loaders only.
13823
13824         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
13825         gtk_window_set_has_frame):
13826         Added inline documentation.
13827
13828         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
13829         * docs/reference/gdk/tmpl/windows.sgml:
13830         Added inline documentation.
13831
13832 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
13833
13834         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
13835         realizing buttons that have already been realized.
13836
13837 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
13838
13839         * tests/testtreeview.c (main): Show menu items before adding to
13840         option menu.
13841
13842         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
13843         around if we kill them.
13844
13845         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13846         Return if we pass in a NULL model.
13847
13848 2001-01-08  Havoc Pennington  <hp@redhat.com>
13849
13850         * tests/testtreeview.c: hack on this some
13851
13852         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
13853         gtk_tree_store_set_valist, v is for arrays, valist for varargs
13854         list
13855         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
13856
13857         * gtk/gtkliststore.h: Add varargs set() and get() convenience
13858         functions
13859
13860 2001-01-08  Alexander Larsson  <alexl@redhat.com>
13861
13862         * gtk/gtkwindow-decorate.[hc]:
13863         * gtk/Makefile.am:
13864         New files. Contains an implementation of a minimal WM for
13865         linux-fb.
13866
13867         * gtk/gtkwindow.h:
13868         Add the possibility for GtkWindows to specify a frame. This
13869         is used for the window decoration code, but could concievably
13870         be used for X programs too (xmms style windows).
13871         GtkWindow->frame is the toplevel window if the window is framed.
13872         The signal frame_event gets all events that are targeted to
13873         GtkWindow->frame.
13874         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
13875         
13876         * gtk/gtkwindow.c:
13877         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
13878         Call out to gtkwindow-decorate.c for WM support in linx-fb.
13879
13880 2001-01-08  Alexander Larsson  <alexl@redhat.com>
13881
13882         * docs/README.linux-fb:
13883         Correct filename ~/.pangoft2_aliases
13884
13885         * gdk/gdkwindow.h:
13886         Added new function gdk_window_get_decorations.
13887
13888         * gdk/linux-fb/gdkfb.h:
13889         Removed _gdk_window_get_decorations declaration.
13890         Renamed _gdk_window_set_child_handler to
13891         gdk_fb_window_set_child_handler.
13892
13893         * gdk/linux-fb/gdkwindow-fb.c:
13894         Renamed _gdk_window_set_child_handler to
13895         gdk_fb_window_set_child_handler.
13896
13897         * gdk/x11/gdkwindow-x11.c:
13898         New function gdk_window_get_mwm_hints().
13899         Implemented gdk_window_get_decorations.
13900
13901         * docs/reference/gdk/tmpl/windows.sgml:
13902         * docs/reference/gdk/gdk-sections.txt:
13903         Added gdk_window_get_decorations docs.
13904         
13905 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
13906
13907         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
13908         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
13909         gdk_fb_window_send_crossing_events):
13910         Possibly send focus events when the mouse moves from one
13911         window to another.
13912
13913 2001-01-07  Tor Lillqvist  <tml@iki.fi>
13914
13915         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
13916         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
13917         to match current API.
13918
13919         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
13920         environment variable is set, don't call g_error when on a
13921         palettized (PseudoColor) display. Some people want to use GTK+ 
13922         in 256-colour mode even though works only partially.
13923
13924         * gdk/gdk.def
13925         * gtk/gtk.def
13926         * gtk/makefile.mingw.in: Update.
13927
13928 2001-01-05  Havoc Pennington  <hp@redhat.com>
13929
13930         * tests/testtreeview.c: hack on this a bit
13931
13932         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
13933         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
13934
13935         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
13936         was spelled incorrectly
13937         (GTK_IS_TREE_MODEL_SIMPLE): ditto
13938
13939         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
13940         from gtk_tree_view_set_headers_active   
13941
13942         * gtk/gtktexttag.c:
13943         (gtk_text_tag_get_property): handle PROP_DIRECTION
13944         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
13945         properties, bug 40235
13946
13947         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
13948         forward_to_line_end
13949
13950 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
13951
13952         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
13953         modules/input/gtkimcontextxim.c: Adapt to new prototypes
13954         for unicode,locale,filename conversion functions.
13955
13956 2001-01-05  Havoc Pennington  <hp@redhat.com>
13957
13958         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
13959         broken if called on the first position in the buffer.
13960
13961         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
13962         forward_to_delimiters to be called only if we aren't already at
13963         the delimiters.
13964
13965 2001-01-05  Havoc Pennington  <hp@redhat.com>
13966
13967         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
13968
13969 2001-01-05  Alexander Larsson  <alexl@redhat.com>
13970
13971         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
13972         colormap in here. Sync from X port.
13973         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
13974         Sync from X port.
13975         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
13976         This happens now and then, and i don't think it is a bug.
13977         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
13978         != endpoint.
13979         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
13980         GDK_LINE_SOLID.
13981
13982         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
13983         some of the fields filled in at least.
13984
13985         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
13986         miLineArcD is no more, remove it from the function definition.
13987
13988 2001-01-04  Havoc Pennington  <hp@redhat.com>
13989
13990         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
13991         this
13992
13993         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
13994         user_data instead of tree_node
13995
13996         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
13997         TREE_VIEW_COLUMN_SIZE
13998
13999         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
14000         "size" field to "width" finishes bug 40061
14001
14002         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
14003         for bitfields, bug 40268
14004
14005 2001-01-04  Havoc Pennington  <hp@redhat.com>
14006
14007         Rename some stuff:
14008         
14009         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
14010
14011         s/GtkModelSimple/GtkTreeModelSimple/g;
14012         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
14013         s/gtk_model_simple/gtk_tree_model_simple/g;
14014         s/gtkmodelsimple/gtktreemodelsimple/g;
14015
14016         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
14017
14018         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
14019         s/column_set_col_type/column_set_sizing/g;
14020
14021         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
14022         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
14023
14024         s/GtkCellRendererType/GtkCellRendererState/g;
14025         
14026         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
14027         (gtk_cell_renderer_toggle_class_init): change "state" property to
14028         "active", to match GtkToggleButton
14029         (gtk_cell_renderer_toggle_get_active): new function, bug
14030         40269
14031         (gtk_cell_renderer_toggle_set_active): new function
14032         (gtk_cell_renderer_toggle_set_property): route changes to toggle
14033         state through gtk_cell_renderer_set_active
14034
14035 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
14036
14037         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
14038         temporarily until they work again.  Brought up to date with
14039         changes in the model.
14040         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
14041         model.
14042
14043 2001-01-04  Havoc Pennington  <hp@redhat.com>
14044
14045         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
14046         equal to the line length, then position iterator before paragraph 
14047         separators. Fixes crash reported by Mikael Hermansson when
14048         pressing left arrow from the start of a line.   
14049
14050         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
14051         about byte indexes off the end
14052         (iter_set_from_char_offset): add g_error about char offsets
14053         off the end
14054
14055 2001-01-03  Havoc Pennington  <hp@redhat.com>
14056
14057         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
14058
14059         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
14060         of private functions; remove inclusion of private headers.
14061
14062         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
14063         function, so we don't need private functions in gtktextdisplay.c
14064
14065         * gtk/gtktextiterprivate.h: underscore-ification
14066
14067         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
14068         to instead say "only useful to implement widgets"
14069
14070         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
14071         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
14072         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
14073
14074         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
14075         This function was completely broken
14076
14077         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
14078
14079         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
14080
14081         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
14082
14083         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
14084
14085         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
14086
14087         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
14088
14089         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
14090         gtk_paint_layout
14091
14092         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
14093         gtk_paint_layout
14094
14095         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
14096         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
14097         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
14098         which were not implemented.     
14099
14100         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
14101         insert_pixbuf signal. Rename delete_text to delete_range since it
14102         also deletes pixbufs and child anchors. This almost closes bug
14103         40245 (still need to deal with child anchors)
14104
14105         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
14106         insert_pixbuf, change signal names as appropriate, change types of
14107         signals taking marks/tags to have the specific type, not just
14108         G_TYPE_OBJECT
14109         
14110         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
14111         closes bug 40051
14112
14113         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
14114         unnecessary remove_contents() call
14115         (gtk_option_menu_class_init): add a "changed" signal, closes
14116         bug 40039
14117         (gtk_option_menu_update_contents): emit "changed" if the 
14118         active menu item changes
14119
14120         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
14121         cast to GtkObject, reported by Jonas Borgstrom
14122         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
14123         we can't do stuff with side effects in finalize. Instead, spew a
14124         warning if the loader isn't closed.
14125
14126         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
14127         colormap in here, non-X ports probably need to sync to this change
14128
14129         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
14130         assertion that colormap != NULL, you can set the colormap to NULL
14131         if you like.
14132         
14133         * Makefile.am: remove gtk-config-2.0
14134
14135         * configure.in: Use pkg-config to locate GLib. Remove
14136         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
14137         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
14138         Use pkg-config to locate Pango. Output correct Pango libs to
14139         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
14140
14141         * Makefile.am (pkgconfig_DATA): install only target-specific pc
14142         files
14143         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
14144         X11 pc files
14145
14146         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
14147         unref from here
14148
14149 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
14150
14151         * configure.in:
14152         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
14153
14154 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
14155
14156         * gtk/gtktextlayout.c
14157         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
14158         variable when moving back onto a single line.
14159
14160 2001-01-01  Havoc Pennington  <hp@redhat.com>
14161
14162         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
14163
14164         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
14165
14166         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
14167         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
14168
14169 2001-01-01  Havoc Pennington  <hp@redhat.com>
14170
14171         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
14172
14173         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
14174         GtkTextAttributes
14175
14176         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
14177         #40246
14178         (gtk_text_attributes_copy_values): rename from 
14179         gtk_text_attributes_copy
14180         (gtk_text_attributes_copy): a more standard GTK copy function, 
14181         which returns a new object
14182
14183 2001-01-01  Havoc Pennington  <hp@redhat.com>
14184
14185         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
14186         
14187         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
14188         don't fill in tree_view->priv->selection, kind of an unexpected
14189         side effect
14190
14191         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
14192         gtkintl.h
14193         
14194         * gtk/gtkcellrenderer.c: Remove definition of _ and include
14195         gtkintl.h
14196         (gtk_cell_renderer_get_property): remove calls to g_value_init
14197
14198         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
14199         gtkintl.h
14200
14201         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
14202         and include gtkintl.h
14203         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
14204         property names
14205
14206         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
14207         GtkTreeSelection
14208         (_gtk_tree_selection_new_from_with_view): rename, return
14209         GtkTreeSelection
14210         (_gtk_tree_selection_set_tree_view): rename with uscore
14211         (gtk_tree_selection_get_selected): fill in the "model" out param
14212         first, so it gets filled in even if we return at the top of the 
14213         function
14214         (gtk_tree_selection_real_select_all): add a comment and an else{}
14215         to clarify this a bit
14216         (gtk_tree_selection_real_unselect_all): add the same else{}
14217
14218         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
14219         set_tree_view to have underscore prefixes, move them to the
14220         private header, fix return type of new_with_tree_view
14221         (struct _GtkTreeSelection): mark struct
14222         fields private  
14223
14224         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
14225         GtkTreeModelFlags, not a guint
14226         (gtk_tree_path_prev): return gboolean not gint
14227         (gtk_tree_path_up): return gboolean not gint
14228
14229         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
14230         return GtkTreeModelFlags, not a guint
14231
14232         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
14233         that child model is non-null before unrefing it
14234         (g_value_int_compare_func): make this a qsort compare func, not 
14235         a boolean predicate
14236
14237         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
14238         (add -umn to the end), and mark it unimplemented
14239         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
14240         I don't see what it's for - doesn't the model always sort itself?
14241         (gtk_tree_model_sort_set_compare): this had the wrong signature
14242
14243         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
14244         Fix the docs to say that it destructively replaces existing
14245         attributes (previously said that it added attributes).
14246         (gtk_tree_view_column_set_visible): canonicalize bool before
14247         equality testing. Also, check for realization before
14248         hiding/showing the tree_column->window; if this window could exist
14249         before realization, then it's busted and needs fixing, we can't 
14250         create GDK resources pre-realization. Also, remove
14251         superfluous queue_resize(), since set_size() does that for us.
14252         (gtk_tree_view_column_set_col_type): check realization before 
14253         using tree_column->window
14254
14255         * gtk/gtktreedatalist.c: fix filename in copyright notice
14256
14257 2000-12-31  Havoc Pennington  <hp@pobox.com>
14258
14259         * gtk/gtktextview.c: Rearrange all the
14260         scroll-while-dragging-or-selecting code to be different, not
14261         necessarily better. ;-)
14262         (gtk_text_view_scroll_to_mark): Change this
14263         function to take within_margin as a fraction instead of a pixel
14264         value, and to take alignment arguments (indicating where to align 
14265         the mark inside the visible area)
14266         
14267         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
14268         to GtkObject
14269
14270         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
14271         behavior so that offsets past the end of the line are not 
14272         allowed, and an offset equal to the line length moves the iterator
14273         to the next line
14274         (gtk_text_iter_set_line_index): make parallel change
14275         (gtk_text_iter_get_bytes_in_line): add this function
14276         
14277         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
14278         of byte indexes off the end of the line; byte index at the end of
14279         the line now returns FALSE and doesn't fill in the requested
14280         values, byte index past the end of the line is an error.  Also,
14281         don't allow -1 offset anymore, since its meaning is unclear.
14282
14283         This change exposes some bug in visual cursor motion, where we
14284         end up with a huge invalid byte index; needs fixing. Symptom of 
14285         bug is a crash when you hit up arrow.
14286         
14287         (_gtk_text_line_char_locate): match the change to byte_locate
14288
14289         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
14290         from start of line properly. fixes bug reported by Mikael
14291         Hermansson where backspace would delete all text before the
14292         cursor.
14293
14294 2000-12-30  Tor Lillqvist  <tml@iki.fi>
14295
14296         * gdk/win32/gdkwindow-win32.c
14297         (gdk_window_impl_win32_get_visible_region): New function, as in
14298         the X11 backend.
14299         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
14300         instead of duplicating the same code here.
14301
14302         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
14303         GDK_COLORMAP macro.
14304
14305         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
14306         destroy function.
14307         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
14308         access that.
14309
14310         * gtk/gtk.def: Update.
14311
14312         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
14313
14314 2000-12-30  Havoc Pennington  <hp@pobox.com>
14315
14316         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
14317         colormap on input only windows, to avoid special cases all over
14318         the code for these windows.
14319
14320 2000-12-26  Tor Lillqvist  <tml@iki.fi>
14321
14322         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
14323         we are on a palettized display ("PseudoColor" in X11), as the code
14324         for that doesn't work anyway, and never has.
14325
14326 2000-12-22  Alexander Larsson  <alexl@redhat.com>
14327
14328         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
14329         Don't use isprint() for chars > 255.
14330
14331 2000-12-21  Havoc Pennington  <hp@redhat.com>
14332
14333         * tests/testtreeview.c: more work
14334
14335 2000-12-21  Alexander Larsson  <alexl@redhat.com>
14336
14337         * docs/README.linux-fb:
14338         Update the docs to the new pangoft2 way.
14339
14340 2000-12-21  Alexander Larsson  <alexl@redhat.com>
14341
14342         * configure.in:
14343         For linux-fb get the pangoft2 cflags and libs. This needs a recent
14344         pango version.
14345         Remove modules/linux-fb/Makefile.
14346
14347         * gdk/linux-fb/gdkdrawable-fb2.c:
14348         Render glyphs using freetype.
14349
14350         * gdk/linux-fb/gdkfb.h:
14351         Add new fb-specific functions needed for managing windows.
14352
14353         * gdk/linux-fb/gdkmain-fb.c:
14354         Remove gdk_font_init/fini() calls.
14355
14356         * gdk/linux-fb/gdkpango-fb.c:
14357         Remove old implementation. Use pangoft2 instead.
14358
14359         * gdk/linux-fb/gdkprivate-fb.h:
14360         Remove PangoFBFont and related stuff.
14361
14362         * gdk/linux-fb/gdkwindow-fb.c:
14363         Implement drawable->get_visible_region.
14364         Implement support for _gdk_window_set_child_handler () and
14365         _gdk_window_get_decorations().
14366
14367         * modules/Makefile.am:
14368         Remove linux-fb subdir.
14369
14370         * modules/linux-fb/*:
14371         Removed all.
14372         
14373 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
14374
14375         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
14376         calls, as they are no longer needed.
14377
14378         * gtk/gtktreemodelsort.c: Fix up the comparison code.
14379         
14380         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
14381         figure out how to emit a signal on an interface.
14382
14383 2000-12-20  Havoc Pennington  <hp@redhat.com>
14384
14385         * tests: new directory to contain tests, gtk/test* should move
14386         here sometime (with appropriate on-cvs-server hackery)
14387
14388         * tests/testtreeview.c, tests/Makefile.am: a test
14389         
14390         * configure.in (AC_OUTPUT): add tests/Makefile
14391
14392         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
14393         and "invisible_set" which were missing
14394
14395         * gtk/gtkrbtree.h: some cheesy indentation fix
14396         
14397 2000-12-20  Alexander Larsson  <alexl@redhat.com>
14398
14399         * gtk/gtkinvisible.c (gtk_invisible_realize):
14400         Attach the style to the window so that the style it is not
14401         leaked when unrealizing the window.
14402
14403 2000-12-18  Havoc Pennington  <hp@redhat.com>
14404
14405         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
14406         begin/end user action where appropriate
14407         (gtk_text_view_commit_handler): add begin/end user action
14408
14409         * gtk/gtktextbuffer.c: add begin/end user action signals, and
14410         bracket interactive operations with begin/end user action pair.
14411         
14412         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
14413         "interactive" arg from insert_text and delete_text signals.
14414         Add begin_user_action, end_user_action signals
14415         (gtk_text_buffer_begin_user_action): 
14416         (gtk_text_buffer_end_user_action): New functions to delimit 
14417         a user-visible action
14418
14419         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
14420         signals.
14421         
14422 2000-12-18  Havoc Pennington  <hp@redhat.com>
14423
14424         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
14425         was pretty non-working.
14426
14427         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
14428         by passing the length to g_utf8_validate().
14429
14430 2000-12-16  Havoc Pennington  <hp@pobox.com>
14431
14432         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
14433         Port to GObject, can go back in gdk-pixbuf after setting up 
14434         a gdk-pixbuf-marshal.h header over there.
14435
14436         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
14437         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
14438         args
14439         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
14440         set
14441         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
14442         here, do it when we create the buttons later
14443         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
14444         (gtk_tree_view_map): paranoia checks that column->button is shown 
14445         and unmapped
14446         (gtk_tree_view_size_request): only request visible children.
14447         Move header size calculation in here, for cleanliness, and 
14448         to maintain invariants for child widgets if we eventually 
14449         let users set different children inside the buttons
14450         (gtk_tree_view_map_buttons): factor out code to map buttons,
14451         since it was being called several times
14452         (gtk_tree_view_size_allocate_buttons): move_resize the drag
14453         windows instead of just moving them; their height may change 
14454         if we allow random widgets in there, or the theme changes.
14455         (gtk_tree_view_size_allocate): move button size allocation 
14456         above emitting the scroll signals, to ensure a sane state when we
14457         hit user code
14458         (gtk_tree_view_button_release): remove queue_resize after
14459         tree_view_set_size(), set_size() will handle any resize queuing
14460         that's needed
14461         (gtk_tree_view_focus_in): just queue a draw, don't fool with
14462         draw_focus goo
14463         (gtk_tree_view_focus): use gtk_get_current_event() and
14464         gdk_event_get_state()
14465         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
14466         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
14467         semicolon
14468         (gtk_tree_view_create_button): show the button here
14469         (gtk_tree_view_button_clicked): actually emit the clicked signal
14470         on the column
14471         (_gtk_tree_view_set_size): return right away if the size is
14472         unchanged, as a cheesy optimization
14473         (gtk_tree_view_setup_model): rename set_model_realized to 
14474         setup_model to match the flag that indicates whether we've 
14475         called it
14476         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
14477         exist, because set_scroll_adjustment does that and it shouldn't
14478         matter what order you call these in
14479         (gtk_tree_view_get_vadjustment): ditto
14480         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
14481         for paranoia
14482         (gtk_tree_view_set_headers_visible): call
14483         gtk_tree_view_map_buttons() instead of using cut-and-paste code
14484         (gtk_tree_view_append_column): clarify whether the return value
14485         is the count of columns before or after, and do the increment 
14486         separately from the return statement so you can tell from the code.
14487         (gtk_tree_view_remove_column): ditto
14488         (gtk_tree_view_insert_column): ditto
14489         (gtk_tree_view_get_column): remove g_return_if_fail for columns
14490         outside the existing range, the docs say that outside-range
14491         columns are allowed, so we handle them as documented. (Presumably
14492         this allows a nice loop with column != NULL as test.)
14493         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
14494         mean (left/right/center etc.).
14495         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
14496         (gtk_tree_view_expand_row): add docs
14497         (gtk_tree_view_collapse_row): add docs
14498
14499         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
14500         function to emit the clicked signal on a column
14501         
14502         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
14503         state of an event
14504         (gdk_event_get_time): don't treat GDK_SCROLL 
14505         as a button event, remove default case from switch so gcc 
14506         will whine if we don't explicitly handle all event types
14507
14508         * gtk/gtktreeselection.h: added some FIXME 
14509         
14510         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
14511         "columns" to "n_columns" and "column" to "columns" for clarity
14512
14513 2000-12-16  Havoc Pennington  <hp@pobox.com>
14514         
14515         * gtk/gtktextiter.c: General cleanup of the log attr iteration
14516         stuff. This should make e.g. the delete key work again in the
14517         text widget...
14518         (gtk_text_iter_forward_cursor_positions): handle negative count
14519         (gtk_text_iter_backward_cursor_positions): handle negative count
14520         (gtk_text_iter_forward_word_ends): handle negative count
14521         (gtk_text_iter_backward_word_starts): handle negative count
14522
14523         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
14524         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
14525         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
14526         GObject. No doubt will cause breakage.
14527
14528         * demos/gtk-demo/textview.c: remove hacks around
14529         non-GObject-ification of the text objects
14530
14531         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
14532         the text tag
14533         
14534 2000-12-14  Havoc Pennington  <hp@pobox.com>
14535
14536         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
14537         that we have Xrender
14538
14539 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
14540
14541         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
14542         Add two virtualized functions gdk_drawable_get_clip_region - to
14543         get the clip region when drawing.
14544         
14545         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
14546         use invalidate_region.
14547
14548         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
14549         region.
14550
14551         * acconfig.h configure.in: Check for Xft. For now, assume
14552         that if Xft is found, Pango was compiled with Xft support
14553         as well.
14554
14555         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
14556         gdk_colormap_query_color().
14557         
14558         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
14559         with Xft if appropriate.
14560
14561         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
14562         a pangoxft context if we have XFT and the environment
14563         variable GD_USE_XFT is set.
14564         
14565         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
14566         and also possibly an XftDraw structure.
14567
14568         * gtk/gtkfontsel.c: Handle the case where the font from the
14569         style doesn't match any of the fonts a bit better.
14570         
14571         * gtk/testgtk.c: Add tabs between directional segments for
14572         hebrew/arabic test. (Not really necessary, just a little
14573         prettier.)
14574
14575 2000-12-14  Havoc Pennington  <hp@redhat.com>
14576
14577         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
14578         reading a file
14579
14580 2000-12-14  Havoc Pennington  <hp@redhat.com>
14581
14582         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
14583         unused call to get_last_line()
14584
14585         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
14586         here until boxed is working (and maybe after that - we should
14587         really not gratuitously break old code)
14588
14589         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
14590         specific types for font_desc and tabs args, move them to
14591         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
14592         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
14593
14594         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
14595         use GTK_TYPE_POINTER for signal signatures as a hack-around
14596
14597         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
14598         PangoTabArray
14599
14600         * gtk/gtktextlayout.c (line_display_iter_to_index): 
14601         make static
14602         (line_display_index_to_iter): make static
14603
14604         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14605         to marshal a string not a boxed
14606
14607         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
14608
14609         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
14610         since the UTF-8 isn't validated yet
14611
14612         * gtk/gtktextsegment.c (char_segment_check_func): don't require
14613         lines to end in '\n'
14614         
14615         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
14616         forward_to_delimiters, and grapheme boundaries
14617         (gtk_text_view_delete_from_cursor): properly handle non-newline
14618         delimiters, and grapheme boundaries
14619
14620         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
14621         to gtk_text_iter_forward_to_delimiters, and make it work properly
14622         if empty lines end with a character other than '\n'
14623
14624         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
14625         position
14626
14627 2000-12-15  Tor Lillqvist  <tml@iki.fi>
14628
14629         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
14630
14631         * gtk/gtk.def
14632         * gdk/gdk.def: Update.
14633
14634         * gdk/win32/gdkmain-win32.c
14635         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
14636         gdkmain-win32.c here.
14637
14638         * gdk/win32/makefile.mingw.in (all): No need to make
14639         gdk-win32res.o here, the makefile one step up will call us to make
14640         it.
14641
14642         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
14643         gdkkeys-win32.
14644
14645         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
14646
14647         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
14648         call to g_source_add().
14649
14650         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
14651         leak. Thanks to Andreas Kemnade.
14652
14653 2000-12-13  Havoc Pennington  <hp@pobox.com>
14654
14655         * gtk/gtktextbtree.h: Remove double _ in front of some functions
14656
14657         * gtk/gtktext*.[hc]: update accordingly
14658         
14659 2000-12-13  Havoc Pennington  <hp@pobox.com>
14660
14661         * gtk/gtktextbtree.h: Put _ in front of every function in this 
14662         header file
14663
14664         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
14665
14666 2000-12-13  Alex Larsson  <alexl@redhat.com>
14667
14668         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
14669         Add support for ps2 intellimouse.
14670
14671         * gdkkeyboard-fb.c:
14672         Move shift-F1 repaint handling to xlate handler only.
14673         
14674         * docs/README.linux-fb:
14675         Add imps2 to docs.
14676         Document the new refresh keys.
14677         
14678 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
14679
14680         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
14681
14682         * gtk/gtkbox.c: change property types from (u)long to (u)int for
14683         ::position and ::padding.
14684
14685         * gtk/gtkcontainer.c: make ::border_width an INT property.
14686
14687         * gtk/gtkpacker.c: make ::position an INT property.
14688
14689         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
14690         guard against NULL h/v scrollbars, since this is used at construction
14691         time.
14692
14693         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
14694         internal gtk_clist_constructor().
14695
14696         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
14697         gtk_ctree_constructor().
14698
14699         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
14700         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
14701
14702         * docs/reference/Makefile.am: fun stuff, disabled docs generation
14703         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
14704
14705         * gtk/gtkwidget.[hc]:
14706         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
14707         and gtk_widget_get().
14708         (gtk_widget_new): use g_object_new_valist().
14709         (gtk_widget_set): use g_object_set_valist().
14710
14711         * gtk/gtkobject.[hc]:
14712         removed gtk_object_arg_get_info(), gtk_object_getv(),
14713         gtk_object_query_args(), gtk_object_newv(),
14714         gtk_object_class_add_signals(),
14715         gtk_object_class_user_signal_new(),
14716         gtk_object_class_user_signal_newv(),
14717         gtk_object_arg_set(), gtk_object_arg_get(),
14718         gtk_object_args_collect(),
14719         gtk_object_default_construct(),
14720         gtk_object_constructed(),
14721         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
14722         removed nsignals, signals and n_args members from GtkObjectClass.
14723         (gtk_object_new): use g_object_new_valist().
14724         (gtk_object_set): use g_object_set_valist().
14725         (gtk_object_get): use g_object_get_valist().
14726         
14727         * gtk/gtkcompat.h: define gtk_object_default_construct().
14728         
14729         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
14730         g_object_new().
14731
14732         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
14733         fucntions, cleaned up method assignments (make sure your structures
14734         are setup properly before calling out). removed all GTK_CONSTRUCTED
14735         hacks ;)
14736
14737 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
14738
14739         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
14740         off-by-one error in checks. (Dave Lambert)
14741
14742 2000-12-12  Alexander Larsson  <alexl@redhat.com>
14743
14744         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
14745         Don't free gdk_fb_keyboard twice.
14746
14747 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
14748
14749         * gtk/testgtk.c:
14750         (create_tooltips): 
14751         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
14752         use GObject swapped_signal:: properties instead.
14753
14754         * gtk/gtkcellrenderertoggle.c: 
14755         * gtk/gtkcellrenderertextpixbuf.c: 
14756         * gtk/gtkcellrenderertext.c: 
14757         * gtk/gtkcellrendererpixbuf.c: 
14758         * gtk/gtkcellrenderer.c:
14759         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
14760         missing warnings for invalid property ids, install properties
14761         with g_object_class_install_property() now.
14762         
14763         * gtk/gtksignal.c:
14764         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
14765         
14766 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
14767         
14768         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
14769         to determine if a window is the focus widget within
14770         its toplevel.
14771
14772         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
14773         to be boolean.
14774
14775         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
14776         of the case where the container CAN_FOCUS to here instead
14777         of having it in each individual move-the-focus place.
14778
14779         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
14780         focusing to be geometric in a much more obvious sense. Arrowing
14781         around is still non-intuitive because it isn't perfect and
14782         because entries, etc, grab the arrow keys, but it at least
14783         usually will do what you expect now.
14784         
14785         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
14786         file.
14787
14788         * gtk/gtknotebook.c: Change tabs to be a single item in
14789         the focus chain. Make movement of focus on tabs with arrow
14790         keys wrap around.
14791         
14792         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
14793         CHECK_FIND_CHILD macro to give informative error messages
14794         instead of silent returns.
14795
14796         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
14797         flag since we handle GdkReturn on the tabs.
14798
14799         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
14800         windows rather than sending expose events directly.
14801
14802         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
14803         definition for GtkNotebookPage into .c file, since it is private.
14804
14805         * gtk/testgtk.c (create_notebook): Add option for 
14806         testing borderless notebook.
14807
14808         * gtk/testgtk.c (page_switch): Removed egregious poking
14809         around in GTK+ internals.
14810
14811         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
14812
14813         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
14814         properly through gtk_clist_focus. Make the title headers a
14815         single item in the tab-focus chain, and make left-right wrap
14816         around.
14817
14818         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
14819         focus method so that wrapping around works properly.
14820
14821         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
14822         that is handled for the widget now. 
14823
14824 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
14825
14826         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
14827         widgets as TOPLEVEL.
14828
14829         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
14830         TOPLEVEL widgets are containers.
14831
14832         * gtk/gtkinvisible.h: Remove useless include.
14833
14834 2000-12-11  Havoc Pennington  <hp@redhat.com>
14835
14836         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
14837         Handle chopping off \r\n and 0x2029 in addition to \n before
14838         passing to PangoLayout
14839
14840         * gtk/gtkimcontextsimple.c
14841         (gtk_im_context_simple_get_preedit_string): 
14842         return an empty string if no match is pending
14843
14844         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
14845         assertion that the returned preedit string was sane
14846
14847         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
14848         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
14849         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
14850
14851 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
14852
14853         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
14854         Fix up finalizer to chain to its parent.
14855
14856 2000-12-11  Alexander Larsson  <alexl@redhat.com>
14857
14858         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
14859         Clearified the difference between the keyboard types. Wrote a note
14860         about the magic sysrq key to get out of raw mode.
14861
14862 2000-12-09  James Henstridge  <james@daa.com.au>
14863
14864         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
14865         member to hold masks for detecting the start of a protocol packet.
14866         (mouse_devs): add packet start masks for ps2 and ms device types.
14867         Left the mask for fidmour blank, as I have no idea what it should
14868         be.
14869         (handle_mouse_io): skip bytes until we get to the start of a
14870         packet.  My Logitech mouse seems to be passing an extra NULL pad
14871         byte, and GPM does a similar thing here.
14872         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
14873         this is the ms mouse driver.
14874         (gdk_fb_mouse_ms_packet): fix up button handling, which was
14875         completely broken except for button1.  It was checking the wrong
14876         bit in the packet for the status of the right mouse button, and
14877         wrongly assuming right == button2 rather than 3.  I fixed that and
14878         also added support for middle button (button2).
14879
14880 2000-12-08  Havoc Pennington  <hp@redhat.com>
14881
14882         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
14883         that cause a segfault on text insertion
14884
14885         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
14886         warning
14887
14888         * gtk/gtktextiter.c (test_log_attrs): use
14889         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
14890
14891         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
14892         Get log attrs for a line, using a cache stored on the buffer
14893         
14894         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
14895         reported by Jeff Franks
14896
14897 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14898
14899         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
14900         /dev/ttyS0 -> /dev/mouse
14901
14902 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14903
14904         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
14905         Added dummy gdk_fontset_load.
14906
14907 2000-12-08  Alexander Larsson  <alexl@redhat.com>
14908
14909         * docs/README.linux-fb:
14910         * docs/Makefile.am:
14911         Initial GtkFB docs.
14912         
14913         * gdk/linux-fb/Makefile.am:
14914         Define GDK_DATA_PREFIX.
14915
14916         * gdk/linux-fb/gdkmain-fb.c:
14917         Fix typo.
14918         Change default display to /dev/fb0.
14919
14920         * gdk/linux-fb/gdkpango-fb.c:
14921         Add $(prefix)/share/fonts/ to font path.
14922         
14923 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14924
14925         * gdk/linux-fb/gdkkeyboard-fb.c:
14926         New file containing the abstracted keyboard driver. Most code
14927         taken from gdkinput-ps2.c
14928
14929         * gdk/linux-fb/gdkinput-ps2.c:
14930         Removed file.
14931         
14932         * gdk/linux-fb/Makefile.am:
14933         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
14934
14935         * gdk/linux-fb/gdkcolor-fb.c:
14936         display->fb was renamed to display->fb_fd.
14937
14938         * gdk/linux-fb/gdkcursor-fb.c:
14939         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14940
14941         * gdk/linux-fb/gdkinput.c:
14942         Moved gdk_input_init here from gdkinput-ps2.c
14943
14944         * gdk/linux-fb/gdkmain-fb.c:
14945         display->fb was renamed to display->fb_fd.
14946         Now the tty and the console is opened here instead
14947         of in the keyboard driver. Also check GDK_VT to see what
14948         tty to open.
14949         Move gdk_beep () here from gdkinput-ps2.c
14950         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14951
14952         * gdk/linux-fb/gdkmouse-fb.c:
14953         Add header.
14954         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14955         Return correct keyboard modifiers.
14956         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
14957
14958         * gdk/linux-fb/gdkprivate-fb.h:
14959         Add tty and vt info to display.
14960         Add orignal modeinfo storage to display
14961         Update global functions
14962
14963         * gdk/linux-fb/gdkwindow-fb.c:
14964         Added gdk_fb_window_find_focus().
14965         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14966
14967 2000-12-07  Havoc Pennington  <hp@pobox.com>
14968
14969         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
14970         function, noticed by Alex
14971
14972 2000-12-06  Elliot Lee  <sopwith@redhat.com>
14973
14974         * configure.in: Detect freetype properly
14975
14976         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
14977         above.
14978
14979 2000-12-06  Alexander Larsson  <alexl@redhat.com>
14980
14981         * gdk/linux-fb/Makefile.am:
14982         Add gdkmouse-fb.c
14983         
14984         * gdk/linux-fb/gdkmouse-fb.c:
14985         New file. Abstracted the mouse drivers a bit.
14986
14987         * gdk/linux-fb/gdkcursor-fb.c:
14988         The cursor hide/show functions was moved here from gdkinput-ps2.c.
14989
14990         * gdk/linux-fb/gdkinput-ps2.c:
14991         Removed old mouse handling code. Moved cursor handling code
14992         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
14993         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
14994         gdk_mouse_get_info.
14995
14996         * gdk/linux-fb/gdkmain-fb.c:
14997         Pass NULL pointers for x,y in gdk_mouse_get_info call.
14998
14999         * gdk/linux-fb/gdkprivate-fb.h:
15000         Removed public gdk_fb_find_common_ancestor, added and renamed
15001         functions for the new mouse handling code.
15002
15003         * gdk/linux-fb/gdkwindow-fb.c:
15004         Moved gdk_fb_window_send_crossing_events here. added global
15005         variable gdk_fb_window_containing_pointer. made
15006         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
15007         renamed to gdk_mouse_get_info.
15008
15009 2000-12-06  Alexander Larsson  <alexl@redhat.com>
15010
15011         * gdk/linux-fb/gdkevents-fb.c:
15012         Update to match latest gmain/gsource changes.
15013
15014         * gdk/linux-fb/gdkinput-ps2.c:
15015         Bogus gdk_keymap_get_entries_for_keycode implementation so that
15016         it links. Will be implemented later.
15017
15018 2000-12-03  Havoc Pennington  <hp@pobox.com>
15019
15020         * gdk/Makefile.am: add gdkkeys.[hc]
15021
15022         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
15023         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
15024
15025         * acconfig.h, configure.in: add checks and command line options
15026         for XKB
15027
15028         * gdk/x11/gdkkeys-x11.c: Implement the above functions
15029         
15030         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
15031         and group in the key event
15032
15033         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
15034         field with the low-level hardware key code, and a group
15035         field with the keyboard group
15036
15037         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
15038         and declare a couple globals used for keymap handling
15039         
15040         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
15041         hold down Shift-Control and type a hex number to get a Unicode 
15042         character corresponding to the hex number
15043         (gtk_im_context_simple_get_preedit_string): Fix cursor position
15044         (return bytes not chars)
15045
15046 2000-12-05  Elliot Lee  <sopwith@redhat.com>
15047
15048         * gdk/gdkcolor.h: Make GdkColor specify element sizes
15049         to avoid waste on 64-bit platforms.
15050
15051 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
15052
15053         * INSTALL: Fix link to PNG home, remove reference
15054         to fribidi.
15055
15056         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
15057         
15058         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
15059         tested.)
15060
15061         * gtk/gtkcheckmenuitem.c: Permanently turn on
15062         always_show_toggle.
15063
15064         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
15065         be NULL. (Vladimir Klebanov, #26545)
15066
15067         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
15068         some signed/unsigned comparison problems. (#6510,
15069         David Kaelbling)
15070
15071         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
15072         return type to boolean (Oskar Liljeblad, #18648)
15073
15074 2000-12-05  Alexander Larsson  <alexl@redhat.com>
15075
15076         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
15077         Remove bogus colormap setting.
15078
15079 2000-12-05  Alexander Larsson  <alexl@redhat.com>
15080
15081         * gdk/linux-fb/gdkcolor-fb.c:
15082         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
15083
15084         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
15085         Must set colormap.
15086         
15087 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
15088
15089         * docs/tutorial/gtk-tut.sgml: DND updates
15090
15091 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
15092
15093         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15094         Remove old debug g_warning().
15095         (gdk_fb_draw_drawable): The src argument can be either a wrapper
15096         or an implementation, just pass the implementation to draw_drawable_2.
15097         
15098         * gdk/linux-fb/gdkprivate-fb.h:
15099         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
15100
15101         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15102         clear and invalidate area when window is destroyed.
15103         (send_map_events): Remove old commented out code.
15104
15105 2000-12-05  Alexander Larsson  <alexl@redhat.com>
15106
15107         * gdk/linux-fb/gdkpango-fb.c:
15108         Use italic instead of oblique in font aliases.
15109         
15110         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
15111         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
15112         other unsupported functions.
15113
15114 2000-12-04  Havoc Pennington  <hp@redhat.com>
15115
15116         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
15117
15118         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
15119
15120         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
15121
15122         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
15123         hack to avoid infinite loops (synthetic expose event) - 
15124         Owen has more appropriate fixes in a branch he'll check in later.
15125
15126         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
15127         separator, CR, and CRLF as line ends
15128
15129         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
15130         into lines using pango_find_paragraph_boundary(); other bits of
15131         the widget are still going to be broken if the boundary isn't '\n'
15132         though
15133
15134 2000-12-04  Alexander Larsson  <alexl@redhat.com>
15135
15136         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
15137         multiply.
15138
15139         * gdk/linux-fb/gdkpango-fb.c:
15140         Copied some 26.6 scaling macros from pango to clean up the rounding.
15141         (pango_fb_font_get_glyph_info): Correct sign on x value.
15142
15143         * gdk/linux-fb/gdkprivate-fb.h:
15144         Removed unreferenced external functions.
15145
15146         * modules/linux-fb/Makefile.am: Use ` instead of '.
15147
15148         * modules/linux-fb/basic.c:
15149         Remove dead code. In particular the dummy lang engine which broke all
15150         pango layouts in GtkFB. Don't include tables-big.i anymore.
15151
15152         * modules/linux-fb/tables-big.i:
15153         Upgrade to latest version from pango. Left for reference, basic_ranges
15154         moved to basic.c.
15155         
15156 2000-12-04  Havoc Pennington  <hp@redhat.com>
15157
15158         Fix bugs Alex found:
15159         
15160         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
15161         to "draw"
15162
15163         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
15164
15165         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
15166
15167         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
15168         implementation in here, apparently the expose() implementation was
15169         dead code.
15170
15171 2000-12-04  Alexander Larsson  <alexl@redhat.com>
15172
15173         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15174         Return positive descent.
15175
15176 2000-12-02  Havoc Pennington  <hp@pobox.com>
15177
15178         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
15179         method and signal
15180         
15181         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
15182         calls gdk_window_process_updates() to push the exposes through
15183         (gtk_widget_class_init): No more draw signal, no
15184         gtk_widget_real_draw()  
15185         
15186         * gtk/gtkbin.c (gtk_bin_draw): remove
15187
15188         * gtk/gtkbox.c (gtk_box_draw): remove
15189
15190         * gtk/gtkbutton.c (gtk_button_draw): remove
15191
15192         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
15193
15194         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
15195
15196         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
15197
15198         * gtk/gtkclist.c (gtk_clist_draw): remove
15199
15200         * gtk/gtkentry.c (gtk_entry_draw): remove
15201
15202         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
15203
15204         * gtk/gtkfixed.c (gtk_fixed_draw): remove
15205
15206         * gtk/gtkframe.c (gtk_frame_draw): remove
15207
15208         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
15209
15210         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
15211
15212         * gtk/gtklayout.c (gtk_layout_draw): remove
15213
15214         * gtk/gtklist.c (gtk_list_draw): remove
15215
15216         * gtk/gtklistitem.c (gtk_list_item_draw): remove
15217
15218         * gtk/gtkmenu.c (gtk_menu_draw): remove
15219
15220         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
15221
15222         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
15223
15224         * gtk/gtknotebook.c (gtk_notebook_draw): remove
15225
15226         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
15227
15228         * gtk/gtkpacker.c (gtk_packer_draw): remove
15229
15230         * gtk/gtkrange.c (gtk_range_draw): remove
15231
15232         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
15233
15234         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
15235
15236         * gtk/gtktable.c (gtk_table_draw): remove
15237
15238         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
15239
15240         * gtk/gtktext.c (gtk_text_draw): remove
15241
15242         * gtk/gtktextview.c (gtk_text_view_draw): remove
15243
15244         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
15245
15246         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
15247
15248         * gtk/gtktree.c (gtk_tree_draw): remove
15249
15250         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
15251
15252         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
15253
15254         * gtk/gtkviewport.c (gtk_viewport_draw): remove
15255
15256         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
15257
15258         * gtk/gtkvscale.c (gtk_vscale_draw): remove
15259
15260         * gtk/gtkwindow.c (gtk_window_draw): remove
15261
15262 2000-20-01  Anders Carlsson  <andersca@gnu.org>
15263
15264         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
15265         a GtkToggleButton is both insensitive and active, it was being
15266         drawn by the GtkButton draw handler which doesn't check the
15267         state. Now it's calling gtk_toggle_button_paint instead.
15268         
15269 2000-12-01  Havoc Pennington  <hp@redhat.com>
15270
15271         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
15272         dangling pointers to the appearance attributes from the 
15273         line display
15274
15275         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
15276         width/height to mean "full width/height of drawable"
15277
15278         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
15279         click to select word/line
15280         
15281         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
15282         when getting log attrs. Get a slice, so that pixmaps and stuff
15283         are properly handled.
15284
15285         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
15286         paste into the selection (replaces selection now, previously
15287         crashed or added to selection). Reveals longstanding btree bug -
15288         select multiple lines, middle-click on the selection, boom. This
15289         isn't related to my changes though.
15290
15291         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
15292         PangoLogAttrs changes
15293         (gtk_entry_move_backward_word): ditto
15294
15295         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
15296         functions return bool whether the iter moved onto a
15297         dereferenceable position.
15298  
15299         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
15300         functions for motion in terms of display lines.
15301
15302         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
15303         get the buffer a mark is inside
15304         
15305 2000-12-01  Alexander Larsson  <alexl@redhat.com>
15306
15307         * gdk/linux-fb/Makefile.am:
15308         * modules/linux-fb/Makefile.am:
15309         Freetype 2 final uses freetype-config
15310
15311         * gdk/linux-fb/gdkpango-fb.c:
15312         Upgrade to use Freetype 2 final.
15313         More flexible support for font aliases, this also fixes a bug with
15314         GtkFontSelector, as the aliases must be visible in the font/family list,
15315         or GtkFontSelector reads uninitialized memory.
15316
15317 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
15318
15319         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
15320         XGetIMValues to properly terminate variable argument list, and do
15321         NULL return check for ic_values and xim_styles.
15322
15323         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
15324         Restore preedit state after XmbResetIC().
15325         
15326         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
15327         XvaCreateNestedList() should take XvaNestedList, but not
15328         XvaNestedList*.
15329
15330         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
15331         preedit_draw_callback, preedit_caret_callback): Match
15332         "preedit-changed" signal name to "preedit_changed" to be
15333         consistent to the spec.
15334
15335         * gtk/gtkimcontextsimple.c (check_table):
15336         Match "preedit-changed" to "preedit_changed" to be consistent
15337         to the spec.
15338
15339 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
15340
15341         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
15342         gc->clip_region == NULL>
15343
15344 2000-11-30  Tor Lillqvist  <tml@iki.fi>
15345
15346         Changes by Hans Breuer:
15347         
15348         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
15349         Dont't use negative width and height as max_hints. This fixes
15350         Owen's recent testgtk changes for win32.
15351
15352         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
15353         gdk_win32_hdc_release): These are exported and may be called with
15354         other drawable types than our GdkDrawableImplWin32 (?).
15355
15356         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
15357         so always #define USE_BACKING_STORE.
15358
15359         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
15360         of printf for debugging output.
15361
15362         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
15363         
15364         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
15365
15366         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
15367         declaration.
15368
15369         * gtk/gtktexttypes.h: Ditto.
15370
15371         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
15372         (GDK_VoidSymbol) also if in case of arg check failure.
15373
15374         * gtk/gtkimcontextsimple.c
15375         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
15376         position to the pointer, but to the variable it points to.
15377
15378         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
15379
15380         * gtk/gtk.def: Updates.
15381
15382 2000-11-29  Elliot Lee  <sopwith@redhat.com>
15383
15384         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
15385         GTK_TYPE_TREE_MODEL.
15386
15387 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15388
15389         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
15390         Set the size of the font from the description.
15391         (gdk_text_width): Gross hack that calculates the width
15392         of text by text_length * size/2. This is necessary because
15393         GtkLabel does some ugly gtk_string_width call to calculate
15394         an good size.
15395         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
15396
15397 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
15398
15399         * docs/tutorial/gtk-tut.sgml: DND updates
15400
15401 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15402
15403         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
15404         If you pass width or height == 0 to gdk_window_clear_area they
15405         should be calculated from the window size.
15406
15407 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15408
15409         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
15410         a grab, but no grab-cursor, use the cursor from the grabbed
15411         window. (gdk_fb_window_send_crossing_events): Send normal
15412         enter/leave notifications if grab and owner_events == TRUE.
15413
15414 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15415
15416         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15417         Do implicit button grabs, even if the window doesn't
15418         want the event.
15419         (gdk_fb_window_send_crossing_events): If there is a
15420         grab, only the grabbed window gets normal enter/leave
15421         notifications. On ungrab go from grabbed window to current.
15422         Don't send any notification to b when propagating from c -> b.
15423         If setting a grab on window, don't set prev_window.
15424         (handle_mouse_input): Send enter/leave events to the window the
15425         mouse is over, not the grabbed one.
15426         
15427 2000-11-28  Elliot Lee  <sopwith@redhat.com>
15428
15429         * gdk/gdkregion-generic.c: Zap warning.
15430         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
15431         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
15432
15433 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
15434
15435         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
15436         The cursor should be hidden if it is part of either the
15437         source or destination region. Not only if it is in both.
15438         (gdk_window_set_transient_for): Silence warnings.
15439
15440 2000-11-28  Alexander Larsson  <alexl@redhat.com>
15441
15442         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
15443         The default mode in X is Pie Arcs, therefore that is
15444         what Gtk+ uses.
15445
15446 2000-11-28  Alexander Larsson  <alexl@redhat.com>
15447
15448         * gdk/linux-fb/gdkinput-ps2.c:
15449         Implement correct EnterNotify/LeaveNotify:
15450         (gdk_fb_window_send_crossing_events): New function that sends
15451         all GdkCrossingEvents from the last mouse-window to the specified
15452         destination.
15453         (gdk_fb_window_visibility_crossing): Removed function.
15454         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
15455         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
15456         instead of gdk_window_get_pointer() for better readability.
15457
15458         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
15459         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
15460
15461         * gdk/linux-fb/gdkprivate-fb.h:
15462         removed gdk_fb_window_visibility_crossing, added
15463         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
15464
15465         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
15466         New function that finds the least common ancestor of two windows.
15467         (gdk_window_show, gdk_window_hide):
15468         Use gdk_fb_window_send_crossing_events.
15469         (gdk_fb_window_move_resize): Send configure events to toplevel
15470         windows. Use gdk_fb_window_send_crossing_events.
15471
15472 2000-11-27  Havoc Pennington  <hp@redhat.com>
15473
15474         * gtk/gtkprivate.h (enum): Remove a trailing comma
15475
15476 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
15477
15478         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
15479         the "changed" callback of the adjustment.  We need to redraw the
15480         spin button's arrows when the adjustment's range changes.
15481         (adjustment_changed_cb): Draw the arrows.
15482         (gtk_spin_button_value_changed): Draw the arrows.
15483
15484 2000-11-23  Alexander Larsson  <alexl@redhat.com>
15485
15486         * gdk/linux-fb/gdkselection-fb.c:
15487         Initial selection implementation.
15488
15489         * gtk/gtkselection.c:
15490         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
15491         requestor in gtk_selection_request.
15492         
15493         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
15494         Added gdk_selection_property atom.
15495
15496         * gdk/linux-fb/gdkprivate-fb.h:
15497         Export _gdk_selection_window_destroyed.
15498         Removed mask_off_x/y from GdkCursorPrivateFB.
15499         Removed hbearing, added top, left to PangoFBGlyphInfo.
15500
15501         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15502         Call _gdk_selection_window_destroyed
15503         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
15504         the root window has been created.
15505         (static_dx_hack, static_dy_hack, compare_draw_rects,
15506         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
15507         in region. They are already sorted. Instead just traverse them in
15508         reverse if draw_direction < 0.
15509         
15510         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15511         Double-clicks must be sent after the normal button_press.
15512         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
15513         
15514         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
15515         Pass _gdk_fb_screen_gc instead of NULL.
15516
15517         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
15518         Initialize gdk_selection_property.
15519         (gdk_event_make): Remove unused code.
15520
15521         * gdk/linux-fb/gdkcursor-fb.c:
15522         Make the pixmap for the cursor the same size as the mask. Also remove
15523         the mask_off_x/y fields in GdkCursorPrivateFB and combine
15524         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
15525         Now the whole cursor is visible.
15526
15527         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15528         Fix bug where xdest+height instead of ydest+height was used
15529         to calculate if the source and dest overlapped. This fixes the
15530         redraw bug when the main window in testgtk was scrolled when
15531         partially covered by a tall window.
15532         Copy rectangles in region in order depending on draw_direction.
15533         Also moved the draw_direction flipping of start_y and end_y into
15534         the gc functions, as this might not be what all of them want.
15535         (gdk_fb_draw_lines): Support dashed lines.
15536         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
15537         so that the text is positioned correctly (was 1 pixel high).
15538
15539         gdk/linux-fb/gdkgc-fb.c:
15540         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
15541         all lines were drawn a pixel to short. Also checked the default of
15542         the rest of the values, and they're the same as X now.
15543
15544         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
15545         Clean up pixel positioning of the glyphs. Just use bgy->top and
15546         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
15547         to all divisions to get correct rounding behaviour.
15548
15549         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
15550         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
15551         Moved start_y/end_y flip into draw_drawable implementations.
15552         Flip also x rendering when draw_direction < 0.
15553         Remove unneccesary multiply with draw_direction.
15554
15555 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
15556
15557         * docs/tutorial/gtk-tut.sgml:
15558           - get rid of gtk_toggle_button_toggled FUD
15559           - start DND section - needs work - based on:
15560                 http://wolfpack.twu.net/docs/gtkdnd/
15561
15562 2000-11-22  Alexander Larsson  <alexl@redhat.com>
15563
15564         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15565         Correct calculation of font metrics. Now GtkEntrys have sane
15566         size.
15567
15568 2000-11-22  Alexander Larsson  <alexl@redhat.com>
15569
15570         * gdk/gdktypes.h:
15571         Add new type GdkSpan
15572         
15573         * docs/reference/gdk/gdk-sections.txt,
15574         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
15575         gdk/gdkregion.h:
15576         Implement and document gdk_region_spans_intersect_foreach.
15577
15578         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
15579         Add new file gdkrender-fb.c which contains all core
15580         rendering code.
15581         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
15582         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
15583         (optimized rectangle fillers).
15584
15585         * gdk/linux-fb/gdkdrawable-fb2.c:
15586         Move all rendering code to gdkrender-fb.c.
15587         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
15588         Use the new span intersection functions in gdk_fb_fill_spans.
15589         gdk_fb_draw_rectangle() clips filled rectangles and calls
15590         gc->fill_rectangle with the result.
15591         gdk_fb_fill_spans() gets extra argument "sorted".
15592
15593         * gdk/linux-fb/gdkevents-fb.c:
15594         Remove unused includes and defines.
15595         New function gdk_fb_get_time() to get correct time for events.
15596
15597         * gdk/linux-fb/gdkinput-ps2.c:
15598         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
15599         Make sure to set the time of all events.
15600
15601         * gdk/linux-fb/gdkmain-fb.c:
15602         Use gdk_fb_get_time ().
15603
15604         * gdk/linux-fb/gdkprivate-fb.h:
15605         New virtual GC calls: fill_span & fill_rectangle.
15606         Export gdk_fb_get_time().
15607         gdk_fb_fill_spans() gets extra argument "sorted".
15608
15609         * gdk/linux-fb/mi*.c:
15610         Use GdkSpan instead of GdkRectangle.
15611         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
15612         from XFree 4 source)
15613         
15614 2000-11-22    <jrb@redhat.com>
15615
15616         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
15617         reversing the order in an if statement will do.  Doing so managed
15618         to make the treemodelsort half work.  Other half will follow after
15619         I get the insert function fully fixed.
15620
15621 2000-11-21  Elliot Lee  <sopwith@redhat.com>
15622         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
15623         more than 2 bits. Besides, I need to implement an evil hack. :)
15624
15625 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
15626
15627         * docs/tutorial/gtk-tut.sgml: minor corrections
15628
15629 2000-11-20  Jonathan Blandford <jrb@redhat.com>
15630         * gtk/gtktreemodelsort.h: Add convertion functions to let you
15631           convert to and from relative path's and iters.
15632
15633         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
15634           testing sorting functions a bit better.  Currently broken -- will
15635           fix in morning.
15636
15637 2000-11-20  Havoc Pennington  <hp@redhat.com>
15638
15639         * gtk/gtkwidget.c: Documented a bunch of functions in here
15640         (gtk_widget_realize): Warn if you try to realize
15641         a widget with no parent that isn't a toplevel
15642         (gtk_widget_intersect): return a gboolean
15643
15644 2000-11-20  Havoc Pennington  <hp@redhat.com>
15645
15646         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
15647         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
15648         scrolling to be implemented in GDK to finish. Also, right now
15649         we just size_allocate all children on every layout change,
15650         which is pretty lame. Test commented out of testtext.c, 
15651         until it works better.
15652
15653 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
15654
15655         * gdk/linux-fb/gdkdrawable-fb2.c:
15656         Removed unused arguments from gdk_fb_drawable_get_pixel().
15657
15658         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
15659         Renamed fidur specific mouse packet data in MouseDevice to
15660         generic. Used it in ps2 mouse handling code to avoid blocking
15661         reads.
15662
15663 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
15664
15665         * demos/gtk-demo/main.c: Changed to have the list become
15666         non-italic when the demo window is destroyed through an external
15667         event (like a close button).  Doing so found three bugs in the
15668         widget.
15669
15670         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
15671
15672         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
15673         we actually set the cell.
15674
15675         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
15676
15677         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
15678         free a leaked path.  Thanks memprof.
15679
15680 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
15681
15682         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
15683         off-by-one error when destroying allocated segments
15684         on failure. (Elliot)
15685
15686 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
15687
15688         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
15689         memleaks found by Evan Martin.
15690
15691 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
15692
15693         * Released 1.3.2
15694         
15695         * NEWS: Updates for 1.3.2
15696
15697 2000-11-17  Tor Lillqvist  <tml@iki.fi>
15698
15699         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
15700         but in general for window system specific events.
15701
15702         * gtk/gtk.def
15703         * gtk/makefile.mingw.in
15704         * gtk/makefile.msc.in: Update.
15705         
15706         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
15707
15708 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
15709
15710         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
15711         distribute gtk.immodules.
15712
15713         * gtk/Makefile.am (install-data-local): Don't install the
15714         gtk.immodules file created for the uninstalled modules;
15715         instead run gtk-query-immodules after install
15716
15717 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
15718
15719         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
15720         -rpath to the right install location.
15721
15722         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
15723         -export-dynamic.
15724
15725         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
15726         properly.
15727
15728 2000-11-15  Havoc Pennington  <hp@pobox.com>
15729
15730         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
15731         patch from Mikael Hermansson to temporarily stop blinking while
15732         the user is using the keyboard to type or navigate. 
15733
15734         Also, when blinking, stay on for longer than we stay off. Also,
15735         return from start_cursor_blink if !cursor_visible, to save
15736         checking that flag all over the place before we call
15737         start_cursor_blink.
15738
15739 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
15740
15741         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
15742         only contain a "fontset" line, which is now ignored.
15743
15744         * gtk/gtkentry.c (gtk_entry_button_release): Make 
15745         double-click-to-select-word work.
15746         
15747 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
15748
15749         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
15750         Don't move back one char when we are actually at the end of the 
15751         paragraph.
15752
15753 2000-11-15  Robert Brady  <robert@suse.co.uk>
15754
15755         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
15756         'o' < 'p'.
15757         
15758         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
15759         bind_textdomain_codeset.
15760
15761         (gtk_init_check): Make the warning about translating default:LTR
15762         sterner.
15763         
15764 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
15765
15766         * **/Makefile.am : remove unecessary rules for win32-specific
15767         config-substituted targets. If you want these rules, use
15768         --enable-maintainer-mode (called automatically by autogen.sh).
15769         Stops a lot of unneccessary make-time warnings.
15770
15771         * gtk/gtktext{layout,display}.c: Factor in total width as
15772         well as screen when figuring alignment for word-wrap as well as
15773         no wrap; this is necessary to handle lines that cannot be wrapped
15774         at all.
15775
15776 2000-11-15  Havoc Pennington  <hp@redhat.com>
15777
15778         * gtk/testtext.c: Implement essential color cycling feature
15779
15780 2000-11-15  Havoc Pennington  <hp@redhat.com>
15781
15782         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
15783         when we invalidate the main window.
15784
15785         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
15786         GtkTextView will now invalidate the side windows for us when text
15787         changes.
15788
15789 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
15790
15791         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
15792         unconditionally, since we may need to update the horizontal
15793         scrollbars even if the height didn't change.
15794
15795         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
15796         the extra attrs, since some of them affect size.
15797
15798         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
15799         x_offset correctly.
15800
15801 2000-11-15  Havoc Pennington  <hp@redhat.com>
15802
15803         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
15804         don't move the first line out into the margin, instead move the
15805         whole paragraph in order to make space for the first line within 
15806         the margin
15807
15808 2000-11-15  Havoc Pennington  <hp@redhat.com>
15809
15810         * gtk/gtktextview.c (changed_handler): offset redraw rect by
15811         xoffset in addition to yoffset, so horizontal scrolling doesn't
15812         break redraws
15813
15814 2000-11-15  Havoc Pennington  <hp@redhat.com>
15815
15816         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
15817         from the cursor
15818         (render_layout_line): fix reversed test that caused weird
15819         underlines to get drawn
15820
15821 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
15822
15823         * gdk/linux-fb/gdkprivate-fb.h:
15824         Fix debug macros.
15825         
15826 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
15827
15828         * gdk/linux-fb/gdkprivate-fb.h:
15829         Added virtual functions set_pixel, get_color,
15830         fill_span and draw_drawable to the GC.
15831         Added global _gdk_fb_screen_gc to use instead of
15832         NULL when drawing to the screen.
15833         Added _gdk_fb_gc_calc_state() prototype.
15834
15835         * gdk/linux-fb/gdkgc-fb.c:
15836         Call _gdk_fb_gc_calc_state() on any gc state change.
15837
15838         * gdk/linux-fb/gdkglobals-fb.c:
15839         Add _gdk_fb_screen_gc
15840                 
15841         * gdk/linux-fb/gdkdrawable-fb2.c:
15842         _gdk_fb_gc_calc_state() calculates best functions
15843         for the GC state and depth.
15844         Moved bpp specialized code to separate functions.
15845         Added optimized 24 bpp AA draw_drawable.
15846
15847         * gdk/linux-fb/gdkevents-fb.c:
15848         Silence gcc warning.
15849
15850         * gdk/linux-fb/gdkimage-fb.c:
15851         Use _gdk_fb_screen_gc
15852
15853         * gdk/linux-fb/gdkwindow-fb.c:
15854         Init and use _gdk_fb_screen_gc
15855
15856         * gdk/linux-fb/mitypes.h:
15857         Remove unused types.
15858
15859 2000-11-14  Havoc Pennington  <hp@pobox.com>
15860
15861         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
15862         to pixels
15863
15864 2000-11-14  Havoc Pennington  <hp@pobox.com>
15865
15866         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
15867
15868         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
15869         unknown char, no real reason we were using a variable. 
15870         Remove gtk_text_unknown_char variable. Fix all the text widget
15871         files accordingly.
15872
15873         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
15874         since the Unicode spec seems to prefer that character for our
15875         purposes.
15876
15877 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
15878
15879         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
15880         value of g_getenv() isn't freeable, so g_strdup it.
15881
15882         * modules/input/inuktitut.c: Inuktitut input method.
15883
15884         * modules/input/Makefile.am: Build this.
15885         
15886 2000-11-14  Elliot Lee  <sopwith@redhat.com>
15887
15888         * gtk/Makefile.am: Install gtk.immodules, needed for operation
15889         of gtk programs.
15890
15891 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
15892
15893         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
15894         reversed > that was causing Home to go to end of previous line.
15895
15896         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
15897         modified-keypresses (leave for bindings.)
15898
15899         * modules/input/Makefile.am: Remove useless -export-dynamic
15900         from module LDFLAGS.
15901
15902 2000-11-14  Havoc Pennington  <hp@redhat.com>
15903
15904         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
15905         higher.
15906
15907         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
15908         account. Also, render rise, underline, background, etc. for
15909         pixbufs as well as text. Also, draw underlines one pixel higher.
15910
15911         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
15912         PangoAttribute for the rise, so it gets drawn properly. Also,
15913         add the GtkTextAppearance attribute for pixbuf/widget segments
15914         as well; we should go ahead and have rise, underline, background,
15915         stipple work for those
15916
15917         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
15918         Pango
15919
15920 2000-11-15  Tor Lillqvist  <tml@iki.fi>
15921
15922         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
15923
15924         * gtk/gtk.def: Update.
15925
15926         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
15927         included.
15928         (gtk_rc_get_im_module_file): Use run-time installation directory
15929         on Win32.
15930
15931         * gdk/win32/rc/gdk.rc: Remove.
15932         * gdk/win32/rc/gdk.rc.in: New file.
15933         * gdk/win32/rc/Makefile.am: New file
15934         * gdk/win32/Makefile.am: Corresponding changes.
15935
15936         * gtk/gtk.rc: Remove.
15937         * gtk/gtk-win32.rc.in: New file.
15938         * gtk/Makefile.am: Corresponding changes.
15939
15940         * configure.in: Corresponding changes.
15941
15942         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
15943         has a built gtkcompat.h. Developers using CVS code on Win32 can
15944         hand-edit it from gtkcompat.h.in.
15945
15946         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
15947         gtkcompat.h from gtkcompat.h.win32.
15948
15949 2000-11-14  Havoc Pennington  <hp@redhat.com>
15950
15951         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
15952         to default to GDK_ACTION_MOVE if the drag is within a single
15953         widget. Defaults to GDK_ACTION_COPY between widgets.
15954
15955 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
15956
15957         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
15958
15959         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
15960
15961         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
15962         srcdir != builddir
15963
15964         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
15965
15966         * configure.in (GTK_VERSION): Up to 1.3.2
15967
15968         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
15969         gtkimcontextxim.h
15970
15971         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
15972         missing doc comment.
15973
15974 2000-11-14  Alexander Larsson  <alexl@redhat.com>
15975
15976         * modules/linux-fb/basic.c:
15977         Use the glib iconv wrappers.
15978
15979 2000-11-13  Havoc Pennington  <hp@pobox.com>
15980
15981         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
15982         still more bugs.
15983
15984         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
15985         scroll the GdkWindows before realization.
15986
15987 2000-11-13  Havoc Pennington  <hp@redhat.com>
15988
15989         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
15990         where GC didn't always get updated properly
15991
15992         * demos/gtk-demo/textview.c (create_tags): Use subattributes
15993         of fonts instead of setting the entire font
15994
15995         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
15996         setting entire font
15997
15998         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
15999
16000         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
16001         a bunch of individually-settable font attributes. You can still 
16002         use the "font" and "font_desc" args, they just set all the font
16003         attributes at once.
16004
16005 2000-11-13 Elliot Lee <sopwith@redhat.com>
16006
16007         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
16008
16009 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
16010
16011         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
16012         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
16013
16014         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
16015         work better.
16016
16017 2000-11-13  Havoc Pennington  <hp@redhat.com>
16018
16019         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
16020         the module file.
16021
16022         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
16023         dest->language
16024
16025         * gtk/testtext.c: Test pixels above/below/inside paragraphs
16026         settings
16027
16028         * gtk/gtktextview.c: Implement object args and setters/getters for
16029         all the aspects of the GtkTextAttributes that are not set from
16030         GtkWidget attributes. This is spacing, justification, margins,
16031         etc.
16032
16033         (gtk_text_view_set_arg)
16034         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
16035         args
16036         (gtk_text_view_class_init): Add args for justify, left_margin,
16037         right_margin, indent, and tabs
16038         
16039
16040         * gtk/gtktextlayout.c (set_para_values): fix to display indent
16041         attribute properly
16042
16043         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
16044         replace with indent attribute
16045
16046         * gtk/gtktextlayout.c (set_para_values): multiply indent by
16047         PANGO_SCALE
16048
16049         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
16050         rearranging code to do that
16051         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
16052         i.e. don't subtract the top_margin first, just to keep
16053         all margin-futzing in one place.
16054
16055         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
16056
16057         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
16058         special case of last line, Pango now handles this itself.
16059         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
16060         Y coordinate
16061         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
16062         (find_display_line_above): wasn't moving the byte index as it
16063         iterated over lines, so always returned byte 0. Also, port to use
16064         PangoLayoutIter.
16065         (find_display_line_below): same problem as
16066         find_display_line_above. Also, port to use PangoLayoutIter.
16067
16068 2000-11-13  Alexander Larsson  <alexl@redhat.com>
16069
16070         * gdk/linux-fb/*.[ch]:
16071         Massive reindent to gtk+ standard. My hands hurt.
16072
16073         * gdk/linux-fb/gdkcolor-fb.c:
16074         Move GdkColorPrivateFB from inherited to windowing_data
16075
16076         * gdk/linux-fb/gdkcursor-fb.c:
16077         _gdk_cursor_new_from_pixmap made static
16078
16079         * gdk/linux-fb/gdkdnd-fb.c:
16080         GdkDragContextPrivate moved to windowing_data
16081
16082         * gdk/linux-fb/gdkdrawable-fb2.c:
16083         Removed endian.h, use glib endianness macros instead
16084         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
16085         and GDK_DRAWABLE_IMPL_FBDATA
16086
16087         * gdk/linux-fb/gdkfont-fb.c:
16088         Add empty gdk_font_load(). Needed for linking of Gtk+.
16089
16090         * gdk/linux-fb/gdkimage-fb.c:
16091         Removed endian.h, use glib endianness macros instead
16092         Moved GdkImagePrivateFB to windowing_data
16093         gdk_image_new_bitmap didn't always allocate enough
16094         memory.
16095
16096         * gdk/linux-fb/gdkinput-ps2.c:
16097         Added semi-working support for MS serial mice.
16098
16099         * gdk/linux-fb/gdkprivate-fb.h:
16100         s/GdkWindowPrivate/GdkWindowObject/
16101         Removed GdkWindowPrivate typedef
16102         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
16103         Removed GDK_DRAWABLE_P
16104         Move GdkColorPrivateFB from inherited to windowing_data
16105         Moved GdkImagePrivateFB to windowing_data
16106
16107         * gdk/linux-fb/gdkvisual-fb.c:
16108         Removed some unused debug code.
16109
16110         * gdk/linux-fb/gdkwindow-fb.c:
16111         Use stock cursors instead of including X headers.
16112         s/GdkWindowPrivate/GdkWindowObject/
16113
16114         * gdk/linux-fb/mitypes.h:
16115         Removed unused types.
16116
16117         * modules/linux-fb/basic.c:
16118         Use the pango fribidi wrappers.
16119
16120 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
16121
16122         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
16123         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
16124         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
16125         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
16126         GEqualFunc where applicable.
16127         
16128         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
16129         pango_font_description_equal as changed in pango.
16130         
16131         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
16132
16133         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
16134
16135         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
16136
16137         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
16138
16139         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
16140
16141         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
16142
16143         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
16144         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
16145
16146         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
16147         gtk_rc_styles_compare -> gtk_rc_styles_equal.
16148
16149 2000-11-12  Havoc Pennington  <hp@pobox.com>
16150
16151         * demos/gtk-demo/Makefile.am (democodedir): change demo install
16152         dir to datadir/gtk+-2.0/demo
16153
16154         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
16155         sorts of text widget and Pango font bugs. Urgh.
16156
16157         * demos/gtk-demo/Makefile.am (demos): Add textview.c
16158
16159         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
16160         tree that you should double click to see the demo. Fix 
16161         types of variables to reflect changed return values from 
16162         GtkTreeStore and GtkTreeViewColumn constructors.
16163
16164         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
16165         newly-created buffer to prepare for GObject semantics
16166
16167         * gtk/testtext.c: don't leak the buffer with GObject semantics
16168
16169         * gtk/testtextbuffer.c: ditto
16170         
16171 2000-11-12  Havoc Pennington  <hp@pobox.com>
16172
16173         Rename this testgtk to gtk-demo to avoid confusion, and 
16174         install it so people can use it as a supplement to 
16175         the documentation.
16176         
16177         * demos/gtk-demo: Moved from demos/testgtk
16178
16179         * demos/testgtk: Removed
16180
16181         * configure.in: make Makefile in gtk-demo
16182         
16183         * demos/gtk-demo/Makefile.am: Install sample source to 
16184         datadir/gtk-demo (maybe there's a better place?), and 
16185         rename the binary to gtk-demo
16186         
16187         * demos/gtk-demo/main.c (load_file): Load installed sample
16188         source if source isn't found in pwd.
16189
16190 2000-11-09  Havoc Pennington  <hp@pobox.com>
16191
16192         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
16193         argument to set the char displayed when visibility == FALSE
16194         (gtk_entry_create_layout): If !entry->visible, replace 
16195         all chars with the "invisible char"
16196
16197         * gtk/testgtk.c: Test the invisible_char deal
16198         
16199 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
16200
16201         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
16202         can't get a native font in the right encoding.
16203
16204 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
16205
16206         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
16207         respectively.
16208
16209 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
16210
16211         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
16212         Fix warning when moving between paragraphs.
16213
16214         * gtk/gtkentry.[ch]: Change move => move_cursor, 
16215         delete => delete_from_cursor, insert => insert_at_cursor
16216
16217 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
16218
16219         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
16220
16221         * modules/input/imthai-broken.c: A Thai input method for use if
16222         Thai keys are really generating Latin1 keysyms.
16223
16224         * modules/input/Makefile.am: Build these.
16225
16226 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
16227
16228         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
16229         g_filename_{to,from}_utf8 now takes an extra parameter.
16230
16231         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
16232         strftime into UTF-8.
16233
16234         (column_from_x, gtk_calendar_paint_day_names): Support RTL
16235         calendars.
16236
16237         (gtk_calendar_paint_day_names): Draw day names in the right 
16238         place.
16239         
16240 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
16241
16242         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
16243         problem with using result of g_get_charset() backwards -
16244         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
16245
16246         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
16247         negative min_width/height and max_width/height to
16248         mean "requisition"; this allows setting a window
16249         to be user-resizable in only one direction easily.
16250
16251         * gtk/testgtk.c (create_main_window): Remove hard-coded
16252         usize - set a default size in the vertical direction.
16253
16254 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
16255
16256         * gtk/gtkrange.c: Add some missing casts. Support 
16257         2 and 3 button clicks on the arrows to mean 
16258         "move by pages" and "jump to end". (Like gtkspinbutton)
16259
16260 2000-11-12 Hans Breuer <Hans@Breuer.Org>
16261
16262         * gdk/win32/makefile.msc : reflect build module changes
16263
16264         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
16265         from GdkPixmap*, cast implementation member instead.
16266
16267         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
16268         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
16269         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
16270         more Gdi functions return value checking. 
16271         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
16272         GdkImagePrivateWin32 *.
16273
16274         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
16275         menus useable again. Add #pragma message to keep reminded on this issue.
16276         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
16277         windows. This allows to enable backing store on Win32!
16278
16279         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
16280         in drawable is of impl type. Correct specific type checks appropriate.
16281  
16282         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
16283         GDK_WINDOW_DESTROYED before allocating new resources.
16284
16285         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
16286
16287         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
16288         (gdk_window_foreign_new) initialize parent handle.
16289         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
16290
16291         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
16292         Let the GDI invalidate the window on MoveWindow call to fix scrolling
16293         problems (e.g. main buttons in testgtk). 
16294
16295 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
16296
16297         * gtk/gtkentry.c (gtk_entry_key_press): Call 
16298         gtk_widget_activate for GDK_Return.
16299
16300         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
16301         of preedit cursor position.
16302
16303 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
16304
16305         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
16306         static.
16307
16308 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
16309
16310         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
16311         out support for multiple locales; that simple doesn't
16312         work reliably with current Xlib
16313
16314         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
16315         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
16316         Add support for positioning the cursor within the preedit string.
16317
16318 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
16319
16320         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
16321         at XIM input method module.
16322
16323         * gtk/gtktextview.c: Check for bindings after passing
16324         events to im context filter.
16325
16326 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
16327
16328         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
16329         empty attribute lists properly.
16330
16331 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
16332
16333         * gtk/queryimmodules.c (main): Return non-zero exit
16334         status if errors were encountered querying any
16335         modules.
16336
16337         * modules/input/Makefile.am (moduledir): remove
16338         leftover bin program target.
16339
16340         * docs/make-todo: Fix typo in error message.
16341
16342 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
16343
16344         * configure.in: Add modules/input/Makefile
16345
16346 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
16347
16348         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
16349         don't include gtkthemes.h.
16350
16351         * gtk/testgtk.c gtk/testtext.c: Set environment variables
16352         to point
16353
16354         * gtk/Makefile.am: Add new .c and .h files, build 
16355         gtk-query-immodules and use it to create a gtk.immodules
16356         file for use of test programs.
16357
16358         * gtk/gtkpreview.c: remove extra blank line.
16359
16360 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
16361
16362         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
16363         Add the ability to add extra tables beyond the default
16364         one, and also the ability to have compose sequences 
16365         that are prefixes of other compose sequences. 
16366
16367         * gtk/gtkimcontextsimple.c: Export a preedit string which
16368         consists of possible candidates for keystrokes that have
16369         been entered but not yet committed.
16370
16371         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
16372         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
16373
16374         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
16375         Add a function to add input-method switching menu items
16376         to a menu.
16377
16378         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
16379         when switching input methods.
16380
16381         * gtk/gtkimcontextsimple.[ch]: Change the format of
16382         the compose table to allow compose tables of different
16383         lengths / sequence.
16384
16385 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
16386
16387         * gtk/gtkimmodule.[ch]: Support routines for loading
16388         GtkIMContext implementations dynamically at runtime.
16389
16390         * modules/input/imcyrillic-translit.c: A sample input
16391         method (based on GtkIMContextSimple with an extra table),
16392         which demonstrates preedit strings and the module
16393         system for input modules
16394
16395         * gtk/queryimmodules.c: Program to query the available
16396         input modules and write the results into a file.
16397          
16398         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
16399         extra config options "im_module_file" (cache file for
16400         input method modules), and "im_module_path" - path
16401         to look for modules when generating cache file.
16402
16403         This doesn't scale.
16404
16405 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
16406
16407         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
16408         generic code from gtkthemes into a new abstraction
16409         GtkModule which has the logic for implementing
16410         a loadable module which implements a number of 
16411         GObject types.
16412
16413 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
16414
16415         * gtk/gtkeditable.[ch]: Convert GtkEditable from
16416         a class into an interface  
16417         
16418         * gtk/gtkoldeditable.[ch]: Move the old editable
16419         implementation into here, so legacy widgets can
16420         still rely on the implemenation. GtkOldEditable
16421         exports GtkEditable. Make selection handling
16422         code use new text conversion functions (and
16423         handle UTF-8 as a side-effect). Use GtkClipboard
16424         for CLIPBOARD.
16425
16426         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
16427         Adopt to match above changes.
16428
16429         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
16430         avoid GtkOldEditable implementation. Restructure
16431         to reduce number of places that modify state directly.
16432         Move to GtkBindingSet. Display the preedit string.
16433         Queue recomputation of PangoLayout and scroll position
16434         to improve effiency of doing complex changes naively.
16435         Add a menu with cut/copy/paste and input method selection.
16436
16437 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
16438
16439         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
16440         to set preedit string and attributes; display preedit string by
16441         inserting string and attributes at cursor when creating the
16442         GtkTextLineDisplay.
16443
16444         * gtk/gtktextlayout.c: Move all conversions between byte
16445         positions in PangoLayout and GtkTextIter into new functions
16446         line_display_iter_to_index/index_to_iter that properly
16447         handle the preedit string.
16448
16449         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
16450         it to return const char * (eventually will end up
16451         as GCONST char *, most likely.)
16452
16453         * gtk/gtktextview.[ch]: Handle the preedit string, call
16454         gtk_im_context_reset() as necessary, add a menu to switch
16455         input methods.
16456         
16457         * gtk/gtktextlayout.[ch]: Remove useless
16458         gtk_text_layout_get_log_attrs() function.
16459
16460 2000-11-11  Tor Lillqvist  <tml@iki.fi>
16461
16462         * gdk/gdk.def
16463         * gtk/gtk.def: Update.
16464
16465         * gdk/win32/*.c: Add last argument to g_type_register_static()
16466         calls.
16467
16468         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
16469
16470         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
16471         generated by older wheel mouse drivers. Get the correct y
16472         coordinate from WM_MOUSEWHEEL messages.
16473
16474         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
16475         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
16476         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
16477         Debugging functions.
16478
16479         * gdk/win32/gdkprivate-win32.h: Declare them.
16480
16481         * gdk/win32/gdkinput-win32.h: Add declaration for
16482         gdk_input_window_destroy().
16483
16484         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
16485
16486 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
16487
16488         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
16489         function to help handle keeping things in sync.
16490
16491 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
16492
16493         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
16494         BOXED marshallers.
16495
16496         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
16497         (gtk_list_store_class_init): use the new BOXED marshallers.
16498
16499         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
16500         new_with_values to new_with_types.
16501         (gtk_tree_store_get_column_type): add this.
16502         (gtk_tree_store_class_init): use the new BOXED marshallers.
16503
16504         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
16505         mirror some POINTER marshallers.
16506
16507 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
16508
16509         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
16510         allow more interesting iterators.  Also, made the lifecycle of
16511         iterators more explicit.
16512
16513         * gtk/gtktreemodelsort.[ch]: New model for sorting.
16514
16515         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
16516         types.
16517
16518 2000-11-09  Alexander Larsson  <alexl@redhat.com>
16519
16520         * demos/testgtk/menus.c:
16521         Changes to make the new testgtk compile after
16522         gtk_menu_append was removed.
16523
16524         * gdk/linux-fb/gdkdrawable-fb2.c
16525         (gdk_fb_get_depth, gdk_fb_get_visual,
16526         gdk_drawable_impl_fb_class_init): Implement
16527         these drawable functions. Now GtkImages work again.
16528
16529         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
16530
16531         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
16532         
16533         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
16534         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
16535         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
16536         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
16537
16538 2000-11-08  Havoc Pennington  <hp@pobox.com>
16539
16540         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
16541         visible_set args, don't know where these had gone, I thought they
16542         used to be there
16543
16544         * gtk/testtext.c: Add a menu item to apply invisibility tag;
16545         now we can test the feature and see that it's totally broken.
16546
16547 2000-11-08  Havoc Pennington  <hp@pobox.com>
16548
16549         Make DND copy pixbufs and tags when source and target share a 
16550         tag table.
16551         
16552         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
16553         in-process GTK_TEXT_BUFFER_CONTENTS target
16554         (gtk_text_view_drag_data_received): Paste from
16555         GTK_TEXT_BUFFER_CONTENTS if we receive it.
16556
16557 2000-11-08  Alexander Larsson  <alexl@redhat.com>
16558
16559         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
16560         API changes.
16561
16562         * gtk/gtkmenu.c: Add support for scrolling menus.
16563         Remove gtk_menu_append/prepend/insert, these have been moved to
16564         gtkcompat.h as #defines.
16565
16566         * gtk/gtkcompat.h.in:
16567         Add compatibility #defines for gtk_menu_append/prepend/insert
16568
16569         * gtk/gtkmenu.h: Add data needed for scrolling menus.
16570         GtkMenuPositionFunc gets an extra argument push_in.
16571         gtk_menu_append/prepend/insert removed.
16572         
16573         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
16574         positioning behaviour to fit to scrolling menus.
16575
16576         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
16577         into menuitem->submeny. That is wrong, and broke torn
16578         off submenus of torn off menus, since they were unrealized
16579         when the first menu was unrealized.
16580
16581         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
16582         gtk_menu_shell_select_item() since these need to be overridden in
16583         GtkMenu.
16584
16585         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
16586         positioning behaviour to fit to scrolling menus.
16587         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
16588         the current item so that it is prelighted when the menu pops up.
16589         This is a workaround to the fact that the menu doesn't get the
16590         initial enter event (due to grabs).
16591
16592         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
16593         s/gtk_menu_append/gtk_menu_shell_append/
16594
16595         * gtk/gtknotebook.c:
16596         s/gtk_menu_insert/gtk_menu_shell_insert/
16597
16598         * gtk/testgtk.c (create_menu, create_menus):
16599         Create the first menu with 50 items so that menu scrolling
16600         can be tested.
16601         
16602         
16603         Patch from Jonathan Blandford  <jrb@redhat.com>
16604
16605         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
16606         system to handle size requests.  First, we ask what the size of
16607         the toggle is.  Then, when allocating the size, we allocate the
16608         toggle_size first.  This way we can have multiple menu-item
16609         classes w/o needing a seperate class for each.
16610
16611         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
16612         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
16613
16614         * gtk/gtkcheckmenuitem.c
16615         (gtk_check_menu_item_toggle_size_request): New function to handle
16616         the toggle size-request.
16617
16618 2000-11-07  Havoc Pennington  <hp@redhat.com>
16619
16620         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
16621         Half-ass somewhat fix this function, so that scrolling to the
16622         insertion point works. Pango hacking is in the future to really
16623         fix it.
16624
16625         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
16626         length of data, no longer used.
16627
16628         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
16629         method contents in here, get rid of destroy method
16630         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
16631         that were backward. Remove debug spew.
16632         (cut_or_copy): Make the clipboard work with insert_range to
16633         preserve tags and pixbufs, not just the primary selection.
16634
16635 2000-11-07  Havoc Pennington  <hp@redhat.com>
16636
16637         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
16638         to gtk_text_mark_get_visible
16639
16640         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
16641         bug that was generating an invalid iterator
16642
16643         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
16644         ensure_char_offsets() in front of code placing the iter in an
16645         invalid state.
16646
16647         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
16648         make override_location arg const
16649         (paste): Replace the selection if we paste into the 
16650         current selection
16651
16652         * gtk/gtkselection.h: Remove "GtkSelectioData"
16653         (struct _GtkSelectionData): move the definition here.
16654
16655         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
16656         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
16657
16658         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
16659
16660         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
16661         (gtk_text_buffer_insert_range_interactive): implement
16662         (gtk_text_buffer_get_tags): Remove, replaced by
16663         gtk_text_iter_get_tags()
16664
16665         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
16666         limit parameter, to avoid infinite linear scan.
16667         (gtk_text_iter_backward_search): Add search limit
16668         (gtk_text_iter_forward_find_char): Add search limit
16669         (gtk_text_iter_backward_find_char): Add search limit
16670
16671 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
16672
16673         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16674         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
16675         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
16676         gdk/linux-fb/gdkwindow-fb.c:
16677         use g_object_new() instead of g_type_create_instance() which
16678         is a private function for fundamental type implementations.
16679
16680         * gdk/linux-fb/gdkinput-ps2.c:
16681         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
16682         instead just store the current modifier state. Add a (somewhat broken)
16683         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
16684         Rename exported function gdk_input_ps2_get_mouseinfo to
16685         gdk_input_get_mouseinfo.
16686
16687         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
16688         gdk/linux-fb/gdkwindow-fb.c:
16689         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
16690         
16691
16692 2000-11-02  Havoc Pennington  <hp@redhat.com>
16693
16694         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
16695         use stock buttons. Should be 100% source compatible, appropriate
16696         filesel fields now point to dialog->vbox and dialog->action_area.
16697         On the bizarre side, dialog->action_area and filesel->action_area
16698         are not the same widget.
16699         (gtk_file_selection_init): Put some padding around the selection
16700         entry, so it isn't touching the GtkDialog separator.    
16701
16702         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
16703         use stock buttons, etc. Should also be source compatible.
16704         Set the dialog default title in _init not _new().
16705         
16706         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
16707         Use stock buttons; don't put a button box inside the existing
16708         dialog button box. Don't bother with push/pop colormap anymore.
16709
16710         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
16711         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
16712         for message dialog, and necessary for the font selection and color
16713         selection with help and apply buttons.
16714         
16715         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
16716         to the created button widget. Set GTK_CAN_DEFAULT on the button.
16717         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
16718         between buttons, put less padding around the action area.
16719         (gtk_dialog_run): Exit on unmap rather than on destroy. 
16720         This will also exit the loop if the widget is hidden.
16721         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
16722         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
16723         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
16724         special-case delete event.
16725
16726         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
16727         formatting
16728         
16729 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
16730
16731         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
16732         button to temporarily disable position recording in the
16733         "saved position" test.
16734
16735 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
16736
16737         * gtk/gtkthemes.c: added compat code that temporarily implements
16738         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
16739         going to be revamped by owen's upcoming GtkModule patches, but
16740         untill then people want gtk to build, right? ;)
16741
16742 2000-11-04  Havoc Pennington  <hp@pobox.com>
16743
16744         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
16745         list
16746
16747         * docs/Changes-2.0.txt: Add note about
16748         gtk_container_get_toplevels()
16749
16750         * gtk/gtktextview.h: formatting
16751         
16752         * gtk/gtktextview.c: don't start descriptions with "Returns",
16753         confuses gtk-doc
16754
16755 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
16756
16757         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
16758         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
16759
16760 2000-11-03  Havoc Pennington  <hp@redhat.com>
16761
16762         * gtk/gtktexttagtable.c: Docs
16763         (gtk_text_tag_table_size): return a signed int
16764
16765         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
16766         (gtk_text_tag_event): make the event_object a GObject
16767
16768         * gtk/gtktextview.c: Write API docs for all functions.
16769
16770         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
16771         for gtk_text_view_get_window_type() called on one of the private
16772         windows.
16773
16774         * gtk/gtktextview.c: Instead of accessing text_view->buffer
16775         directly, call get_buffer() which demand-creates a default
16776         buffer. So gtk_text_view_new() can be used to create a view with a
16777         default buffer in it, if you just want an empty text box users can
16778         put data in. Useful for GUI builders also.
16779
16780 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
16781
16782         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
16783         the charset encodign portion MUST be in lowercase.
16784         * gtk/gtkrc.az: added file for Azeri language
16785
16786 2000-11-03  Havoc Pennington  <hp@redhat.com>
16787
16788         Get widgets working on the btree/buffer side. Display of them 
16789         still doesn't work.
16790         
16791         * gtk/gtktextview.c: start implementing child widget stuff
16792
16793         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
16794
16795         * gtk/gtktextlayout.c: handle embedded widgets
16796
16797         * gtk/gtktextdisplay.c: handle embedded widgets
16798
16799         * gtk/gtktextchild.c: Implement all the child anchor goo
16800
16801         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
16802         function
16803
16804         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
16805         (insert_pixbuf_or_widget_segment): abstract out common portions of 
16806         creating a child anchor or a pixbuf segment.
16807         (gtk_text_btree_create_child_anchor): new function
16808         (gtk_text_btree_unregister_child_anchor): new function
16809
16810         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
16811         allocate_child signal on GtkTextLayout
16812
16813         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
16814         values
16815         (gtk_text_iter_get_child_anchor): new function
16816
16817         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
16818         default handler for the changed signal, which calls
16819         gtk_text_buffer_set_modified(), instead of just always emitting
16820         changed then calling set_modified() manually. I guess this is
16821         maybe more flexible. It seems logical.
16822
16823 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
16824
16825         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
16826         now.
16827
16828         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
16829
16830 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
16831
16832         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
16833         been marked static.
16834
16835 2000-11-02  Havoc Pennington  <hp@redhat.com>
16836
16837         * gtk/testgtk.c (create_labels): had a test backward
16838
16839         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
16840         fields, so the dest GC ends up with the correct clip origin, 
16841         etc. Fixes a bug where colored labels didn't redraw 
16842         properly.
16843
16844 2000-11-02  Alexander Larsson  <alexl@redhat.com>
16845
16846         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16847         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
16848         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
16849         Add last argument to t_type_register_static call.
16850         
16851         * gdk/linux-fb/gdkdrawable-fb2.c:
16852         Add last argument to t_type_register_static call.
16853         export the get_image drawable virtual function.
16854
16855         * gdk/linux-fb/gdkimage-fb.c:
16856         Add last argument to t_type_register_static call.
16857         rename gtk_image_get to _gdk_fb_get_image and
16858         export it for use by gdkdrawable-fb2.
16859
16860         * gdk/linux-fb/gdkprivate-fb.h:
16861         export _gdk_fb_get_image.
16862
16863         * gdk/linux-fb/gdkselection-fb.c:
16864         Add new api call stubs.
16865
16866         * gtk/Makefile.am:
16867         Missing ( in linux-fb part.
16868
16869         * modules/linux-fb/Makefile.am:
16870         Must link with gdk_pixbuf or get unresolved symbol.
16871
16872 2000-11-01  Havoc Pennington  <hp@pobox.com>
16873
16874         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
16875         GTK_TYPE_TEXT_ITER and BOXED marshallers
16876
16877         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
16878
16879         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
16880         
16881         * gtk/gtk-boxed.defs: add GtkTextIter
16882
16883         * gtk/gtkmarshal.list: Add marshallers for text widget that 
16884         properly use OBJECT and BOXED
16885
16886 2000-11-01  Havoc Pennington  <hp@redhat.com>
16887
16888         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
16889
16890         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
16891         before returning it. 
16892         
16893 2000-11-01  Havoc Pennington  <hp@redhat.com>
16894
16895         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16896         Clip the rectangle to be rendered to the drawable, since
16897         get_from_drawable() requires a region within the drawable
16898
16899 2000-11-01  Havoc Pennington  <hp@redhat.com>
16900
16901         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
16902         from coordinates.
16903
16904 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
16905
16906         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
16907         it isn't NULL.
16908
16909 2000-11-01  Havoc Pennington  <hp@pobox.com>
16910
16911         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
16912         on a label
16913         (gtk_label_finalize): unref the attr list if any.
16914
16915         * gtk/testgtk.c (create_get_image): close test on second click
16916         (make_message_dialog): close dialog if it exists
16917
16918         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
16919
16920         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
16921         gdk-pixbuf
16922
16923         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
16924         from Pango markup format
16925         (gtk_label_set_markup_with_accel): ditto but with accelerator
16926         parsing
16927
16928         * gtk/gtkimage.c (gtk_image_expose): reformatting.
16929
16930         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
16931         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
16932         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
16933         call gdk_window_get_origin().
16934
16935         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16936         implement GDK_PIXBUF_ALPHA_FULL
16937         
16938 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
16939
16940         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
16941         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
16942         g_signal_handlers_disconnect_matched to block/unblock and disconnect
16943         multiple handlers respectively, instead of only treating the
16944         first handler found (bug reported by owen).
16945
16946 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
16947
16948         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
16949
16950         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
16951
16952         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
16953         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
16954         gtk/gtktreeviewcolumn.h: Fixed inline docs.
16955
16956         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
16957         widget.  Needs writing someday.
16958
16959         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
16960         the docs.
16961
16962 2000-10-30  Havoc Pennington  <hp@redhat.com>
16963
16964         * gtk/gtktextview.h, gtk/gtktextview.c:
16965         Rename delete_at_cursor delete_from_cursor, and 
16966         move to move_cursor.
16967
16968 2000-10-30  Havoc Pennington  <hp@redhat.com>
16969
16970         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
16971         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
16972         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
16973         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
16974         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
16975         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
16976         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
16977         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
16978         gtktexttypes.h, gtktextview.c, gtktextview.h:
16979
16980         Massive reindentation and reformatting. Arg alignment and comments
16981         still need fixing in various places.
16982
16983 2000-10-30  Havoc Pennington  <hp@redhat.com>
16984
16985         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
16986         to be named insert_at_cursor and delete_at_cursor so C++ can
16987         handle them.
16988
16989 2000-10-28  Tor Lillqvist  <tml@iki.fi>
16990
16991         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
16992         to get a double directory separator in case the home directory
16993         ends with one. This would cause trouble especially on Windows,
16994         where the path will be confused with the syntax for an an UNC
16995         (network share) path \\server\share\path.
16996         (gtk_rc_add_initial_default_files): Ditto.
16997
16998 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
16999
17000         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
17001
17002         * gtk/gtktextview.c: Use correct marshallers.
17003
17004 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
17005
17006         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
17007         use new iter stuff, and added all the appropriate signals et al.
17008
17009         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
17010         code is internal to gtk only.
17011
17012 2000-10-28  Tor Lillqvist  <tml@iki.fi>
17013
17014         * gtk/gtk.def
17015         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
17016         glib-genmarshal etc.
17017
17018 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
17019
17020         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
17021         parallel builds.
17022
17023 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
17024
17025         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
17026
17027 2000-10-27  Robert Brady  <robert@suse.co.uk>
17028
17029         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
17030         en_GB (British), ia (Interlingua).
17031
17032 2000-10-26  Havoc Pennington  <hp@redhat.com>
17033
17034         * gtk/gtktextiter.c (my_strrstr): fix constness warning
17035
17036         Fixed output of:
17037         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
17038         
17039         * gtk/gtktextsegment.c (char_segment_new): rename
17040         (_char_segment_new_from_two_strings): rename
17041         (_toggle_segment_new): rename
17042         
17043         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
17044         (make_clipboard_widget): make it static
17045         (text_get_func): static
17046         (text_clear_func): static
17047
17048         * gtk/gtkcolorsel.c (adjustment_changed): make this function
17049         static
17050         (hex_changed): make it static
17051         (hsv_changed): make it static
17052         (opacity_entry_changed): make it static
17053
17054         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
17055         (toggle_segment_check_func): rename with _gtk
17056
17057         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
17058         (_widget_segment_new): rename
17059         (_widget_segment_add): rename
17060         (_widget_segment_remove): rename
17061         (_widget_segment_ref): rename
17062         (_widget_segment_unref): rename
17063
17064         * gtk/gtktextmark.c (_mark_segment_new): Rename
17065         _gtk_mark_segment_new   
17066
17067 2000-10-26  Havoc Pennington  <hp@redhat.com>
17068
17069         * gtk/gtkmarshal.list: add new marshallers used by the text widget
17070         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
17071         types
17072
17073         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
17074         marshaller types
17075
17076         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
17077         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
17078         license on these files.
17079
17080         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
17081         work.
17082
17083         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
17084         runtime random number different for each tree, instead of 
17085         a constant I made up.
17086
17087 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
17088
17089         * gtk/Makefile.am: buncha cleanups, kludged build sources
17090         dependencies with a Makefile: oldest-source-stamp dependancy
17091         for the moment. automake is really fighting us here, with
17092         intentionally not allowing user-defined rules or dependancies
17093         prior to it's -include $(DEP_FILES) statement. sucks rocks!
17094
17095         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
17096         to public headers. tehy have a comment stating that they are
17097         "semi-public" aren't included by gtk.h and if enums popup there,
17098         they can be /*< skip >*/-ed.
17099
17100         * gtk/gtktextlayout.h: 
17101         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
17102         added LGPL... <SIGH>
17103
17104 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
17105
17106         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
17107         GtkTreeIter.  Added iterators everywhere.
17108
17109         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
17110
17111         * gtk/gtktreeviewselection.c: Changed to use the iterators.
17112
17113         * gtk/gtktreestore.c: Changed to use the iterators.
17114
17115         * gtk/gtkliststore.c: Commented out the code.  Will convert to
17116         iterators tomorrow.
17117
17118         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
17119         iterators tomorrow.
17120
17121         * gtk/treestoretest.c: Changed to use iterators.
17122
17123         * demos/testgtk/main.c: Moved to use the new iterator system.
17124
17125 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
17126
17127         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
17128         localization misbehaviour.
17129
17130         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
17131         a useless type without copy/free.
17132
17133         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
17134         of GTK_TYPE_CTREE_NODE.
17135
17136 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
17137
17138         * gtk/gtksignal.c:
17139         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
17140         applicable.
17141
17142         * gtk/gtk-boxed.defs (GtkSelectionData): specify
17143         gtk_selection_data_copy and gtk_selection_data_free
17144         do GtkSelectionData work as params in signals.
17145
17146 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
17147
17148         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
17149         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
17150         couldn't they at least give it a non-standard name?
17151         
17152         * gtk/gtktextlayout.c: arg! yet another implementation of
17153         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
17154
17155         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
17156         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
17157         home. now i know this _is_ a conspiracy.
17158
17159         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
17160         ::state-changed.
17161
17162         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
17163         (gtk_accel_group_create_add): marshaller signature fixups.
17164
17165         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
17166         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
17167
17168         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
17169         anymore.
17170
17171 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
17172
17173         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
17174         due to the signal system changes, it wouldn't build currently. to
17175         be fixed soon.
17176
17177         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
17178
17179         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
17180         so it needs gtk_marshal_VOID__ENUM() instead of
17181         gtk_marshal_NONE__UINT().
17182
17183         * gdk/gdk*.c: adapted type registration functions.
17184
17185         * gtk/gtkbindings.c:
17186         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
17187         gone.
17188
17189         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
17190
17191         * gtk/gtkobject.c:
17192         (gtk_object_destroy):
17193         (gtk_object_shutdown): fixed recursion guards. basically we have to
17194         catch the case where any of GObject.shutdown() or gtk_object_destroy()
17195         is called during ::destroy, and avoid recursion there.
17196
17197         * gtk/gtktypeutils.c:
17198         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
17199         boxed_copy/boxed_free. this needs a more general solution based on a
17200         publically installed code-generator utility.
17201
17202         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
17203         glib's gobject has support for that now.
17204         define GtkSignalMarshaller in terms of GSignalCMarshaller.
17205
17206 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
17207
17208         * gtk/gtksignal.[hc]:
17209         * gtk/gtkmarshal.[hc]:
17210         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
17211         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
17212         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
17213         care of that.
17214
17215         * *.c: marshaller name fixups.
17216
17217         * gtk/gtkmarshal.list: added a comment briefing the format.
17218
17219 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
17220
17221         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
17222         compatibility macros here now. more specifically, most of
17223         the API is preserved (yes, _most_, nonwithstanding the
17224         following exceptions listed, the API is stil lHUGE ;)
17225         things that got removed completely:
17226         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
17227         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
17228         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
17229         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
17230         gtk_signal_remove_emission_hook().
17231         non-functional functions variants:
17232         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
17233         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
17234         not supported anymore.
17235         (gtk_signal_compat_matched): new internal function to aid
17236         implementation of the compatibility macros, it  provides
17237         functionality to block/unblock/disconnect handlers based
17238         on func/data.
17239
17240         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
17241
17242         * *.c: adaptions to new type registration API signatures.
17243
17244 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
17245
17246         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
17247
17248 2000-10-25  Robert Brady  <robert@suse.co.uk>
17249
17250         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
17251         gdk_property_delete): If window == NULL, assume the root window.
17252         (restoring the behaviour that was in 1.2).
17253         
17254         * gtk/testtext.c (save_buffer): Allow creation of new files when
17255         saving.
17256
17257         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
17258         calls to read().
17259
17260 2000-10-25  Tor Lillqvist  <tml@iki.fi>
17261
17262         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
17263
17264         * gdk/win32/gdkdrawable-win32.c
17265         * gdk/win32/gdkimage-win32.c
17266         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
17267         X11 backend.
17268
17269         * gdk/win32/gdkcc-win32.c
17270         * gdk/win32/gdkcolor-win32.c
17271         * gdk/win32/gdkfont-win32.c
17272         * gdk/win32/gdkinput-win32.c
17273         * gdk/win32/gdkmain-win32.c
17274         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
17275
17276 2000-10-24  Havoc Pennington  <hp@redhat.com>
17277
17278         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
17279         it a static function
17280
17281         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
17282         redraw text when a tag is applied to it.
17283
17284         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
17285         (gtk_text_tag_affects_nonsize_appearance): private functions to
17286         see if a tag requires various kinds of redraw/layout to be queued
17287         up.
17288
17289         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
17290
17291         * gtk/testtext.c (fill_example_buffer): Put the cursor 
17292         at the start of the buffer, so search works by default
17293
17294         * gtk/gtktextiter.c (lines_match): init match_start always
17295
17296         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
17297         function, get iter at a line + a byte index
17298
17299         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
17300         to set byte position within a line
17301         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
17302
17303 2000-10-23  Havoc Pennington  <hp@redhat.com>
17304
17305         * gtk/testtext.c: Re-enable the "find" dialog
17306
17307         * gtk/testgtk.c: Add test for gdk_drawable_get_image
17308         
17309         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
17310         the arguments to gdk_draw_drawable were in the wrong order
17311         (gdk_window_paint_init_bg): This function was ignoring the
17312         init_region, instead of clipping to it, so the entire backing
17313         pixmap was cleared on every begin_paint()
17314         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
17315         was in here again, the loop kept using the same GtkWindowPaint
17316         over and over.
17317         (gdk_window_begin_paint_region): Fix a bug where we had two
17318         x_offset instead of x_offset and y_offset
17319
17320         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
17321         before we get the image.
17322         (gdk_draw_drawable): get the composite before we draw the drawable.
17323         (gdk_drawable_real_get_composite_drawable): default
17324         get_composite_drawable implementation that returns the drawable 
17325         itself
17326
17327         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
17328         get_composite_drawable virtual function
17329
17330         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
17331         list-walking bug
17332
17333         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
17334         make this work if the source drawable is a GdkDrawableImplX11
17335         instead of a public drawable type. This is really broken; the
17336         problem is that GdkDrawable needs a virtual method get_xid(), but
17337         of course that doesn't work in practice. Enter RTTI.
17338
17339         Also, improve mismatched depth message.
17340
17341         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
17342         GdkPixmap
17343
17344         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
17345         install _gdk_x11_get_image as our implementation of get_image
17346         
17347         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
17348         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
17349
17350         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
17351         gdk_drawable_get_image
17352
17353         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
17354
17355         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
17356         get_image
17357
17358         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
17359         trailing semicolon after for loop
17360
17361 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
17362
17363         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
17364         where font_desc for widget's context lagged widget's font_desc by
17365         one step.
17366
17367 2000-10-22  Tor Lillqvist  <tml@iki.fi>
17368
17369         * gdk/win32/gdkgc-win32.c
17370         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
17371
17372         * gtk/makefile.mingw.in
17373         * gtk/gtk.def: Updates.
17374
17375         * gtk/testgtk.c: sleep() is called _sleep in MS's C
17376         library.
17377
17378         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
17379
17380         * gtk/makefile.msc: Remove
17381
17382         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
17383
17384         * gtk/Makefile.am: Add it.
17385
17386         * configure.in: Generate it.
17387
17388         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
17389         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
17390         something even if not implemented, to satisfy picky MSVC.
17391
17392         Patches by Hans Breuer:
17393         
17394         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
17395         SetBkMode() and SetTextAlign() before calling
17396         pango_win32_render().
17397
17398         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
17399         Set hcliprgn to NULL after destroying it.
17400         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
17401
17402         * gdk/win32/gdkgeometry-win32.c
17403         (_gdk_windowing_window_queue_antiexpose): More effective
17404         implementation.
17405
17406         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
17407         depth as default, not the visual's.
17408
17409         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
17410         against empty title.
17411
17412         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
17413         IMAGE_PRIVATE_DATA.
17414
17415         * gdk/win32/gdkimage-win32.c: Use it.
17416
17417 2000-10-22  Robert Brady  <robert@suse.co.uk>
17418
17419         * configure.in: Check for bind_textdomain_codeset
17420
17421         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
17422         present, make use of it.
17423
17424         Add a translatable string "default:LTR" which, if translated
17425         to "default:RTL", will cause the default direction to be
17426         Right-to-Left.
17427
17428         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
17429         direction if marked as flippable.
17430
17431         * gtk/gtkhscale.c: Mark widget as flippable.
17432         
17433 2000-10-04  Havoc Pennington  <hp@redhat.com>
17434
17435         * gtk/testgtk.c (create_buttons): create some stock buttons
17436         with the default accel group
17437         (create_image): test some new GtkImage features
17438         (make_message_dialog): test GtkMessageDialog
17439         (create_modal_window): fix someone's bizzarro indentation
17440
17441         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
17442         GTK_WIN_POS_CENTER_ON_PARENT. 
17443         Add "destroy with parent" setting, which means the window goes
17444         away with its transient parent.
17445         (gtk_window_get_default_accel_group): get the default accel group
17446         for the window.
17447         (gtk_window_set_destroy_with_parent): set/unset destroy with
17448         parent flag
17449         (gtk_window_read_rcfiles): invalidate icon set caches
17450         after reloading rcfiles 
17451
17452         * gtk/gtkenums.h (GtkWindowPosition): add
17453         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
17454         on its parent window when the dialog is mapped for the first time.
17455
17456         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
17457         a simple message dialog class
17458         
17459         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
17460         handler to emit response signal, and maybe later it would
17461         honor a hide_on_delete flag - though that isn't there yet.
17462         Set border width on the vbox to 2, so we get some padding.      
17463         Use a button box for the action area.
17464         (gtk_dialog_key_press): synthesize a delete event if Esc
17465         is pressed and the GtkWidget key press handler didn't 
17466         handle the escape key.
17467         (gtk_dialog_new_with_buttons): new function creates a dialog
17468         with some default buttons in it.
17469         (gtk_dialog_add_action_widget): add an activatable widget
17470         as a button in the dialog - you can also add a non-activatable
17471         widget by accessing the action area directly.
17472         (gtk_dialog_add_button): add a simple button - stock ID or 
17473         label - to the action area
17474         (gtk_dialog_response): emit response signal
17475         (gtk_dialog_run): block waiting for the dialog, return 
17476         the response. Override normal delete_event behavior, so that 
17477         delete_event does nothing inside gtk_dialog_run().
17478         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
17479         emitted when an action widget is clicked or the dialog gets
17480         delete_event
17481
17482         * gtk/gtk.h: add gtkmessagedialog.h
17483
17484         * gtk/Makefile.am: add gtkmessagedialog.[hc]
17485
17486 2000-10-18  Havoc Pennington  <hp@redhat.com>
17487
17488         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
17489         where any number of empty lines would get skipped
17490
17491         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
17492         edge.
17493
17494         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
17495         warning about invalid iterators (explain more thoroughly)
17496         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
17497
17498         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
17499         big
17500
17501         * demos/*.c: Add error handling
17502
17503         * gtk/gtktextbuffer.c: don't modify const iterators
17504
17505         * gtk/gdk-pixbuf-loader.c: Add full error handling here
17506
17507         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
17508         on file load
17509
17510         * gtk/gtkiconfactory.c: Update to reflect addition of error
17511         handling to gdk-pixbuf loaders
17512
17513 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
17514
17515         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
17516         move to new modularized testgtk.
17517
17518 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
17519
17520         * gtk/gtktreeview.c: Draw the arrows correctly.
17521
17522         * gtk/gtktreemodel.c: Added user docs.
17523
17524         * gtk/gtk.h: remove gtktreedatalist.h.
17525
17526         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
17527         parent when generating my type.
17528
17529         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
17530         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
17531
17532 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
17533
17534         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
17535         GtkTreeModel from object to interface.
17536
17537 2000-10-16  Havoc Pennington  <hp@redhat.com>
17538
17539         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
17540         compilation
17541
17542 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
17543
17544         * gtk/gtktreeselection.c: Add API documentation to all public
17545         functions.
17546
17547         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
17548         functions.
17549
17550 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
17551
17552         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
17553         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
17554         docs to all public functions.
17555
17556         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
17557         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
17558         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
17559         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
17560         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
17561         issue.
17562
17563 2000-10-14  Robert Brady  <robert@suse.co.uk>
17564
17565         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
17566
17567 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
17568
17569         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
17570         values other then G_TYPE_STRING.
17571         * gtk/gtktreeselection.c: Minor commenting updates.
17572         * gtk/gtktreeview.c: Format updates.
17573
17574 2000-10-09  Tor Lillqvist  <tml@iki.fi>
17575
17576         * README.win32: Update.
17577
17578         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
17579         lines that had been deleted by mistake (?).
17580
17581         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
17582         also the case fg==white and bg==black (but still not randomly
17583         coloured cursors). Thanks to Wolfgang Sourdeau.
17584
17585         * gdk/win32/*.c: Silence gcc -Wall.
17586
17587         * gtk/gtk.def: Add missing entry points.
17588
17589         Fixes by Hans Breuer:
17590
17591         * gdk/makefile.msc
17592         * gdk/win32/makefile.msc: Update.
17593
17594         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
17595         some MSVC thing, presumably), cause breakpoint on failures. Add
17596         GDK_NOR case. Call g_log_set_always_fatal.
17597
17598         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
17599         should be pased by reference.
17600         
17601         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
17602         
17603         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
17604
17605         * gdk/win32/gdkevents-win32.c
17606         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
17607
17608         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
17609         implementation object.
17610
17611         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
17612         not just windows.
17613         
17614         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
17615         Use the wrapper object.
17616         
17617 2000-10-06  Havoc Pennington  <hp@redhat.com>
17618
17619         * Makefile.am (SRC_SUBDIRS): contrib subdir
17620
17621         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
17622         so it can be used in Xlib version
17623
17624         * demos/testpixbuf.c (update_timeout): error checking from 1.0
17625         tree
17626
17627         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
17628         change from 1.0 tree that returns first frame of animation
17629         if the loaded file is an animation.
17630
17631         * contrib: add new directory to hold stuff that comes with GTK+
17632         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
17633         
17634         * configure.in: add contrib/*
17635
17636 2000-10-05  Havoc Pennington  <hp@redhat.com>
17637
17638         * demos/testpixbuf-save.c: add pixbuf save test
17639
17640         * demos/Makefile.am: add testpixbuf-save.c
17641
17642 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
17643
17644         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
17645         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
17646         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
17647         * gtk/gtktreeselection.[ch]: Replaced
17648         "node_selected"/"node_unselected" signal with "selection_changed"
17649         signal.
17650
17651 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
17652
17653         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
17654         tree widget.
17655
17656 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
17657
17658         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
17659         drawing.
17660
17661 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
17662
17663         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
17664         Move list pointer forwards before removing item from
17665         list. (Crash reported by Salmaso Raffaele)
17666
17667         * gdk/gdkwindow.h: Remove spurious trailing ,
17668
17669         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
17670         dependencies on uninstalled libraries, sorry folks.
17671
17672 2000-10-04  Havoc Pennington  <hp@redhat.com>
17673
17674         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
17675         gtk/gtkiconfactory.c: Fix copyrights    
17676
17677         * demos/testpixbuf.c: add inline pixbuf test
17678         
17679 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
17680
17681         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
17682         Add gdk_window_iconify.
17683
17684         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
17685         (gdk_window_set_geometry_hints): Add win_gravity
17686         to geometry structure.
17687
17688         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
17689         Implement _NET_WM_PING.
17690
17691         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
17692         Set _NET_WM_PID on the client leader.
17693
17694         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
17695         Handle UTF-8 better.
17696
17697         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
17698         UTF-8 better, set _NET_WM_NAME as well. Only set
17699         icon name if it hasn't previously been explicitely 
17700         set.
17701
17702 2000-10-03  Havoc Pennington  <hp@redhat.com>
17703
17704         * gtk/testtextbuffer.c: clean up trailing whitespace,
17705         add extensive tests for tag toggle iteration.
17706         
17707         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
17708         distance
17709
17710         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
17711         optimize case where the tag root is on level 1
17712         (gtk_text_line_previous_could_contain_tag): attempt to implement
17713         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
17714         functionality
17715
17716         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
17717         Implement this, though not very efficiently.
17718
17719         * gtk/gtktextiterprivate.h: reformat
17720
17721         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
17722         iterator
17723
17724         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
17725         this to properly revalidate the iterators.
17726
17727         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
17728         properly at the end of the line (and therefore on empty lines)
17729
17730         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
17731         maybe we should return a value...
17732
17733 2000-10-03  Tor Lillqvist  <tml@iki.fi>
17734
17735         * config.h.win32: Guard definition of alloca(). glib.h now handles
17736         that.
17737
17738         * gdk/gdk.def
17739         * gtk/gtk.def: Add new entry points.
17740
17741         Changes just to make GTK+ build without errors on Win32. No hope
17742         of it working in its current state, though...:
17743         
17744         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
17745         some functions from the X11 backend, just to make GTK+ build.
17746
17747         * gdk/makefile.mingw.in
17748         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
17749         number. Add new object files.
17750
17751         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
17752         GetMessageTime to get timestamp (where on X11 uses
17753         gdk_x11_get_server_time()).
17754
17755 2000-10-02  Havoc Pennington  <hp@pobox.com>
17756
17757         * gtk/gtktextview.c: text_window_* weren't static and should have
17758         been.
17759         Start work on child widgets; not yet complete, syncing to 
17760         office computer.
17761
17762         * gtk/gtktextchild.h: change this to contain a public interface,
17763         starting work on child interfaces.
17764         * gtk/gtktextchildprivate.h: move private interfaces here
17765
17766         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
17767
17768         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
17769         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
17770         gtk/gtktextmark.c: copyright notices
17771
17772         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
17773         internal functions      
17774
17775         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
17776         internal function
17777
17778         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
17779         Reformatting    
17780
17781 2000-09-30  Havoc Pennington  <hp@pobox.com>
17782
17783         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
17784         NULL start/end pointers
17785
17786         * gtk/gtktextbuffer.c: Write some docs
17787         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
17788         NULL, so you can just check whether there's a selection.        
17789
17790         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
17791         cleanup_line or segments_changed ourselves, it gets done 
17792         in unlink_segment
17793
17794         * gtk/gtktextmark.h:
17795         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
17796         
17797         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
17798
17799         * gtk/gtktextmark.c: delete some more old Tk cruft
17800
17801         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
17802         mark before removing it, so we can emit MARK_DELETED with a valid
17803         pointer.
17804         (gtk_text_buffer_mark_set): hold ref across signal emission
17805
17806         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
17807         whining about attempts to delete special marks
17808
17809         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
17810         underscore, since it's internal.
17811
17812         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
17813         now implemented in terms of iterators in gtktextiter.h
17814
17815         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
17816         New function, destructively sets contents of buffer. Also 
17817         a convenient way to clear the buffer by setting text to ""
17818
17819         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
17820         multiline string literal
17821
17822         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
17823         text changes.
17824
17825         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
17826         is not dereferenceable
17827         (gtk_text_iter_forward_lines): fix return value
17828
17829 2000-09-29  Havoc Pennington  <hp@redhat.com>
17830
17831         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
17832
17833         * gtk/gtktextview.c: Implement drag thresholding; change functions 
17834         that set border window size to have nicer name
17835         (gtk_text_view_mark_set_handler):  Fix this to have the 
17836         right signature.
17837
17838         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
17839
17840         * gtk/testtext.c: Update with API changes, put line numbers on 
17841         both sides.
17842         
17843         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
17844         with this
17845
17846         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
17847         pixbuf; delete a big block of #if 0 Tk code
17848
17849         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
17850         insert_pixmap with insert_pixbuf
17851
17852 2000-09-29  Martin Baulig  <baulig@suse.de>
17853
17854         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
17855         confusion with the GdkPixbuf of the GNOME 1.x platform.
17856
17857 2000-09-29  Havoc Pennington  <hp@pobox.com>
17858
17859         * gtk/gtktextview.c: Implement the side windows.
17860
17861         * gtk/testtext.c: Implement simple line numbering in the 
17862         left side window; seems to make scrolling sloooow. Oops.
17863         Also, cursor blink is for some reason causing redraws
17864         of the line numbers. Should investigate...
17865
17866 2000-09-28  Havoc Pennington  <hp@redhat.com>
17867
17868         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
17869         scrolling child windows, and draw focus rectangle properly.
17870         
17871         (gtk_text_view_buffer_to_window_coords):
17872         Coordinate transformation to deal with all these freaking windows
17873         and offsets
17874         (gtk_text_view_window_to_buffer_coords): transform the other way
17875
17876         * gtk/testtext.c (create_buffer): Update to match Pango API change
17877
17878         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
17879         anonymous tags
17880         (foreach_unref): don't emit remove signal from finalize, just
17881         set tag's parent to NULL
17882
17883 2000-09-26  Havoc Pennington  <hp@redhat.com>
17884
17885         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
17886         Fix some warnings       
17887
17888 2000-09-26  Havoc Pennington  <hp@redhat.com>
17889
17890         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
17891         headers into the private header list
17892
17893         * Makefile.am (pkgconfig_DATA): install pkg-config files
17894
17895         * configure.in: add pkg-config files
17896
17897         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
17898
17899         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
17900         outstanding icon caches on theme change.
17901
17902         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
17903         important types:
17904
17905         (GtkIconSource): Specification for creating a pixbuf 
17906         appropriate for a direction/state/size triplet from 
17907         a source pixbuf or filename
17908
17909         (GtkIconSet): List of GtkIconSource objects that are used to
17910         create the "same" icon (e.g. an OK button icon), and cache for
17911         rendered icons
17912
17913         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
17914         up the icon set for a given stock ID.  GTK maintains a stack of
17915         GtkIconFactory to search, and applications or libraries can add
17916         additional icon factories on top of the stack
17917         
17918         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
17919         the set of GtkIconSource specified for a given stock ID into 
17920         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
17921         RcStyle, under the specified stock ID.
17922
17923         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
17924         render_icon used to derive a GdkPixbuf from a GtkIconSource.
17925         This allows people to theme how prelight, insensitive, etc. are
17926         done.
17927
17928         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
17929         icon factories for a style, and return the resulting 
17930         icon set if any.
17931
17932         (gtk_style_render_icon): Render an icon using the render_icon 
17933         method in the GtkStyleClass.
17934
17935         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
17936         Use the style for a given widget to look up a stock ID, get the
17937         icon set, and render an icon using the render_icon method 
17938         of the style
17939
17940         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
17941         (contains information about a stock item), the built-in stock item
17942         IDs, and functions to add/lookup stock items.
17943
17944         * gtk/stock-icons/*: Stock icons that come with GTK
17945
17946         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
17947         a button based on a GtkStockItem
17948         (gtk_button_new_accel): Takes a uline string and accel group, and
17949         installs the accelerator.
17950
17951         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
17952         image-display widget.
17953
17954 2000-09-25  Havoc Pennington  <hp@redhat.com>
17955
17956         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
17957
17958         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
17959         Fix a bug when removing node data, we didn't properly 
17960         re-splice the linked list after removing the data.
17961
17962         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
17963         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
17964
17965         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
17966
17967         * gtk/gtktextlayout.c (set_para_values): Set tab array 
17968         for the layout from the GtkTextTag.
17969
17970         * gtk/gtktexttypes.h: delete tab and search cruft, 
17971         remove g_convert() in favor of GLib version
17972
17973         * gtk/gtktexttypes.c: remove tab implementation from here,
17974         move to Pango
17975
17976         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
17977         tab stuff using new PangoTabArray from Pango
17978
17979         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
17980         unused border_width stuff
17981
17982 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
17983
17984         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
17985         glib) and now useless utf_to_latin1() latin1_to_utf()
17986
17987         * gtk/gtktextview.[ch]: Change ::move_insert and
17988         ::delete_text action signals to ::move and ::delete;
17989         create the signals with the right enumeration type,
17990         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
17991         C-v bindings, change Home, End to move to beginning/end
17992         of line, Add C-Home C-End to move to beginning/end
17993         of buffer. Change ::cut_text to ::cut_clipboard, etc;
17994         combine ::scroll_text into ::move; use new GtkSelectionData
17995         functions to simplify DND text handling.
17996         
17997         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
17998         deletion enumerations here, rename enumeration values to 
17999         be consistently plural.
18000
18001         * gtk/gtktextbuffer.c: Use new clipboard interfaces
18002         for cut/copy/paste and primary selection.
18003
18004         * gtk/gtktextbuffer.[ch]: Remove excess time and
18005         'interactive' arguments from cut/copy/paste;
18006         rename cut to cut_clipboard, etc; remove
18007         gtk_text_buffer_get_clipboard_contents().
18008
18009         * gtk/gtktextlayout.[ch]: Add 
18010         gtk_text_layout_move_iter_to_line_end() to move the iter to 
18011         line ends.
18012
18013         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
18014         Functions to set or get a UTF-8 string on the selection
18015         data.
18016
18017         * gtk/gtkclipboard.[ch]: New, simplified selection handling
18018         interfaces.
18019
18020         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
18021         created widgets - one of these is useless if we don't.
18022
18023         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
18024         a public function clear all targets registered for the
18025         widget.
18026
18027         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
18028         Never call gtk_widget_realize() - that was just asking
18029         for bizarre side-effects.
18030
18031         * gtk/gtkselection.c (gtk_selection_owner_set): Call
18032         gdk_selection_owner_set even if the widget is the
18033         same so that we reliably update the timestamp on
18034         the server.
18035
18036         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
18037         gdk_x11_get_server_time() function.
18038         
18039         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
18040         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
18041         Add some tricky filtering on serial numbers for
18042         selection clear events to fix up long-standard
18043         race condition FIXME's in gtkselection.c.
18044
18045         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
18046         routines to convert from utf8 to compound text or
18047         STRING and from a text property to UTF-8.
18048
18049         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
18050         a convenience function gdk_get_current_event_time().
18051
18052         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
18053         and free selection_data->data properly
18054
18055 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
18056
18057         * gtk/gtkthemes.c: Remove some unecessary includes.
18058
18059 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
18060
18061         * gtk/gtktextdisplay.c
18062         * gtk/gtktextlayout.c
18063         * gtk/gtktexttag.c
18064         * gtk/gtktexttag.h
18065         * gtk/testtext.c: Change the overstrike property to strikethrough,
18066         to closer match pango.
18067
18068 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
18069
18070         * gtk/gtktextview.c: Fix up visibility so that focus,
18071         cursor_visible and blink interact properly.  Reenable cursor blink
18072         which had been roughly disabled. Make blink and focus
18073         properly per-view.
18074
18075         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
18076         Add a flag for whether to display insertion cursor and
18077         a function to set the flag.
18078
18079         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
18080         get_line_y() to get_line_yrange(), to be a bit more generally
18081         useful.
18082
18083 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
18084
18085         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
18086           do stop_navigating_submenu, to clear last timeout properly.
18087           Also in gtk_menu_motion_notify move ignore_enter above
18088           the conditional to make it always happen as suggested by Owen
18089
18090 2000-09-07  Tor Lillqvist  <tml@iki.fi>
18091
18092         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
18093
18094         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
18095         w32api headers.
18096
18097         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
18098         declarations.
18099
18100         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
18101         (gdk_win32_get_colormap): A line had been deleted by mistake.
18102
18103         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
18104         (gdk_event_translate): Handle more virtual keycodes to be able to
18105         generate GDK events for Control-comma, Control-period, etc.
18106
18107         * gtk/gtk.def: Add some missing entry points.
18108
18109 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
18110
18111         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
18112         Doc comment fixing. (Mostly non-matching parameter names.)
18113
18114         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
18115         comments a little to avoid looking like a doc comment.
18116
18117         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
18118         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
18119         conversions be changed to GError?)
18120
18121         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
18122         Move private #defines into .c file.
18123
18124         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
18125         order of argument addition, remove duplicates.
18126
18127         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
18128         parent class is FrameClass, not BinClass.
18129
18130         * gtk/gtk.h: Add gtkinvisible, which was missing.
18131         (It's occasionalyl useful for client apps, if seldom.)
18132
18133         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
18134         #define.
18135
18136 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
18137
18138         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
18139         coordinates when creating window, instead of GDK-space
18140         coordinates. (Avoid BadValue on too large windows.)
18141
18142 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
18143
18144         * configure.in (use_mmx_asm): Remove conftest* after use along the
18145         lines of AC_TRY_COMPILE.        
18146         
18147         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
18148         of g_dirname, which is deprecated.
18149         (gtk_rc_parse_any): Removed calls to
18150         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
18151
18152         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
18153         Removed calls to g_hash_table_{freeze,thaw}, as they are
18154         deprecated now.
18155
18156         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
18157         instead of g_basename.
18158         
18159 2000-09-04 Elliot Lee <sopwith@redhat.com>
18160         
18161         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
18162         ANSI warning.
18163
18164 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
18165
18166         * gtk/gtkwidget.h:  Add some documenting comments about 
18167           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
18168           just as owen said on irc.
18169
18170         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
18171           set HAS_DEFAULT.  Only set it if there isn't another window
18172           holding it (a focus window which RECEIVES_DEFAULT) and only unset
18173           it if the widget is not the focused window with RECEIVES_DEFAULT.
18174           This fixes weird double default bugs in dialogs which has things
18175           call gtk_window_set_default at times.
18176
18177 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
18178
18179         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
18180         Nils Barth and David Santiago to improve submenu
18181         navigation. The patch does this by creating a triangular
18182         region from the point where the pointer leaves the
18183         menu to the submenu.  While the pointer is in
18184         that region and a timeout has not expired, events 
18185         that would cause the active submenu to change are
18186         ignored.
18187
18188 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
18189
18190         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
18191         moving a toplevel window immediately after sizing it would
18192         result in it being sized back to the old size since 
18193         impl->width, impl->height aren't updated until we hear
18194         back from the server. There is still a (longstanding) bug
18195         here that gdk_window_get_size() will give the wrong size
18196         until we do hear back.
18197
18198 2000-08-31  Havoc Pennington  <hp@redhat.com>
18199
18200         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
18201         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
18202         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
18203         Rename GtkTextStyleValues to GtkTextAttributes
18204
18205 2000-08-31  Havoc Pennington  <hp@pobox.com>
18206
18207         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
18208         for rapid testing whether an iterator is the end iterator
18209         (gtk_text_btree_new): init end line cache
18210         (gtk_text_line_is_last): use fast cached line to 
18211         see if we're the last line.
18212         (get_last_line): use cached line here too, should 
18213         speed up some random unrelated code.
18214         
18215 2000-08-30  Havoc Pennington  <hp@pobox.com>
18216
18217         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
18218         signals.
18219
18220         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
18221         delete_text signals. This allows the signals to be used for
18222         implementing undo.
18223
18224         * gtk/gtktextbuffer.c: Change signal handler signatures; 
18225         provide "interactive" argument when emitting insert_text or
18226         delete_text signal.
18227         
18228 2000-08-30  Havoc Pennington  <hp@pobox.com>
18229
18230         * gtk/gtktextbuffer.c: Docs
18231
18232 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
18233
18234         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
18235         from switch statements, since Tor removed the enumeration
18236         value.
18237         
18238         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
18239         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
18240
18241 2000-08-29 Elliot Lee <sopwith@redhat.com>
18242         * */*.h: Use G_GNUC_CONST.
18243
18244 2000-08-27  Havoc Pennington  <hp@pobox.com>
18245
18246         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
18247         minor indentation fixes, inserted some FIXME about stuff I
18248         realized was broken while documenting it.
18249         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
18250         GTK convention  
18251
18252 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
18253
18254         * gtk/testgtk.c (create_styles): Fix double free of
18255         font desc.
18256
18257 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
18258
18259         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
18260         
18261         * gtk/testgtk.c (create_styles): Add a test for modifying
18262         the style through gtk_widget_modify_*.
18263
18264         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
18265         a function to get the current modifier style.
18266
18267         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
18268         of the passed in GtkRcStyle instead of ref'ing it.
18269
18270         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
18271
18272 2000-08-20  Tor Lillqvist  <tml@iki.fi>
18273
18274         * gdk/gdkimage.h
18275         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
18276         shared memory image+pixmap GdkImage type, or
18277         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
18278         I am dropping that.
18279
18280         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
18281         actually call gtk_init_abi_check(), passing also
18282         sizeof(GtkWindow). Ditto for gtk_init_check(). 
18283
18284         * gtk/gtk.def
18285         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
18286         New functions, used to check that the GTK+-using code has been
18287         compiled using the correct compiler and switches. In particular,
18288         with gcc one has to use the -fnative-struct switch as GTK+ is
18289         compiled with that.
18290
18291 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
18292
18293         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
18294         ->prev fields when merging lists. (Found simultaneously
18295         by Pawel Salek and Jakub Jelinek)
18296
18297 2000-08-12  Tor Lillqvist  <tml@iki.fi>
18298
18299         * gdk/gdk.def
18300         * gtk/gtk.def: Add missing entries.
18301
18302         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
18303         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
18304
18305         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
18306         function. Dummy implementation at this point.
18307
18308         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
18309         rules. Undefine GTK_COMPILATION when compiling the test programs.
18310         
18311         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
18312
18313 2000-08-11  Tor Lillqvist  <tml@iki.fi>
18314
18315         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
18316         to convert back and forth from UTF-8 and the "system" (or "current
18317         locale") charset when necessary. Indentation/spacing cleanup.
18318
18319 2000-08-10  Havoc Pennington  <hp@redhat.com>
18320
18321         * Makefile.am (snapshot): Change the format of the snapshot
18322         version to match glib
18323
18324         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
18325         from EXTRA_DIST since it doesn't seem to exist
18326
18327 2000-08-10  Tor Lillqvist  <tml@iki.fi>
18328
18329         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
18330         version of the directory name (not the UTF-8 one) when building
18331         the path name to stat().
18332
18333 2000-08-03  Elliot Lee  <sopwith@redhat.com>
18334
18335         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
18336         PANGO_ATTR_SHAPE set.
18337
18338 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
18339
18340         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
18341         Peter Osterlund to simplify the code while keeping the
18342         functionality the same.
18343
18344 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
18345
18346         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
18347         is_viewable() test further inside the function, since removing the 
18348         window from the redraw list without clearing ->update_area
18349         was also very broken.
18350
18351 2000-08-02  Tor Lillqvist  <tml@iki.fi>
18352
18353         * configure.in: Check for <unistd.h>.
18354
18355 2000-08-01  Martin Baulig  <baulig@suse.de>
18356
18357         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
18358         to display the message that this is a development version of GTK+.
18359
18360 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
18361
18362         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
18363         was depending on widget->allocation instead of the width of text_area,
18364         which was incorrect for subclasses like GtkSpinButton.
18365
18366         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
18367         with width == 1 tests that should be width == -1.
18368
18369 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
18370
18371         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
18372         (broken, Elliot, every single window blank on X) custom code with call
18373         to gdk_window_is_viewable() which a) prevents code duplicate and
18374         b) works. 
18375
18376 2000-07-31  Elliot Lee  <sopwith@redhat.com>
18377
18378         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
18379         to get the GDK_PARENT_ROOT() macro to work.
18380         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
18381         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
18382         of, windows that aren't shown.
18383         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
18384         pointer grab stuff.
18385
18386 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
18387
18388         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
18389           s/gtk_main_iteration/g_main_iteration/
18390
18391           Did this already in change:
18392                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
18393           don't know how it got reverted.
18394
18395 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
18396
18397         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
18398         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
18399
18400         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
18401         not gdk_pixbuf.
18402
18403 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
18404
18405         * configure.in,po/{sp,sr}.po: Added Serbian files
18406
18407 2000-07-30  Tor Lillqvist  <tml@iki.fi>
18408
18409         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
18410
18411         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
18412         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
18413         GIOChannel implementation.
18414
18415         * gdk/win32/gdkinput.c
18416         * gdk/win32/gdkpango-win32.c: Update license name here, too.
18417
18418         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
18419         definition to match prototype.
18420
18421         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
18422
18423 2000-07-27  Elliot Lee  <sopwith@redhat.com>
18424
18425         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
18426         function, to allow handling image formats that cannot be detected
18427         by looking at content alone.
18428
18429 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
18430
18431         * docs/tutorial/*.gif *.jpg *.eps
18432           Update these to the same look-n-feel.
18433           Why does including images in DocBook suck so badly?
18434
18435 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
18436
18437         * gtk/gtktable.c: applied patch from Phil Thompson
18438         <phil@river-bank.demon.co.uk> that enables space settings for
18439         the last row/columns as well.
18440
18441 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
18442
18443         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
18444         updates the license headers to the GNU Lesser General Public License,
18445         as well as updating the copyright year to 2000.
18446
18447 2000-07-26  Robert Brady  <rwb197@zepler.org>
18448
18449         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
18450           and po/Makefile, was installing and looking for them under gtk20
18451           and gtk2 respectively.
18452
18453 2000-07-25  Havoc Pennington  <hp@redhat.com>
18454
18455         * gtk/testtext.c: Comment out some stuff that depends on the rest
18456         of my patches.
18457
18458 2000-07-25  Havoc Pennington  <hp@redhat.com>
18459
18460         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
18461         buffer
18462
18463 2000-07-25  Havoc Pennington  <hp@redhat.com>
18464
18465         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
18466         widget changes.
18467
18468         * gtk/gtktextview.h: To be consistent with usage of "line"
18469         throughout the API to mean "newline-terminated thingy", change
18470         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
18471         to MOVEMENT_LINE.
18472
18473         (GtkTextView): Add flags for default editability, and whether to
18474         show the cursor. Add functions to get/set that. Add 
18475
18476         (gtk_text_view_get_iter_location): new function
18477
18478         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
18479         gtktextlayout.h
18480         (g_convert): Add g_convert temporarily, will go in glib in a bit
18481         
18482         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
18483         GtkTextTagTableForeach instead of brokenly using GHFunc.
18484         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
18485
18486         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
18487         moved to public header.
18488
18489         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
18490         "invisible", since "elide" was a bad name.
18491         (gtk_text_tag_get_priority): Added
18492
18493         (GtkTextStyleValues): put this in public header, along with
18494         functions to use it.
18495
18496         * gtk/gtktextmarkprivate.h: Include more headers, since we no
18497         longer include gtktextbtree.h.
18498
18499         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
18500         gtk_text_mark_deleted
18501
18502         * gtk/gtktextlayout.h: Don't include the "really private" headers,
18503         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
18504         to make this possible. Now we only need to install
18505         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
18506         (However the Makefile.am isn't changed yet because of the
18507         logistics of merging gtk-hp-patches piecemeal)
18508
18509         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
18510         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
18511         gtk_text_iter_get_line is now used in the public API for a
18512         different purpose.
18513
18514         * gtk/gtktextiter.h: Clean up function names to be more
18515         consistent. Always call char offset "offset" and byte index
18516         "index". A "line" is always a line number. 
18517
18518         (gtk_text_iter_is_last): new function, more efficient than 
18519         the existing way to check
18520         (gtk_text_iter_is_first): new function, also more efficient
18521
18522         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
18523
18524         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
18525         gtk_text_iter_forward_char, etc.
18526
18527         (gtk_text_iter_forward_to_tag_toggle): Renamed from
18528         forward_find_tag_toggle, since this isn't a linear search
18529
18530         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
18531
18532         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
18533         New functions, search for a buffer substring.
18534
18535         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
18536         interactive and default editable (since we need to store that info
18537         until we receive the selection data).
18538
18539         Remove all the _at_char and at_line etc. versions of functions;
18540         only have iterator versions.
18541
18542         Add _interactive() versions of functions, that consider the
18543         editability of text. (FIXME add interactive flag to the 
18544         insert/delete signals per Darin's suggestion)
18545
18546         (gtk_text_buffer_get_tag_table): new function, demand-creates the
18547         tag table if necessary
18548
18549         Remove declaration of gtk_text_buffer_get_iter_from_string
18550
18551         (_gtk_text_buffer_get_btree): private/internal function, added.
18552         
18553
18554         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
18555         (gtk_text_line_is_last): new function
18556
18557 2000-07-25  Havoc Pennington  <hp@redhat.com>
18558
18559         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
18560         using GtkProgressBar. See Changes-2.0.txt for details.
18561
18562         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
18563         "pulse_step" which are the equivalent of
18564         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
18565         Implement new API.
18566         
18567         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
18568         (use_text_format) to mark whether text set on the progress bar is
18569         a format string. Deprecate entire GtkProgress interface.
18570
18571         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
18572         (gtk_progress_build_string): make this a no-op if use_text_format
18573         is FALSE
18574
18575         * docs/Changes-2.0.txt: Describe progress bar changes.
18576
18577 2000-07-25  Tor Lillqvist  <tml@iki.fi>
18578
18579         * Makefile.am: Include the build directory.
18580
18581         * configure.in: Generate build/Makefile, build/win32/Makefile,
18582         gdk/, gdk/win32/, and gtk/makefile.mingw.
18583
18584         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
18585         Add GETTEXT_PACKAGE.
18586         
18587         * gdk/gdk.def
18588         * gtk/gtk.def: Updates.
18589
18590         * gdk/gdkfont.h
18591         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
18592         need them any longer.
18593
18594         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
18595
18596         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
18597         PANGOWIN32_LIBS and gdk_pixbuf.
18598
18599         * gdk/win32: Compiles, but no doubt doesn't work at all.
18600
18601         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
18602
18603         * gdk/win32/gdkinput.c: New file, temporarily.
18604         
18605         * gdk/win32/gdkinput-win32.h: New file
18606
18607         * gdk/win32/gdkinputprivate.h: Remove.
18608
18609         * gdk/win32/gdkpango-win32.c: New file.
18610
18611         * gtk/makefile.mingw.in: New file
18612
18613         * gtk/makefile.cygwin: Removed
18614         
18615         * gtk/Makefile.am: Update accordingly.
18616
18617         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
18618         made externally visible.
18619
18620         * gtk/gtkmain.c: Use it.
18621         
18622         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
18623         is enough.
18624
18625         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
18626
18627 2000-07-24 Elliot Lee <sopwith@redhat.com>
18628         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
18629         individual backends already.
18630         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
18631         again. Yes, there really is a good reason for this, if you are using the gdkregion
18632         internals, and if you're not, why do you care?
18633         * gdk/gdkwindow.c: Fix inverted condition
18634         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
18635         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
18636         * gtk/gtkrange.c: Redraw trough when moving.
18637         * gtk/gtktypeutils.c: Fix warning by adding const cast.
18638         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
18639
18640 2000-07-23  Tor Lillqvist  <tml@iki.fi>
18641
18642         * configure.in: Check for mkstemp and sigsetjmp. Output
18643         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
18644
18645         More work on GDK for Win32. Still in an intermediate state.
18646
18647         * gdk/makefile.cygwin
18648         * gdk/win32/makefile.cygwin: Removed.
18649         
18650         * gdk/makefile.mingw.in
18651         * gdk/win32/makefile.mingw.in: New files.
18652
18653         * gdk/Makefile.am
18654         * gdk/win32/Makefile.am: Generate and distribute them.
18655
18656         * gdk/win32/gdkwindow-win32.h
18657         * gdk/win32/gdkdrawable-win32.h
18658         * gdk/win32/gdkpixmap-win32.h: New files.
18659
18660         * gdk/win32/gdkcolor-win32.c
18661         * gdk/win32/gdkcursor-win32.c
18662         * gdk/win32/gdkdrawable-win32.c
18663         * gdk/win32/gdkgc-win32.c
18664         * gdk/win32/gdkimage-win32.c
18665         * gdk/win32/gdkprivate-win32.h
18666         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
18667         Rename fields and variables called xcursor, xid, etc (these names
18668         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
18669
18670 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
18671
18672         * gtk/gtkentry.[ch]: Fix some problems with vertical
18673         alignment.
18674
18675         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
18676         char/byte confusion.
18677
18678 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
18679
18680         * gtk/gtktextview.c (changed_handler): Fix bug where
18681         redraw wasn't being done properly when height of
18682         dirty region changed.
18683
18684         * demos/Makefile.am: Remove various references to
18685         -lgmodule
18686
18687 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
18688
18689         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
18690         PangoAttrShape to reserve space for pixmaps, add 
18691         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
18692         in the display functions.
18693         
18694         * gtk/testgtk.c (create_layout): Set some more exotic
18695         scrolled window options
18696
18697         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
18698         Add function to set the shadow type of a window, to allow
18699         putting a shadow around widgets such as GtkLayout or GnomeCanvas
18700         which don't draw their own frame.
18701
18702 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
18703
18704         * docs/tutorial/package-db-tutorial.sh: New file for
18705           packaging DocBook format tutorial
18706
18707 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
18708
18709         * docs/tutorial/gtk-tut.sgml: Minor updates
18710
18711         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
18712
18713 2000-07-19  Tor Lillqvist  <tml@iki.fi>
18714
18715         * gtk/gtksignal.c: Fix C++ comment.
18716
18717         * gtk/gtkimmulticontext.c
18718         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
18719         don't return value from void functions.
18720
18721         * gtk/gtk.def: Add gtk_rc_style_unref.
18722
18723 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
18724
18725         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
18726         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
18727         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
18728         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
18729         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
18730         gtk/gtktypeutils.h: Include files outside of the extern "C"
18731         block. Makes some C++ compiler happy. Reported by Denis Vakatov
18732         <vakatov@peony.nlm.nih.gov>.
18733
18734 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
18735
18736         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
18737           Completes first pass. Hurrah!
18738
18739 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
18740
18741         * docs/tutorial/gtk-tut.sgml: More clean ups.
18742
18743 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
18744
18745         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
18746         paint the background of the text area which was accidentally
18747         removed at some point.
18748
18749         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
18750           
18751          - Move most of the functionality from the theme vtable
18752            into GtkRcStyleClass and GtkStyleClass. The moved
18753            vtable functions were changed a bit in the move to
18754            work better in their new home.
18755
18756          - Get rid of the engine and engine_data fields from
18757            GtkRcStyle and GtkStyle; instead the theme
18758            engine derives theme-specific subclasses of GtkRcStyle
18759            and GtkStyle
18760
18761          - Add extra dlsym() found entry point to themes,
18762            theme_create_rc_style().
18763
18764         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
18765         in gtk_style_real_copy.
18766
18767         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
18768         to register a type associated with an engine. (The engine
18769         won't be unloaded as there is an instance of the type.)
18770
18771
18772 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
18773
18774         * docs/tutorial/gtk-tut.sgml: Clean ups.
18775
18776 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
18777
18778         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
18779           of cleaning up to do.
18780
18781 2000-07-15  Tor Lillqvist  <tml@iki.fi>
18782
18783         * gdk/testgdk.c: New file, quick hack to test backends for
18784         pixel-by-pixel correctness of the most simple graphic operations.
18785
18786 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
18787
18788         * Really release 1.3.1
18789         
18790         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
18791         include structure.
18792
18793 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
18794
18795         * Released 1.3.1
18796
18797 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
18798
18799         * gtk/gtktextlayout.c: use FALSE for size_only most
18800         of the time when calling gtk_text_layout_get_line_display()
18801         to avoid causing double reshapes when a redraw follows
18802         immediately after.
18803
18804 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
18805
18806         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
18807         appropriate region and gdk_window_process_updates() so trough
18808         updating doesn't lag behind the window being scrolled.
18809
18810         * gdk/gdkgc.c: Make parent_class pointer static.
18811          
18812 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
18813
18814         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
18815         include <string.h>.
18816          
18817         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
18818         cut-and-paste error in computing memory offset for 4 channels.
18819
18820 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
18821
18822         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
18823         gtk_rc_append_default_pixmap_path(), since it wasn't
18824         adding an interesting path and we don't have a meaningful
18825         default for this value.
18826
18827 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
18828
18829         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
18830         gtk-config to gtk-config-2.0 move gtk_.m4 to
18831         gtk-2.0.m4
18832
18833         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
18834         gdk/Makefile.am demos/Makefile.am: Change 
18835         library names to libgtk-1.3.la, etc, so that we
18836         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
18837
18838         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
18839         gdk/Makefile.am gdk/x11/Makfile.am
18840         Move include files into /usr/include/gtk-2.0, 
18841         /usr/lib/gtk-2.0/include/
18842          
18843         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
18844         gtk/gtkintl.h: Change package for gettext from 
18845         gtk+ to gtk20. Put hack in autogen.sh to modify
18846         po/Makefile.in.in after gettextize to make this
18847         possible.
18848
18849         * gtk+.spec: Some updates, not tested.
18850
18851         * gdk-pixbuf/Makefile.am: Move loaders into
18852         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
18853
18854         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
18855         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
18856         to THEMENAME/gtk-2.0/. Move engine directory  to
18857         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
18858         
18859 2000-07-12  Tor Lillqvist  <tml@iki.fi>
18860
18861         Win32 changes, still doesn't build though.
18862
18863         * gdk/makefile.cygwin
18864         * gdk/win32/makefile.cygwin
18865         * gtk/makefile.cygwin: Updates.
18866
18867         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
18868         default values for fg and bg pixel as X11 does (0 and 1), not
18869         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
18870         Use 0 for pen width by default (treated as 1 anyway later, but for
18871         apps that might check the value in the GdkGC).
18872         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
18873         interface to gdk_gc_predraw and _postdraw.
18874
18875         * gdk/win32/gdkwin32.h
18876         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
18877
18878         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
18879         extraneous semicolon.
18880
18881         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
18882
18883         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
18884         not the Win32 bitspixel value.
18885
18886         * gdk/win32/gdkcc-win32.c:
18887         * gdk/win32/gdkcolor-win32.c 
18888         * gdk/win32/gdkprivate-win32.h
18889         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
18890         GDK object structure.
18891
18892 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
18893
18894         * docs/tutorial/gtk_tut_12.es.sgml (name): 
18895         * docs/tutorial/gtk_tut_it.sgml (name): 
18896         * docs/tutorial/gtk_tut_fr.sgml (name): 
18897         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
18898         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
18899
18900 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
18901
18902         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
18903           small changes.
18904
18905 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
18906
18907         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
18908         a bug here, never been here and never fixed anything ;(
18909         (don't segfault if tree->root_tree is NULL, which happens prior
18910         to widget realization, but puke instead).
18911
18912 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
18913
18914         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
18915         add the necessary tokens.
18916
18917         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
18918         (gtk_rc_style_to_style): copy thicknesses.
18919         (gtk_rc_init_style): apply thicknesses.
18920         (gtk_rc_parse_style): parse xthickness and ythickness.
18921
18922         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
18923
18924         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
18925         (gdk_window_new): 
18926         (_gdk_windowing_window_init): 
18927         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
18928         (gdk_pixmap_create_from_data): 
18929         (gdk_bitmap_create_from_data): 
18930         (gdk_pixmap_new): 
18931         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
18932         (gdk_image_new): 
18933         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
18934         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
18935         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
18936         (gdk_colormap_get_system): 
18937         (gdk_colormap_new): 
18938         * gdk/gdkwindow.c (gdk_window_init): 
18939         * gtk/gtkstyle.c (gtk_style_new):
18940         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
18941         * gdk/gdkpixmap.c (gdk_pixmap_init): 
18942         * gtk/gtkrc.c (gtk_rc_style_new):
18943         use g_object_new() instead of g_type_create_instance() which
18944         is a private function for fundamental type implementations.
18945
18946 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
18947
18948         * configure.in: Add check for db2html
18949
18950 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
18951
18952         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
18953         hack to set glib_debug_objects based on gtk_debug_flags.
18954
18955 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
18956
18957         * INSTALL.in: Update the Prerequisites section.
18958
18959         * Makefile.am demos/Makefile.am docs/Makefile.am
18960         docs/tutorial/Makefile.am gdk/x11/Makefile.am
18961         gdk/linux-fb/Makefile.am: Dist fixes
18962
18963 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
18964
18965         * NEWS: 10,000 foot view of 1.3.1 changes.
18966
18967 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
18968
18969         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
18970         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
18971         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
18972         gdk/x11/gdkmain-x11.c: 
18973
18974         Patch from George Lebl to add a GdkGrabStatus enumeration to use
18975         as a return value of gdk_*_grab(). Previously, we just
18976         returned the X11 values directly.
18977
18978 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
18979
18980         * gdk/x11/Makefile.am: Patch from George Lebl to 
18981         install all the headers in the right place.
18982
18983 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
18984
18985         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
18986           initial conversion to DocBook.
18987
18988 2000-07-04  Tor Lillqvist  <tml@iki.fi>
18989
18990         * README.win32: Improve a bit.
18991
18992         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
18993         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
18994         Alt+0nnn on the numpad (used to enter characters by numeric code
18995         from current DOS or ANSI codepage) working correctly, as in other
18996         Windows apps.
18997
18998         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
18999         same argument validity tests as in X11 version.
19000         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
19001
19002         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
19003         definitions in case missing from headers.
19004
19005         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
19006         destroy the window-specific cursor.
19007         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
19008         calling GetModuleHandle(NULL).
19009         (gdk_window_set_cursor): Reworked to always copy the passed cursor
19010         with CopyCursor before setting it as the window-specific
19011         cursor. It is OK for the caller to destroy the GdkCursor (and thus
19012         also its Windows cursor) after calling this function. Destroy any
19013         previous window-specific cursor.
19014
19015 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
19016
19017         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
19018         font charset is iso8859-1, not iso-8859-1.
19019
19020 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
19021
19022         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
19023         Use g_get_charset() instead of g_get_codeset().
19024
19025         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
19026         Comment out some strdup'ing functions to keep timj
19027         happy until we finish fighting this out.
19028
19029 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
19030
19031         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
19032         <= width or height.
19033
19034         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
19035         from 1.2 for parent/child states.
19036
19037         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
19038         of typos.
19039
19040         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
19041         event structures, replace with a generic axes field. Replace 
19042         deviceid/sourec with GdkDevice *device.
19043
19044         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
19045         to extract particular axis use value from event. (Also
19046         can be used for normal X/Y.)
19047
19048         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
19049         allow for arbitrary number of axes, namespace everything
19050         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
19051         everywhere.
19052
19053         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
19054         Get rid of the gdk_input_vtable setup if favor of simply
19055         defining the functions in gdkinput-none/gxi/xfree.c in
19056         a similar fashion to the way that the port structure is 
19057         done.
19058
19059         * gtk/gtkdnd.c: Fix fields of synthesized button press event
19060         for new event structures. 
19061
19062         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
19063         new device interfaces.
19064
19065 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
19066
19067         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
19068         set the initial text.
19069
19070         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
19071         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
19072         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
19073         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
19074
19075         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
19076         pango_layout_set_font_description to simplify.
19077
19078 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
19079
19080         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
19081         pango_layout_set_font_description to simplify.
19082
19083 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
19084
19085         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
19086         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
19087         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
19088
19089         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
19090         PANGO_PIXELS() macro.
19091
19092 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
19093
19094         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
19095         that returns a PangoContext owned by the widget and updated to
19096         match future changes in the widget. Also, make 
19097         gtk_widget_create_pango_layout() use this context. If we ever
19098         add a ::changed signal to PangoContext, this will make things
19099         much more convenient. 
19100
19101         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
19102         in the appropriate places instead of destroying the layouts and
19103         creating new ones.
19104
19105         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
19106         in a few strategic places.
19107
19108 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
19109
19110         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
19111         gtk_widget_size_request() on reparented child, if one. Otherwise,
19112         queue_resize() on the child never results in it getting size-requested
19113         at all.
19114
19115         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
19116         in option menus, so that (with luck) people won't copy it into
19117         their apps in the future.
19118
19119         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
19120         to gtk_option_menu_calc_size. This isn't perfect, but should fix
19121         a lot of problems with changing the size of the menu's menu
19122         items after adding it to the option menu.
19123
19124         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
19125
19126         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
19127         the text direction for a widget changes.
19128
19129         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
19130         ::direction_changed to get rid of various hacks.
19131
19132 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
19133
19134         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
19135         name.
19136
19137 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
19138
19139         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
19140         flag to the structure. Do not call XFreePixmap on pixmaps created
19141         by gdk_pixmap_foreign_new().
19142
19143 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
19144
19145         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
19146         value using GdkRGB functionality given GdkColormap and GdkColor.
19147         (name not final, waiting for inspiration.)
19148         
19149         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
19150         set the foreground/background of a GC using the GC's colormap
19151         and GdkRGB. (name not final, waiting for inspiration.)
19152
19153         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
19154         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
19155
19156         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
19157         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
19158         purely a function of the corresponding colormap. Make
19159         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
19160
19161         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
19162         gdk_pixbuf_*create_from_xpm_* in terms of
19163         gdk_pixbuf_new_from_xpm_data(), move into platform independent
19164         code.
19165
19166         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
19167         advantage of the new draw_rgb_32_image_dithalign.
19168
19169         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
19170
19171         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
19172         on each created GC.
19173
19174         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
19175
19176         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
19177         which we initialize from the drawable when the GC is created,
19178         if the drawable has a colormap.
19179
19180         * gdk/x11/gdkgc-x11.c: include string.h for memset.
19181
19182         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
19183
19184         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
19185
19186 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
19187
19188         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
19189         actually returning expose events, make sure to set
19190         the count field properly.
19191
19192         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
19193         accidentally reintroced bug which always cleared
19194         the graphics_exposures value. 
19195
19196 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
19197
19198         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
19199
19200 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
19201
19202         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
19203
19204 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
19205
19206         * docs/faq/gtk-faq.sgml: Start of Section 6.
19207
19208 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
19209
19210         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
19211         
19212         (Fixes problem with drawing childless frames. Pointed out
19213         by and a first patch from Anders)
19214         
19215         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
19216         compute a child_allocation, even if we don't have a child.
19217
19218         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
19219         Always chain to the parent's impl, even if we don't have a child.
19220
19221 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
19222
19223         * gdk/gdkrgb.c: If possible, create only a single shm segment and
19224         use multiple parts of it instead of creating a bunch of separate
19225         segments, since the maximum number of segments per system is not
19226         large. (This might be worth backporting to GTK+-1.2.x if we make a
19227         new release )
19228
19229         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
19230         structure in preparation for per-colormap GdkRGB.
19231
19232         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
19233         to False when we get EINVAL from shmget so that the caller of
19234         gdk_image_new can retry with a smaller segment size.
19235
19236 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
19237
19238         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
19239
19240 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
19241
19242         * configure.in: make the current version number 1.3.1 (binary age 0,
19243         interface age 0).
19244         
19245         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
19246         gtkcompat.h is all we want.
19247
19248         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
19249         GLib primitive types. fixed g_type_register_fundamental() argument
19250         ordering.
19251
19252         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
19253         compiles.
19254
19255         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
19256         object code cleanup, comment trigraph fixes, etc...
19257
19258 2000-06-23  Havoc Pennington  <hp@redhat.com>
19259
19260         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
19261         instead of making up a bogus name for first_para_mark
19262
19263         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
19264         0 as a context ID
19265
19266 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
19267
19268         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
19269
19270 2000-06-21  Havoc Pennington  <hp@pobox.com>
19271
19272         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
19273         we didn't check window->bg_pixmap != GDK_NO_BG.
19274
19275         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
19276         gdk-pixbuf
19277
19278 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
19279
19280         * docs/faq/gtk-faq.sgm: Move file to here.
19281           TODO: Update Makfile.am 
19282
19283 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
19284
19285         * docs/gtk-faq.sgm: Add Section 2
19286
19287 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
19288
19289         * docs/gtk-faq.sgm: New file. Start of DocBook
19290           version of the FAQ.
19291
19292 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
19293
19294         * configure.in (GDK_PIXBUF_MAJOR): Define version
19295         numbers for GDK_PIXBUF_*, as they get substituted
19296         into a header file. Need to consider versioning
19297         for gdk-pixbuf more carefully later.
19298
19299 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
19300
19301         Work with srcdir != builddir.   
19302         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
19303         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
19304         * demos/testpixbuf.c: Likewise.
19305         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
19306         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
19307         <gdk/x11/gdkx.h>.
19308         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
19309         "gdk-pixbuf.h".
19310         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
19311
19312 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
19313
19314         * TODO.xml: Change 1.4 version numbers to 2.0.
19315
19316 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
19317
19318         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
19319         fixups to GTK+ standard.
19320
19321 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
19322
19323         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
19324         gdk-pixbuf.
19325
19326         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
19327         fixups for GObject.
19328
19329         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
19330         gdk-pixbuf with GDK dependencies moved into GDK.
19331         
19332         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
19333         move gdk-pixbuf-loader here until GObject has signals.
19334
19335         * demos/: New directory of demos. Move demos from
19336         gdk-pixbuf here.
19337
19338         * demos/pixbuf-init.c: Small bit of code to check for
19339         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
19340         set GDK_PIXBUF_MODULEDIR appropriately.
19341
19342         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
19343         define which no longer makes sense.
19344
19345 2000-06-21  Havoc Pennington  <hp@redhat.com>
19346
19347         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
19348         gtk_get_default_language
19349
19350         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
19351         new function to get the default language
19352
19353         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
19354         s/gtk_text_view_style_values/gtk_text_style_values/
19355
19356         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
19357         Add a "language" field to tags.
19358
19359         (gtk_text_tag_set_arg): Fix bug in setting
19360         "bg_full_height_set" tag.
19361
19362 2000-06-21  Havoc Pennington  <hp@redhat.com>
19363
19364         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
19365         in the interfaces
19366
19367         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
19368         stuff instead when possible.
19369
19370         * gtk/gtktexttypes.h: Delete some unused constants
19371
19372         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
19373         testtextbuffer.c: use glib instead of custom unicode routines
19374
19375 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
19376
19377         * docs/es/: Removed mistakenly added generated sgml
19378
19379         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
19380         Remove outdated info files.
19381
19382         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
19383         Moved tutorial files into subdir
19384
19385         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
19386         subdir.
19387
19388         * docs/man/gtk_button.pod: Remove. (contents will be
19389         integrated into gtk-reference button page.)
19390
19391         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
19392         docs/faq/Makefile.am: Adjust for new organization
19393
19394 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
19395
19396         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
19397         not $(MKINSTALLDIRS)
19398
19399 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
19400
19401         * gtk/testgtk.c (create_text): Finish the job Elliot started
19402         of removing font setting test for text widget. (Since text widget
19403         and GdkFont are not deprecated, and cause portability problems.)
19404
19405 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
19406
19407         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
19408         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
19409         Remove use of libunicode in favor of new GLib functions.
19410
19411         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
19412         nano-x, framebuffer. The X11 include is just a hack until we get
19413         the necessary functions in gdkcolor.h, so there is no reason to
19414         add other includes of platforms.
19415
19416         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
19417         window bigger than the screen change.
19418
19419         * gtk/testgtk.c: Revert some random changes from Elliot
19420         that had no particular point and were causing testgtkrc
19421         not to function correctly.
19422         
19423         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
19424         because GdkSegment and GdkRegionBox have the same fields,
19425         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
19426         results in clearer code.
19427
19428         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
19429         gdk_input_translate_coordinates): Fix missed GdkObjectification
19430
19431 2000-06-18  Elliot Lee  <sopwith@redhat.com>
19432
19433         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
19434         * gtk/gtk{plug,socket}.h: Missed commits from previous.
19435
19436 2000-06-20  Havoc Pennington  <hp@redhat.com>
19437
19438         * modules/linux-fb/Makefile.am: Make this compile
19439         without framebuffer enabled
19440
19441         * gdk/linux-fb/Makefile.am: Add conditional to not build
19442         framebuffer unless specified in configure
19443
19444         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
19445         the size of the target instead of source if -1 was passed for
19446         width/height
19447
19448         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
19449         width/height confusion.
19450
19451 2000-06-19  Havoc Pennington  <hp@redhat.com>
19452
19453         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
19454         GDK_DRAWABLE_XID. In the future, we probably want to make it
19455         faster with G_DISABLE_CHECKS turned on.
19456
19457 2000-06-14  Havoc Pennington  <hp@redhat.com>
19458
19459         * gdk/Makefile.am: add gdkpixmap.c
19460
19461         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
19462         s/gdk_image_init/_gdk_windowing_image_init
19463
19464         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
19465         ref/unref
19466
19467         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
19468
19469         * gdk/gdkcompat.h: remove GdkWindowType compat, since
19470         GdkWindowType is now non-deprecated; 
19471         change gdk_window_get_type() compat to be
19472         gdk_window_get_window_type().
19473
19474         * gdk/gdkdnd.h: make GdkDragContext a GObject.
19475
19476         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
19477         virtual GObject. Make all functions call into the vtable.
19478         Move gdk_image_put() guts in here. Remove GdkDrawableType
19479         and gdk_drawable_get_type(), these are now GdkWindow-specific.
19480         draw_image, get_depth, get_size, set_colormap, get_colormap,
19481         get_visual added to the vtable.
19482         
19483         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
19484         GObject. Virtualize everything. 
19485         (gdk_gc_new_with_values): remove check for destroyed window,
19486         because now GdkWindow::create_gc will check this.
19487         (gdk_gc_set_values): New function to set GC values, this 
19488         was already implemented but wasn't in the header
19489
19490         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
19491
19492         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
19493         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
19494         remove _gdk_window_class; add _gdk_window_impl_get_type() and
19495         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
19496         _gdk_windowing_window_init, rename gdk_image_init to
19497         _gdk_windowing_image_init.
19498         
19499         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
19500         (gdk_draw_layout): Remove check for destroyed window, 
19501         because all the drawable methods already check it.
19502         
19503         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
19504         Add gdkpixmap.c which contains implementation of GdkDrawable
19505         virtual table (by chaining to a platform-specific implementation
19506         object).
19507         
19508         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
19509         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
19510         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
19511         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
19512         GdkColormapPrivate. 
19513
19514         * gdk/gdktypes.h: #include <glib-object.h>
19515
19516         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
19517         Move most functionality to platform-specific implementation
19518         object. GdkWindow itself now handles the backing store, then
19519         chains to the platform-specific implementation.
19520         (gdk_window_get_window_type): return GdkWindowType of the window.
19521         (gdk_window_peek_children): New routine, returns the children of 
19522         a GdkWindow
19523         (gdk_window_get_children): Was in X11-specific code and did 
19524         XQueryTree. Changed to simply return a copy of window->children; 
19525         so it can go in cross-platform code.
19526         
19527         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
19528
19529         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
19530         GdkColormap; just changed to use the new private data instead
19531         of casting to GdkColormapPrivate.
19532
19533         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
19534         gdk_cursor_new().
19535
19536         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
19537         (private data member in the GObject). 
19538         (xdnd_manager_source_filter): Function had broken 
19539         error handling, fix it (use gdk_error_trap_push).
19540
19541         * gdk/x11/gdkdrawable-x11.c: This file now implements
19542         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
19543         base class is purely for the convenience of the X port,
19544         and not part of the interface to cross-platform GDK.
19545
19546         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
19547         
19548         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
19549         specific to X, and returned by the create_gc virtual method
19550         of GdkDrawableImplX11. 
19551         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
19552         rather than gchar, this was also changed in the GdkGC vtable.
19553         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
19554         mask is 0, return immediately, instead of checking every flag.
19555         This is faster, and keeps us from segfaulting if values is NULL
19556         and the mask contains some nonzero flags.
19557
19558         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
19559         GdkWindow.
19560
19561         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
19562         GdkWindowPrivate is gone.
19563
19564         * gdk/x11/gdkim-x11.c: rename things that got renamed.
19565
19566         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
19567         remove the image_put stuff that got transferred to GdkDrawable.
19568         
19569         * gdk/x11/gdkinput.c: renamings
19570
19571         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
19572
19573         * gdk/x11/gdkpixmap-x11.c: GObject conversion
19574
19575         * gdk/x11/gdkprivate-x11.h: indentation fixes
19576
19577         * gdk/x11/gdkproperty-x11.c: renamings
19578
19579         * gdk/x11/gdkselection-x11.c: renamings
19580
19581         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
19582         implements the platform-specific "impl" object.
19583         Moved gdk_window_get_children to gdk/gdkwindow.c
19584
19585         * gdk/x11/gdkx.h: Remove all the private structs and private datas
19586         that no longer exist. Add declaration of GdkGCX11 object here.
19587         Fix all the macros to still work. 
19588
19589         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
19590         GdkDragContext from the boxed types since they are now GObjects.
19591
19592         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
19593         moved xthickness/ythickness into the instance. GtkStyleClass
19594         functions are now in the standard vtable for GtkStyle, so you have
19595         to create a GObject subclass to write a theme engine.
19596         (gtk_style_copy): fixed a leaked PangoFontDescription
19597         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
19598         can be the standard GObject function.
19599         
19600         * Throughout GTK:
19601         s/style->klass->[xy]thickness/style->[xy]thickness
19602         s/pango_layout_unref/g_object_unref/
19603
19604         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
19605         
19606         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
19607         accessing GDK internals.
19608
19609         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
19610         accessing GDK internals.
19611
19612 2000-06-18  Elliot Lee  <sopwith@redhat.com>
19613
19614         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
19615
19616         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
19617         problem by calculating event position relative to the trough
19618         rather than the slider.
19619         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
19620
19621         * gdk/gdkgc.h: Add GDK_NOR.
19622
19623         * configure.in, Makefile.am: Add modules top level dir
19624         * configure.in: Only use pangox library if building x11 target.
19625         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
19626
19627 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
19628
19629         * gtk/gtkcolorsel.c: Change private class member to be named
19630         private_data throughout the file.
19631
19632         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
19633         private_data to avoid clashing with keyword.
19634
19635 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
19636
19637         * gdk/gdkdnd.h: Add comment to remove warning.
19638
19639 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
19640
19641         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
19642         Byelorussian language; changed the Makefile and file names 
19643         to reflect that.
19644
19645 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
19646
19647         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
19648         rather than gdk_window_hide; this makes things work
19649         correctly if the window is programmatically hidden while
19650         iconified.
19651
19652 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
19653
19654         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
19655         cut and paste typo where wrong pixmap was being
19656         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
19657
19658 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
19659
19660         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
19661         Add helper function to compute format / bytes 
19662         relationship. Use in a couple places to fix up
19663         errors which assume 8 * format.
19664
19665         * gtk/gtkselection.c (gtk_selection_request): Use 32
19666         rather than 8 * sizeof (GdkAtom), to work correctly
19667         on Alpha.
19668
19669 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
19670
19671         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
19672         libgtk.la
19673         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
19674         versions
19675
19676         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
19677         checking macros return NULL since the function has a return value.
19678
19679 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
19680
19681         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
19682         GTK+ from building at all.
19683
19684         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
19685
19686 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
19687
19688         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
19689         gtk/Makefile.am: make it possible to configure gtk for different
19690         targets on the same platform. The library name is now 
19691         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
19692         flag. Only the x11 target compiles right now.
19693         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
19694         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
19695         * gdk/nanox/gdk*generic*: delete generic region code.
19696         * gdk/linux-fb/gdk*generic*: delete generic region code.
19697         * README.nanox: update information.
19698         
19699 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
19700
19701         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
19702         prepend not append. (Pointed out by Brett Hall.)
19703
19704 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
19705
19706         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
19707
19708 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
19709
19710         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
19711         need this later, and this makes sure that the atexit for
19712         glib gets called after that for GDK, so atexits are
19713         properly ordered for object leak checking.
19714
19715         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
19716
19717         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
19718         pango_x_shutdown_display()
19719
19720         * gtk/simple.c (main): Close window on destroy.
19721
19722 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
19723
19724         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
19725         to treat initial creation different from setting with 
19726         regards to the graphics-exposures parameter, so add a parameter
19727         indicating whether this is initial or not.
19728
19729 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
19730
19731         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
19732         to sort of work by adding an extra return_exposes arg
19733         to gdk_event_translate() - it might be better to simply
19734         deprecate the function altogether and force people to rewrite
19735         without it. gdk_window_scroll() handles most of it, and where
19736         gdk_window_scroll() doesn't work, simply redrawing more does.
19737
19738         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
19739         assertion.
19740
19741         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
19742
19743         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
19744         bunch of pretty much useless /* Print debugging info */ comments 
19745         which had drifted away from the code they were commenting.
19746
19747 2000-06-02  Havoc Pennington  <hp@pobox.com>
19748
19749         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
19750         is in working order.
19751         
19752         * gtk/testtext.c: Change to reflect anonymous mark API
19753
19754         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
19755
19756         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
19757         field, which was unused.
19758
19759         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
19760         saves some typing.
19761
19762         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
19763
19764         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
19765         flag on the insertion point and selection bound
19766
19767         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
19768         make mark-manipulation functions take a GtkTextMark* instead of a
19769         mark name.
19770         
19771         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
19772         GtkTextMarkBody; will be used to detect attempts to delete
19773         the permanent marks (insert and selection bound)
19774
19775         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
19776
19777 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
19778
19779         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
19780         flag to on.
19781
19782         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
19783         Honor DOUBLE_BUFFRED_FLAG
19784
19785         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
19786         function to set the DOUBLE_BUFFERED flag.
19787
19788         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
19789         or not exposes done on the widget should be double-buffered.
19790
19791         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
19792         to be what would be expected. (Fixes problem with a
19793         g_return_if_fail() validating a TextDirection enumeration)
19794
19795 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
19796
19797         * gtk/gtkwidget.c: Remove all references to 
19798         offscreen flag which was no longer used.
19799
19800         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
19801
19802         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
19803         for non-null label_widget->parent.
19804
19805         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
19806         which no longer was used.
19807
19808         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
19809
19810         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
19811         for null arguments.
19812
19813         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
19814         check for destroyed windows.
19815
19816 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
19817
19818         * gtk/gtkimmulticontext.c: Add a finalize method and unref
19819         the slave context there.
19820
19821         * gtk/gtkinvisible.[ch]: Make reference counting behavior
19822         identical to GtkWindow.
19823
19824 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
19825
19826         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
19827         pangox to here, so we can write them independent of rendering
19828         system, using GDK primitives.
19829
19830         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
19831         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
19832         since we have a rendering-system independent implementation in
19833         terms of draw_glyphs().
19834         
19835         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
19836         function to render a single line.
19837
19838         * gdk/x11/gdkpango.c: Move the guts of this file mostly
19839         into ../gdkpango.c, which simplifies things, since we
19840         don't have to deal with raw X gc's.
19841
19842 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
19843
19844         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
19845         get the logical attributes for a given GtkTextLine.
19846
19847 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
19848
19849         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
19850         g_locale_get_codeset() to g_get_codeset() change.
19851
19852 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
19853
19854         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
19855         descriptions.
19856
19857         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
19858         the entry.
19859
19860         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
19861         redoing (vastly simplifying) for Pango. Still needs quite
19862         a bit of work. (Size selection is currently poor. List of 
19863         predefined sizes is not a good idea, since all of these
19864         sizes won't necessarily be distinct.)
19865
19866 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
19867
19868         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
19869         CODESET results for LANG=C.
19870
19871 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
19872
19873         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
19874         which takes a stringized pango font description;
19875         ignore the older 'font' and 'fontset' declarations.
19876
19877         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
19878         field with a GdkFont derived via gdk_font_from_description(),
19879         for compatibility. (Should we just remove it entirely?
19880         Probably too much compatibility breakage, but people
19881         should be migrating to the new Pango stuff as quickly
19882         as possible.)
19883
19884 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
19885
19886         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
19887
19888 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
19889
19890         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
19891         redoing; there are some bugs in size allocation right
19892         now, the semi-existant distinction between header / day
19893         fonts was removed, but, with Pango, could actually
19894         be made functional in a nice way.
19895         
19896         * gtk/testcalender: Move calender from examples into this
19897         directory as a test program. (We really need to restrcture
19898         testgtk into a whole directory full of tests for every
19899         widget or functionality group, separated into multiple .c
19900         files.)
19901
19902 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
19903
19904         * gtk/testgtk.c (file_exists): Fix stupid typo that
19905         was keeping RC file from being loaded.
19906
19907         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
19908         RC file font code.
19909
19910 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
19911
19912         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
19913         Add function to load a GdkFont from a PangoFontDescription.
19914
19915 2000-05-29  Tor Lillqvist  <tml@iki.fi>
19916
19917         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
19918         variable should be of type GdkEventPrivate.
19919
19920 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
19921
19922         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
19923         to have any widget for the label, use a GtkLabel widget
19924         to display the text. (Based partially on a patch from
19925         Anders Carlson.)
19926
19927         (Quite a bit of code reorganization - strip 90% of the
19928         guts out of gtkaspectframe and add a single virtual
19929         func to GtkFrameClass - compute_child_allocation.)
19930
19931 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
19932
19933         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
19934         (Removed clist->row_center_offset field because caching
19935         it wasn't saving time or code, added private function
19936         _gtk_clist_create_cell_layout()).
19937
19938 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
19939
19940         * gtk/gtkaccellabel.c: Pangoized.
19941
19942         * gtk/[hv]ruler.c: Pangoized
19943
19944 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
19945
19946         * gtk/gtkfilesel.c (gtk_file_selection_init):
19947         Use gtk_clist_set_column_auto_resize() to remove need
19948         need for manual column width computations.
19949
19950 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
19951
19952         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
19953         ensuring Pango correctness, and considerably simplifying the
19954         code.
19955         
19956         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
19957
19958         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
19959         getting of numbers of lines.
19960
19961         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
19962         to the actual requested width of the lable, not to the wrap
19963         width we set.
19964
19965         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
19966
19967         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
19968           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
19969
19970         * gtk/gtktextview.c: Fix structure inheritance.
19971
19972         * gtk/gtkprogressbar.c: Pangoize.
19973
19974 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
19975
19976         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
19977         in a function.
19978
19979         * gtk/gtktextlayout.c (find_display_line_above): Fixed
19980         bug with computing line tops.
19981
19982         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
19983
19984 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
19985
19986         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
19987         and y_offset coordinates to do what we need now. (The offset between
19988         buffer and layout coordinates has been reintroduced, but is a 
19989         bit different than before.)
19990
19991         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
19992         handle the adjustments ourselves, and scroll as necessary using
19993         the new gdk_window_scroll().
19994         
19995         The advantage of this is that when we are incrementally revalidating,
19996         we are essentially rearranging things around the visible portion
19997         of the screen. With the old setup, the visible portion of the
19998         screen was moved around in the layout, so scrolling and redrawing
19999         to track that caused jumping of the display. Since we now
20000         control the scrolling ourselves, we can suppress this and
20001         only redraw when things actually change.
20002
20003 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
20004
20005         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
20006         the region not just redisplay it after-all, since we store the
20007         cursors in the LineDisplay. (Ugly interactions here between
20008         GtkLayout and GtkTextBTree here.)
20009         
20010         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
20011
20012 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
20013
20014         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
20015         Added function to scroll contents of a window while keeping the
20016         window constant. Works by XCopyArea or guffaw-scrolling depending
20017         on the details of how the window is set up. (guffaw-scrolling
20018         still needs to be filled in.)
20019
20020 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
20021
20022         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
20023         move the debugging that was tied to a global variable
20024         to that.
20025
20026         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
20027
20028         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
20029         validated flag, in line data instead of setting height/width to
20030         -1. This allows us to perform operations with partially invalid
20031         buffer (using the old size for invalid lines) and thus to do
20032         incremental vaidation. Keep height/width aggregates up to date
20033         when deleting text and rebalancing the tree.
20034
20035         * gtk/gtktextbtree.[ch]: Add functions validate a line
20036         (gtk_text_btree_validate_line), and to validate up
20037         to a number of pixels (gtk_text_btree_validate).
20038
20039         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
20040         that indicates that something is changed and a revalidation
20041         pass is needed. Change ::need_repaint to ::changed, and
20042         make it take old and new yranges instead of a rectangle.
20043
20044         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
20045         the line_data_destroy() function from 
20046         gtk_text_btree_add_view() to a virtual function in 
20047         GtkTextLayout
20048
20049         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
20050         since we are handling partial repaints in a different fashion
20051         now.
20052
20053         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
20054         of the selection instead of queueing a repaint on the
20055         entire widget.
20056
20057         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
20058         get_selection_bounds() down to btree, make the function
20059         in buffer a wrapper around the btree function.
20060
20061         * gtk/gtktextlayout.[ch]: Add functions to check if the
20062         layout is valid and to recompute either a range of pixels
20063         aroudn a line or a certain total number of pixels.
20064
20065         * gtk/gtktextlayout.[ch]: Cache a single line display;
20066         now that we only redraw the needed portions, the hit rate
20067         for this cache is quite high.
20068         
20069         * gtk/gtktextview.[ch]: Keep track of the first paragraph
20070         on the screen so that when re-laying-out the buffer, we can
20071         keep the same place. This requires connecting to ::value_changed
20072         on the adjustments
20073
20074         * gtk/gtktextview.[ch]: Add idle functions to revalidate
20075         the buffer after we receive an ::invalidated signal.
20076         
20077 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
20078
20079         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
20080         to max of allocation and layout size, not just to the
20081         layout size.
20082
20083         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
20084         Invalidate window so it gets redrawn properly.
20085
20086         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
20087         to mean the entire window.
20088
20089         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
20090         into public header.
20091
20092 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
20093
20094         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
20095         to get the name of a mark.
20096
20097         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
20098         to find the paragraph from a y position.
20099
20100 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
20101
20102         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
20103         nodes have width/height >= 0, not > 0.
20104
20105 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
20106
20107         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
20108         Add a size_only flag, so when we only need the size, we don't create
20109         useless appearance attributes.
20110
20111         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
20112         duplicate setting of font description.
20113
20114         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
20115
20116 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
20117
20118         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
20119         EXTRA_DIST. It does not work well when the file that
20120         everything depends on is not in the tarball.
20121
20122 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
20123
20124         * gtk/testgtk.c: Some hacks and fixes so that it basically
20125         works when not sitting in the GTK+ build tree.
20126
20127 2000-05-03  Havoc Pennington  <hp@redhat.com>
20128
20129         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
20130         Properly determine the ordering of the tag root and the current
20131         line within the tree. Previous algorithm only worked if the tag
20132         root's immediate parent was the common root of both the current
20133         line and the tag root.
20134
20135 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
20136
20137         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
20138         alignment.
20139
20140         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
20141         the widget text directional dynamically.
20142
20143         * gtk/gtktextview.[ch]: Added functions to get and set default
20144         wrap mode.
20145
20146 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
20147
20148         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
20149         in cursor location computation.
20150
20151 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
20152
20153         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
20154         vadjusment values properly when layout gets smaller.
20155
20156         * gtk/gtktextview.c (need_repaint_handler): Areas being
20157         passed in are far completely inaccurate, and sometimes
20158         too small, so, for now, just queue a redraw on the
20159         whole visible region.
20160
20161 2000-04-25  Havoc Pennington  <hp@redhat.com>
20162
20163         * gtk/gtktextbtree.c (summary_destroy): new function to 
20164         destroy tag summary nodes
20165         (gtk_text_line_next_could_contain_tag): this function was 
20166         totally broken if the line passed in wasn't below the tag
20167         root. Fix it.
20168         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
20169         "wildcard" case, we have to do a linear scan. Blah.
20170         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
20171         we have to do the linear scan
20172         (tag_removed_cb): When a tag is removed from the tag table, 
20173         remove the GtkTextTagInfo node from the btree.
20174         (gtk_text_btree_spew): Implement the spew function, for 
20175         our debugging pleasure.
20176
20177 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
20178
20179         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
20180         a problem with referring to the wrong buffer.
20181
20182         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
20183
20184         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
20185         font description to gtk_style_new() - otherwise things
20186         don't work without a .gtkrc file.
20187
20188         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
20189         tags table if we create it ourself, too.
20190
20191         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
20192         it was conflicting with XKB modifiers.
20193
20194         * gtk/gtktextview.[ch]: Add simple support for 
20195         GtkIMContext.
20196
20197 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
20198
20199         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
20200         with deletion from last commit.
20201
20202 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
20203
20204         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
20205         in the context from the current locale.
20206         
20207         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
20208         context, not hardcoded value.
20209
20210         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
20211         not logical.
20212
20213 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
20214
20215         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
20216         attributes - that doesn't handle partial-glyph selection
20217         properly. Instead use new pango_layout_line_get_x_ranges()
20218         functionality to draw the selection.
20219
20220         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
20221         now properly handles out-of-range coordinates.
20222
20223         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
20224
20225         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
20226         public.
20227
20228         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
20229         for paragraphs opposite to the base direction of the widget.
20230
20231         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
20232
20233         * gtk/gtktextlayout.c: Don't split segments on marks, since that
20234         causes Arabic words to reshape as you cursor through.
20235
20236         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
20237         cursor position when moving vertically with the arrow keys and
20238         scrolling with page-up/page-down. (Arrow keys save only the X,
20239         scrolling saves both X and Y.)
20240
20241         This means you can line-up / line-down or page-up / page-down
20242         without losing your place, and also that moving vertically
20243         with the cursor keys keeps the same X position, not the same
20244         character count:
20245
20246         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
20247         arrow keys move by display lines, not paragraphs.
20248
20249 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
20250
20251         * gtk/gtklayout.c: Make sure that the bin window is at least
20252         as big as the allocation. (Should we also make sure that the
20253         bin window is big enough to completely cover widget->window?)
20254
20255         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
20256         function to get the onscreen rectangle.
20257
20258         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
20259         for offsets in window coordinates.
20260
20261 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
20262
20263         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
20264         confusion.
20265
20266         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
20267         from the widget direction.
20268
20269         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
20270         Add a "direction" attribute.
20271
20272         * gtk/gtktextview.c: global s/tkxt/text_view/.
20273
20274         * gtk/testtext.c: Added long block of text in Arabic, to test out
20275         the direction attributes. (Some problems with the shaping system
20276         for arabic become obvious - like the fact the cursor splits words
20277         into unjoined pieces.)
20278
20279 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
20280
20281         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
20282
20283         * gtk/gtktextlayout.c: Fix up alignment.
20284
20285         * gtk/testtext.c: Add some tests for centering, wrapping.
20286
20287 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
20288
20289         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20290         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
20291         If we wrote GTK+-specific layout-render function this could just replace
20292         the draw_layout() operation in the vtable.
20293
20294         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
20295         pango_layout_get_cursor_pos() and use that function.
20296
20297         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
20298         is a non-static symbol.
20299
20300         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
20301         with gtk_text_btree_find_line_by_y()
20302
20303         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
20304         renderer that handles GtkTextAppearance attributes.
20305
20306         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
20307
20308           - Move the values in the style that don't affect geometry into a
20309             GtkTextAppearance structure.
20310           - Change underline to take a PangoUnderline and "font" a string
20311             representation of a font description
20312           - Add a "font_desc" attribute which takes a FontDescription structure.
20313
20314         * gtk/gtktextlayout.[ch]:
20315
20316           - Get rid of the display-line list per each line. Instead, we
20317             generate, on demand, a GtkTextLineDisplay structure which]
20318             contains a PangoLayout * and other necesary information
20319             (offsets, cursor locations) for displaying a paragraph.
20320           - Get rid of the code to wrap lines, create display chunks,
20321             etc. Instead, we just go through a paragraph and convert
20322             it into the necessary inputs to a PangoLayout.
20323           - Implement a new attribute type, GtkTextAttrAppearance. This
20324             holds a GtkTextAppearance, and is used to pass colors, 
20325             stipple, etc, through from the layout to the display without
20326             having to use lots and lots of individual attributes.
20327           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
20328             in terms of PangoLayout functions.
20329         
20330         * gtk/gtktextview.c: 
20331          
20332           - Handle passing the necessary PangoContext to the layout
20333           - Some fixups in painting to deal with the automatic backing store
20334             and offsetting of GTK+-1.4
20335           - Add a style_set handler so that the default style reacts
20336             properly to theme changes.
20337         
20338         * gtk/gtktext?*.[ch]: Random code-style fixes.
20339
20340         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
20341
20342 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
20343
20344         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
20345         in original form preparatory to Pango-ization and gdkimcontext-ization.
20346
20347 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
20348
20349         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
20350         so that we can derive from gtkimcontext in language bindings properly.
20351
20352 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
20353
20354         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
20355         Add a compose table including (almost) all the compose combinations
20356         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
20357         data in the XIM implementation.
20358
20359         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
20360         Moved functions to convert keyvalues from and to unicode here from
20361         the win32 port and made them public.
20362
20363 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
20364
20365         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
20366
20367 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
20368
20369         * gtk/gtkimcontext.[ch]: Base class for new input context system
20370
20371         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
20372         the real input context implementation to be loaded from modules
20373         and switched on the fly.
20374
20375         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
20376         context that just does direct keysymbol => unicode translation.
20377
20378         * gtk/gtkentry.[ch]: Start switching editing over to using
20379         GtkInputContext. (No handling of preedit yet.)
20380
20381 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
20382
20383         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
20384         many substitutions. (klass should not be subsituted.)
20385
20386 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
20387
20388         * configure.in: Add checks for Pango
20389
20390         * configure.in docs/Makefile.am: Add test for sgml2html
20391         and allow 'make dist' without building html, but print out
20392         warnings in that case. (For making snapshots)
20393
20394         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
20395         Add Pango libraries and C flags
20396
20397         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20398         Add function (gdk_draw_layout) to draw a pango layout.
20399
20400         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
20401         for getting Pango contexts for GDK.
20402
20403         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
20404
20405         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
20406         editing.
20407
20408         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
20409         keysym => unicode translations. More languages can be added
20410         here, but real input-method support is needed.
20411
20412         * docs/Changes-1.4.txt: Added note about entry behavior.
20413         
20414         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
20415         to set the reading direction for a widget and the global direction.
20416         Add test which allows toggling the global direction. Two private
20417         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
20418
20419         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
20420           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
20421
20422         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
20423
20424         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
20425         underlining now handled by Pango.
20426
20427         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
20428         to RCStyle and Style. (Having both this and the old font name and GdkFont 
20429         is temporary.)
20430
20431         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
20432         convenience functions for creating contexts and layouts for widgets.
20433
20434         * gtk/testgtk.c: Enhance label tests with multilingual labels.
20435
20436 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
20437
20438         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
20439         titles to be active, even if they aren't visible.
20440         (gtk_clist_column_titles_passive):  Ditto.
20441
20442 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
20443
20444         * gtkmenu.c:
20445         * gtkmenu.h:
20446         * gtktypeutils.h: Spelling/grammar fixes in comments.
20447
20448 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
20449
20450         * gdk/nanox/*.h: add missing header files.
20451
20452 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
20453
20454         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
20455         send_event to TRUE.
20456         (gtk_drawing_area_size): queue a resize.
20457
20458 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
20459
20460         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
20461         the handlers, also invalidate them. bug nailed down by Karl Nelson
20462         <kenelson@ece.ucdavis.edu>.
20463
20464 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
20465
20466         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
20467         "(nil)" foundries, patch from Grigorios Magklis.
20468
20469         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
20470         on non-available fonts, based on a patch by Grigorios Magklis
20471         <maglis@cs.rochester.edu>.
20472
20473 2000-05-18  Elliot Lee  <sopwith@redhat.com>
20474
20475         * gdk/x11/gdkregion-generic.c: If a region does not have any
20476         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
20477         instead of GDK_OVERLAP_RECTANGLE_IN.
20478
20479 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
20480
20481         * gtk/gtklayout.c (gtk_layout_map): Remove references to
20482         OFFSCREEN, as it is no longer necessary.
20483
20484 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
20485
20486         * gtk/gtkcolorsel.c: Patch from David Santiago
20487         <mrcooger@cyberverse.com> to change things so that the 
20488         indicator of the active palette entry is done independently,
20489         not via the focus, since it should always be visible.
20490
20491 2000-05-17  Tor Lillqvist  <tml@iki.fi>
20492
20493         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
20494         refcount leaks as in the X11 backend.
20495
20496         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
20497         cosmetics.
20498
20499         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
20500         backend. Add _gdk_windowing_window_destroy().
20501
20502         * gtk/gtkcolorsel.c: Include correct backend-specific header.
20503         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
20504         either, but these probably do exist on nanox?)
20505         
20506         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
20507         which isn't necessarily defined by <math.h>.
20508
20509         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
20510         ancestry past GtkObject.
20511
20512         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
20513         from DLL on Win32.
20514
20515         * gtk/gtk.def: Update corresponding to recent changes.
20516
20517         * gtk/makefile.{cygwin,msc}: Updates.
20518
20519 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
20520
20521         * docs/Changes-1.4.txt: A bit of editing.
20522
20523         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
20524         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
20525         to clear the update area for the window, and clear it
20526         when hiding a window.
20527
20528         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
20529         if window destroyed.
20530
20531         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
20532
20533         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
20534         gdk_window_destroy() to the generic code, since there was a lot of 
20535         window-system-independent logic it in. Add a function:
20536         
20537          _gdk_window_destroy() 
20538
20539         to the internal API to destroy a window without unreferencing it.
20540         Add a function:
20541
20542          _gdk_windowing_window_destroy()
20543
20544         That does the windowing-system-dependent part of destroying 
20545         the window.
20546
20547 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
20548
20549         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
20550
20551 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
20552
20553         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
20554         Make gtk_widget_shape_combine_mask() keep a reference count on
20555         the pixmap since it keeps it around.
20556
20557 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
20558
20559         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
20560         leak.
20561
20562         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
20563         leak with event filters.
20564
20565 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
20566
20567         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
20568         signal handlers with the right data arguments. (Fixes
20569         some warnings when a widget was repeatedly set as a drag
20570         destination.)
20571
20572         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
20573         window so we can avoid avoid setting the DND properties on the
20574         toplevel window repeatedly.
20575
20576 2000-05-13  Tor Lillqvist  <tml@iki.fi>
20577
20578         * gdk/win32/gdkwin32.h: Define more message types missing from
20579         mingw headers.
20580
20581         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
20582         call gdk_window_destroy_notify(). It was never called. This
20583         probably meant that the GdkWindow was never freed. Thanks Owen for
20584         noticing (!).
20585
20586         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
20587         window as destroyed before calling DestroyWindow(). DestroyWindow()
20588         causes a call to the window procedure (gdk_WindowProc), which
20589         calls gdk_event_translate(), which calls
20590         gdk_window_destroy_notify(), which gets confused unless the window
20591         is set as destroyed.
20592
20593         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
20594         this function to indicate it's win32 only. Put inside #ifdef
20595         G_ENABLE_DEBUG.
20596
20597         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
20598         debugging function. (gdk_event_translate:) Add a default branch
20599         that uses the above function to print debug messages with all
20600         Windows messages symbolically.
20601
20602         * gdk/win32/gdkprivate-win32.h: Declare it, and
20603         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
20604
20605 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
20606
20607         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
20608         public header file.
20609
20610 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
20611
20612         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
20613
20614         * gtk/gtktext.c: made the adjustments no-construct args, simply
20615         provide default adjustments.
20616         (gtk_text_destroy): release adjustments.
20617
20618         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
20619         adjustment argument non-construct.
20620
20621         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
20622         instead of in finalize.
20623         (gtk_progress_get_text_from_value): 
20624         (gtk_progress_get_current_text): 
20625         (gtk_progress_set_value): 
20626         (gtk_progress_get_percentage_from_value): 
20627         (gtk_progress_get_current_percentage): 
20628         (gtk_progress_set_percentage): 
20629         (gtk_progress_configure): ensure an adjustment is present.
20630
20631 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
20632
20633         * gtk/gtkcolorsel.[hc]:
20634         * gtk/gtkcolorseldialog.[hc]:
20635         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
20636         their parent implementation, use bit fields for boolean values, don't
20637         create unused widgets, usage of glib types, braces go on their own
20638         lines, function argument alignment, #include directives etc. etc. etc..
20639
20640         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
20641
20642 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
20643
20644         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
20645
20646         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
20647         of NULL.
20648
20649         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
20650         to freed data.
20651         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
20652
20653         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
20654         to NULL when the toplevel is getting destroyed.
20655         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
20656         (gtk_menu_destroy): 
20657         (gtk_menu_init): store the information of whether we have to
20658         readd the initial child ref_count during destruction in a new
20659         GtkMenu field needs_destruction_ref_count.
20660
20661         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
20662         here, those reading: learn from my mistake! ;)
20663         in order for set_?adjustment to support a default adjustemnt if
20664         invoked with an adjustment pointer of NULL, the code read (pseudo):
20665         if (v->adjustment) unref (v->adjustment);
20666         if (!adjustment) adjustment = adjustment_new ();
20667         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
20668         now imagine the first unref to actually free the old adjustment and
20669         adjustment_new() creating a new adjustment from the very same memory
20670         portion. here, the latter comparision will unintendedly fail, and
20671         all hell breaks loose.
20672         (gtk_viewport_set_hadjustment):
20673         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
20674         after unreferencing it.
20675
20676         * gtk/gtkcontainer.[hc]: removed toplevel registration
20677         functions: gtk_container_register_toplevel(),
20678         gtk_container_unregister_toplevel() and
20679         gtk_container_get_toplevels() which had wrong semantics
20680         anyways: it didn't reference and copy the list.
20681
20682         * gtk/gtkwindow.c: we take over the container toplevel registration
20683         bussiness now. windows are registered across multiple destructions,
20684         untill they are finalized. the initial implicit reference count
20685         users are holding on windows is removed with the first destruction
20686         though.
20687         (gtk_window_init): ref & sink and set has_user_ref_count, got
20688         rid of gtk_container_register_toplevel() call. add window to
20689         toplevel_list.
20690         (gtk_window_destroy): unref the window if has_user_ref_count
20691         is still set, got rid of call to
20692         gtk_container_unregister_toplevel().
20693         (gtk_window_finalize): remove window from toplevel list.
20694         (gtk_window_list_toplevels): new function to return a newly
20695         created list with referenced toplevels.
20696         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
20697
20698         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
20699         adjustment a non-construct arg.
20700         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
20701         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
20702         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
20703
20704         * gtk/gtkrange.c: added some realized checks.
20705         (gtk_range_destroy): get rid of the h/v adjustments in the
20706         destroy handler instead of finalize. remove timer.
20707         (gtk_range_get_adjustment): demand create adjustment.
20708
20709         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
20710         we simply create them on demand now and get rid of them in
20711         the destroy handler.
20712         (gtk_viewport_destroy): get rid of the h/v adjustments in the
20713         destroy handler instead of finalize.
20714         (gtk_viewport_get_hadjustment): 
20715         (gtk_viewport_get_vadjustment): 
20716         (gtk_viewport_size_allocate): demand create h/v adjustment
20717         if required.
20718
20719         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
20720         gtk_widget_real_destroy () functionality.
20721         (gtk_widget_real_destroy): reinitialize with a new style, instead
20722         of setting widget->style to NULL.
20723
20724 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
20725
20726         * gtk/gtkcalendar.c:
20727         * gtk/gtkbutton.c: ported _get_type() implementation over to
20728         GType, either to preserve memchunks allocation facilities,
20729         or because Gtk+ 1.0 GtkTypeInfo was still being used.
20730
20731         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
20732         over. prepare for ::destroy to be emitted multiple times.
20733         removed reference tracer magic. chain into GObjectClass.shutdown()
20734         to emit ::destroy signal.
20735
20736         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
20737         fundamental.
20738
20739         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
20740         cludge.
20741
20742         * gtk/gtksocket.c:
20743         * gtk/gtkplug.c:
20744         * gtk/gtklayout.c:
20745         * gtk/gtklabel.c:
20746         * gtk/gtkargcollector.c:
20747         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
20748         not being a fundamental anymore, and to work with the new
20749         type system (nuked fundamental type varargs clutter).
20750
20751         * gtk/*.c: install finalize handlers in the GObjectClass
20752         part of the class structure.
20753         changed direct GTK_OBJECT()->klass accesses to
20754         GTK_*_GET_CLASS().
20755         changed direct object_class->type accesses to GTK_CLASS_TYPE().
20756
20757         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
20758         GType. made most of the GTK_*() type macros and Gtk* typedefs
20759         simple wrappers around macros and types provided by GType.
20760         most notably, a significant portion of the old API vanished:
20761         GTK_TYPE_MAKE(),
20762         GTK_TYPE_SEQNO(),
20763         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
20764         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
20765         GTK_TYPE_ARGS,
20766         GTK_TYPE_CALLBACK,
20767         GTK_TYPE_C_CALLBACK,
20768         GTK_TYPE_FOREIGN,
20769         GtkTypeQuery,
20770         gtk_type_query(),
20771         gtk_type_set_varargs_type(),
20772         gtk_type_get_varargs_type(),
20773         gtk_type_check_object_cast(),
20774         gtk_type_check_class_cast(),
20775         gtk_type_describe_tree(),
20776         gtk_type_describe_heritage(),
20777         gtk_type_free(),
20778         gtk_type_children_types(),
20779         gtk_type_set_chunk_alloc(),
20780         gtk_type_register_enum(),
20781         gtk_type_register_flags(),
20782         gtk_type_parent_class().
20783         replacements, where available are described in ../docs/Changes-1.4.txt.
20784         implemented compatibility functions for the remaining API.
20785
20786         * configure.in: depend on glib 1.3.1, use gobject module.
20787
20788 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
20789
20790         * TODO.xml: Various updates to current status.
20791
20792 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
20793
20794         * gtk.m4: Print out version when test succeeds.
20795
20796 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
20797
20798         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
20799         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
20800         
20801         (Original triangle color selector from Simon Budig
20802         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
20803         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
20804         Santiago <mrcooger@cyberverse.com>)
20805
20806         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
20807         out into a separate widget.
20808
20809         * gtk/testgtk.c: Add some checkbuttons for toggling palette
20810         and opacity controls.
20811
20812 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
20813
20814         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
20815         snuck in prematurely.
20816
20817 2000-05-07  Tor Lillqvist  <tml@iki.fi>
20818
20819         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
20820         had deleted a ! operator by mistake, which caused
20821         GDK_SELECTION_CLEAR events never to be generated, which caused
20822         only the first copy to the clipboard from an gtkeditable to
20823         actually cause a copy to the Windows clipboard.
20824
20825 2000-05-06  Tor Lillqvist  <tml@iki.fi>
20826
20827         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
20828         compilation, too. Current mingw gcc distributions include the
20829         necessary headers. Also the necessary IIDs are now in mingw
20830         headers/libraries, and own definitions unnecessary.
20831
20832         More hacking on OLE2 DND, still doesn't work though, and thus
20833         ifdeffed out.
20834
20835         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
20836         here, too.
20837
20838 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
20839
20840         * gdk/nanox/*: nano-X port work in progress.
20841         * gdk/simple.c: simple test for Gdk.
20842         * README.nanox: notes about the port: read this first!
20843         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
20844         with nano-X.
20845
20846 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
20847
20848         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
20849         gdk_window_clear() into common code, implement in terms of
20850         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
20851         not redirected to the backing rectangle.
20852
20853 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
20854
20855         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
20856         EXTRA_DIST. It does not work well when the file that
20857         everything depends on is not in the tarball.
20858
20859 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
20860
20861         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
20862         with recursion where process_updates() is called from
20863         an expose handler. (GtkTextView is highly broken in
20864         doing this, but it should work, so it is a nice test
20865         case.)
20866
20867 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
20868
20869         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
20870         handle the case where updates are queued during processing of
20871         updates.
20872
20873 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
20874
20875         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
20876         window is on gdk_display - use that instead of segfaulting.
20877
20878 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
20879
20880         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
20881         broken and require an empty arg, give it to them.
20882
20883 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
20884
20885         * gtk/gtklabel.h: indentation fixes.
20886
20887 2000-05-02  Tor Lillqvist  <tml@iki.fi>
20888
20889         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
20890         draw too narrow or too low arcs, they seem to fail, at least with
20891         some display drivers.
20892
20893         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
20894
20895         Large changes to the Win32 backend, partially made necessary by
20896         the changes to the backend-independent internal
20897         structures. Attempts to implement similar backing store stuff as
20898         on X11. The current (CVS) version of the Win32 backend is *not* as
20899         stable as it was before the no-flicker branch was merged. A
20900         zipfile with that version is available from
20901         http://www.gimp.org/win32/. That should be use by "production"
20902         code until this CVS version is usable. (But note, the Win32
20903         backend has never been claimed to be "production quality".)
20904
20905         * README.win32: Add the above comment about versions.
20906
20907         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
20908
20909         * gdk/gdk.def: Update.
20910
20911         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
20912         presumably be replaced by some more better mechanism as 1.4 gets
20913         closer to release shape.
20914
20915         * gdk/makefile.{cygwin,msc}: Update.
20916
20917         * gdk/win32/*.c: Correct inclusions of the backend-specific and
20918         internal headers. Change code according to changes in these. Use
20919         gdk_drawable_*, not gdk_window_* where necessary.
20920
20921         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
20922         our old DND.
20923
20924         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
20925         to interpret single characters as UTF-8. Thanks to Hans Breuer.
20926         Use correct function name in warning messages.
20927
20928         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
20929         GSourceFuncs gdk_event_prepare and gdk_event_check.
20930         (gdk_event_get_graphics_expose): Do implement, use
20931         PeekMessage. Thanks to Hans Breuer.
20932         (event_mask_string): Debugging function to print an GdkEventMask.
20933         (gdk_pointer_grab): Use it.
20934
20935         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
20936         (old) book I used claimed was Hangul actually is CJK Unified
20937         Ideographs Extension A. Also, Hangul Syllables were missing.
20938         Improve logging.
20939
20940         * gdk/win32/gdkgc-win32.c: Largish changes.
20941
20942         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
20943         g_win32_getlocale() from GLib, and not setlocale() to get current
20944         locale name.
20945
20946         * gdk/win32/gdkprivate-win32.h
20947         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
20948         gdkwin32.h, similarily as in the X11 backend.
20949
20950         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
20951         assignment was used instead of equals in if test. Thanks to Hans
20952         Breuer.
20953
20954         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
20955         the X11 version.
20956
20957         * gdk/win32/makefile.{cygwin,msc}
20958         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
20959         path to the Win32 headers that works also with the mingw compiler.
20960
20961         * gtk/gtkstyle.c: Include <string.h>.
20962
20963 2000-04-26  Havoc Pennington  <hp@redhat.com>
20964
20965         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
20966         replacing the broken gtk_label_get ()
20967
20968 2000-04-15  Havoc Pennington  <hp@pobox.com>
20969
20970         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
20971         this keeps scanner scripts from getting confused.
20972
20973         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
20974         data, rather than void
20975
20976 2000-04-15  Tor Lillqvist  <tml@iki.fi>
20977
20978         * gtk/gtkclist.c (gtk_clist_motion)
20979         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
20980         with is_hint FALSE, get x and y from the event. They used to be
20981         used uninitialised. The Win32 backend never sends motion events
20982         marked as hints. This for instance fixes the annoying file and
20983         font selector behaviour in the Win32 version.
20984
20985 2000-04-14  Tor Lillqvist  <tml@iki.fi>
20986
20987         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
20988         gtk_private_n_signals variables, they are used by some software,
20989         sigh.
20990
20991         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
20992         installation directory from the Registry, where the installer
20993         should have put it.
20994
20995 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
20996
20997         * gdk/x11/Makefile.am: Fix problem with installation directory for
20998         gdkx.h
20999
21000         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
21001         <mrcooger@cyberverse.com> so that when selecting menus with the
21002         mouse, the first item will not be selected, but when selecting
21003         with an accelerator, or navigating left-right on a menubar with
21004         the menus popped up, the first item will be selected.
21005
21006 2000-04-05  Dan Damian  <dand@dnttm.ro>
21007
21008         * configure.in: Added "ro" to ALL_LINGUAS.
21009
21010 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
21011
21012         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
21013         indentation.
21014
21015         * Makefile.am (EXTRA_DIST): Fix typo.
21016
21017         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
21018         to catch gdkconfig.h
21019
21020         * gtk/gtkitemfactory.c: Added FIXME.
21021
21022 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
21023
21024         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
21025         s/return_if_fail/return_val_if_fail/g and add a return value.
21026
21027 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
21028
21029         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
21030         merge slipup.
21031
21032         * gdk/gdkinput.h: Fix missing line from merge.
21033
21034 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
21035
21036         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
21037         instead of gdkprivate.h.
21038
21039 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
21040
21041         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
21042         parent class to correctly be GtkDialogClass.
21043
21044 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
21045
21046         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
21047         toplevel windows and their immediate children by their parents,
21048         since the size of toplevel windows is out of our immediate
21049         control and we don't get any real benefit from trying to track
21050         this size for clipping.
21051
21052         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
21053         for input_only windows.
21054
21055         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
21056         to fix some hacks and make sure that we don't try to set the
21057         background of input only windows.
21058
21059 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
21060
21061         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
21062         the _really_ internal stuff, and leave gdkprivate.h for the fake private
21063         stuff that we've traditionally exposed.
21064
21065         * gdk/**.c: Use gdkinternals.h where appropriate.
21066
21067         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
21068         not include gdkprivate-x11.h, move all stuff of conceivable public
21069         interest into gdkx.h; keep all really private stuff in
21070         uninstalled header gdkprivate-x11.h.
21071
21072         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
21073         image->image_put on windows through a new function _gdk_window_draw_image()
21074         to allow us to do backing store for images. (Sort of ugly)
21075
21076         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
21077         contexts locally so that we can offset them properly when drawing 
21078         onto backing pixmaps.
21079
21080         * gdk/gdkinput.h: Reindented
21081
21082         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
21083         pixmap or color for the window, so we can properly initialize
21084         our double-buffer pixmaps, and also so that we temporarily set
21085         a background of None while scrolling.
21086
21087         * gdk/gdkregion.h: Revise region boolean operators to have an
21088         interface that is actually convenient - switch from creating new
21089         regions on every op, to "methods" that modify existing regions
21090         (A = A OP B). 3 argument forms which allow dest == src, would also
21091         be possible, but the current interfaces seem to map nicely
21092         onto what needs to be done. (There is quite a lot of region
21093         code in GDK now.)
21094
21095         * gdk/gdkregion.h: Add constructor from rectangle and a copy
21096         operator.
21097
21098         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
21099         gdkpoly-generic.h: Copy region code from Xlib, switch it over
21100         to 32 bit coordinates, modify it to be mostly GTK+ style
21101         and to have interfaces that match gdkregion.h.
21102
21103         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
21104         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
21105         create a backing pixmap and redirect all drawing to
21106         that backing pixmap until a matching gdk_window_end_paint().
21107
21108         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
21109         Create a special drawable class for GtkWindow's that 
21110         redirects the drawing to the backing pixmap as necessary
21111         and then calls the real operations in _gdk_windowing_window_class.
21112
21113         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
21114         Store invalid region for each window. Generate expose events for invalid
21115         region in an idle. This replaces both the expose compression
21116         and the redrawing queuing in GTK+. It is both more efficient and
21117         simpler than either one individually and far more so then the
21118         combination.
21119
21120         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
21121         Emulate 32 bit coordinates for windows with 16 bit coordinates
21122         by offsetting drawing, guffaw scrolling techniques and
21123         mapping/unmapping child windows as necessary.
21124
21125         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
21126         where, when invalid regions are processed, the region is stored,
21127         and if expose events come in that are detectably duplicate
21128         the processed exposes (by comparison of event serial numbers),
21129         the stored region is subtracted out of those exposes.
21130
21131         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
21132         regions newly exposed when scrolling or resizing windows.
21133         This, combined with forcing processesing of queued invalidated
21134         regions, gives nice flicker-free scrolling.
21135
21136         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
21137         invalidated regions after every scroll.
21138
21139         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
21140         emulation in GDK. Its, for all practical purposes just a
21141         GtkViewport/GtkFixed hybrid now.
21142
21143         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
21144         (16-bit) structures as necessary instead of just casting.
21145
21146         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
21147         in terms of the structures from gdkregion-generic.c, using appropriate
21148         offsets from GDK to X11 coordinates. Cache clip mask and
21149         origin and ts origin locally and only flush to the server
21150         when drawing, to avoid constantly setting and resetting these
21151         values when offsetting GC's for scrolling and backing pixmaps.
21152
21153         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
21154
21155         * gtk/gtkcontainer.c: Call process_all_updates at end
21156         of resizing to reduce flicker. (Avoids having redraw
21157         lag arbitrarily behind resize under some circumstances)
21158
21159         * gtk/gtkentry.c: Remove old backing store code, and simply take
21160         advantage of the new backing store capabilities of GDK.
21161
21162         * gtk/gtkmain.c: Simple implementation of widget backing
21163         store - simply push a paint while handling each expose.
21164         (Should really be configurable widget for widget.)
21165         
21166         * gtk/gtkwidget.c: Remove all the old complicated redraw
21167         code, and simply invalidate the GDK windows from
21168         gdk_window_queue_clear(), etc. (Sigh, so much carefully
21169         debugged complexity ... gone to the winds.)
21170
21171         Remove all the code for suppressing expose events while
21172         resizes are pending; this isn't needed since the invalid
21173         areas won't be processed until after the resizes are
21174         processed, since they are in a lower priority idle.
21175
21176 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
21177
21178         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
21179         and height of dest rectangle for non-intersecting rectangles.
21180
21181 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
21182
21183         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
21184         for GdkRectangle.
21185
21186 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
21187
21188         * gdk/gdk{events,image,private,types,window}.h
21189          gdk/x11/gdkinputprivate.h: Change all coordinates
21190          from int16 to int. Also, Change width and height from
21191          unsigned to signed to avoid all the stupid C 
21192          signedness bugs.
21193
21194 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
21195
21196         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
21197         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
21198         Add some more detailed checking.
21199
21200         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
21201         New function to retrieve the depth of a drawable.
21202
21203         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
21204         field, reorder fields to save memory. 
21205
21206 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
21207
21208         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
21209         of the background image instead of scaling the background down to
21210         a line.
21211
21212         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
21213         which temporarily set slider to wrong size.
21214
21215         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
21216         queue_clear().
21217
21218 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
21219
21220 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
21221
21222         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
21223
21224 2000-03-17  Tor Lillqvist  <tml@iki.fi>
21225
21226         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
21227         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
21228
21229         * gdk/win32/gdkfont-win32.c
21230         * gdk/win32/gdkproperty-win32.c
21231         * gdk/win32/gdkselection-win32.c
21232         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
21233         now declared such.
21234
21235 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
21236
21237         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
21238
21239 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
21240
21241         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
21242         is called without trapping X errors.
21243
21244 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
21245
21246         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
21247         way into the fontset lists.
21248
21249 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
21250
21251         * gtk/gtkthemes.h: add extern "C" scope.
21252
21253 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
21254
21255         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
21256         to make appends to the list constant. (gtk-guy-990901-0.patch)
21257
21258 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
21259
21260         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
21261         for the typename hash table.
21262
21263 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
21264
21265         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
21266         to make sure we never divide by zero. 
21267         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
21268
21269 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
21270
21271         * gtk/gtkfontsel.c: Apply patch from
21272         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
21273         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
21274
21275         Also, some cleanups in atom handling.
21276
21277 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
21278
21279         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21280         not GtkWidget.
21281
21282 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
21283
21284         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
21285         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
21286         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
21287         more guint wrap-around bugs before going to bed.
21288
21289 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
21290
21291         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
21292         guint wrap arounds in allocation.width.
21293
21294         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
21295         process untill we fit the allocation given.
21296
21297 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
21298
21299         * gtk/gtkwidget.c:
21300         (gtk_widget_unrealize): guard widget access with ref/unref
21301         around signal emission.
21302         (gtk_widget_hide): same here, but also check its destroyed
21303         state before queueing a resize.
21304
21305 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
21306
21307         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
21308         of gtk_default_insensitive_bg as insensitive base color.
21309
21310         * gtk/gtktext.c (gtk_text_style_set): set the background color according
21311         to the widget's state.
21312         (gtk_text_realize): same here.
21313         (gtk_text_state_changed): same here.
21314         (draw_bg_rect): compare background color against base[] from
21315         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
21316
21317 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
21318
21319         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
21320         grabs are active, unless a delete event is send to the toplevel
21321         of the currently grab holding widget.
21322
21323 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
21324
21325         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
21326         debugging g_print's.
21327
21328 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
21329
21330         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
21331         ever make the scrolled-window requisition ever depend on the 
21332         visibility state of the scrollbars for the AUTOMATIC policy. 
21333         This breaks the GTK+ requisition model, and causes loops.
21334
21335 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
21336
21337         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
21338         the default font to avoid problems with XFree86-4.0 where the
21339         default charset is iso10646-1, not iso8859-1.
21340
21341 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
21342
21343         * acinclude.m4
21344         * config.guess
21345         * config.sub
21346         * ltconfig
21347         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
21348
21349         * gtk/Makefile.am: minor cosmetic consistency tweak
21350
21351 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
21352
21353         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
21354         the activate_time to 0, so that we handle a quick
21355         press/release press/release properly and don't suppress
21356         the second release. (Red Hat bug #7545)
21357
21358 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
21359
21360         * gtk/gtkctree.c (row_delete):
21361         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
21362         bugs with destruction notifier, *always* update internal
21363         structures *before* calling user code.
21364
21365 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
21366
21367         A few more fixes for bug #5487, #2051, #2677.
21368         * gtk/gtkclist.c : 
21369         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
21370         not GDK_BUTTON_PRESS.
21371         (resync_selection): resync only if selection_mode is
21372         GTK_SELECTION_EXTENDED
21373         * gtk/gtkctree.c (resync_selection): same here
21374
21375 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
21376
21377         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
21378         gdk_drag_get_selection() and gtk_menu_detach().
21379
21380         [ From Jeroen Ruigrok/Asmodai ]
21381
21382 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
21383
21384         * gtk/gtknotebook.c (gtk_notebook_size_request): 
21385         page->tab_label can be NULL.
21386
21387 2000-01-25  Havoc Pennington  <hp@pobox.com>
21388         
21389         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
21390         arg is boolean
21391
21392         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
21393
21394         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
21395
21396         * gdk/gdkproperty.c (gdk_property_get): return boolean
21397
21398         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
21399
21400         * gdk/gdkim.c (gdk_im_ready): return boolean
21401
21402         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
21403
21404         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
21405         glib clash, should fix glib)
21406
21407         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
21408         (gdk_get_show_events): return gboolean, and canonicalize 
21409         to TRUE/FALSE
21410
21411         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
21412         colormap is private
21413         (gdk_colors_alloc): gboolean whether to be contiguous
21414         (gdk_color_equal): return gboolean since we are a predicate
21415         and not a qsort() (this looks semi-wrong due to glib breakage,
21416         IMO glib should be fixed)
21417         
21418         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
21419         (gdk_get_use_xshm): return gboolean
21420         (gdk_pointer_is_grabbed): return gboolean
21421
21422         * gdk/gdk.h: Change prototypes to match all the above changes,
21423         and re-run egtk-format-protos as required.
21424
21425 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
21426
21427         * gtk/gtkctree.c (resync_selection): 
21428         * gtk/gtkclist.c (resync_selection):
21429
21430         Return immediately if clist->drag_pos < 0. This is a workaround
21431         for the corrupt state that the clist gets into when a
21432         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
21433
21434         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
21435         
21436         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
21437         variable from recent commit.
21438
21439 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
21440
21441         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
21442
21443 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
21444
21445         * gtk/Makefile.am: prefix all autogenerated source that get build in
21446         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
21447         in builddir. since we subsequently cd into srcdir for autogeneration,
21448         the paths have to be stripped from the target file names, thusly we
21449         use $(@F) as target names now.
21450         put a comment about configure.in's --disable-rebuilds option,
21451         which can be used for non-writable source directories, for development
21452         setups though, srcdir has to be *writable*.
21453
21454 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
21455
21456         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
21457           Finish the job of allowing event to be NULL.
21458           (Fixes bug #4283, reported by Chris Blizzard)
21459
21460         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
21461           things so that the cursor appears on screen, properly
21462           take into account INNER_BORDER.
21463           (Fixes bug #4754, reported by Antonio Campos)
21464
21465 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
21466
21467         * gtk/gtknotebook.c (gtk_notebook_map): Don't
21468           show the tab_label unless it itself is visible.
21469
21470           gtk/gtknotebook.c (gtk_notebook_size_request):
21471           Do a better job of making sure that the visibility
21472           of the tab label corresponds to whether it should
21473           be mapped or not.
21474
21475 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
21476
21477         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
21478           Use the requisition, not the allocation, since the
21479           allocation has not necessarily been computed yet.
21480           (Pointed out by Eugene Osintsev)
21481
21482 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
21483
21484         * gtk/gtkstyle.c (gtk_style_new): Dont' set
21485           style/base[GTK_STATE_INSENSITIVE] both to
21486           gtk_default_insensitive_bg!
21487           (Bug #2187, reported by Jonathan Blandford)
21488
21489         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
21490           Add Alt_L, Alt_R to list of invalid accelerators.
21491           (Bug #3736, reported by Vlad Harchev)
21492
21493 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
21494
21495         * gtk/gtkfilesel.c (open_ref_dir): Fix several
21496         bugs which occured after an attempt to open 
21497         invalid home directory left cmpl_state->reference_dir == NULL.
21498
21499          - completion on files in home directory didn't work
21500          - completion on an empty string caused  segfault
21501
21502          (Bug #3678, reported by Steve Ratcliffe)
21503
21504         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
21505         cut and paste error that was causing scales to
21506         be incorrectly positioned.
21507         (Bug #2956,
21508          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
21509
21510 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
21511
21512         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
21513         when checking for dcgettext, if we've found we needed
21514         it for dgettext.
21515 +
21516 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
21517
21518         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21519         queue_clear on NO_WINDOW widgets during a reparent,
21520         since at that point the window and widget heirarchies
21521         are out of sync. This stops crashing in some cases
21522         (the scrolled window reparent test, for instance), and
21523         _probably_ won't cause drawing errors.
21524
21525         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
21526         test do what it was supposed to do and be robust against
21527         window closings, etc. (Bug #2443)
21528
21529 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
21530
21531         * gtk/gtkentry.c: Fix return values on mouse events.
21532         (Bug #2686, Sky <seb_sky@yahoo.com>)
21533
21534         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
21535         (pointed out by George Lebl)
21536
21537         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
21538         (From Ettore Perazzoli  <ettore@helixcode.com>)
21539  
21540 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
21541
21542         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
21543         clicks between rows or outside calender area correctly.
21544         (Patch from Damon Chaplin)
21545
21546         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
21547         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
21548           Call destroy function when overwriting existing data. 
21549           (Pointed out by Damon Chaplin)
21550
21551 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
21552
21553         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
21554           which was causing problems on various systems with Xmu.
21555           This hasn't been needed for a very long time.
21556           (Fixes #1185 3167)
21557
21558 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
21559
21560         * gdk/gdki18n.h: Include <ctype.h> when defining
21561           gdk_isw* in terms of is* as a fallback.
21562           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
21563
21564 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
21565
21566         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
21567           realize the widget when it is size allocated!
21568           (old, old bug)
21569
21570         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
21571           Removed unused call to gdk_window_get_size() that
21572           showed up when the above was fixed.
21573
21574 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
21575
21576         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
21577           fix up widget->window when the widget is a
21578           NO_WINDOW container widget.
21579
21580 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
21581
21582         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
21583           to account for the fact that feof() does _not_ 
21584           return TRUE on errors, and thus avoid infinite loops
21585           when trying to use gdk_pixmap_create_from_xpm()
21586           on unreadable values.
21587
21588 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
21589
21590         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
21591
21592 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
21593
21594         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
21595           gdk_gc_set_dashes to take gint8 instead of gchar to
21596           make it clearer that it is _not_ a NULL terminated string.
21597
21598         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
21599           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
21600           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
21601           arguments.
21602
21603 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
21604
21605         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
21606         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
21607         background size relative to our allocation, guard against small
21608         allocations, we may have not yet been size allocated.
21609
21610 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
21611
21612         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
21613         not just version == 3. We implement all 3 + most of 4 - 
21614         (we don't support matching text/plain;charset=iso-8859-1
21615         to a dest that expects text/plain). We'll still advertise
21616         3 to be safe, but any client implementing version >= 3
21617         must interoperate with 3.
21618         
21619 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
21620
21621         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
21622         background and gc members, add a warning in gtk_tooltips_set_color()
21623         indicating that this function is deprecated.
21624
21625 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
21626
21627         * docs/gtkfaq.sgml: FAQ Update:
21628           - Minor cleanups (Emmanuel, me)
21629           - New questions:
21630                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
21631                 How can I retrieve the text from a GtkMenuItem? (timj)
21632                 How do I validate/limit/filter the input to a GtkEntry? (me)
21633                 Memory does not seem to be released when I free the list
21634                         nodes I've allocated (timj)
21635
21636 2000-03-07  Tor Lillqvist  <tml@iki.fi>
21637
21638         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
21639         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
21640         for which it is no use to call GetLastError onWin9x.
21641         (gdk_other_api_failed) New function, for general error
21642         reporting without calling GetLastError.
21643         (gdk_win32_api_failed) OTOH, this function always calls
21644         GetLastError. (gdk_win32_last_error_string) Remove this function,
21645         GLib has the equivalent now.
21646
21647         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
21648         call them with function name, file name and line number in the
21649         arguments.
21650
21651         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
21652         functions.
21653         
21654         * gtk/gtk.def: Add some missing entry points.
21655
21656         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21657         gtk_paned_set_gutter_size, which don't exist any longer, as void.
21658         
21659         Fixes by Hans Breuer:
21660
21661         * gdk/makefile.msc: Update for debugging.
21662
21663         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
21664         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
21665         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
21666         in the dash_list.
21667
21668         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
21669         the x11 backend.
21670
21671         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
21672
21673         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
21674
21675 2000-03-04  Tor Lillqvist  <tml@iki.fi>
21676
21677         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
21678         just pixel value of background colour.
21679
21680         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
21681         containing code snippet previously duplicated in a couple of
21682         places.
21683         
21684         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
21685         gdk_colormap_color.
21686
21687         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
21688         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
21689         events for autorepeated Shift, Control and Alt keys. Use
21690         gdk_colormap_color.
21691
21692         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
21693         pointer is inside the window the cursor of which we are setting,
21694         call SetCursor immediately.
21695
21696         * gdk/win32/makefile.cygwin
21697         * gtk/makefile.cygwin: If we don't have the build number stamp
21698         file, use zero.
21699
21700         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21701         gtk_paned_set_gutter_size as empty.
21702
21703         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
21704         
21705 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
21706
21707         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
21708           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
21709           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
21710           docs/gtk_tut.sgml docs/gtk.texi TODO:
21711
21712           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
21713
21714 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
21715
21716         * gtk/gtkcalendar.c: Implement num_marked_dates,
21717           and don't emit mutiple day_selected signals on
21718           month_prev.
21719
21720 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
21721
21722         * docs/make-todo (lineno): let title and logo be configurable so
21723         that GNOME can use this script too.
21724
21725         * TODO.xml: added logourl and a title
21726
21727 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
21728
21729         * TODO.xml: Added some UI items, and an explanatory
21730         comment at the top of the file.
21731
21732 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
21733
21734         * TODO.xml: some updates, added abunch of new entries.
21735         a note for those fiddeling with this file, when done
21736         with it, invoke:
21737         $ ./docs/make-todo TODO.xml >/dev/null
21738         and correct output errors before comitting changes.
21739
21740 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
21741
21742         * TODO.xml: Added XML-structured TODO file.
21743         * docs/make-todo: python script to turn TODO.xml into
21744           pretty XML output. 
21745
21746 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
21747
21748         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
21749         the function to let it draw the seven dots, instead of the old,
21750         much maligned, method.
21751         (draw_dot): New function to draw a dot.
21752
21753         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
21754         to draw the handle inside the border width as opposed to outside.
21755         Use paint function instead of gdk_draw_point.
21756
21757         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
21758         to draw the handle inside the border width as opposed to outside.
21759         Use paint function instead of gdk_draw_point.
21760
21761         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
21762         Change indenting to be more GTK like.
21763
21764 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
21765
21766         * docs/gtk_tut.sgml: New section on GtkCalendar
21767         * examples/calendar: Update example code
21768
21769 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
21770
21771         * docs/gtkfaq.sgml: FAQ Update
21772
21773 2000-02-19  Anders Carlsson  <andersca@gnu.org>
21774
21775         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
21776         to prevent the scroll event to be propagated upwards.
21777
21778 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
21779
21780         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
21781         OwnerGrabButtonMask from button entries for
21782         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
21783
21784         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
21785         to the event mask (which will result in button/press release
21786         being added to the event mask on Unix) so scrolling works
21787         for layouts in scroll windows.
21788
21789         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
21790
21791         Patch from Anders Carlsson  <andersca@gnu.org> to add
21792         a scroll event.
21793
21794         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
21795         scrolling to the "Test Scrolling" part of testgtk.
21796  
21797         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
21798  
21799         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
21800         it against GDK_SCROLL.
21801  
21802         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
21803         way of mouse wheel scrolling.
21804  
21805         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
21806  
21807         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
21808  
21809         * gtk/gtkmain.c: Removed previous mouse wheel hack.
21810  
21811         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
21812         gdk_event_mask_table.
21813  
21814         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
21815         GdkEventScroll handler.
21816  
21817         * gdk/gdkevents.h: Added GdkEventScroll structure.
21818  
21819 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
21820
21821         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
21822         and Anders Carlsson to change the Paned widgets so that they
21823         can be dragged from anywhere along the length. Also change
21824         the way that this is drawn to make this apparent.
21825
21826         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
21827         from George Lebl to check that option_menu->menu is present
21828         before getting history.
21829
21830 2000-02-14  Tor Lillqvist  <tml@iki.fi>
21831
21832         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
21833         before the assertion for non-NULL segment list.
21834
21835         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
21836         Seems that pattern brushes *must* be 8x8 pixels! At least on my
21837         machine, but it might be display driver dependent. Sigh, so make
21838         sure the stipple is that size. Does Windows suck or what?
21839
21840         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
21841         places.
21842
21843 2000-02-13  Havoc Pennington  <hp@pobox.com>
21844
21845         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
21846         refcount to 1
21847         (gdk_cursor_new): init refcount to 1
21848
21849         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
21850
21851 2000-02-13  Tor Lillqvist  <tml@iki.fi>
21852
21853         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
21854         so that we don't have to do unnecessary settings to the HDC.
21855
21856         * gdk/win32/gdkdrawable-win32.c
21857         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
21858         gdk_gc_predraw.
21859
21860         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
21861         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
21862         GDI paths, call WidenPath to get the outline of the stroken path,
21863         and then fill the outline (with the brush that was built from the
21864         stipple).
21865
21866         * gdk/win32/gdkgc-win32.c: Factor out common code from
21867         _gdk_win32_gc_new and gdk_win32_gc_set_values into
21868         gdk_win32_gc_values_to_win32values. Use correct colour for
21869         SetBkColor() (Until now the code actually used a random colour in
21870         the call to SetBkColor()... but that didn't show up as not many
21871         GDI APIs use the background colour. Pattern (opaque stippled)
21872         brushes do.)
21873
21874         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
21875         gdk_win32_api_failed): New functions for error logging.
21876
21877         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
21878         WIN32_API_FAILED to call them, passing function or file name and
21879         line number.
21880
21881         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
21882
21883         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
21884         GdkColor for foreground and background in GdkGCWin32Data.
21885
21886         * gdk/makefile.cygwin: Link in the resource object separately.
21887
21888         * gdk/win32/rc/gdk.rc
21889         * gtk/gtk.rc (New file)
21890         * gdk/win32/makefile.cygwin
21891         * gtk/makefile.cygwin: Update build number in DLLs automatically,
21892         as in GLib.
21893
21894 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
21895
21896         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
21897         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
21898         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
21899         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
21900         parameters given and cursor->ref_count. coding style fixups.
21901
21902         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21903         not GtkWidget.
21904         
21905         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
21906         fix up widget macros and add _GET_CLASS() variant.
21907         
21908         * gtk/*.c: some GtkType fixups.
21909
21910 2000-02-09  Tor Lillqvist  <tml@iki.fi>
21911
21912         * gdk/win32/gdkproperty-win32.c
21913         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
21914         were reversed.
21915
21916 2000-02-04  Tor Lillqvist  <tml@iki.fi>
21917
21918         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
21919         g_filename_to_utf8 to convert the font names Windows gives us from
21920         whatever is the default codepage to UTF-8.
21921         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
21922         in the other direction.
21923
21924         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
21925         error in debugging output.
21926
21927 2000-02-02  Tor Lillqvist  <tml@iki.fi>
21928
21929         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
21930         and height parameters to gdk_window_clear_area(). Not minus one.
21931
21932 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
21933
21934         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
21935         checks if the widget passed to gtk_drag_get_data() was not the
21936         dest widget.
21937
21938 2000-02-01  Tor Lillqvist  <tml@iki.fi>
21939
21940         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
21941         g_filename_from_utf8 functions (which were added a moment ago to
21942         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
21943         size buffers.
21944
21945         gtk_file_selection_get_filename returns the filename in the C
21946         runtime encoding. It calls g_filename_from_utf8, but copies the
21947         returned string to a static buffer, which is returned. I think
21948         this is better than returning the result from g_filename_from_utf8
21949         directly, which would mean all apps that use it would have to free
21950         the return value. Or should this function care about this issue at
21951         all? Maybe a new function with clearly defined semantics.
21952
21953         * gtk/gtkfilesel.h: Add comment about
21954         gtk_file_selection_get_filename returning the filename in the C
21955         runtime's encoding.
21956
21957         * README.win32
21958         * gdk/gdk.def
21959         * gdk/makefile.{cygwin,msc}
21960         * gtk/gtk.def: Updates.
21961
21962         * gdk/gdkcursor-win32.c: Initialise refcount.
21963
21964 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
21965
21966         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
21967
21968 2000-01-30  Havoc Pennington  <hp@pobox.com>
21969
21970         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
21971         destroy
21972
21973         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
21974
21975         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
21976         implemented in platform-specific code
21977
21978         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
21979
21980         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
21981         underscore in front
21982
21983         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
21984         put an underscore in front
21985
21986         * gdk/gdkcursor.c: new file, implements
21987         gdk_cursor_ref/gdk_cursor_unref
21988
21989         * gdk/gdkcursor.h: Refcount GdkCursor
21990
21991         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
21992
21993 2000-01-29  Tor Lillqvist  <tml@iki.fi>
21994
21995         * gdk/gdkwindow.h
21996         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
21997
21998 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
21999
22000         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
22001         structures to properly inherit from GtkWidget not GtkBin.
22002
22003 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
22004
22005         * gtk+.spec.in: Added lib/gtk+/include/* to %files
22006         (bug #5178 - Peter Wainright)
22007         
22008         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
22009         so that it will be installed.
22010         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
22011
22012 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
22013
22014         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
22015         for the GtkStyleClass vtable const.
22016
22017         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
22018         take a const string argument like GtkTranslateFunc. This will
22019         require changes in use code.
22020
22021 2000-01-19  Tor Lillqvist  <tml@iki.fi>
22022
22023         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
22024         semantics (to mimic the X11 backend, which just calls XClearArea)
22025         is to check for zero width (and height), and in that case use the
22026         window's width minus x (height minus y). This fixes for instance
22027         some redraw problems with gtkclist, which were easily noticeable
22028         in the gtk file selection widget.
22029
22030         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
22031         windows.
22032
22033 2000-01-13  Tor Lillqvist  <tml@iki.fi>
22034
22035         * configure.in
22036         * gdk/Makefile.am
22037         * gdk/x11/Makefile.am
22038         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
22039         (bug #5177).
22040         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
22041         out later.
22042
22043 2000-01-09  Tor Lillqvist  <tml@iki.fi>
22044
22045         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
22046         WM_MOVE for iconified or invisible windows. This fixes various
22047         problems when minimising windows. Thanks to Bernd Herd.
22048
22049 2000-01-05  Tor Lillqvist  <tml@iki.fi>
22050
22051         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
22052         backend's draw_lines method, not draw_points.
22053
22054 2000-01-02  Tor Lillqvist  <tml@iki.fi>
22055
22056         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
22057         before Owen's reorganisation: Don't have queued_events and
22058         queued_tail statics in this file, but use gdk_queued_events and
22059         gdk_queued_tail. This makes exposure event compression work again.
22060
22061         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
22062         seem to be needed?
22063
22064 1999-12-30  Tor Lillqvist  <tml@iki.fi>
22065
22066         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
22067         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
22068         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
22069         doesn't do anything.
22070
22071         * gdk/gdk.def: Add gdk_xid_table_insert.
22072
22073         * gdk/win32/gdkprivate-win32.h
22074         * gdk/win32/gdkevents-win32.c
22075         * gdk/win32/gdkinput-win32.c
22076         
22077         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
22078         extension_events field in the GdkWindowWin32Data struct. Use only
22079         the extension_events field in GdkWindowPrivate. Previously one was
22080         set, and the other one tested, which broke tablet
22081         functionality. Thanks to Keishi Suenaga for pointing this out.
22082
22083 1999-12-18  Tor Lillqvist  <tml@iki.fi>
22084
22085         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
22086         When handling a single character (text length == 1), don't handle
22087         it as if it was UTF-8.
22088
22089 1999-12-11  Tor Lillqvist  <tml@iki.fi>
22090
22091         * Makefile.am: Distribute README.win32.
22092         
22093         * gdk/Makefile.am
22094         * gdk/win32/Makefile.am: Distribute Win32 files.
22095
22096         * gdk/makefile.msc: New file.
22097
22098         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
22099         after label).
22100
22101         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
22102         gdk_error_code as GDKVAR, as they are referred outside GDK.
22103
22104         * gdk/win32/makefile.msc: Update.
22105
22106         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
22107         tweaks. Check only if at least one of those Unicode subrange bits
22108         we care for is set. If no code page bits are set, guess (wildly)
22109         based on the charset.
22110
22111         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
22112
22113         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
22114         non-NULL.
22115
22116         * gtk/gtkdnd.c
22117         * gtk/gtklayout.c
22118         * gtk/gtkplug.c
22119         * gtk/gtkselection.c
22120         * gtk/gtksocket.c
22121         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
22122         appropriate. There must be a cleaner way to handle this?
22123
22124         * gtk/gtkrc.c: Must include windows.h on Win32.
22125
22126         * gtk/testgtk.c: No need to include gdkx.h.
22127
22128         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
22129
22130 1999-12-07  Tor Lillqvist  <tml@iki.fi>
22131
22132         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
22133         the rbearing is set to the same as the width, but this should be
22134         fixed.
22135
22136 1999-12-06  Tor Lillqvist  <tml@iki.fi>
22137
22138         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
22139         function. If Windows doesn't tell us what Unicode subranges a font
22140         covers, guesstimate based on the codepages it covers. This will
22141         hopefully help those Windows versions or fonts that don't give us
22142         any useful Unicode subrange information with GetTextCharsetInfo.
22143         Call this function in gdk_font_load_internal.
22144
22145         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
22146         minor changes.
22147
22148 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
22149
22150         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
22151         New function, long needed.
22152
22153 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
22154
22155         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
22156         only_if_exists argument of gdk_atom_intern to
22157         bool.
22158
22159 1999-11-25  Tor Lillqvist  <tml@iki.fi>
22160
22161         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
22162         Fix two copy&paste errors.
22163
22164         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
22165         win32 has changed.
22166
22167         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
22168         GdkWin32SingleFont struct.
22169
22170         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
22171         subranges of loaded fonts. Clear font signature first, in case
22172         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
22173         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
22174
22175         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
22176         Unoffset clip region.
22177
22178 1999-11-23  Tor Lillqvist  <tml@iki.fi>
22179
22180         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
22181         event->any.window before calling filter functions.
22182
22183 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
22184
22185         * gtk/gtkgamma.h: Adapt cast macros to standard.
22186
22187 [ Merges from 1.2 ]
22188
22189 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
22190
22191         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
22192         If translation does not include a '/', use entire
22193         translation instead of crashing.
22194
22195 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
22196
22197         * docs/gtk_tut.sgml:
22198         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
22199
22200 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
22201
22202         * gtk/gtkselection.c (gtk_target_list_remove): Use
22203         g_list_remove_link, not g_list_remove.
22204
22205         [ From Geert Bevin <gbevin@thunderstorms.org> ]
22206         
22207 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
22208
22209         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
22210         statement upon unselection (how the heck did that slip in?).
22211
22212 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
22213
22214         * gtk/gtktext.c (gtk_text_freeze): 
22215         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
22216         in frozen state (and aparently crashes). patch provided by Anders
22217         Melchiorsen <and@kampsax.dtu.dk>.
22218
22219 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
22220
22221         * fix insensitive default/focus widget activation,
22222         reported by Matt Goodall <mgg@isotek.co.uk>.
22223
22224         * gtk/gtkwindow.c (gtk_window_key_press_event): 
22225         (gtk_window_activate_default):
22226         (gtk_window_activate_focus):
22227         return handled=FALSE for actiavtion of insensitive default
22228         widgets. return handled=TRUE for activation of insensitive
22229         focus widgets. don't activate in either case.
22230
22231 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
22232
22233         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
22234         and $glib_cflags to match library order and in the
22235         theory that an old version of GLib is more likely to
22236         be in the include directory for X then vice-versa.
22237         (Bug #2776)
22238
22239 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
22240
22241         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
22242         to determine the locale for fontsets, not LC_MESSAGES;
22243         the user may want English messages with a handling
22244         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
22245         will still be broken) (Bug #2891)
22246
22247 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
22248
22249         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
22250
22251 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
22252
22253         * gtk/gtkrc.ko: Changed the Korean default fontset.
22254
22255 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
22256
22257         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
22258         where when scrolling to the left or top double exposes
22259         were done, causing major slowdowns.
22260
22261 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
22262
22263         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
22264         names to lowercase and alphanumeric, before looking
22265         them up.
22266
22267         * gtk/Makefile.am: Install codeset variant gtkrc files
22268         with normalized names.
22269
22270 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
22271
22272         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
22273         popup menus when the menu is already visible, but its parent
22274         is still hidden, (happens after tornoff window got hidden).
22275
22276 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
22277
22278         * gtk/Makefile.am (install-data-local): Fix
22279         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
22280         deleted, causing error messages on install.
22281
22282 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
22283
22284         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
22285         the handle as well, since we now sometimes ignore
22286         exposes on the handle while resizing.
22287
22288 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
22289
22290         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
22291         extra g_free introduced in one of the last one or two 
22292         commits.
22293
22294 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
22295
22296         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
22297         consistent, put each style that a gtkrc.* file creates
22298         in a unique namespace, remove old files before installing.
22299
22300 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
22301
22302         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
22303         gtk_rc_init is called multiple times. (Yes, people who
22304         do that have bugs in their code.)
22305
22306 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
22307
22308         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
22309         Remove it since it's generated by the Makefile anyway
22310
22311 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
22312
22313         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
22314         device->info.axes for core pointer.
22315
22316 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
22317
22318         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
22319         idle_id, to deal with obsolete, broken C libraries.
22320
22321 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
22322
22323         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
22324         allocation->x/y twice!
22325
22326         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
22327         consistent with gtk_vscale_pos_trough().
22328
22329 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
22330
22331         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
22332         be queueing a resize on a toplevel container between
22333         the time we show it and when we map it. So, we need
22334         to test GTK_WIDGET_VISIBLE() for toplevels, and only
22335         use GTK_WIDGET_DRAWABLE() for child windows.
22336
22337 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
22338
22339         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
22340         (fixes bug #2144)
22341
22342 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
22343
22344         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
22345         container DRAWABLE (instead of VISIBLE), so we don't queue
22346         resizes on non-toplevel containers.
22347
22348 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
22349
22350         * gtk/gtkselection.[ch]: Make the data argument
22351         const guchar *.
22352
22353 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
22354
22355         * gtk/gtkwindow.c: Try to behave sensibly if 
22356         the focus widget is the window itself. (Should
22357         we allow this at all?)
22358
22359 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
22360
22361         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
22362         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
22363         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
22364         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
22365         in prototypes and implementations consistent (Tomas Ogren).
22366
22367         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
22368         before the widget is unparented (reported by damon).
22369
22370         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
22371         since we provide unsigned data anyways.
22372
22373 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
22374
22375         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
22376         the call to gtk_tooltips_layout_text() until later.
22377
22378         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
22379         Call gtk_widget_ensure_style() before using the style.
22380
22381 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
22382
22383         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
22384         for old widgets that don't propagate draws to all
22385         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
22386
22387 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
22388
22389         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
22390         for a redraw but just the widget that requested the resize.
22391
22392 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
22393
22394         * gtk/gtkcontainer.c: added new widget level method
22395         gtk_container_set_reallocate_redraws() and a GtkContainer flag
22396         reallocate_redraws : 1 to reflect the setting, exported this through
22397         the argument system as a boolean ::reallocate_redraws.
22398
22399         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
22400         on the widget because the allocation changes, do so as well for
22401         widget->parent if the parent has reallocate_redraws set to TRUE.
22402         with that containers requesting reallocation redraws get automatically
22403         redrawn if their children changed allocation (this unfortunately
22404         affects also other children that didn't change allocation, but we
22405         cannot work around that before 1.3).
22406
22407 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
22408
22409         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
22410         _and_ height are >0 (not _or_).
22411
22412         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
22413         instead of gtk_container_queue_resize(), which is a core gtk internal
22414         function (must have been on crack when i queued that).
22415
22416         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
22417         we can check more reliably if we want to discard expose events.
22418         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
22419         flag.
22420         
22421         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
22422         we simply trust these events. for deciding whether to discard exposes,
22423         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
22424         
22425 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
22426
22427         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
22428         queues of areas that are completely off screen.
22429
22430         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
22431         logic for handleboxes.
22432
22433         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
22434         check on width/height.
22435
22436 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
22437
22438         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
22439         we are fine with using $@ the way we do (if we actually encounter
22440         brokeness with $@ in VPATH builds because of additional path prefixes,
22441         we need to use $(@F) actually).
22442
22443 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
22444
22445         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
22446         short lived bugs, that would allow language bindings to do surgeries
22447         to our guts.
22448
22449 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
22450
22451         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
22452         where comparison was being done against an uninitialized
22453         value causing intermittant results depending on
22454         compiler flags. Also make it clearer that we aren't
22455         ever initializing the child as 0x0 (though this will
22456         be caught in gtk_widget_size_allocate())
22457
22458 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
22459
22460         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
22461         gtk_window_unset_transient_for() call after we do checks
22462         involving the old transient parent.
22463         [ From Lance Capser <lmc@cyberhighway.net> ]
22464
22465 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
22466
22467         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
22468         an empty file.
22469
22470 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
22471
22472         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
22473         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
22474
22475 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
22476
22477         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
22478         `$@' is valid only in the build dir, not after we've done 
22479         `cd $srcdir'.  Also use `test -f' instead of less portable
22480         `test -e'.
22481
22482 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
22483
22484         * gtk/gtktext.c (correct_cache_insert): Rewrite
22485          for simplicity, and hopefully correctness.
22486          (Fixes bug #1322, which was a segfault when
22487           on some insertions with the properties around
22488           the insertion set up just wrong.)
22489
22490         * gtk/gtktext.c (gtk_text_adjustment): When we receive
22491          a "changed" signal, clamp the new value to the adjustment
22492          bounds to avoid segfaulting if someone tries to change
22493          the adjustment to a bogus value. (Bug #1795)
22494
22495 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
22496
22497         * gtk/gtkmain.c: Ignore unexpected destroy notifies
22498         for children, for toplevel windows handle them
22499         like delete_event.
22500
22501         * gtk/gtkplug.c: Add an unrealize handler so that
22502         we unref plug->socket_window when we are done
22503         with it.
22504
22505 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
22506
22507         * gtk/gtktext.c (clear_area): Fix stupid signedness
22508          problem that was causing background to sometimes
22509          be misaligned.
22510
22511 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
22512
22513         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
22514         
22515         * gtk/gtkmenu.c (gtk_menu_position): Make
22516          sure we never position menus with negative x, y,
22517          since gtk_widget_set_uposition() can't handle that.
22518
22519         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
22520          Modify the positioning code a bit so that we always
22521          put the top-left corner onscreen. (This is for
22522          UI reasons, gtk_menu_position() now takes care of
22523          gtk_widet_set_uposition() brokeness.)
22524
22525 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
22526
22527         * gtk/Makefile.am: fixed up things for -jx, x > 1.
22528
22529 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
22530
22531         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
22532           RC style that is passed in. The lack of the ref
22533           before was a bug. If people worked around this
22534           bug, this will introduce a slight memory leak
22535           in their code. The code should typically look like:
22536
22537             rc_style = gtk_rc_style_new ();
22538             [...]
22539             gtk_widget_modify_style (widget, rc_style);
22540             gtk_rc_style_unref (rc_style);
22541
22542         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
22543           the style if it was already set.
22544
22545         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
22546           style if it was set before.
22547
22548 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
22549
22550         * gtk/testgtk.c (main): Add a check to see if we
22551           are being run from the correct directory and
22552           to quit nicely if we are not.
22553
22554         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
22555           static.
22556
22557 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
22558
22559         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
22560
22561         * gtk/gtkwindow.c:
22562         queue resizes unconditionally (gtk_widget_queue_resize will figure
22563         what to do if the window is not realized).
22564         (gtk_window_move_resize): only recenter the window
22565         for GTK_WIN_POS_CENTER_ALWAYS.
22566         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
22567         the same way as GTK_WIN_POS_CENTER.
22568
22569 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
22570
22571         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
22572         with (!(info->last_flags & GDK_HINT_POS)) instead of
22573         (!info->last_flags & GDK_HINT_POS).
22574
22575         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
22576         new_height unconditionally, because we use these values even if
22577         !default_size_changed && !hints_changed.
22578         comented the (default_size_changed || hints_changed) case with
22579         respect to resize rejects from the window manager.
22580
22581         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
22582         in the zvt condition hack, since this includes the window hints, set
22583         the hints after the handling_resize case.
22584
22585         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
22586         window is initially shown with to the geometry.
22587
22588 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
22589
22590         * gtk/gtkwindow.c (gtk_window_move_resize):
22591         s/size_changed/default_size_changed/g so i know what's
22592         really going on (frying brain on smaller flame now).
22593
22594 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
22595
22596         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
22597         we have size_changed upon handling_resize. this is a gross
22598         workaround for the broken zvt widget and should be removed in
22599         1.3 again (search for FIXME).
22600         Owen provided an accurate comment for this:
22601
22602         /* We could be here for two reasons
22603          *  1) We coincidentally got a resize while handling
22604          *     another resize.
22605          *  2) Our computation of size_changed was completely
22606          *     screwed up, probably because one of our children
22607          *     is broken. It's probably a zvt widget.
22608          *
22609          * For 1), we could just go ahead and ask for the
22610          * new size right now, but doing that for 2)
22611          * might well be fighting the user (and can even
22612          * trigger a loop). Since we really don't want to
22613          * do that, we requeue a resize in hopes that
22614          * by the time it gets handled, the child has seen
22615          * the light and is willing to go along with the
22616          * new size. (this happens for the zvt widget, since
22617          * the size_allocate() above will have stored the
22618          * requisition corresponding to the new size in the
22619          * zvt widget)
22620          *
22621          * This doesn't buy us anything for 1), but it shouldn't
22622          * hurt us too badly, since it is what would have
22623          * happened if we had gotten the configure event before
22624          * the new size had been set.
22625          */
22626
22627 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
22628
22629         * gtk/gtkrc.c: deal properly with the fact that RC
22630           style lists may include rc styles more than once.
22631
22632         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
22633           unused static function.
22634
22635         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
22636           stack of directories of RC files currently being
22637           parsed and implicitely add them to pixmap path.
22638           
22639           This fixes a bug where the directory would get
22640           appended then overwritten by pixmap_path declarations.
22641
22642           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
22643
22644         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
22645           theme's exit function. (Patch from Peter Wainwright,
22646           bug #1454)
22647
22648         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
22649           Add a destroy() handler to take care of removing
22650           group for menu item. (Fixes bug #1197)
22651
22652         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
22653           in warning message.
22654
22655 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
22656
22657         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
22658         roundtrip to figure window's width and height, since we know that
22659         anyways from widget->allocation.
22660
22661 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
22662
22663         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
22664           the hints after we request the new size.
22665
22666 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
22667
22668         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
22669           GTK_WIDGET_REALIZED() assertion - we can compute the
22670           hints before we are realized.
22671
22672         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
22673           hint changing so that we have a value of hints_changed
22674           when we decide whether to constrain the window size.
22675
22676         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
22677
22678         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
22679         change back to G_MAXINT.
22680
22681 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
22682
22683         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
22684         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
22685         contain uncluttered values.
22686         (gtk_window_compute_hints): simply assert that window is realized
22687         and that geometry_info is valid, since we rely on this anyways.
22688         (gtk_window_constrain_size): major cleanups to the code.
22689         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
22690         for the base size, instead of the minimums. use 32767 as max width
22691         and height (like in gtkwindow.c) instead of G_MAXINT.
22692
22693 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
22694
22695         * cleaned up the GtkContainer.need_resize flag handling mess, we
22696         only need to force resize requests when we were prematurely
22697         realized, or our widget tree was modified when we were temporarily
22698         hidden. handling these cases directly upon showing the window (i.e.
22699         while the GdkWindow is still unmapped) avoids the need to wait for
22700         a configure event response and therefore makes the GUI more snappier
22701         and avoids blank windows during the roundtrip.
22702
22703         * gtk/gtkwidget.c:
22704         (gtk_widget_hide): 
22705         (gtk_widget_show): don't queue resizes on toplevels, they know how
22706         to deal with matters.
22707
22708         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
22709         flag directly for not visible resize containers and spare us unecessary
22710         signal emissions.
22711
22712         * gtk/gtkwindow.c:
22713         (gtk_window_realize): if we need to enforce premature size allocation,
22714         queue a container resize so we are correctly resized later on.
22715         (gtk_window_init):
22716         (gtk_window_size_request):
22717         don't freak around with the ->need_resize flag,
22718         gtk_container_queue_resize() will care about that.
22719         (gtk_window_show):
22720         handle initial resizing issues here, we can handle matters better in
22721         this place, especially since we know that our GdkWindow is still
22722         unmapped.
22723         (gtk_window_move_resize):
22724         don't care about ->need_resize at all.
22725         handle size changes properly that occoured while we waited for a
22726         configure event.
22727
22728 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
22729
22730         * gtk/gtkwidget.c (gtk_widget_set_uposition):
22731         * gtk/gtkwindow.[hc] (gtk_window_reposition):
22732         Move the hint setting code from gtk_widget_set_uposition
22733         to here; set the hints so that we respect any previously
22734         set geometry hints.
22735
22736         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
22737         change the window hints here or move the window here,
22738         let that happen in gtk_window_move_resize().
22739
22740 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
22741
22742         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
22743         to already queued resizes (and therefore redraws) on a widget, check
22744         its anchestry as well.
22745
22746         * gtk/gtkcontainer.c:
22747         (gtk_container_queue_resize): clear resize widgets for resize
22748         containers before aborting prematurely. this is especially important
22749         for toplevels which may need imemdiate processing or their resize
22750         handler to be queued.
22751         (gtk_container_dequeue_resize_handler): added new internal function for
22752         gtkwindow.c.
22753
22754         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
22755         configure event, take possible changes in window position into account
22756         as well.
22757         if we request a new window size, queue up a resize handler that will
22758         last until the configure event response arrives.
22759         combined the ->need_resize case (initial show) with the general size
22760         (hints) changed case and added even more comments.
22761         if !auto_shrink, only revert to the old allocation if the new size
22762         is smaller than the current allocation.
22763
22764 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
22765
22766         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
22767                            gtk_window_set_geometry_hints
22768                            gtk_window_set_default_size):
22769         When hints are set, queue a resize so that the hints will
22770         be eventually reset on the toplevel.
22771
22772         * gtk/gtkwindow.c (gtk_window_show): Use
22773         gtk_window_compute_default_size(). Clear the need_resize flag
22774         on the initail map so that we don't unnecessarily trigger the
22775         resize code.
22776
22777         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
22778         into separate functions. Compare the hints we are setting
22779         with what we set last time so that we can accurately
22780         tell when we need to reset the hints.
22781
22782         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
22783         function to figure out the size from requisition
22784         and default_size.
22785
22786         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
22787         from fvwm to constrain a size to the geometry hints.
22788
22789         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
22790         to compare two sets of geometry hints.
22791
22792         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
22793         from gtk_window_set_hints(), just compute the hints,
22794         don't set them.
22795
22796         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
22797         code from gtk_window_move_resize() to separate function,
22798         rationalize a bit.
22799
22800 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
22801
22802         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
22803         structure into a new private structure.
22804
22805         * gtkrc.c: Split GtkRcStyle into public/private.
22806         In the private part, add a list of pointers to the
22807         RcStyle lists this RcStyle participates in.
22808
22809         * gtkrc.c: When a RcStyle is free, remove all
22810         lists referencing it from the 
22811         realized_style_ht hash, and free those lists.
22812         
22813         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
22814         gtk_rc_init(), since that adds the default styles
22815         to the list of parsed RC files again.
22816
22817         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
22818         
22819 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
22820
22821         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
22822         checks that ensure that a widget's allocation is at least 1 in width
22823         and height. (GNOME note: this doesn't affect old panel code anymore,
22824         because GtkSocket will request width and height of at least 1 since
22825         Fri Jul 23).
22826
22827         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
22828         allocated yet (happens if the user realizes the window prematurely),
22829         size request and allocate it.
22830         (gtk_window_size_allocate): guard against guint underflows.
22831
22832 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
22833
22834         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
22835         in gtk_built_sources, so gtk.defs gets built prior to all other
22836         sources.
22837
22838 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
22839
22840         * gtk/Makefile.am:
22841         invoke indent on gtkmarshal.*. 
22842         rewrote source generation rules, use COPYING as oldest source tag for
22843         a piggyback rule to generate all sources from (don't touch it ;).
22844         major cleanups, strip spaces on build rules for GNU Make.
22845
22846         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
22847         source and target files from commandline arguments. don't invoke indent.
22848
22849 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
22850
22851         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
22852         notebook after switch to avoid drawing problems.
22853         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
22854         
22855         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
22856         show them instead. 
22857         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
22858
22859 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
22860
22861         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
22862         notebook after switch to avoid drawing problems.
22863         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
22864         
22865         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
22866         show them instead. 
22867         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
22868
22869 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
22870
22871         * gtk/gtkwindow.c:
22872         we use window->need_resize from configure_event now, to indicate that
22873         the gtkwindow should keep its allocation (e.g. because the user resized
22874         the window through window manager handles). resize_count is now reliably
22875         used to figure whether we got the allocation we requested from the
22876         window manager.
22877         configure events get queued as resizes now, the real stuff (size
22878         computation and allocation) now only goes on in gtk_window_move_resize().
22879         GtkWindow's requisition now contains its *real* requisition (like all
22880         other widgets), *not* taking usize into account.
22881         geometry_info->last_{width|height} is now updated from set_hints() only
22882         so it always contains the last hints we set for the window manager.
22883         made some event handlers return TRUE instead of FALSE.
22884         the overall code should be much more straight forward now, and the
22885         significant code portions are accompanied by comments now.
22886         (gtk_window_set_hints):
22887         removed requisition argument and made it
22888         fetch the requisition through gtk_widget_get_child_requisition.
22889         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
22890         does that now.
22891         (gtk_window_show):
22892         ensure that the widget is realized before calling 
22893         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
22894         ensure that we got properly size requested and allocated before
22895         realization.
22896         (gtk_window_configure_event):
22897         ignore plain window moves, or reallocate the widget tree through the
22898         resize queue otherwise.
22899         (gtk_window_move_resize):
22900         mostly rewrote this function to figure window manager hints more
22901         reliably, coalesce window moves and resizes to reduce configure events
22902         and do actuall size allocations.
22903
22904 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
22905
22906         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
22907         that have a resize pending, because a redraw is already queued for them.
22908
22909         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
22910         hack to clear resize_widgets.
22911
22912         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
22913         for resize containers prior to size allocation. (this is also a bit
22914         ugly, but avoids side effects for stopped emissions and is thus more
22915         reliable).
22916         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
22917
22918         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
22919         function from gtk_tooltips_expose, as we connect to ::expose_event
22920         *and* ::draw now.
22921
22922 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
22923
22924         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
22925         checks.
22926         (gtk_target_list_unref): Likewise.
22927
22928         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
22929
22930 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
22931
22932         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
22933         guard against division by zero. (Fixes bug #1339)
22934
22935 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
22936
22937         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
22938         Prevent the trivial leak of information of allowing
22939         word motion when the entry is not visible.
22940
22941 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
22942
22943         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
22944         modality to error dialog as well as confirmation dialogs.
22945         (Bug #1803, reported by Rosanna Wing Sze Yuen)
22946
22947 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
22948
22949         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
22950         tree->view_lines.
22951         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
22952
22953         * gtk/Makefile.am (install-data-local): Solaris apparently
22954         has various troubles with ln -f; use rm first instead.
22955         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
22956
22957 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
22958
22959         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
22960         use `cp' followed by `rm' (the `rm' was already there).
22961
22962 July 30, 1999 Elliot Lee <sopwith@redhat.com>
22963         
22964         * configure.in: Fix autoconf warnings about cross compilation by
22965         trying to provide sane defaults for AC_TRY_RUN.
22966         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
22967         put them into $(srcdir) when generated. Also add a dependency of
22968         gtksignal.h on gtkmarshal.h for -j builds. 
22969         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
22970
22971 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
22972
22973         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
22974         GDK_THREADS_{LEAVE,ENTER} pair.
22975         (From Paul Fisher <pnfisher@redhat.com>)
22976
22977 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
22978
22979         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
22980         width and height are always >0 (owen).
22981
22982 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
22983
22984         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
22985         change that assured that a widget's allocated with and height are
22986         always >1, since this breaks *buggy* panel code. unfortunately this
22987         back-breaks the gimp's color selector.
22988
22989         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
22990         allocation is always >0 in width and height, before sending the
22991         configure event; this is a *gross* hack to get the gimp back to work.
22992         
22993         * marked both cases with TODO-1.3
22994
22995 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
22996
22997         * gtk/gtktext.c: Don't display wrap indicators when
22998         text is not editable and word wrap is on.
22999
23000 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
23001
23002         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
23003         option menus here as they are not derived from menu shell, assure that
23004         the option menu has a menu we can add items to.
23005
23006 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
23007
23008         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
23009         width/height to (gint) before calculations and check against < 0 to
23010         avoid guint wraparounds.
23011
23012 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
23013
23014         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
23015         width and height is never zero. sanity check both dimensions against
23016         32767 and issue a warning if the allocation is greater than that.
23017
23018 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
23019
23020         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
23021         to g_main_pending() as well.
23022
23023 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
23024
23025         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
23026         call to g_main_iteration() - since that will regrab
23027         GTK+ lock to process events.
23028
23029 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
23030
23031         * gtk/gtkwindow.c
23032         - Regularize with the rest of GTK+ by making widget->requisition
23033           not reflect the set_usize()
23034         - Always recompute geometry hints, then check if they
23035           changed before sending them to the X server. The
23036           previous checks for changes would fail in a number
23037           of circumstances. 
23038
23039 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
23040
23041         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
23042
23043 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
23044
23045         * gtk/gtkdnd.c:
23046         - Code cleanups
23047         - Instantaneously update on modifier key presses
23048         - Allow cancellation of the drag with Escape.
23049
23050 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
23051
23052         * gtk/testgtk.c (create_handle_box): Set the policy
23053         to auto_shrink - otherwise the appearance is rather
23054         strange when flipping between horizontal and vertical.
23055
23056 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
23057
23058         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
23059         (gtk_window_set_default_size): don't change a value if it's < 0.
23060         queue a resize.
23061
23062 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
23063
23064         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
23065
23066 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
23067
23068         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
23069         add an extra "/" when concating "/" + filename.
23070         (From Matt Grossman <mattg@oz.net>)
23071
23072 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
23073
23074         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
23075         for fg_gc if we set it for drawing pixmap.
23076
23077 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
23078
23079         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
23080         
23081         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
23082         already set, call old engine's destroy function and
23083         unref the old engine.
23084
23085 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
23086
23087         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
23088
23089 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
23090
23091         * gtk/gtkaccelgroup.h: mark certain functions as internal.
23092
23093 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
23094
23095         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
23096         expand behaviour changed.
23097
23098         * gtk/gtklabel.c (gtk_label_set_pattern):
23099         (gtk_label_set_justify):
23100         (gtk_label_set_line_wrap):
23101         don't bother invoking queue_clear, the reallocation does
23102         that for us, always free_words so the upcoming resize will
23103         relayout the label's contents.
23104
23105 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
23106
23107         * applied argument implementation patches from Elena Devdariani
23108         <elena@cogent.ca>.
23109
23110         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
23111         ::space_style, ::relief
23112         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
23113         * gtk/gtkpreview.c: ::expand
23114         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
23115         * gtk/gtknotebook.c: ::homogeneous
23116         * gtk/gtklabel.c: ::wrap
23117         * gtk/gtklist.c: ::selection_mode
23118         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
23119         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
23120         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
23121         * gtk/gtkclist.c: ::sort_type
23122         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
23123         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
23124
23125 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
23126
23127         * gtk/gtkstyle.c: Removed ill-thought-out part of last
23128         comment.
23129
23130 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
23131
23132         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
23133         counting right when we have to attach a new style
23134         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
23135
23136         * gtk/gtkstyle.c: Documented the refcounting
23137         peculularities of gtk_style_attach.
23138
23139 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
23140
23141         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
23142         window types.
23143
23144         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
23145         of GTK_TOPLEVEL for creating the window.
23146
23147 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
23148
23149         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
23150         the last argument (reported by Per Winkvist).
23151         
23152 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
23153
23154         Fixes for invisible XOR lines (Frank Loemker
23155         <floemker@TechFak.Uni-Bielefeld.DE>)
23156         
23157         * gtk/gtkclist.c (gtk_clist_realize): Always use
23158         a non-zero pixel for GDK_XOR.
23159
23160         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
23161         Use GDK_INVERT instead of GDK_XOR.
23162
23163 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
23164
23165         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
23166         signals if h/voffsets differ from adjustment values.
23167         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
23168
23169 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
23170
23171         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
23172         ::selection-done emissions up to the topmost menu shell.
23173
23174 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
23175
23176         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
23177         the user data on the window before destroying it.
23178
23179         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
23180         unrealize handler to take care of destroying 
23181         notebook->panel properly. 
23182         (Bug #1198 - Morten Welinder <terra@diku.dk>)
23183
23184         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
23185         of g_new and g_realloc to stop memory leak. (Actually,
23186         we could just use g_realloc(), but I'm not 100% sure
23187         that is portable).
23188         (Bug #1196 - Morten Welinder <terra@diku.dk>)
23189
23190 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
23191
23192         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
23193
23194         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
23195         for fontsets.
23196
23197         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
23198         with bin/button confusion.
23199
23200 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
23201
23202         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
23203         and show how preselection of radio items is done.
23204
23205 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
23206
23207         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
23208         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
23209         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
23210         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
23211         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
23212         * gtk/gtktable.c (gtk_table_attach): 
23213         * gtk/gtklist.c (gtk_list_insert_items): 
23214         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
23215         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
23216         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
23217         * gtk/gtkbin.c (gtk_bin_add): 
23218         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
23219         * gtk/gtkfixed.c (gtk_fixed_put): 
23220         * gtk/gtklayout.c (gtk_layout_put):
23221         general fixups to container_add logic. always realize child if
23222         child->parent is realized, only map the child and queue a resize
23223         if child and child->parent are both visible.
23224
23225 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
23226
23227         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
23228         instead of gtk_container_foreach to walk and unrealize children, so
23229         composite children get also unrealized.
23230         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
23231         (gtk_widget_map): assert that the widget is visible (basic constrain).
23232         (gtk_widget_real_map): assert that the widget is realized (basic
23233         constrain).
23234
23235 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
23236
23237         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
23238
23239 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
23240
23241         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
23242         file for iso-8859-2 locales.
23243
23244         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
23245
23246 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
23247
23248         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
23249          (Pointed out by andy@rz.uni-karlsruhe.de and others).
23250          Remove some suspicious and useless lines. 
23251
23252 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
23253
23254         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
23255         width,height = 0, 0 to mean - here to edge of window,
23256         instead of -1, -1, since the former is all we support.
23257
23258 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
23259
23260         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
23261         when removing from quit_functions list.
23262
23263 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
23264
23265         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
23266
23267 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
23268
23269         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
23270          When redrawing characters on non-visible entry, use appropriate
23271          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
23272
23273 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
23274
23275         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
23276         from drag coordinates.
23277         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
23278         use drag_dest_cell.
23279
23280         * gtk/gtktree (drag_dest_cell)
23281         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
23282         (Bug #1129)
23283
23284 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
23285
23286         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
23287         translate_* fields.
23288         (gtk_item_factory_finalize): invoke translate_notify independant from
23289         translate_data.
23290         (gtk_item_factory_set_translate_func): likewise.
23291         (gtk_item_factory_destroy): only remove ifactory pointer from those
23292         widgets that belong to us (stupid me).
23293
23294 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
23295
23296         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
23297         rc_style list when lookup succeeeds.
23298
23299 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
23300
23301         * gtk/gtkctree.c (resync_selection): 
23302         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
23303         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
23304         bug.
23305
23306 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
23307
23308         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
23309         Add some missing GDK_THREADS_ENTER()/LEAVE around
23310         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
23311
23312 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
23313
23314         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
23315         rather than emit_by_name.
23316
23317         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
23318         on the widget across multiple signal emissions.
23319         (gtk_editable_delete_text): same here.
23320         (gtk_editable_class_init): set widget_class->activate_signal after
23321         editable_signals[ACTIVATE] has been created.
23322
23323 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
23324
23325         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
23326         position here prematurely -- we might not have the
23327         right ->min_position and ->max_position yet.
23328
23329 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
23330
23331         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
23332         Add error traps so if the other end of the connection
23333         dies, we survive.
23334
23335         * gtk/gtkselection.c (gtk_selection_notify): Clean
23336         up properly when selection property retrieval fails.
23337         
23338         * gtk/gtkselection.c (gtk_selection_request): Correctly
23339         reject SelectionRequest notifies where the handler
23340         returns no data.
23341
23342 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
23343
23344         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
23345         when we've previously highlighted.
23346
23347         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
23348         emit two "drag_leave" signals for Motif drops.
23349
23350         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
23351         back the correct status messages when dropping from
23352         Motif onto a proxy window that is rejecting the
23353         drop.
23354
23355 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
23356
23357         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
23358         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
23359         to compare two argument values. added gtk_arg_to_valueloc() to set a
23360         variable from an arg through its location (pointer).
23361
23362         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
23363         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
23364         as gfloat*, uchars are collected as guchar*, ints are collected as
23365         gint*, etc...
23366
23367 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
23368
23369         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
23370         Include <string.h> instead of <strings.h>.
23371
23372         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
23373         (actually, a lot more duplicate includes occur if
23374          you trace through the sequence of #include's)
23375         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
23376         
23377 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
23378
23379         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23380         gtk-a-higuti-990322-[0-3]
23381
23382         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23383         that was causing -DX_LOCALE not to work.
23384
23385         * gtk/gtkrc.c (gtk_rc_init):
23386         X_LOCALE will never have LC_MESSAGES defined
23387
23388 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
23389
23390         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
23391         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
23392
23393         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
23394         left/right as well (gtk-michael-980726-0.patch.gz).
23395
23396         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
23397         for pointer values, use gchar instead of char. fixed uline allocation
23398         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
23399         chunks instead of G_ALLOC_ONLY.
23400         (gtk_label_size_request): always alter requisition as passed and leave
23401         widget->requisition alone.
23402         (gtk_label_set_text): allow NULL strings.
23403         (gtk_label_new): likewise.
23404
23405 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
23406
23407         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
23408
23409 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
23410
23411         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
23412         *and* mapped (i.e. drawable).
23413         (gtk_bin_expose): only send exposes to drawable children.
23414
23415         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
23416         (gtk_box_expose): only send exposes to drawable children.
23417
23418         * gtk/gtkhscale.c (gtk_hscale_draw): 
23419         * gtk/gtkvscale.c (gtk_vscale_draw):
23420         hm, this is an ugly one. we first compute the size of our trough area
23421         here (window relative) and then check intersection with the draw_area
23422         which is parent relative because we're a NO_WINDOW widget, so we need
23423         to offset the trough area by allocation.x and allocation.y before the
23424         check. (this must not be done for the background area though, since
23425         that's already computed parent relative).
23426
23427 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
23428
23429         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
23430         unrealize title buttons.
23431
23432 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
23433
23434         * gtk/gtkclist.c (gtk_clist_column_title_passive)
23435         (gtk_clist_column_title_active): 
23436         only connect/disconnect to GtkWidgetClass::event to block mouse events.
23437
23438         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
23439         zero initialize event, removed superfluous gdk_window_get_pointer call
23440
23441         * gtk/gtklist.c (gtk_list_vertical_timeout)
23442         (gtk_list_horizontal_timeout): removed superfluous
23443         gdk_window_get_pointer call
23444
23445 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
23446
23447         * plugging problems reported by "Bruce Mitchener, Jr."
23448         <bruce@puremagic.com> due to a purify session.
23449
23450         * gtk/gtkstyle.c:
23451         (gtk_style_ref): 
23452         (gtk_style_unref): assert ref_count to be > 0.
23453
23454         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
23455         the requisition.
23456         (gtk_clist_set_shift): likewise.
23457
23458         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
23459         adjustments.
23460
23461         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
23462         event before sending it and set send_event to TRUE (which needs to
23463         be done for *all* synthesized events).
23464         (gtk_list_vertical_timeout): likewise.
23465
23466         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
23467         leaks.
23468
23469         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
23470         to TRUE when synthesizing events.
23471
23472 [ *** end of merges from 1.2 *** ]      
23473         
23474 1999-11-21  Tor Lillqvist  <tml@iki.fi>
23475
23476         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
23477         (or copied from gdkconfig.h.win32 on Win32, sigh).
23478
23479         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
23480
23481         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
23482
23483         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
23484
23485         * gdk/gdkconfig.h.win32: New file.
23486
23487         * gdk/win32/makefile.cygwin: Build just a static archive here.
23488
23489         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
23490         for the DLL from the static archive built above.
23491
23492         * gdk/gdk.def: Moved here from the win32 subdirectory.
23493
23494         * gdk/win32/*: Adapt for the changed private struct organisation.
23495
23496         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
23497
23498 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
23499
23500         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
23501         for wheel mice (buttons 4 and 5).
23502
23503 1999-11-18  Tor Lillqvist  <tml@iki.fi>
23504
23505         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
23506         drawables use just the pixel field in the foreground and
23507         background GdkColor of the GdkGC.
23508
23509         gdk_gc_set_{fore,back}ground() are called in the GIMP with
23510         GdkColors containing uninitialized (red,green,blue) fields, and
23511         just the pixel field filled in, and furthermore in the
23512         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
23513         It thus turns out that we really don't need to have the full
23514         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
23515         it later to have just the pixel values.
23516
23517 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
23518
23519         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
23520
23521 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
23522
23523         * docs/gtkfaq.sgml: threads example from Erik Mouw.
23524         New question on GtkLabel background colors.
23525
23526         * docs/gtk_tut.sgml:
23527           - Correct the example code callback
23528             function definitions.
23529           - Update the gtkdial example code, from Frans van Schaik.
23530           - Update setselection.c to current API.
23531
23532         * examples/Makefile examples/*/*.c: Update to code
23533         listed in tutorial.
23534
23535 1999-11-10  Tor Lillqvist  <tml@iki.fi>
23536
23537         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
23538         subrange table (from the "Developing International Software for
23539         WIndows 95 and Windows NT" book) was missing the Hangul syllable
23540         block... Get the loaded font's charset correctly.
23541
23542         (Note that this, and the other *-win32.c files, still really are
23543         the old ones, the win32 subdirectory is not ready for compilation
23544         yet after the reorg.)
23545
23546 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
23547
23548         * gtk/gtkclist.c: Fix off-by-one bug in parameter
23549         check.
23550
23551 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
23552
23553         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
23554         on results of XQueryDeviceState().
23555
23556 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
23557
23558         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
23559         we need to accesss only ->children. We need an accessor
23560         for the children.
23561
23562         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
23563         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
23564         to get rid of gdkx.h include.
23565         
23566         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
23567         and random references to 'None'.
23568
23569         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
23570         Get rid of unused #include <gdk/gdkx.h>
23571
23572         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
23573         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
23574         gdkconfig.h.
23575
23576 1999-11-08  Tor Lillqvist  <tml@iki.fi>
23577
23578         * gdk/win32/gdkdraw.c
23579         * gdk/win32/gdkfont.c
23580         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
23581         following yesterday's changes. (Unrelated to Owen's reorg.)
23582
23583 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
23584
23585         * gdk/x11/gdkinput-gxi.c: Add missing include,
23586           fix GdkWindowPrivate => GdkDrawablePrivate.
23587
23588         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
23589
23590         * gdk/x11/Makefile.am (xinput_sources): Add missing
23591         backslash to fix building with --with-xinput=none
23592
23593 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
23594
23595         Move all X specific code into the x11/ directory.
23596         Aside from shuffling things around, did the following:
23597
23598        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
23599          gdk_arg_context_* - a simple argument parsing system
23600          in the style of popt.
23601
23602        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
23603          gdk/x11/gdkprivate-x11.h:
23604          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
23605          add ->klass and ->klass_data fields. The klass_data
23606          field points to an auxilliary structure that is
23607          windowing system dependent.
23608
23609        * gdk/gdkfont.c: Make most of the measurement functions
23610          simply wrappers around gdk_text_extents().
23611
23612        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
23613          _gdk_font_strlen() function that hides the weird
23614          behavior in gtk+-1.[02] where a string is interpreted
23615          differently for 8-bit and 16-bit fonts.
23616
23617        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
23618          to store common code for synthesizing double/triple
23619          press events.
23620         
23621        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
23622          Make all the function that modify an existing GC
23623          simply wrappers around gdk_gc_set_values().
23624          
23625        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
23626          for throwing out later.
23627
23628        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
23629          GdkImagePrivate and GdkColormapPrivate to have a
23630          windowing system dependent part (GdkFontPrivateX etc.)
23631          that "derives" from the system-independent part.
23632
23633        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
23634          Got rid of the included-source-files for XInput in
23635          favor of automake conditionals. (Which didn't exist
23636          when XInput support was originally added.)
23637
23638        * gdk/gdkrgb.c: Remove the visual id from the debugging
23639          statements since that is X11 specific; print out
23640          type/depth info instead.
23641          
23642
23643 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
23644
23645         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
23646         loading duplicates of hashed fonts.
23647
23648         * gdk/gdk.c (gdk_keysym_convert_case): rename
23649         gdk_XConvertCase to gdk_keysym_convert_case, allow
23650         results to be NULL in the GTK+ style.
23651
23652         * gdk/gdkcompat.h: Started compatibility header
23653         for renames.
23654
23655 1999-11-07  Tor Lillqvist  <tml@iki.fi>
23656
23657         * gdk/win32/gdkprivate.h: New font private structures, related to
23658         fontsets.
23659
23660         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
23661         gdk_font_list_free(). On X11, will just be wrappers to
23662         XListFonts() and XFreeFontNames(). On Win32, the code previously
23663         in gtkfontsel.c is now here.
23664
23665         New function gdk_font_xlfd_create(). On X11 will get the FONT
23666         property of the font (for GDK_FONT_FONTs), or call
23667         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
23668         builds a XLFD style name from the font information in the LOGFONT
23669         struct(s).
23670
23671         New function gdk_font_xlfd_free(), which correspondingly frees the
23672         string returned by gdk_font_xlfd_create().
23673
23674         Implement fontsets on Win32. Add a function that iterates over a
23675         wide char string and calls a callback function for each substring
23676         of wide chars from the same Unicode subrange (and thus probably
23677         available in the same real font).
23678
23679         Improve the XLFD emulation a bit.
23680
23681         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
23682
23683         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
23684         Beta3, WM_IME_CHAR messages don't seem to contain the composed
23685         multi-byte char as with the Active IMM on Win9x. Oh well, handle
23686         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
23687         ImmGetCompositionStringW() to get the composed Unicode chars.
23688
23689         * gdk/win32/gdkgc.c
23690         * gdk/win32/gdkdraw.c: Changes needed because of the font private
23691         struct changes.
23692
23693         * gdk/win32/gdk.def: Add the new functions.
23694
23695 1999-11-04  Tor Lillqvist  <tml@iki.fi>
23696
23697         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
23698         get the Platform SDK to get <dimm.h>.
23699
23700         * gdk/win32/gdkevents.c: More event handling fixes and
23701         simplification. Never generate motion events with is_hint true. We
23702         used to do that on bogus grounds earlier. Windows sends
23703         WM_MOUSEMOVE messages on button events even if the mouse hasn't
23704         moved, ignore these.
23705
23706         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
23707
23708         * gdk/win32/gdkglobals.c
23709         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
23710         the TrackMouseEvent function, and use it.
23711
23712         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
23713         char before calling WideCharToMultiByte in order to get a string
23714         for the window title.
23715
23716         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
23717
23718         * gdk/win32/gdk.def: Remove obsolete functions.
23719
23720         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
23721         /nodefaultlib and /defaultlib switches.
23722
23723         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
23724
23725 1999-10-31  Tor Lillqvist  <tml@iki.fi>
23726
23727         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
23728         EuroSign).
23729
23730         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
23731         same type as GdkWChar, especially on Win32.
23732
23733         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
23734
23735         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
23736         before passing to Windows GDI for drawing etc. Convert to the
23737         system default codepage before passing to Windows as window
23738         titles.
23739
23740         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
23741         support changing input locale on the fly.
23742
23743         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
23744         on-the-fly changes. Convert incoming characters from the current
23745         codepage to Unicode (and then to a UTF-8 multi-byte string) based
23746         on the current input language. Use keysym<->Unicode mapping tables
23747         and functions borrowed from xterm sources.
23748
23749         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
23750         editions of Win9x, use the ActiveX-based Active IMM (Input Method
23751         Manager) if available. IMEs and the Active IMM are available under
23752         the disguise of Chinese, Korean and Japanese support for IE and
23753         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
23754         support is present in all editions (as long as you install it).
23755
23756         Call DispatchMessage from gdk_events_queue() (and thus
23757         gdk_WindowProc()), instead of duplicating the code in
23758         gdk_WindowProc().
23759
23760         Reworked the grab handling and propagation code, factored out
23761         duplicated code snippets into separate functions. Other cleanups,
23762         too.
23763
23764         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
23765         the <dimm.h> header describing the Active IMM.
23766
23767         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
23768         just do the same as for "single" fonts.
23769
23770         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
23771         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
23772         the new keysyms from gdkkeysyms.h.
23773
23774         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
23775         fontset, so that gtkentry uses wide characters.
23776
23777         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
23778         GTk+'s system directory "gtk+", not "gtk".
23779
23780 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
23781
23782         * docs/gtkfaq.sgml: FAQ update
23783
23784 1999-10-21  Tor Lillqvist  <tml@iki.fi>
23785
23786         * gdk/win32/gdkprivate.h: Add more font private data.
23787
23788         * gdk/win32/gdkfont.c
23789         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
23790         fonts and strings. Now works much better. You still have to
23791         have a correct font selected, though. No fontset emulation yet.
23792
23793 1999-10-19  Tor Lillqvist  <tml@iki.fi>
23794
23795         * gtk/maketypes.awk: Use G_OS_WIN32.
23796
23797         * gtk/gtk.def: Add some missing entry points. Also some non-public
23798         ones, but PyGTK porter claims to need them.
23799
23800         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
23801         built-in type generation.
23802
23803 1999-10-14  Tor Lillqvist  <tml@iki.fi>
23804
23805         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
23806         GDK_FONT_FONT fonts (which is all we have for now, we don't
23807         emulate fontsets). The X11 version uses plain XDrawString in that
23808         case, too. The string passed to gdk_draw_text_wc seems to be in
23809         fact (at least, when used by gtkentry and gtktext) either in a
23810         single-byte charset, or a DBCS. Not Unicode.
23811
23812         This fixes the problem in gtkfontsel, where even if you had
23813         selected a font with a non-Latin1 charset (windows-greek, for
23814         instance), the preview still used Latin-1 glyphs.
23815
23816         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
23817         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
23818         (gdk_font_load): Recognize the demibold etc weights, even if we
23819         don't have the corresponding constants in the headers.
23820         (gdk_font_hash_insert): Use same hash mechanism as in the X11
23821         version. Should save font resources a bit, when we don't have
23822         multiple HFONTs for the same font.
23823
23824         * gdk/win32/gdkprivate.h: Add the names field as in the X11
23825         version.
23826
23827 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
23828
23829         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
23830         X values
23831
23832 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
23833
23834         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
23835         layout support (as mentioned on
23836         http://www.jcinteractive.com/gnome-ui/software/widgets/)
23837
23838 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
23839
23840         * gtk/fnmatch.c
23841         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
23842
23843 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
23844
23845         * configure.in (ALL_LINGUAS): Added Galician (gl)
23846
23847 1999-10-05  Tor Lillqvist  <tml@iki.fi>
23848
23849         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
23850
23851         * gdk/win32/gdkcompat.c: New file, actually provide an
23852         implementation for the deprecated functions. (Just temporarily.)
23853
23854         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
23855
23856         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
23857
23858         * gdk/win32/gdk.def gtk/gtk.def: Updates.
23859
23860 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
23861
23862         * configure.in: Added "uk" to ALL_LINGUAS.
23863         
23864 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
23865
23866         * configure.in: correct checking for BeOS check
23867
23868         * gdk/gdktypes.h
23869         * gtk/fnmatch.c
23870         * gtk/gtkfilesel.c
23871         * gtk/gtkitemfactory.c
23872         * gtk/gtkmain.[ch]
23873         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
23874
23875 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
23876
23877         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
23878         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
23879         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
23880         by Bulgarian). 
23881
23882 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
23883
23884         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
23885         Fix a reference to window_private->destroyed.   
23886
23887         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
23888         (ugly) setting of an internal GdkWindow member to use
23889         a _slightly_ cleaner macro.
23890
23891         * gdk/gdkprivate.h: Split GdkWindowPrivate into
23892         GdkDrawablePrivate and GdkWindowPrivate.
23893         Add extra macros for accessing GDK_DRAWABLE_ components.
23894
23895         * *.[ch]: Massive adjustments for the above, use the
23896         new macros in a lot of places.
23897
23898 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
23899
23900         * gdk/gdktypes.h: Make GdkDrawable the base type,
23901         not GdkWindow.
23902
23903 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
23904
23905         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
23906
23907 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
23908
23909         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
23910
23911 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
23912
23913         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
23914         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
23915
23916         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
23917
23918         * docs/gtk-config.1: Now autogenerated.
23919         * docs/Changes-1.4.txt: started
23920         
23921 1999-10-03  Tor Lillqvist  <tml@iki.fi>
23922
23923         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
23924         to #ifdef also here.
23925
23926         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
23927         Owen did to the X11 backend.
23928
23929         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
23930         ScrollWindowEx when blitting inside a window, it can't be correct
23931         in the general case.
23932
23933         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
23934         WM_GETMINMAXINFO is easier.
23935
23936         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
23937         depth equal to the bitspixel value, not the visual's depth.
23938
23939         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
23940         to 24 even if the bitspixel value is 32.
23941
23942         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
23943         need to check for depth==32 when bpp==32, depth will always be 24.
23944
23945 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
23946
23947         * docs/Changes-1.4.txt: Started
23948         
23949         * gtk/Makefile.am (gdk_headers): Include all the new headers.
23950
23951         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
23952         
23953         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
23954         into C file.
23955         
23956         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
23957         header to gdkinputprivate.h.
23958
23959         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
23960         unused since before 1.2.
23961
23962 1999-09-30  Tor Lillqvist  <tml@iki.fi>
23963
23964         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
23965         expand possible hex escapes in the font family (put there by
23966         logfont_to_xlfd if the font name isn't a legal XLFD font family,
23967         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
23968         On Win32, add hex escapes here, too.
23969
23970 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
23971
23972         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
23973         to #ifdef GDK_WINDOWING_X11.
23974
23975 [ Merges from gtk-1-2 ]
23976
23977 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
23978
23979         * configure.in: fixed "GNU Make" check to pass with new make version
23980         3.77.95.
23981
23982 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
23983
23984         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
23985         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
23986         AM_PATH_GTK() macros don't get confused by the -pre1.
23987
23988 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23989
23990         * configure.in (REBUILD): Change check for perl5
23991           to check explicitely for v >= 5.002. (5.001
23992           does not work with our scripts.)
23993
23994 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
23995
23996         * configure.in: evaluate $PERL for the perl version check. added
23997         --disable-rebuilds to give the user an option to completely disable
23998         any source autogeneration rules.
23999
24000 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
24001
24002         * configure.in: evaluate $ac_make when checking for GNU Make.
24003
24004 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
24005
24006         * docs/Makefile.am: added generation.txt.
24007
24008         * Makefile.am: require automake 1.4, build README from README.in and
24009         INSTALL from INSTALL.in in dist-hook.
24010         
24011         * README.in:
24012         * INSTALL.in: new files to autogenerate README and INSTALL from.
24013
24014         * configure.in: figure whether we have GNU Make
24015
24016         * docs/generation.txt: minor additions/corrections.
24017
24018 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
24019
24020         * docs/gtkfaq.sgml: FAQ Update
24021
24022 July 30, 1999 Elliot Lee <sopwith@redhat.com>
24023         
24024         * configure.in: Fix autoconf warnings about cross compilation by
24025         trying to provide sane defaults for AC_TRY_RUN.
24026
24027 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
24028
24029         * ltconfig
24030         * ltmain.sh: upgrade to libtool 1.3.3
24031
24032 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
24033
24034         * INSTALL: Indicate that the --with-glib= configure
24035         time flag is unsupported.
24036
24037 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
24038
24039         * docs/generation.txt: Added a file that gives
24040         documenation about the autogeneration process for
24041         various autogenerated files.
24042         
24043 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
24044
24045         * configure.in (LIBS): Look for libgmodule in the
24046         right location.
24047
24048 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
24049
24050         * docs/gtk_tut.sgml: Removed references to
24051         code examples in my directory on gtk.org as
24052         they should all be in the tutorial now.
24053
24054         * docs/gtk_tut.sgml: Added sources for dial-test
24055         and scribble-xinput programs that were previously
24056         missing.
24057
24058 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
24059
24060         * TODO: Added entry about menu keyboard navigation, removed
24061         some finished items.
24062
24063 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
24064
24065         * acinclude.m4: Standardize on func_dgettext
24066         not func_gettext, so that the checks for dgettext
24067         actually are paid attention to.
24068
24069 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
24070
24071         * configure.in (LIBS): Add $INTLLIBS into $LIBS
24072         directly, rather than repeating the checks for
24073         gettext.
24074
24075         * INSTALL: Added information about gettext and
24076         NLS support.
24077
24078         * acinclude.m4 (LIBM): Check for dgettext, not
24079         just gettext. This should hopefully fix things wrt
24080         systems with old versions of GNU gettext installed.
24081
24082 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
24083
24084         * configure.in (LIBS): Look for libgmodule in the
24085         right location.
24086
24087 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
24088
24089         * autogen.sh: add --enable-maintainer-mode
24090
24091         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
24092
24093 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
24094
24095         * docs/gtk-config.1.in:
24096           docs/Makefile.am:
24097           configure.in: gtk-config is now generated.
24098
24099         * docs/gtk-config.1: Removed, now generated.
24100
24101 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
24102
24103         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
24104         handle CreateNotify itself, still put out a debuging message for
24105         --gdk-debug=events. made the ReparentNotify debugging message more
24106         verbose.
24107         wrap xcoords translation for ConfigureEvents into an error trap,
24108         a destroy event may already be pending, and in that case, the
24109         actuall coordinate values are not at all critical.
24110
24111 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
24112
24113         * gdk/gdkcc.c: Stop leaking the color_hash all over
24114         the place. Simplify and improve the logic.
24115
24116 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
24117
24118         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
24119         for prototypes and function implementations consistent (reported
24120         by Tomas Ogren).
24121
24122 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
24123
24124         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
24125         send_event set in debugging output.
24126         (gdk_compress_exposures): default initialize the event so we don't
24127         operate on bogus values (namely send_event).
24128
24129 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
24130
24131         * gdk/gdkwindow.c: When we receive an unexpected
24132         destroy notify on one of our windows, don't just
24133         warn about it, also mark our windows as destroyed.
24134
24135 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
24136
24137         * gdk/gdkfont.c (gdk_font_hash_insert): Add
24138           name => font and name => fontset hashes. The 
24139           name => fontset hash is a _big_ win since we
24140           weren't previously caching fontsets at all and loading
24141           fontsets is expensive. The name => font hash
24142           is less of a win, but it does save us from doing
24143           repeated XQueryFont calls on the same font.
24144
24145         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
24146           list so we can remove font/fontset from hash.
24147
24148 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
24149
24150         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
24151           and slightly confusing test. [ XInternAtom (,,TRUE)
24152           will never return None ].
24153
24154 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
24155
24156         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
24157           gdk/gdkwindow.c (gdk_window_set_hints):
24158
24159         Don't omit setting the properties if flags == 0 -
24160         there may be an existing set of properties there
24161         already. (Very old bug. Would it be better to
24162         delete the property instead?)
24163
24164         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
24165           spelling error in comment.
24166
24167 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
24168
24169         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
24170           to avoid stomping over gdk_error_warnings.
24171
24172         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
24173           as (bits_per_pixel + 7) / 8. This gives the same
24174           result as before for multiples of 8, but actually
24175           a "reasonable" value for 1bit or 4bit displays.
24176
24177 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
24178
24179         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
24180         GNU Make.
24181
24182 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
24183
24184         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
24185         discarding configure events.
24186
24187 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
24188
24189         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
24190         refcount is greater than zero.
24191
24192         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
24193
24194         * gdk/gdkfont.c (gdk_font_unref): Likewise.
24195
24196         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
24197
24198         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
24199
24200 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
24201
24202         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
24203         that format 32 => sizeof(item) == 4. It really is
24204         sizeof(long).
24205
24206 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
24207
24208         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
24209         core dump at all on X IO errors, only core dump
24210         if --enable-debug for X errors.
24211
24212 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
24213
24214         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
24215         unknown window:" message. disabled ConfigureNotify discarding code,
24216         because it led to events being processed out of order.
24217
24218 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
24219
24220         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
24221
24222         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
24223         we export this function, supress error warnings and don't reset the
24224         error code in the first half of this function.
24225
24226         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
24227         code (instead of just -1) so gdk_error_trap_pop() reveals something
24228         actually informative about the error that happened.
24229
24230         * gdk/*.c:
24231         don't rely on gdk_error_code being -1 if an error occoured, but just
24232         gdk_error_code != 0.
24233
24234 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
24235
24236         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
24237         pointer *before* invoking the filter function, so we at least don't
24238         crash if a filter is removed that is currently executed. window filters
24239         *really* need to be made truely reentrant at some point.
24240
24241 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
24242
24243         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
24244         PropertyNotify debug messages.
24245
24246 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
24247         
24248         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
24249         
24250         * gdk/gdkim.c: Fix cut-and-paste errors for 
24251         x/y and PreeditAttributes/StatusAttributes.
24252
24253 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24254
24255         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
24256         G_MAXINT to 2^16 to alleviate overflow problems in
24257         various window managers.
24258
24259 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
24260
24261         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
24262         for fontsets.
24263
24264 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
24265
24266         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
24267         Initialize size_hints.x and size_hints.y because kwm
24268         brokenly pays attention to them.
24269         (Bug #1181 -  Lars Heete <hel@admin.de>)
24270
24271 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
24272
24273         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
24274         return value of gdk_list_visuals(). 
24275         (Bug #1193 - Morten Welinder <terra@diku.dk>)
24276
24277 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
24278
24279         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
24280         XSetIMValues to (void *) when comparing to NULL, to workaround
24281         the problem of some compilers barfing since older X headers don't
24282         have the prototype for it.
24283
24284 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
24285
24286         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
24287         for pseudocolor where colormap->colors was double
24288         allocated.
24289
24290         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
24291         color value in the hash table with the pixel filled
24292         in so when we do later hash table lookups, the color
24293         value is correct.
24294         
24295 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
24296
24297         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
24298         making the call
24299
24300 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
24301
24302         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
24303         pointed out by Morten Welinder <terra@diku.dk>.
24304
24305 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
24306
24307         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24308           default filter from the list
24309
24310 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
24311
24312         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24313           default filter from the list
24314
24315 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
24316
24317         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
24318
24319         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
24320         g_strdup_printf instead of calcing the length separately
24321
24322 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
24323
24324         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
24325         that we don't do in many other places. (Fixing duplicate 
24326         #include of config.h)
24327
24328         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
24329         Otherwise, #ifndef XINPUT_NONE check in the latter
24330         doesn't work. (Bug #546)
24331
24332 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
24333
24334         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
24335         "None" case insensitive.
24336
24337 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
24338
24339         * gdk/gdkselection.c: 
24340         Add error traps so if the other end of the connection
24341         dies, we survive.
24342
24343 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24344
24345         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
24346         dest_xid field into two fields - one for the window
24347         to send in messages, one to indicate the last looked
24348         up window for caching purposes. This is needed, so
24349         that Leave messages get the correct window.
24350
24351 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
24352
24353         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
24354         Fix warning created by people mucking around
24355         with the gsource API.
24356
24357         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
24358         Change mapping between GIOCondition and GdkInputCondition
24359         to match the way the Linux kernel does it. This should
24360         fix problems where closed pipes were no longer signalling
24361         GDK_INPUT_READ on systems with a native poll().
24362
24363 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
24364
24365         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
24366         explicitly for the string "None" - it is in the XPM
24367         spec and some servers treat unknown colors in odd ways
24368         (like asking the user!)
24369
24370 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
24371
24372         * gdk/gdkevents.c: made "->" into a "." of previous change so
24373         it compiles
24374
24375 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
24376
24377         * gdk/gdkevents.c (gdk_compress_exposures): Set the
24378         window field of the event structure before calling
24379         user filters.
24380
24381 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
24382
24383         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
24384         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
24385
24386 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
24387
24388         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
24389         intermediate text property - prevents major memory
24390         leak when gdk_use_mb.
24391         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
24392
24393 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
24394
24395         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
24396         gtk-a-higuti-990322-[0-3]
24397
24398         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
24399         sizeof(wchar_t) != sizeof (GdkWChar)
24400
24401         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
24402         that was causing -DX_LOCALE not to work.
24403
24404         * gtk/gtkrc.c (gtk_rc_init):
24405         X_LOCALE will never have LC_MESSAGES defined
24406
24407         * gdk/gdk.c (gdk_init_check):
24408         Remove --xim-preedit and --xim-status from argv properly.
24409
24410         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
24411         that the client window is present on the X server
24412         before we pass it to the input method.
24413
24414 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
24415
24416         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
24417         if --display is specified on the command line, than
24418         the drag window will not be created on that display.
24419         
24420 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
24421
24422         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
24423         lookups with only_if_exists == TRUE were inserting
24424         bogus values into the atom cache.
24425
24426 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
24427
24428         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
24429         then reset it to NULL.
24430
24431         * gdk/gdkcolor.c:
24432         (gdk_colors_free): 
24433         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
24434         key for g_hash_table_remove() in both functions, this prevents us
24435         from accessing possibly uninitialized portions of a GdkColor structure
24436         where we are only interested in its pixel value.
24437
24438 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
24439
24440         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24441         font hash table, if we have a GdkFontPrivate entry for this font
24442         already, simply increment its reference count, provided by Olaf Dietsche
24443         <olaf.dietsche+list.gtk@netcologne.de>.
24444
24445 1999-09-21  Tor Lillqvist  <tml@iki.fi>
24446
24447         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
24448         just to be sure.
24449
24450         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
24451         unused variables, leftovers from the X11 version.
24452
24453         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
24454
24455         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
24456         downcase fields on X11.
24457
24458 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
24459         
24460         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
24461         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
24462
24463 1999-09-17  Tor Lillqvist  <tml@iki.fi>
24464
24465         * gdk/win32/gdk.def: Add gdk_threads_mutex.
24466
24467         * gtk/makefile.msc: Correct path to libintl.
24468
24469         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
24470         use of gint vs. int, and gint vs. gboolean in headers and
24471         definitions. Use GtkType for the *_get_type functions. Note that
24472         these changes preserve binary compatibility.
24473
24474         * gdk/gdk.c
24475         * gdk/win32/gdk.c
24476         * gdk/gdk.h: Fix inconsistencies: gint vs int.
24477
24478         * gtk/gtkmain.c
24479         * gtk/gtkclist.c
24480         * gtk/gtkmenufactory.c
24481         * gtk/gtknotebook.c
24482         * gtk/gtkwidget.c: Fix inconsistencies, also gint
24483         vs. gboolean.
24484
24485         * gtk/gtkcolorsel.[ch]
24486         * gtk/gtkcombo.[ch]
24487         * gtk/gtkdrawingarea.[ch]
24488         * gtk/gtkgamma.[ch]
24489         * gtk/gtkhandlebox.[ch]
24490         * gtk/gtkhpaned.[ch]
24491         * gtk/gtkhruler.[ch]
24492         * gtk/gtkplug.[ch]
24493         * gtk/gtkpreview.[ch]
24494         * gtk/gtkruler.[ch]
24495         * gtk/gtksocket.[ch]
24496         * gtk/gtkstatusbar.[ch]
24497         * gtk/gtktoolbar.[ch]
24498         * gtk/gtkvbbox.[ch]
24499         * gtk/gtkvpaned.[ch]
24500         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
24501         functions.
24502
24503         * gtk/gtkgamma.h: Fix bug, missing () in call of
24504         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
24505
24506 1999-09-14  Tor Lillqvist  <tml@iki.fi>
24507
24508         * gdk/gdkcolor.c (gdk_colormap_new)
24509         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
24510         colormap->colors was allocated twice.
24511
24512         * gdk/win32/gdk.c: Remove some unused stuff.
24513
24514         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
24515         colormap.
24516
24517         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
24518         * gtk/gtklabel.h (gtk_label_get_type)
24519         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
24520         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
24521         in a couple of places, not guint.
24522
24523 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24524
24525         * configure.in,po/et.po: added Estonian language file
24526
24527 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24528
24529         * configure.in,po/da.po: added Danish file
24530
24531 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
24532
24533         * docs/gtkfaq.sgml: Minor FAQ Update
24534
24535 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
24536
24537         * docs/gtkfaq.sgml: FAQ update
24538
24539 1999-08-27  Tor Lillqvist  <tml@iki.fi>
24540
24541         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
24542         way to get window contents continually refreshed while resizing. I
24543         didn't like the effects myself, so it's not on by default.
24544
24545         * gdk/win32/gdkprivate.h: New flag variable
24546         gdk_event_func_from_window_proc, FALSE by default.
24547
24548         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
24549         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
24550         are passed --gdk-event-func-from-window-proc.
24551
24552         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
24553         and we have am event_func, call it instead of enqueing the event.
24554
24555 1999-08-23  Tor Lillqvist  <tml@iki.fi>
24556
24557         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
24558         Kelley: Set expose_count in GdkEventExposes correctly.
24559
24560         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
24561         MULTIPLE_WINDOW_CLASSES).
24562
24563         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
24564         for bug in NT, apparently NT *does* draw the end pixel, too, in
24565         LineTo with a one-pixel pen, so we don't have to do it ourselves.
24566
24567 1999-08-21  Tor Lillqvist  <tml@iki.fi>
24568
24569         Improvements by Hans Breuer: 
24570
24571         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
24572
24573         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
24574         CS_?REDRAW flags as they cause lots of (late) redraws when "show
24575         window contents while dragging" is turned on. Allocate at least
24576         one unique class for every GdkWindowType. If support for single
24577         window-specific icons is ever needed (eg. Dialog specific), every
24578         such window should get its own class.
24579
24580 1999-08-19  Tor Lillqvist  <tml@iki.fi>
24581
24582         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
24583         error that caused crashes.
24584
24585 1999-08-17  Tor Lillqvist  <tml@iki.fi>
24586
24587         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
24588         window, use ScrollWindowEx, and call UpdateWindow. This prevents
24589         bugs when for instance part of the window was outside the
24590         display. Thanks to Philippe Colantoni for finding and fixing this.
24591
24592 1999-08-16  Tor Lillqvist  <tml@iki.fi>
24593
24594         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
24595         endpoint calculations which were totally wrong. (A little RTFMing
24596         helps a lot ;-)
24597
24598         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
24599         from a separate directory, not from gettext, because of licensing
24600         issues (we want to use the LGPL version).
24601
24602         * README.win32: Mention the intl from glibc vs from gettext issue.
24603
24604 1999-08-13  Tor Lillqvist  <tml@iki.fi>
24605
24606         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
24607         in the key event handling: Now AltGr chars work again. Also,
24608         now Alt-digits are passed up as well as Control-digits.
24609         Pass keypad plus and minus as normal plus and minus.
24610
24611 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
24612
24613         * docs/gtkfaq.sgml: FAQ Update
24614
24615 1999-07-25  Tor Lillqvist  <tml@iki.fi>
24616
24617         * README.win32
24618         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
24619         the Wintab SDK.
24620
24621         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
24622         OK, but getting closer. Guard against bogus tilt data from Wacom
24623         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
24624         enable easier building without Wintab.
24625
24626         * gdk/win32/gdkinput.h
24627         * gdk/win32/gdkevents.c 
24628         * gdk/win32/gdkwindow.c: Minor changes related related to above.
24629         
24630         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
24631         code. As we have just one visual on Win32, no sense to have it in a
24632         table, and no need for the hash table.
24633
24634         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
24635         better on white background.
24636
24637 1999-07-21  Tor Lillqvist  <tml@iki.fi>
24638
24639         * README.win32: Update gcc build instructions. Mention gettext is
24640         GPL.
24641
24642         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
24643         supported cursor size with GetSystemMetrics.
24644
24645         * gdk/win32/gdkfont.c
24646         * gtk/gtkfontsel.c: Guard against some font weight and charset
24647         symbols being undefined (in mingw32 headers).
24648
24649         * gdk/win32/makefile.cygwin
24650         * gtk/makefile.cygwin
24651         * gtk/gtkthemes.c: No longer need to have differently named
24652         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
24653
24654 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
24655
24656         * docs/gtkfaq.sgml: Long awaited FAQ update.
24657
24658 1999-07-15  Tor Lillqvist  <tml@iki.fi>
24659
24660         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
24661         it. Obscure bit manipulation needed.
24662
24663         * gdk/win32/gdkevents.c: Logging.
24664         
24665         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
24666         style (file name include compiler name) for theme engines.
24667
24668 1999-07-13  Tor Lillqvist  <tml@iki.fi>
24669
24670         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
24671
24672         * gdk/win32/gdkevents.c: Fix long-standing bug in key
24673         events. The key.string wasn't zero-terminated, still we strdup'ed
24674         it in gdk_event_copy(). Synthesize crossing events for button
24675         events before possible propagation.
24676
24677         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
24678
24679         * gdk/win32/makefile.cygwin
24680         * gtk/makefile.cygwin: Use new DLL naming style for the
24681         GCC-compiled ones.
24682
24683         * gdk/win32/makefile.msc
24684         * gtk/makefile.msc: Cosmetics mostly.
24685
24686         * gtk/gtk.def: Add missing entry points.
24687
24688         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
24689
24690 1999-07-09  Tor Lillqvist  <tml@iki.fi>
24691
24692         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
24693         or height is zero. Don't print a warning if Pie or Arc fails, they
24694         always fail (?) for very narrow ellipses.
24695
24696         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
24697         the part or the destination window corresponding to source area
24698         outside of the source drawable's boundary.
24699
24700         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
24701         anything if less than two points.
24702
24703         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
24704         return NULL. Gtk cut-and-paste inside a single program works
24705         better this way. (It always gets the clipboard contents from
24706         Windows, not from its own copy, which is cleared anyway. I can't
24707         say I fully understand what happens... Emulating the X selection
24708         and property stuff is a bit of a mess.)
24709
24710         * gdk/win32/gdkevents.c
24711         * gdk/win32/gdkproperty.c: A bit more verbose logging.
24712
24713         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
24714         that never got deleted). Revamp gdk_region_shrink.
24715
24716         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
24717         after use.
24718
24719         * gtk/gtk.def: Add some missing entry points.
24720
24721         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
24722         component.
24723
24724 1999-07-04  Tor Lillqvist  <tml@iki.fi>
24725
24726         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
24727         Control-digits specially.
24728
24729 1999-07-03  Tor Lillqvist  <tml@iki.fi>
24730
24731         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
24732
24733 1999-06-28  Tor Lillqvist  <tml@iki.fi>
24734
24735         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
24736         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
24737         finding this.)
24738
24739 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
24740
24741         * gtk+.spec.in: Corrected some typos in files section.
24742         
24743 1999-06-15  Tor Lillqvist  <tml@iki.fi>
24744
24745         * README.win32: Mention using GNU gettext.
24746         * config.h.win32: Enable NLS stuff.
24747         * gtk/makefile.msc: Use GNU gettext.
24748         * gdk/win32/gdkdnd.c: Minor header reorg.
24749         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
24750         cosmetics.
24751         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
24752         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
24753
24754 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
24755
24756         * acinclude.m4
24757         * config.guess
24758         * config.status
24759         * ltconfig
24760         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
24761
24762 1999-05-30  Tor Lillqvist  <tml@iki.fi>
24763
24764         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
24765         SafeAdjustWindowRectEx. Don't override all calls to
24766         AdjustWindowRectEx by it, but use it only in two places: When
24767         creating a new top-level window and when moving a top-level
24768         window.
24769
24770         Use screen coordinate rectangle, not client rectangle, in
24771         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
24772         when we try to place a window so that the decoration (mainly,
24773         title bar) isn't visible.
24774
24775         These changes fix the bug that showed up for instance as the
24776         GIMP's saved top-level windows moving right and down (by an amount
24777         equal to the window decoration) for each session. This bug showed
24778         up also in testgtk's "Saved Position".
24779
24780         gdk_window_resize also redone a bit.
24781
24782 1999-05-25  Tor Lillqvist  <tml@iki.fi>
24783
24784         * gtk/testgtkrc: Add (commented out) Windows-style theme
24785         include line.
24786
24787         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
24788
24789 1999-05-18  Tor Lillqvist  <tml@iki.fi>
24790
24791         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
24792         gdkx.h to a gdk subdirectory, so that applications can include
24793         these with <gdk/*.h> without trouble.
24794
24795         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
24796         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
24797         have their bitmap destroyed.
24798
24799         * gdk/win32/gdk.def: Add gdk_root_parent.
24800
24801 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
24802
24803         * configure.in
24804           gtk-config.in
24805           ltconfig
24806           ltmain.sh     
24807           gtk/Makefile.am: changes to compile nicely (with xlib) 
24808           on BeOS
24809
24810 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
24811
24812         * acinclude.m4
24813         * config.guess
24814         * config.sub
24815         * ltconfig
24816         * ltmain.sh: upgrade to libtool 1.3
24817
24818 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
24819
24820         * gtk/gtkclist.c:
24821         * gtk/gtkctree.c: merges from gtk-1-2
24822
24823 1999-04-25  Tor Lillqvist  <tml@iki.fi>
24824
24825         Support added for building using a GNU toolchain on Win32,
24826         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
24827
24828         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
24829         * config.h.win32: Changes for gcc.
24830         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
24831         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
24832         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
24833         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
24834         Protect shl stuff unavaiilable with mingw32 headers.
24835         * gdk/win32/gdkevents.c: Fix typo.
24836         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
24837         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
24838         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
24839         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
24840         the mingw32 headers.
24841         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
24842         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
24843         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
24844         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
24845         Test for NATIVE_WIN32, not _MSC_VER.
24846         * gtk/gtkmain.c: No use warning about developer version on Win32,
24847         there aren't any non-developer versions anyhow.
24848         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
24849         * gtk/makefile.msc: Use pthread from another directory. Minor other
24850         changes. 
24851
24852 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
24853
24854         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24855           default filter from the list
24856
24857 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
24858
24859         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
24860          when gtk_widget_grab_default() is called for a widget that
24861          is not within a GtkWindow.
24862
24863 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
24864
24865         * docs/gtk_tut.sgml, examples/clist.c: use a
24866           scrolled window in the clist example. Minor
24867           tutorial fixes.
24868
24869 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
24870
24871         * docs/gtk_tut.sgml: Style check from David King
24872           <dking@youvegotmail.net>
24873
24874 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
24875
24876         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
24877         compile with unknown value of GDK_WINDOWING
24878
24879 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
24880
24881         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
24882         after the rule is fired.
24883         (install-exec-local): Install gdkconfig.h only if the contents are
24884         different from the currently installed gdkconfig.h.
24885
24886 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
24887
24888         * gdk/Makefile.am (configexecincludedir): Rename from 
24889         configincludedir so that gdkconfig.h will be installed 
24890         as part of `make install-exec'. 
24891
24892 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
24893
24894         * acinclude.m4
24895         * config.guess
24896         * config.sub
24897         * ltconfig
24898         * ltmain.sh: upgrade to libtool 1.2f
24899
24900         * autogen.sh: libtool is not required to autogen gtk+
24901
24902         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
24903         needed)
24904
24905 1999-03-18  Tor Lillqvist  <tml@iki.fi>
24906
24907         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
24908         declaring gdk variables exported/imported from the DLL. New image
24909         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
24910         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
24911         GDK_DRAG_PROTO_OLE2.
24912
24913         * gdk/gdk.h: Merge in Win32 version: Two new functions,
24914         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
24915         declared only for the Win32 version, but could be in the X11
24916         version as well. (Needed for a Xlib-less gdk_imlib.)
24917         gdk_color_hash should have only one parameter. Declare
24918         gdk_threads_mutex with GDKVAR.
24919         
24920         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
24921         just one parameter.
24922
24923         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
24924         per pixel, not bits.
24925
24926         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
24927         Fetch bpp (which means bits-per-pixel here) from another place on
24928         Win32. Accept also depth==32 (which we might get on Win32) with
24929         bpp==32.
24930
24931         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
24932         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
24933         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
24934         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
24935         in the backend-dependent directory, not in the common gdk
24936         directory.
24937
24938         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
24939         headers.
24940
24941 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
24942
24943         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
24944         want to use the Gtk+ devel version (which is true, and yes - even i am
24945         currently working with the 1.2.x branch). so everyone reading this, you
24946         probably want to issue
24947         cvs checkout -r glib-1-2 glib
24948         and
24949         cvs checkout -r gtk-1-2 gtk+
24950         as your next two comands.
24951
24952 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
24953
24954         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
24955         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
24956
24957         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
24958         file. strongly deprecated the GTK_HAVE_* macros, we provide
24959         GTK_CHECK_VERSION() for people that need to check for certain
24960         Gtk+ versions.
24961
24962         * gtk/gtkcompat.h: removed this from CVS.
24963         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
24964         idea right from the start, it just didn't seem like that back then.
24965
24966 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
24967
24968         * merges from gtk-1-2:
24969
24970 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
24971
24972         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
24973         item factory class has been created.
24974         (gtk_item_factory_parse_rc): likewise.
24975
24976         * gtk/gtkmenu.c:
24977         keep proper references for old_active_menu_item.
24978         (gtk_menu_reparent): unset the usize of the new parent,
24979         so the menu can sanely be size requested and we don't get nasty screen
24980         artefacts upon next reparentation.
24981         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
24982         enter notify. only synthesize enter notifies if the pointer really is
24983         inside the event window.
24984         (gtk_menu_popdown): use gtk_menu_shell_deselect().
24985         (gtk_menu_popup): move the background setting stuff into
24986         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
24987
24988         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
24989         gtk_menu_shell_select_item() to select the new item.
24990         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
24991         do the right thing for deselection as well.
24992
24993 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
24994
24995         * gtk/gtkwidget.[hc]:
24996         (gtk_widget_accelerators_locked): return whether a widget's accelerators
24997         are locked.
24998
24999         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
25000         existing accelerators if the widget's accelerators are locked.
25001
25002 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
25003
25004         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
25005
25006         * gtk/gtkmenu.c: truely forward key press and key release events to
25007         the menu widget from the toplevel or tearoff window. we can't simply
25008         connect to that, we need to stop further processing of the events as
25009         well.
25010
25011 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
25012
25013         * gtk/gtkmenu.c:
25014         (gtk_menu_key_press): pass event->keyval, event->state to
25015         gtk_accelerator_valid, instead of event->keyval twice.
25016         refuse to install single letter accelerators for menus that use
25017         single letter shortcuts.
25018
25019         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
25020         gtk_menu_ensure_uline_accel_group().
25021
25022         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
25023         which will always return an uline accel group, made
25024         gtk_menu_get_uline_accel_group() return NULL if the group isn't
25025         yet created.
25026
25027 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
25028
25029         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
25030
25031         * gtk/gtkclist.c (gtk_clist_column_title_passive):
25032         Leave button sensitive, trap  button_press, button_release,
25033         motion_notify, enter_notify and leave_notify events instead.
25034         (gtk_clist_column_title_active): disconnect event handler.
25035         (gtk_clist_drag_data_get): fixed memory leak. Reported by
25036         Guillaume Laurent <glaurent@worldnet.fr>
25037
25038 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
25039
25040         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
25041         width/height mixups.
25042
25043         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
25044         if needed.
25045
25046 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
25047
25048         * gtk/testgtk.c (create_item_factory): unref the item factory after
25049         window's destruction.
25050
25051         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
25052         count on the menu shell around the menu item's activation, since the
25053         signal emission may cause menu shell destruction.
25054
25055         * gtk/gtkitemfactory.c:
25056         the previous code leaked one accel group per menu. we use
25057         gtk_menu_get_uline_accel_group() now to fix that, and with that
25058         also create the underline accelerator group of the menus only if
25059         required (i.e. an underline accelerator has been specified).
25060         (gtk_item_factory_construct):
25061         (gtk_item_factory_create_item): removed code that would create an
25062         extra accel group for the menu (and leak references).
25063         (gtk_item_factory_create_item): adapted the underline accelerator
25064         installation code to properly feature gtk_menu_get_uline_accel_group().
25065
25066         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
25067         menu->accel_group, this may return NULL if the accelerator group
25068         hasn't been set yet.
25069         added gtk_menu_get_uline_accel_group() to retrive the underline
25070         accelerator group of the menu, this will be created on demand
25071         and proper care is taken about its reference count.
25072
25073         * gtk/gtkitemfactory.h:
25074         * gtk/gtkitemfactory.c:
25075         dumped the approach of keeping a widgets by action list on the
25076         factory since the factory<->widget destroy negotiation didn't work
25077         and would be hard to get going at all. instead we keep a list of
25078         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
25079         persistant throughout a program's life time).
25080         also, i removed the static const gchar *key_* variables, and made
25081         them inline strings (they weren't actually used anyways).
25082         (gtk_item_factory_add_item): update ifactory->items.
25083         (gtk_item_factory_destroy): destroy ifactory->items (and remove
25084         the item factory pointer from the remaining ifactory widgets).
25085         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
25086         list to find the widget.
25087         (gtk_item_factory_get_item): new function that works around
25088         gtk_item_factory_get_widget() limitations, this function will only
25089         return menu items, even for <Branch> entries.
25090
25091 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
25092
25093         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25094         font hash table, if we have a GdkFontPrivate entry for this font
25095         already, simply increment its reference count, provided by Olaf Dietsche
25096         <olaf.dietsche+list.gtk@netcologne.de>.
25097
25098         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
25099         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
25100
25101 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
25102
25103         * gtk/gtkcontainer.c:
25104         (gtk_container_add_with_args):
25105         (gtk_container_addv):
25106         (gtk_container_add): before adding a child to a conatiner, make sure
25107         it is (default) constructed, this is neccessary because under certain
25108         circumstances the child will get relized and mapped immediatedly, in
25109         which case it has to be constructed already.
25110
25111 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
25112
25113         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
25114         values > 1 as TRUE also.
25115
25116 1999-03-16  Tor Lillqvist  <tml@iki.fi>
25117
25118         * README.win32: New file.
25119                 
25120         * configure.in: Check for lstat.
25121
25122         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
25123         completeness.
25124
25125         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
25126
25127         * gtk/gtk.def: Removed CRs.
25128
25129         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
25130         ..\gdk\win32).
25131
25132         * gdk/win32/makefile.msc: Correct upwards relative paths.
25133         
25134 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
25135
25136         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
25137           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
25138           it was connecting a void function to expose_event and the int
25139           returning function to the draw signal
25140
25141 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
25142
25143         * configure.in:
25144         Use correct path to libgmodule.la when ref'ing uninstalled copy
25145         of glib.  (Already in stable branch, Bug #417)
25146
25147 1999-03-15  Tor Lillqvist  <tml@iki.fi>
25148
25149         Win32 merge and general portability stuff:
25150                 
25151         * acconfig.h,configure.in: Check for <sys/time.h>.
25152
25153         * gdk/win32: New directory (actually, been there for a while).
25154         
25155         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
25156         NATIVE_WIN32, and use these. Always case fold on Win32. No
25157         backslashed escapes on native Win32.
25158
25159         * gtk/{gtk.def,makefile.msc}: New files.
25160
25161         * gtk/Makefile.am: Add above new files.
25162         
25163         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
25164         instead of <strings.h>.
25165
25166         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
25167         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
25168         <unistd.h> appropriately.
25169
25170         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
25171         Use ABS() (from <glib.h>) instead of abs().
25172         
25173         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
25174         of gtk (and thus glib) headers, so that WIN32 will be
25175         defined. With MS C, include <direct.h> for mkdir prototype.
25176
25177         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
25178         some casts, needed by MS C.
25179
25180         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
25181         implemented).
25182
25183         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
25184         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
25185         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
25186
25187         * gtk/gtkmain.h: Mark variables for export/import on Win32.
25188                 
25189         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
25190         the event is not a hint, or its window is not the slider. Needed
25191         on Win32, at least.
25192
25193         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
25194         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
25195         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
25196         a subdirectory of the Windows directory as gtk system
25197         configuration directory.
25198
25199         * gtk/gtkselection.c: No chunks on Win32.
25200
25201         * gtk/gtksocket.c: Not implemented on Win32.
25202
25203         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
25204
25205         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
25206
25207         * gtk/maketypes.awk: Declare variables with a macro that expands to
25208         necessary export/import magic in the case of Win32.
25209                 
25210         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
25211
25212 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
25213
25214         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
25215         since those were meant only for gdki18n.h.  
25216         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
25217         for widechar tests.
25218         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
25219
25220 1999-03-13  Tor Lillqvist  <tml@iki.fi>
25221
25222         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
25223         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
25224
25225         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
25226         installed) to CFLAGS.
25227
25228         * gdk/Makefile.am: Add rules for gdkconfig.h.
25229
25230         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
25231         APIs.
25232
25233         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
25234         gdkx.h anyway when compiling for X11.
25235         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
25236         general): Merge in Win32 version.
25237         
25238         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
25239         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
25240         expansion (if we don't have HAVE_PWD_H), allow for drive
25241         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
25242         included code from Craig Setera's port to Win32 (the one that uses
25243         X11, and the cygwin dll), even if it probably will be abandoned.
25244
25245         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
25246         the user entered one herself.  This way one can complete *.h and
25247         don't get matches on any .help files, for instance.
25248         
25249 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
25250
25251         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25252         font hash table, if we have a GdkFontPrivate entry for this font
25253         already, simply increment its reference count, provided by Olaf Dietsche
25254         <olaf.dietsche+list.gtk@netcologne.de>.
25255
25256         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
25257         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
25258
25259 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
25260
25261         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
25262         the number of calls to gdk_draw_point() (and thus to X) by
25263         clipping the points by hand.
25264
25265         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
25266         the clip parameter.
25267         (gtk_handle_box_paint): Only paint the handle if the expose area
25268         intersects it.
25269
25270 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
25271
25272         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
25273
25274 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
25275
25276         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
25277         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
25278
25279 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
25280
25281         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
25282          textmode (O_TEXT) for OS/2 version.
25283
25284 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
25285
25286         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
25287         GtkSpinButton, "input" and "output", to make the output more flexible.
25288         The user has to provide a mapping between adjustment->value and the
25289         output string (and vice versa, if the spin button is editable). 
25290         See testgtk for examples.
25291
25292 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
25293
25294         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
25295         new one.
25296         
25297         * configure.in: set gtk+ version to 1.3.0.
25298
25299         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,