]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-6
fix figuring accel path and changing behaviour.
[~andy/gtk] / ChangeLog.pre-2-6
1 Wed Feb 13 13:26:39 2002  Tim Janik  <timj@gtk.org>
2
3         * gtk/gtkmenu.c: fix figuring accel path and changing behaviour.
4
5 Wed Feb 13 06:42:37 2002  Tim Janik  <timj@gtk.org>
6
7         * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
8         my recent expanding change to not expand the table if all children
9         have not epxand behaviour. this fixes palette views which often
10         use homogeneous non-expanding tables.
11
12 Tue Feb 12 14:27:41 2002  Kristian Rietveld  <kris@gtk.org>
13
14         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
15         row_deleted before we start unreffing the nodes ourselves
16         (gtk_tree_model_sort_increment_stamp): always increment the stamp,
17         and not only if the stamp equals 0 (pointed out by Darin Adler)
18
19         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): we want
20         to continue the while loop and not the nested for loop.
21
22 Tue Feb 12 02:19:49 2002  Tim Janik  <timj@gtk.org>
23
24         * gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
25         the extra space allocated for the homogeneous case, as we don't
26         properly deal with readjusting table allocation within it. (for  this
27         purpose, a GtkAlignment can be used as table parent).
28
29 2002-02-11  Darin Adler  <darin@bentspoon.com>
30
31         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
32         Consider reordering the row even when there's no sort column, if
33         there's a default sort function.
34         (gtk_tree_model_sort_rows_reordered): Use symbolic constants.
35         (gtk_tree_model_sort_level_find_insert): Add code to handle the
36         case where there is no sort column, but a default sort function.
37         (gtk_tree_model_sort_insert_value): Add code to handle the case
38         where there is no sort column an no default sort function.
39         (gtk_tree_model_sort_set_model): Use symbolic constant.
40         (gtk_tree_model_sort_reset_default_sort_func): Use symbolic constant.
41
42 2002-02-11  Sven Neumann  <sven@gimp.org>
43
44         * gtk/gtkfilesel.c: converted the "Delete File" dialog to
45         GtkMessageDialog. Marked missing strings for translation.
46
47 Mon Feb 11 22:03:15 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
48
49         * gtk/gtkpaned.[ch]: Opaque resizing + prelighting for paned widget.
50         * gtk/gtkvpaned.c, gtk/gtkhpaned.c: move reszing logic to gtkpaned.c
51
52 Mon Feb 11 21:42:17 2002  Kristian Rietveld  <kris@gtk.org>
53
54         Implements DnD scrolling and fixes #71139
55
56         * gtk/gtktreeview.c (gtk_tree_view_vertical_autoscroll): new function,
57         (scroll_row_timeout): new function,
58         (gtk_tree_view_drag_motion): create scroll_timeout, so
59         scroll_row_timeout gets called
60
61 Mon Feb 11 17:54:46 2002  Kristian Rietveld  <kris@gtk.org>
62
63         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
64         member of hadjustment correct, so the hscrollbars of lists smaller
65         than 1 page (in width) are somewhat saner
66
67 2002-02-11  jacob berkman  <jacob@ximian.com>
68
69         * gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to
70         match implementation
71
72 Mon Feb 11 16:48:34 2002  Kristian Rietveld  <kris@gtk.org>
73
74         * gtk/gtkliststore.c (gtk_list_store_set_valist): set value of
75         func to NULL during initialization (we don't use func in the
76         !SORTED case, so we just silent the compiler here) (#71029)
77
78 Mon Feb 11 16:40:44 2002  Kristian Rietveld  <kris@gtk.org>
79
80         * gtk/gtktreeview.c (gtk_tree_view_set_model): install presize
81         handler, so the validate_rows_handler will always be run (#70997)
82
83 Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
84
85         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
86         value of new_location by one if cmp_a > 0 and we hit the end of
87         the list and pass NULL instead of a 'NULL-iter' with
88         _rows_reordered (#71060)
89
90 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
91
92         * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
93         imti-et.c} po/POTFILES.in: Add three Ethiopic input methods from
94         Daniel Yacob.
95
96 2002-02-10  Anders Carlsson  <andersca@gnu.org>
97
98         * gtk/gtkcalendar.c (gtk_calendar_class_init): Set finalize handler;
99         (gtk_calendar_finalize): Rename gtk_calendar_destroy to 
100         gtk_calendar_finalize since ::destroy can be called multiple times, 
101         resulting in double-freeing memory.
102
103 2002-02-10  Hans Breuer  <hans@breuer.org>
104
105         * gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
106         rect size by the scroll amount
107
108         * gdk/win32/gdkwindow-win32.c
109         * gdk/win32/gdkselection-win32.c : added some casts to
110         make it compile with msvc's strict type checking
111
112         * gtk/fnmatch.c : #include <ctype.h> again for tolower
113         prototype. The fnmatch() code assumes to be in the crt 
114         locale though it is feeded by utf8 strings from gtkfilesel.c
115
116         * gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
117         _CompletionDir instead of referencing already freed memory
118
119         * gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
120         gtk_rc_parse_string (theDefaultTooltipColor) once as it
121         was intended
122
123         * tests/makefile.msc : added more tests
124
125         * tests/testgtk.c (create_list) : don't try to load gtkenums.h
126         from the current directory use ../gtk/gtkenums.h instead
127
128 2002-02-10  Kjartan Maraas  <kmaraas@gnome.org>
129
130         * gtk/gtksizegroup.c: Fix a double «The» typo in a string.
131         
132 2002-02-09  Matthias Clasen  <matthias@local>
133
134         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Avoid segfault
135         for selectable tab labels (even without a segfault, they make the
136         notebook almost unusable, though).  (#69985)
137
138 2002-02-08  Matthias Clasen  <matthias@local>
139
140         * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Silently do 
141         nothing if the parent is not a menu.  (#66492)
142
143 2002-02-06  Matthias Clasen  <matthiasc@poet.de>
144
145         * gtk/gtkitemfactory.c (gtk_item_factory_from_widget,
146         gtk_item_factory_path_from_widget): Try fetching the return value 
147         from menu_item->submenu as a fallback.  (#69020)
148         
149 Sat Feb  9 22:57:43 2002  Kristian Rietveld  <kris@gtk.org>
150
151         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): convert
152         the iter to a child iter again, after doing _iter_children. It's
153         possible that _iter_children added some rows and updated the stamp.
154
155 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
156
157         * gtk/gtktextchild.c: Use == rather than = in sanity
158         checks.  Ouch!
159
160 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
161
162         * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
163         curled braces so that it doesn't always return.  Also indent
164         both CHECK_IN_BUFFER* macros properly, and make use of
165         G_STMT_START/G_STMT_END.
166
167 Sat Feb  9 13:27:14 2002  Owen Taylor  <otaylor@redhat.com>
168
169         * gtk/gtkbindings.h: Add prototype for
170         _gtk_binding_reset_parsed().
171
172 Sat Feb  9 13:19:20 2002  Owen Taylor  <otaylor@redhat.com>
173
174         * configure.in gtk/Makefile.am gtk/theme-bits/*: Add
175         tools and images used for creating the check/radio
176         button images in the default theme.
177
178 Sat Feb  9 13:58:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
179
180         * gtk/gtkpaned.[ch]: Keyboard navigation for GtkPaned
181         F6: cycle between panes.
182         F8: focus handle (#53584)
183         
184         * tests/testgtk.c: Add test cases for GtkPaned keyboard 
185         navigation.
186         
187 Sat Feb  9 00:16:31 2002  Owen Taylor  <otaylor@redhat.com>
188
189         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): 
190         XCopyArea with subwindow_mode = IncludeInferiors.
191         (#70999)
192
193         * demos/testpixbuf-save.c (configure_cb): Fix a minor
194         memory management problem.
195
196 Fri Feb  8 20:24:58 2002  Owen Taylor  <otaylor@redhat.com>
197         
198         * gtk/gtkbindings.c (binding_compose_params): Fix problem
199         with string-valued parameters (#70012, Johan Dahlin.)
200
201         * gtk/gtkentry.c (gtk_entry_delete_whitespace): Fix 
202         white space deletion.
203
204 Fri Feb  8 21:25:56 2002  Jonathan Blandford  <jrb@redhat.com>
205
206         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): fix
207         evil ref bug where the wrong row and a deleted row was unreffed.
208         Found by Darin Adler <darin@bentspoon.com>
209
210 Fri Feb  8 18:46:13 2002  Owen Taylor  <otaylor@redhat.com>
211
212         * gtk/gtkbindings.[ch] (_gtk_binding_reset_parsed): Add
213         a function to delete all bindings add by
214         gtk_binding_parse_binding() when rereading RC files.
215
216         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Reset
217         binding set content as well as RC content.
218
219         * gtk/gtkbindings.c (binding_compose_params): Fix 
220         various GValue handling problems.
221
222         * gtk/gtkentry.c (gtk_entry_class_init): Remove bindings 
223         for C-b, C-f, M-b, M-f, C-a, C-e, C-w, C-y, M-space, C-u,
224         C-k, M-\, M-d, C-d.
225
226         * gtk/gtktextview.c (gtk_text_view_class_init): Remove
227         same bindings as GtkEntry, plus C-n, C-p, C-space
228
229         * gtk/gtkrc.key.default gtk/gtkrc.key.emacs gtk/Makefile.am:
230         Add Emacs and Default key themes.
231         
232 2002-02-08  Darin Adler  <darin@bentspoon.com>
233
234         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
235         Remove a tiny bit more dead code.
236
237 2002-02-08  Darin Adler  <darin@bentspoon.com>
238
239         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
240         Fix stale pointer bug.
241
242 Fri Feb  8 14:30:14 2002  Owen Taylor  <otaylor@redhat.com>
243
244         * gtk/gtkclist.c (title_focus_in): Return FALSE if
245         not showing the titles. (#70959, Thomas Leonard)
246
247 2002-02-08  Darin Adler  <darin@bentspoon.com>
248
249         * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
250         * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
251         * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
252         * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
253         * gtk/fnmatch.c: Remove <ctype.h> include.
254         * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
255         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
256         g_unichar_toupper, toupper -> g_unichar_totile
257         * gtk/gtkbindings.c: Remove <ctype.h> include.
258         * gtk/gtkfontsel.c: Remove <ctype.h> include.
259         * gtk/gtkiconfactory.c: Remove <ctype.h> include.
260         * gtk/gtkinputdialog.c: Remove <ctype.h> include.
261         * gtk/gtklabel.c: Remove <ctype.h> include.
262         * gtk/gtkmain.c: Remove <ctype.h> include.
263         * gtk/gtkmenu.c: Remove <ctype.h> include.
264         * gtk/gtkoldeditable.c: Remove <ctype.h> include.
265         * gtk/gtkrc.c: Remove <ctype.h> include.
266         * gtk/gtktextbtree.c: Remove <ctype.h> include.
267         * gtk/gtktextiter.c: Remove <ctype.h> include.
268         * gtk/gtktextsegment.c: Remove <ctype.h> include.
269
270 2002-02-08  Sven Neumann  <sven@gimp.org>
271
272         * gtk/gtkfilesel.c
273         * gtk/gtkgamma.c
274         * gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
275
276 2002-02-08  Darin Adler  <darin@bentspoon.com>
277
278         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
279         (gtk_tree_model_sort_unref_node): Pass the ref_node and
280         unref_node calls through to the child model.
281
282 2002-02-08  Laszlo Peter  <laca@ireland.sun.com>
283
284         * gtk/gtktextchild.c: s/__FUNCTION__/G_GNUC_FUNCTION/
285         * gtk/gtktextview.c: ditto
286
287 2002-02-07  Havoc Pennington  <hp@pobox.com>
288
289         * gtk/gtkspinbutton.h (struct _GtkSpinButtonClass): add
290         change_value virtual function, to fix build
291
292         * gtk/gtkpixmap.c (gtk_pixmap_class_init): parent_class was 
293         from GtkWidget not GtkMisc. Not that it ever mattered.
294
295 Thu Feb  7 19:52:00 2002  Owen Taylor  <otaylor@redhat.com>
296
297         * gtk/gtknotebook.[ch]: Add ::move-focus-out signal
298         to handle Control[-Shift]-Tab and Control-arrow
299         bindings and implement bindings as per #53612.
300
301         * gtk/gtktextview.c (gtk_text_view_move_focus): Fix 
302         fetching the toplevel for plug-socket.
303
304         * gtk/gtknotebook.c (gtk_notebook_class_init): Remove
305         bindings for Return/Enter to select the page.
306
307         * gtk/gtknotebook.c (gtk_notebook_change_current_page):
308         Beep at ends.
309
310         * gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
311         and beep at ends.
312
313         * gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
314         the page with the arrow keys, focus the first widget,
315         not the directionally closest widget.
316
317 Thu Feb  7 19:00:10 2002  Owen Taylor  <otaylor@redhat.com>
318
319         * gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
320         to using  binding set for doing key bindings. (#62622,
321         Requested by Skip Montaro)
322
323         * gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
324         bindings as overrides along with control-tab bindings.
325
326         * gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
327         type for ::focus_tab signal.
328
329 Thu Feb  7 19:39:27 2002  Kristian Rietveld  <kris@gtk.org>
330
331         Fixes #70782 and some drag dest rectangle/line issues
332
333         * gtk/gtktreeview.c (gtk_tree_view_set_model): set
334         GTK_TREE_VIEW_IS_LIST flag (we can switch from a TreeStore to a
335         ListStore for example)
336         (gtk_tree_view_get_path_at_pos): revert previous change, we
337         shouldn't correct for the header, because we are taking bin_window
338         coordinates here
339         (gtk_tree_view_set_drag_dest_row): queue old drag_dest row and
340         upper/lower neighbors for draw, so the drag dest rectangle/line will
341         be cleared correctly
342         (gtk_tree_view_get_dest_row_at_pos): correct for treeview header
343         here, as drag_y is relative to the widget and _get_path_at_pos wants
344         coords relative to bin_window, draw black outline rectangle after
345         drawing the cells
346
347 Thu Feb  7 10:53:12 2002  Owen Taylor  <otaylor@redhat.com>
348
349         * gtk/gtkentry.c (gtk_entry_draw_text): Use layout text
350         (which may be affected by invisible char) to compute
351         selection bounds, not entry text. (#70733, Alex Larsson)
352
353 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
354
355         * gtk/gtkwidget.[ch]:
356         Change show_help signal to return gboolean instead of void. This
357         allows the keypress which invokes the signal to be propagated to the
358         focus widgets ancestors if not handled by the focus widget.
359         
360         * gtk/gtktoolips.[ch]
361         Change _gtk_tooltips_show_tip () to return a gboolean indicating
362         whether widget has tooltip to display.
363         
364 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
365
366         * gtk/gtkwidget.[ch]:
367         Change popup_menu signal to return gboolean instead of void. This
368         allows the keypress which invokes the signal to be propagated to the
369         focus widgets ancestors if not handled by the focus widget.
370
371         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtktextview.c:
372         Change signature of popup_menu signal handler to return gboolean
373         instead of void and return TRUE in the signal handler
374
375 2002-02-07  Anders Carlsson  <andersca@gnu.org>
376
377         * gdk/x11/xsettings-common.c (xsettings_setting_free): Free 
378         the setting name.
379
380 Wed Feb  6 23:28:39 2002  Kristian Rietveld  <kris@gtk.org>
381
382         Fixes #70708
383
384         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): we're dealing
385         with widget coordinates here, so take the header height into
386         account while converting
387         (gtk_tree_view_widget_to_tree_coords): take header height into
388         account
389         (gtk_tree_view_tree_to_widget_coords): ditto
390         (gtk_tree_view_get_dest_row_at_pos): we were passing coords
391         relative to the tree with _get_path_at_pos, while that function
392         wants coords relative to the widget
393
394 2002-02-06  Havoc Pennington  <hp@redhat.com>
395
396         * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
397         (gtk_text_view_get_window): add warning about how you
398         can't get the private window. #70683, and avoid default: in the
399         switch so we get "enum value unhandled" warnings
400
401 2002-02-06  Havoc Pennington  <hp@redhat.com>
402
403         * gtk/gtktextchild.c: Add warnings if you try to use a child
404         anchor that isn't inside a buffer. Really kind of lame; 
405         we should separate the anchor from the buffer. But not worth 
406         fixing for now. #70601
407
408 Wed Feb  6 18:25:24 2002  Kristian Rietveld  <kris@gtk.org>
409
410         * gtk/gtktreemodelsort.c: rip out all the debugging ifdefs, as
411         modelsort seems to be stable (and nobody complained :)
412
413 Tue Feb  5 19:13:42 2002  Owen Taylor  <otaylor@redhat.com>
414
415         * gdk/x11/gdkgeometry-x11.c (gdk_window_queue): Keep
416         the length of the anti-expose queue finite, by if
417         it gets too long, first doing a XSync() and checking
418         the event queue, and if that doesn't work, simply
419         discarding all anti-expose items in the queue.
420
421         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix ordering
422         on ConfigureNotify (#56349, Thomas Leonard)
423
424 2002-02-05  Havoc Pennington  <hp@redhat.com>
425
426         * gtk/gtkimage.c (gtk_image_expose): offset area being gotten from
427         pixmap by the align/padding offsets, so we don't get warnings
428         in gdk_pixbuf_get_from_drawable (and so it works, of course)
429
430 2002-02-05  Matthias Clasen  <matthiasc@poet.de>
431
432         * gtk/gtkrc.c (gtk_rc_parse_file): Remove a (now) misleading comment.
433
434 2002-02-05  Federico Mena Quintero  <federico@ximian.com>
435
436         * gdk/gdkwindow.h: Do not #include <gdk/gdkwindow.h>.
437
438 Tue Feb  5 22:54:16 2002  Kristian Rietveld  <kris@gtk.org>
439
440         * gtk/gtkliststore.c (gtk_list_store_insert_after): let's set the
441         path, which we're going to pass with the emission of row_inserted, to
442         the iter we inserted and not its sibling.
443
444 2002-02-04 Padraig O'Briain <padraig.obriain@sun.com>
445
446         * gtk/gtkmenu.c (gtk_menu_popup):
447         Fix leak of GdkEvent (#70519)
448
449 Mon Feb  4 10:40:28 2002  Owen Taylor  <otaylor@redhat.com>
450
451         * gtk/gtkstyle.c (gtk_default_draw_resize_grip):
452         Fix from Matthias Clasen to clear background appropriately
453         for theme by calling gtk_style_apply_default_background().
454         (#70449)
455
456 Mon Feb  4 10:06:49 2002  Owen Taylor  <otaylor@redhat.com>
457
458         * gdk/x11/gdkevents-x11.c: gtk-double-click-time,
459         not gtk-double-click-timeout. (#70501)
460
461 2002-02-04  Havoc Pennington  <hp@pobox.com>
462
463         * gtk/gtksignal.c (gtk_signal_connect_while_alive): 
464         (gtk_signal_connect_object_while_alive): rename 
465         "signal" arg to "name" to avoid compiler warnings
466         about shadowing signal(). #70453
467
468 2002-02-03  Anders Carlsson  <expander-master@gtk.org>
469
470         * gtk/gtkstyle.c (gtk_default_draw_expander): Add 
471         flipping support to the expanders.
472
473 Sat Feb  2 21:54:01 2002  Owen Taylor  <otaylor@redhat.com>
474
475         RC file lookup improvements (#68234, suggestions
476         from Matthias Clasen.)
477
478         * gtk/gtkrc.c (gtk_rc_parse_file): Look for the 
479         locale suffix variants (gtkrc.en_US, gtkrc.en) for
480         all RC files we parse, not just the default RC
481         files.
482
483         * gtk/gtkrc.c (gtk_rc_parse_default_files): Remove
484         support for charset specific RC files.
485
486 Sat Feb  2 20:16:04 2002  Owen Taylor  <otaylor@redhat.com>
487
488         * gtk/gtkmenushell.c (_gtk_menu_shell_select_first): 
489         Non-exported _gtk_menu_select_first() function that
490         selects the first item of the menu in a standard
491         way. (Skipping tearoffs.)
492
493         * gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
494         gtkmenuitem.c: Use _gtk_menu_shell_select_first().
495
496         * gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
497         if we are starting the timeout from a keypress so
498         we can set menushell->ignore_enter properly.
499
500         * gtk/gtknotebook.c (focus_child_in): Return something
501         meaningful if there are no children.
502
503         * gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
504         problem.
505
506 Sat Feb  2 19:15:42 2002  Owen Taylor  <otaylor@redhat.com>
507
508         * gtk/gtkmenu.c (gtk_menu_popup): Fix some bugs in
509         the determination of xgrab_shell.
510
511 Sat Feb  2 17:43:00 2002  Owen Taylor  <otaylor@redhat.com>
512
513         * gtk/gtkentry.c (gtk_entry_grab_focus): Add a GtkSetting
514         (gtk-entry-select-on-focus) controlling whether the
515         contents of an entry are selected on focus in.
516
517         * gtk/gtkmenu.c (gtk_menu_key_press): Add a GtkSetting
518         (gtk-can-change-accels) controlling whether accelerators can be
519         changed on the fly or not. (#51902)
520
521         * gtk/gtkmenu.c (gtk_menu_key_press): Allow unmodified
522         accelerators, now that accelerator changing can be turned
523         off for those who won't expect it. (#61285)
524
525         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow 
526         Backspace/Delete/KP_Delete as valid accelerators.
527
528         * gtk/gtkmenu.c (gtk_menu_key_press): Allow setting of
529         Delete/Backspace as accelerators by making them toggle
530         the menu item between empty and the pressed key.
531         (#58605)
532
533         * tests/testgtkrc: Remove the objectionably short cursor blink
534         time setting.
535
536 Sat Feb  2 16:43:31 2002  Owen Taylor  <otaylor@redhat.com>
537
538         * gtk/gtkmenu.c (gtk_menu_popup): To get around the fact
539         that we may have a owner_events = FALSE grab in effect
540         when we pop up a window, make a temporary grab on a
541         different window, then grab on the real window. Fixes
542         a problem where if a context menu popped up under the 
543         cursor, the first item would be stuck unselected.
544         (#59812, reported by Arnaud Charlet.)
545
546 2002-02-02  Peter Williams  <peterw@ximian.com>
547
548         * gtk/Makefile.am (install-data-local): Install gtkrc.default
549         from $(srcdir) for when $(builddir) is different.
550
551 Sat Feb  2 19:00:39 2002  Kristian Rietveld  <kris@gtk.org>
552
553         * gtk/Makefile.am: remove TESTGTK_RCFILE define
554
555 Sat Feb  2 11:37:21 2002  Owen Taylor  <otaylor@redhat.com>
556
557         * gtk/gtkmenu.c (gtk_menu_popup): Remove the 
558         "select first item if popped up from keypress" hack --
559         was causing more problems than it was worth 
560         (#53191, #68483)
561
562         * gtk/gtktextview.c (popup_targets_received): 
563          gtk/gtkentry.c (popup_targets_received): If activated
564         from keyboard, select first item of popup menu.
565
566 Sat Feb  2 18:07:51 2002  Kristian Rietveld  <kris@gtk.org>
567
568         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
569         of vadjustment correct, so the vscrollbars of lists smaller than
570         1 page are somewhat saner (#66905)
571
572         * gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
573         increment the stamp, liststore is a model with persisting iters
574
575 Fri Feb  1 23:54:00 2002  Owen Taylor  <otaylor@redhat.com>
576
577         * gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support 
578         engine "" {} to mean override to the default 
579         engine. (#70205)
580
581 Fri Feb  1 23:25:33 2002  Owen Taylor  <otaylor@redhat.com>
582
583         * gtk/gtktooltips.c (gtk_tooltips_init): Parse the
584         RC string here when the first object is created
585         rather than in the class_init to not break doc 
586         building. (#70341, Havoc Pennington.)
587
588         * gtk/gtkrc.c (parse_include_file): Use the directories
589         for the currently parsed files as the starting point
590         to look for include files. (#59975)
591
592 Fri Feb  1 20:21:56 2002  Manish Singh  <yosh@gimp.org>
593
594         * gtk/gtkinputdialog.c: use gtk_label_new_with_mnemonic for labels
595         that actually have mnemonics
596
597 Fri Feb  1 19:57:59 2002  Owen Taylor  <otaylor@redhat.com>
598
599         * configure.in: Fix use of ! in shell.
600
601         * gtk/gtktooltips.c (gtk_tooltips_class_init) gtkrc.default: 
602         Move the setting of default tooltips colors to gtktooltips.c
603         from gtkrc.default. (Use default priority so themes will
604         override.) (#58542)
605
606 Fri Feb  1 17:48:51 2002  Owen Taylor  <otaylor@redhat.com>
607
608         * gtk/gtkrc.c (gtk_rc_get_style): Fix ordering of
609         priorities so that priorities take precendence over
610         the ordering by type. (#70205)
611
612         * test/testgtkrc tests/testgtk.c (create_rc_file): Add 
613         some labels to test priorities in testgtkrc.
614
615 Fri Feb  1 00:37:49 2002  Kristian Rietveld  <kris@gtk.org>
616
617         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): use
618         y coordinate relative to the tree and not the treeview window
619         (fixes the PgDn/PgUp brokenness)
620
621 Fri Feb  1 23:40:31 2002  Kristian Rietveld  <kris@gtk.org>
622
623         * gtk/gtktreeview.c (gtk_tree_view_button_press): adjust
624         cell_area and background_area for possible treeview scroll
625         (fixes #70283, #70065)
626
627 Fri Feb  1 22:20:13 2002  Kristian Rietveld  <kris@gtk.org>
628
629         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): use
630         height - page_size not height - allocation->height (fixes #66269)
631
632 Fri Feb  1 15:22:23 2002  Owen Taylor  <otaylor@redhat.com>
633
634         * gtk/gtkimage.c (gtk_image_class_init): Fix typo
635         in property description. (Christian Rose.)
636
637 Fri Feb  1 14:50:36 2002  Owen Taylor  <otaylor@redhat.com>
638
639         * gtk/gtkrc.c (gtk_rc_parse_string): Handle reparsing
640         any strings if the theme changes. (#69465)
641
642         * tests/testgtk.c: Add a test for gtk_rc_parse_string().
643
644 Fri Feb  1 20:50:29 2002  Kristian Rietveld  <kris@gtk.org>
645
646         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): set tree to
647         NULL if tree_view->priv->tree is NULL (#70152, patch by John Harper).
648
649 Fri Feb  1 12:51:20 2002  Owen Taylor  <otaylor@redhat.com>
650
651         * gtk/gtknotebook.c (focus_child_in): Catch the
652         cur_page == NULL (no children) case. (#70287,
653         Paolo Maggi.)
654
655 Fri Feb  1 12:12:12 2002  Owen Taylor  <otaylor@redhat.com>
656
657         * gtk/gtkfilesel.c (attempt_file_completion): 
658         s/directory/folder/ in all labels and messages.
659
660 Fri Feb  1 08:57:38 2002  Owen Taylor  <otaylor@redhat.com>
661
662         * gtk/gtkmain.c (gtk_exit_func): Remove this useless
663         atexit handler. (existance pointed out by Stefan Kost)
664
665         * gtk/gtkmain.c (gtk_init_check): Warning fixes.
666
667 Thu Jan 31 18:46:10 2002  Jonathan Blandford  <jrb@redhat.com>
668
669         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): unref the
670         model after the last use, not before.
671
672 Thu Jan 31 14:50:16 2002  Owen Taylor  <otaylor@redhat.com>
673
674         * gtk/gtkrc.default gtk/Makefile.am: Install a Default
675         RC file that sets the tooltips color to yellow. (#58542)
676
677         * gtk/gtksettings.c (gtk_settings_class_init): make 
678         the default theme "Default", not NULL.
679
680 Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
681
682         * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
683         another missing static.
684
685         * gtk/gtkimmodule.c (n_loaded_contexts): And another.
686
687         * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
688         build gxid sources at all except in the vanishingly
689         rare case of --with-xinput=xfree.
690
691 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
692
693         * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
694
695         * gdk/x11/gdkimage-x11.c: (get_full_image): ditto.
696
697         * gdk/x11/gxid_lib.[ch]: (_gxid_claim_device), (_gxid_release_device):
698         renamed from gxid_(claim|release)_device.
699
700         * gdk/x11/gdkinput-gxi.c: (_gdk_input_enable_window),
701         (_gdk_input_disable_window): upd for gxid change.
702
703         * gtk/gtkimage.c: (animation_timeout): make static.
704
705         * gtk/gtkstyle.c: (draw_thin_shadow), (draw_spin_entry_shadow): make
706         static.
707
708         * gtk/gtktextutil.c: (bidi_menu_entries): make static.
709
710 Thu Jan 31 10:21:05 2002  Owen Taylor  <otaylor@redhat.com>
711
712         * gtk/gtkplug.c (gtk_plug_focus): Handle the case where
713         bin->child is NULL. (#70153, Padraig O'Briain)
714
715         * gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): 
716         Actually call gettext() on the labels; previously they
717         were marked with N_() but we never called gettext().
718
719 Wed Jan 30 20:15:49 2002  Jonathan Blandford  <jrb@redhat.com>
720
721         * gtk/gtktreestore.c (gtk_tree_store_set_valist): save last minute
722         changes before committing.
723
724         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
725
726 Wed Jan 30 18:46:14 2002  Jonathan Blandford  <jrb@redhat.com>
727
728         * gtk/gtkliststore.c (gtk_list_store_set_valist): only emit the
729         signal if an interesting column changes.
730
731         * gtk/gtktreestore.c: ditto.
732
733         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): change behavior so
734         that it no longer grabs 
735
736 2002-01-30  Manish Singh  <yosh@gimp.org>
737
738         * gtk/gtkhandlebox.c (gtk_handle_box_destroy): remove unused
739         variable.
740
741         * gtk/gtkwindow.c (gtk_window_get_icon): function returns a value,
742         so return NULL with g_return_val_if_fail instead of g_return_if_fail.
743
744 2002-01-30  Matthias Clasen  <matthiasc@poet.de>
745
746         * gtk/*.c: Remove excess g_return_if_fail calls from static
747         and virtual functions.  (#57615)
748         
749 2002-01-30  Anders Carlsson  <andersca@gnu.org>
750
751         * gtk/gtkstyle.c (gtk_default_render_icon): Allow a -1 icon size.
752
753 Wed Jan 30 20:29:01 2002  Tim Janik  <timj@gtk.org>
754
755         * gtk/gtkscale.c (gtk_scale_set_digits): fix revrted bug fix.
756         (use a define for max digits).
757
758 Wed Jan 30 13:55:59 2002  Owen Taylor  <otaylor@redhat.com>
759
760         * gtk/gtkwindow.c (gtk_window_show): Try to make
761         sure that we have some focused widget on map. (#50339)
762
763         * gtk/gtkdialog.c (gtk_dialog_map): Handling picking
764         a focus widget here differently so that if a
765         response button gets picked, it's the default one.
766
767         * tests/testgtk.c (make_message_dialog): Set the 
768         default response for the dialogs.
769
770 Tue Jan 29 22:52:36 2002  Owen Taylor  <otaylor@redhat.com>
771
772         * Released 1.3.13
773
774         * configure.in: Micro version 13, interface, binary
775         age 0. Require GLIB-1.3.13, Pango 0.24.
776
777         * docs/Makefile.am (EXTRA_DIST): Add widget_geometry.txt,
778         sizing-test.txt, tree-column-sizing.txt
779
780         * docs/Makefile.am (EXTRA_DIST): Don't distribute
781         Changes-1.2.txt, Changes-2.0.txt, README.linux-fb,
782         since they are no longer canonical.
783
784         * gtk/gtk.def: Convert spaces to tabs in front of
785         gtk_widget_set_accel_path in case it matters.
786
787         * NEWS: Updated for 1.3.13.
788
789 Tue Jan 29 22:31:07 2002  Owen Taylor  <otaylor@redhat.com>
790
791         * gtk/gtkwidget.[ch] gtkmenuitem.c gtkitemfactory.c: Export 
792         gtk_widget_set_accel_path().
793
794         * gtk/gtk.def: Add gtk_widget_set_accel_path.
795
796 Tue Jan 29 21:50:28 2002  Owen Taylor  <otaylor@redhat.com>
797
798         * gtk/gtkaccelmap.[ch] gtk/gtkbindings.[ch] gtk/gtkwidget.[ch]:
799         Consistently use GdkModifierType. (#66950, Mark Patton)
800
801         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
802         For consistency with gtk_button_new_from_stock(), fall back
803         to gtk_image_menu_item_new_with_mnemnonic(). (#65944,
804         Havoc Pennington)
805         
806         * gtk/gtkitemfactory.[ch] (gtk_item_factory_path_from_widget): 
807         Make G_CONST_RETURN. (#68527, Matt Wilson)
808
809 Tue Jan 29 20:56:13 2002  Owen Taylor  <otaylor@redhat.com>
810
811         * gtk/gtk[vh]scale.c (gtk_[vh]scale_new_with_range): Document
812         that the end points are included in the range. (#69783,
813         Jeffrey Baker)
814
815 Tue Jan 29 20:38:04 2002  Owen Taylor  <otaylor@redhat.com>
816
817         * gtk/gtkscale.[ch]: Revert the last changes to make the
818         number of digits only effect drawing, instead, don't
819         round unless we are in the 'draw_value' mode -- this
820         is the behavior of GTK+-1.2, and keeps the behavior that
821         if the user sees a displayed value, it is the correct value.
822
823 Tue Jan 29 19:51:05 2002  Owen Taylor  <otaylor@redhat.com>
824
825         * gtk/gtkenums.h: Deprecate GtkPreviewType,
826         GtkSignalRunType, GtkSideType, GtkSubmenuPlacement, GtkSubmenuDirection
827         (#68183, Matthias Clasen)
828
829         * gtk/gtkmenuitem.h: Remove _gtk_menu_item_set_placement() from
830         the public header to avoid having to use GtkSubmenuPlacement.
831
832         * gtk/{gtkmenuitem.c,gtkmenubar.c,gtkmenushell.c}: #define
833         GTK_MENU_INTERNALS to preserve access to GtkSubmenu*.
834
835         * gdk/gdki18n.h: Deprecate contents. (Darin Adler.)
836
837 Tue Jan 29 19:32:47 2002  Owen Taylor  <otaylor@redhat.com>
838
839         * gtk/gtktextview.c (gtk_text_view_get/set_property): 
840         Fix wrong usage of g_value_set/get_object for PROP_TABS
841         and memory leak in getter for PROP_TABS. (Jeff Franks)
842
843 Tue Jan 29 19:04:41 2002  Owen Taylor  <otaylor@redhat.com>
844
845         * gtk/gtkstyle.c (gtk_style_render_icon): Document that
846         a size of (GtkIconSize)-1 means don't scale.
847
848         * gtk/gtkstyle.c (gtk_default_render_icon): Obey the
849         -1 convention.
850
851         * gtk/gtkimage.c (gtk_image_expose): Pass in -1 to
852         gtk_style_render_icon() to make sure that we catch it
853         obviously if the style's render function tries to
854         scale.
855
856 Tue Jan 29 18:50:59 2002  Owen Taylor  <otaylor@redhat.com>
857
858         * gtk/gtkimage.c (gtk_image_expose): Optimize exposes of
859         partial insensitive images.
860
861 2002-01-24  Havoc Pennington  <hp@redhat.com>
862
863         * gtk/gtkimage.c (gtk_image_expose): create insensitive version of
864         the image regardless of storage type, #63305
865
866         * demos/gtk-demo/images.c: add toggle button to demonstrate that
867         GtkImage makes its contents insensitive
868
869 Tue Jan 29 17:40:02 2002  Owen Taylor  <otaylor@redhat.com>
870
871         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
872         Call _gdk_draw_pixbuf(), thus enabling using this function
873         for pixbufs with alpha. (#68801)
874
875         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Move
876         implementation of gdk_pixbuf_render_to_drawable()
877         to here.
878
879 Tue Jan 29 17:16:17 2002  Owen Taylor  <otaylor@redhat.com>
880
881         * gtk/gtklayout.c: Patch from Jacob Berkman to fix problem
882         when the height/width of a layout was set before the
883         adjustments were added. (#66294)
884
885         * gtk/gtktreeview.c: Warning cleanups.
886
887 Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
888
889         * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
890         fix to size of torn off window (#60271, Detlef Reichl)
891
892         * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
893         by Ross Burton)
894
895 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
896
897         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
898         cursor_path after usage
899         (gtk_tree_view_real_start_interactive_search): use new g_signal
900         and g_object calls
901         (gtk_tree_view_search_dialog_destroy): use g_object calls and free
902         selected_iter if set
903         (gtk_tree_view_search_position_func): rework so it will never ever
904         appear offscreen (#68492)
905         (gtk_tree_view_search_move): use new g_object calls
906         (gtk_tree_view_search_init): free selected_iter if set, use new
907         g_object calls
908         (gtk_tree_view_leave_notify): don't destroy interactive search
909         dialog
910
911 Tue Jan 29 23:07:03 2002  Kristian Rietveld  <kris@gtk.org>
912
913         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
914         send focus in event
915         (gtk_tree_view_search_dialog_destroy): send focus out event (#66466)
916
917 2002-01-29  Anders Carlsson  <andersca@gnu.org>
918
919         * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
920         size in the size entry.
921
922 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
923
924         * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
925         gtk_tree_view_set_cursor() instead of gtk_tree_selection_select_iter().
926
927         * gtk/gtkfontsel.c (gtk_font_selection_init): Add mnemonic to
928         preview field. (#52433, patch from Anders Carlsson)
929         
930         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Remove the 
931         dialog separator. (#69558, Alex Larsson, patch from Anders Carlsson)
932
933 Tue Jan 29 15:24:59 2002  Owen Taylor  <otaylor@redhat.com>
934
935         * gtk/gtkfontsel.[ch]: Switch over to GtkTreeView from
936         GtkCList. Remove the entries above the font/face lists 
937         since they were a little confusing. (Not sure about this 
938         change, so the code is still there the entries are
939         just hidden.) (#68890)
940
941         * gtk/gtkfilesel.c: Switch over to GtkTreeView from
942         GtkCList. Add mnemonics for fileops. Allow Control/Shift
943         Tab to focus out.
944
945         * gtk/gtkfilesel.c: Make fileop dialogs transient-for
946         the fileselector. (#69336, patch from Melvin Hadasht)
947
948         * gtk/gtkgamma.c (button_clicked_callback): Fix handling
949         of gamma dialog a bit. (#69336, Matthias Clasen.)
950
951 Tue Jan 29 14:56:28 2002  Owen Taylor  <otaylor@redhat.com>
952
953         * gtk/gtksocket.c (toplevel_focus_out_handler): Return boolean
954         (and FALSE from focus_in / focus_out handlers. (#69528,
955         Padraig O'Briain)
956
957 Tue Jan 29 14:47:54 2002  Owen Taylor  <otaylor@redhat.com>
958
959         * gtk/gtkmain.c (gtk_init_check): Remove the scary startup
960         warning. (#69480)
961
962 Tue Jan 29 14:24:49 2002  Owen Taylor  <otaylor@redhat.com>
963
964         * gtk/gtkwindow.c (gtk_window_class_init): Add <Control>Tab
965         bindings for "move-focus" so that Control-Tab to escape from
966         something that eats Tab just works if not otherwise overriden.
967
968         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range) 
969         * gtk/gtkvscale.c (gtk_vscale_new_with_range)
970         * gtk/gtkhscale.c (gtk_hscale_new_with_range): Use a page_size
971         of zero for the adjustment, since at times we think that the range
972         is lower to upper - page_size. A page size equally to the 
973         step_increment is, in any case, not meaningful.
974
975 2002-01-29  Tor Lillqvist  <tml@iki.fi>
976
977         * README.win32: Add comment about gtk-1-3-win32-production branch
978         currently being ahead in functionality and code cleanliness (in
979         gdk/win32). Just in case somebody looks at the code in gdk/win32
980         here and starts fixing it, when it is going to change soonish
981         anyway.
982
983 2002-01-29  Sven Neumann  <sven@gimp.org>
984
985         * gtk/gtkrc.c: don't install an empty icon_set if none of the image
986         files could be found in the pixmap_path (bug #69398).
987         
988 2002-01-29  Sven Neumann  <sven@gimp.org>
989
990         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
991         that showed up when using the color picker.
992
993 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
994
995         * gtk/gtkscale.[hc]: fix default value for ::digits property,
996         leave as 1 as per havoc's request.
997         don't apply the draw_digits value to range->round_digits,
998         so we don't perform gross quantization by default.
999
1000 2002-01-25  Havoc Pennington  <hp@redhat.com>
1001
1002         * gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion
1003         failure by creating the line data, but not validating it at this
1004         stage. Also, remove old code related to the "bogus newline" mess
1005         that removed all tags from the last char in the buffer if you
1006         tried to delete it.
1007         (_gtk_text_line_data_new): put this here and prepend underscore,
1008         remove from gtktextlayout.c
1009
1010 Mon Jan 28 19:57:39 2002  Owen Taylor  <otaylor@redhat.com>
1011
1012         * modules/input/imhangul.c modules/input/imhangul-defs.h
1013         po/POTFILES.in. Add port of Emacs korean-hangul input
1014         method from Yusuke Tabata (#67665)
1015
1016 Mon Jan 28 18:25:10 2002  Owen Taylor  <otaylor@redhat.com>
1017
1018         * gtk/gtkentry.c (gtk_entry_draw_frame): Paint shadow
1019         before focus to give theme engines a bit morea
1020         flexibility. (#69857)
1021
1022 Mon Jan 28 16:23:20 2002  Jonathan Blandford  <jrb@redhat.com>
1023
1024         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
1025         g_assert.
1026
1027 2002-01-28  Jon Trowbridge  <trow@gnu.org>
1028
1029         * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
1030         GtkTreeView's model, set prelight_node, prelight_tree,
1031         button_pressed_node and button_pressed_tree to NULL. (#69603)
1032
1033 2002-01-28 Bill Haneman <bill.haneman@sun.com>
1034
1035         * gtk/gtkstyle.c:
1036         Make sure that the default expanders are drawn with
1037         an outline thickness appropriate to the size of the
1038         expanders (RINT expander_size/7).
1039         Added static gtk_style_draw_polygon_with_gc(), to
1040         reduce code duplication.
1041
1042         * gtk/gtktreeview.c: (gtk_tree_view_bin_expose):
1043         Use focus_line_thickness when drawing focus lines.
1044
1045         * gtk/gtktreeviewcolumn.c:(gtk_tree_view_column_cell_get_size):
1046         Adjust requested width to include focus line thickness.
1047         (gtk_tree_view_column_cell_render_or_focus):
1048         Calculate a focus line rectangle which gets larger as the focus
1049         line thickness increases, to avoid overwriting cell content.
1050         Render left-aligned content at x+focus_line_width.
1051         (gtk_tree_view_column_cell_draw_focus):
1052         Don't draw a focus line around an editable text cell, since the
1053         text caret already indicates keyboard focus.
1054         Pass a GtkStateType appropriate to the focussed cell's state
1055         to gtk_paint_focus.
1056
1057 Mon Jan 28 14:44:40 2002  Jonathan Blandford  <jrb@redhat.com>
1058
1059         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
1060         activate/edit the row if shift is not pressed, #69248
1061
1062 2002-01-28  Anders Carlsson  <andersca@gnu.org>
1063
1064         * gtk/gtkcurve.c (gtk_curve_set_vector): Fix build.
1065
1066 2002-01-28  Matthias Clasen  <matthiasc@poet.de>
1067
1068         * gtk/{gtkalignment.c,gtkaspectframe.c,gtkbutton.c,
1069         gtkcellrenderer.c,gtkcellrendererpixbuf.c,gtkcombo.c,
1070         gtkcontainer.c,gtkcurve.c,gtkframe.c,gtklabel.c,
1071         gtkmessagedialog.c,gtknotebook.c,gtkspinbutton.c,gtktable.c,
1072         gtktext.c,gtktextview.c,gtktreeview.c,gtktreeviewcolumn.c,
1073         gtkviewport.c,gtkwidget.c}: General property notification 
1074         cleanup. (#69066)
1075
1076 2002-01-28  Anders Carlsson  <andersca@gnu.org>
1077
1078         * gtk/gtkaccelgroup.c (gtk_accel_groups_activate): & with the
1079         default mod mask so accels work when numlock is on.
1080
1081 Sun Jan 27 23:23:23 2002  Kristian Rietveld  <kris@gtk.org>
1082
1083         * gtk/gtkrbtree.[ch]: add _gtk_rbtree_mark_invalid (my previous
1084         commit already needed this ...)
1085
1086 Sun Jan 27 22:13:02 2002  Kristian Rietveld  <kris@gtk.org>
1087
1088         Fix for bug #69586
1089
1090         * gtk/gtktreeprivate.h: get rid of tab_offset, introduce
1091         expander_size
1092
1093         * gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
1094         expander_size caching (from style), fix CELL_HEIGHT macro,
1095         use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
1096         row height calculation, added style_set callback
1097
1098 2002-01-27  Anders Carlsson  <andersca@gnu.org>
1099
1100         * gtk/gtklabel.c (gtk_label_create_window): Set the cursor to
1101         GDK_XTERM.
1102
1103         * gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.
1104
1105         * gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.
1106
1107         * gtk/gtktextview.c (set_invisible_cursor): New function.
1108         (gtk_text_view_obscure_mouse_cursor): Likewise.
1109         (gtk_text_view_key_press_event): Call obscure_cursor if text 
1110         has been inserted.
1111         (gtk_text_view_motion_event): Restore the mouse cursor.
1112
1113         * gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
1114         (set_invisible_cursor): New function.
1115         (gtk_entry_obscure_mouse_cursor): Likewise.
1116         (gtk_entry_key_press): call obscure_cursor if text has been inserted.
1117         (gtk_entry_motion_notify): Restore the mouse cursor.
1118
1119 2002-01-27  Sven Neumann  <sven@gimp.org>
1120
1121         * gtk/gtkstyle.c (sanitize_size): removed unused return value.
1122
1123 Sat Jan 26 19:27:23 2002  Owen Taylor  <otaylor@redhat.com>
1124
1125         * gtk/gtksocket.c (gtk_socket_grab_notify): Don't
1126         send MODALITY_ON/OFF if socket->same_app (More fixes for #69735)
1127
1128 Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>
1129
1130         * gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
1131         in the grab_widget == NULL case. (Bug reported by 
1132         Padraig O'Briain, #69735)
1133
1134         * gtk/gtkplug.c (handle_modality_on): Realize the modality
1135         window so gtk_widget_event() doesn't complain :-((((.
1136
1137 2002-01-25  Federico Mena Quintero  <federico@ximian.com>
1138
1139         Merge from gdk-pixbuf stable.
1140
1141         * gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
1142         conversion --- swap the individual 16 bit values instead of taking
1143         everying as a 32 bit value.
1144         (rgb565lsb): Likewise.
1145         (rgb555lsb): Likewise.
1146         (rgb555msb): Likewise.
1147
1148 2002-01-25  Alex Larsson  <alexl@redhat.com>
1149
1150         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_drawable_impl_fb_class_init):
1151         Implement copy_to_image instead of get_image
1152         
1153         * gdk/linux-fb/gdkimage-fb.c:
1154         Implement _gdk_image_new_for_depth, _gdk_windowing_get_bits_for_depth and
1155         _gdk_fb_copy_to_image.
1156         Based in part on patch from Mathieu Lacage <mathieu_lacage@realmagic.fr>
1157
1158         * gdk/linux-fb/gdkmain-fb.c:
1159         Make ENABLE_FB_MANAGER region larger.
1160
1161         * gdk/linux-fb/gdkprivate-fb.h:
1162         Change _gdk_fb_get_image to _gdk_fb_copy_to_image.
1163
1164 2002-01-25  Sven Neumann  <sven@gimp.org>
1165
1166         * gtk/gtkwindow.c (gtk_window_get_size): changed the comment so
1167         that gtk-doc doesn't get confused.
1168
1169 Fri Jan 25 14:03:36 2002  Tim Janik  <timj@gtk.org>
1170
1171         * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
1172         that the passed in arrow is always _UP or _DOWN, this catches
1173         false invocations which lead to drawing artefacts.
1174         (start_spinning): likewise, i.e. sanity check the passed in arrow.
1175         (gtk_spin_button_button_release): fix arrow redrawing.
1176         (gtk_spin_button_button_press): must set click_child for
1177         button3 even if we don't take spinning action right away.
1178
1179         * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
1180         valid values for click_child.
1181
1182 Thu Jan 24 23:03:24 2002  Kristian Rietveld  <kris@gtk.org>
1183
1184         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
1185         return current FALSE if x is smaller than the current visible area,
1186         not than the requested area, don't correct y coordinate,
1187         TREE_WINDOW_Y_TO_RBTREE_Y will do that. Fixes #67477.
1188
1189 Thu Jan 24 15:41:08 2002  Jonathan Blandford  <jrb@redhat.com>
1190
1191         * gtk/gtktreeview.c
1192          (gtk_tree_view_motion_draw_column_motion_arrow): fix column
1193          reordering fully.
1194          (gtk_tree_view_size_allocate): fix evil bug.
1195
1196 Thu Jan 24 11:53:19 2002  Owen Taylor  <otaylor@redhat.com>
1197
1198         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't clear
1199         the model until we clean up all the other objects
1200         that might refer to the object.
1201
1202 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
1203
1204         * gtk/gtkaccessible.h: include gtk/gtkwidget.h
1205
1206 Wed Jan 23 20:28:59 2002  Owen Taylor  <otaylor@redhat.com>
1207
1208         * gtk/gtknotebook.c (gtk_notebook_draw_arrow): 
1209         Use insensitive state for insensitive arrows, not
1210         just an "etched state". (#67172, Adrian Custer)
1211
1212 2002-01-23  Manish Singh  <yosh@gimp.org>
1213
1214         * gtk/gtkentry.c (gtk_entry_set_text): use a variable that's actually
1215         been declared.
1216
1217 2002-01-23  Damon Chaplin  <damon@ximian.com>
1218
1219         * configure.in (gtk_doc_min_version): set minimum gtk-doc version to
1220         0.9, since we need to use the new --type-init-func argument for
1221         gtkdoc-scangobj.
1222
1223 2002-01-23  Matthias Clasen  <matthiasc@poet.de>
1224
1225         * gtk/gtkentry.c, gtk/gtkwidget.c: Remove excessive
1226         g_return_if_fail() calls. (#57615)
1227
1228         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries): Make
1229         it work for paths with underline accelerators. (#69247)
1230
1231 Wed Jan 23 15:12:16 2002  Owen Taylor  <otaylor@redhat.com>
1232
1233         * gtk/gtkspinbutton.c (gtk_spin_button_state_changed): 
1234         Stop spinning if widget becomes insensitive. (#56248)
1235
1236 Wed Jan 23 14:44:12 2002  Owen Taylor  <otaylor@redhat.com>
1237
1238         * gtk/gtkspinbutton.c (EPSILON): Decrease value since
1239         we now use doubles.
1240
1241 Tue Jan 22 16:58:37 2002  Jonathan Blandford  <jrb@redhat.com>
1242
1243         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Fix sizing bug
1244         I introduced accidentally, #69358
1245
1246 2002-01-22 Padraig O'Briain <padraig.obriain@sun.com>
1247
1248         * gtk/gtktreestore.c (gtk_tree_store_iter_children):
1249         Update last change to prevent core dump
1250
1251 Mon Jan 21 01:21:54 2002  Kristian Rietveld  <kris@gtk.org>
1252
1253         * gtk/gtktreestore.c: add some more stamp checks (pointed out
1254         by Anders Carlsson)
1255
1256         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
1257         assume _row_changed will insert sort (because _row_changed doesn't
1258         need to follow this signal), so apply insert sort here
1259         (gtk_tree_model_sort_level_find_insert): header doesn't need to be
1260         set here, so use a return instead of g_return_val_if_fail.
1261
1262 Mon Jan 21 18:28:17 2002  Jonathan Blandford  <jrb@redhat.com>
1263
1264         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update
1265         top_row.  Remove extraneous print statements.
1266
1267 2002-01-21  Matthias Clasen  <matthiasc@poet.de>
1268
1269         * gtk/gtkitemfactory.c (gtk_item_factory_popup, 
1270         gtk_item_factory_popup_with_data): Document allowed values
1271         for ifactory.
1272
1273         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make 
1274         it work for paths with underline accelerators.
1275
1276 Fri Jan 18 16:31:21 2002  Jonathan Blandford  <jrb@redhat.com>
1277
1278         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
1279         window.
1280
1281 Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
1282
1283         * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
1284         case where there is no default widget and the entry
1285         is the focus widget, since this also causes infinite
1286         recursion. (#69158)
1287
1288 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
1289
1290         * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
1291         rather than lazilygdk_get_program_class(), since we don't want
1292         -name to override it. (#69123, Ryan Lovett)
1293
1294 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
1295
1296         * gdk/gdk.c: Fix wrong types for command line arguments 
1297         (#69124, Ryan Lovett)
1298
1299         * gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
1300         parsing '--arg VALUE'.
1301
1302         * gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
1303
1304 2002-01-21  Havoc Pennington  <hp@pobox.com>
1305
1306         * gdk/gdkwindow.c (gdk_window_add_filter): mention that window 
1307         arg can be NULL
1308
1309 Sat Jan 19 20:49:41 2002  Kristian Rietveld  <kris@gtk.org>
1310
1311         * demos/gtk-demo/editable_cells.c: fix a load of open line ends
1312         (cell_edited): modified patch from German Poo Caaman~o
1313         to fix up old_text declaration and free the memory
1314         (do_editable_cells): unref the model after creating the treeview
1315
1316         * demos/gtk-demo/list_store.c: fix a load of open line ends,
1317         (add_columns): set the sort column id, so we can sort
1318
1319         * demos/gtk-demo/tree_store.c: fix a load of open line ends,
1320         (do_tree_store): unref the model after creating the treeview
1321
1322 2002-01-19  Havoc Pennington  <hp@pobox.com>
1323
1324         * gtk/gtkwindow.c: link to new X11 section in a lot of places when
1325         mentioning the window manager.
1326
1327         * gtk/gtkwidget.c (gtk_widget_hide_on_delete): don't mention
1328         window manager since we're portable.
1329
1330 Sat Jan 19 08:47:41 2002  Jeff Garzik  <jgarzik@mandrakesoft.com>
1331
1332         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
1333         Wrap case values in GPOINTER_TO_UINT().  Fixes build with gcc 3.x.
1334
1335         * gtk/gtkmain.c:  Include sys/types.h if G_OS_UNIX.
1336         Fixes build with gcc 3.x and -ansi.
1337
1338 Fri Jan 18 23:01:37 2002  Owen Taylor  <otaylor@redhat.com>
1339
1340         * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
1341         an engine declaration occurs in a reopened style, and
1342         g_free() of objects when errors occur.
1343
1344 2002-01-18  Matthias Clasen  <matthiasc@poet.de>
1345
1346         * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
1347         Clarify documentation. (#69026)
1348
1349         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
1350         missing initialization of adjustment. (#69025)
1351
1352 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
1353
1354         Simplify Makefiles. 
1355         <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
1356         * gdk/Makefile.am: Remove use of automake conditionals to pick
1357         library to build.
1358         * gtk/Makefile.am: Likewise.
1359         
1360         * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
1361         * gtk/Makefile.am (LDFLAGS): Likewise.
1362
1363 Thu Jan 17 20:13:14 2002  Owen Taylor  <otaylor@redhat.com>
1364
1365         * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
1366         missing allocation.x/y offsets. (#68962, Jacob
1367         Berkman)
1368
1369         * gtk/gtknotebook.c (gtk_notebook_size_allocate):
1370         Queue a redraw on the entire widget if we hide
1371         the last page or show the first. (Also #68962)
1372         
1373 2002-01-17  Havoc Pennington  <hp@redhat.com>
1374
1375         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
1376         GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
1377         starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
1378         as in the keynav spec, though it makes the interpretation of
1379         GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
1380         of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
1381         any sense anyhow.
1382
1383 Thu Jan 17 16:34:55 2002  Jonathan Blandford  <jrb@redhat.com>
1384
1385         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
1386         some reason, I was activating a row while just selecting it.
1387         Reported by andersca.
1388         (gtk_tree_view_size_request): add a
1389         validate_rows_handler to give us a rough width of the widget.
1390
1391         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
1392         Queue a resize here just in case.  It's needed in over half the
1393         cases, and I don't want to do a diff to figure out exactly when
1394         it's needed.
1395
1396 2002-01-17  Matthias Clasen  <matthiasc@poet.de>
1397
1398         * gtk/gtkinputdialog.c,
1399         gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
1400         Mark children as composite. (#66360)
1401
1402         * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
1403         composite children some more. (#66360)
1404
1405 2002-01-17  Havoc Pennington  <hp@redhat.com>
1406
1407         * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
1408         function (which I then decided not to use but I think it's needed
1409         to fix #68963
1410
1411         * gtk/gtktextview.c: add page_horizontally action signal and
1412         implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig, 
1413         hackily modified to avoid adding GTK_MOVEMENT_ API. Part of 
1414         #53934
1415
1416         * gtk/gtkmarshalers.list: add NONE:INT,BOOL
1417
1418 Thu Jan 17 17:02:38 2002  Owen Taylor  <otaylor@redhat.com>
1419
1420         * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
1421         gtk_selection_remove_all() here, not in destroy/
1422         finalize. (#66636, Sergey Vlasov)
1423
1424         * gtk/gtkselection.c (gtk_selection_request): Fix
1425         reentrancy problem with multiple conversions.
1426
1427         * gtk/gtkselection.c (gtk_selection_remove_all): 
1428         Don't remove incrs, we don't need the widget for
1429         maintain the incr.
1430
1431         * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
1432         the widget field from here, we don't need it.
1433
1434 Thu Jan 17 13:08:34 2002  Owen Taylor  <otaylor@redhat.com>
1435
1436         * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
1437         here, and save/restore the X error handler to allow
1438         people using GTK+ to set the X error handler to something
1439         custom without disturbing the operation of GDK.
1440
1441         * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push) 
1442         * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
1443         dummy implementations.
1444
1445         * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c 
1446         gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
1447         for all error trapping.
1448
1449         * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
1450
1451         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
1452         problem where we would add the results anyways,
1453         and then add it again if no error occurred, and problem
1454         where we could leave _gdk_error_warnings() unset.
1455
1456 Wed Jan 16 20:28:38 2002  Owen Taylor  <otaylor@redhat.com>
1457
1458         * gtk/gtkfilesel.c: Fix "deleting" filename by adding
1459         another boolean parameter to file_selection_populate() -
1460         whether to clear the entry. Also, never fill in the
1461         entry when the user clicks on something in the 
1462         directory list. (#6791, Reported by Jos Dehaes and many,
1463         many, many others.)
1464
1465 2002-01-16  Havoc Pennington  <hp@redhat.com>
1466
1467         * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
1468         cursor_y_pos with clamped delta rather than theoretical delta
1469         (#68788). Also, if we can't page up/down further then jump 
1470         to top/bottom of the document.
1471
1472 Wed Jan 16 19:33:41 2002  Owen Taylor  <otaylor@redhat.com>
1473
1474         * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
1475         the dialog on map. (#52877, inspired by request from
1476         Murray Cumming)
1477
1478 Wed Jan 16 19:23:04 2002  Owen Taylor  <otaylor@redhat.com>
1479
1480         * gtk/gtkbindings.c (gtk_binding_entry_activate): 
1481         Support "optional" bindings. If a binding signal
1482         has a boolean return value, and returns FALSE it
1483         is as if it didn't exist all.
1484
1485         * gtk/gtkbindings.c (binding_compose_params): Switch
1486         over to GValue.
1487
1488         * gtk/gtknotebook.[ch]: Make the select_page() and
1489         change_current_page() signals only take effect when
1490         the focus is on the tab area so that key presses
1491         in children pass up to the toplevel correctly.
1492
1493 Wed Jan 16 12:16:37 2002  Owen Taylor  <otaylor@redhat.com>
1494
1495         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix 
1496         calculation error in the (shouldn't happen) case where
1497         option_menu->height < child_requisition.height. (Patch
1498         from Jacob Berkman, #66969)
1499
1500 2002-01-15  Matthias Clasen  <matthiasc@poet.de>
1501
1502         * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
1503
1504         * gtk/gtkscale.h (gtk_scale_value_width): Remove useless 
1505         compatibility macro. (#67730) 
1506
1507 Wed Jan 16 10:54:38 2002  Owen Taylor  <otaylor@redhat.com>
1508
1509         * configure.in: Fix typo in --help output.
1510         (Arnaud Charlet).
1511
1512 Wed Jan 16 10:18:42 2002  Owen Taylor  <otaylor@redhat.com>
1513
1514         * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add 
1515         gtkstockpixbufs.h.
1516
1517         * configure.in: Make TIFF, JPEG, PNG loaders mandatory
1518         unless you configure with --without-libtiff, etc.
1519         (#54045, Brian Cameron)
1520
1521 2002-01-16  Padraig O'Briain <padraig.obriain@sun.com>
1522
1523         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
1524         Avoid unexpected warning message when navigating menu (#68517)
1525
1526 2002-01-15  Jody Goldberg <jody@gnome.org>
1527
1528         * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
1529         GtkLayout may have been scrolled _before_ it was realized.
1530
1531 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
1532
1533         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
1534         the timer on destroy, or when we are notified that we are
1535         shadowed by a modal dialog.
1536
1537         * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
1538         not needed any more.
1539
1540         * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
1541         weren't sent out for the default grab group.
1542
1543         * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
1544         were getting events because they were part of the previous grab.
1545
1546 Tue Jan 15 12:23:33 2002  Owen Taylor  <otaylor@redhat.com>
1547
1548         * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page): 
1549         focus the activated tab, not the page. (#53612)
1550
1551         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
1552         the last focus descendant of the page.
1553
1554         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
1555         was on the previous page, move it to the last focused widget /
1556         first element on the new page, if possible, or if not, to the 
1557         notebook itself. (#68224, reported by Jonathan Blandford)
1558
1559         * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
1560         tabs aren't visible. (#65462, Damon Chaplin, fixed based 
1561         on patch from Anders Carlsson)
1562
1563 2002-01-15            Vitaly Tishkov       <tvv@sparc.spb.su>
1564
1565         * gtk/gtkstyle.c
1566         a misprint in documentation for gtk_style_render_icon () is fixed
1567
1568 Mon Jan 14 23:21:47 2002  Tim Janik  <timj@gtk.org>
1569
1570         * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
1571         mapping child, so we don't loose events.
1572
1573 2002-01-15  Sven Neumann  <sven@gimp.org>
1574
1575         * gtk/gtkaccellabel.h
1576         * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
1577         names used in headers and code.
1578
1579 2002-01-14  jacob berkman  <jacob@ximian.com>
1580
1581         * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
1582
1583 Tue Jan 15 01:13:51 2002  Kristian Rietveld  <kris@gtk.org>
1584
1585         * gtk/gtktreemodelsort.c: fix a load of open line ends,
1586         (gtk_tree_model_sort_set_model): only free root level if it's
1587         !NULL
1588
1589 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
1590
1591         * gtk/gtkoldeditable.c, gtk/gtkrc.c, 
1592         gtk/gtkstyle.c: Documentation additions.
1593
1594         * gtk/gtkmenu.c (gtk_menu_set_accel_path),
1595         gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path), 
1596         gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
1597
1598         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
1599
1600         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
1601
1602 Mon Jan 14 17:14:13 2002  Owen Taylor  <otaylor@redhat.com>
1603
1604         * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
1605         mangle sequences of consecutive \n or \r.
1606
1607 Mon Jan 14 17:42:28 2002  Jonathan Blandford  <jrb@redhat.com>
1608
1609         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
1610         happen.
1611
1612         * gtk/gtktreeview.c (install_presize_handler): only install the
1613         handler if we're realized, #68056
1614
1615 Mon Jan 14 16:35:58 2002  Owen Taylor  <otaylor@redhat.com>
1616
1617         * gtk/gtkwindow.c (gtk_window_move_resize): Unset 
1618         initial_pos_set after the first configure request.
1619
1620 2002-01-13  Jody Goldberg <jody@gnome.org>
1621
1622         * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
1623           and will use a mem_chunk to do it.  Avoid an unnecessary copy, a
1624           leak, and confusion.
1625
1626 Sun Jan 13 23:23:22 2002  Owen Taylor  <otaylor@redhat.com>
1627
1628         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
1629         widget->requisition was being used instead of
1630         gtk_widget_get_child_requisition (), causing geometry widgets
1631         with usizes to misbehave.
1632
1633 2002-01-14  Sven Neumann  <sven@gimp.org>
1634
1635         * gtk/gtkrc.c: g_getenv() returns a const string.
1636
1637 2002-01-14  Hasbullah Bin Pit  <sebol@ikhlas.com>
1638
1639         * configure.in: Added ms at ALL_LINGUAS.
1640         * po/ms.po: Added Malay Translation.
1641
1642 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
1643
1644         * gtk/gtkitemfactory.c: Documentation.
1645
1646 2002-01-13  Sven Neumann  <sven@gimp.org>
1647
1648         * gdk/gdkwindow.c: documentation cleanups.
1649
1650 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
1651
1652         * gtk/gtktreemodelsort.c: various cleanups,
1653         (get_child_iter_from_elt): removed,
1654         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
1655         and especially faster,
1656         (gtk_tree_model_convert_iter_to_child_iter): use
1657         gtk_tree_model_sort_elt_get_path
1658
1659 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
1660
1661         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1662         revert Owen's change (using a strdupped string as object data), so
1663         the interactive search works again
1664
1665 2002-01-11  Havoc Pennington  <hp@pobox.com>
1666
1667         * gtk/gtklabel.c: put in more links to Pango markup format docs
1668         (gtk_label_set_justify): mention gtk_misc_set_alignment
1669
1670 2002-01-12  Tor Lillqvist  <tml@iki.fi>
1671
1672         Fixes contributed by Archaeopteryx Software: This is a first small
1673         part of their changes. Will commit more later.
1674         
1675         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
1676         call fails, don't use bogus values.
1677
1678          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
1679         memory leak: g_free() the AND and XOR bitmaps after use.
1680         (_gdk_cursor_destroy): If we are destroying the current Windows
1681         cursor, set the Windows cursor to none first.
1682
1683         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
1684         brush that was in the DC, like the win32-procution branch does. I
1685         guess this plugs a resource leak? With the HDC cache, the old
1686         brush might be something we created ourselves, and not a stock
1687         brush. And it doesn't do any harm to call DeleteObject on stock
1688         brushes.
1689
1690         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
1691         the window has a cursor which is the current Windows cursor,
1692         before destroying it set the current Windows cursor to none.
1693         (gdk_window_set_cursor): Also here, if destroying the current
1694         Windows cursor, set the current Windows cursor to none first.
1695         (gdk_window_get_pointer): Revamp logic.
1696         
1697 2002-01-10  jacob berkman  <jacob@ximian.com>
1698
1699         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
1700         through the list rather than infinitely loop
1701
1702 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
1703
1704         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
1705         reset_rc_styles_recurse(). (#68084)
1706
1707 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
1708         * gtk/gtkimage.c
1709         * gtk/gtkimcontext.c
1710         * gtk/gtktreemodel.c
1711         * gtk/gtktreemodelsort.c
1712         * gtk/gtkwindow.c
1713         fix docs        
1714
1715 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
1716
1717         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
1718         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
1719
1720 2002-01-10  Tor Lillqvist  <tml@iki.fi>
1721
1722         Apply the same fixes and improvements as to the
1723         gtk-1-3-win32-production branch: Bug fixes and cleanup of
1724         selection and DND functionality. Still doesn't work as well as the
1725         win32-production branch, though, but getting closer.
1726
1727         After this, need to add Archaeopteryx Software's OLE2 DND support.
1728
1729         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
1730         gdk_selection_send_notify, generate_selection_notify): Don't use
1731         SendMessage() to generate events for the same app, instead use
1732         gdk_event_put().
1733
1734         * gdk/win32/gdkprivate-win32.h
1735         * gdk/win32/gdkglobals-win32.c
1736         * gdk/win32/gdkmain-win32.c
1737         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
1738         initialisation and handling of gdk_selection_notify_msg,
1739         gdk_selection_request_msg and gdk_selection_clear_msg. 
1740
1741         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
1742         gdk_free_text_list, gdk_string_to_compound_text,
1743         gdk_free_compound_text): Implement trivially, witrh a text_list
1744         always having a single element, and a compound text always
1745         consisting of just a single (UTF-8!) string. Let's see how well
1746         this works.
1747
1748         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
1749         non-ASCII paste from the clipboard: Try getting the same formats
1750         from the Windows clipboard that gdk_property_change() puts there:
1751         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
1752
1753         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
1754         storing text on the clipboard, handle non-ASCII text
1755         correctly. The logic is as follows:
1756
1757         If we have only ASCII characters, use CF_TEXT.
1758
1759         Else, if we are on NT, use CF_UNICODETEXT.
1760
1761         Else (we are on Win9x), if all the characters are present in the
1762         code page of some installed locale, use CF_TEXT and also set
1763         CF_LOCALE to that locale.
1764
1765         Else (still on Win9x) store as RTF. We use a very simple RTF
1766         string, just the text, no fonts or other crap, with the non-ASCII
1767         characters as Unicode \uN keywords. Additionally, also store the
1768         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
1769         can also paste from the Clipboard what it has copied there. (Thus
1770         no need to implement any RTF parser.)
1771         
1772         (find_common_locale): New function, implements the search for a
1773         locale for case 3 above.
1774
1775         * gdk/win32/gdkglobals-win32.c: New global variables
1776         compound_text, text_uri_list, utf8_string, cf_rtf and
1777         cf_utf8_string.
1778
1779         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
1780         converts from a wchar_t string to UTF-8.
1781         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
1782         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
1783
1784         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
1785         _gdk_ucs2_to_utf8().
1786
1787         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
1788
1789         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
1790         gdk_drag_context_ref() was called unnecessarily in a couple of
1791         places, meaning drag contexts were never freed. The same memory
1792         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
1793
1794         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
1795         stored file list.
1796
1797         * gdk/win32/gdkselection-win32.c: Clarify the use of the
1798         sel_prop_table. Now it is used only for storing the GDK_SELECTION
1799         "properties".
1800
1801         The file names dropped with WM_DROPFILES -style DND is stored
1802         temporarily (between the drop and the target picking them up) in a
1803         separate place.
1804
1805         Have a separate hash table to map selection atoms to owner
1806         windows. This used to be quite mixed up.
1807
1808         (_gdk_dropfiles_store): New function, to store the dropped file
1809         list for the drop target to possibly fetch, and clear it
1810         afterwards, from gdk_drop_reply().
1811
1812         (gdk_selection_owner_get): Much simplified now.
1813
1814 2002-01-09  jacob berkman  <jacob@ximian.com>
1815
1816         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
1817         our bin window also (fixes #58957)
1818
1819 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
1820
1821         * gtk/gtktreeselection.c
1822         (_gtk_tree_selection_internal_select_node): Now we test we can
1823         unselect nodes before selecting new ones.
1824         (gtk_tree_selection_real_select_node): be careful comparing booleans.
1825
1826 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
1827
1828         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
1829         gtk_tree_model_rows_reordered and not an iter with user_data
1830         set to NULL (which is an invalid liststore iter, so
1831         iter_n_children failed, etc)
1832
1833 2002-01-09  Sven Neumann  <sven@gimp.org>
1834
1835         * tests/prop-editor.c: declared internal functions static.
1836         
1837 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
1838
1839         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
1840         Fix problem with menus without accel groups, such as the
1841         menus for option menus.
1842
1843         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
1844         drawing of handle on whether both children are visible,
1845         not the drawing of the other child!. (#68325, Diego Gonzalez)
1846
1847 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
1848
1849         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
1850         RENDER before trying to use it... XRenderFindFormat() prints
1851         warnings if called when extension isn't present.
1852
1853 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
1854
1855         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
1856         path upon parent changes.
1857
1858 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
1859
1860         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
1861         fix to force vadjustments at size_alocate time from Xavier Ordoquy
1862         <mcarkan@users.sourceforge.net>.
1863
1864 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
1865
1866         * gtk/gtklayout.c (gtk_layout_get_property): 
1867         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
1868         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
1869         * gtk/gtkwidget.c (gtk_widget_get_property): 
1870         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
1871         * gtk/gtkrange.c (gtk_range_get_property):
1872         * gtk/gtkviewport.c (gtk_viewport_get_property):
1873         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
1874         possible NULL pointer.
1875
1876 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
1877
1878         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
1879         * gtk/gtktreednd.h : ditto.
1880         * gtk/gtktreemodel.h : ditto.
1881         * gtk/gtktreesortable.h : ditto.
1882         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
1883
1884 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
1885
1886         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
1887         than XIDs in the docs.
1888
1889         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
1890
1891 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
1892
1893         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
1894         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
1895
1896 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
1897
1898         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
1899         Handle TOGGLE/RADIOBUTTON as well. (#68201,
1900         Damon Chaplin.)
1901
1902         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
1903         bug, just introduced.
1904
1905 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
1906
1907         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
1908         translations, once and for all.
1909
1910         * gtk/gtktextbuffer.c (paste_from_buffer): Free
1911         the ClipboardRequest structure. (#66198, HideToshi
1912         Tajima)
1913
1914 2002-01-08  jacob berkman  <jacob@ximian.com>
1915
1916         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
1917         the child rather than the layout. see bug #68263
1918
1919 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
1920
1921         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
1922         the handle if we aren't showing both children.
1923         (#68135, Diego Gonzalez)
1924
1925 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
1926
1927         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
1928         leak of result of gtk_container_get_children().
1929
1930 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
1931
1932         * gtk/gtktoolbar.c: Fix leaks of results of
1933         gtk_container_get_children(). (#68199, Damon Chaplin)
1934
1935 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
1936
1937         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
1938         Fix problem where child->requisition was accessed
1939         directly instead of calling get_child_requisition()
1940         (#68199, Damon Chaplin)
1941
1942 2001-01-08  James Henstridge  <james@daa.com.au>
1943
1944         * gtk/gtkstyle.c: add trailing */ on doc comment.
1945
1946 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
1947
1948         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
1949         problem where were the offset into the image was passed
1950         into convert_to_format() wrong.
1951
1952         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
1953         gdk_x11_drawable_update_picture_clip () before using
1954         the picture; allow update_picture_clip() to take a NULL gc
1955         to mean no clipping.
1956
1957 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
1958
1959         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
1960
1961         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
1962
1963         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
1964
1965         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
1966
1967         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
1968         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
1969         gtk_widget_push_composite_child), gtk/gtkdialog.c 
1970         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
1971         from messing up the indentation of inline examples.     
1972
1973         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
1974         instead of getenv().
1975
1976         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
1977         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
1978         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
1979
1980         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
1981         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
1982         Document.
1983
1984 2002-01-07  Anders Carlsson  <andersca@gnu.org>
1985
1986         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
1987         unused pixels and rowstride variables.
1988         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
1989
1990 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
1991
1992         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
1993         the pointer by x/y_offset into the new window when we found
1994         the drag destination.
1995
1996         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
1997         for simulation when the entry already contains the required
1998         accel key and mod.
1999
2000 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
2001  
2002         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
2003         G_DISABLE_CAST_CHECKS.
2004
2005         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
2006         gtk_accel_group_query, gtk_accel_group_find,
2007         gtk_accel_groups_from_object): Document.
2008
2009         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
2010
2011 2002-01-04  Hans Breuer  <hans@breuer.org>
2012
2013         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
2014         need to cast image->mem away from void* to avoid 
2015         'error C2036: 'void *' : unknown size'. Doing pointer 
2016         arithmetics on void pointers is a GCCism afaik.
2017
2018         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
2019         _gdk_draw_pixbuf ()
2020
2021         * gdk/makefile.msc gdk/win32/makefile.msc 
2022         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
2023
2024         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
2025         and take care of image->visual possibly NULL.
2026
2027         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
2028         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
2029         Again take care of image->visual possibly NULL.
2030
2031         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
2032
2033         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
2034         instead of private field access
2035
2036         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
2037         colormap setting to the gdk-X behaviour
2038
2039 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
2040
2041         * gtk/gtkwidget.c: Documentation additions.
2042
2043 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
2044
2045         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
2046
2047         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
2048
2049 2002-01-04  Havoc Pennington  <hp@pobox.com>
2050
2051         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
2052         
2053 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
2054
2055         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
2056         don't infinite loop if the widget and window heirarchies
2057         don't correspond.
2058
2059         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
2060         in heirarchy in ::drag_motion, ::drag_drop callbacks
2061         by referencing child widget lists. (Patch from Tim)
2062
2063         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
2064         with widgets where window.x != widget->allocation.x
2065
2066 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
2067
2068         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
2069         a little bit. (More for consistency than because it
2070         makes much of a difference.)
2071
2072 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
2073
2074         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
2075         (_gdk_x11_have_render): Private function to tell if we have RENDER
2076         extension.
2077
2078         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
2079         None if we don't have RENDER extension.
2080
2081         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
2082         use Xft unless we have render extension.
2083
2084         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
2085         Handle missing render extension.
2086
2087         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
2088         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
2089         to the GdkDrawable vtable that extends get_image() to allow
2090         copying onto existing images.  Make the default implementation of
2091         get_image() use this so that backends don't have to implement
2092         both. Add private wrapper _gdk_drawable_copy_to_image().
2093
2094         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
2095         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
2096         copy_to_image() semantics, speed up by using ShmPixmaps and
2097         XCopyArea when possible, XFlush() after ungrabbing the server,
2098         generally redo the logic once again.
2099
2100         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
2101         _gdk_windowing_bits_per_depth(): Function to convert from depth to
2102         bits-per-pixel. (We assume only one bpp per depth - X requires
2103         this.)
2104
2105         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
2106         scratch image code into a generic _gdk_image_get_scratch() chunk
2107         of code that we can use other places we need scratch images.
2108
2109         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
2110         Add _gdk_image_new_for_depth() as the backend 
2111         to _gdk_image_new() to allowing creating images with
2112         a depth and no visual.
2113
2114         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
2115         parts of images not at 0,0 actually works.
2116
2117         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
2118         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
2119          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
2120           _gdk_draw_pixbuf() [ will be made public later ], to allow 
2121           backends to accelerate drawing pixbufs. 
2122          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
2123            to be the default implementation. 
2124          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
2125          - Optimize the default implementation by using 
2126            _gdk_image_copy_to_pixmap() and scratch shared images, and
2127            special casing the compositing.
2128
2129         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
2130         with alpha using the RENDER extension.
2131
2132         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
2133         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
2134
2135         * tests/testrgb.c: Add test for speed of alpha composition,
2136         reduce the number of iterations since alpha composition
2137         can be a bit slow.
2138
2139         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
2140         Private function to get a ShmPixmap for an image, if possible.
2141
2142 2002-01-04  Anders Carlsson  <andersca@gnu.org>
2143
2144         * tests/testtreesort.c: Add my cool list of integers.
2145
2146 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
2147
2148         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
2149         problem where retrieved atoms weren't properly returned.
2150
2151 2002-01-03  Anders Carlsson  <andersca@gnu.org>
2152
2153         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
2154         tab is pressed and the text view isn't editable, 
2155         move the focus instead.
2156
2157         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
2158         necessary.
2159
2160         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
2161
2162         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
2163
2164         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
2165         if it's NULL.
2166
2167         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
2168         _gtk_tree_view_queue_draw_node.
2169         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
2170
2171         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
2172         sort_column_id can be 0.
2173
2174         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
2175         Only redraw one the node being selected.
2176
2177         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
2178         
2179 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
2180
2181         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
2182         realized but visible && !mapped resize containers (which is
2183         possible with unset CHILD_VISIBLE now).
2184
2185 2002-01-02  jacob berkman  <jacob@ximian.com>
2186
2187         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
2188         libsomething_la_LDFLAGS, so fix the build again
2189
2190 2002-01-01  Havoc Pennington  <hp@pobox.com>
2191
2192         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
2193         exposes to no window children not in the buffer window.
2194         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
2195         - is this the right way to do it?
2196         (gtk_text_view_focus): add focus method, just chains up for now, 
2197         I'm not sure why the GtkContainer implementation doesn't work
2198
2199         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
2200         in the text line for the child anchor segment
2201
2202         * tests/testtext.c (do_add_focus_children): add another test
2203         example (to put focusable buttons into the widget)
2204
2205 2002-01-01  Havoc Pennington  <hp@pobox.com>
2206
2207         * docs/README.linux-fb: note that this file is obsolete
2208
2209         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
2210         files that they should not be edited and look in the reference 
2211         manual instead. Probably these files should just be replaced by 
2212         the note, and their main contents deleted.
2213
2214         * gtk/gtktextview.c: docs
2215
2216         * gtk/gtktextmark.c: docs
2217
2218         * gtk/gtktextchild.c: docs
2219
2220         * gtk/gtktextbuffer.c: docs stuff
2221
2222         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
2223         give people more leads in sorting out PRIMARY vs. CLIPBOARD
2224
2225 2002-01-01  Tor Lillqvist  <tml@iki.fi>
2226
2227         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
2228         ../gdk-pixbuf/gdk-pixbuf-csource.
2229
2230 2001-12-31  Tor Lillqvist  <tml@iki.fi>
2231
2232         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
2233         handling.
2234         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
2235
2236         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
2237         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
2238         one more place.
2239
2240         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
2241         -Wall.
2242
2243         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
2244
2245 2002-01-01  Havoc Pennington  <hp@pobox.com>
2246
2247         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
2248         fix
2249         
2250 2002-01-01  Havoc Pennington  <hp@pobox.com>
2251
2252         * gtk/gtktextview.c (changed_handler): Replace call to
2253         gtk_widget_size_request() that expected to actually compute the
2254         request with a direct use of widget_class->size_request, so we get
2255         our size request right; fixes remaining part of #63065 reported by
2256         Matthias Clasen
2257
2258 2001-12-31  Havoc Pennington  <hp@pobox.com>
2259
2260         * tests/testtext.c (do_insert_and_scroll): remove backward_char
2261         since we no longer have bogus newline
2262         (dialog_response_callback): remove another backward_char horkage, 
2263         reported by Matthias Clasen #63065
2264
2265 2001-12-31  Havoc Pennington  <hp@pobox.com>
2266
2267         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
2268         fix an incorrect assertion that the "valid" flag is always correct
2269         in a node and add explanatory comment. This keeps me from 
2270         reproducing #59101, but I'm remembering that 59101 was actually 
2271         about incorrect pixel totals, so I'm not sure 59101 is actually 
2272         fixed. May just have stopped happening due to some change in 
2273         how C-k works.
2274
2275 2001-12-31  Havoc Pennington  <hp@pobox.com>
2276
2277         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
2278         selection if shift is down, bug #50939
2279         (gtk_text_view_button_press_event): add double/triple click
2280         selection to the current selection if shift is down
2281
2282 2001-12-31  Havoc Pennington  <hp@pobox.com>
2283
2284         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
2285         to use ensure_byte_offsets not ensure_char_offsets, patch 
2286         from Padraig O'Briain bug #67356
2287         
2288 2001-12-30  Havoc Pennington  <hp@pobox.com>
2289
2290         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
2291         the right values, reported by Jeff Franks
2292
2293 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
2294
2295         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
2296
2297 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
2298
2299         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
2300         Minor documentation tweaks.
2301
2302 2001-12-28  Tor Lillqvist  <tml@iki.fi>
2303
2304         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
2305         (unicode_classify): Don't return -1 on encountering an
2306         unclassified character, but play it safe and return U_BASIC_LATIN.
2307
2308 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
2309
2310         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
2311         of misc->xpad/ypad consistent with GtkLabel. Do 
2312         directional flipping when interpreting misc->xalign/yalign.
2313         Fix off-by-one error for negative x,y. (#67472, reported
2314         by Mathieu Lacage)
2315
2316 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
2317
2318         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
2319         Remove optimization that was causing problems because
2320         we called gtk_widget_size_request() before we called
2321         gtk_widget_queue_resize() so RESIZE_NEEDED was not
2322         set. Optimization shouldn't mattter now that we
2323         are smart about needlessly size requesting or allocating
2324         widgets. (#67598, reported by Jacob Berkman)
2325
2326 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
2327
2328         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
2329         Call gdk_window_get_pointer() on menu->bin_window not
2330         menu->window, so we get the correct window for the
2331         menu item. (#65213, Guillermo S. Romero)
2332
2333 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
2334
2335         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
2336         the title by setting to NULL. Move docs inline. 
2337         Update the title if the tearoff window already
2338         exists. Code cleanup. (Fixes #65190, reported by
2339         Vitaly Tishkov.)
2340
2341 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
2342
2343         * gtk/gtksocket.c (gtk_socket_key_press_event): 
2344         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
2345         special handling of key presses unless we are doing 
2346         iter-app embedding. (Fixes #67590, Anders Carlsson)
2347
2348 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
2349
2350         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
2351         (gtk_tree_model_sort_sort_level),
2352         (gtk_tree_model_sort_insert_value): fix a few places where
2353         I was confused between modelsort iters and other iters. This was
2354         really going to happen someday ;)
2355
2356 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
2357
2358         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
2359         we are unprelighted before reordering
2360
2361         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
2362         need to break out of the for loop, not return (this fixed
2363         the 'selection freeze' bug).
2364
2365         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
2366         be pretty stable now, though it still needs some more code
2367         cleanups.
2368
2369 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
2370
2371         * docs/Changes-2.0.txt: Document the fact that
2372         gtk_paned_set_handle_size() has been removed.
2373
2374         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
2375         since it pointed to gtk_paned_set_handle_size(), which
2376         was removed. (#66760, Matt Wilson)
2377
2378 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
2379
2380         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
2381         gtk_drag_hightlight_expose _after_, so it works with
2382         widgets that paint there entire background. (#66735)
2383
2384 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
2385
2386         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
2387         allocation to widget->allocation. (Fixes #67290,
2388         Chris Phelps.)
2389
2390 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
2391
2392         (#67542, reported by Anders Carlsson)
2393         
2394         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
2395         rc_style->font_desc with defaul style instead of replacing
2396         it.
2397
2398         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
2399         font descriptions in RC styles by calling
2400         pango_font_description_merge(). 
2401
2402 2001-12-24  James Henstridge  <james@daa.com.au>
2403
2404         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
2405         valid with both SGML and XML.
2406
2407 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
2408
2409         * configure.in: 1.3.12, interface, binary age 0.
2410
2411         * configure.in: Require new versions of Glib, Pango, ATK.
2412
2413         * NEWS: Updated.
2414
2415         * configure.in: Make explicit what libtool we are executing.
2416         (Tomas Ogren)
2417
2418         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
2419
2420         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
2421         parameter names for docs.
2422
2423 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
2424
2425         * gtk/gtkwindow.c (gtk_window_realize) 
2426           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
2427
2428         * gtk/gtkentry.c (gtk_entry_key_release)
2429           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
2430         key release events to the input method.
2431
2432         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
2433         Handle release of Control/Shift to end hex sequence.
2434
2435         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
2436         Handle key releases as well as presses.
2437
2438 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
2439
2440         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
2441
2442         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
2443         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
2444         documentation about underscores and mnemonics. (#66380)
2445
2446         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
2447         cyclic reference in docs.
2448
2449         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
2450         of default value. (#65402)
2451
2452         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
2453         Markup fixes.
2454
2455 2001-12-20  Anders Carlsson  <andersca@gnu.org>
2456
2457         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
2458         map here.
2459
2460 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
2461
2462         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
2463         (reported by Jeff Franks.)
2464
2465 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
2466
2467         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
2468         prototype for direction_changed. (Reported by
2469         Jeff Franks.)
2470
2471 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
2472
2473         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
2474         Fix typo (list->data becomes list->next)
2475
2476 2001-12-06  Havoc Pennington  <hp@redhat.com>
2477
2478         Add Unicode control char menu, based on patch from Dov.
2479         Bug #63495
2480         
2481         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
2482         gtk_entry_enter_text
2483         (gtk_entry_enter_text): function to do "typing in text"
2484         (popup_targets_received): add the Unicode menu items
2485
2486         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
2487         on Input Methods item, and add the unicode menu items.
2488
2489         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
2490         used in GtkEntry and GtkTextView - may become public later.     
2491
2492 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
2493
2494         * gtk/gtkprogressbar.c: Fix a typo.
2495         * gtk/gtkpaned.c: Fix a typo.
2496         
2497 2001-12-15  Darin Adler  <darin@bentspoon.com>
2498
2499         Fix some warnings.
2500
2501         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
2502         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
2503         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
2504         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
2505         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
2506         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
2507         Restructure loop to get rid of uninitialized variable warning. Also
2508         gives a tiny efficiency gain.
2509
2510 2001-12-15  Murray Cumming  <murrayc@usa.net>
2511
2512         * Fixed first arg type of GtkScale's "format_value" signal's
2513         function pointer.
2514
2515 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
2516         docs/reference/gtk/tmpl/gtkcelleditable.sgml
2517                 gtkcelleditable -> GtkCellEditable
2518         docs/reference/gtk/tmpl/gtktreesortable.sgml
2519                 gtktreesortable -> GtkTreeSortable
2520
2521 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2522
2523         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
2524         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
2525         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
2526         resp.
2527
2528 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
2529
2530         * gtk/gtktreeview.c (validate_visible_area): free path
2531         at the end
2532
2533 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
2534
2535         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
2536
2537 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
2538
2539         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
2540         to find the clicked node in the tree when tree == NULL
2541
2542 2001-12-13  Anders Carlsson  <andersca@gnu.org>
2543
2544         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
2545         event->state with the default mod mask. 
2546
2547 2001-12-12  jacob berkman  <jacob@ximian.com>
2548
2549         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
2550
2551 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
2552
2553         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
2554         Reset the existing slave before removing it to give
2555         it a chance to commit and emit "preedit_changed" 
2556         in case there was still a preedit string.
2557
2558 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
2559         
2560         * gtk/gtktextlayout.c: Typo fixes
2561         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
2562
2563         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
2564         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
2565
2566         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
2567
2568 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
2569
2570         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
2571         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
2572
2573 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
2574
2575         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
2576         "prepainting" the menu before realizing other than
2577         via gtk_style_set_background() - this was broken when
2578         we added menu scroll support.
2579
2580         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
2581         window in the expose event -- fixes problem with border
2582         flashing during scrolling.
2583
2584 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
2585
2586         * gtk/gtksettings.c (gtk_settings_get_property): Support
2587         using names/nicks for the gdk_settings values for enum valued
2588         types. (#57678, reported by Anders Carlsson)
2589
2590 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
2591
2592         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
2593         with insert_page_menu.  Code duplication is bad.
2594
2595         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
2596         wrong fix yesterday.
2597
2598 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
2599
2600         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
2601         modifiers.
2602
2603 2001-12-12  James Henstridge  <james@daa.com.au>
2604
2605         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
2606         (menu_item)->accel_path first when looking up the accel path.
2607
2608 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
2609
2610         * tests/testgtk.c (layout_expose_handler): Only draw
2611         for events on the bin window.
2612
2613 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
2614
2615         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
2616         mnemonics work with notebooks.
2617
2618 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
2619
2620         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
2621         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
2622         Makes some flicker while scrolling go away.
2623
2624 2001-12-11  Michael Natterer  <mitch@gimp.org>
2625
2626         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
2627         adds alpha to the pixbuf; re-load the saved pixbuf and
2628         pixel-by-pixel compare it with the original one.
2629
2630 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
2631
2632         * ChangeLog: Fix wrong ChangeLog entry
2633         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
2634         right corner
2635
2636 2001-12-10  jacob berkman  <jacob@ximian.com>
2637
2638         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
2639         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
2640         (gdk_keyboard_grab): do not grab things if the nograb debug flag
2641         is set
2642
2643         * gdk/gdkinternals.h: 
2644         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
2645         keyboard / mouse
2646
2647 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
2648
2649         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
2650         didn't reset the timer.
2651
2652 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
2653
2654         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
2655
2656 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
2657
2658         * gtk/gtkviewport.c: Add docs.
2659
2660 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
2661
2662         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
2663         RBTree corruption bug--
2664
2665 2001-12-10  Anders Carlsson  <andersca@gnu.org>
2666
2667         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
2668         if edited_column is NULL, also grab focus before removing
2669         the cell_editable.
2670
2671 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
2672
2673         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
2674           denominator in the horizontal case just like we do in the vertical
2675           case (why I didn't notice that there were two cases the first time
2676           around is beyond me:).  Also fix indentation in the vertical case.
2677
2678 2001-12-09  Anders Carlsson  <andersca@gnu.org>
2679
2680         * gdk/x11/gdkevents-x11.c: Update xsettings name.
2681
2682         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
2683         gtk-dnd-drag-threshold GtkSetting.
2684
2685         * gtk/gtksettings.c (gtk_settings_class_init): Add 
2686         setting for dnd drag threshold.
2687
2688 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
2689
2690         * gtk/gtkcontainer.c: Add docs.
2691
2692 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
2693
2694         * gtk/gtkwidget.c: Doc markup fix. 
2695
2696         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
2697
2698         * gtk/gtktreestore.c: Typo fixes. (#66445)
2699
2700         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
2701
2702         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
2703         to gtk_clipboard_set_with_owner(). (#66424)
2704  
2705 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
2706
2707         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
2708         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
2709         Fabrice Bellet <fabrice@gnu.org>, #54127).
2710
2711 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
2712
2713         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
2714         of places, so that people with crashy trees can just run their
2715         program with GTK_DEBUG=TREE.
2716
2717 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
2718
2719         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
2720         per jrb's request
2721
2722 2001-12-08  Anders Carlsson  <andersca@gnu.org>
2723
2724         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
2725         since then the default GtkLayout expose handler won't be called.
2726
2727 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
2728
2729         * gtk/gtktreeview.c (validate_rows_handler): remove
2730         g_return_if_fail.
2731
2732         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
2733         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
2734         empty model.
2735
2736 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
2737
2738         * gtk/gtktreeview.c (validate_visible_area): get logic right,
2739         #66249
2740
2741         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
2742         removing a node ended up with a corrupt tree.  Really really nasty
2743         bug.
2744         (_gtk_rbtree_debug_spew): new debug helper function
2745         (_fixup_validation): new inline function to clean up code
2746         readability a lot. 
2747
2748 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
2749
2750         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
2751         Close comment.
2752
2753 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
2754
2755         * gtk/gtkstyle.h: Typo fixes.
2756
2757         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
2758
2759         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
2760
2761 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
2762
2763         * modules/input/gtkimcontextxim.c: Display the XIM
2764         status callbacks with a popup window. (Patch from
2765         HideToshi Tajima, #50628, somewhat modified.)
2766
2767 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
2768
2769         * gtk/Makefile.am: each source generation rule needs to use its own
2770         temporary file, to avoid clashes for parallel builds. fixed rules
2771         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
2772
2773 2001-12-07  Havoc Pennington  <hp@pobox.com>
2774
2775         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
2776         "cursors that are actually useful" in gdk_cursor_new() docs
2777
2778 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
2779
2780         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
2781         in computing the size of the second child.
2782
2783 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
2784
2785         * gtk/gtkrange.c: Make button 1 clicks on the trough
2786         do pages, button 3 steps. (Patch from Hans Breuer
2787         #63735)
2788
2789 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
2790
2791         * gtk/gtklabel.c: Fix docs. (#66383)
2792
2793         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
2794         (#66278, #66280)
2795         
2796         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
2797         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
2798
2799         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
2800         Don't emit a g_warning() about being deprecated. (#66208)       
2801
2802         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
2803
2804         * gtk/gtkcontainer.c: Doc fixes.
2805         
2806         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
2807
2808         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
2809
2810 2001-12-05  Sven Neumann  <sven@gimp.org>
2811
2812         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
2813
2814         * gtk/queryimmodules.c: g_dir_read_name() returns const.
2815
2816 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
2817
2818         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
2819         #66225
2820         
2821 2001-12-04  Manish Singh  <yosh@gimp.org>
2822
2823         * gtk/gtkmain.c
2824         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
2825         a gpointer.
2826
2827         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
2828         correction to docs.
2829
2830         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
2831
2832 2001-12-04  Havoc Pennington  <hp@redhat.com>
2833
2834         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
2835         g_assert_not_reached() that was bogus, since we demand-create the
2836         tag info. reported by Chris Phelps
2837
2838         Jump through assorted hoops to fix bug from Chris Phelps where 
2839         removing tags from the table resulted in btree trying to 
2840         access tag->table
2841         
2842         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
2843         ourselves to the tag table
2844
2845         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
2846         (_gtk_text_tag_table_remove_buffer): private cruft to 
2847         let us notify buffer of disappearing tags
2848
2849         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
2850         header, put it in tagprivate    
2851
2852         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
2853         tag_removed; it's emitted too late.
2854         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
2855         this
2856
2857         Padding for ABI-compat expansion
2858         
2859         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
2860         (struct _GtkTextAppearance): one pad in here too
2861
2862         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
2863
2864         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
2865         since action signals etc. seem pretty likely
2866
2867         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
2868
2869         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
2870
2871         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
2872
2873 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
2874
2875         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
2876
2877         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
2878
2879         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
2880
2881 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
2882
2883         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
2884         #62084.
2885
2886 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
2887
2888         * demos/gtk-demo/main.c: (create_tree): Minor fix.
2889
2890         * docs/tree-column-sizing.txt: Update
2891
2892         * gtk/gtkrbtree.[ch]: Massive work to support validation.
2893
2894         * gtk/gtktreemodel.c: Doc fixes.
2895
2896         * gtk/gtktreeview.c: Incremental reflow added.
2897         * gtk/gtktreeviewcolumn.c: ditto
2898         * gtk/gtktreeviewcolumn.h: ditto
2899
2900 2001-12-04  Havoc Pennington  <hp@redhat.com>
2901         
2902         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
2903         "invisible" property, #65999
2904
2905 2001-12-04  Matt Wilson  <msw@redhat.com>
2906
2907         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
2908
2909 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
2910
2911         * gtk/gtksettings.c (gtk_settings_set_property_value):
2912         Simplify, make more efficient and fix memory leak
2913         when turning quark into a string. (#66103, HideToshi
2914         Tajima)
2915
2916         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
2917         init() and unref priv->tooltips in destroy rather
2918         than calling gtk_object_destroy() which has no
2919         effect on memory management. (#66104, HideToshi
2920         Tajima)
2921
2922         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
2923         so we free the when the object is freed. (Fixes memory
2924         leak, #66096, HideToshi Tajima)
2925
2926         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
2927         a full GdkEvent structure to avoid reads of uninitialized/
2928         invalid memory in gdk_event_put() (#65877, patch
2929         from Hidetoshi Tajima)
2930
2931 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
2932
2933         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
2934         toggle-size-request doesn't take a requisition.
2935
2936         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
2937         reference to marshaler that no longer exists.
2938
2939 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
2940
2941         Patch from Bill Haneman (with many modifications) to make
2942         the focus color work on dark themes and to make the
2943         focus line width configurable. (#61079, #63074)
2944
2945         * gtk/gtkwidget.c: Add style properties, 
2946         ::focus-widget, ::focus-line-width, and ::focus-padding.
2947
2948         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
2949         state argument as well so we can use fg[STATE] to
2950         draw instead of always drawing with black. 
2951         Cange paint_focus() to respect GtkWidget::focus-width
2952         and GtkWidget::focus-line-pattern. Fix continuity
2953         problem where the default 1-1 stipple had a blob
2954         in one corner and a gap in the other. Change the
2955         interpretation of x/y/width/height to be the bounding
2956         box of the focus rect instead of the rectangle
2957         passed to gdk_draw_rectangle.
2958
2959         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
2960         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
2961         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
2962         and ::focus-line-padding.
2963
2964         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
2965         and remove duplicated code; fix drawing of focus rectangle
2966         when interior-focus = FALSE. (#63072, #63073)
2967
2968         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
2969         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
2970         Range and TreeViewColumn will need more extensive fixing.
2971
2972         * gtk/gtkcolorsel.c: Honor focus line attributes when
2973         drawing the focus on the color swatches. (#63071)
2974
2975         * gtk/gtkhsv.c: Honor focus line attributes when
2976         drawing the focus for the ring and triangle.
2977
2978         * docs/widget_geometry.txt: Start at documenting how 
2979         various widgets are drawn.
2980
2981         * gtk/gtkbutton.c (_gtk_button_paint): Export 
2982         _gtk_button_paint() librarywide, so we don't have 
2983         duplicate a bunch of code in gtktogglebutton.c.
2984
2985         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
2986
2987 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
2988
2989         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
2990         NONE:POINTER.
2991
2992 2001-12-03  Alex Larsson  <alexl@redhat.com>
2993
2994         * gtk/gtkaccellabel.c:
2995         * gtk/gtkarrow.c:
2996         * gtk/gtkcolorsel.c:
2997         * gtk/gtkcontainer.c:
2998         * gtk/gtklabel.c:
2999         * gtk/gtktextview.c:
3000         * gtk/gtktogglebutton.c:
3001         * gtk/gtktreeview.c:
3002         * gtk/gtkwindow.c:
3003         Return FALSE from expose handlers.
3004
3005 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
3006
3007         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
3008         we use pointers, we should free the previous pointer first (if
3009         it exists), before we set a new pointer. (#64726)
3010
3011         * gtk/gtktreeprivate.h: get rid of cursor_drag
3012
3013         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
3014         for cursor_drag
3015         (gtk_tree_view_bin_expose): don't directly return in the while
3016         loop
3017         (gtk_tree_view_class_init): indentend expanders by default
3018         (gtk_tree_view_header_focus): only give the button focus
3019         if it's clickable, visible and the column is reorderable
3020         (#65539)
3021
3022         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
3023         create and free cursor
3024
3025 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
3026
3027         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
3028         some bugs with size requisition. (From Bill Haneman)
3029
3030         * gtk/gtkcalendar.c: Draw headers and selection in 
3031         base/text[SELECTED] instead of fg/bg[SELECTED].
3032
3033         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
3034         code and formatting.
3035
3036 2001-12-03  Havoc Pennington  <hp@pobox.com>
3037
3038         * gtk/gtktextview.c (set_window_height): 
3039         (set_window_width): Hmm, setter functions normally assign the new
3040         value to the object field. Reported by Chris Phelps.
3041
3042 2001-11-30  jacob berkman  <jacob@ximian.com>
3043
3044         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
3045         signal id to 0 after we disconnect from it
3046
3047 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
3048
3049         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
3050         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
3051         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
3052         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
3053
3054         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
3055         GTK_DISABLE_DEPRECATED.
3056
3057         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
3058         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
3059
3060 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
3061
3062         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
3063         move/resize code, removing various bad, non-functional
3064         hacks. (Fixes #65048, reported by Damon Chaplin.)
3065
3066 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
3067
3068         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
3069         bad match error when target drawable is not the 
3070         same depth as the root window. (#65841)
3071
3072         * HACKING: Update.
3073
3074 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
3075
3076         * gdk/gdkwindow.c: Typo fix.
3077
3078 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
3079
3080         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
3081         empty menu items to behave like insensitive items (#59456)
3082
3083         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
3084         next item if the first item in the menu is a tear off item
3085         (#59456-2, suggestion by Matthias Clasen)
3086
3087         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
3088         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
3089         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
3090         (gtk_real_menu_shell_activate_current): add check, so empty
3091         menu items behave like insensitive items (#59456)
3092         
3093         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
3094         the checks more readable ...
3095         
3096         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
3097         (gtk_menu_shell_button_release): causes the menu to dropdown if the
3098         caption is clicked again (#64977)
3099
3100 2001-11-29  Havoc Pennington  <hp@redhat.com>
3101
3102         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3103         assertion here that we were at the end iterator was not correct;
3104         change code to move us to the end iterator. bug #65731
3105
3106 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
3107
3108         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
3109         improper use of g_locale_to_utf8() to convert from
3110         latin-1, and do it the easy way by building the string
3111         correctly in the first place.
3112
3113 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
3114
3115         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
3116         Convert atoms to and from atoms for properties of type XA_ATOM.
3117         (#65555, patch from Hidetoshi Tajima)
3118
3119 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
3120
3121         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
3122         to avoid problems with Objective C.
3123
3124 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
3125         
3126         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
3127
3128         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
3129         Fix docs. (#65505)
3130
3131         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
3132
3133 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
3134
3135         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
3136         accounting of menu->tearoff_scrollbar width to here
3137         and make sure we have the correct requisition.
3138
3139         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
3140         by using gtk_window_move().
3141
3142         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
3143         the requisition to be updated by calling
3144         gtk_widget_size_request() (#65440)
3145
3146         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
3147         queue resize before calling gtk_menu_set_tearoff_state().
3148
3149 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
3150
3151         * demos/gtk-demo/editable_cells.c: fix typo
3152
3153         * demos/gtk-demo/list_store.c (add_columns): remove call to
3154         gtk_tree_view_column_set_clickable which didn't make sense
3155
3156 2001-11-28  Havoc Pennington  <hp@redhat.com>
3157
3158         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
3159         explaining the validation error in front of the G_BREAKPOINT
3160
3161         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
3162         process updates with include_children = FALSE instead of TRUE, so
3163         we redraw the range only, not the whole darn window.  Making
3164         GtkRange a NO_WINDOW widget had weirdly caused the text widget
3165         Trace/breakpoint trap bug to become much easier to trigger.
3166
3167 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
3168
3169         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
3170         to gdkcursors.h.
3171
3172 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
3173
3174         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
3175
3176         * gdk/gdkcursor.h: Directly include the contents
3177         of gdkcursors.h in the GdkCursorType enum.
3178
3179         * gdk/gdkcursors.h: Deleted.
3180
3181         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
3182         header boilerplate.
3183
3184         * gdk/Makefile.am: Remove the X-derived-headers rule.
3185
3186 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
3187
3188         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
3189         Notify on the ::active property _here_, not in
3190         gtk_check_menu_item_set_active.
3191
3192 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
3193
3194         * gtk/gtkcellrendererpixbuf.c
3195         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
3196         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
3197
3198 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
3199
3200         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
3201         comment about what is going on in this file.
3202
3203         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
3204         x/y problem.
3205
3206 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
3207
3208         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
3209         Calculate size based on the _child_ of the menu item,
3210         not the menuitem. (#65005, Damon Chaplin)
3211
3212         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
3213         some extra vertical padding to the label widget ... restores
3214         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
3215
3216 2001-11-26  Tor Lillqvist  <tml@iki.fi>
3217
3218         * demos/pixbuf-demo.c
3219         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
3220
3221         * demos/gtk-demo/main.c (read_line): No flockfile() or
3222         getc_unlocked() on Win32.
3223
3224 2001-11-25  Tor Lillqvist  <tml@iki.fi>
3225
3226         * configure.in
3227         * acconfig.h: As we now use GDir, no need to check for dirent.h.
3228
3229 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
3230
3231         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
3232         when finished (#65266)
3233
3234 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
3235
3236         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
3237         data after we set the property. (#65264)
3238
3239 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
3240
3241         * gtk/gtkbutton.c: add destroy method so label_text gets freed
3242         if it has been allocated (#65268)
3243
3244 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
3245
3246         * gdk/linux-fb/gdkdrawable-fb2.c
3247         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
3248
3249         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
3250
3251         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
3252         set_family
3253         
3254         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
3255
3256 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
3257
3258         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
3259         deactivate menu when menu_item isn't sensitive (#61389)
3260
3261 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
3262
3263         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
3264         we return (in case of a failure here)
3265
3266 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
3267
3268         * gtk/gtknotebook.c: Handle events in windows other
3269         than widget->event_window properly. (#65079, reported
3270         by Damon Chaplin)
3271
3272         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
3273
3274 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
3275
3276         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
3277         the image at the top. (#65020, request from Seth Nickell)
3278
3279 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
3280
3281         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
3282         arithmetic that was resulting in rows being drawn too low.
3283         (#65001, reported by Damon Chaplin)
3284
3285 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
3286
3287         * gtk/gtkrange.c (gtk_range_button_press): Offset 
3288         invalidated range correctly.
3289
3290         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
3291         of title window. (#65001, reported by Damon Chaplin)
3292
3293         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
3294         horrible hack with use of ::event_after.
3295
3296 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
3297
3298         * Version 1.3.11
3299
3300         * configure.in (ATK_REQUIRED_VERSION): Require
3301         GLib-1.3.11, Pango-0.22, ATK-0.7.
3302
3303         * tests/prop-editor.c (property_widget): Restore
3304         to working as well as it did before.
3305
3306         * gtk/gtklistitem.h: Mark deprecated since it is
3307         an integral part of GtkList.
3308
3309         * demos/gtk-demo/demo-common.h: New header file,
3310         for a common functions not important to the meat
3311         of the demos.
3312         
3313         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
3314         function to search for a file used by the demo.
3315
3316         * demos/*.c: Use demo_find_file.
3317
3318 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
3319
3320         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
3321         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
3322         fixes already mentioned in ChangeLog entry on 2001-11-14.
3323
3324         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
3325
3326 2001-11-23  Hans Breuer  <hans@breuer.org>
3327
3328         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
3329         reflect Pango API change
3330
3331         * gtk/gtk.def : updated externals
3332
3333         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
3334         g_return_val_if_fail() to avoid 'function must return a value'
3335
3336         * gtk/gtkrc.c : added spaces to fix small coding style issues
3337         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
3338         'static correctness'
3339
3340         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
3341         because they only can be build on win32 after applying my patch
3342
3343 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
3344
3345         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
3346         children, in order for the input pnly window to stay *above*
3347         children.
3348
3349 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
3350
3351         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
3352         type walks againts G_TYPE_FUNDAMENTAL_MAX.
3353         
3354         * tests/prop-editor.c: disable type hackery.
3355
3356 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
3357
3358         * gdk/gdkimage.c (gdk_image_get): Fix problem with
3359         lost parameter.
3360
3361 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
3362
3363         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
3364         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
3365         trailing commas in enum declarations.
3366
3367 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
3368
3369         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
3370         interface, binary age 0.
3371
3372         * NEWS: Updates
3373
3374         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
3375         fixes in docs.
3376
3377         * gtk/gtkmain.h: Remove unused and misnamespaced
3378         get_gtk_win32_directory() prototype.
3379
3380         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
3381         to match header.
3382
3383         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
3384         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
3385         to match docs.
3386
3387         * gdk/gdkevents.c (gdk_event_get_coords)
3388           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
3389           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
3390         Fix parameter names in docs.
3391         
3392         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
3393         (#64961, Akira Tagoh)
3394
3395 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
3396
3397         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
3398
3399         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
3400
3401         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
3402
3403         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
3404         back to gtk_accel_groups_from_object(), change @acceleratable
3405         parameter to gtk_accel_groups_activate() accordingly.
3406
3407         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
3408         left-over comment about quark return.
3409
3410         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
3411
3412         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
3413         (Patch from Matt Wilson)
3414
3415         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
3416         object is finalized.
3417
3418 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
3419
3420         * applied patch from owen to get rid of accel map notifiers.
3421         changed things to fix reentrancy and API as discussed on gtk-devel.
3422
3423         * gtk/gtkaccelgroup.[hc]:
3424         (gtk_accel_group_finalize): unregister this accel group from all
3425         accel map paths.
3426         (accel_closure_invalidate): handle invalidation of closures by
3427         disconnecting their accelerators.
3428         (quick_accel_add): move closure connection and changed notification
3429         into this function to reduce code duplication. don't emit change
3430         notification on closurers without accelerators.
3431         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
3432         for a GtkAccelGroupEntry.
3433         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
3434         (gtk_accel_group_connect_by_path): new function to add accelerators
3435         with an accel path.
3436         (gtk_accel_group_disconnect_closure): new function, disconnect a
3437         closure from of an accel group.
3438         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
3439         accel_mods pair and remove them.
3440         (_gtk_accel_group_reconnect): new function that basically does
3441         gtk_accel_group_disconnect_closure() and
3442         gtk_accel_group_connect_by_path() once an accel path changed.
3443         (gtk_accel_groups_disconnect_closure): remove this, there's
3444         gtk_accel_group_disconnect_closure().
3445         
3446         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
3447         nuke notifiers.
3448         (_gtk_accel_path_is_valid): make this non-static for
3449         gtkwidget.c and gtkaccelgroup.c assertions.
3450         (gtk_accel_map_add_notifer): removed this function.
3451         (gtk_accel_map_remove_notifer): same.
3452         (_gtk_accel_map_add_group):
3453         (_gtk_accel_map_remove_group): (un-)register accel groups, with
3454         accel paths for correct propagation.
3455         (gtk_accel_map_add_entry): return void.
3456         (gtk_accel_map_lookup): return gboolean instead of GQuark.
3457         
3458         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
3459         set accel_path on widgets.
3460         
3461         * gtk/gtkwidget.[hc]:
3462         (accel_path_changed): got rid of this, changes are handled by
3463         accel maps internally now.
3464         (_gtk_widget_set_accel_path): get things to work without notifiers.
3465         (gtk_widget_list_accel_closures): list accel closures of a widget.
3466         
3467         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
3468
3469 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
3470
3471         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
3472
3473 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
3474
3475         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
3476         replace gboolean free_last in the function parameters with
3477         gint depth. Changes to reflect new situation.
3478
3479         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3480         replace gboolean free_last, with gint depth, add gint current_depth.
3481         Changes to reflect new situation.
3482
3483         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
3484         to reflect new situation
3485
3486         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
3487
3488 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
3489
3490         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
3491         where notebook gap was double shifted by allocation.x/y
3492
3493         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
3494         to unmap children.
3495
3496 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
3497
3498         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
3499         allocation to be relative to paned->allocation, now
3500         that this is a NO_WINDOW widget.
3501         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
3502
3503         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
3504         needs to be a boxed property.
3505
3506 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
3507
3508         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
3509         Use the widget's state when drawing the indicator, as
3510         in GtkCheckButton. This gives us color changes for
3511         un-prelighted checkbuttons. (#63308, Matt Wilson)
3512
3513 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
3514
3515         (Fixes related to #64428, Michael Meeks)
3516
3517         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
3518         widget, so it gets mapped again properly when we
3519         add to a parent.
3520
3521         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
3522         plug->socket_window. 
3523
3524         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
3525         socket_window to NULL, not FALSE.
3526
3527         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
3528         socket->same_app to TRUE. (#64612)
3529
3530 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
3531
3532         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
3533         gtk_fixed_set/get_has_window() to remove criticism
3534         about GTK_WIDGET_SET_FLAGS() hacks.
3535
3536 2001-11-19  Michael Natterer  <mitch@gimp.org>
3537
3538         * gtk/gtknotebook.c: show notebook->event_window with
3539         gdk_window_show_unraised(), so it doesn't catch the events which
3540         should go to the tab widgets first.
3541
3542 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
3543
3544         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
3545         "resizable" property, to get rid of the
3546         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
3547         (gtk_tree_view_column_set_resizable): New function to set resizable.
3548         (gtk_tree_view_column_set_resizable): getter.
3549
3550         * tests/testtreecolumns.c (add_clicked): modify for above change.
3551
3552         * Makefile.am (install-data-hook): remove old .pc files before
3553         installing the new one.  We used to symlink this, and it will
3554         break old installs.
3555
3556 2001-11-19  Havoc Pennington  <hp@pobox.com>
3557
3558         * tests/testtext.c (fill_example_buffer): put in a test for
3559         negative indentation values
3560
3561 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
3562
3563         * gtk/gtklabel.c (gtk_label_init): Change default for
3564         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
3565         labels are most often wrapped labels, this gives better
3566         compatibility with GTK+-1.2, where justification was
3567         ignored for wrapped labesl and is a more sensible
3568         default in any case. (#64489)
3569
3570         * gtk/gtklabel.c (gtk_label_class_init): Fix default
3571         for wrap property to FALSE.
3572
3573 2001-11-19  jacob berkman  <jacob@ximian.com>
3574
3575         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
3576
3577 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
3578
3579         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
3580         RevertToParent, not RevertToNone. (#64613, 
3581         Matthias Clasen)
3582
3583 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
3584
3585         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
3586         and label_yalign need to be float properties to
3587         correspond to GTK+-1.2, to gtk_frame_set_label_align,
3588         and to the types of the xalign and yalign properties of GtkMisc.
3589         (#63484, Vitaly Tishkov)
3590
3591 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
3592
3593         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
3594         of plug_added vfunc. (#64408, Jeff Franks)
3595
3596 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
3597
3598         * configure.in (deps): Undef HAVE_STDLIB_H before
3599         checking for jpeg, because jconfig.h has this
3600         in it too (%#$@!). Fix from Matthias Clasen, #64500.
3601
3602 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
3603
3604         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
3605         memory leak when retrieving atom names. (Michael Meeks,
3606         #64508)
3607
3608 2001-11-18  Alex Larsson  <alexl@redhat.com>
3609
3610         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
3611         Update to new Pango API.
3612         
3613 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
3614
3615         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
3616         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
3617         GTK_OBJECT_DESTROYED() check macro.
3618
3619         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
3620         instances of GTK_OBJECT_DESTROYED() that weren't
3621         needed any more.
3622
3623         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
3624         for a connection to ::destroy.
3625
3626 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
3627
3628         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
3629         have been since the beginning, but as special hack,
3630         allow clearing the NO_WINDOW flag to get a window widget.
3631
3632 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
3633
3634         * gtk/gtktreestore.c: return TRUE when value changed, so
3635         row_changed is being emitted
3636
3637 2001-11-18  Hans Breuer  <hans@breuer.org>
3638
3639         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
3640         no label without op, even if it's a no-op.
3641
3642         * gtk/gtk.def :
3643         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
3644
3645         * config.h.win32.in : remove definition of HAVE_DIRENT_H
3646         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
3647         required anymore, replace it.
3648         * gtk/queryimmodules.c : DIR -> GDir replacement, also
3649         getcwd() -> g_get_current_dir()
3650
3651         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
3652         Even 'noisy laugh' scolling appears to work, though I still can't
3653         claim to have fully understood what it is supposed to do ...
3654
3655 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
3656
3657         * gtk/gtkenums.h: Include glib-object.h instead of
3658         gobject/gsignal.h
3659
3660         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
3661           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
3662         argument to the window_at_pointer() field of
3663         GdkPointerHooks. (Patch from Erwann Chenede)
3664
3665         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
3666         to 6 pointers.
3667
3668 2001-11-17  Matt Wilson  <msw@redhat.com>
3669
3670         * gtk/gtkenums.h: must include glib-object.h only
3671
3672 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
3673
3674         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
3675         key bindings in order of visibility - mnemonics, then 
3676         accelerators, then send key to the focus widget, then
3677         bindings on the GtkWindow.
3678
3679         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
3680         Removed the xoffset, yoffset fields of GtkLayout which were
3681         identically zero for compat with 1.2, but were no longer 
3682         compatible with all uses of these fields in 1.2.
3683
3684         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
3685         unused variable.
3686
3687 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
3688
3689         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
3690         We no longer need to create the signals here ... they
3691         come from the interface.
3692
3693         * gtk/maketypes.awk: Use GType, not GtkType in output.
3694
3695         * gtk/gtktypeutils.h: Mark virtually all of this
3696         file deprecated.
3697
3698         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
3699         the only use of this function is the GtkArg using
3700         GtkCallbackMarshal, since destroy notification is
3701         silly here.
3702
3703 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
3704
3705         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
3706         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
3707         only for compatibility with GTK+-1.2; and deprecate it; 
3708         put all marshalers we actually use into gtkmarshalers.list 
3709         and use the _gtk_marshal_ prefix for these marshalers.
3710
3711 2001-11-17  Murray Cumming  <murrayc@usa.net>
3712
3713         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
3714         The first parameters of the signals are now registered as
3715         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
3716         
3717 2001-11-17  Tor Lillqvist  <tml@iki.fi>
3718
3719         * gtk-zip.sh.in: Build separate runtime and developer
3720         packages.
3721
3722         * gtk/gtk.def: Reflect recent accelerator-related changes.
3723
3724 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
3725
3726         * gtk/gtkwindow.c (gtk_window_set_default): Move 
3727         notification of "has_default" to here, so it
3728         is safe to call gtk_window_set_default() instead
3729         of gtk_widget_grab_default().
3730
3731         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
3732         gtk_widget_grab_focus(), which then calls 
3733         _gtk_widget_internal_set_focus(). This makes 
3734         gtk_window_set_focus() a safe way of both setting
3735         and unsetting the focus widget.
3736
3737         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
3738         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
3739         to find the toplevel.
3740
3741         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
3742         from the "internal functions" section.
3743
3744 2001-11-16  jacob berkman  <jacob@ximian.com>
3745
3746         * tests/testgtk.c (create_radio_buttons): add some no-indicator
3747         radio buttons
3748
3749         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
3750         initially active, also initially be depressed
3751         (gtk_radio_button_clicked): also update our depressed state
3752
3753 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
3754
3755         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
3756         key press events not just to focus/window but also to
3757         intermediate widgets.
3758
3759         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
3760         to switch pages. (Needs some work on handling focus
3761         when switching pages.)
3762
3763 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
3764
3765         * gtk/gtknotebook.c: Fix child allocations to be relative to 
3766         widget position and some drawing bugs.
3767
3768         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
3769         with reading uninitialized variable.
3770
3771 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
3772
3773         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
3774         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
3775         NO_WINDOW widgets.
3776
3777         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
3778         cleanup.
3779
3780         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
3781         we are drawing in a window when drawing the paned handle.
3782
3783 2001-11-16  Sven Neumann  <sven@gimp.org>
3784
3785         * demos/gtk-demo/appwindow.c
3786         * demos/gtk-demo/menus.c: reduce compiler warnings
3787
3788 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
3789
3790         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
3791         unused callback to make things compile with 
3792         gtk_tree_view_path_at_pos_change().
3793
3794 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
3795
3796         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
3797
3798 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
3799
3800         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
3801  
3802 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
3803
3804         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
3805         to get a GdkWindow to compare event->window to.
3806
3807         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
3808         the signal for lateral motion too, #64361
3809
3810         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
3811         arg as it is useless, #64137
3812
3813 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
3814
3815         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
3816
3817 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
3818  
3819         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
3820         gdk_window_invalidate_maybe_recurse() for recursion.
3821         (Soeren Sandmann)
3822
3823         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
3824  
3825         * gtk/gtkcontainer.c (gtk_container_expose): Call
3826         gtk_container_forall() not _foreach() to propagate,
3827         since we need to propagate exposes to internal children
3828         as well.
3829
3830         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
3831         Remove the restriction of only being able to call these
3832         on window widgets, since we have lots of NO_WINDOW widgets
3833         with windows now; for add events, recurse over the children
3834         of widget->window to find one owned by the widget.
3835
3836         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
3837         window to catch events.
3838
3839         * gtk/gtktogglebutton.[ch]: Remove the code for switching
3840         between NO_WINDOW and WINDOW widgets based on the mode.
3841
3842         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
3843         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
3844
3845         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
3846
3847         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
3848         change for range.
3849
3850         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
3851  
3852         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
3853
3854 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
3855
3856         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
3857         "message_type" and "buttons" CONSTRUCT properties. (#64069)
3858
3859         * tests/testsocket.c: Expand tests to add a "local passive
3860         child" (Test case for #64428)
3861
3862 2001-11-14  jacob berkman  <jacob@ximian.com>
3863
3864         * gtk/gtkgamma.c (button_clicked_callback): create the label with
3865         a mnemonic
3866
3867 2001-11-15  Sven Neumann  <sven@gimp.org>
3868
3869         * tests/testgtk.c: make it compile without warnings.
3870
3871 2001-11-14  Alex Larsson  <alexl@redhat.com>
3872
3873         * gtk/gtklabel.c:
3874         Don't recalculate the layout on each gkt_label_ensure_layout () for
3875         wrapped labels.
3876
3877 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
3878
3879         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
3880         the currently selected column when we get the column, #64380
3881
3882         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
3883         to cancel CellRendererText editting, #63613
3884
3885         * gtk/gtkcellrenderertext.c: ditto
3886
3887         * gtk/gtkcellrenderertext.h: formatting changes
3888
3889 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
3890
3891         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
3892
3893         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
3894
3895         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
3896
3897         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
3898
3899         * gtk/gtklabel.c: Documentation fixes (#64452)
3900
3901 2001-11-14  Daniel Egger  <degger@fhm.edu>
3902
3903         * gdk-pixbuf/io-xpm.c: 
3904         (xpm_skip_whitespaces): Remove unused static function.
3905         (xpm_skip_string): Dito.        
3906         (xpm_extract_color): Declare const variable const to avoid warnings. 
3907
3908         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
3909         
3910         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
3911         
3912         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
3913         a long.
3914
3915 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
3916
3917         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
3918         out accidental commit of debugging timing code.
3919
3920 2001-11-14  Havoc Pennington  <hp@redhat.com>
3921
3922         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
3923         it doesn't move to a new line each time you press it
3924
3925         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
3926         return value, #62987
3927
3928 2001-11-14  Havoc Pennington  <hp@redhat.com>
3929
3930         * tests/testtextbuffer.c (main): bulk of the tests were commented
3931         out, oops.
3932
3933         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
3934         function work, should resolve #63426
3935         (gtk_text_iter_ends_line): return TRUE for the end iterator
3936
3937         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
3938         a couple things that might get cached in here.
3939
3940 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
3941
3942         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
3943         "model" construct property for language bindings.
3944
3945         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
3946         function to let you set the column types of a GtkTreeStore for
3947         language bindings.
3948
3949         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
3950
3951 2001-11-13  Havoc Pennington  <hp@redhat.com>
3952
3953         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
3954         including reference to bugzilla bug about how we should have 
3955         a better way of positioning children
3956
3957         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
3958
3959         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
3960         size to side rects if they don't exist, #63438
3961
3962 2001-11-13  Havoc Pennington  <hp@redhat.com>
3963
3964         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
3965         properly replace selection with Return or Tab
3966
3967         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
3968         that didn't locate the end of the line correctly, should fix #63800
3969
3970 2001-11-13  Havoc Pennington  <hp@redhat.com>
3971
3972         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
3973         to requisition, request non-anchored children
3974         (gtk_text_view_size_allocate): handle border width, allocate
3975         non-anchored children
3976         (text_view_child_new_window): set the child as object data
3977         (gtk_text_view_move_child): allow children at negative
3978         coordinates, no reason why not
3979         (gtk_text_view_forall): make it copy the list of children before
3980         walking it, to avoid reentrancy issues  
3981         (gtk_text_view_move_child): short-circuit if position is unchanged
3982         (changed_handler): only queue_resize if requisition has changed
3983         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
3984         a better job of invalidation ourselves
3985
3986         * tests/testtext.c: add tests for the fixed-position children
3987
3988 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
3989
3990         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
3991         with gdk threads macro.
3992
3993 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
3994
3995         * gtk/maketypes.awk: fix type utils generation on unix.
3996
3997         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
3998         registry.
3999
4000         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
4001         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
4002         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
4003         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
4004         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
4005         introduced ::accel_changed signal for change notification, and
4006         gtk_accel_group_connect/disconnect to connect closures to accel groups.
4007         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
4008         functions.
4009         deprecated gtk_accel_group_ref/unref.
4010
4011         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
4012         to accel group changed notification and basically operate on closures.
4013         removed gtk_accel_label_get_accel_object and
4014         gtk_accel_label_set_accel_object.
4015         introduced gtk_accel_label_set_accel_closure, and for convenience,
4016         gtk_accel_label_set_accel_widget.
4017
4018         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
4019         which mostly moved into gtkaccelmap.[hc].
4020         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
4021         and gtk_item_factory_print_func.
4022
4023         * gtk/gtkmain.c: call _gtk_accel_map_init().
4024
4025         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
4026         that associates an accelerator path with menu items, through which
4027         persistent accelerator settings on menu items are enabled.
4028
4029         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
4030         paths of menu item can be default constructed to allow installation
4031         of accelerators on menu items that don't come with an accelerator
4032         binding by default.
4033
4034         * gtk/gtksettings.c: fix STRING type rc settings by special casing
4035         them appropriately in the parser.
4036
4037         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
4038         gtk_signal_newv().
4039
4040         * gtk/gtkwidget.[hc]: accelerator API revamp.
4041         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
4042         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
4043         gtk_widget_(un)lock_accelerators.
4044         accelerators maintained through gtk_widget_add/remove_accelerator()
4045         are not runtime changable now, the correct sequence to setup a
4046         widget for runtime changable accelerators is now:
4047           gtk_accel_map_add_entry(accel_path, key, mods);
4048           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
4049
4050         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
4051         group changes (as well as mnemonic changes) through the new signal
4052         ::accels_changed.
4053
4054 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
4055
4056         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
4057         GString->string conversions.
4058
4059 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
4060
4061         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
4062         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
4063
4064 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
4065
4066         * gtk/gtktreeview.c: Documentation fixes. (#64377)
4067         
4068         * gtk/gtktreestore.c: Documentation fixes. (#64376)
4069
4070 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
4071
4072         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
4073         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
4074         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
4075         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
4076
4077 2001-11-10  Hans Breuer  <hans@breuer.org>
4078
4079         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
4080         we know what we are talking about when asked for MINMAXINFO.
4081         Also some cleaning for !HAVE_DIMM_H etc.
4082
4083 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
4084
4085         * gtk/gtktreeviewcolumn.c: Fix docs for 
4086         gtk_tree_view_column_set_sort_order. (#62647)
4087         
4088         * gtk/gtkcontainer.c: Fix docs for 
4089         gtk_container_set_border_width. (#64139)
4090
4091         * gtk/gtkcolorsel.c: Documentation fixes.
4092
4093 2001-11-10  Hans Breuer  <hans@breuer.org>
4094
4095         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
4096         don't have strcasecmp()
4097
4098         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
4099         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
4100         code duplication wrap it in its own function and use it in 
4101         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
4102
4103         * gdk/win32/gdkdrawable-win32.c : implement the finalize
4104         method like the X11 version does, allow to set_colormap NULL
4105         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
4106         set_colormap, also some adaption to X11 version :
4107         (gdk_window_hide) call _gdk_window_clear_update_area
4108         (gdk_window_reparent) call _gdk_window_init_position
4109
4110         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
4111         call gdk_window_resize() after all hints are set, because the
4112         window resizing process (WM_GETMINMAXINFO) takes all of them into 
4113         account
4114
4115         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
4116
4117         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
4118         sizeof (GdkVisualPrivate)
4119
4120         * gdk/gdk.def gtk/gtk.def : upated externals
4121
4122         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
4123           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
4124         from now on use make.msc from $(TOP)/glib/build/win32
4125
4126         * gtk/stock-icons/makefile.msc : add stock_missing_image
4127
4128 2001-11-08  Tor Lillqvist  <tml@iki.fi>
4129
4130         * README.win32: Add headers. Add section about ActiveIMM.
4131
4132         * configure.in: Add --with-ie55 flag to specify the location of
4133         the "IE55 libs and headers" package downloadable from Microsoft,
4134         which contains, among other things, the Active IMM header dimm.h
4135         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
4136         Require GLib 1.3.10.
4137         
4138         * config.h.win32.in: New version, produced by merging two
4139         configure-generated ones (for gcc and MSVC). Hopefully #defines
4140         the same flags that the previous, hand-written one, did.
4141
4142         * gdk/Makefile.am
4143         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
4144
4145         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
4146         stuff. Remove unused GdkIOClosure.
4147
4148         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
4149         available).
4150
4151         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
4152         for uuid.lib. (Does it really have to be this hard to use an
4153         existing library with libtool? Probably I am missing something.)
4154
4155 2001-11-08  Darin Adler  <darin@bentspoon.com>
4156
4157         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
4158         typo where it says LEFT instead of CENTER.
4159
4160 2001-11-07  Darin Adler  <darin@bentspoon.com>
4161
4162         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
4163         (gtk_dialog_set_default_response): Add g_return_if_fail.
4164
4165 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
4166
4167         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
4168         Add row_draggable() vfunc, and wrapper function.
4169
4170         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
4171         row_drop_possible take a GtkSelectionData, rather than
4172         model/row pair.
4173
4174         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
4175         new DND interfaces.
4176
4177         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
4178         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
4179         and rename them to enable_model_drag_source/dest.
4180
4181         * gtk/treeviewcolumn.c: Add DND of columns between rows.
4182         Still can't drop _to_ the left tree, but other places
4183         work.
4184
4185         * gtk/gtktreeview.c (unset_reorderable): Unset the
4186         reorderable property if unset/enable_model_drag_source/dest
4187         are called manually.
4188
4189         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
4190         Correct for change in depth count handling.
4191
4192         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
4193         Pass in a expose area to gtk_tree_view_column_cell_render()
4194
4195 2001-11-06  Havoc Pennington  <hp@redhat.com>
4196
4197         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
4198
4199 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
4200
4201         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
4202
4203 2001-11-05  Havoc Pennington  <hp@redhat.com>
4204
4205         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
4206         widgets in here
4207         (gtk_text_view_realize): set parent window of child widgets
4208         (gtk_text_view_size_request): use child req to decide whether
4209         to invalidate layout, not widget->requisition
4210
4211         * gtk/gtktextdisplay.c (render_layout_line): set
4212         shaped_width_pixels for NULL shape objects, so that we properly
4213         draw the "missing pixbuf/widget" thing
4214         (render_layout_line): don't draw the widget here
4215         (gtk_text_layout_draw): pass out a list of widgets that need exposing
4216
4217         * demos/gtk-demo/textview.c (insert_text): add demo of child
4218         widgets
4219
4220         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
4221
4222         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
4223
4224         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
4225         scroll offsets
4226         (gtk_text_view_value_changed): poke new X and Y into child allocations
4227
4228 2001-11-06  Tor Lillqvist  <tml@iki.fi>
4229
4230         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
4231         -specific directory on Windows, too (#63759).
4232
4233 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
4234
4235         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
4236         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
4237         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
4238         directly to Picture objects instead of using XftDraw.
4239         This fixes the problem where we weren't able to 
4240         properly destroy XftDraw objects before destroying
4241         the accompanying windows, and probably improves
4242         efficiency a bit too. (#50214)
4243
4244 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
4245
4246         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
4247         Clamp max window width/height to 32767, not 32768 since
4248         we have to be able to deal with a dx/y of -32768 without
4249         getting a width of 65536 when guffaw scrolling.
4250
4251         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
4252         for the guffaw scrolling case, fixing some problems with
4253         copy-area case as well. Fix BadValue bug with moving windows
4254         by large amounts.
4255
4256         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
4257         clip in window structue before calling gdk_window_invalidate_region
4258         since that trims new invalidations to the window's visible
4259         region.
4260
4261         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
4262         Really set the static window gravity on the children, not
4263         repeatedly on the window.
4264
4265         * gtk/testgtk.c: Add a torture test for big windows and 
4266         gdk_window_scroll().
4267
4268 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
4269
4270         * acconfig.h configure.in: sigsetjmp is macroized in some places,
4271         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
4272
4273 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
4274
4275         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
4276         in terms of pango_color_parse().
4277
4278         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
4279         gdk_color_parse() implementations.
4280
4281 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
4282
4283         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
4284         queue_resize_on_group with both the old and new mode, not
4285         just the new mode. (#60171, Nicolas Setton). Also, notify
4286         the "mode" property.
4287         
4288 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
4289
4290         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
4291         for use in "shallow invalidation" of a widget. (Windows belonging
4292         to the widget, but not to the widget's children)
4293
4294         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
4295         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
4296         up on ancestors up to the resize container on queue_resize. Size
4297         requests only actually take place if GTK_REQUEST_NEEDED, size
4298         allocations only take place if GTK_ALLOC_NEEDED or the size
4299         changed.
4300
4301         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
4302         container->resize_widgets and the RESIZE_NEEDED flag since the
4303         above flags are sufficient to figure out what needs to be
4304         resized/reallocated. Remove code manipulating
4305         container->resize_widget.
4306
4307         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
4308         allows widgets to turn off being automatically invalidated is when
4309         they are resized.
4310
4311         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
4312         a widget is resized or moved is "shallow" as described above -
4313         only the windows that need to be invalidated are invalidated.
4314
4315         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
4316         Make these widget's init functions call 
4317         gtk_widget_set_redraw_on_allocate(widget,FALSE).
4318
4319         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
4320         _gtk_container_queue_resize(), since we don't want
4321         redrawing. (Probably could be done for other 
4322         calls to gtk_widget_queue_resize() in gtkwindow.c,
4323         but this is the most important one.)
4324
4325         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
4326         gtk_widget_queue_draw() - size_allocate() handles
4327         that as appropriate.
4328
4329         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
4330         of queue_clear() to avoid invalidating children.
4331
4332 2001-11-04  jacob berkman  <jacob@ximian.com>
4333
4334         * gtk/gtkmain.c (find_module): don't free the module name until
4335         after we load the module
4336
4337 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
4338  
4339         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
4340         derivation instead of boxed derivation.
4341  
4342         * gtk/gtkmarshal.list: Remove some now unused marshallers.
4343  
4344 2001-11-04  Tor Lillqvist  <tml@iki.fi>
4345
4346         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
4347         include yesterday, without really thinking), as that defeats the
4348         working of correct_libdir_prefix() (it becomes a no-op.). Add
4349         comment mentioning that. Thanks to Hans Breuer for noticing.
4350         
4351 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
4352
4353         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
4354         signal argument (was GtkWidget*).
4355
4356         * gtk/gtkwindow.c (gtk_window_frame_event),
4357           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
4358         Fixed argument types as above, removed GTK_WINDOW casts and
4359         added some GTK_WIDGET casts instead.
4360
4361 2001-11-03  Hans Breuer  <hans@breuer.org>
4362
4363         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
4364         finalize to parent class to get removed from the toplevel_list.
4365         Should fix 'random' crashes of #63474.
4366
4367         * gtk/gtktreemodelsort.c : chain finalize() to parent class
4368
4369 2001-11-03  Tor Lillqvist  <tml@iki.fi>
4370
4371         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
4372         for .dll or .so as appropriate as module suffix.
4373
4374         * gtk-zip.sh.in: Use correct import library names.
4375
4376         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
4377
4378         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
4379         Windows to turn build-time paths from a gtk.immodules distributed
4380         as part of a binary package into runtime ones in the
4381         end-user-chosen installation directory.
4382         (gtk_im_module_init): Use it for module path and domain
4383         directory.
4384
4385 2001-11-02  Tor Lillqvist  <tml@iki.fi>
4386
4387         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
4388         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
4389         Windows.
4390
4391 2001-10-30  Tor Lillqvist  <tml@iki.fi>
4392
4393         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
4394         files. Configure on Win32 (running on Cygwin) thinks symlinks
4395         exist, but pkg-config is not necesarily a Cygwin program, and
4396         doesn't understand them.
4397
4398 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
4399
4400         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
4401         a bit.  I don't think it's completely correct yet, but it's
4402         getting there.
4403
4404 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
4405
4406         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
4407         random + 5 for width and height. If people want padding,
4408         they should add padding. (Note the +5 isn't padding
4409         that will always appear - it just appears in the case
4410         where the widget is allocated it's requisition.)
4411         (#51018, Janet Davis)
4412
4413 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
4414
4415         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
4416         the structure for future expansion.
4417
4418 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
4419
4420         Patch from HideToshi Tajima (#51922)
4421         
4422         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
4423
4424         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
4425         set_use_preedit().
4426         
4427         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
4428         to destroy the input context because we change the
4429         client window or use_preedit, make sure we empty
4430         the preedit string.
4431
4432 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
4433
4434         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
4435         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
4436         proposed ordering of buttons with [OK] in the lower
4437         right hand corner. Patch from Gregory Merchan,
4438         #56331.
4439
4440 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
4441
4442         * gtk/gtklabel.c (gtk_label_select_region_index): remove
4443         extraneous gtk_label_clear_layout (label)
4444
4445 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4446
4447         * tests/makefile.msc, gtk/makefile.msc.in: Removed
4448         -DGTK_DISABLE_COMPAT_H.
4449
4450         * docs/Changes-2.0.txt:
4451         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
4452
4453         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
4454
4455 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
4456
4457         * examples/**/Makefile.am: Convert to use pkg-config
4458         rather than gtk-config. (#53375, Skip Montanaro)
4459
4460 2001-11-02  Matt Wilson  <msw@redhat.com>
4461
4462         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
4463         broken unused, non-compiling, static function.
4464
4465 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
4466
4467         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
4468         Iterate through children of the action area, not of
4469         the vbox. (#58278, Sergey Kuzminov)
4470
4471 2001-11-01  Havoc Pennington  <hp@pobox.com>
4472
4473         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
4474         order to remove a workaround in Nautilus that forced
4475         GTK_ENABLE_BROKEN
4476
4477         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
4478
4479 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
4480
4481         * gtk/gtkrange.c: Patch from George Lebl to 
4482         fix division by zero for full scroll bars. (#62114)
4483
4484 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
4485
4486         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
4487         around gtk_widget_event() if we are going to
4488         set a flag afterwards. (#63464)
4489
4490 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
4491
4492         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
4493         Actually add the missing/broken image icon as the
4494         image for the "missing image" stock icon.
4495
4496 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
4497
4498         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
4499         Set a reasonable default height for the window.
4500
4501         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
4502         bug where subsequent '-' weren't converted to '_'.
4503         (#59550, Matthias Clasen)
4504
4505         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
4506         justify the Help menu - just include a comment on
4507         how to do it. (#63539,  Marius Andreiana)
4508
4509         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
4510         list GTK_ICON_SIZE_INVALID.
4511
4512         * demos/gtk-demo/stock_browser.c: Show the biggest available
4513         size, not a fixed size. (Often reported, including #63539, 
4514         Marius Andreiana)
4515
4516 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
4517
4518         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
4519         #59583
4520
4521         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
4522         warning.
4523
4524 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
4525
4526         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
4527         (Daniel Elstner).
4528
4529 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
4530
4531         * gtk/gtkimcontext.[ch]: Add:
4532           - A ::retrieve_surrounding signal that asks the widget for
4533             context around the insertion point.
4534           - A ::delete_surrounding signal that asks the widget to 
4535             delete context aroudn the insertion point.
4536           - gtk_im_context_set_context() for widgets to set context
4537             around the insertion point in response to ::retrieve_context.
4538           - gtk_im_context_get_context() for context to get context
4539             around the insertion point
4540
4541         * gtkmarshal.list: Add BOOL:INT,INT
4542
4543         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
4544         set_surrounding() methods, and the ::retrieve_surrounding /
4545         ::delete_surrounding signals.
4546
4547         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
4548         GtkIMContext::retrieve_surrounding / ::delete_surrounding
4549         signals.
4550
4551 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
4552
4553         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
4554         it's amazing how well things work sometimes, even when they're
4555         completely wrong.
4556
4557         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
4558         where you could try to collapse a node w/o it having children.
4559
4560         (gtk_tree_view_class_init): remove Shift L<->R as they already
4561         existed for expand/collapse.
4562
4563 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
4564
4565         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
4566         found by Matt Wilson.
4567
4568 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
4569
4570         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
4571         Control, and Shift|Control L<->R, #63475
4572
4573 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
4574
4575         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
4576         infinite loop noticed by yosh.
4577
4578 2001-11-01  Michael Meeks  <michael@ximian.com>
4579
4580         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
4581         GTK_REALIZED flag so we don't re-enter when we are
4582         destroyed from the plug side.
4583
4584 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
4585
4586         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
4587         Add a "menu" property and notify on it. (#62798,
4588         Padraig O'Briain)
4589
4590         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
4591         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
4592         Fix set_text to take a gchar, not a guchar, and to have 
4593         a len argument.
4594
4595 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
4596
4597         * gtk/gtkstock.c: fix typo to make it compile
4598
4599 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
4600
4601         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
4602         the widget is insensitive, draw the text insensitively, #63306
4603
4604 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
4605
4606         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
4607
4608 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
4609
4610         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
4611         gtk_selection_data_set_tree_row, #60218
4612         (gtk_tree_get_row_drag_data): rename
4613         gtk_selection_data_get_tree_row, #60218
4614
4615         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
4616         get this right, after the third try, #63122.
4617
4618 2001-10-31  jacob berkman  <jacob@ximian.com>
4619
4620         * gdk/gdkselection.h (GDK_TARGET_STRING): 
4621         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
4622         for Xatoms (and not using the XA_* macros)!
4623
4624 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
4625
4626         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
4627         gtk_window_get_focus() getter to determine the currently
4628         focused widget within the window. (#63145, request
4629         from Damian Ivereigh)
4630
4631 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
4632
4633         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
4634
4635         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
4636         GTK_SELECTION_NONE enum.
4637         (_gtk_tree_selection_internal_select_node): ditto
4638
4639         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
4640         constness.
4641
4642         * gtk/gtkcellrenderertoggle.c: more yummy constness.
4643
4644         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
4645         if mode == GTK_SELECTION_NONE
4646
4647 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
4648
4649         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
4650         "cursor_changed" signal, #62850.
4651
4652 2001-10-31  Matt Wilson  <msw@redhat.com>
4653
4654         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
4655         allocating the treedatalist, zero it to make sure the values are
4656         cleared from any garbage that was in this chunk.
4657
4658 2001-10-31  Murray Cumming  <murrayc@usa.net>
4659
4660         * gtk/cellrenderertext.h: "edited" default signal handler
4661         gchar* args are now const.
4662         gtk/cellrenderertoggle.h: "toggled" default signal handler
4663         gchar* arg is now const.
4664         Also changed other signal handlers for "edited" and "toggled" to
4665         have the same signature.
4666
4667 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
4668
4669         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
4670         rewrite.  Static models now totally work.  I'm not 100% sure about
4671         row_inserted and row_changed, but I'll get those later.
4672
4673 2001-10-30  Sven Neumann  <sven@gimp.org>
4674
4675         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
4676         output for configure --help.
4677
4678 2001-10-30  Havoc Pennington  <hp@pobox.com>
4679
4680         * gtk/gtktextview.c (changed_handler): Update the IM spot location
4681         here, if text was invalidated in the visible area, because the
4682         scroll offset doesn't normally change in that case, and the mark
4683         isn't set, just implicitly moved over as text is added/removed
4684         
4685 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
4686
4687         * gtk/gtkseparatormenuitem.c: Code cleanup.
4688         (gtk_separator_menu_item_class_init): Fix bugs in this code.
4689
4690 2001-10-29  jacob berkman  <jacob@ximian.com>
4691
4692         * gdk/Makefile.am (LDFLAGS): 
4693         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
4694         LDFLAGS, so put win32 flags in here
4695
4696 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
4697
4698         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
4699         I can't believe this took this long to fix.
4700
4701 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
4702
4703         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
4704         reordered signal.
4705
4706 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
4707
4708         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
4709         the focus to the fileop entry for create dir / rename
4710         file. (#62838)
4711
4712 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
4713
4714         * configure.in: Don't use AC_CHECK_FILE to check for a 
4715         file since it always spits warnings about cross compilation,
4716         use -f instead. It's not like we cross compile properly
4717         anyways.
4718
4719         * configure.in (gtktargetlib): Move call to AC_PROG_CC
4720         to suppress autoconf warning.
4721
4722         * acconfig.h: Add some missing #undefs from recent
4723         Win32 additions.
4724
4725 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
4726
4727         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
4728         when we didn't find it. (#62944, Eric Lemings)
4729
4730         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
4731         sign in assignment. (#63209, Arkadiusz Miskiewicz)
4732
4733 2001-10-29  Anders Carlsson  <andersca@gnu.org>
4734
4735         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
4736         the buttons size request before using it. Fixes #61696.
4737
4738 2001-10-29  Tor Lillqvist  <tml@iki.fi>
4739
4740         * README.win32: Updates.
4741
4742         * gtk-zip.sh.in: New file, used to build distribution package for
4743         Windows.
4744
4745         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
4746         applicable with GDKVAR.
4747
4748         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
4749         Wintab library.
4750
4751         * gdk/win32/gdkwin32.h
4752         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
4753         X11 headers better, and to enable gdkwin32.h to be installed and
4754         included from applications, but not the *-win32.h headers.
4755
4756         * gdk/win32/*.c: Corresponding small changes, simplifications of
4757         #includes.
4758         
4759         * gdk/win32/gdkregion-win32.c: Remove.
4760
4761         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
4762
4763         * gdk/win32/gdkfont-win32.c
4764         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
4765
4766         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
4767         GDK_NONE values into hash table.
4768
4769         * gtk/gtk.def: Update.
4770
4771         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
4772         gethostname().
4773
4774         * gtk/gtkmain.c 
4775         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
4776         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
4777         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
4778         g_win32_get_package_installation_subdirectory() with the actual
4779         DLL name saved above. Redefine above directory name macros to call
4780         these functions. Remove some ifdefs.
4781
4782         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
4783         variable for export on Win32) also to the _vars file.
4784
4785         Changes for autoconfiscated build on Win32, and addition of Win32
4786         backend to the related files:
4787         
4788         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
4789         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
4790         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
4791         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
4792         win32 target, using pangowin32. Don't use the
4793         -export-symbols-regex option on Win32, we use .def files to list
4794         exported symbols. Check <winsock.h> (for gethostname() in
4795         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
4796         prevent premature m4 expansion.
4797
4798         * acconfig.h: Add HAVE_WINTAB.
4799
4800         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
4801         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
4802         MS_LIB_AVAILABLE, build MS import library. Install the import
4803         libraries. If HAVE_WINTAB, link with the Wintab library.
4804
4805         * gdk/win32/Makefile.am: Actually enable building the win32
4806         objects here, not just list all files in EXTRA_DIST. Link in the
4807         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
4808         copy the Wintab library into the .libs directory. 
4809
4810         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
4811         name of the GDK DLL when fetching the icon. Use the HMODULE saved
4812         in gdk_dll_hinstance by DllMain.
4813
4814         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
4815         build/win32/lt-compile-resource script.
4816
4817         * gdk/win32/rc/gdk.rc.in
4818         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
4819
4820         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
4821         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
4822         file. Install import libraries.
4823
4824 2001-10-29  Anders Carlsson  <andersca@gnu.org>
4825
4826         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
4827
4828 2001-10-28  Hans Breuer  <hans@breuer.org>
4829
4830         * gdk/gdk.c gdk/gdkevents.c
4831           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
4832           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
4833           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
4834           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
4835           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
4836           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
4837           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
4838         static correct-ness, underscore prefixing of library internal 
4839         functions
4840         (applied the undisputed and the win32 part. Of the latter 
4841          I'm probably the one who will change it back again, if Owen
4842          decides that the Gdk*Impl types should not be private to Gdk)
4843
4844         * gdk/gdk.def : added the remaining exported functions
4845
4846 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
4847
4848         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
4849         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
4850         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
4851
4852 2001-10-28  jacob berkman  <jacob@ximian.com>
4853
4854         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
4855         gtk_settings_get_default() here as that requires an X connection
4856         (which breaks doc building with no X connection) and is not
4857         multihead safe
4858         (gtk_color_selection_init): delay palette loading until realize
4859         time
4860         (gtk_color_selection_realize): load the palette, and initialize
4861         the global palette if it hasn't been already
4862
4863         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
4864         visual/cmap fields of klass->info since they are gone
4865         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
4866         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
4867         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
4868
4869         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
4870         cmap fields
4871         (gtk_preview_get_visual):
4872         (gtk_preview_get_cmap): mark as deprecated
4873
4874         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
4875         changes
4876
4877 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
4878
4879         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
4880         structure to have GObject not GtkObject as
4881         parent_instance. (Jeff Franks.)
4882
4883 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
4884
4885         * gdk/x11/gdkinput.c: Typo fix.
4886
4887 2001-10-26  Havoc Pennington  <hp@pobox.com>
4888
4889         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
4890         update_im_spot_location here explicitly
4891         (gtk_text_view_reset_im_context): don't update the spot location
4892         here
4893
4894 2001-10-27  Anders Carlsson  <andersca@gnu.org>
4895
4896         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
4897         This fixes #62942.
4898
4899         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
4900         Clarify that we're returning a spin button in the _new function.
4901         This fixes #54097.
4902         
4903 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
4904
4905         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
4906         Unfortunately, people apparently erroneously connect
4907         to ::clicked for GtkToggleButton and expect
4908         they know what happened in the default signal handler
4909         instead of appropriately connecting to notification
4910         signal ::toggled. When the revolution comes, such
4911         people will be first against the wall.
4912
4913         We'll just have to go back to the old less-reliable
4914         set-it-back hacks for handling model-view check
4915         buttons and radio buttons. :-(. 
4916
4917 2001-10-27  Hans Breuer  <hans@breuer.org>
4918
4919         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
4920           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
4921           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
4922           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
4923           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
4924           gtk/gtktreestore.c gtk/gtkvbbox.c : 
4925         to simplify parsing for exported functions:
4926         - made implementation signature static, when the local 
4927           prototype already was
4928         - put the functions return value on it's own line
4929         - added as space between the function name and the 
4930           opening bracket
4931
4932         * gtk/gtk.def : added the remaining exported functions
4933
4934 2001-10-27  Anders Carlsson  <andersca@gnu.org>
4935
4936         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
4937         Add note about width having to be greater than 0. This fixes
4938         #55574. 
4939
4940         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
4941         Fix docs to say previous instead of next.
4942         (gtk_text_iter_backward_word_start): Likewise.
4943         This fixes bug #62980.
4944
4945         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
4946         that the valid width is in range 0-65535 pixels. Fixes bug 
4947         #56754.
4948
4949         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
4950         a dot in the documentation. Fixes bug #62632.
4951
4952         * gdk/x11/gdkmain-x11.c: Replace int and guint with
4953         long and gulong in some places to make the code 64-bit
4954         clean.
4955         (_gdk_windowing_init_check): Replace gint with gulong.
4956         This patch was made by George Lebl and fixes bug #62113.
4957
4958         * tests/testgtk.c (create_range_controls): Don't set a 
4959         fixed height on the hscale widget. This fixes "bug" 
4960         #55840.
4961         (create_window_states): Set up destroy signals so that
4962         all windows will be destroyed when one is. This fixes 
4963         bug #58133.
4964
4965 2001-10-26  Anders Carlsson  <andersca@gnu.org>
4966
4967         * gtk/gtktreeview.c: 
4968         (gtk_tree_view_class_init): Create new "indent_expander"
4969         style property.
4970
4971         (gtk_tree_view_get_arrow_xrange): Add a tree argument
4972         to the function since the xrange can change depending
4973         on where in the tree we are. 
4974         
4975         (coords_are_over_arrow): Update function call to
4976         gtk_tree_view_get_arrow_xrange.
4977         (gtk_tree_view_draw_arrow): Likewise.
4978         
4979         (gtk_tree_view_real_expand_collapse_cursor_row):
4980         Call real_{expand|collapse}_row, so that we'll have an
4981         animation.
4982
4983 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
4984
4985         * tests/Makefile.am: fixed a small typo
4986
4987 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
4988
4989         * demos/gtk-demo/list_store.c (create_model): Anders
4990         Carlsson suggested to use G_N_ELEMENTS here
4991
4992 2001-10-26  Sven Neumann  <sven@gimp.org>
4993
4994         * gtk/gtkbutton.[ch]
4995         * gtk/gtkdnd.c: fixed inline comments
4996         
4997         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
4998
4999 2001-10-26  Hans Breuer  <hans@breuer.org>
5000
5001         * gdk-pixbuf/gdk_pixbuf.def : 
5002         * gdk/gdk.def : 
5003         * gtk/gtk.def : updated externals
5004
5005         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
5006         gdk_window_lookup implementation. It already was in
5007         gdk/win32/gdkwindow-win32.c
5008
5009         * gdk/win32/gdkproperty-win32.c : made it compile again
5010         after GdkAtom API change
5011
5012         * gtk/gtk/makefile.msc.in : updated
5013
5014 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
5015
5016         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
5017         require GLib 1.3.10.
5018
5019         * NEWS: updates.
5020
5021 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
5022
5023         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
5024         invalid nodes.
5025          (_gtk_rbnode_rotate_right): Ditto.
5026          (_gtk_rbtree_node_mark_invalid): New function.
5027          (_gtk_rbtree_node_mark_valid): New function.
5028
5029         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
5030         GObject, not a GtkObject.
5031         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
5032         correct.
5033         (gtk_tree_model_sort_row_deleted): ditto.
5034         (gtk_tree_model_sort_{un,}ref_node): Fix.
5035
5036         * gtk/gtktreeview.c: Protean incremental reflow support (commented
5037         out)
5038
5039         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
5040         to const char *key.
5041
5042         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
5043         Important 1 line fix to fix a lot of refcounting woes.
5044
5045 2001-10-25  Matt Wilson  <msw@redhat.com>
5046
5047         * gtk/gtktextview.c (gtk_text_view_destroy): call
5048         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
5049         now invalidates) so that we remove our idle functions.
5050         (gtk_text_view_destroy_layout): remove the first_validate_idle as
5051         well.
5052
5053         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
5054         the 'indent' property is G_MININT to G_MAXINT.  Don't use
5055         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
5056         instead.
5057
5058 2001-10-24  Anders Carlsson  <andersca@gnu.org>
5059
5060         * gtk/gtktreeview.c: 
5061         (gtk_tree_view_real_expand_row): add an animate argument
5062         (gtk_tree_view_real_collapse_row): likewise
5063         
5064         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
5065         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
5066         (gtk_tree_view_collapse_row): update functions that call
5067         real_{expand|collapse}_row to set the animate argument 
5068         accordingly.
5069         
5070 2001-10-24  Alex Larsson  <alexl@redhat.com>
5071
5072         * gdk/linux-fb/gdkfont-fb.c:
5073         Update to new Pango APIs
5074
5075         * gdk/linux-fb/gdkproperty-fb.c:
5076         Update to new GdkAtom APIs
5077
5078         * gdk/linux-fb/gdkwindow-fb.c:
5079         Remove warnings
5080
5081 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
5082
5083         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
5084
5085 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
5086
5087         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
5088         s_path as a child path
5089
5090 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
5091
5092         * gtk/gtktreemodelsort.c: more changes in an attempt to get
5093         it right. It's not yet ready for general consumption.
5094
5095         * tests/treestoretest.c: add a button and entry for the new
5096         iter_change function
5097         (iter_change): new function, to test
5098         the row_changed signal implementation of the GtkTreeModelSort
5099
5100         * tests/testtreesort.c: cleanups, changes to test more features
5101         of the GtkTreeModelSort at once
5102
5103 2001-10-24  Havoc Pennington  <hp@redhat.com>
5104
5105         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
5106         remove hack to strip off the bogus newline, since we killed the
5107         bogus newline; fixes #61779
5108
5109 2001-10-24  Havoc Pennington  <hp@redhat.com>
5110
5111         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
5112         create layout if we didn't have one
5113         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
5114         as appropriate, avoids blanking the screen 
5115         (gtk_text_view_invalidate): new function to do invalidation,
5116         containing old guts of invalidated_handler
5117
5118 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
5119
5120         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
5121         dreadful tooltips.
5122
5123 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
5124
5125         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
5126         set window->parent (except or the root window itself); if 
5127         the window's parent is not a GdkWindow, or is a window of 
5128         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
5129
5130         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
5131         windows of type GDK_WINDOW_FOREIGN.
5132
5133 2001-10-24  Havoc Pennington  <hp@pobox.com>
5134
5135         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
5136         the front of a segment, use the "slow" technique for moving
5137         backward, so we don't mess up the any_segment field in the iter. 
5138         Fixes #57707
5139
5140         * tests/testtextbuffer.c: add code to detect #57707, to avoid
5141         regression
5142
5143 2001-10-23  Havoc Pennington  <hp@redhat.com>
5144
5145         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
5146         if selection contains some editable text, #60975
5147         (gtk_text_view_scroll_to_iter): remove warning about scrolling
5148         prior to map; it should actually be OK to do so in many cases, 
5149         it would be nice to warn about scrolling when many lines have
5150         height 0, but I don't know what to do about that. Perhaps 
5151         move part of flush_scroll into this function? comment added 
5152         to consider this.
5153
5154 2001-10-23  Havoc Pennington  <hp@redhat.com>
5155
5156         * gtk/gtktextview.c (changed_handler): Correctly keep the same
5157         text on the top of the screen, considering that the changed region
5158         may have overlapped the first paragraph. Should fix msw's "text
5159         widget scrolled to wrong place on map" bug, and probably some
5160         other scrolling cases as well.
5161         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
5162         instead of some random value
5163
5164         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
5165         grab_focus, so #59708 is really fixed
5166
5167 2001-10-24  Anders Carlsson  <andersca@gnu.org>
5168
5169         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
5170         (popup_targets_received): Call append_action_signal with stock items
5171         
5172         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
5173         (gtk_label_do_popup): Call append_action_signal with stock items
5174         
5175         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
5176         (popup_targets_received): Call append_action_signal with stock items
5177
5178 2001-10-23  Havoc Pennington  <hp@redhat.com>
5179
5180         * gtk/gtktextview.c (changed_handler): queue a resize here; will
5181         temporarily slow down the widget a lot, until we figure out how to
5182         optimize to avoid full redraw everytime we queue a resize.
5183
5184 2001-10-23  Havoc Pennington  <hp@redhat.com>
5185
5186         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
5187         0 and char_len == 0, bug #61729
5188
5189 2001-10-23  Havoc Pennington  <hp@redhat.com>
5190
5191         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
5192         return value, #61714 (Vitaly Tishkov)
5193         (gtk_text_iter_backward_sentence_starts): ditto
5194         (gtk_text_iter_backward_word_starts): ditto
5195         (gtk_text_iter_forward_word_ends): ditto
5196         (gtk_text_iter_forward_sentence_ends): ditto
5197         (gtk_text_iter_backward_cursor_positions): ditto
5198
5199 2001-10-23  Havoc Pennington  <hp@redhat.com>
5200
5201         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
5202         fix from Dov Grobgeld, #61858
5203
5204 2001-10-23  Havoc Pennington  <hp@redhat.com>
5205
5206         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
5207         Update IM spot location at appropriate times, #50626
5208         (Hidetoshi Tajima)
5209
5210 2001-10-23  Havoc Pennington  <hp@redhat.com>
5211
5212         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
5213         on grab focus, unless it's caused by button click, #59708
5214
5215 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
5216
5217         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
5218
5219         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
5220         G_CONST_RETURN. (Murray Cumming)        
5221
5222         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
5223         Make G_CONST_RETURN.
5224
5225         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
5226         results of g_get_home_dir().
5227
5228         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
5229         copy. Storing the return from gtk_entry_get_text() is evil.
5230
5231         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
5232         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
5233         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
5234         gtk/gtksignal.c: Add const.
5235
5236         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
5237
5238         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
5239         if we are setting them on private widgets.
5240
5241         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
5242         Duplicate entry->text before setting it as object data.
5243
5244 2001-10-22  Havoc Pennington  <hp@redhat.com>
5245
5246         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
5247         up a char from the end iterator, fixes #61859 ("can't put cursor
5248         at the end of the buffer")
5249
5250         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
5251         to work with delimiters other than newline.
5252
5253         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
5254         get_bytes_in_line
5255
5256         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
5257         last line, since the newline is no longer counted.
5258         (gtk_text_iter_get_bytes_in_line): ditto
5259
5260 2001-10-22  Havoc Pennington  <hp@redhat.com>
5261
5262         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
5263         #58290 would trigger if it reappeared, I think
5264
5265 2001-10-22  Havoc Pennington  <hp@redhat.com>
5266
5267         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
5268         add temporary code to dump btree contents on assertion failure
5269         described in #62656
5270         
5271         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
5272         assertions that we're getting the right end iter segment
5273
5274         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
5275         verify that we aren't on the end iterator after moving 
5276         forward one segment - fixes return value in an obscure case. 
5277         Also, some trivial code cleanup/rearranging.
5278         
5279 2001-10-22  Havoc Pennington  <hp@redhat.com>
5280
5281         * gtk/gtktextlayout.h: add a #error unless you define
5282         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
5283
5284         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
5285         
5286 2001-10-22  Havoc Pennington  <hp@redhat.com>
5287
5288         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
5289         #62365
5290
5291 2001-10-22  Havoc Pennington  <hp@redhat.com>
5292
5293         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
5294         #62436
5295
5296 2001-10-22  Havoc Pennington  <hp@redhat.com>
5297
5298         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
5299         #62366
5300
5301 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
5302
5303         * gtk/gtklabel.c: Add cursor-position, selection-bound 
5304         properties. (#62148, reported by Padraig O'Briain)
5305
5306         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
5307         to cursor_position. (1.3.x addition, text_position is an awful
5308         name.) Make cursor_position read-only to avoid sticky questions
5309         of interaction with selection_bound. (#62636, reported by
5310         Padraig O'Briain)
5311
5312 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
5313
5314         Fixing popup menus to have "Paste" sensitized correctly. Original
5315         patches from Damian Ivereigh, much mangled.
5316
5317         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
5318         gtk_selection_data_targets_include_text(). (#60854)
5319
5320         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
5321         the clipboard has text" function gtk_clipboard_wait_is_text_available.
5322         (#60854)
5323
5324         * gtk/gtkentry.c: Only enable the paste item if the clipboard
5325         contains text. (#60973)
5326
5327         * gtk/gtktextview.c: Only enable the paste item if the clipboard
5328         contains text. (#60975)
5329
5330 2001-10-22  Havoc Pennington  <hp@redhat.com>
5331
5332         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
5333         "height_lines" and "width_columns" properties, it doesn't make
5334         sense to set the size request on a text view really. #62103
5335
5336 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
5337
5338         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
5339         g_node_depth is broken, and that it's not worth being consistent
5340         with it.
5341
5342 2001-10-22  Havoc Pennington  <hp@redhat.com>
5343
5344         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
5345         docs, #61777
5346         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
5347         change the two boolean args to a flags field, so we can extend 
5348         to add case insensitive, regexp searches later. #61852
5349
5350 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
5351
5352         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
5353         reflect reality, #62810
5354
5355 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
5356
5357         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
5358
5359         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
5360         system.  Instead of having a window the size of the tree, we have
5361         a window the size of widget->allocation, and simply draw with the
5362         offset.
5363         (coords_are_over_arrow): ditto.  Move to window coordinates.
5364         (do_prelight): ditto
5365         (do_unprelight): ditto
5366
5367         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
5368         Minor fix from Kristian Rietveld to fix unsorted case.
5369
5370 2001-10-22  jacob berkman  <jacob@ximian.com>
5371
5372         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
5373         a PIXMAP cell (fixes crash when using PIXTEXT cells)
5374
5375 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
5376
5377         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
5378         (#58768, Vitaly Tishkov)
5379         
5380         * gtk/gtkobject.h: Deprecate with abandon. 
5381         (#61942, Vitaly Tishkov, Matthias Clasen)
5382
5383         * gtk/gtksignal.h: Deprecate everything.
5384
5385         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
5386         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
5387         (#61942, Matthias Clasen)
5388
5389         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
5390         Havoc Pennington)
5391
5392         * gtk/gtkitemfactory.h: Deprecate compat functions
5393         for GtkMenuFactory code. (#62071)
5394
5395         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
5396         gdk_draw_text,gdk_draw_text_wc. (#62071)
5397
5398 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
5399
5400         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
5401         g_thread_init(), we don't want to link to -lgthread if we don't
5402         have to.
5403
5404 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
5405
5406         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
5407         Add a function, gdk_threads_init() that must be explicitely 
5408         called to enable the GDK thread mutex.
5409
5410 2001-10-22  Jakub Steiner <jimmac@ximian.com>
5411
5412         * gtk/stock-icons/stock_stop.png: no body parts
5413         
5414 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
5415
5416         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
5417         problem with g_return_if_fail return value.
5418
5419         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
5420         virtual atom code from the gdk-multihead branch, removing the per-display
5421         part. Virtualizing atoms needs to be done now to prevent compat
5422         breakage in direct Xlib accessing code in the future. (#62208)
5423  
5424         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
5425         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
5426  
5427         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
5428         an opaque pointer type so the compiler catches attempts
5429         to mingle it with X atoms.
5430
5431         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
5432           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
5433           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
5434           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
5435           tests/testdnd.c,tests/testselection.c: 
5436         Fix up for above atom changes.
5437
5438         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
5439         now have the ability to add custom predefines.
5440
5441         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
5442         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
5443         to gtk_clipboard_get().
5444
5445         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
5446         for GdkAtom => pointer change.
5447
5448         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
5449         atoms, fix for GdkAtom => pointer change.
5450
5451 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
5452
5453         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
5454         new function spin_button_get_arrow_size() instead.
5455
5456         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
5457         arrow was hardcoded, it's now variable.
5458
5459         Fixes bug #50200
5460
5461 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
5462
5463         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
5464         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
5465         for those
5466
5467 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
5468
5469         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
5470         in favor of g_signal_*, gtk_object_* in favor of 
5471         g_object_*.
5472
5473 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
5474
5475         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
5476         from GObject now, we have to use the g_object_* functions, not
5477         gtk_object_*.
5478
5479 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
5480
5481         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
5482         nailed down now (this code is not yet ready for general consumption)
5483
5484 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
5485
5486         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
5487         for use_align
5488
5489 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
5490
5491         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
5492
5493 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
5494
5495         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
5496         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
5497         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
5498         GObject, not GtkObject. (#62621)
5499
5500 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
5501
5502         * tests/testsocket.c: Remove now useless include of unistd.h,
5503         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
5504         
5505 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
5506
5507         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
5508         Pango font API. #61933. (Untested, even for compilation.)
5509
5510 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
5511
5512         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
5513         export gtk_disable_setlocale(). (Caught by Sven Neumann)
5514
5515 2001-10-18  Havoc Pennington  <hp@redhat.com>
5516
5517         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
5518
5519 2001-10-18  Havoc Pennington  <hp@redhat.com>
5520
5521         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
5522         to GTK_RUN_LAST, #50239
5523
5524 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
5525
5526         * gtk/gtkimmodule.c (match_locale):
5527         Support "*" for all locales with least priority
5528         when to select default im module, #58201
5529
5530 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
5531
5532         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
5533         Fix docs. (#61976)
5534  
5535         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
5536
5537         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
5538
5539         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
5540         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
5541         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
5542         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
5543         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
5544         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
5545         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
5546
5547         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
5548
5549         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
5550         Don't restrict the width of the spinbutton entry field 
5551         to 10 digits. (#58681)
5552
5553 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
5554
5555         * tests/testtreeflow.c: new test program for the tree.
5556
5557 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
5558
5559         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
5560         reported by (Oleg Maiboroda), #62600
5561
5562 2001-10-18  Michael Meeks  <michael@ximian.com>
5563
5564         * gtk/gtkentry.c (gtk_entry_set_property),
5565         (gtk_entry_get_property): impl 'text'
5566         (gtk_entry_class_init): add the 'text' prop.
5567         (gtk_entry_insert_text): notify 'text' changed.
5568         (gtk_entry_delete_text): ditto.
5569
5570 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
5571
5572         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
5573         Documentation updates.
5574
5575 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
5576
5577         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
5578         in truncating length of text to MAX_SIZE. (Found by 
5579         Padraig O'Briain, #62055)
5580
5581 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
5582
5583         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
5584         MNEMONIC_ACTIVATE; signal was changed a long time
5585         ago.
5586
5587         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
5588         Fix wrong return statement. (Reported by HideToshi
5589         Tajima and others.)
5590
5591         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
5592         left over select_all vfunc.
5593
5594 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
5595
5596         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
5597         a utility function to translate coordinates relative to
5598         one widget's allocation to coordinates relative to another
5599         widget's allocation.
5600
5601         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
5602         that:
5603          - only accepts external focus if there is no active
5604            member of the group or the button is active.
5605          - makes arrow keys move the active button as well
5606            as the focus
5607          - make tab tab out directly.
5608         This makes a radio button group act as a single focus location.
5609         (#53577).
5610         
5611         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
5612         it was only a small optimization that didn't matter and made
5613         things more complicated.
5614
5615         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
5616         sorter for FOCUS_TAB as we did for the other focus directions,
5617         sort by center of widgets, not upper-left corner. (Shouldn't
5618         matter in general.)
5619
5620         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
5621         from the different types of focusing: encapsulate sorting the
5622         widgets for the focus direction into one routine
5623         (gtk_container_focus_sort()) and then share the work of moving the
5624         focus between the different focus directions.
5625
5626         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
5627         work correctly with focus chains containing non-immediate
5628         children. Sorting was being done using allocation coordinates for
5629         each widget in the focus chain, and if there were intermediate
5630         window-widgets, these allocations would not be in the same
5631         coordinate system.
5632
5633 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
5634
5635         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
5636         mnemonic_activate function to option menu.
5637
5638 2001-10-15  Murray Cumming <murrayc@usa.net>
5639
5640         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
5641           Corrected the type names used in some calls to g_signal_new().
5642         
5643 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
5644
5645         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
5646         specs, use g_pattern_spec_equal() instead of direct field accesses.
5647         upon compressing two equal paths of the same type, the resulting
5648         priority has to be the maximum.
5649         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
5650         GtkPathPriorityType enum and make it a macro.
5651
5652 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
5653
5654         * gtk/gtkwidget.c: Fix some doc comments.
5655
5656 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
5657
5658         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
5659         on empty models.
5660
5661 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
5662
5663         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
5664         Remove stale gdk backend includes.
5665  
5666 2001-10-10  Michael Meeks  <michael@ximian.com>
5667
5668         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
5669         and value_in_list properties.
5670         (gtk_combo_set_value_in_list): notify change.
5671         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
5672
5673 2001-10-11  James Henstridge  <james@daa.com.au>
5674
5675         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
5676         that gtk+ can be built with automake 1.5 while not breaking
5677         things for automake 1.4.
5678
5679 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
5680
5681         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
5682         (#60606)
5683
5684         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
5685         to disable calling setlocale (LC_ALL, "").
5686
5687         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
5688         docs that this function is not typically useful.
5689
5690         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
5691         Automatically initialize GDK for the current locale
5692         on gdk_init(). Don't reset locale to C when
5693         XSupportsLocale() fails.
5694
5695         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
5696         useless checks for UTF-8 locale breakage that mattered
5697         only for X.
5698
5699         * examples/calendar/calendar.c
5700         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
5701         gtk_set_locale().
5702
5703         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
5704         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
5705
5706 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
5707
5708         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
5709
5710         Fixes bug #61904
5711
5712 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
5713
5714         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
5715         new function, #61923
5716         (gtk_tree_selection_path_is_selected): Ditto
5717
5718 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
5719
5720         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
5721         not a GtkObject.  Thanks andersca.
5722
5723         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
5724
5725 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
5726
5727         * gtk/gtktreeviewcolumn.c
5728         (gtk_tree_view_model_sort_column_changed): fix broken code.
5729
5730 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
5731
5732         * gtk/gtkselection.c: s/succesfully/successfully/g
5733
5734 2001-10-08  Havoc Pennington  <hp@pobox.com>
5735
5736         * demos/gtk-demo/stock_browser.c: remove unused enum
5737
5738         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
5739         pass the current selection state of the node in to the user
5740         selection func
5741
5742 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
5743
5744         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
5745         non-existent function gdk_x11_cursor_get_xid 
5746         by gdk_x11_cursor_get_xcursor.
5747
5748 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
5749
5750         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
5751         warning.
5752
5753         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
5754         unref nodes, #okay61676
5755
5756         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
5757         to the property; no need to clear the other columns.  Also, we go
5758         to 'unsorted' if the model supports it.
5759
5760 2001-10-05  Sven Neumann  <sven@gimp.org>
5761
5762         * demos/testpixbuf-save.c
5763         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
5764         feature.
5765
5766 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
5767
5768         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
5769         destroy the search dialog
5770
5771         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
5772         added check to prevent creation of a search dialog if there's
5773         already one around
5774
5775         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
5776         it instead of "search-dialog" (when getting/setting the search dialog
5777         widget).
5778
5779 2001-10-05  Jakub Steiner <jimmac@ximian.com>
5780
5781         * gtk/stock-icons/stock_broken_image.png: broken images icon
5782
5783 2001-10-04  Havoc Pennington  <hp@pobox.com>
5784
5785         Fix #56586
5786         
5787         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
5788         accelerator setting here...
5789
5790         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
5791         because we try to use it when a menu bar hasn't necessarily been 
5792         initialized.
5793
5794 2001-10-03  Havoc Pennington  <hp@redhat.com>
5795
5796         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
5797         it previously verified incorrect behavior
5798
5799         Fixes for #61565
5800         
5801         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
5802         off the end
5803         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
5804         the end
5805         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
5806         the end
5807         (gtk_text_iter_forward_lines): if on the last line, move to end of
5808         it
5809
5810         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
5811         don't return a line off the end
5812
5813 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
5814
5815         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
5816         functions to do_insert_text and do_delete_text, add signals
5817         insert_text, delete_text and changed
5818
5819         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
5820         and changed. Updates to match new situation.
5821
5822         * gtk/gtkspinbutton.c: updates to match new situation
5823
5824         * gtk/gtkoldeditable.h: remove signals changed, insert_text
5825         and delete_text
5826
5827         * gtk/gtkoldeditable.c: updates to match new situation
5828
5829         * gtk/gtktext.c: updates to match new situation
5830
5831         Fixes bug #59803
5832
5833 2001-10-03  Havoc Pennington  <hp@redhat.com>
5834
5835         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
5836         position
5837
5838         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
5839         changes
5840
5841         * tests/testtextbuffer.c (logical_motion_tests): updates
5842
5843 2001-10-03  jacob berkman  <jacob@ximian.com>
5844
5845         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
5846         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
5847         * gtk/gtksettings.c (apply_queued_setting): 
5848         * gtk/gtkmain.c (gtk_init_check): 
5849         * gtk/gtkcontainer.c (gtk_container_child_get_property):
5850         s/retrive/retrieve/
5851
5852 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
5853
5854         * gtk/gtktreemodelsort.[ch]: preparation for surgery
5855         * tests/testtreesort.c: ditto
5856
5857 2001-10-02  Havoc Pennington  <hp@redhat.com>
5858
5859         Throughout: assorted docs
5860         
5861         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
5862         gdk_window_set_geometry_hints() should be used instead.
5863
5864         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
5865         document them
5866
5867         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
5868         seem to exist in any .c files
5869
5870         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
5871         g_return_if_fail (pixel < colormap->size).
5872
5873 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
5874
5875         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
5876         NULL for @target_list to mean, use
5877         gtk_drag_dest_get_target_list (widget).
5878
5879         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
5880         drop could hang when calling gtk_drag_finish with 
5881         success == FALSE and del == TRUE.
5882
5883         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
5884         drops without a matching target found would propagate
5885         to the parent widget rather than being rejected.
5886
5887         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
5888         Use text_view->dnd_mark instead of mark name to be
5889         consistent with the rest of the code.
5890
5891         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
5892         pendantically correct for a drop-only-in-some-places
5893         widget. (Check whether you can insert in drag_drop,
5894         not just in drag_motion ... matters in theory, and
5895         for Motif drag and drop in practice.)
5896
5897         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
5898         Damian Ivereigh to not allow drops on non-editable
5899         entries. (#61124)
5900
5901         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
5902         text to be moved from a non-editable entry.
5903         
5904 2001-10-03  James Henstridge  <james@daa.com.au>
5905
5906         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
5907         s/width/fixed_width/ in order to get things to compile.
5908
5909 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
5910
5911         * gtk/gtkcelleditable.c: docs
5912
5913         * gtk/gtktreemodel.h: more docs.
5914
5915 2001-10-02  Havoc Pennington  <hp@redhat.com>
5916
5917         * gdk/x11/gdkwindow-x11.c: docs
5918
5919         * tests/testtextbuffer.c (logical_motion_tests): add sentence
5920         boundary tests
5921
5922 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
5923
5924         * demos/gtk-demo/Makefile.am: add editable_cells.c,
5925         list_store.c and tree_store.c
5926
5927         * demos/gtk-demo/appwindow.c: remove tearoff item from
5928         File menu, put menubar and toolbar in handle boxes.
5929
5930         * demos/gtk-demo/genincude.pl: various changes to support trees
5931
5932         * demos/gtk-demo/main.c: various changes to support trees
5933
5934         * demos/gtk-demo/stock_browser.c: changed name of demo
5935         to Stock Item and Icon Browser, so geninclude.pl doesn't see
5936         it as child
5937
5938         * demos/gtk-demo/editable_cells.c: new file/demo
5939         * demos/gtk-demo/list_store.c: new file/demo
5940         * demos/gtk-demo/tree_store.c: new file/demo
5941
5942 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
5943
5944         * gtk/gtkrc.c gtk/gtksettings.c: 
5945         g_string_printfa => g_string_append_printf.
5946
5947 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
5948
5949         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
5950         and destroy handler.
5951
5952         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
5953
5954         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
5955         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
5956         Singh <yosh@gimp.org>.
5957
5958 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
5959
5960         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
5961         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
5962
5963         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
5964
5965 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
5966
5967         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
5968         scroll_to_cell delayed code to happen in size_allocate.
5969
5970         * gtk/gtkstyle.c (gtk_default_draw_expander): change
5971         prelight/normal arrow drawing.
5972
5973         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
5974
5975         * gtk/gtktreestore.c: refactor.
5976
5977 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
5978
5979         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
5980         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
5981         centers the child in relation to the to indicator height.
5982
5983 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
5984
5985         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
5986         correct
5987
5988 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
5989
5990         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
5991         property code using g_param_spec_int and changed from
5992         g_value_get_enum to g_value_get_int instead. Probably a better way
5993         to fix the problem :-)
5994
5995 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
5996
5997     * gtk/gtkcellrenderertext.c changed "weight" property type from 
5998       g_param_spec_int to g_param_spec_enum.
5999
6000 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
6001
6002         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
6003         fix: s/Wether/Whether/ in reorderable property description
6004
6005 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
6006
6007         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
6008         start editing when you select with a keyboard.
6009
6010         (gtk_tree_view_button_press_event): much more graceful now.
6011
6012         * gtk/gtkstyle.c: Draw togglebutton better.
6013
6014 2001-09-26  Havoc Pennington  <hp@redhat.com>
6015
6016         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
6017         of passing non-stock label in to gtk_dialog_new_with_buttons
6018
6019         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
6020         debugging updates
6021
6022         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
6023         are private
6024
6025         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
6026         exist, fall back to mnemonic label, not plain label, bug #61184
6027         
6028 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
6029
6030         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
6031         stupid and emitting the signal every time.
6032
6033         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
6034
6035 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
6036
6037        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
6038
6039        * contrib/gdk-pixbuf-xlib/Makefile.am: install
6040        gdk-pixbuf-xlib-2.0.pc.
6041
6042 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
6043
6044         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
6045         problem where menmonic wasn't removed properly when
6046         setting a label when there already is a label.
6047         Also, handle setting the tab label back to the same
6048         value. (#61160, #61161)
6049
6050         * gtk/gtkentry.c (paste_received): Patch from 
6051         Damian Ivereigh to replace selection if there is 
6052         one. (#61121)
6053
6054 2001-09-25  Darin Adler  <darin@bentspoon.com>
6055
6056         * tests/.cvsignore: Ignore new test program.
6057
6058 2001-09-25  Havoc Pennington  <hp@redhat.com>
6059
6060         * gtk/gtktextview.c: fix for #50317
6061         
6062 2001-09-25  Havoc Pennington  <hp@redhat.com>
6063
6064         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
6065         gtk_text_iter_can_insert
6066         
6067         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
6068
6069         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
6070          (gtk_text_iter_can_insert): new function to fix #60282, should
6071         also fix msw's "can paste into empty buffer" bug.
6072
6073         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
6074         "event object,"  #59091
6075
6076         * gtk/gtktextbtree.c: indentation fixes
6077
6078         * gtk/gtktextiter.c (find_by_log_attrs): fixes
6079
6080 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
6081
6082         * configure.in: Version 1.3.9, interface age 0, binary age 0.
6083
6084         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
6085
6086         * NEWS: Updates.
6087
6088 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
6089
6090         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
6091         function for drawing cursors between gtkentry/gtklabel/gtktextview.
6092         Should this be public? It has a bit of an odd interface, but
6093         custom editing widgets probably should be using it.
6094         Function will draw with wider width for taller cursors, and
6095         draws a little indicator arrow to indicate directoin for split 
6096         cursors.
6097
6098         * gtk/gtktextview.c: Add a "cursor_color" property.
6099
6100         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
6101         gtk_text_layout_draw().
6102
6103         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
6104         _gtk_draw_insertion_cursor().
6105
6106 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
6107
6108         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
6109         the behavior where you could turn family_set (etc) back on
6110         and get back the values you had before.
6111
6112         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
6113         g_string_ascii_up() rather than looping through the
6114         string ourself.
6115
6116 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
6117
6118         * gtk/gtktreeviewcolumn.c
6119         (gtk_tree_view_column_set_cell_renderer): Removed
6120         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
6121
6122         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
6123         Patch from Detlef Reichl
6124
6125 2001-09-25  Havoc Pennington  <hp@redhat.com>
6126
6127         * tests/testtextbuffer.c (line_separator_tests): Add tests for
6128         line separators, addresses bug #57428
6129
6130 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
6131
6132         * gtk/gtkentry.c: Make a GtkCellEditable
6133         (get_widget_window_size): Change to let it honor size_allocate
6134         when a CellEditable.
6135
6136         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
6137         editable changes.
6138         (gtk_tree_view_set_cursor): Now you can set the cursor
6139         horizontally, as well as start editing.
6140
6141         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
6142         code to look more like the other check buttons.
6143
6144         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
6145         Change the way we calculate cell size.
6146
6147         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
6148
6149         * demos/gtk-demo/sizegroup.c: Add mnemonics.
6150
6151         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
6152         Fix logic.
6153
6154         * gtk/gtkcellrenderertext.c: Change to be editable.
6155
6156         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
6157
6158         * test/testtreesort.c: Fix misspelling
6159
6160         * test/testreecolumns.c: Add mnemonics.
6161
6162         * test/testreeedit.c: New test program.
6163
6164 2001-09-25  Havoc Pennington  <hp@pobox.com>
6165
6166         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
6167         etc. docs about how these are not going to do what you want for 
6168         the X/win32 ports. Futile attempt to avoid a FAQ...
6169
6170 2001-09-24  James Henstridge  <james@daa.com.au>
6171
6172         * gtk/gtkmarshal.list (VOID): add marshal function types.
6173
6174         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
6175         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
6176         GTK_TYPE_POINTER.
6177         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
6178         with no-op copy/free functions.
6179
6180         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
6181         GtkCTreeNode get_type function.
6182
6183 2001-09-24  Havoc Pennington  <hp@redhat.com>
6184
6185         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
6186         gtktextlayout.c:
6187         Get rid of the newline-that-could-not-be-deleted; buffers may 
6188         now be zero-length. Much easier to fix than expected, once 
6189         I figured out the right way to do it. However, there are 
6190         various subtle bugs introduced by this that will have to get 
6191         sorted out. Please use bugzilla.
6192
6193 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
6194
6195         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
6196         response back from the window manager if our size hasn't changed 
6197         since we won't get a response back from the window manager;
6198         there was code in there to do this, but it was in the wrong
6199         place so if the hints change and the size didn't we'd expect
6200         a response.
6201
6202         Also, optimize the position-only-changed case by running
6203         the resize queue immediately, and clean up some comments
6204         for the changes.
6205
6206 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
6207
6208         * gtk/gtknotebook.h: Add a compat macro that got lost.
6209
6210         * gtk/gtktreestore.c: Doc fixes.
6211
6212         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
6213         leak for windows that receive events after being destroyed.
6214         (#60863, Joshua N. Pritikin)
6215
6216         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
6217         rather than gtk_container_queue_resize().
6218
6219         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
6220         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
6221         gtk_container_child_composite_name. (#60217.)
6222
6223 2001-09-22  Hans Breuer  <hans@breuer.org>
6224
6225         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
6226
6227 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
6228
6229         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
6230         weight value should be an int
6231
6232 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
6233
6234         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
6235         to gtk_menu_scroll_item_visible(). Only call
6236         gtk_menu_scroll_item_visible() if the menu widget has been
6237         realized. Fixes bug #55310.
6238
6239 2001-09-21  Havoc Pennington  <hp@redhat.com>
6240
6241         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
6242         key press to IM context if cursor isn't in an editable location;
6243         bug #58425, patch from Hidetoshi Tajima
6244
6245 2001-09-21  Havoc Pennington  <hp@redhat.com>
6246
6247         Bug #60862
6248         
6249         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
6250         (_gtk_text_btree_unref): fix up mark memory management
6251
6252         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
6253
6254 2001-09-20  Havoc Pennington  <hp@redhat.com>
6255
6256         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
6257         try to handle alignment here, because it's done by PangoLayout
6258         after we set the layout width. Fix from Dov.
6259
6260 2001-09-21  Hans Breuer  <hans@breuer.org>
6261
6262         * gdk/gdk.def :
6263         * gtk/gtk.def : updated externals
6264
6265         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
6266         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
6267         Also handle that Win32 pathes cann't be hard-coded      
6268
6269         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
6270         module, themes etc directory calculations
6271
6272         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
6273         >16 bit right. The size limit within Win9x appears _not_ to be 32767
6274         but slightly smaller ...
6275
6276         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
6277         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
6278
6279         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
6280
6281         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
6282         handling. I'm not sure if it is better now, but at least not worse
6283
6284         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
6285
6286         * gdk/win32/gdkwin32.h : reflect recent API restrictions
6287
6288 2001-09-21  Matt Wilson  <msw@redhat.com>
6289
6290         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
6291         radio_menu_item->group to NULL after removing it from the list, as
6292         it is no longer in the group. (#60869)
6293
6294         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
6295
6296 2001-09-20  Havoc Pennington  <hp@pobox.com>
6297
6298         * configure.in (PANGO_REQUIRED_VERSION)
6299         (ATK_REQUIRED_VERSION): add variables and checks for specific 
6300         versions of dependencies. Previously we didn't verify the 
6301         Pango or ATk versions.
6302
6303 2001-09-09  Havoc Pennington  <hp@pobox.com>
6304
6305         * gtk/gtktextiter.c: fool with indentation
6306         (gtk_text_iter_in_range): add g_return_if_fail
6307
6308 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
6309
6310         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
6311         ref count on new tag to be 1.  Update doc.  (#60836)
6312
6313 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
6314
6315         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
6316         call to gdk_image_new_bitmap(). (#59094, reported by
6317         by Sven Neumann)
6318
6319 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
6320
6321         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
6322         day, as well as the current month and year.
6323         (#59047, reported by Vitaly Tishkov)
6324
6325 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
6326
6327         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
6328         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
6329         
6330 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
6331
6332         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
6333
6334         (build_option_menu): add func argument, connect ::changed
6335         signal to option menu instead of connecting the ::activate
6336         signal to the menu items,
6337
6338         (toplevel): get rid of RADIOMENUTOGGLED macro,
6339
6340         (list_toggle_sel_mode), (clist_toggle_sel_mode),
6341         (ctree_toggle_line_style), (ctree_toggle_expander_style),
6342         (ctree_toggle_justify), (ctree_toggle_sel_mode),
6343         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
6344         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
6345
6346         (notebook_type_changed): merged standard_notebook(),
6347         notabs_notebook(), scrollable_notebook() and borderless_notebook()
6348         into notebook_type_changed()
6349
6350         (create_list), (create_ctree), (create_notebook),
6351         (create_progress_bar): changed OptionMenuItem arrays into
6352         gchar * arrays. Removed "Extended" item where used.
6353
6354         Fixes bug #59885
6355
6356 2001-09-20  Sven Neumann  <sven@gimp.org>
6357
6358         * configure.in
6359         * gdk/Makefile.am
6360         * gtk/Makefile.am
6361         * gtk/gtkselection.c
6362         * gtk/gtktreeview.c
6363         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
6364
6365 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
6366
6367         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
6368         a missing pango_layout_iter_free ().
6369
6370 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
6371
6372         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
6373         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
6374
6375         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
6376         the function definition so we don't accidentally rely on
6377         the compat #define from gtk_radio_menu_item_group.
6378         (#60782, Jeff Franks)
6379
6380 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
6381
6382         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
6383         incorrect values for top, right and bottom due to cut-and-paste
6384         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
6385
6386 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
6387
6388         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
6389         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
6390         window, not just on the client leader. (#58463)
6391
6392 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
6393
6394         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
6395
6396         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
6397         non-public _gtk_menu_item_set_placement.
6398
6399         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
6400
6401 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
6402
6403         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
6404           gdk/linux-fb/gdkcolor-fb.c:
6405         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
6406         (#59723)
6407
6408 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
6409
6410         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
6411         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
6412         #59723)
6413
6414 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
6415
6416         Patch from Frank Belew #59037 for Solaris compilation.
6417
6418         * gtk/maketypes.awk: Change syntax slightly for a call
6419         to sub(), apparently making awk on Solaris happier.
6420
6421         * gtk/gtktreeview.c: Remove C++ comments.
6422
6423 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
6424
6425         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
6426         to handle '99% of the time. (#60473, reported by Christian Rose)
6427
6428         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
6429         which no longer exists. (#60379, reported by Vitaly Tishkov)
6430
6431 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
6432
6433         * Released 1.3.8.
6434
6435         * gdk/Makefile.am: kill EXTRA_DIST clearing.
6436         
6437 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
6438
6439         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
6440         as its broken in automake 1.4, add explicit object rule to
6441         generate this.
6442         
6443         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
6444         get rid of uneccessary stamps, group stuff more logically, and build
6445         sources due to object rules. fix srcdir!=builddir.
6446
6447 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
6448
6449         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
6450         incorrect parameter to compute_double_length
6451         (#58680, patch from Matthias Clasen)
6452
6453         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
6454
6455         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
6456
6457         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
6458         for GDK_RELEASE_MASK to avoid warnings with Forte.
6459
6460         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
6461         break; statements.
6462
6463 2001-09-18  Alex Larsson  <alexl@redhat.com>
6464
6465         * gtk/gtkcheckbutton.c:
6466         * gtk/gtkradiobutton.c:
6467         Don't draw with GTK_STATE_ACTIVE.
6468
6469         * gtk/gtkclist.c:
6470         * gtk/gtkctree.c:
6471         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
6472
6473         * gtk/gtktextdisplay.c:
6474         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6475         unfocused with base_gc [GTK_STATE_ACTIVE].
6476         
6477         * gtk/gtkentry.c:
6478         Add select all menu-item.
6479         Default cursor color is red.
6480         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6481         unfocused with base_gc [GTK_STATE_ACTIVE].
6482
6483         * gtk/gtklabel.[ch]:
6484         Add keynav + menu to selectable lables.
6485         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
6486         unfocused with base_gc [GTK_STATE_ACTIVE].
6487
6488         * gtk/gtkfilesel.c:
6489         Add drag and drop support.
6490
6491         * gtk/gtkstyle.c:
6492         (This was checked in earlier)
6493         New default values for text/base SELECTED and ACTIVE
6494         
6495 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
6496
6497         * configure.in: up version to 1.3.8, interface age 0,
6498         binary age 0, depend on glib 1.3.8.
6499
6500         * NEWS: 1.3.8 updates.
6501
6502 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
6503
6504         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
6505         the editing code
6506
6507         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
6508         reason to call it beyond emiting the two signals.
6509
6510         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
6511         to GtkEntry.
6512
6513 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
6514
6515         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
6516           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
6517         PangoFontDescription.
6518
6519         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
6520         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
6521         structure.
6522   
6523         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
6524
6525         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
6526         direct access to style->font. Deprecate gtk_style_ref/unref.
6527   
6528         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
6529         Remove gtk_style_ref/unref with g_object_ref/unref.
6530   
6531         * gtk/gtkcalendar.c: Remove leftover macros accessing
6532         style->font.
6533   
6534         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
6535         variable.
6536   
6537         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
6538         style->font.
6539
6540 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
6541
6542         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
6543         "can_activate" properties in favor of
6544         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
6545         and GTK_CELL_RENDERER_MODE_EDITABLE
6546
6547 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
6548
6549         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
6550         editable widgets.  This function is private, and should only be
6551         used by GtkTreeView.
6552
6553 2001-09-18  Matt Wilson  <msw@redhat.com>
6554
6555         * docs/Makefile.am (EXTRA_DIST): don't use += before =
6556
6557         * docs/faq/Makefile.am (EXTRA_DIST): likewise
6558
6559         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
6560         
6561         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
6562         (EXTRA_HEADERS): likewise
6563
6564         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
6565         (EXTRA_HEADERS): likewise
6566         (EXTRA_DIST): likewise
6567         (CLEANFILES): likewise
6568
6569         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
6570
6571         * tests/Makefile.am (EXTRA_DIST): likewise
6572         
6573         * Makefile.am (install-data-local): changed to use
6574         install-data-hook, which runs after install-pkgconfigDATA, so that
6575         the pkgconfigdir will have been created and populated first.
6576
6577 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
6578
6579         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
6580         be the last big GtkTreeView API change.
6581
6582         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
6583         replace with "activate" and "start_editing".  Also, added a
6584         "can_activate" and "can_edit" property.
6585
6586         * gtk/gtktreeviewcolumn.c: modify to use above.
6587
6588 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
6589
6590         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
6591
6592 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
6593
6594         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
6595         icon instead of one with ugly white background.
6596
6597 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
6598
6599         * demos/gtk-demo/stock_browser.c (id_to_macro): make
6600         the uppercasing work. (#59550)
6601
6602 2001-09-14  Jakub Steiner <jimmac@ximian.com>
6603
6604         * gtk/stock-icons/dialog_error.png:
6605         * gtk/stock-icons/dialog_question.png: more road signs
6606
6607 2001-09-13  Jakub Steiner <jimmac@ximian.com>
6608
6609         * gtk/stock-icons/dialog_question.png:
6610         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
6611           like a road sign.
6612
6613 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
6614
6615         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
6616         signals to make them more clear.  Also, change ::range_changed to
6617         ::row_changed.
6618         * gtk/gtktreemodel.c: Adjust to interface change
6619         * gtk/gtktreemodel.h: ditto
6620         * gtk/gtktreemodelsort.c: ditto
6621         * gtk/gtktreestore.c: ditto
6622         * gtk/gtkliststore.c: ditto
6623         * gtk/gtktreeview.c: ditto
6624         * tests/testtreecolumns.c: ditto
6625         * gtk/gtkmarshal.list: Actually remove a marshaller!
6626
6627 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
6628
6629         * gtk/gtktextview.c
6630         Add support for Ctrl+Up/Down arrow to move cursor to beginning
6631         of previous/next paragraph. If within a paragraph cursor moves to
6632         beginning of that paragraph.
6633
6634 2001-09-12  Jakub Steiner <jimmac@ximian.com>
6635
6636         * gtk/stock-icons/dialog_question.png: replacing the shaky
6637           question mark with a sans-serif one.
6638         * gtk/stock-icons/stock_top.png, stock_bottom.png,
6639      stock_first.png, stock_last.png: using the new style arrows
6640         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
6641      colors.
6642         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
6643      color.
6644         * gtk/stock-icons/stock_zoom*: anti-aliased
6645         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
6646      '-' with a '_', removed the wrong files
6647
6648 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
6649  
6650         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
6651  
6652         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
6653         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
6654         than in gtk-2.0/major.minor.micro/<type>/. This
6655         works better for a search path for modules.
6656  
6657         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
6658         gtk_binary_version variable holding major.minor.(micro-binary_age).
6659  
6660         * modules/input/Makefile.am (moduledir): Fix installation
6661         directory to match change in lookup location.
6662  
6663         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
6664         suffixes. Needs to be handled in g_module_build_path().
6665
6666         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
6667         appropriate.
6668  
6669 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
6670
6671         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
6672         causing RC properties not to work.
6673
6674 2001-09-11  Jakub Steiner <jimmac@ximian.com>
6675
6676         * gtk/stock-icons/dialog-error.png: less drastic
6677         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
6678           "STOP" is international enough.
6679         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
6680         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
6681
6682 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
6683
6684         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
6685         (add|remove)_selection_clipboard symmetric. (bug #59836)
6686
6687         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
6688         Avoid SEGV for empty tree. (bug #60243)
6689
6690 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
6691
6692         * tests/testgtk.c (create_idle_test): slight fix for
6693         g_object_set() not usable for nesting anymore.
6694
6695         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
6696         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
6697         properties, supply ::shadow_type properties instead as most
6698         other widgets do.
6699
6700 2001-09-10  Alex Larsson  <alexl@redhat.com>
6701
6702         * demos/gtk-demo/stock_browser.c:
6703         * gdk/gdkcolor.c:
6704         * gdk/gdkfont.c:
6705         * gdk/gdkcursor.c:
6706         * gdk/gdkevents.c:
6707         * gdk/gdkrectangle.c:
6708         * gtk/gtktypeutils.c:
6709         Update to use the new g_boxed_type_register_static API.
6710
6711 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
6712
6713         * gtk/gtktreestore.c:
6714         Fix looping in gtk_tree_store_init() waiting for zero random int.
6715
6716 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
6717
6718         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
6719         behaviour which havoc broke. they have to default to 1.0 for
6720         expand behaviour.
6721
6722         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
6723
6724 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
6725
6726         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
6727         Amend previous change to avoid runtime error in g_param_spec_ref()
6728
6729 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
6730
6731         * gtk/gtkrc.c (insert_rc_property): Fix blank line
6732         in the wrong place.
6733
6734 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
6735
6736         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
6737         do a lookup immediately after creating style->property_cache,
6738         since bsearch crashes on zero length for Solaris.
6739         (Found by Padraig O'Briain.)
6740
6741 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
6742
6743         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
6744         Really return NULL if not set.
6745         (gtk_widget_init): Remove unused varaible.
6746         
6747 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
6748
6749         * configure.in:
6750         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
6751         in cvs.
6752
6753 2001-09-08  Havoc Pennington  <hp@pobox.com>
6754
6755         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
6756         people might want to use
6757
6758 2001-09-08  Havoc Pennington  <hp@pobox.com>
6759
6760         * gtk/gtkalignment.c (gtk_alignment_class_init): default
6761         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
6762
6763         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
6764
6765         * gtk/gtktextiter.c: fix docs
6766         (gtk_text_iter_spew): get rid of this
6767
6768         * gtk/gtklayout.c: docs
6769
6770         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
6771         to center image and label together, instead of having image on
6772         left and label centered, patch/suggestion from Jacob
6773
6774         * gtk/gtkdialog.c: docs
6775
6776 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
6777
6778         * gtk/gtkliststore.c: Write documentation
6779         * gtk/gtktreestore.c: Write documentation
6780
6781 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
6782
6783         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
6784         with GArray and bsearch(), to remove dependency on a still
6785         evolving interface that we want to keep private to glib/gobject. 
6786
6787 2001-09-08  Havoc Pennington  <hp@pobox.com>
6788
6789         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
6790         docs fixes
6791
6792         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
6793
6794         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
6795
6796         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
6797
6798         * gtk/gtkscrolledwindow.h: docs fixes
6799
6800         * gtk/gtkimage.c (gtk_image_new): docs fixes
6801
6802 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
6803
6804         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
6805         false alarm  constness warning with a cast.
6806
6807         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
6808         for the inside-gdk case.
6809
6810 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
6811
6812         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
6813         remove g_print.
6814
6815         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
6816         change models, #59899
6817
6818 2001-09-07  Havoc Pennington  <hp@pobox.com>
6819
6820         * gtk/gtkmain.c: move some docs inline
6821
6822 2001-09-07  Havoc Pennington  <hp@pobox.com>
6823
6824         * gtk/gtk.h: tsk tsk, jrb broke the build
6825
6826 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
6827
6828         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
6829         Removed 'fill' attribute.  It was silly b/c that was a property of
6830         the cell renderer, anyway.
6831         (gtk_tree_view_column_render): Actually render the packed
6832         renderers.
6833         * doc/tree-column-sizing.txt: initial devel documentation.
6834         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
6835         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
6836
6837         * tests/testtreefocus.c: fix up to reflect above changes.
6838         * tests/testtreeview.c: ditto
6839         * demos/gtk-demo/stock_browser.c: ditto
6840
6841 2001-09-07  Alex Larsson  <alexl@redhat.com>
6842
6843         * gdk/linux-fb/gdkcolor-fb.c:
6844         Removed unused function.
6845         
6846         * gdk/linux-fb/gdkdrawable-fb2.c
6847         * gdk/linux-fb/gdkfont-fb.c:
6848         Use PangoLanguage functions.
6849
6850         * gdk/linux-fb/gdkinput.c:
6851         * gdk/linux-fb/gdkselection-fb.c:
6852         Fix const warnings.
6853         
6854         * gdk/linux-fb/gdkwindow-fb.c:
6855         Fix warning. Implement gdk_window_set_icon_list() and
6856         gdk_window_get_frame_extents(). (No icon support yet though.)
6857
6858         * gtk/gtkwindow.c (gtk_window_get_position):
6859         If window->frame is set get the extents of it instead.
6860         
6861 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
6862
6863         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
6864         Make the default default colormap the GdkRGB colormap,
6865         not the system colormap.
6866
6867         * gtk/gtkinvisible.c (gtk_invisible_init) 
6868           gtk/gtkwindow.c (gtk_window_init): Set the current
6869         colormap, as returned by _gtk_widget_peek_colormap()
6870         on the widget.
6871
6872         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
6873         to GTK+. Make it return %NULL instead of the default
6874         colormap if no colormap has explicitely been pushed.
6875
6876         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
6877         colormaps on ancestral widgets before defaulting the
6878         the system default colormap.
6879
6880         * docs/Changes-2.0.txt: explain colormap changes.
6881
6882 2001-09-07  Havoc Pennington  <hp@redhat.com>
6883
6884         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
6885         #57424
6886
6887 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
6888
6889         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
6890         make gdk_set_use_xshm a noop. Remove --no-xshm command line
6891         option. If we aren't autodetecting properly, we need
6892         to fix the problem, or at least make it an environment
6893         variable setting, to avoid problems with propagating
6894         to embedded children, plugins, etc.
6895
6896         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
6897
6898         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
6899         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
6900         New function to render a pixmap and mask for a particular colormap.
6901
6902         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
6903         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
6904         of internal implementation of the same.
6905
6906 2001-09-07  Havoc Pennington  <hp@redhat.com>
6907
6908         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
6909         debug code that seems to have caused a breakpoint in valid cases
6910         
6911         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
6912         pointer on the first view when adding the second view, fixes
6913         crash when closing gtk-demo text test with active selection
6914
6915         * gtk/gtktextbuffer.c
6916         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
6917         clipboards in the list of clipboards - probably fixes #59836
6918
6919 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
6920
6921       Make gdkx.h the only installed header from gdk/x11.
6922       All structures in gdk/x11 are opaque.
6923
6924         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
6925         Don't install gdk{drawable,pixmap,window}-x11.h.
6926
6927         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
6928         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
6929         GdkVisualClass into C files.
6930
6931         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
6932
6933         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
6934         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
6935         Add public functions to replace previously exported direct
6936         structure access.
6937         gdk_x11_colormap_get_{xdisplay,xcolormap} 
6938         gdk_x11_cursor_get_{xdisplay,xcursor},
6939         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
6940         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
6941         gdk_x11_gc_get_{xdisplay,ximage}
6942         
6943         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
6944         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
6945
6946       Fix a number of variables and functions that were exported
6947       "accidentally" from GDK.
6948
6949         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
6950         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
6951         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
6952         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
6953         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
6954         gdk_event_queue_find_first, gdk_event_queue_remove_link,
6955         gdk_event_queue_append, gdk_event_button_generate,
6956         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
6957
6958         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
6959            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
6960         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
6961         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
6962         gdk_use_xshm, gdk_input_ignore_core.
6963
6964         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
6965         #defines to namespace functions into the private _gdk_ 
6966         namespace.
6967
6968         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
6969         to replace gdk_parent_root exported variable. Adjust and
6970         deprecate GDK_ROOT_PARENT().
6971
6972         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
6973         GDK_ROOT_PARENT usage, remove includes of port-specific
6974         headers.
6975
6976         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
6977         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
6978         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
6979
6980         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
6981         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
6982         gdk_wm_delete_window functions, gdk_wm_take_focus, 
6983         use gdk_atom_intern() instead.
6984
6985         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
6986           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
6987           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
6988           gtk/gtkselection.c 
6989         Unexport gdk_selection_property, just use 
6990         gdk_atom_intern ("GDK_SELECTION").
6991
6992         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
6993         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
6994         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
6995         GdkVisualprivate, gdk_x11_gc_flush.
6996
6997       Make a number of public exports of variables into functions
6998       to increase encapsulation.
6999
7000         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
7001         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
7002         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
7003
7004         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
7005         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
7006         gdk_error_warnings.
7007
7008         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
7009           docs/Changes-2.0.txt: 
7010         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
7011         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
7012         Add gdk_x11_get_default_xdisplay().
7013
7014         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
7015         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
7016         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
7017         Don't export gdk_progclass, move --class command line
7018         option and handling to common portion of GDK.
7019
7020       Miscellaneous fixes:
7021
7022         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
7023         g_return_val_if_fail that should have been g_return_if_fail.
7024
7025         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
7026         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
7027
7028         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
7029         X11 dependency.
7030
7031         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
7032         Remove unused gdk_key_repeat_disable/restore.
7033
7034         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
7035         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
7036         Remove unused gdk_null_window_warnings variable.
7037
7038         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
7039         it can be retrieved from the repository; it is too far
7040         from functional to be worth having people check out;
7041         it would be easier to start from scratch, I suspect.
7042
7043         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
7044
7045         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
7046         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
7047         Fix some accidentally global variables and unused global variables.
7048
7049         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
7050         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
7051         Fix some accidentally global variables and unused global variables.
7052
7053       Add some space for future expansion to multihead.
7054
7055         * gdk/gdkdrawable.h: Add four reserved function pointers
7056         for future expansion of GdkDrawableClass.
7057
7058         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
7059         where we can put a GdkScreen * later.
7060
7061 2001-09-07  Havoc Pennington  <hp@redhat.com>
7062
7063         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
7064         adjustments after validating destination yrange; fixes #53918
7065         (This may cause other issues, but I hope it won't)
7066         
7067 2001-09-05  Havoc Pennington  <hp@redhat.com>
7068
7069         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
7070         line into start line, update the character counts in parent nodes; 
7071         caused a bug when end and start line had different parent nodes.
7072
7073 2001-08-30  Havoc Pennington  <hp@redhat.com>
7074         
7075         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
7076         assertion that tag is in a table
7077
7078 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
7079
7080         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
7081         g_strcasecmp on NULL strings. (#59058)
7082
7083 2001-09-06  Alex Larsson  <alexl@redhat.com>
7084
7085         * gtk/gtkbin.c:
7086         * gtk/gtkfontsel.c:
7087         * gtk/gtkspinbutton.c:
7088         * gtk/gtktipsquery.c:
7089         Use GtkType/GType instead of uint.
7090
7091 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
7092
7093         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
7094         sort column.
7095
7096         * gtk/gtktreestore.c (gtk_list_store_init): ditto
7097
7098         * gtk/gtktreesortable.c: add docs.
7099
7100 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
7101
7102         * Version 1.3.7
7103
7104         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
7105         docs for gtk-config
7106
7107         * modules/input/Makefile.am (install-data-local): Don't
7108         run gtk-query-immodules if DESTDIR is set.
7109
7110         * NEWS: Various additions.
7111
7112 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
7113
7114         * NEWS: updates for 1.3.7 release.
7115
7116 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
7117
7118         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
7119         handle default sort feature
7120
7121         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
7122         new function to handle default sort.
7123         (gtk_tree_sortable_has_default_sort_func): check if default sort
7124         is set.
7125
7126         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
7127         handle default sort feature
7128
7129 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
7130
7131         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
7132         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
7133         #59731
7134
7135 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
7136
7137         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
7138         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
7139         time, #59727
7140
7141         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
7142         correctly.
7143
7144 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
7145
7146         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
7147         so that we don't eternally update the keymap after we
7148         get a change notification.
7149
7150         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
7151         incorrect cast.
7152
7153 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
7154
7155         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
7156         it working. It mostly works now, although there're still a few issues
7157         to be worked out.
7158
7159         * tests/testtreesort.c (main): changes to have a better test
7160         application for the GtkTreeModelSort.
7161
7162 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
7163
7164         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
7165         fix for bug #59222.
7166
7167         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
7168         gpointer search_data argument to function definition and
7169         prototype, to match GtkTreeViewSearchEqualFunc typedef.
7170
7171 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
7172
7173         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
7174         per jrb's request.
7175
7176 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
7177
7178         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
7179
7180         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
7181
7182 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
7183
7184         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
7185         Instead of always mirroring the selection to a single PRIMARY
7186         selection, allow it to be mirrored to any number of clipboards.
7187
7188         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
7189         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
7190
7191         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
7192         GtkClipboard argument, and for paste_clipboard, the
7193         @override_location argument from @paste_primary.
7194
7195         * gtk/gtktextview.c: Adapt to above change.
7196         
7197 2001-08-30  Havoc Pennington  <hp@redhat.com>
7198
7199         * gtk/gtktextview.c (invalidated_handler): put validate idle at
7200         resize - 2 just for flexibility
7201
7202 2001-08-30  Havoc Pennington  <hp@redhat.com>
7203
7204         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
7205         object from the empty-child-anchor case by drawing a little box.
7206         
7207         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
7208         if the child anchor has no anchored widgets - fixes #59328.
7209
7210         Also, remove bizarre deletion of preedit string that seems to have
7211         gotten in here somehow.
7212
7213 2001-08-30  Havoc Pennington  <hp@redhat.com>
7214
7215         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
7216         to #58420 from Hidetoshi Tajima and Matthias Clasen
7217
7218 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
7219
7220         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7221         change color when the GtkTreeView loses focus.
7222
7223         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
7224         ditto.
7225         
7226         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
7227
7228 2001-08-28  Havoc Pennington  <hp@pobox.com>
7229
7230         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
7231
7232 2001-08-28  Havoc Pennington  <hp@pobox.com>
7233
7234         * demos/gtk-demo/main.c (setup_default_icon): add default icon
7235
7236         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
7237         warning fix
7238         (gtk_radio_button_new_with_label): warning fix
7239
7240         * gtk/gtkdnd.c: used some random GtkImage private structs, 
7241         update to reflect GtkImage changes
7242
7243         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
7244         whether the hint is supported, just always set the icon. A task
7245         list might want to use it even if the WM doesn't, and the WM may
7246         change over time. Also, XDeleteProperty() if list == NULL.
7247
7248         * gtk/gtkwindow.c (gtk_window_set_icon_list)
7249         (gtk_window_get_icon_list)
7250         (gtk_window_set_icon)
7251         (gtk_window_get_icon)
7252         (gtk_window_set_default_icon_list)
7253         (gtk_window_get_default_icon_list):
7254         new functions
7255
7256         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
7257
7258         * gtk/gtkimage.c: Implement property support, bug #59408
7259
7260         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
7261         on reparent-without-removing-first a bit more helpful.
7262         Let's just destroy this FAQ.
7263
7264 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
7265
7266         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
7267         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
7268
7269 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
7270
7271         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
7272         of use_text_format to the end of the function. (#56447)
7273
7274 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
7275
7276         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
7277         only in response to an area_prepared signal.
7278
7279 2001-08-28  Alex Larsson  <alexl@redhat.com>
7280
7281         * gtk/gtkwidget.c (gtk_widget_class_init):
7282         Make unrealize GTK_RUN_LAST.
7283
7284 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
7285
7286         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
7287         with_label and with_mnemonic should create radio buttons, not
7288         check buttons
7289
7290 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
7291
7292         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
7293         * tests/treestoretest.c (make_window): ditto
7294         * demos/gtk-demo/main.c (create_tree): ditto
7295         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
7296
7297 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
7298
7299         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
7300         GTK selection types rather than GtkTreeSelectionMode.
7301
7302         * docs/Changes-2.0: Add comment about selection change.
7303
7304 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
7305
7306         * gtk/gtkenums.h (GtkSelectionMode): deprecate
7307         GTK_SELECTION_EXTENDED.
7308
7309         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
7310         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
7311
7312         * gtk/gtkctree.c: ditto
7313
7314         * gtk/gtklist.c: ditto
7315
7316         * gtk/gtktree.c: ditto
7317
7318 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
7319
7320         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
7321         of typos in compat macros. (#59624, Skip Montaro)
7322
7323 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
7324
7325         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
7326         macro.
7327
7328          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
7329  
7330         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
7331         interface to be a standard setter from gtk_menu_item_right_justify.
7332         (gtk_menu_item_get_right_justified): a getter to go with the setter
7333
7334         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
7335         gtk_menu_item_right_justify.
7336
7337         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
7338         gtk_menu_item_set_right_justified.
7339  
7340 2001-08-27  Jens Finke <jens@gnome.org>
7341
7342         * gtk+.spec.in: Updated to match gpp requirements, reworked the
7343         files section to make it work with 1.3.x releases.
7344
7345 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
7346
7347         * gtk/gtkbutton.[ch]:
7348         Add properties for labels, mnemonics and stock items.
7349         Added C accessor functions for the properties.
7350         Removed deprecated button->child.
7351
7352         * gtk/gtkradiobutton.c:
7353         * gtk/gtktogglebutton.c:
7354         Update to use the functions in GtkButton.
7355
7356         * gtk/gtkcheckbutton.c:
7357         Update to use the functions in GtkButton.
7358         Changed size allocation of child. Now only gets as much
7359         space as it requests.
7360
7361         * gtk/gtkclist.c:
7362         Don't use GtkButton->child
7363
7364         * gtk/gtklabel.c:
7365         Fixed typo in docs
7366         
7367 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
7368
7369         * tests/testgtk.c:
7370         * tests/Makefile.am:
7371         Ressurect the properties test.
7372         I don't care if it is inferior, I just want to test my property code.
7373
7374 2001-08-25  Chema Celorio  <chema@celorio.com>
7375
7376         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
7377         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
7378         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
7379
7380 2001-08-24  Havoc Pennington  <hp@pobox.com>
7381
7382         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
7383         these are already in gtkmenu.h, and the copies
7384         here were broken.
7385
7386         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
7387
7388         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
7389         special-case bitmaps to allow no colormap
7390         (bitmap1): implement no-colormap bitmap-getting
7391         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
7392         alpha
7393         (rgb8): indentation
7394         (rgb1a, rgb1): change the way we read the data out of the image, 
7395         old way didn't seem to work quite right.
7396
7397         I'm pretty sure a lot of the rgbconvert code is still broken.
7398         
7399         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
7400         above position constraint (I really intended to do this before,
7401         don't know what's up with that)
7402         (gtk_XParseGeometry): shut up gcc
7403
7404         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
7405         and "0" should have been. remove the attempted 4-bytes-at-once
7406         optimization, it was totally broken.
7407
7408 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
7409
7410         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
7411         on push to buttons (based on patch from Soeren Sandmann, #54720)
7412
7413           - Add child_displacement_x/y style properties to control how far the
7414             child moves when the button is depressed.
7415
7416           - Add non-exported function _gtk_button_set_depressed to clean
7417             up the handling of the in/out shadow and separate it frmo
7418             widget->state.
7419
7420           - Lots of code cleanup and simplification of state handling
7421             for GtkButton/GtkToggleButton.
7422  
7423         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
7424         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
7425
7426 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
7427
7428         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
7429         and make gtk_image_new() take no arguments. The compiler will
7430         catch it, and it is vastly more useful than having
7431         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
7432
7433         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
7434         to add tearoff-title property (#51319, Lee Mallabone)
7435
7436 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
7437
7438         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
7439         gtk_menu_item_configure(). (#58925)
7440
7441 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
7442
7443         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
7444         "use_align" to give people the option to just make a cell visible.
7445
7446         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
7447         we were scrolling past the end of the tree.
7448
7449         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
7450         rename gtk_tree_view_column_pack_start_cell_renderer to
7451         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
7452
7453 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
7454
7455         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
7456         a stray g_object_ref() left over from gtk_object_ref/sink.
7457         (Pointed out by Josh Pritikin.)
7458
7459 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
7460
7461         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
7462         to gtk_container_get_children. Added deprecated compatibility
7463         macro. (Suggested by Vitaly Tishkov, #59051)
7464
7465         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
7466         calls.
7467
7468 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
7469
7470         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
7471         gtk_menu_bar_append/prepend/insert, forgot to do this
7472         when we deprecated gtk_menu_append/prepend/insert.
7473
7474         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
7475         compat macros.
7476
7477         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
7478         renamed by compat macro.
7479
7480         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
7481         gtk_font_selection_dialog_get_font(). (Suggested by
7482         Vitaly Tishkov, #59383)
7483
7484 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
7485
7486         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
7487         Rename from gtk_text_tag_table_size(). (#59366)
7488
7489 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
7490
7491         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
7492         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
7493         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
7494         (#59173).
7495
7496 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
7497
7498         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
7499         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
7500         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
7501
7502 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
7503
7504         [ Patch from Sebastian Wilhelmi, 52790 ]
7505
7506         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
7507
7508         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
7509         Move compatibility macros from g[dt]kcompat.h to within 
7510         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
7511
7512         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
7513
7514         * demos/Makefile.am demos/gtk-demo/Makefile.am 
7515           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
7516           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
7517
7518         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
7519                  testpixbuf.c}: Fix usages of deprecated functions.
7520
7521 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
7522
7523         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
7524         when changing models.
7525
7526 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
7527
7528         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
7529         We check the current event for modifiers rather than try to trap
7530         all presses.
7531
7532 2001-08-22  Anders Carlsson  <andersca@gnu.org>
7533
7534         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
7535         It's LIST_STORE, not LISTSTORE.
7536
7537 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
7538
7539         * gtk/gtk.h: Remove commented out gtkpacker reference.
7540
7541 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7542
7543         * configure.in (all_loaders): Add tga loader, 
7544         patch by Nicola Girardi. (#56067)
7545
7546 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
7547
7548         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
7549         a little.  More needs to be done tomorrow.
7550
7551 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
7552
7553         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
7554
7555 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
7556
7557         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
7558         reported by Kristian Rietveld <kristian@planet.nl> to handle row
7559         == NULL.
7560         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
7561         <kristian@planet.nl> to change destroy order.
7562
7563 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
7564
7565         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
7566         correct marshaller.
7567
7568 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
7569
7570         * gtk/gtkliststore.c: Fix up warnings, #58928.
7571
7572         * gtk/gtktreeselection.h: Change signal prototype, #58647
7573
7574         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
7575         #59221.
7576
7577         * gtk/gtkstyle.c: Actually prelight arrow, #50981
7578         
7579 2001-08-18  Hans Breuer  <hans@breuer.org>
7580
7581         * gdk/gdk.def : updated externals
7582
7583         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
7584         is required to get (at least) visible in entry fields. Some selections
7585         are really handled now - even on win32 - but copying via middle
7586         mouse button into a different app needs to wait ... 
7587
7588         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
7589         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
7590
7591         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
7592         handling. I'm not sure if it is better now, but at least not worse
7593
7594         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
7595         with SetWindowPos () which allows more fine-tuning backing-store wise
7596
7597         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
7598         Also changed move/resize to be more like the X version.
7599
7600         * gtk/gtk.def : updated externals
7601
7602 2001-08-19  Sven Neumann  <sven@gimp.org>
7603
7604         * gtk/gtktooltips.c
7605         * tests/testtreesort.c
7606         * tests/treestoretest.c: inserted some casts to get rid of compiler
7607         warnings.
7608
7609 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
7610
7611         * gtk/gtktreeviewcolumn.c
7612         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
7613
7614         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
7615         (_gtk_tree_view_find_node): If *node is NULL,
7616         *tree should be NULL too.
7617
7618         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
7619         column/renderers.
7620         * tests/testtreecolumns.c: ditto
7621         * tests/testtreefocus.c: ditto
7622         * tests/testtreesort.c: ditto
7623         * tests/testtreeview.c: ditto
7624         * tests/treestoretest.c: ditto
7625
7626 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
7627
7628         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
7629         signals; is_expander/is_expanded.
7630
7631         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
7632         pixbufs.
7633
7634         * gtk/gtktreeview.c: set above properties.
7635
7636 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
7637
7638         * gtk/gtkwidget.h: Really remove set_default_style().
7639
7640         * docs/Changes-2.0.txt: added a note about
7641         gtk_widget_push/pop/set_default_style.
7642
7643 2001-08-18  Havoc Pennington  <hp@pobox.com>
7644
7645         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
7646         hints_changed in addition to the other cases.
7647         (gtk_window_move_resize): include last position from configure
7648         notify in debug spew
7649
7650 2001-08-18  James Henstridge  <james@daa.com.au>
7651
7652         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
7653         second argument to the weak ref notify, cleaning up some uglyness.
7654         (gtk_accel_group_attach): remove and add the weak notifier when
7655         changing the accel groups slist.
7656         (gtk_accel_group_detach): same here.
7657
7658 2001-08-17  Darin Adler  <darin@bentspoon.com>
7659
7660         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
7661         missing parameters to utf8 functions to make it compile.
7662
7663 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
7664
7665         * gtk/gtktreeprivate.h:
7666         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
7667         (gtk_tree_view_init), (gtk_tree_view_set_property),
7668         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
7669         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
7670         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
7671         (gtk_tree_view_set_destroy_count_func),
7672         (gtk_tree_view_set_enable_search),
7673         (gtk_tree_view_get_enable_search),
7674         (gtk_tree_view_get_search_column),
7675         (gtk_tree_view_set_search_column),
7676         (gtk_tree_view_get_search_equal_func),
7677         (gtk_tree_view_set_search_equal_func),
7678         (gtk_tree_view_search_dialog_destroy),
7679         (gtk_tree_view_search_position_func),
7680         (gtk_tree_view_interactive_search),
7681         (gtk_tree_view_search_delete_event),
7682         (gtk_tree_view_search_button_press_event),
7683         (gtk_tree_view_search_key_press_event),
7684         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
7685         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
7686         * gtk/gtktreeview.h:
7687         Add heavily modified patch from Kristian Rietveld to handle
7688         interactive searching.
7689
7690 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
7691
7692         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
7693         string parameter.
7694
7695         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
7696         GtkMenuShell::selection_done, now that we have it, instead of 
7697         ::deactivate so we're not tearing the menu apart and notify
7698         the user prematurely.
7699
7700 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
7701
7702         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
7703         window, clear window->need_default_position to avoid infinite loops.
7704         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
7705
7706 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
7707
7708         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
7709         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
7710         (gtk_tree_view_set_property): don't cast possible NULL objects.
7711         (gtk_tree_view_destroy): reset the model to NULL.
7712
7713         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
7714         parent_class handler.
7715
7716 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7717
7718         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
7719
7720 2001-08-17  Anders Carlsson  <andersca@gnu.org>
7721
7722         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
7723         point numbers so that the result will be floating point.
7724
7725 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7726
7727         * tests/testgtk.c (create_handle_box): 
7728         (create_toolbar): Replace gtk_window_set_policy calls by
7729         gtk_window_set_resizable.
7730
7731 2001-08-16  Jakub Steiner <jimmac@ximian.com>
7732
7733         * gtk/stock-icons/dialog_info.png: new style bulb
7734         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
7735         * gtk/stock-icons/dialog_warning.png: need a hand?
7736         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
7737           the aa border gets chopped off ok
7738         * gtk/stock-icons/stock_colorselector.png: using the new hand
7739         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
7740           this one is for, but the old icon was butt ugly.
7741         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
7742         * gtk/stock-icons/stock*_insert_object.png: "
7743         * gtk/stock-icons/stock_index.png: using new hand icon
7744         * gtk/stock-icons/stock*_new.png: the document template being used 
7745           elsewhere too
7746         * gtk/stock-icons/stock*_print*.png: new print and print preview 
7747           icons (panel/menu)  
7748         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
7749           icons based on Tuomas' floppy image.
7750         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
7751         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
7752         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
7753         * gtk/stock-icons/stock*_undelete.png: "
7754         * gtk/stock-icons/stock_preferences.png: I have a version with a 
7755           document base if the sliders are no good.
7756         * gtk/stock-icons/stock_properties.png: properties 
7757         
7758
7759         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
7760           (tigert@ximian.com) clipboard icons
7761         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
7762         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
7763         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
7764           little bigger IMHO
7765
7766 2001-08-16  Sven Neumann  <sven@gimp.org>
7767
7768         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
7769
7770 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
7771
7772         * gtk/gtkcellrenderertext.c:
7773         Avoid warning when specifying NULL for "attributes" property
7774
7775 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7776
7777         * docs/debugging.txt: Add a warning about --enable-debug=no,
7778         some editorial changes.
7779
7780 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7781
7782         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
7783         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
7784         debugging info, remove unused debug flags. (#58330)
7785
7786 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
7787
7788         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
7789         (gtk_tree_selection_select_all): Remove strict checking for rows.
7790
7791 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7792         
7793         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
7794         Don't remove the tooltip window when the tip text changes. (#15891)
7795
7796 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
7797
7798         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
7799         $(srcdir).
7800
7801 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
7802
7803         * Makefile.am (EXTRA_DIST): Fix problem with trying to
7804         dist files from intl/, which is no longer there.
7805
7806 2001-08-11  Hans Breuer  <hans@breuer.org>
7807
7808         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
7809           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
7810           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
7811           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
7812           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
7813           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
7814
7815         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
7816           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
7817         GDK_TYPE_EVENT signals
7818
7819         * gtk/gtkalignment.c : removed 'direct allocation bug',
7820         which Tim discovered while reading the patch
7821
7822 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
7823
7824         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
7825         compat macros for push/pop/set_visual that were supposed
7826         to be added a long time ago, but got dropped. 
7827
7828 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
7829
7830         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
7831         property notifies.
7832
7833 2001-08-07  Havoc Pennington  <hp@pobox.com>
7834
7835         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
7836
7837         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
7838         some fixage is needed here, but nothing simple. Owen understands
7839         it. ;-)
7840
7841         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
7842         sizing and positioning.  Also, fix bug in compute_geometry_hints
7843         (width/height confusion for setting min size). 
7844         (gtk_window_move): new function
7845         (gtk_window_resize): new function
7846         (gtk_window_get_size): new function
7847         (gtk_window_get_position): new function
7848         (gtk_window_parse_geometry): new function
7849         
7850         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
7851         (gtk_widget_get_size_request): new function
7852         (gtk_widget_get_usize): delete, that was a short-lived function
7853         ;-)
7854         (gtk_widget_set_usize): deprecate
7855         (gtk_widget_set_uposition): deprecate, make it a trivial 
7856         gtk_window_move() wrapper
7857         (gtk_widget_class_init): remove x/y/width/height properties,
7858         add width_request height_request
7859         
7860         * demos/*: update to avoid deprecated functions
7861         
7862         * gtk/gtklayout.c: add x/y child properties
7863
7864         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
7865         uses of "gint16"
7866
7867         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
7868         sizing test
7869
7870         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
7871         configure events on toplevel windows are always in root window
7872         coordinates, following ICCCM spec that all synthetic events 
7873         are in root window coords already, while real events are 
7874         in parent window coords. Previously the code assumed that 
7875         coords of 0,0 were parent window coords, which was 
7876         really broken.
7877   
7878         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
7879         warning
7880  
7881         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
7882         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
7883         hints in gtk_window_parse_geometry()
7884  
7885         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
7886         new USER_POS USER_SIZE hints    
7887
7888 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7889
7890         * tests/prop-editor.c (properties_from_type): Use 
7891         g_object_class_list_properties to get the param specs 
7892         for a given type. (#58609)
7893
7894 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7895
7896         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
7897         free the text_aa parts. (#57549)
7898
7899 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7900
7901         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
7902         not the foreground color. (#57621)
7903
7904 2001-08-09  Alexander Larsson <alexl@redhat.com>
7905
7906         * gdk/win32/gdkfont-win32.c:
7907         Update to the new pango win32 api.
7908
7909 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
7910
7911         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
7912         COMPOUND_TEXT instead of TEXT
7913         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
7914         interpret the return value of g_string_to_compound_text()
7915         (#55152)
7916
7917 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7918
7919         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
7920         fail if iter is NULL. (#58347)
7921
7922 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7923
7924         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
7925         some off-by-one issues, fixing selection of line-ends. (#50323)
7926
7927 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
7928
7929         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
7930         functions in order to make mouse operation work again in the
7931         color wheel. (#58604)
7932
7933 2001-08-07  James Henstridge  <james@daa.com.au>
7934
7935         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
7936         the accelerator when the accel object is changed.  Fixes bug
7937         #58628.
7938
7939 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
7940
7941         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
7942         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
7943         (gnome bugzilla #58202)
7944
7945 2001-08-06  Havoc Pennington  <hp@pobox.com>
7946  
7947         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
7948         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
7949         it was expecting a GdkWindow, not a GdkWindowImplX11.
7950  
7951         Also, we were getting the window rect in screen coords 
7952         and the screen rect in window coords then intersecting 
7953         them; instead, get window rect in window coords.
7954  
7955         Finally, there were codepaths that resulted in a stuck server grab
7956         (when the window was fully onscreen, or on gdk_image_new()
7957         failure); make the server ungrab thing a bit more
7958         robust/consistent.
7959
7960 2001-08-06  Sven Neumann  <sven@gimp.org>
7961
7962         * gdk/gdkpango.c (gdk_pango_context_destroy): 
7963         check if info->colormap != NULL before unref'ing it. It might have
7964         been set to NULL using gdk_pango_context_set_colormap().
7965
7966 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
7967
7968         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
7969         Fix conversion from float to int so that we don't get
7970         skew in the int => float => int roundtrip. 
7971         (#58120, reported by Vitaly Tishkov). Also fix problem
7972         where if no alpha was set, the returned alpha
7973         from (say) set_current_alpha() was returned as 1, not 65535.
7974
7975 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
7976
7977         * gtk/gtklist.c (gtk_list_clear_items): Fix
7978         problem with selecting a new focus child.
7979
7980         * gtk/gtklist.c (gtk_list_clear_items): Clear 
7981         list->undo/list_focus_child after unparenting
7982         child, since unparenting the child can result
7983         in list->last_focus_child being set. (#58024)
7984
7985         * Makefile.am (SUBDIRS): Add target specific pc
7986         files to DISTCLEANFILES.
7987
7988         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
7989         (58327, Matthias Clasen)
7990
7991 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
7992
7993         * tests/testgtk.c: Patch from Hans (with various modifications),
7994         to add the ability to use testgtk as a rough-and-ready
7995         benchmark. Try, 'testgtk --bench all:5' (if you want decent
7996         numbers, run without a window manager)
7997
7998 2001-08-04 Alexander Larsson <alexl@redhat.com>
7999
8000         * gdk/win32/gdkinput.c:
8001         Add #ifdef HAVE_WINTAB around wintab.h include.
8002
8003         * gtk/gtk.def:
8004         Removed marshals that have been moved to glib.
8005         Commented out plug and socket. They didn't compile for me 
8006         on win32.
8007
8008 2001-08-04  Hans Breuer  <hans@breuer.org>
8009
8010         * gtk/stocks-icons/makefile.msc : new file
8011         * gtk/makefile.msc.in : use it
8012
8013         * gtk/gtkstyle.c : not all platforms do provide M_PI and
8014         friends, but luckily there is G_PI
8015
8016         * gtk/gtk.def : updated
8017
8018         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
8019         windows WS_POPUP, but only those without a parent. This fixes the 
8020         mis-alignment between the selectable (temp, input only) window and 
8021         the window text of GtkLabel.
8022
8023         (gdk_window_show) : respect private->state when actually showing
8024         the window.
8025
8026         (gdk_window_set_transient_for) : Implementation from Wolfgang 
8027         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
8028         error handling. Should fix #50586.
8029
8030         * gdk/win32/gdkevents-win32.c : beautify log output
8031
8032 2001-08-04  Michael Natterer  <mitch@gimp.org>
8033
8034         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
8035         Need to show the image after adding it to the GtkImageMenuItem.
8036         This used to work without in testgtk because of the
8037         gtk_widget_show_all() at the end of the function.
8038         (Closes #54978).
8039
8040 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
8041
8042         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
8043         (gtk_notebook_set_child_property): fix finding of child's page,
8044         since we have to validly deal with labels and menus here as well.
8045         (gtk_notebook_get_child_property): fix warning.
8046         (gtk_notebook_class_init): property tab_pack is of type
8047         GTK_TYPE_PACK_TYPE (enum) not boolean.
8048         (gtk_notebook_find_child): don't always warn, we might be looking
8049         for a label or menu child.
8050         (gtk_notebook_map): fix mapping of panel.
8051
8052         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
8053         widget's mapped state, regardless of the value being set equals
8054         old settings, since things like REALIZED(parent) or MAPPED(parent)
8055         may have changed since the old value was set. make it an error to
8056         invoke this function on a toplevel widget.
8057
8058 2001-07-31  Darin Adler  <darin@bentspoon.com>
8059
8060         * gdk/gdkprivate.h:
8061         * gdk/x11/gdkx.h:
8062         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
8063
8064         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
8065         GTK_OBJECT.
8066
8067 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
8068
8069         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
8070         scoping error pointed out by matthiasc@poet.de.
8071
8072 2001-07-31  Sven Neumann  <sven@gimp.org>
8073
8074         * demos/gtk-demo/appwindow.c
8075         * demos/gtk-demo/item_factory.c
8076         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
8077
8078 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
8079
8080         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
8081         argument order for g_signal_has_handler_pending.
8082
8083 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
8084
8085         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
8086         instead of long deprecated g_scanner_stat_mode().
8087
8088 2001-07-29  Hans Breuer  <hans@breuer.org>
8089
8090         * gdk/makefile.msc : build in the backend dir after
8091         auto-generating files
8092
8093         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
8094         with code from win32-production-branch.
8095
8096         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
8097         before calling DestroyWindow, which indirectly calls 
8098         gdk_window_destroy_notify ()
8099
8100         (performance patch merged from win32-production-branch)
8101         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
8102         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
8103         R2_COPYPEN rop). It is claimed to be much faster.
8104
8105 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
8106
8107         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
8108         add an "attributes" property to the text renderer for ATK.
8109
8110 2001-07-26  Alex Larsson  <alexl@redhat.com>
8111
8112         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8113         Initialize image->bits_per_pixel from the drawable, not from
8114         the root window.
8115
8116         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
8117         Fix cast. argument is an IMPL already.
8118
8119 2001-07-15  James Henstridge  <james@daa.com.au>
8120
8121         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
8122         (gtk_window_remove_accel_group): same here.
8123         (gtk_window_key_press_event): same here.
8124
8125         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
8126         (gtk_widget_remove_accelerator): same here.
8127         (gtk_widget_remove_accelerators): same here.
8128
8129         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
8130
8131         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
8132         instead of GtkObject.
8133
8134         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
8135         now takes GObjects.
8136
8137         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
8138         pass a GObject to gtk_accel_group_entries_from_object.
8139         (gtk_item_factory_create_item): s/accel_widget/accel_object/
8140
8141         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
8142
8143         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
8144
8145         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
8146         GObjects can have accelerators set now.  Add compatibility
8147         defines.
8148
8149         * gtk/gtkmarshal.list: add missing marshallers.
8150
8151         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
8152         accelerators on plain GObjects.  gtk_accel_group_object_destroy
8153         has been converted into a weak reference, and
8154         gtk_accel_group_delete_entries is now a destroy notify for that
8155         piece of data.
8156
8157 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
8158
8159         * gdk/gdkdraw.c: Added a check on the colormap depth to
8160         gdk_drawable_set_colormap()
8161         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
8162         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
8163         for pixmaps without visuals (more specifically, bitmaps)
8164         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
8165         doesn't set a colormap with the wrong depth
8166
8167
8168 2001-07-22  Anders Carlsson  <andersca@gnome.org>
8169
8170         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
8171         expander_height and expander_width properties with a single
8172         property, expander_size.
8173         (gtk_tree_view_init): Set the tab_offset to expander_size
8174         plus some padding.
8175         (gtk_tree_view_unrealize): Remove the expand/collapse
8176         timeout if it exists.
8177         (coords_are_over_arrow): Fix a small bug.
8178         (gtk_tree_view_motion_draw_column_motion_arrow): Use
8179         expander_size.
8180         (gtk_tree_view_draw_focus): Use "treeview" instead of
8181         "add-mode" as detail when drawing the focus.
8182         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
8183         instead of "add-mode" as detail when drawing the focus.
8184         (gtk_tree_view_deleted): If we have a node currently being
8185         expanded or collapsed, remove the timeout and set the node 
8186         to NULL.
8187         (gtk_tree_view_queue_draw_arrow): New function that just
8188         redraws the arrow of a node.
8189         (gtk_tree_view_draw_arrow): Use expander_size instead of
8190         expander_width/expander_height, also pass a different
8191         expander_style to gtk_paint_expander depending on the 
8192         state of the node being drawn.
8193         (expand_collapse_timeout): New function for expanding 
8194         or collapsing a node depending on the previous state.
8195         (gtk_tree_view_real_expand_row): Add timeout and set 
8196         correct state for node being expanded.
8197         (gtk_tree_view_real_collapse_row): Add timeout and set
8198         correct state for node being collapsed.
8199
8200         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
8201         information about the node currently being expanded or
8202         collapsed, and also a timeout id.
8203
8204         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
8205         with expander_style for draw_expander.
8206
8207         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
8208         expander_style.
8209         (create_expander_affine): New function for creating an 
8210         expander affine.
8211         (apply_affine_on_point): New function for applying an 
8212         affine to a point.
8213         (gtk_default_draw_expander): Modified to take expander_style
8214         instead of is_open, and to draw the rectangle rotated differently
8215         depending on the expander style.
8216         (gtk_paint_expander): Replace is_open with expander_style.
8217
8218         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
8219
8220         * gtk/gtkenums.h: Add expander style enum.
8221
8222 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
8223
8224         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
8225         value from gtk_tree_model_get_iter, the model might be empty.
8226
8227 2001-07-20  Hans Breuer  <hans@breuer.org>
8228
8229         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
8230         gdk/gdkinput.c like the other backends
8231
8232         * gdk/win32/gdkinput-win32.h :
8233         * gdk/win32/gdkinput.c :
8234         * gdk/win32/gdkvisual-win32.c :
8235         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
8236         GdkVisual GObjectification. UNTESTED for pen-devices because
8237         I simply have none.
8238
8239         * gdk/gdk.def :
8240         * gtk/gtk.def : updated externals
8241
8242         * gtk/gtkiconfactory.c :
8243         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
8244         before passing &error to functions to avoid strange crashes
8245         
8246         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
8247
8248         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
8249
8250         * gtk/makefile.msc.in : updated
8251
8252 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
8253
8254         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
8255         Add property support. (#51858)
8256
8257 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
8258
8259         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
8260         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
8261         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
8262
8263 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
8264
8265         * gtk/gtkcolorsel.c: Add propery support (roughly
8266         based on patch from Lee Mallabone, #51014)
8267
8268         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
8269         deprecated, since we already g_warning() on it.
8270
8271 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
8272
8273         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
8274         typo that sometimes caused selection not to work properly.
8275
8276         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
8277         entry when tabbing in. (#57743)
8278         
8279         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
8280         user drags up above or down below the entry, move
8281         to the end or the beginning of the entry. (Suggestion
8282         from Jay Cox, #50940)
8283
8284         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
8285         a current selection, then when moving by chars or
8286         words, move to the end of the selection rather than
8287         from entry->current_pos. (Suggestion from Jay Cox,
8288         #50942)
8289         
8290 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
8291
8292         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
8293         set window->decorated. (Patch from Hidetoshi Tajima,
8294         #55846)
8295
8296 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
8297
8298         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
8299         the widget/child realization/mapping invariants.
8300
8301         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
8302         gtk_widget_[get/set]_child_visible() to control
8303         whether visible children of a mapped window are
8304         mapped.
8305
8306         * docs/widget_system.txt: Updated for changes in
8307         container contract, and addition of GTK_CHILD_VISIBLE.
8308
8309         * gtk/gtkcontainer.c: Add generic map()/unmap()
8310         functions that work for almost all containers.
8311
8312         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
8313         gtk_widget_set_child_visible() where necessary.
8314
8315         * gtk/*.c: Remove excess map(), unmap(), and 
8316         realization/mapping invariant enforcing code
8317         from many containers.
8318
8319 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
8320
8321         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
8322         Get the foreground color from 'text', nor 'fg'. (#57568)
8323
8324 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
8325
8326         * gtk/*.c: Patch from Matthias Clasen to remove remove
8327         all instances of g_return_if_fail (foo != NULL); that are
8328         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
8329         since the second check catches the NULL anyways.
8330
8331 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
8332
8333         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
8334         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
8335         GDK_THREADS_ENTER()/LEAVE() pairs.
8336
8337         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
8338         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
8339         pairs. (Problem found by M. Meeks)
8340
8341 2001-07-18  Darin Adler  <darin@bentspoon.com>
8342
8343         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
8344         that we don't get a g_warning message every time we register a new
8345         icon size.
8346
8347         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
8348         using pixel variable of the correct type.
8349         
8350 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
8351
8352         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
8353         so that using X functions on a GdkWindow is possible, if
8354         a little hairy.
8355
8356         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
8357         and ts_origin of a GC, so that external parties can offset/restore
8358         a GC, when using gdk_window_get_internal_paint_info().
8359
8360 2001-07-17  Darin Adler  <darin@bentspoon.com>
8361
8362         * .cvsignore: Ignore the sgml directory made by gtkdoc.
8363         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
8364         instead of the deprecated gtk_window_set_policy.
8365         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
8366         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
8367         function to get rid of warning and some code too.
8368         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
8369         missing const.
8370         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
8371         unused local.
8372         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
8373         const.
8374         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
8375         (gdk_utf8_to_compound_text): Add missing const.
8376         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
8377         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
8378         cast and get rid of an unnecessary one.
8379         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
8380         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
8381         local.
8382         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
8383         Remove unused local.
8384         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
8385         missing const.
8386         * tests/testsocket.c: (add_child): Add cast so the printf format
8387         doesn't make us implicitly depend on what integer type
8388         gtk_socket_get_id returns.
8389         * tests/testtextbuffer.c: Add missing const.
8390         * tests/testtreefocus.c: (main): Remove unused local.
8391         * tests/treestoretest.c: (iter_remove): Remove unused local.
8392         (uppercase_value): Remove unused function.
8393         (make_window): Add statement to quiet the compiler's uninitialized
8394         variable warning.
8395
8396 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
8397
8398         * gtk/gtkrange.c:
8399         (second_timeout): 
8400         (initial_timeout): 
8401         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
8402         (gtk_range_calc_layout): compute the new layout based on an
8403         adjustment->value being passed in as argument.
8404         (gtk_range_button_press): for button2 slider warps, first recalc
8405         the layout, then adjust the value. also, use update_slider_position()
8406         for adjusting the value, so we keep pixel quantisation at which we
8407         usually operate (upon motion or button releases). the reason for this
8408         is that, we can't change the adjustment upon button2 presses to a non
8409         quantised value and upon button2 release re-quantise the value since
8410         that'd alter the value even if we didn't get any motion events (causing
8411         unexpected scroll area warps upon release and/or slider pixel-jitter).
8412         (gtk_range_motion_notify): update the slider position from queried
8413         coordinates, not event coordinates.
8414
8415 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
8416
8417         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
8418         the default gc values are: width=0, CapBut, JoinMiter.
8419
8420 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
8421
8422         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
8423         into account the xpad and ypad when calculating the width and the
8424         height of the pixbuf cel.
8425
8426 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
8427
8428         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
8429         Rename to gtk_radio_menu_item_get_group(), add deprecated
8430         alias. (#57044)
8431
8432         * gtk/gtkfilesel.c: Indentation fix.
8433
8434 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
8435
8436         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
8437         Hasselmann to fix warnings in compat macros. 
8438         (#56773)
8439
8440         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
8441         stupid wrong cast added in last patch.
8442
8443 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
8444
8445         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
8446         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
8447
8448 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
8449
8450         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
8451         missing cast.
8452
8453         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
8454         NULL/FALSE return value confusion.
8455
8456         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
8457         problem when scrollbar completely fills range. (Patch
8458         from  Matthias Clasen, #57047)
8459
8460 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
8461
8462         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
8463         clean up when handling events for move-resize emulation.
8464         (Problem traced down by Matthias Clasen, #57271)
8465
8466 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
8467
8468         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
8469           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
8470           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
8471           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
8472           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
8473           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
8474           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
8475         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
8476
8477 2001-07-09  Peter Williams  <peterw@ximian.com>
8478
8479         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
8480         for when srcdir != builddir
8481
8482 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
8483
8484         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
8485         gtk_tree_model_get_iter_root.
8486
8487         * gtk/gtkliststore.c: Add a bunch of g_return statements.
8488         (gtk_list_store_iter_n_children): Fix up.
8489
8490         * gtk/gtktreestore.c: Add a bunch of g_return statements.
8491
8492 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
8493
8494         * gtk/gtkwidget.c (gtk_widget_class_init):
8495         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
8496         restore some workingness.
8497
8498         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
8499         handle of window type for input-only windows.
8500
8501 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
8502
8503         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
8504         Patch from Gregory Merchan to add 
8505         gtk_button_box_set_secondary(), which separates
8506         the child into a separate group from the normal
8507         buttons. (#56331)
8508
8509         * gtk/gtkdialog.c: Make help buttons secondary by
8510         default.
8511
8512         * gtk/gtkbbox.c: Added a child property "secondary".
8513
8514         * gtk/testgtk.c: Turn on the help button for the 
8515         color selector to check that it properly appears
8516         as secondary.
8517
8518 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
8519  
8520         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
8521         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
8522         Add gdk_set_pointer_hooks() to allow pointer-querying to
8523         be hooked by an event record/playback system like GERD.
8524         (#56914)
8525         
8526 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
8527
8528         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
8529         in the right value of initial_emission to
8530         gtk_widget_set_style_internal (#57091)
8531
8532 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
8533
8534         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
8535         Make compile.
8536
8537         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
8538         with calling gtk_widget_set_style_internal() with
8539         the old style, not the new style. (#56989)
8540
8541 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
8542
8543         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
8544           gtk/gtkwidget.c:
8545         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
8546         not GTK_WIDGET_GET_ANCESTOR ... see 
8547         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
8548         Indicate the best practice in the docs for gtk_widget_get_toplevel().
8549
8550         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
8551         so GtkPlug can give the correct signals when transforming
8552         from a child to a toplevel.
8553         
8554         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
8555         reparentation correctly.
8556
8557         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
8558         Propagate the previous_toplevel argument down properly.
8559
8560         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
8561         of wrong atr list.
8562
8563         * gtk/gtkplug.[ch]: Add an "embedded" signal.
8564
8565         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
8566         signals.
8567
8568         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
8569         functions gtk_plug_get_id(), gtk_socket_get_id(),
8570         to avoid the user having to worry about realization,
8571         and gdkx.h.
8572
8573         * tests/testsocket.c: Extend to try out the new signals
8574         and gtk_plug/socket_get_id().
8575
8576         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
8577         setting of underline attributes.
8578
8579         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
8580         DestroyNotify events from SubstructureNotifyMask
8581
8582         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
8583         Switch GDK_WINDOW_TYPE (window) as needed.
8584
8585         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
8586         allow creation of toplevel windows as children of
8587         foreign windows.
8588
8589         * gtk/gtkplug.c: Remove hacks involving changing private
8590         fields of GdkWindow.
8591
8592         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
8593         exactly the same signals and notification
8594         be emitted for local embedding as for inter-process
8595         embedding.
8596
8597 2001-07-04  James Henstridge  <james@daa.com.au>
8598
8599         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
8600
8601 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
8602
8603         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
8604         XEMBED embedding add a _XEMBED_INFO property to the
8605         client with version number and a "mapped" flags.
8606         Use the mapped flag instead of the racy MapRequestEvent
8607
8608         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
8609         code to reliably set things (when the child is a passive
8610         embedder participating in the XEMBED protocol) intead
8611         of just being a hack for embedding non-participating
8612         programs. Fix various bugs and race conditions.
8613         
8614         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
8615         work by simply making the GtkSocket the gtk parent
8616         of the GtkPlug. Set a flag in this case and make
8617         the GtkPlug work like a normal container by overriding
8618         methods such as check_resize and "chaining past" GtkWindow
8619         to GtkBin.
8620
8621         * gtk/gtkentry.c (gtk_entry_real_activate)
8622           gtk/gtkmain.c (gtk_propagate_event): 
8623         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
8624         
8625         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
8626         gtk_widget_get_ancestor):
8627         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
8628         might not give the expected result and recommend
8629         an alternative.
8630
8631         * tests/testsocket.c tests/testsocket_child.c
8632         tests/testsocket_common.c tests/Makefile.am: Extended
8633         to test different type of adding plugs to sockets
8634         (local,active,passive), and to test mapping/unmapping
8635         the plug.
8636
8637         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
8638         mark the window as destroyed until after we
8639         called _gdk_windowing_window_destroy().
8640         (_gdk_windowing_window_destroy() may use GDK functions
8641         on the window.)
8642
8643         * gdk/x11/gdkinput.c: Remove the check for finalization - 
8644         devices can be finalized under some circumnstances.
8645  
8646         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
8647         small problem with GDK_TYPE_DEVICE.
8648  
8649 2001-07-02  Havoc Pennington  <hp@pobox.com>
8650
8651         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
8652         use constants not atoms.
8653
8654 2001-07-02  James Henstridge  <james@daa.com.au>
8655
8656         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
8657         PANGO_TYPE_TAB_ARRAY.
8658
8659         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
8660         for PANGO_TYPE_TAB_ARRAY.
8661
8662         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
8663         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
8664
8665         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
8666         the file.  Remove Pango types from defs -- they are now defined in
8667         libpango.
8668
8669 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
8670
8671         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
8672
8673         * gtk/gtkobject.c (gtk_object_destroy): invoke
8674         g_object_run_dispose().
8675
8676         * gtk/gtkwindow.c: 
8677         * gtk/gtkwidget.c: 
8678         * gtk/gtkobject.c:
8679         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
8680         method.
8681
8682 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
8683
8684         * gtk/gtktypeutils.c (gtk_type_class): Remove
8685         change check for GTK_TYPE_OBJECT derivation to
8686         G_TYPE_OBJECTS - it's Tim-approved to use this 
8687         for arbitary objects.
8688
8689         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
8690         prefix gtk_container_dequeue_resize_handler().
8691
8692         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
8693         to the hierarachy_changed signal, since you otherwise
8694         have to always keep that around.
8695
8696         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
8697         for extra argument to hierarchy_changed.
8698
8699 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
8700
8701         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
8702         for style to mean "revert to default style"
8703
8704         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
8705           gtk_widget_restore_default_style): Make this functions
8706         deprecated aliases for gtk_widget_set_style (widget, NULL).
8707
8708         * gtk/gtkwidget.[ch]: Remove:
8709            gtk_widget_set_default_style ()
8710            gtk_widget_push_style ()
8711            gtk_widget_pop_style ()
8712         These functions interact are overriden by RC files, and
8713         thus virtually useless, and complicated.
8714
8715 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
8716
8717         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
8718         most of the previous global variables in gtkrc.c. This is
8719         in preparation for multi-head, since each screen can
8720         have different GtkSettings and RC information.
8721
8722         * gtk/gtkrc.[ch]: 
8723
8724         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
8725         GtkSettings parameter to GtkRcStyle::parse.
8726
8727         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
8728         Add two new settings gtk-theme-name, gtk-key-theme-name,
8729         for RC files that are loaded by name after reading
8730         the default RC files.
8731         
8732         * gtk/gtkrc.c: Allow priorities for styles, as wll as
8733         bindings.
8734
8735         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
8736         and use it by default for RC files loaded via 
8737         gtk-theme-name, gtk-key-theme-name.
8738
8739         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
8740         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
8741         tests/testgtkrc: Require pathnames to be absolute.
8742
8743         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
8744         the source when parsing, since the operation of looking up a
8745         pixmap from an RC file depends on the parsing context.
8746
8747         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
8748         reset RC styles on all widgets when files are reparsed.
8749
8750         * tests/testgtk.c (create_rc_file) 
8751           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
8752         Simplify, now that gtk_rc_reparse_all() resets styles on
8753         all widgets itself.
8754
8755         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
8756         return value.
8757
8758         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
8759         GtkSettings argument.
8760
8761         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
8762         gtk_settings_get_global().
8763
8764         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
8765         to get the appropriate GtkSettings for a widget. (For now,
8766         just gets the default GtkSetttings.) 
8767
8768         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
8769           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
8770         changes.
8771
8772         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
8773         getting a style for a path without actually having a widget.
8774         (Allows using a style for a subpart of a widget, for
8775         example.)
8776
8777         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
8778         the RC files to be reloaded for just one GtkSettings
8779         (not sure how useful this really is.)
8780
8781         * gtk/gtkrc.h: Deprecate
8782         gtk_rc_add_widget_name/widget_class/class_style
8783
8784 2001-06-30  Alex Larsson  <alexl@redhat.com>
8785
8786         * gdk/linux-fb/gdkinput-none.c:
8787         * gdk/linux-fb/gdkinput.c:
8788         * gdk/linux-fb/gdkinputprivate.h:
8789         Convert GdkDevice to a GObject.
8790
8791         * linux-fb/gdkprivate-fb.h:
8792         * linux-fb/gdkvisual-fb.c:
8793         Convert GdkVisual to a GObject.
8794
8795 2001-06-29  Alex Larsson  <alexl@redhat.com>
8796
8797         * gdk/gdkvisual.h:
8798         * gdk/gdkcolor.c:
8799         * gdk/x11/gdkx.h:
8800         * gdk/x11/gdkvisual-x11.c:
8801         Convert GdkVisual to a GObject.
8802
8803         * gdk/gdkinput.h:
8804         * gdk/gdkevents.c:
8805         * gdk/x11/gdkinputprivate.h:
8806         * gdk/x11/gdkinput-gxi.c:
8807         * gdk/x11/gdkinput-none.c:
8808         * gdk/x11/gdkinput-x11.c:
8809         * gdk/x11/gdkinput-xfree.c:
8810         * gdk/x11/gdkinput.c:
8811         Convert GdkDevice to a GObject.
8812
8813 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
8814
8815         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
8816         to just plain new, fixing the number of columns, and column types
8817         at creation time.
8818
8819         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
8820
8821         * gtk/gtkcellrenderertext.c
8822         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
8823         height to a specific font.
8824
8825         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
8826
8827         * tests/*c: change to work with new store models.
8828
8829 2001-06-29  Havoc Pennington  <hp@redhat.com>
8830
8831        * Throughout: fixes to compile with G_DISABLE_COMPAT
8832         (s/g_signal_connectc/g_signal_connect/,
8833         s/g_signal_newc/g_signal_new/,
8834         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
8835
8836 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
8837
8838         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8839         add path argument to selection callbacks.
8840
8841 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
8842
8843         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
8844         walk through a model in a depth first manner, with the option to
8845         break out.
8846
8847 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
8848
8849         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
8850         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
8851         column and follow it when draged, rather than a location in the
8852         view. "expander_column" property and drawing functions changed
8853         accordingly.  Fixes bug #55942.
8854
8855         (gtk_tree_view_{set,get}_expander_column): Now works with a
8856         GtkTreeViewColumn* instead of int.
8857
8858 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
8859
8860         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
8861
8862 2001-06-28  Havoc Pennington  <hp@pobox.com>
8863
8864         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
8865         image data to the screen, using a server grab to avoid race
8866         conditions.
8867
8868         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
8869         check for NULL return from gtk_image_new_from_stock(), it never
8870         returns NULL.
8871         (gtk_item_factory_create_item): fix bug where we parsed the stock
8872         ID as an inline pixbuf
8873
8874         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
8875
8876         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
8877         support (should be using binding set here)
8878
8879         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
8880         support (should be using binding set here)
8881
8882         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
8883         support
8884
8885         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
8886
8887         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
8888
8889         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
8890
8891         * gtk/gtkimcontextsimple.c
8892         (gtk_im_context_simple_filter_keypress): keypad
8893
8894         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
8895
8896         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
8897
8898         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
8899
8900         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
8901         should be binding-setted)
8902
8903         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
8904
8905         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
8906
8907         * gtk/gtkcalendar.c: numeric keypad fixes
8908
8909         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
8910         support
8911
8912         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
8913         screwup
8914
8915         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
8916         clip the render area to the drawable's clip region in advance,
8917         so we don't get data from the server that we don't need.
8918
8919         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
8920         check return value of gdk_pixbuf_get_from_drawable(), fall back 
8921         to bilevel alpha if we can't get the pixbuf to composite against.
8922
8923         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
8924
8925         * gdk/gdkimage.c (gdk_image_get_colormap): add
8926         gdk_image_set_colormap, gdk_image_get_colormap
8927
8928         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
8929         take a region of the image, instead of converting the entire
8930         image.
8931
8932         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
8933         keybinding signal. Add default bindings for it. Add default
8934         handler for show_help that shows the tooltip for the widget.
8935
8936         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
8937         "close" keybinding signal, remove key press handler.
8938
8939         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
8940         it's not our usual practice to leave a deprecated function around
8941         with a runtime warning, plus we don't want it to appear in docs,
8942         plus if we make them yellow no one will want to change them
8943         anyhow.
8944
8945 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
8946
8947         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
8948         GTK_WIDGET_REALIZE() for resize queueing.
8949
8950         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
8951         GTK_WIDGET_REALIZE() for post event delivery destruction upon
8952         GDK_DESTROY.
8953         
8954         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
8955         sompensate for former (pre-2.0) connect_after() facility.
8956         (gtk_widget_send_expose): 
8957         (gtk_widget_event): assert the widget is realized, since event delivery
8958         to non-realized widgets is essentially a bug. event handlers should
8959         be able to unconditionally rely on widget->window (unless they
8960         emit events on their own which can trigger widget destruction).
8961         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
8962         logic. event delivery happens as follows:
8963         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
8964         b) if !was_handled in (a) and the widget is still realized, emit event-
8965            specific signal (RUN_LAST handler). returns was_handled.
8966         c) emission of GtkWidget::event-after for notification if the widget is
8967            still realized (regardless of was_handled from previous stages, no
8968            class handler). no return value.
8969         d) was_handled gets passed on to caller, to determine further
8970            propagation. if the widget got unrealized meanwhile, was_handled
8971            is returned as TRUE.
8972
8973         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
8974         gdk_event_get_coords().
8975
8976 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
8977
8978         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
8979         age 0, binary age 0. depend on glib 1.3.7.
8980
8981         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
8982
8983         * gtk/gtkmenubar.c: same here.
8984         
8985         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
8986
8987         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
8988
8989         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
8990         
8991         * gtk/gtkmenubar.c (add_to_window): likewise.
8992         
8993         * gtk/gtktextbtree.c: and here...
8994         
8995         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
8996         
8997         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
8998         
8999         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
9000         
9001         * gtk/gtktreeviewcolumn.c:
9002         (_gtk_tree_view_column_set_tree_view): yet again.
9003
9004         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
9005         signal connections without g_signal_connect_data().
9006         
9007         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
9008         demo of the matter.
9009         
9010         * demos/testpixbuf.c (main): running out of equality phrases for the
9011         ChangeLog, but had to adapt connections here as well.
9012         
9013         * demos/testanimation.c (progressive_timeout): and for the fun of it,
9014         tackled this the same way.
9015         
9016         * tests/testtext.c (create_view): ok, it's becoming a pain at this
9017         point, but had enough enery for one more fix.
9018
9019         * tests/testtreecolumns.c (main): stand up man, do your work!
9020
9021         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
9022         fix, either that's been all of it or CVS gtk is broken yet again.
9023         
9024 2001-06-29  James Henstridge  <james@daa.com.au>
9025
9026         The following changes correspond to bug #56812
9027
9028         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
9029         code for GdkDevice.
9030
9031         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
9032         GdkCursor.
9033
9034 2001-06-19  Havoc Pennington  <hp@pobox.com>
9035
9036         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
9037         for mapping a window without fooling with stacking order, but
9038         updating the "withdrawn" flag
9039
9040         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
9041         filtering as soon as possible, moving move resize and wmspec_check
9042         handling after the event filter.  Make default filter apply to all
9043         events, not just those with no GdkWindow wrapped around the X
9044         window. Fix a FIXME about how the window could be a pixmap using 
9045         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
9046
9047         Also, be robust against events not on a known GdkWindow.
9048
9049         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
9050         gdk_x11_ungrab_server): export reference-counted server grabs, so
9051         other people can grab server over a GDK function that also does
9052         so.
9053
9054 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
9055
9056         * gtk/gtktreeviewcolumn.c
9057         (gtk_tree_view_column_pack_start_cell_renderer): New function to
9058         reflect that you can (hypothetically) pack cell renderers into a
9059         column.
9060         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
9061         (gtk_tree_view_column_cell_is_visible): Move more functionality to
9062         the column.
9063         (gtk_tree_view_column_cell_can_focus): Move more functionality to
9064         the column.
9065
9066         * gtk/gtktreeview.c: Move to use new column-packing code.
9067         (gtk_tree_view_real_expand_row): remove totally braindead code.
9068         (gtk_tree_view_real_collapse_row): ditto.
9069
9070 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
9071
9072         * gtk/gtktreeviewcolumn.c: Fix a typo.
9073         
9074 2001-06-26  Joel Becker  <jlbec@evilplan.org>
9075
9076         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
9077           at the end of the file
9078
9079 2001-06-26  Havoc Pennington  <hp@redhat.com>
9080
9081         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
9082
9083 2001-06-26  Havoc Pennington  <hp@redhat.com>
9084
9085         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
9086         property
9087
9088 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
9089
9090         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
9091         stupid missing statement
9092
9093         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
9094         private function for ATK.  It notifies you of how many _visible_
9095         children are deleted when a node is deleted.  Should be used by
9096         atk only.
9097
9098 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
9099
9100         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
9101         Use new pango_context_get_metrics() to fix problems
9102         with font lists in descriptions. (#56184, reported by
9103         Jonas Borgström)
9104
9105 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
9106
9107         * gtk/gtkiconfactory.c:
9108         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
9109         item factory so inlined pixbufs actually work.
9110
9111 2001-06-25  Havoc Pennington  <hp@redhat.com>
9112
9113         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
9114         s/RESIZEABLE/RESIZABLE/
9115
9116         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
9117
9118 2001-06-25  Alexander Larsson  <alexl@redhat.com>
9119
9120         * configure.in:
9121         Added --enable-fbmanager. This is some experimental code
9122         that lets several GtkFB apps coordinate their access to the
9123         framebuffer.
9124         
9125         * acconfig.h:
9126         Added ENABLE_FB_MANAGER.
9127
9128         * gdk/linux-fb/Makefile.am:
9129         Added gdkfbmanager and gdkfbswitch.
9130
9131         * gdk/linux-fb/gdkkeyboard-fb.c:
9132         * gdk/linux-fb/gdkmouse-fb.c:
9133         * gdk/linux-fb/gdkprivate-fb.h:
9134         Split device init and open so that
9135         they can be opened and closed while switched
9136         away.
9137
9138         * gdk/linux-fb/gdkmain-fb.c:
9139         Add the basic manager communication.
9140
9141         * gdk/linux-fb/gdkrender-fb.c:
9142         Don't update to the shadow fb if we're
9143         blocked by the fb manager.
9144
9145 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
9146
9147         * docs/Changes-2.0.txt: Add note about child property
9148         changes.
9149
9150 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
9151
9152         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
9153         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
9154
9155         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
9156         with un'reffing wrong list reported by Jeff Franks.
9157
9158         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
9159
9160         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
9161         for the default icon. Remove inline XPM.
9162
9163         * gtk/gtkstock.h gtk/gtkiconfactory.c:
9164         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
9165         is used for GTK_STOCK_DND, but it is a bit too small.)
9166
9167         * gtk/stock-icons/stock_dnd_multiple.png
9168         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
9169
9170         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
9171         TRUE when starting a drag. In other cases, we are
9172         just observing. (#52995)
9173
9174         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
9175         function to set the icon for a drag from a GdkPixbuf
9176         or stock ID.
9177
9178         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
9179         Likewise, for drag sources.
9180
9181         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
9182         (Now should be done using the stock system.)
9183
9184 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
9185
9186         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
9187         Removed - didn't work and not particularly useful anyways
9188         if it did. 
9189
9190 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
9191
9192         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
9193         introduced last night that was making things decidedly not work.
9194
9195         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
9196         so that we have getter/setter pairing everywhere it makes
9197         sense. (#55767)
9198
9199         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
9200         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
9201         deprecated compat macro. (#55516)
9202
9203         * gtk/gtklabel.[ch]: Add functions
9204         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
9205         gtk_label_set_label(), which mirror the property API for GtkLabel.
9206         Make gtk_label_get_attributes() only reflect the attributes
9207         set by gtk_label_set_attributes.
9208
9209         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
9210         from gtk_notebook_set_page().
9211
9212 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
9213
9214         * configure.in: Fix tests for XShm.h.
9215
9216         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
9217         gdk_image_new() by use of goto, properly use g_object_unref().
9218
9219 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
9220
9221         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
9222         calls, as GdkImage is an object. these should be g_obejct_unref()
9223         instead but that won't work because of the g_error() statement
9224         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
9225         to spot these places.
9226
9227 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
9228
9229         * modules/input/gtkimcontextxim.c: Fixup some problems with 
9230         text length handling in error cases.
9231
9232         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
9233         a bit to make test actually warn on attempt to allocation
9234         a negative size. (#56101, Matthias Clasen)
9235
9236 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
9237
9238         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
9239         noticed by Brian Cameron.
9240         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
9241         Cameron.
9242
9243 2001-06-22  Hans Breuer  <hans@breuer.org>
9244
9245         * gdk/gdk.def : updated externals
9246
9247         * gdk/win32/gdkdrawable-win32.c : corrected some casts
9248         in GDK_NOTEs
9249
9250         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
9251         to translate coordinates to the internal > 16 bit system
9252         Try to handle WM_WINDOWPOSCHANGED to get better performance for
9253         when moving/resizing
9254
9255         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
9256         and gdk_keymap_get_direction (). The latter is untested for
9257         the RTL case
9258
9259         * gtk/gtk.def : updated externals
9260
9261         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
9262         from pango_language_from_string (), not an already freed pointer
9263
9264         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
9265         binary (-kb) to be useable on windoze
9266  
9267 2001-06-21  Alexander Larsson  <alexl@redhat.com>
9268
9269         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
9270         Update to new PangoLanguage changes.
9271         
9272         * gtk/gtkwindow-decorate.c:
9273         * gtk/gtkwindow.[ch]:
9274         Added setting argument to gtk_window_set_has_frame ()
9275         
9276 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
9277
9278         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
9279         the case without XKB properly.
9280
9281         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
9282         unused gtk_rc_auto_parse variable.
9283
9284         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
9285         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
9286         longer needed with GdkPixbuf.
9287
9288         * gtk/gtkrc.c (_gtk_rc_init): Make private.
9289
9290 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
9291
9292         * gtk/gtkentry.h: Mark deprecated functions with
9293         GTK_DISABLE_DEPRECATED.
9294
9295 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
9296
9297         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
9298
9299         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
9300
9301         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
9302           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
9303           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
9304           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
9305           to recent changes in Pango.
9306
9307         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
9308           to test whether the basic engine honors them.
9309
9310 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
9311
9312         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
9313         gtk_container_child_get_property().
9314
9315 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
9316
9317         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
9318         (gtk_tree_view_move_cursor_page_up_down): implement.
9319
9320 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
9321
9322         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
9323         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
9324         don't use automatic fixed size buffer for printf-ing floats, doubles
9325         can expand to really _huge_ strings, use g_strdup_printf() instead.
9326
9327 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
9328
9329         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
9330         construct property in 1.2 and still needs to be.
9331
9332         * gtk/gtkwidget.c: "composite_child" is not a settable property.
9333
9334 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
9335
9336         * gtk/gtkliststore.c (gtk_list_store_clear): 
9337         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
9338         clear a model.
9339
9340 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
9341
9342         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
9343
9344         * gtk/Makefile.am:
9345         * gtk/gtk.h: disabled GtkPacker compilation.
9346
9347         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
9348
9349         * gtk/gtknotebook.c:
9350         * gtk/gtktable.c:
9351         * gtk/gtkbox.c: ported this over to child properties.
9352
9353         * gtk/gtksettings.c: fetch class properties via
9354         g_object_class_list_properties().
9355
9356         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
9357         child arg interface. use gobjectnotifyqueue.c for child property
9358         notification.
9359
9360         * gtk/gtkwidget.[hc]: provide necessary means for container child
9361         properties, i.e. ::child_notify signal,
9362         gtk_widget_freeze_child_notify(),
9363         gtk_widget_child_notify(),
9364         gtk_widget_thaw_child_notify().
9365
9366         * tests/testgtk.c: removed inferior property handling code, for
9367         property editing, a generic module should be used, and GLE
9368         coincidentally fullfills that purpose.
9369
9370         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
9371         needs to be adapted to g_object_class_list_properties() before this
9372         builds again.
9373
9374 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
9375
9376         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
9377         test if a node is expanded.
9378
9379 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
9380
9381         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
9382         where collapsing a selected row would result in the cursor/anchor
9383         getting screwed up.
9384
9385 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
9386
9387         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
9388         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
9389         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
9390         Now I can really reorder/sort all Store widgets.  treesorttest
9391         seems to just work now.
9392         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
9393         testtreesort worked through a big coincidence all this time.
9394         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
9395         code.
9396         * tests/testtreecolumns.c: Big 'ol warning at the top letting
9397         people know that this code should never ever ever be copied.
9398
9399 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
9400
9401         * gtk/gtkwindow.h: Fixed a small typo, it should be
9402         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
9403         on line 134.
9404
9405 2001-06-14  Havoc Pennington  <hp@redhat.com>
9406
9407         Docs fixups, and:
9408         
9409         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
9410         GTK_DISABLE_DEPRECATED
9411
9412 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
9413
9414         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
9415         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
9416         finish it off tonight, though it basically works now when it's a
9417         list.  Also, I have a sinking feeling neither GtkTreeStore or
9418         GtkListStore actually resort when adding a new item.  I'll look
9419         into it.
9420
9421 2001-06-14  Havoc Pennington  <hp@redhat.com>
9422
9423         * demos/gtk-demo/main.c (load_file): fix bug identified by
9424         warnings I just added to gtktextbuffer
9425
9426 2001-06-14  Havoc Pennington  <hp@redhat.com>
9427
9428         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
9429
9430         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
9431
9432         * gtk/gtktextbtree.c: don't leak node data all over the place.
9433
9434         * demos/gtk-demo/main.c (main): create fontify tags for the right
9435         buffer
9436
9437         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
9438         to mention tags in the same table can't have the same name,
9439         suggested by Skip Montanaro
9440
9441 2001-06-11  Havoc Pennington  <hp@redhat.com>
9442
9443         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
9444         for trying to add two tags with same name to the tag table
9445
9446         * demos/gtk-demo/main.c (main): fix colors ;-)
9447
9448 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
9449
9450         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
9451         that allows grouping together multiple windows so that grabs
9452         within that set of windows only affect those windows.
9453
9454         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
9455         signal for notification when a widget becomes shadowed
9456         by a grab or is no longer shadowed by a grab.
9457
9458         * gtk/gtkwidget.c (gtk_widget_propagate_state)
9459           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
9460         insenstive widgets to maintain a grab.
9461
9462 2001-06-14  Alexander Larsson  <alexl@redhat.com>
9463
9464         * docs/README.linux-fb:
9465         Add some example config files that can be used with the URW fonts.
9466         
9467         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
9468         Set up the color ramps for DirectColor mode.
9469
9470 2001-06-11  Havoc Pennington  <hp@redhat.com>
9471
9472         * Release 1.3.6
9473          
9474 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9475
9476         * gdk/linux-fb/gdkwindow-fb.c:
9477         Unify shaped window code and make it repaint the area that used
9478         to be part of the shape, but isn't anymore.
9479
9480 2001-06-11  Havoc Pennington  <hp@redhat.com>
9481
9482         * NEWS: Updates
9483
9484         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
9485
9486         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
9487         
9488 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9489
9490         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
9491         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
9492         passes zero instead, so do we.
9493         
9494 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
9495
9496         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
9497         Deep copy dash_list too.
9498         (_gdk_fb_gc_new): Set default cap_style before
9499         setting values.
9500
9501 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
9502
9503         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
9504         gdk_keymap_get_direction): New functions.
9505
9506 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
9507
9508         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
9509         gtk_tree_model_get_flags by adding a second flag for atk.
9510
9511         * gtk/gtktreemodel.c: make cursor behavior interact better with
9512         mouse presses.
9513
9514 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
9515
9516         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
9517         expand_row/collapse_row to be 2 signals each -- test_expand_row
9518         and row_expanded as well as test_collapse_row and row_collapsed.
9519
9520 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
9521
9522         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
9523         signal name to be changed instead of selection_changed.
9524
9525 2001-06-08  Havoc Pennington  <hp@redhat.com>
9526
9527         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
9528         "scroll_offset" property for notification when the layout offsets
9529         may have changed
9530         (gtk_entry_adjust_scroll): add notify for scroll_offset
9531         (gtk_entry_layout_index_to_text_index): function to compensate for
9532         preedit string when doing coordinate stuff on the entry's layout
9533         (gtk_entry_text_index_to_layout_index): inverse function
9534         (gtk_entry_get_layout_offsets): hook to get current position of
9535         the layout      
9536         (gtk_entry_get_layout): hook to get the layout itself.
9537
9538         * gtk/gtklabel.c (gtk_label_get_layout): new function
9539
9540 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
9541
9542         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
9543         keybinding.
9544         (gtk_tree_view_focus): Fix merge conflict.
9545
9546 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
9547
9548         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
9549         clean up cursor handling.
9550
9551 2001-06-08  Havoc Pennington  <hp@redhat.com>
9552
9553         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
9554         function
9555
9556         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
9557         this function
9558
9559 2001-06-08  Alex Larsson  <alexl@redhat.com>
9560
9561         * gtk/gtkcompat.h.in:
9562         Added compat macros for all old GTK_TYPE_GDK_xxx types.
9563         Fixes bug #52892
9564
9565 2001-06-08  Havoc Pennington  <hp@redhat.com>
9566         
9567         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
9568         parent still
9569
9570 2001-06-08  Havoc Pennington  <hp@redhat.com>
9571
9572         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
9573         don't call g_list funcs on GSList
9574
9575         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
9576         gtk_container_focus(), since some widgets have focusable locations
9577         which are not other widgets. These widgets should not have to be 
9578         containers just to manage the focus. For example, GtkHSV is
9579         currently a container for no good reason. Also, this cleans
9580         up the "if (is_container && is_sensitive && is_drawable)
9581         container_focus ()" mess in widget implementations.
9582
9583         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
9584         function, and have it just call gtk_widget_child_focus().
9585
9586         * gtk/gtkhsv.c: derive from widget not container
9587         
9588         Throughout: fix to reflect GtkContainer::focus change
9589         
9590 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
9591
9592         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
9593         range.  Fix bug #55921
9594
9595         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
9596         (#55920).
9597
9598 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
9599
9600         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
9601         and gdk_keymap_get_current_direction().
9602
9603         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
9604           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
9605         the current locked group, use it to set the keymap
9606         direction.
9607
9608         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
9609         to determine whether we draw a split cursor or use
9610         a jumping cursor based on the current direction.
9611
9612         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
9613         Obey the split cursor setting. 
9614
9615 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
9616
9617         * gtk/gtkimmulticontext.c (activate_cb): Only activate
9618         when toggling on, not when toggling off... (#55906)
9619
9620 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
9621
9622         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
9623         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
9624         in docs. (#55812, Vitaly Tishkov)
9625
9626 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
9627
9628         * demos/gtk-demo/main.c (create_tree): Changed signal name from
9629         selection_changed to changed in signal connection to GtkTreeSelection,
9630         also used g_signal_connectc since GtkTreeSelection is now a GObject.
9631
9632 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
9633
9634         * gtk/gtktreeselection.c: Now it's a GObject instead of a
9635         GtkObject.  The GtkTreeSelection::selection_changed signal is now
9636         the GtkTreeSelection::changed signal.
9637
9638         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
9639         object.
9640
9641         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
9642         object.
9643
9644 2001-06-07  Havoc Pennington  <hp@redhat.com>
9645
9646         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
9647
9648 2001-06-07  Havoc Pennington  <hp@redhat.com>
9649         
9650         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
9651         (not tested yet because with absolute path to srcdir I can't build
9652         atk, but it was broken anyway so this may help) 
9653
9654 2001-06-07  Havoc Pennington  <hp@redhat.com>
9655
9656         * configure.in: output m4macros/Makefile
9657         
9658 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
9659
9660         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
9661         buttons.  Fixes #55460 reported by matthiasc@poet.de.
9662
9663 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
9664
9665         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
9666         expansion/collapsing so it only happens in one place.
9667         (gtk_tree_view_real_expand_row): ditto.
9668
9669 2001-06-07  Havoc Pennington  <hp@redhat.com>
9670
9671         * tests/Makefile.am: add missing -I flag
9672
9673         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
9674
9675         * configure.in: use pkg-config to see if GModule is
9676         supported; fix to properly turn on included loaders 
9677         when GModule isn't supported; don't use AC_CHECK_LIB 
9678         when libs are not installed yet
9679
9680         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
9681
9682         * Makefile.am (SUBDIRS): add m4macros subdir
9683
9684         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
9685         dependencies also.
9686
9687 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
9688
9689         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
9690         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
9691
9692 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
9693
9694         * gtk/gtktreeview.c
9695         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
9696         bindings to expand and collapse rows.
9697         (gtk_tree_view_real_select_cursor_parent): New key binding.
9698         (gtk_tree_view_real_toggle_cursor_row): New key binding.
9699
9700         * gtk/gtkmarshal.list: new
9701         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
9702
9703 2001-06-06  Havoc Pennington  <hp@redhat.com>
9704
9705         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
9706
9707         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
9708         Down to move visually rather than logically, since it confuses 
9709         people. Add -/+ and Ctrl--/+ bindings for logical movement.
9710
9711 2001-06-06  Alex Larsson  <alexl@redhat.com>
9712
9713         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
9714         Fix up error messages.
9715
9716 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
9717
9718         * gtk/gtktooltips.h: Include gtkwidget.h 
9719         (#55798, Karl Nelson)
9720
9721         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
9722         a valid latin-1 character. (Marc Lehmann, #35467)
9723
9724         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
9725         (Marc Lehmann, #35467)
9726         
9727 2001-06-05  Alex Larsson  <alexl@redhat.com>
9728
9729         * demos/gtk-demo/appwindow.c (do_appwindow):
9730         Don't swap the order of the args to gtk_widget_destroyed.
9731
9732         * tests/testgtk.c (destroy_properties):
9733         Don't crash when the properties window is destroyed.
9734
9735         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
9736         Use with_mnemonics to handle the case of stock items with
9737         underscores in them.
9738
9739 2001-06-05  Havoc Pennington  <hp@redhat.com>
9740
9741         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
9742         gtk_text_iter_reorder
9743
9744 2001-06-05  Havoc Pennington  <hp@redhat.com>
9745
9746         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
9747
9748 2001-06-05  Havoc Pennington  <hp@redhat.com>
9749
9750         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
9751         to the range that was set
9752
9753         * gtk/gtkrange.c: add value_changed signal, primarily 
9754         intended for use with GtkScale
9755         (gtk_range_set_increments): new function
9756         (gtk_range_set_range): new function with weird name
9757         (gtk_range_set_value): new function
9758         (gtk_range_get_value): new function
9759
9760         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
9761         from gtk_spin_button_get_value_as_float(). Compat #define
9762         added for get_value_as_float.
9763
9764         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
9765
9766         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
9767
9768 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
9769
9770         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
9771
9772 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
9773
9774         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
9775
9776         * tests/testgtk.c (create_tooltips): Remove usage of
9777         gtk_widget_set().
9778
9779 2001-06-05  Havoc Pennington  <hp@redhat.com>
9780
9781         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
9782
9783         Applying patch from Jeff Franks, with function docs added.
9784         
9785         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
9786         remove call to set_mnemonic_widget, change docs a bit.  
9787
9788         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
9789         new function
9790
9791         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
9792         new function
9793
9794         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
9795
9796         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
9797         function
9798         (gtk_radio_button_new_with_mnemonic_from_widget): new function
9799
9800         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
9801         new function
9802
9803         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
9804         function        
9805
9806         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
9807         auto-selection of mnemonic widget.
9808
9809 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
9810
9811         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
9812         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
9813         (gtk_tree_view_column_set_min_width): ditto.
9814
9815 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
9816
9817         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
9818         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
9819
9820 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
9821
9822         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
9823         gtk_clist_thaw().
9824
9825 2001-06-04  Havoc Pennington  <hp@pobox.com>
9826
9827         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
9828 r       eleases for buttons 6, 7
9829
9830 2001-06-04  Havoc Pennington  <hp@redhat.com>
9831
9832         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
9833         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
9834         #55562
9835
9836 2001-06-04  Havoc Pennington  <hp@redhat.com>
9837
9838         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
9839         where text_view->layout == NULL by assuming its size is 0, 
9840         i.e. same as if we haven't done any reflow. Reported by 
9841         Hidetoshi Tajima #55448 
9842
9843 2001-06-04  Havoc Pennington  <hp@redhat.com>
9844
9845         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
9846         and 7 for scroll left/right, from Thomas Broyer
9847
9848 2001-05-10  Havoc Pennington  <hp@redhat.com>
9849
9850         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
9851         we need to parse the xsetting as if it were an RC file string.
9852
9853         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
9854         value of palette from settings, not from static variable
9855
9856         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
9857         xsettings translation table
9858
9859         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
9860         hardcoding the toolbar style conflicts with new customizable 
9861         toolbar style philosophy
9862         (gtk_toolbar_class_init): add settings for default toolbar style;
9863         these are used unless the app specifically forces a toolbar style
9864
9865         * gtk/gtksettings.c (settings_install_property_parser): only
9866         return at the start if we warn and parser == NULL
9867
9868         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
9869         palette changed handler so we don't notify dead color selections
9870
9871         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
9872         xthickness/ythickness of 0 or 1 properly 
9873         (gtk_default_draw_resize_grip): clear the background behind the
9874         resize grips, and align to bottom right if we square the 
9875         area to be drawn.
9876
9877         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
9878         statusbar label to 1, so it doesn't make toplevels resize oddly
9879         (gtk_statusbar_size_request): add grip size to request
9880         (gtk_statusbar_size_allocate): hack so the hbox still works with 
9881         the grip size in the request
9882
9883         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
9884         bug where showing all on a toplevel makes the toolbar 
9885         button text appear despite the toolbar mode
9886
9887         * gtk/gtkmenubar.c: add internal padding style property
9888
9889         * gtk/gtktoolbar.c: Add internal padding style property; add
9890         shadow type style property
9891
9892         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
9893         state; and put Container::border_width outside the frame
9894
9895         * gtk/gtktextview.c: don't draw focus rectangle if we're in
9896         interior focus mode, we just use blinking cursor
9897
9898 2001-06-04  Havoc Pennington  <hp@redhat.com>
9899
9900         * configure.in: Make gdk-pixbuf have same version number as GTK
9901
9902 2001-06-04  Havoc Pennington  <hp@redhat.com>
9903
9904         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
9905         digits greater than 6. If there actually are limits (which there
9906         likely aren't), should clamp to them not warn.
9907         (gtk_spin_button_new_with_range): don't take log of 0
9908         (gtk_spin_button_size_request): use digits to compute size
9909         request, rather than step increment.
9910
9911         * tests/testgtk.c (create_spins): test larger values of digits
9912         
9913         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
9914         font on map not expose, so we don't get weirdness during scrolling
9915
9916 2001-06-04  Havoc Pennington  <hp@redhat.com>
9917
9918         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
9919         Sam Solon, bug #54577, update value even if not drawable.
9920
9921 2001-06-04  Havoc Pennington  <hp@redhat.com>
9922
9923         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
9924         SCROLL_LEFT, reported by Thomas Broyer.
9925
9926 2001-06-04  Havoc Pennington  <hp@redhat.com>
9927
9928         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
9929         Process updates immediately, to prevent funny lag effect
9930         when scrolling, at some mild potential efficiency cost.
9931
9932 2001-06-04  Havoc Pennington  <hp@redhat.com>
9933
9934         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
9935         slider on the click.
9936
9937 2001-06-03  Havoc Pennington  <hp@pobox.com>
9938
9939         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
9940         hscale/vscale details, so we can use it for scrollbar as well.
9941
9942         * tests/testgtk.c (reformat_value): honor digits from GtkScale
9943
9944         * gtk/gtkenums.h (GtkTroughType): Remove this enum
9945         (GtkScrollType): add START and END from GtkTroughType
9946
9947         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
9948         its x/y arguments
9949
9950         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
9951         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
9952         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
9953         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
9954         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
9955
9956         Notable changes in the process:
9957          
9958         - stepper_size style property is the height for vertical 
9959           ranges, width for horizontal; the other dimension matches
9960           the trough size
9961         - add ability to do NeXT-style steppers (and several other styles
9962           that don't make any sense)
9963         - added min_slider_length, fixed_slider_length properties to
9964           GtkScrollbar
9965         - cleaned some private (or at least useless) functions out of
9966           gtkscale.h    
9967         - moved bindings to GtkScale from subclasses, even arrow keys,
9968           since blind users don't know scale orientation.
9969         - change move_slider action signal to use new GtkScrollType,
9970           remove GtkTroughType argument
9971         - digits rounds the values a range will input to the given 
9972           number of decimals, but will not try to force adjustment 
9973           values set by other controllers. That is, we no longer
9974           modify adjustment->value inside a value_changed handler.
9975         - added getters for GtkScale setters
9976         - middle-click begins a slider drag
9977         
9978 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
9979
9980         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
9981         getting the focus code to work.
9982         (gtk_tree_view_class_init): Add a bunch of keybindings.
9983
9984         * gtk/gtktreeviewcolumn.c
9985         (gtk_tree_view_column_set_cell_data_func):
9986         s/GtkCellDataFunc/GtkTreeCellDataFunc.
9987         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
9988         of "properties_changed" to help justify the death of the latter
9989         signal. (-:
9990
9991         * tests/testtreefocus.c (main): Let some columns be focussable to
9992         test focus better.
9993
9994 2001-06-01  Havoc Pennington  <hp@redhat.com>
9995
9996         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
9997         
9998         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
9999         overwrite in overwrite mode if we already deleted the selection
10000         and replaced it with new text.  
10001
10002         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
10003         selection to an empty range, clear the clipboard if we owned it.
10004         (gtk_label_set_selectable): give up selection if we become
10005         unselectable.
10006         (gtk_label_state_changed): override state changed to unselect text
10007         when insensitive
10008         (get_text_callback): add paranoia check that indexes aren't
10009         outside of label->text
10010         (gtk_label_select_region): make -1 for start_offset mean "end of
10011         label," for consistency with GtkEditable
10012
10013         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
10014         GTK_DIALOG_NO_SEPARATOR flag
10015
10016 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
10017
10018         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
10019         notifications on non-existant "enable_arrow_keys".
10020         (#53753, Skip Montanaro)
10021
10022 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
10023
10024         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
10025         GDK_TYPE_RECTANGLE.
10026
10027         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
10028         of allocation argument be GDK_TYPE_RECTANGLE.
10029
10030 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
10031
10032         * gtk/gtkoptionmenu.c: Account for the fact that the border
10033         width is _outside_ the window. (Fixes #54585, bug found
10034         by Bastien Nocera.)
10035
10036 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
10037
10038         * gtk/gtksettings.c (gtk_settings_get_property): Validate
10039         value from GDK settings against parameter spec.
10040
10041         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
10042         to temporary values and use g_value_transform(), since
10043         thinking that GValue was going to be easy or efficient
10044         to use was, of course, a mistake.
10045
10046         * gtk/gtksettings.c: Add cursor blink setting.
10047         
10048         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
10049
10050         * gtk/gtkentry.c: Add cursor blinking.
10051
10052         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
10053         cursor blink global settings.
10054
10055         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
10056         for :text_position in places where it is missing.
10057
10058 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
10059
10060         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
10061
10062 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
10063
10064         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
10065         not pkg-config. (#51032)
10066
10067         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
10068         (fixes #51952, James Henstridge)
10069         
10070 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
10071
10072         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
10073         Rename to the more correct gtk-go-up.
10074
10075         * gtk/stock-icons/stock_menu_sort_ascending.png:
10076         Added new file.
10077         
10078         * gtk/stock-icons/stock_menu_sort_descending.png:
10079         Changed to show descending instead of ascending.
10080
10081         * gtk/gtkiconfactory.c:
10082         Added menu size icon to sort ascending.
10083
10084         * gtk/stock-icons/Makefile.am:
10085         Added stock_menu_sort_ascending.png.
10086         
10087         * gtk/gtkseparatormenuitem.c:
10088         Use correct typenames.
10089
10090 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
10091
10092         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
10093         gulong as in GSignal.
10094
10095 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
10096
10097         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
10098         instances of GtkCellRenderer in code (all but dnd icon code).
10099         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
10100         there, and I can do multiple Cells per column.
10101
10102         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
10103
10104         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
10105         when model was unreffed prior to removing the row reference.
10106
10107 2001-05-25  Havoc Pennington  <hp@redhat.com>
10108
10109         * gtk/gtkiconfactory.c: fix so that default icons are created if 
10110         you call gtk_stock_list_ids()
10111
10112         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
10113         in list
10114
10115 2001-05-25  Havoc Pennington  <hp@redhat.com>
10116
10117         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
10118         set can render without falling back to missing image icon
10119
10120         * gtk/gtktextview.c (gtk_text_view_size_request): request full
10121         size of text, instead of random values
10122
10123         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
10124         size of tree view, instead of random values
10125
10126         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
10127         image in an appropriate size
10128
10129         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
10130         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
10131
10132         Throughout: fix GTK_STOCK_BUTTON_ instances
10133         
10134         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
10135         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
10136         Add a bunch of new stock items/icons
10137
10138         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
10139         new function, convenience for inserting columns with a data func
10140
10141         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
10142         (_gtk_icon_factory_list_ids): use list of all factories to
10143         generate a list of all known IDs
10144
10145         * gtk/gtkstock.c (gtk_stock_list_ids): replace
10146         gtk_stock_list_items() with a function that returns all IDs known
10147         including those for GtkIconFactory.
10148
10149 2001-05-25  Hans Breuer  <hans@breuer.org>
10150
10151         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
10152         work -> check boxes and radio buttons are drawn now, even on win9x.
10153         Improved line settings a bit, still no clue how to get really dotted
10154         lines on win9x, on NT it's PS_ALTERNATE.
10155
10156         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
10157         GDK_HINT_MIN_SIZE as well
10158
10159         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
10160
10161         * gtk/gtk.def : updated
10162
10163         * gtk/gtktreeprivate.h : change column_drop_func to be a function
10164         pointer not a function pointer pointer
10165
10166         * tests/testdnd.c : include <stdlib.h> for putenv prototype
10167
10168         * tests/testsocket.c : made it compile on win32 again
10169
10170         * tests/makefile.msc : one more test-app uses prop-editor.obj
10171
10172 2001-05-22  Havoc Pennington  <hp@pobox.com>
10173
10174         * gtk/gtkbin.c (gtk_bin_get_child): New function
10175
10176 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
10177
10178         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
10179         to ignore when doing compose processing.
10180
10181 2001-05-22  Joe Shaw  <joe@ximian.com>
10182
10183         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
10184         Simplify as suggested by Havoc. Just get the last iter and work
10185         backward to the tag instead of getting a line and working back from
10186         there. Fixes passing in an invalid offset to
10187         iter_init_from_byte_offset().
10188
10189 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
10190
10191         * gtk/gtktreeview*.h: 
10192         * gtk/gtkcell*.h:
10193         * gtk/gtk*store.h:
10194         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
10195         macros to all objects.
10196
10197 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
10198
10199         * gtk/gtkcellrenderertext.c
10200         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
10201         with very large (TM) amounts of text.  May be moved to
10202         GtkCellRenderer in the future, though I'm not sure it wants to be
10203         this accessible.
10204
10205         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
10206         More sanity brought to this class.  I like it.
10207
10208         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
10209         case.  Kids, don't try this at home.
10210
10211         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
10212         convenience function.
10213
10214         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
10215
10216 2001-05-21  Alexander Larsson  <alexl@redhat.com>
10217
10218         * gtk/gtkfontsel.c:
10219         Added properties. Based on patch by Lee Mallabone.
10220
10221         * gtk/gtkruler.c:
10222         * gtk/gtkhruler.c:
10223         * gtk/gtkvruler.c:
10224         * gtk/gtktext.c:
10225         * gtk/gtktextview.c:
10226         Converted GtkArg to GParam. Based on patches by John Margaglione.
10227
10228         * tests/Makefile.am:
10229         * tests/testtext.c:
10230         Add a property editor to testtext.
10231         
10232 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
10233
10234         * gtk/gtk{h,v,}paned.c: Only show the separator if 
10235
10236         * configure.in: Fixed reversed conditional causing all image
10237         libraries to be linked in.
10238
10239 2001-05-21  Joe Shaw  <joe@ximian.com>
10240
10241         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
10242         that top_y needs to be >= 0.
10243
10244 2001-05-11  Havoc Pennington  <hp@pobox.com>
10245         
10246         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
10247         losing connection to the X server.
10248
10249 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
10250
10251         * configure.in: Start checks for X from pangox/pangoxft
10252         CFLAGS to avoid duplicate libraries.
10253
10254         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
10255
10256         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
10257         to include gobject.
10258         
10259 2001-05-18  Alexander Larsson  <alexl@redhat.com>
10260
10261         * gtk/gtkspinbutton.c:
10262         Convert GtkArgs to GParams. Based on patch by John Margaglione.
10263         Also do size request reasonable for MAXDOUBLE. Previously it printed
10264         the limits to a buffer and overran it. Instead do it using log10() and
10265         limit the width to 10 digits.
10266         
10267         * gtk/gtkwidget.c (gtk_widget_get_property):
10268         Correctly handle setting the parent property to NULL.
10269
10270 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
10271
10272         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
10273         style attributes even if the widget isn't realized.
10274
10275         * demos/gtk-demo/main.c: Use a slightly smaller font.
10276
10277 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
10278
10279         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
10280         This is something that only a widget writer would ever want
10281         to change.
10282
10283         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
10284         gtk_signal_emit_by_name().
10285
10286         * gtk/gtkviewport.c: Fix some warnings.
10287
10288         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
10289         allowing the requisitions of multiple widgets to be grouped
10290         together.
10291
10292         * tests/testgtk.c: Add GtkSizeGroup test
10293
10294         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
10295
10296         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
10297         warnings.
10298
10299         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
10300
10301 2001-04-28  Martin Baulig  <baulig@suse.de>
10302
10303         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
10304         to gtk_image_menu_item_set_icon() and made it work if there's already
10305         an image.
10306         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
10307         (gtk_image_menu_item_new_with_label): New function.
10308
10309 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
10310
10311         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
10312         highlighting code!!!!  The result is okay so long as you don't try
10313         to stress it.  It also highlights a bug in the TextView so it's in
10314         an unproportional font right now until it's fixed.
10315
10316         *demos/gtk-demo/*.c: Clean up code a bit to make it
10317         ugly-parser(TM) friendly. (-:
10318
10319 2001-05-17  Joe Shaw  <joe@ximian.com>
10320
10321         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
10322         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
10323         if it is only partially onscreen.
10324
10325 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
10326
10327         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
10328         not by characters.
10329
10330         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
10331         are not zero or one; that is, when graphemes of multiple characters
10332         are involved.
10333
10334         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
10335         FIXME.
10336
10337 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
10338         
10339         * gtk/gtkbbox.c:
10340         Add properties, based on patch by Lee Mallabone.
10341
10342         * gtk/gtknotebook.c:
10343         * gtk/gtktoolbar.c:
10344         Convert from GtkArg to GParam, based on patch by John Margaglione.
10345         
10346         * gtk/gtkhscale.c:
10347         * gtk/gtkvscale.c:
10348         * gtk/gtkhscrollbar.c:
10349         * gtk/gtkvscrollbar.c:
10350         * gtk/gtkrange.c:
10351         Move adjustment property to GtkRange.
10352
10353         * gtk/gtklabel.c:
10354         Setup mnemonics on property changes
10355
10356         * gtk/gtkwidget.c (gtk_widget_get_property):
10357         GdkExtensionMode is an enum, not a flag. Set it with
10358         g_value_set_enum ().
10359
10360         * tests/prop-editor.c:
10361         Better propery editor.
10362
10363         * tests/testgtk.c:
10364         Add new property test. Pass zero to the property editor to
10365         get properties from all derived types.
10366         
10367 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
10368
10369         * autogen.sh (have_automake): Require libtool-1.4,
10370         automake-1.4p1.
10371
10372         * acinclude.m4: Remove libtool macros.
10373
10374         * gdk-pixbuf/Makefile.am: Add dependencies to loade
10375         modules.
10376
10377         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
10378         for libgdk.
10379
10380         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
10381         libgdk.la for libgtk.
10382
10383         * modules/input/Makefile.am: Make modules have full
10384         dependencies.
10385
10386 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
10387
10388         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
10389         #54699 where paths weren't being checked for correctness.
10390
10391 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
10392
10393         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
10394         in any order you wan, whether or not the column is added to the
10395         tree, or the tree is realized.  Yay!
10396
10397         * gtk/gtktreeviewcolumn.c
10398         (gtk_tree_view_column_setup_sort_column_id_callback): handle
10399         sorting columns a lot saner
10400
10401         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
10402         new function to actually set wether or not a column is
10403         reorderable.
10404
10405         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
10406         if we have 'em.
10407
10408         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
10409         Fix nasty bug where we were showing the button just before
10410         realizing it.  As a result, the parent window was
10411         tree_view->window instead of tree_view->priv->header_window.
10412
10413         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
10414         to let you easily reorder a list or tree.
10415
10416 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
10417
10418         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
10419         from args to properties.
10420
10421 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
10422
10423         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
10424         from args to properties. (#51957)
10425
10426         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
10427         calls to after ->set_property call.
10428
10429 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
10430
10431         * tests/prop-editor.c: Block against redundant changes.
10432
10433         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
10434         properties.
10435
10436 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
10437
10438         * gdk/gdkpixmap.h: Remove creative formatting.
10439
10440 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
10441
10442         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
10443         property API. (#51669)
10444
10445         * gtk/gtkscale.c: Patch from John Margaglione converting to
10446         property API. (#51891)
10447
10448         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
10449         to property API. (#50985)
10450
10451 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
10452
10453         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
10454         buffering state across expose event, so we still call end_paint().
10455
10456 2001-05-11  Alexander Larsson  <alexl@redhat.com>
10457
10458         * gtk/gtkhsv.c (paint_triangle):
10459         Expose the ring in the triangle at the correct place when
10460         exposing just a part of the triangle.
10461
10462         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
10463         Return FALSE, or window focusing will not work.
10464
10465 2001-05-11  Havoc Pennington  <hp@pobox.com>
10466
10467         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
10468         #54144
10469
10470         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
10471         bug #54330
10472
10473 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
10474
10475         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
10476         propagate exposes to NULL child.
10477
10478         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
10479         against not having one of the scrollbars.
10480
10481         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
10482         we don't keep a mnemonic window if we have no mnemonic installed.
10483
10484 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
10485
10486         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
10487         it has the _important_ side effect of initializing a class.
10488
10489 2001-05-10  Alexander Larsson  <alexl@redhat.com>
10490
10491         * gdk/linux-fb/gdkprivate-fb.h:
10492         Make sure you can compile out the implementation/wrapper assert
10493         macros.
10494
10495         * gdk/linux-fb/gdkdrawable-fb2.c:
10496         Check implementation/wrappers, initialize type for pixmap dummys.
10497
10498         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
10499         Hide the cursor if reading from the screen.
10500
10501         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
10502         Fix sign bug in tiling code.
10503
10504         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
10505         Handle background pixmaps.
10506
10507 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
10508
10509         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
10510         function to let user control where columns are dragged.
10511
10512         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
10513         Escape is pressed.
10514
10515 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
10516
10517         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
10518         "columns_changed" signal.
10519         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
10520         motion code to draw arrows to the side if indicator is outside the
10521         widget.
10522         (gtk_tree_view_map_expanded_rows): Implement.
10523
10524 2001-05-07  Alexander Larsson  <alexl@redhat.com>
10525
10526         * demos/testpixbuf-save.c: 
10527         * demos/testpixbuf-drawable.c:
10528         Include gdkfb.h on linux-fb.
10529
10530 2001-05-07  Alexander Larsson  <alexl@redhat.com>
10531
10532         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
10533         New function for getting toplevel window at position.
10534         (gdk_drag_find_window): Use get_toplevel_window () instead
10535         of gdk_window_get_pointer(). (gdk_drag_status): Use
10536         correct context for getting window.
10537
10538         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
10539         g_strdup the atom name.
10540
10541         * gdk/linux-fb/gdkwindow-fb.c:
10542         Costmetic fix.
10543
10544         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
10545         Add code for changing cursor on linux-fb backend (same as
10546         win32).
10547
10548 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
10549
10550         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
10551         present before doing anything with it.  Patch from Håvard Kvålen
10552         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
10553         report was not for the development branch of GTK+, but it applies
10554         anyways).
10555
10556 2001-05-04  Havoc Pennington  <hp@redhat.com>
10557
10558         * configure.in: fix some shell typos
10559
10560         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
10561
10562         * gtk/gtkimage.c: handle animations
10563
10564         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
10565         border_width * 2, not just border_width
10566
10567         * gtk/gtkscale.c: add "format_value" signal to allow people
10568         to override the way values are drawn.
10569         (gtk_scale_get_value_size): fix width/height mistake,
10570         and compute size from actual displayed text, not 
10571         from made-up text.
10572
10573         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
10574         signal registration
10575
10576         * tests/testtext.c: Add "Remove all tags" menu item for testing
10577
10578         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
10579
10580         * demos/gtk-demo/main.c (main): add hack so we can find modules
10581         without installing gtk
10582
10583         * demos/gtk-demo/textview.c (insert_text): demo font scaling
10584
10585         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
10586         factor)
10587         (gtk_cell_renderer_text_set_property): remove some bogus
10588         g_object_notify
10589
10590         * gtk/gtktexttag.c: add "scale" property which is a font scaling
10591         factor
10592
10593         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
10594         to layout
10595
10596         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
10597         gtk_text_iter_is_first
10598
10599 2001-01-06  Hans Breuer  <hans@breuer.org>
10600
10601         * gdk/gdk.def : updated exports
10602
10603         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
10604         gdk won't compile anymore
10605  
10606         * gdk/win32/gdkevents-win32.c : initialize ret_val when
10607         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
10608         Improved gdk_flush () to not only do pending drawing operations
10609         but also process all currently pending events. This should make
10610         the behaviour more similar to the X11 version.  
10611
10612         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
10613         option needs to be set even if there is no GDK_GC_BACKGROUND.
10614         (gdk_win32_hdc_get) : use predraw_set_background () independent
10615         of value_mask. This allows to draw dashed lines leaving the original
10616         background intact.
10617
10618         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
10619         after processing, because we can't reuse it as the X11 version does.
10620
10621         * gtk/gtk.def : updated exports
10622
10623         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
10624         would like to get rid of this file again, and use straight
10625         makefile.msc again, as the other Gtk+ subdirs do)
10626
10627         * test/makefile.msc (new file) : build the test apps here
10628
10629 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
10630
10631         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
10632         strike-through setting
10633         (gdk_draw_layout_line_with_colors): Render strike-through
10634
10635 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
10636
10637         * Release 1.3.5
10638
10639         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
10640
10641         * NEWS: Updated
10642
10643         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
10644         Makefile breakage.
10645
10646 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
10647
10648         * demos/gtk-demo/images.c (progressive_timeout): Fix
10649         typo in filename.
10650
10651         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
10652         out FIXME warning; just too annoying.
10653
10654 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
10655
10656         * gdk/linux-fb/gdkcolor-fb.c:
10657         Better error messages.
10658
10659         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
10660         Initialize abs_x and abs_y.
10661         
10662         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
10663         Correct handling of stipple offset.
10664
10665         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
10666         Treat directcolor framebuffers as truecolor.
10667         
10668 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
10669
10670         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
10671         dependency on Atk for accessibility support.
10672
10673         * configure.in **/Makefile.am: Major reworking of substituted
10674         variables for CFLAGS/LIBS to make a lot more sane and 
10675         keep the the compile/link lines a bit shorter.
10676
10677         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
10678
10679 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
10680
10681         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
10682         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
10683         use _gtk_boolean_handled_accumulator.
10684
10685 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
10686
10687         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
10688         to fix things so clicking inside selection leaves cursor
10689         at point where clicked. (#50324)
10690
10691         * gtk/gtksettings.c (gtk_settings_class_init): Restore
10692         sane value for default double click time.
10693
10694         * tests/testtext.c (test_init): Really path to input modules.
10695
10696 2001-05-03  Sven Neumann  <sven@convergence.de>
10697
10698         * demos/testpixbuf-save.c: include target-specific headers as
10699         done in testpixbuf-drawable.c
10700
10701 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
10702
10703         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
10704         new_text_length appropriately when we run into the 
10705         size limit for the entry. (#53445, reported by Jeff Franks)
10706
10707         * tests/testgtk.c (create_entry): Remove most of the
10708         property toggle buttons. Replace with a "Props" button
10709         that brings up a property editor.
10710
10711         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
10712         Split the property editor code out for reuse, improve.
10713
10714 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
10715
10716         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
10717         trap errors around calls to XSetInputFocus since we have
10718         no way of knowing reliably whether we are viewable or
10719         not. (#53947)
10720
10721 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
10722
10723         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
10724         fix bug in dropping columns.  Moving columns now basically works
10725         modula some fine tuning.
10726
10727 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
10728
10729         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
10730         autoscroll support.  It mostly works, but could use some fine
10731         tuning.
10732         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
10733         Actually move the column.
10734
10735 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
10736
10737         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
10738           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
10739           New default theme! A slighly improved version of the 2.0 Raleigh
10740           theme, with Windows-esque focus/drawing default. 
10741           (GtkWidget::interior_focus defaults to TRUE.)
10742
10743         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
10744
10745 2001-04-30  Havoc Pennington  <hp@pobox.com>
10746
10747         * tests/testtext.c (line_numbers_expose): fix to work with
10748         gtk_paint_layout change
10749
10750 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
10751
10752         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
10753           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
10754           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
10755           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
10756
10757         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
10758           with GtkWidget::interior_focus = TRUE better.
10759
10760         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
10761         ::default_outside_border for more flexibility.
10762
10763         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
10764         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
10765         change that had to be made with g_object_get.
10766
10767 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
10768
10769         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
10770         (gtk_tree_view_move_column_after): Clean up interface. 
10771
10772 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
10773
10774         * gtk/gtkpacker.h:
10775         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
10776          to gtkenum.h.
10777
10778         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
10779         handled in switch).
10780
10781         * gtk/Makefile.am:
10782         (gtk.defs): generate enum portions with  glib-mkenums.
10783         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
10784         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
10785         
10786         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
10787         addition.
10788
10789         * docs/Changes-2.0.txt: keep a note on signal handlers now
10790         not getting emitted during the emission they were connected within.
10791
10792 2001-04-28  Havoc Pennington  <hp@pobox.com>
10793
10794         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
10795
10796 2001-04-24  Havoc Pennington  <hp@redhat.com>
10797
10798         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
10799         (gtk_text_layout_move_iter_to_next_line): fix these two for
10800         invisible text, lots of other stuff still hosed.
10801
10802         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
10803         new function, replaces the get/set palette stuff. This function 
10804         is intended for use by libgnomeui which should set the hook to a
10805         thing which sets the palette in GConf, and we need the
10806         GConf-to-xsettings proxy which will result in the change being
10807         propagated back to the GTK app.
10808
10809         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
10810         about unusable signals that it may be because the signal has 
10811         parameters.
10812
10813         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
10814         style, otherwise gtkrc.c won't know to create a new GtkStyle for
10815         it.
10816         (gtk_widget_modify_color_component): call
10817         gtk_widget_modify_style() so the rc style will get copied.
10818         (gtk_widget_modify_font): ditto
10819
10820         * gtk/gtkrc.c: make a couple variables static
10821
10822         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
10823         help button by default, since it does nothing
10824
10825         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
10826         around with UI
10827
10828         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
10829         so we can have tooltips
10830
10831         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
10832         can have tooltips
10833
10834         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
10835         GDK_ENABLE_BROKEN, because its memory behavior is completely
10836         hosed.
10837
10838         * gtk/gtknotebook.c: remove key press handler, replace with
10839         binding set, add numeric keypad support
10840
10841         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
10842
10843         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
10844
10845         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
10846         addition to plain Delete
10847
10848         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
10849         GDK_KP_Enter in addition to GDK_Return
10850
10851         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
10852         activate on entry instead of key press
10853         (gtk_font_selection_on_clist_key_press): get
10854         rid of this signal handler, not needed with new font sel.
10855
10856         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
10857         no-longer-needed emit_stop_by_name(), just return TRUE
10858
10859         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
10860         cruft, this widget is no longer focusable.
10861
10862         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
10863         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
10864         move_slider action signal, add binding set for vscale/hscale, in
10865         the process support numeric keypad
10866
10867         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
10868         make GDK_Return and GDK_KP_Enter activate the entry via 
10869         binding set, instead of hardcoded.
10870
10871 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
10872
10873         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
10874         code.  Some documentation added.
10875
10876 2001-04-27  Havoc Pennington  <hp@redhat.com>
10877
10878         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
10879
10880         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
10881
10882         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
10883         line/para separators
10884         (gtk_entry_create_layout): set single paragraph mode on the layout
10885
10886         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
10887         spacing between the image and label; instead, inside a button box 
10888         the button will get extra space that will go there, but if people 
10889         configure button box for 0 chubbiness, then there's no spacing.
10890
10891         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
10892         and min/max size style properties, so people can tune their
10893         chubbiness.
10894
10895         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
10896         functions
10897
10898         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
10899         space_style, and button_relief into style properties, remove
10900         functions for setting them
10901         
10902         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
10903         it back down
10904
10905         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
10906         types from gtk_widget_style_get
10907
10908         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
10909         with a style property.
10910
10911         * gdk/x11/gdkevents-x11.c: namespace the settings
10912
10913         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
10914
10915         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
10916         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
10917         be used. Also, translate doc strings for settings. Also, namespace
10918         the double-click-time property. Also, remove bell properties crap.
10919
10920 2001-04-27  Sven Neumann  <sven@gimp.org>
10921
10922         * Makefile.am: before creating links, check if pkg-config files
10923         exist for the default target. Otherwise link to the pkg-config files
10924         that got installed with this build.
10925
10926 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
10927
10928         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
10929         dragging code.  Revealed some (potential) GdkWindow bugs.
10930
10931         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
10932         _gdk_window_init_position to the end of reparent to fix the case
10933         of reparenting when new_x != old_x and new_y != old_y.
10934
10935 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
10936
10937         * gtk/gtkentry.c (strstr_len): Fix optimization that
10938         was correct for the use here, but completely incorrect
10939         in general.
10940
10941 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
10942
10943         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
10944         until patch adding gtk_window_set_size() is recommitted. 
10945
10946         * **Makefile.am configure.in gdk/x11/gdkim-11.c
10947           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
10948           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
10949           (#10784)
10950
10951 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
10952
10953         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
10954         window == NULL in a number of cases.
10955
10956         * tests/testdnd.c: Set module path for gdk-pixbuf.
10957
10958 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
10959
10960         * gtk/Makefile.am xembed.h: File containing #defines
10961         for XEMBED protocol.
10962
10963         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
10964
10965         - Change protocol from old plug/socket specific protocol
10966           to XEMBED draft
10967         - Various fixes to work with GTK+-2.0
10968
10969         Still quite a bit of work to do here to handle initiation
10970         from the socket side (as specified by XEMBED), to handle
10971         the more advanced features of XEMBED, and to figure out
10972         a good way to handle same-app embedding with less overhead
10973         than using full XEMBED.
10974
10975 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
10976
10977         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
10978         track of whether the toplevel has the focus; only send
10979         focus-in events to the focus widget when the window
10980         actually has the focus.
10981
10982 2001-04-25  Havoc Pennington  <hp@pobox.com>
10983
10984         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
10985         were still in the header
10986
10987 2001-04-24  Alexander Larsson  <alexl@redhat.com>
10988
10989         * gtk/gtkclist.[ch]:
10990         * gtk/gtkctree.c:
10991         When there is a row highlighted for D'n'D it must alse
10992         be painted hightlighted on exposes. Otherwise exposes from
10993         the icon being dragged will mess up the hightlight.
10994
10995         * gtk/gtkfontsel.c:
10996         Don't recenter selected font when exposing the font family
10997         clist. This means you can now actually scroll the font family
10998         list.
10999
11000         * gtk/gtknotebook.c:
11001         Fix focus movement on scrolling tabs that are placed on the left
11002         and right.
11003
11004 2001-04-21  Havoc Pennington  <hp@pobox.com>
11005
11006         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
11007         empty/invisible lines.
11008
11009         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
11010         (gtk_text_iter_set_visible_line_index): new functions to set
11011         indexes excluding invisible text
11012
11013         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
11014         index
11015
11016         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
11017         (gtk_text_iter_get_visible_line_offset): new functions to 
11018         get indexes excluding invisible text
11019
11020         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
11021         bunch of extra padding that served no purpose
11022
11023         * gtk/gtkdialog.c: Make all the spacings configurable via style
11024         properties, for chubbiness configuration in themes
11025
11026         * tests/testtext.c: fix path to the immodules.
11027         
11028 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
11029
11030         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
11031         got munched by #endif.
11032
11033         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
11034
11035         * gtk/gtktreeview.c: Refactored code to clean up a number of
11036         events.
11037
11038         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
11039         values to make consistent with other functions.  Spotted by Jeff
11040         Franks <jcf@tpg.com.au>.
11041
11042         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
11043         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
11044
11045 2001-04-23  Sven Neumann  <sven@gimp.org>
11046
11047         * gtk/Makefile.am
11048         * gtk/gtkplug.c
11049         * gtk/gtksocket.c: on request of Owen, reverted my last change 
11050         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
11051
11052 2001-04-23  Sven Neumann  <sven@gimp.org>
11053
11054         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
11055         compile for non-X11 targets again
11056
11057 2001-04-20  Alexander Larsson  <alexl@redhat.com>
11058
11059         * gtk/gtkcolorsel.[ch]:
11060         API Change. Take GdkColor arguments instead of gdouble *.
11061         Leave the old gtk_color_selection_set_color for compatibility,
11062         but marked deprecated.
11063         Do correct rounding when converting RGB <-> HSV.
11064         
11065         * gtk/gtkcolorseldialog.c:
11066         * tests/testgtk.c:
11067         Use new GtkColorSelection API.
11068
11069         * gtk/gtkhsv.c:
11070         Fix problem selecting colors in triangle when Hue is 330.
11071         Fix some black dots around the HSB triangle.
11072         
11073         * gtk/gtkfilesel.c:
11074         return FALSE from the focus_in_event handler to fix focus problems.
11075
11076 2001-04-18  Havoc Pennington  <hp@redhat.com>
11077
11078         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
11079         set, so keybindings are configurable    
11080         (gtk_window_activate_default): Change to activate the focus widget
11081         instead if there's a focus widget, to be consistent with the
11082         behavior that previously existed in key_press_event
11083
11084 2001-04-18  Havoc Pennington  <hp@redhat.com>
11085
11086         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
11087
11088 2001-04-18  Havoc Pennington  <hp@redhat.com>
11089
11090         Close bug #50615:
11091         
11092         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
11093         the layout
11094
11095         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
11096
11097         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
11098
11099         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
11100         
11101         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
11102         to blue for base, in addition to bg
11103         
11104 2001-04-18  Havoc Pennington  <hp@redhat.com>
11105
11106         * tests/testgtk.c (create_image): allow shrinking the image window
11107         to test that we clip to allocation.
11108
11109         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
11110         #9845
11111
11112         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
11113
11114 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
11115
11116         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
11117         mode on shm segments to 0600. We'll see who complains.
11118
11119         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
11120         _gdk_windowing_window_destroy() AFTER recursing through
11121         children.
11122
11123         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
11124         testsocket_child on X.
11125
11126         * tests/testsocket[_child].c: Fix uses of
11127         gtk_window_get_default_accel_group().
11128
11129         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
11130
11131         * gdk/gdkimage.c: (gdk_image_get):
11132         Deal with the possibility that XGetImage() might return NULL.
11133         Allocate the GdkImagePrivate structure only after XGetImage()
11134         succeeds in order not to dereference a NULL ximage pointer.  This
11135         prevents a core dump when XGetImage() fails - which is unlikely,
11136         but can happen due to race conditions accessing the geometries of
11137         drawables.  An x error will still be triggered, but the gdk image
11138         wrapper at least wont seg fault.
11139         
11140 2001-04-18  Havoc Pennington  <hp@redhat.com>
11141
11142         * gtk/gtkimage.c: fix to properly queue resizes when the image is
11143         set
11144
11145         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
11146         if the insertion point isn't editable
11147
11148         * demos/gtk-demo/images.c: Added a GtkImage demo
11149
11150         * demos/gtk-demo/drawingarea.c: drawing area demo
11151         
11152         * demos/gtk-demo/menus.c (create_menu): cleanups
11153
11154 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
11155
11156         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
11157           gdk/x11/gdkevents-x11.c: Introduce an extra child
11158         of toplevel windows that serves to hold the focus to
11159         avoid events being delivered to embedded windows.
11160
11161         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
11162         some extra variables to clean up code and reduce the
11163         number of casts.
11164
11165         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
11166         guint for 1 bit bit fields, not gboolean.
11167
11168 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
11169
11170         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
11171         not TRUE. (Fixes #52925)
11172
11173 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
11174
11175         * Released 1.3.4
11176
11177         * NEWS: Updated
11178
11179         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
11180         use GTK_TYPE_ENUM.
11181
11182 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
11183
11184         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
11185
11186         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
11187         names to compatibility #defines so docs work.
11188
11189         * gtk/gtkenums.h: Remove GtkMenuFactoryType
11190
11191         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
11192
11193         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
11194
11195         * tests/testgtkrc: No magenta cursors, please.
11196
11197         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
11198
11199         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
11200         
11201 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
11202
11203         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
11204         grabs, since they are no longer necessary.
11205
11206         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
11207         by signal_connect() and call gtk_button_pressed() rather
11208         than signal_connect_after().
11209
11210         * tests/testgtk.c: Restore radio menu items to combos 
11211         since they'll look OK with Raleigh, and it is easier
11212         than finishing the process of removing them that was
11213         started earlier.
11214
11215 2001-04-16  Hans Breuer  <hans@breuer.org>
11216
11217         * gdk/gdk.def :
11218         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
11219
11220         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
11221         we are interested in the functions return value not the function address
11222         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
11223
11224         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
11225
11226 2001-04-14  Hans Breuer  <hans@breuer.org>
11227
11228         * gdk/gdk.def :
11229         * gdk/makefile.msc : updated
11230
11231         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
11232         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
11233         (the testgtk::text backgound pixmap is drawn again)
11234         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
11235         Win32 Pango change
11236         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
11237
11238         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
11239         Not sure if the returned settings have the right unit, because I couldn't
11240         find any docs for the X version ...
11241
11242         * gtk/gtk.def :
11243         * gtk/makefile.msc.in : updated
11244
11245 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
11246
11247         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
11248         wording problems. (Compared to version from Johannes Stezenbach to
11249         check correctness.)
11250
11251 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
11252
11253         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
11254         this to compile.
11255
11256 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
11257
11258         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
11259         not pixbufpos.
11260
11261         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
11262
11263         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
11264         are unsigned insts, therefore use g_value_set_uint.
11265         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
11266
11267 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
11268
11269         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
11270
11271         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
11272         GTK_TYPE_STRING.
11273
11274         * gtk/gtktreeview.c: New functions to allow initial column
11275         dragging work.
11276
11277         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
11278
11279         * tests/testtreefocus.c: give dave some love.
11280
11281         * tests/testtreesort.c: Modify test to check really long samples.
11282
11283 2001-04-11  Alexander Larsson  <alexl@redhat.com>
11284
11285         * gtk-2.0.m4: Pass pkg-config options
11286         before the other args so it works even if
11287         POSIXLY_CORRECT is set.
11288
11289 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
11290
11291         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
11292         0, interface 0).
11293
11294 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
11295
11296         * gtk/gtkcalendar.c (gtk_calendar_button_press):
11297         check for action_func != NULL
11298
11299 2001-04-04  Sven Neumann  <sven@gimp.org>
11300
11301         * tests/testgtk.c (test_init): corrected path to gtk.immodules
11302
11303 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
11304
11305         * Released Gtk+-1.3.3.
11306
11307 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
11308
11309         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
11310
11311 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
11312
11313         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
11314         files to/from source dir. (if we don't stay in builddir, we
11315         can't reach make-inline-pixbuf.
11316
11317         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
11318         deps.
11319
11320         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
11321         ages 0).
11322
11323 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
11324
11325         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
11326         moved to the GtkTreeSortable interface.
11327
11328         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
11329         Make more efficient (fixes #50262).
11330
11331 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
11332
11333         * NEWS: Updated.
11334
11335         * configure.in: Remove support for uninstalled glib.
11336
11337         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
11338         so as not to stop emission.
11339
11340         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
11341         is no longer supported.
11342
11343         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
11344         into tests, change build order to build modules before
11345         gtk/.
11346
11347         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
11348         to here.
11349
11350 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
11351
11352         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
11353         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
11354         GPatternSpec. this is actually unlikely to cause breakage in
11355         third-party apps since except for gle, pretty much ever caller
11356         passes NULL here.
11357
11358         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
11359
11360         * *.c: use g_pattern_*() API.
11361
11362         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
11363
11364         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
11365         directions aren't passed in.
11366
11367         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
11368         functionality to be usable from gtkstyle.c as well, give precedence
11369         for conversion to user-supplied parsers.
11370         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
11371
11372         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
11373         _gtk_settings_parse_convert() for rcporperty value conversion.
11374
11375 2001-04-03  Alexander Larsson  <alexl@redhat.com>
11376
11377         * gdk/linux-fb/gdkevents-fb.c:
11378         Add empty gdk_setting_get().
11379
11380 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
11381
11382         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
11383         variable names.
11384         
11385         * gtk/makeenums.pl: touch this so enum files get remade.
11386
11387 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
11388
11389         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
11390         work again when not sorted.
11391
11392         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
11393         and "expand_row" signal, closing bug 52578.
11394
11395         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
11396         support.
11397
11398         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
11399         support.
11400
11401 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
11402
11403         * gdk/gdkevents.h: Add GdkEventSetting event for notification
11404         of changes to system settings, gdk_setting_get() to retrieve
11405         a single system setting.
11406
11407         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
11408         to the draft XSETTINGS mechanism.
11409
11410         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
11411         XSETTINGS.
11412
11413         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
11414         of GDK settings changes to the GtkSettings object.
11415
11416         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
11417         double-click-timeout property to GDK.
11418
11419         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
11420         Define GDK boxed types here.
11421
11422         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
11423         gdk/gdkenumtypes.[ch] for enum definitions.
11424
11425         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
11426         * gtk/gtk-boxed.defs: Comment out GDK types
11427         * gtk/gtktypeutils.h: Remove GDK types
11428         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
11429
11430 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
11431
11432         * Applied patch from Ron Steinke to add signal accumulators
11433         so that signals with the convention 'TRUE return means
11434         handled' stop emission on a TRUE return.
11435
11436         * gtk/gtkmain.[ch]: Add private accumulator 
11437         _gtk_boolean_handled_accumulator, used throughout GTK+.
11438         
11439         * gtk/gtkspinbutton.c: Add accumulator for ::output.
11440
11441         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
11442         
11443         * gtk/gtkwidget.c: Add accumulators for event signals,
11444         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
11445         for ::mnemonic-activate.
11446
11447         * gtk/gtkwindow.c: Add accumulator for ::frame_event
11448
11449 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
11450
11451         * gtk/gtkwidget.c: Add missing include.
11452
11453 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
11454
11455         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
11456         marshaller.
11457
11458         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
11459         "changed" signal to "range_changed".
11460
11461         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
11462         removing a tree from one model would remove all trees from that
11463         model.
11464         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
11465         changed signal instead.
11466
11467 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
11468
11469         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
11470         chaining up to parent impl, since we have a INPUT_ONLY
11471         window.
11472
11473         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
11474         foreground color for the cursor.
11475
11476 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
11477
11478         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
11479         param spec when caching property values, since we unref it
11480         later when we free the style.
11481
11482         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
11483         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
11484
11485 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
11486
11487         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
11488         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
11489         stupidity.
11490
11491 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
11492
11493         [ First pass at adding style properties. Still needs some definite
11494         fine-tuning. ]
11495
11496         * gtk/gtkbutton.c: Add ::default_spacing style property.
11497          
11498         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
11499         ::indicator_spacing style properties.
11500
11501         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
11502         style properties.
11503
11504         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
11505         rather than a normal property.
11506
11507         * gtk/gtkwidget.c: Add an ::interior_focus style property to
11508         draw focus inside buttons, in the Windows/Java Metal/etc. style.
11509
11510         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
11511         Honor ::interior_focus.
11512         
11513         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
11514         TRUE.
11515
11516         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
11517         Add ::slider_width, ::trough_border, ::stepper_size,
11518         ::stepper_spacing style properties.
11519
11520         * gtk/gtkscale.[ch] Add ::slider-length style property.
11521
11522 2001-04-02 Alexander Larsson   <alexl@redhat.com>
11523
11524         * gdk/linux-fb/gdkwindow-fb.c:
11525         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
11526         warnings that were spewed on startup.
11527
11528         * gtk/gtkwindow-decorate.c:
11529         gtk_window_reposition -> _gtk_window_reposition
11530
11531 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
11532
11533         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
11534         Add boxed type for GtkRequistion. Use it for ::size-request.
11535
11536         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
11537         Add a new GtkBorder structure useful for geometry properties
11538         for widgets. Add corresponding GTK_TYPE_BORDER.
11539         
11540         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
11541         Support automatic parser selection like
11542         gtk_settings_install_property_parser().
11543
11544         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
11545         functionality for use by gtk_widget_class_install_style_property.
11546         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
11547
11548 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
11549
11550         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
11551         g_param_spec_unichar(). 
11552
11553 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
11554
11555         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
11556         _NET window managers.
11557
11558         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
11559
11560 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
11561
11562         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
11563         bad needs to be nuked, not just deprecated.
11564
11565         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
11566         gtk_widget_popup().
11567
11568         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
11569         
11570         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
11571         widget.
11572         
11573         * docs/Changes-2.0.txt: updates.
11574         
11575 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
11576
11577         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
11578         for (i = 0; i < 100; i ++)
11579           g_print ("I will confirm it compile before committing\n");
11580
11581 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
11582
11583         * gtk/gtktreestore.c: Initial work on implementing the
11584         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
11585
11586 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
11587
11588         * gtk/gtkwidget.c: fixed a bunch of notifications, added
11589         reference counts around emissions where the widget is used afterwards.
11590         added freeze/thaws around multiple properties being notified.
11591         (_gtk_widget_get_aux_info): cleanups.
11592         
11593         * gtk/gtksettings.c (gtk_settings_install_property): provide
11594         default parsing functions for gdkcolor, enums and flags.
11595
11596         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
11597         applied by owen.
11598         backed out gtk_window_get_location(), gtk_window_set_location(),
11599         gtk_window_get_size() and gtk_window_set_size(), these
11600         have to be sorted out wrg x/y/width/height/default_with/default_height
11601         properties.
11602         kept a flag in GtkWindowGeometryInfo to handle user
11603         resetting default sizes.
11604         cleaned up ZVT comments.
11605         bunch of assorted bug fixes, notification fixes.
11606         (_gtk_window_reposition): make this a really internal function.
11607         
11608         * gtk/testgtk.c: fixups.
11609         
11610 2001-03-31  Hans Breuer  <hans@breuer.org>
11611
11612         * config.h.win32.in : disable USE_MMX for msvc build cause
11613         the assembler doesn't fit and is out of my scope. Disable
11614         USE_GMODULE for msvc build as wel. The right way to share
11615         binaries on win32 would be to use libtiff.dll etc. To reduce
11616         installation hassles IMO it's better to include all fileformats
11617         builtin to gdk-pixbuf
11618
11619         * gdk-pixbuf/makefile.msc : new file
11620
11621         * gdk/gdk.def : updated
11622
11623         * gdk/win32/gdkevents-win32.c : don't erase the background if
11624         .no_bg is set. It improves the scrolling (e.g. of testgtk main
11625         buttons
11626         * gdk/win32/gdkgeometry-win32.c : added comment about the above
11627
11628         * gdk/win32/gdkwindow-win32.c : added three new functions like
11629         the X version. Only one is implemented, because the other two
11630         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
11631         be default behaviour on win32 anyway ...
11632
11633         * gtk/gtk.def : updated
11634
11635         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
11636         from where it was built and add an additional rule to automagically
11637         build gtkmarshal.[hc]
11638
11639         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
11640         before array access for the current entry isn't finished
11641
11642         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
11643         use g_return_val_if_fail
11644
11645         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
11646         for the static array, but let the compiler calculate it. It
11647         makes me wonder if gcc isn't capable to catch bugs like this ...
11648
11649 2001-03-31  James Henstridge  <james@daa.com.au>
11650
11651         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
11652         constant "-1" in the aux info structure.
11653
11654 2001-03-30  Alexander Larsson  <alexl@redhat.com>
11655
11656         * gtk/gtkbutton.c (gtk_button_get_property):
11657         * gtk/gtklabel.c:
11658         Remove leaks.
11659         
11660         * gtk/gtkcontainer.c:
11661         * gtk/gtkhscale.c:
11662         * gtk/gtkhscrollbar.c:
11663         * gtk/gtklayout.c:
11664         * gtk/gtkmisc.c:
11665         * gtk/gtkprogress.c:
11666         * gtk/gtkprogressbar.c:
11667         * gtk/gtkrange.c:
11668         * gtk/gtktable.c:
11669         * gtk/gtkviewport.c:
11670         * gtk/gtkvscale.c:
11671         * gtk/gtkvscrollbar.c:
11672         * gtk/gtkwidget.c:
11673         Property patches, based on patches from John Margaglione and Lee Mallabone.
11674
11675 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
11676
11677         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
11678         adjustment. Cleaned redundant preconditions (spin != NULL). Added
11679         inline API function docs.
11680         (gtk_spin_button_new_with_range): New convenience constructor.
11681         (gtk_spin_button_set_increments): New adjustment helper.
11682         (gtk_spin_button_set_range): New adjustment helper.
11683
11684         * gtk/testgtk.c : added test of the new convenince constructor and
11685         value_changed signals.
11686
11687 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
11688
11689         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
11690         listen to the reorder signal.
11691
11692 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
11693
11694         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
11695         to get the aux info structure fo the widget.
11696
11697         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
11698         above function.
11699
11700         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
11701
11702         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
11703         to get the size of the window manager frame, basically the same
11704         code that gdk_window_get_root_origin() had
11705         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
11706
11707         * gtk/gtkwindow.c (gtk_window_set_default_size): use
11708         gdk_window_resize() if the window is realized and resizeable
11709
11710         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
11711         typo so that setting gravity works
11712
11713         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
11714         allocation if auto_shrink is on, even if the default size
11715         has not changed.
11716
11717         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
11718         g_return_if_fail
11719
11720 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
11721
11722         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
11723         reordering/sorting work.  Now pretty much works.
11724
11725         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
11726         reorder mostly work.  Still need to get the parity correct.
11727
11728         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
11729         signal, so I can listen for the sort_column_changed signal so I
11730         can change my "sort_indicator" property.  Cool.
11731
11732 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
11733
11734         [ Patch from Havoc Pennington, hp@redhat.com ]
11735
11736         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
11737         Add functions gdk_window_begin_resize_drag/begin_move_drag
11738         to start resizing or moving a toplevel window. This
11739         is done either using the _NET_WM_MOVERESIZE protocol,
11740         or, if that isn't present, by emulation.
11741
11742         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
11743         to export the above to GTK+-land.
11744
11745         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
11746         
11747         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
11748         Move this function into gdkwindow, since we need it
11749         when implementing fallback resizing.
11750
11751         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
11752         Fix typo when setting gravity.
11753
11754         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
11755         Add an optional (but on by default) resize grip for resizing 
11756         the parent window.
11757
11758 01-03-29  Alexander Larsson  <alexl@redhat.com>
11759
11760         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
11761         Don't return TRUE from the event handler, that blocks all
11762         event signals on the tooltip widget. Now you can press buttons
11763         in toolbars again.
11764
11765 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
11766
11767         * gtk/testtext.c (create_buffer): Add missing NULL on
11768         valist.
11769
11770         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
11771         c-n-p problem with INCONSISTENT property.
11772
11773         [ Patch from Havoc Pennington  <hp@redhat.com> ]
11774
11775         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
11776         hook.
11777
11778         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
11779         signal as a hook for extending the default popup menu
11780
11781         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
11782         use radio menu items for the input method menuitems
11783
11784         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
11785         inserted unicode from Ctrl-Shift-hex input method
11786
11787         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
11788         validatation here, already done at GtkTextBuffer level.
11789
11790         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
11791         popup_menu run action signal and Shift+F10 and Menu keybindings.
11792
11793         * gtk/gtkentry.c: implement a default handler for popup_menu
11794
11795         * gtk/gtktextview.c: implement a default handler for popup_menu
11796
11797         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
11798         from a key event
11799         
11800         * gtk/gtklabel.c: remove "trailer" cruft
11801
11802 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
11803
11804         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
11805         handle reordering of trees.  Seems to mostly work w/ the exception
11806         of the parity flag.
11807
11808         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
11809         signal.
11810
11811 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
11812
11813         * gtk/gtkwidget.h: c++ fixes.
11814
11815 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
11816
11817         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
11818         memory.
11819
11820 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
11821
11822         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
11823         Nils Barth fixing event return values. (#51041)
11824
11825         * gtk/gtkwidget.c: Fix some return values for default
11826         functions.
11827
11828         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
11829         return values for trough_keys functions.
11830
11831         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
11832         value for add_accelerator (shoudl have been a void
11833         return.)
11834
11835         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
11836         Fix return type of EVENT.
11837
11838         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
11839         signal return a boolean.
11840
11841 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
11842
11843         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
11844         reordered signal.
11845
11846         * tests/testtreesort.c (main): fix spelling.
11847
11848 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
11849
11850         * gtk/gtkliststore.c: More work on implementing sortable
11851         interface.
11852
11853 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
11854
11855         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
11856         reference the widgets in the resulting list. (#11821)
11857         This makes this consistent with gtk_container_children.
11858
11859         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
11860         uses of gtk_window_list_toplevels.
11861
11862 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
11863
11864         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
11865         a virtual function to set whether the IM context should use 
11866         the preedit string. (#51922)
11867         
11868 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
11869
11870         * gdk/gdkpango.h: Remove stale FIXME comment.
11871
11872 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
11873
11874         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
11875         Fixed bug that returned NULL if a filename was selected.
11876
11877 2001-03-24  Havoc Pennington  <hp@pobox.com>
11878
11879         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
11880         to contain the word "theme"
11881
11882 2001-03-24  Havoc Pennington  <hp@pobox.com>
11883
11884         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
11885         slower but finer-grained
11886         (gtk_hsv_focus): get initial focus on the ring or triangle 
11887         according to tab direction
11888
11889         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
11890
11891 2001-03-23  Havoc Pennington  <hp@pobox.com>
11892
11893         * gtk/gtkhsv.c: make this somewhat key-navigable
11894
11895         * gtk/gtkfontsel.c: mnemonics
11896
11897         * gtk/gtkgamma.c: mnemonics
11898
11899         * gtk/gtkcolorsel.c: add mnemonics to labels
11900
11901 2001-03-22  Havoc Pennington  <hp@pobox.com>
11902
11903         Applied big patch from Seth Lytle to fix event handler return
11904         values, slightly modified.
11905
11906         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
11907         handled.
11908         (gtk_calendar_key_press): return TRUE for GDK_space triggers
11909         select_day
11910
11911         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
11912         (gtk_clist_button_release): return TRUE if handled
11913
11914         * gtk/gtkcolorsel.c (mouse_release):
11915         (palette_activate): 
11916         (palette_press): 
11917         (palette_new): 
11918         (mouse_press): 
11919         (get_screen_color): 
11920         fixed return type (void to gboolean), return TRUE,
11921         added GTK_SIGNAL_FUNC cast
11922
11923         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
11924         (void to gboolean), and return TRUE
11925         (gtk_combo_button_release): changed return value to TRUE after
11926         gtk_grab_add on combo->popwin
11927
11928         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
11929         collapse or expand
11930
11931         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
11932         button/motion
11933
11934         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
11935         press/release and motion that trigger act
11936
11937         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
11938
11939         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
11940         for GDK_Return
11941         
11942         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
11943         (gtk_list_button_release): return TRUE if selection
11944
11945         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
11946         press
11947
11948         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
11949         (gtk_menu_shell_button_release): chain parent_menu_shell retval
11950
11951         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
11952         nothing triggered
11953         (gtk_notebook_button_release): return TRUE if we do anything
11954
11955         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
11956         (gtk_spin_button_button_release): return TRUE or chained retval
11957
11958         * gtk/gtktext.c (gtk_text_button_press): 
11959         (gtk_text_button_release): return TRUE
11960         (gtk_text_key_press): remove redundant retval code
11961         
11962         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
11963         and sensitive
11964         (gtk_tree_item_subtree_button_click): changed type to gint, and return
11965         TRUE if sensitive
11966
11967         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
11968         return TRUE
11969
11970 2001-03-23  Havoc Pennington  <hp@redhat.com>
11971
11972         * gtk/testgtk.c: fix warnings
11973
11974         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
11975
11976         * gtk/gtktextview.c: fix warnings
11977
11978         * gtk/gtktext.c (find_cursor_at_line): fix warning
11979
11980         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
11981
11982         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
11983         of this function
11984
11985         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
11986         fix warning
11987
11988         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
11989
11990         * gtk/gtkfontsel.c: fix warning
11991
11992         * gtk/gtkcolorsel.c: fix warnings
11993
11994 2001-03-23  Havoc Pennington  <hp@redhat.com>
11995
11996         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
11997
11998         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
11999
12000         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
12001         and deprecated gtk_check_menu_item_set_show_toggle().
12002         
12003         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
12004
12005         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
12006
12007         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
12008
12009 2001-03-23  Havoc Pennington  <hp@redhat.com>
12010
12011         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
12012         some docs
12013
12014 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
12015
12016         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
12017         this.
12018
12019         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
12020         set_cell to set_value
12021
12022         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
12023         set_cell to set_value
12024
12025 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
12026
12027         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12028         fix braino.
12029         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
12030         support.
12031
12032         * gtk/gtktreeview.c: Addition of initial sortable support.
12033
12034         * gtk/gtktreestore.c: Addition of initial sortable support.
12035
12036         * gtk/gtkliststore.c: Addition of initial sortable support.
12037
12038         * gtk/gtkmarshal.list: yet another marshaller.
12039
12040         * gtk/gtktreedatallist.[ch]: shared code between the store models
12041         for handling sorting headers.
12042
12043 2001-03-22  Havoc Pennington  <hp@redhat.com>
12044
12045         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
12046         (gtk_container_unset_focus_chain): Add ability to override the 
12047         focus chain for a container explicitly
12048
12049 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
12050
12051         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
12052         added PROP_MNEMONIC_WIDGET.
12053
12054         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
12055         (gtk_window_remove_mnemonic): 
12056         (gtk_window_add_mnemonic): fixed assertions.
12057         (gtk_window_activate_mnemonic): constrain modifier checks to those
12058         permitted by gtk_accelerator_get_default_mod_mask().
12059         got rid of gtk_window_get_default_accel_group().
12060
12061         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
12062         activatable widgets either by focussing or a warning.
12063         added a signal accumulator to ::activate_mnemonic which stops the
12064         emission once a handler returned TRUE.
12065
12066 2001-03-22  Havoc Pennington  <hp@pobox.com>
12067
12068         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
12069         the stock item label
12070
12071         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
12072
12073         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
12074
12075         * demos/gtk-demo/*.c: Add mnemonics all over the place
12076
12077         * gtk/gtklabel.h: mark parse_uline deprecated
12078
12079 2001-03-21  Alexander Larsson  <alexl@redhat.com>
12080
12081         * gtk/gtkitemfactory.[ch]:
12082         Add support for stock and normal imagemenuitems.
12083         
12084         * gtk/testgtk.c:
12085         Add some tests for mnemonics, stock toolbars, stock
12086         and image menuitems in itemfactory and gdk_window_scroll.
12087
12088 2001-03-21  Alexander Larsson  <alexl@redhat.com>
12089
12090         * gtk/gtkbutton.[ch]:
12091         * gtk/gtkdialog.c:
12092         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
12093         removed accel_group argument. Renamed gtk_button_new_accel() to
12094         gtk_button_new_with_mnemonic() and removed accel_group argument.
12095
12096         * gtk/gtkcheckbutton.[ch]:
12097         New function gtk_check_button_new_with_mnemonic().
12098
12099         * gtk/gtkentry.c:
12100         Override activate_mnemonic and just grab focus.
12101
12102         * gtk/gtkitemfactory.c:
12103         Don't add menu uline accel group, instead use mnemonics support.
12104
12105         * gtk/gtklabel.[ch]:
12106         New support for mnemonics.
12107
12108         * gtk/gtkmarshal.list:
12109         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
12110
12111         * gtk/gtkmenu.[c]:
12112         * gtkmenushell.c:
12113         Use mnemonics instead of accel groups for uline
12114         support in menu items.
12115         Removed gtk_menu_get_uline_accel_group() and
12116         gtk_menu_ensure_uline_accel_group().
12117
12118         * gtk/gtkmenuitem.c:
12119         Override activate_mnemonic to handle switching between
12120         menu items if there are collisions.
12121         
12122         * gtk/gtknotebook.c:
12123         Connect to activate_mnemonic on the tab_label, so that
12124         activating it switches to that notebook page.
12125
12126         * gtk/gtkwidget.[ch]:
12127         Add activate_mnemonic signal. New function
12128         gtk_widget_activate_mnemonic() to emit it.
12129         Default implementation does activate/grab_focus.
12130
12131         * gtk/gtkwindow.[ch]:
12132         Add support for mnemonics in windows.
12133         New functions:
12134         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
12135         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
12136
12137         * gtk/testgtk.c:
12138         Update to function name changes.
12139         
12140 2001-03-21  Alexander Larsson  <alexl@redhat.com>
12141
12142         * gtk/gtkimagemenuitem.[c]:
12143         Add gtk_image_menu_item_new_from_stock()
12144
12145 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
12146
12147         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12148         Fix buglet in meeting.
12149
12150 2001-03-19  Havoc Pennington  <hp@redhat.com>
12151
12152         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
12153         add a bunch of accessor functions. This is because we have
12154         reasonable expectations of extending what fields it contains in
12155         the future.
12156
12157         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
12158         changes
12159
12160         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
12161         GtkIconSource   
12162
12163 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
12164
12165         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
12166         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
12167
12168         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
12169           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
12170           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
12171           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
12172         Change float to double everywhere with the exception of 0<->1.0 alignment
12173         and GtkCurve.
12174
12175 2001-03-19  Tor Lillqvist  <tml@iki.fi>
12176
12177         * gdk/win32/gdkdrawable-win32.c
12178         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
12179         output.
12180
12181         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
12182         gdkwin32.h.
12183
12184 2001-03-18  Tor Lillqvist  <tml@iki.fi>
12185
12186         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
12187         print_event_state, print_event): Use preprocessor macro to make
12188         code more compact. Print also GDK_WINDOW_STATE events.
12189         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
12190         
12191         * gtk/gtk.def
12192         * gtk/makefile.mingw.in: Update.
12193
12194         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
12195         to catch also Cygwin.
12196
12197 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
12198
12199         * gtk/gtkspinbutton.[hc]: added rc-style argument
12200         GtkSpinButton::shadow_type.
12201         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
12202         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
12203         rc-style settings.
12204
12205         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
12206
12207         * gtk/gtkwidget.c: quark cleanups.
12208
12209         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
12210         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
12211         to create_rc_style() (we don't do cloning in standard OO sense).
12212         added per rc style properties.
12213         
12214         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
12215         property values and for caching those. some cleanups.
12216         
12217         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
12218         
12219         * gtk/gtksettings.[hc]: new file for global rc-file properties
12220         (at least currently, should get extended to support X properties
12221         and other communication mechanisms).
12222         
12223         * gtk/gtkwidget.[hc]: added style property support:
12224         (gtk_widget_class_install_style_property_parser): install style
12225         property pspec with parser function for rc-file values other
12226         than LONG, DOUBLE or STRING.
12227         (gtk_widget_class_install_style_property): same as above without
12228         parser (parsers are going to be needed quite infrequently).
12229         (gtk_widget_style_get_property): retrive style property value.
12230         (gtk_widget_style_get_valist): same as above with varargs support,
12231         has NOCOPY semantics.
12232         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
12233
12234 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
12235
12236         * demos/gtk-demo/main.c (row_activated_cb): modified to use
12237         "row_activated" signal.
12238
12239         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
12240         stupidity.  Lets actually pass in the row with this signal...
12241
12242 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
12243
12244         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
12245
12246         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
12247
12248         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
12249         everything into the ::destroy function, and freed a lot more.
12250
12251 2001-03-16  Havoc Pennington  <hp@redhat.com>
12252
12253         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
12254         instead of gint16, to avoid overflow issues, since sizes > 16-bit
12255         are now allowed.
12256
12257 2001-03-16  Havoc Pennington  <hp@redhat.com>
12258
12259         * Applied patch from Nils Barth (bug # 51041) to 
12260         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
12261         in various places.
12262
12263 2001-03-15  Havoc Pennington  <hp@redhat.com>
12264         
12265         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
12266         for properties to set on the tag.
12267
12268         * gtk/testtext.c: fixups to reflect create_tag change
12269         
12270         * gtk/gtktexttag.c (gtk_text_tag_set_property):
12271         background/foreground stipple are objects, not boxed.
12272
12273         * demos/gtk-demo/textview.c: intellihancing
12274
12275 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
12276
12277         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
12278         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
12279
12280 2001-03-16  Alexander Larsson  <alexl@redhat.com>
12281
12282         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
12283         Fix sign error with queued region translations.
12284
12285 2001-03-15  HideToshi Tajima  <tajima@happy>
12286
12287         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
12288         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
12289         * gtk/gtkentry.c (update_im_cursor_location): 
12290         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
12291         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
12292         set_cursor_pos to set_cursor_location in GtkInputContext class
12293
12294 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
12295
12296         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
12297         the location of the cell relative to its area.
12298         * gtk/gtkcell*: modified for above change
12299         * gtk/gtktreeview.c: modified for above change.
12300
12301 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
12302
12303         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
12304          (gtk_tree_view_finalize): actually unref the model.  Thanks to
12305         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
12306
12307 2001-03-14  Havoc Pennington  <hp@redhat.com>
12308
12309         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
12310         
12311         * gtk/gtk.h: remove gtkdata.h
12312
12313         * gtk/Makefile.am: remove gtkdata
12314         
12315         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
12316         not "disconnect" on the adjustments.
12317         
12318         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
12319         GtkData
12320
12321         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
12322         not GtkData
12323
12324         * configure.in: handle case where X render exists, but Pango lacks
12325         Xft support.
12326
12327 2001-03-15 Alexander Larsson  <alexl@redhat.com>
12328
12329         * gtk/gtktoolbar.[ch]:
12330         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
12331         to add stock items to toolbars.
12332
12333         * gtk/Makefile.am:
12334         Remove ../gdk/gdkim.h from gdk_headers.
12335
12336 2001-03-15  Sven Neumann  <sven@gimp.org>
12337
12338         * gdk/gdkim.h: removed
12339         
12340         * gdk/gdkprivate.h
12341         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
12342
12343 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
12344
12345         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
12346         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
12347         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
12348         set_cursor_pos() virtual method
12349
12350         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
12351         (gtk_im_context_xim_set_cursor_pos): add implementation for
12352         set_cursor_pos() method
12353
12354         * gtk/gtkentry.c (recompute_idle_func): set current cursor
12355         position to input methods
12356
12357 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
12358
12359         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
12360         code a lot.
12361
12362         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
12363         g_mem_chunk.
12364         (_gtk_tree_data_list_alloc): use g_mem_chunk.
12365         (_gtk_tree_data_list_node_to_value): Fix to switch on
12366         G_TYPE_FUNDAMENTAL.
12367         (_gtk_tree_data_list_value_to_node): Fix to switch on
12368         G_TYPE_FUNDAMENTAL.
12369         (_gtk_tree_data_list_node_copy): Fix to switch on
12370         G_TYPE_FUNDAMENTAL.
12371
12372 2001-03-12  Havoc Pennington  <hp@redhat.com>
12373
12374         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
12375         to convert to new property API. Also, change default_width and
12376         default_height get_property to return 0 as the flag value for
12377         "unset"; -1 is not a valid value for these fields.
12378
12379 2001-03-12  Havoc Pennington  <hp@redhat.com>
12380
12381         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
12382         enum with registration for icon sizes, instead of strings.
12383
12384         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
12385         gtkwidget.c: Fix to reflect GtkIconSize
12386         
12387 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12388
12389         Make GtkFB compile and link.
12390         
12391         * gdk/linux-fb/gdkdrawable-fb2.c:
12392         window->mapped to GDK_WINDOW_IS_MAPPED(). 
12393         
12394         * gdk/linux-fb/gdkwindow-fb.c:
12395         window->mapped to GDK_WINDOW_IS_MAPPED(). 
12396         Added gdk_window_shape_combine_region.
12397         Added assorted placeholders for unimplemented new GdkWindow API calls.
12398
12399 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12400
12401         * gtk/gtkfilesel.c:
12402         Add more test when converting filenames from/to utf-8.
12403         Don't allow entering text in the filename entry which isn't allowed in
12404         a filename. Just beep instead.
12405
12406 2001-03-12  Alexander Larsson  <alexl@redhat.com>
12407
12408         * gtk/gtkclist.c:
12409         Scroll using gdk_window_scroll(). Don't wait for exposes.
12410         Move the column headers in an order that makes them flash less.
12411
12412 2001-03-10  Hans Breuer  <hans@breuer.org>
12413
12414         * gdk/gdk.def : updated
12415
12416         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
12417         to offseting the clip_mask at the right place
12418
12419         * gdk/win32/gdkwindow-win32.c : don't create background brushes
12420         for all the gdkClasses, especially not for the input_only case.
12421         Otherwise flickering wont be avoidable, because we don't get
12422         WM_ERASEBKGND message for these windows.
12423
12424         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
12425         and fixed massive redraw problems apparently triggered by Alexanders 
12426         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
12427         but it seems to work quite well :-)
12428
12429         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
12430         prototype
12431
12432 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
12433
12434         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
12435         (gtk_list_store_set_cell): Fix a stupid typo.
12436
12437 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
12438
12439         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
12440         select_all not work if you're in SINGLE mode (it doesn't make that
12441         much sense, anyway.)
12442
12443         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
12444         handle types more sanely.
12445         (_gtk_tree_data_list_value_to_node): handle types more sanely.
12446         (_gtk_tree_data_list_node_copy): handle types more sanely.
12447
12448         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
12449         GValue better. Converts the type as well.
12450
12451         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
12452         GValue better. Converts the type as well.
12453
12454 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
12455
12456         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
12457         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
12458         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
12459         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
12460
12461         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
12462         gdk_im/gdk_ic.
12463
12464 2001-03-09  Hans Breuer  <hans@breuer.org>
12465
12466         * gdk/gdk.def : updated
12467
12468         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
12469         for their palette
12470
12471         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
12472         removing
12473
12474         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
12475         removing and implemented Havoc's GdkWindow state functions; 
12476         stick/unstick only as no-op, cause I don't know how to emulate 
12477         on win32 ...
12478
12479         * gtk/gtk.def : updated
12480
12481         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
12482
12483         * gtk/gtktypeutils.c : #include <string.h>
12484
12485         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
12486
12487 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
12488
12489         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
12490         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
12491         not a boxed.
12492
12493 2001-03-09  Alexander Larsson  <alexl@redhat.com>
12494
12495         * docs/Changes-2.0.txt:
12496         Document expose event->region change and that gtk_widget_event
12497         doesn't allow passing expose events.
12498
12499         * gdk/gdkevents.h:
12500         Add region to expose event.
12501         
12502         * gdk/gdkevents.c:
12503         Handle event->region in gdk_event_copy() and gdk_event_free().
12504
12505         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
12506         Generate expose_event->region when creating expose events.
12507
12508         * gdk/x11/gdkevents-x11.c:
12509         Generate expose events with regions when translating X events.
12510
12511         * gtk/gtkcontainer.[ch]:
12512         Default expose handler that propagates expose events to NO_WINDOW
12513         children. New function gtk_container_propagate_expose()
12514
12515         * gtk/gtkwidget.[ch]:
12516         Moved gtk_widget_event implementation to gtk_widget_event_internal.
12517         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
12518         expose events. New function gtk_widget_send_expose() to send expose
12519         events. New function gtk_widget_region_intersect() to calculate
12520         window/region intersections.
12521         
12522         * gtk/gtkmain.c (gtk_main_do_event):
12523         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
12524         Use gtk_widget_send_expose() to send expose events.
12525         
12526         * gtk/gtkbin.c:
12527         * gtk/gtkbox.c:
12528         * gtk/gtkfixed.c:
12529         * gtk/gtkimagemenuitem.c:
12530         * gtk/gtklist.c:
12531         * gtk/gtkpacker.c:
12532         * gtk/gtktable.c:
12533         * gtk/gtktree.c:
12534         Remove expose handler, using the default container implementation
12535         instead.
12536         
12537         * gtk/gtkbutton.c:
12538         * gtk/gtkcheckbutton.c:
12539         * gtk/gtkeventbox.c:
12540         * gtk/gtkfixed.c:
12541         * gtk/gtkhandlebox.c:
12542         * gtk/gtklayout.c:
12543         * gtk/gtklistitem.c:
12544         * gtk/gtkmenu.c:
12545         * gtk/gtkmenubar.c:
12546         * gtk/gtkmenuitem.c:
12547         * gtk/gtknotebook.c:
12548         * gtk/gtkoptionmenu.c:
12549         * gtk/gtkpaned.c:
12550         * gtk/gtkscrolledwindow.c:
12551         * gtk/gtktogglebutton.c:
12552         * gtk/gtktoolbar.c:
12553         * gtk/gtktreeitem.c:
12554         * gtk/gtkviewport.c:
12555         Chain expose handler to parent class handler. Use
12556         gtk_container_propagate_expose() to propagate exposes.
12557
12558         * gtk/gtkclist.c (check_exposures):
12559         * gtk/gtktext.c (process_exposes):
12560         Use gtk_widget_send_expose instead of gtk_widget_event.
12561
12562 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
12563
12564         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
12565
12566 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
12567
12568         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
12569         unref the nodes.   Fixes bug #50058.
12570
12571         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
12572         "::ref_iter" to "::ref_node".
12573         (gtk_tree_model_unref_node): change "::unref_iter" to
12574         "::unref_node". Fixes bug #50064.
12575
12576 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
12577
12578         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
12579         support for invisible cells.
12580          (gtk_tree_view_bin_expose): ditto
12581
12582 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
12583
12584         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
12585         on gobjects.
12586
12587         * tests/testtreefocus.c (main): New test file.
12588
12589         * tests/testtreeview.c: update to latest glib changes.
12590
12591         * tests/testtreecolumns.c: update to latest glib changes.
12592
12593 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
12594
12595         * gtk/testgtk.c: re-enabled event watcher emission hooks.
12596
12597 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
12598
12599         * *.c: added accumulator data argument to g_signal_newc()
12600         functions.
12601
12602         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
12603         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
12604         * gtk/treestoretest.c (make_window):
12605         s/g_signal_connect/g_signal_connectc/.
12606
12607         * gtk/gtktextbuffer.c: completed signal arg fixups,
12608         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
12609
12610 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
12611
12612         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
12613         G_CONST_RETURN.
12614
12615         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
12616         ::hierarchy-changed signal when a widget changes
12617         from anchored to unanchored or vice versa.
12618         (anchored means 
12619          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
12620         Use a private flag to keep track of this efficiently.
12621
12622 2001-03-07  Havoc Pennington  <hp@redhat.com>
12623
12624         * gtk/testgtk.c (create_spins): uglify so that size request gets
12625         tested.
12626
12627         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
12628         request on values for upper/lower, completes #6152
12629
12630 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
12631
12632         * Makefile.am: Remove gtk-config-2.0 again.
12633         (Grrrr, pkg-config. And stops make loops.)
12634
12635 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
12636
12637         * gtk/gtksignal.[hc]: removed old emission hook API.
12638         
12639         * docs/Changes-2.0.txt: fixed sections.
12640         
12641         * gtk/gtktextbuffer.c: signal arg fixups.
12642
12643 2001-03-07  Havoc Pennington  <hp@redhat.com>
12644
12645         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
12646
12647         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
12648         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
12649         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
12650         validation and the redraw which is higher priority than the
12651         validation.
12652
12653 2001-03-07  Havoc Pennington  <hp@redhat.com>
12654
12655         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
12656         (gtk_entry_set_property): remove trailer
12657
12658         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
12659         (gtk_entry_get_width_chars): new functions, to set size request to 
12660         a given number of characters
12661
12662         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
12663
12664         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
12665         (gtk_dialog_get_has_separator): new function
12666         (run_delete_handler): fix to not emit "response" signal
12667         because we already did in the delete event handler installed
12668         at dialog creation time.
12669         
12670         * gtk/gtkdialog.h: add a has_separator property,
12671         add GTK_DIALOG_NO_SEPARATOR flag
12672
12673 2001-03-07  Havoc Pennington  <hp@redhat.com>
12674
12675         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
12676         off decorations for a window.
12677
12678         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
12679         changes
12680
12681         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
12682         to get location of PangoLayout inside the label, closes #51198
12683
12684         * gtk/testgtk.c (create_bbox): fix up button box usage
12685
12686         * gtk/testcalendar.c (create_calendar): fix up button box usage
12687
12688         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
12689
12690         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
12691
12692         * gtk/gtkhbbox.h: deprecations
12693
12694         * gtk/gtkvbbox.h: deprecations
12695
12696         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
12697         emulate deprecated gtk_button_box_get_spacing
12698
12699         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
12700         the "set global default" functions
12701         (struct _GtkButtonBox): remove "spacing" field, use the one from 
12702         GtkBox base class
12703
12704         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
12705
12706         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
12707         render the icon, return the missing image icon.
12708
12709         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
12710         image icon if the load fails.   
12711
12712         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
12713         when no image is found; should be the Netscape "missing image"
12714         icon eventually but for now is a random image
12715
12716         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
12717         role for the session manager
12718
12719         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
12720
12721         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
12722         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
12723
12724         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
12725
12726 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
12727
12728         * gtk/*.c: marshaller fixes.
12729         
12730         * gtk/gtkmarshal.list: extreme cleanup.
12731
12732         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
12733         param spec for now.
12734
12735         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
12736         where appliable.
12737
12738         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
12739         special cased autogenerated boxed types from gtktypebuiltins_ids.c
12740         which are not reference counted:
12741         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
12742         PangoFontDescription, GtkTreeIter and GtkTreePath.
12743
12744 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
12745
12746         * gtk/gtktreeselection.h: 
12747         * gtk/gtktreemodel.c:
12748         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
12749         file should be included directly, and gobject/gmarshal.h
12750         as well as gtk/gtkmarshal.h even can't be included directly.
12751
12752         * Makefile.am: grr, install gtk-config-2.0.
12753
12754         * gtk/testgtk.c:
12755         * gtk/simple.c:
12756         * gtk/gtkmenu.c:
12757         * gtk/gtkitemfactory.c: use g_object_connect() instead of
12758         passing "*signal*::*" args to gtk_widget_set().
12759         
12760         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
12761         
12762         * gtk/*.c: removed trailer arg from property setters and getters.
12763         macro fixups.
12764
12765 2001-03-07  Alexander Larsson  <alexl@redhat.com>
12766
12767         * gtk/gtklabel.c (set_markup): Removed warning
12768
12769 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
12770
12771         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
12772         field to allow you to hide cell renderers.
12773
12774         * gtk/gtkcellrenderer.c: Add support for invisible cells.
12775
12776         * gtk/gtktreeview.c: Add support for invisible cells.
12777
12778 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
12779
12780         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
12781         Add "clicked" signal back to columns.
12782
12783         * ChangeLog: remove conflict markers.
12784
12785 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
12786
12787         * gtk/gtkbutton.c: Add animation of activation by, on 
12788         activate, pressing the button, and adding a timeout that 
12789         releases the button after 250ms or on key release and
12790         emits ::clicked. (#51501)
12791
12792         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
12793         action area, we connect to ::clicked instead of ::activate
12794         so the dialog stays up through the animation.
12795
12796 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
12797
12798         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
12799         check the ignore_enter flag for the menu shell that
12800         the item is actually a child of, not for attached
12801         submenus. (#51536)
12802
12803 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
12804
12805         * gtk/gtkmain.c (gtk_propagate_event): Only do special
12806         special key-press grab handling for widgets within
12807         GtkWindows. Otherwise, fall through to normal case.
12808
12809         This prevents key events being sent twice to GtkInvisible
12810         widgets, which can cause all sorts of mischief.
12811
12812 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
12813
12814         * gtk/gtkmain.c (gtk_propagate_event): When a grab
12815         widget is in effect, give the grab widget a first
12816         crack at KEY_PRESS/RELEASE events. (#424)
12817
12818 2001-03-06  James Henstridge  <james@daa.com.au>
12819
12820         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
12821         offset for the window_state_event to point at window_state_event
12822         rather than no_expose_event.
12823
12824 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
12825
12826         * gtk/gtkimmodule.h: fix busted /* comment */
12827
12828 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
12829
12830         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
12831         object properties.
12832
12833 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
12834
12835         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
12836         add object properties.
12837
12838         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
12839         to add object properties.
12840
12841         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
12842         object properties.
12843
12844         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
12845         add object properties.
12846
12847         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
12848         object properties.
12849
12850 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
12851
12852         * gtk/gtktreemodel.c: renamed "child_toggled" to
12853         "has_child_toggled".
12854
12855         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
12856         handle new signal name.
12857
12858         * gtk/gtktreestore.c: Updated to handle new signal name.
12859         * gtk/gtklisttore.c: Updated to handle new signal name.
12860         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
12861
12862 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12863
12864         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
12865         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
12866
12867 2001-03-05  Michael Natterer  <mitch@gimp.org>
12868
12869         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
12870         pixbuf-engine coincidentially also failed to make one of it's
12871         parent_class pointers static, causing overwriting of GtkLabel's
12872         parent_class pointer in pixbuf_style_class_init().
12873         (Will commit the fix to the pixbuf-engine too).
12874
12875 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12876
12877         * gdk/gdkwindow.h:
12878         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
12879         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
12880         gdk_window_set_icon_list for net wmspec functionality.
12881
12882         * gdk/x11/gdkwindow-x11.c:
12883         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
12884         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
12885         gdk_window_set_icon_list.
12886         Added gdk_wmspec_change_state helper function and used it in the code.
12887         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
12888
12889         * gtk/gtkdialog.c (gtk_dialog_init):
12890         Set GDK_WINDOW_TYPE_HINT_DIALOG.
12891
12892         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
12893         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
12894
12895         * gtk/gtkwindow.c:
12896         new function gtk_window_set_type_hint.
12897         On realize, set type hint and modal hint.
12898
12899         * gtk/gtkwindow.h:
12900         Added type_hint field and gtk_window_set_type_hint.
12901
12902 2001-03-05  Alexander Larsson  <alexl@redhat.com>
12903
12904         * gtk/gtklabel.[ch]:
12905         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
12906         New function gtk_label_get_accel_keyval () to get the underline accelerator
12907         of the label. Setting the label pattern overrides other attributes.
12908
12909 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
12910
12911         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
12912         Added missing initializers to gtk_rc_style_init().
12913
12914 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
12915
12916         * gtk/gtktextview.c: fixed bug #51097 about setting 
12917         gtk_text_view_set_border_window_size() if the widget is 
12918         already realized.
12919
12920 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
12921
12922         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
12923
12924         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
12925         comment. Won't do to have duplicated doc comments between
12926         the platform subdirs.
12927
12928 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
12929
12930         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
12931           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
12932
12933         Detectable auto-repeat - make a repeating key generate
12934         press/press/press/release instead of press/release pairs.
12935
12936         If we have Xkb and XkbSetDectableAutoRepeat supports
12937         that, we do it that way. Otherwise, when we get
12938         a release event, we check ahead with XPending to see
12939         if the next key is a KeyPress with the same keycode
12940         and timestamp. (Not 100% reliable, but pretty close.)
12941           
12942 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
12943         
12944         * gtk/gtkmain.c (gtk_propagate_event): Only do special
12945         special key-press grab handling for widgets within
12946         GtkWindows. Otherwise, fall through to normal case.
12947  
12948         This prevents key events being sent twice to GtkInvisible
12949         widgets, which can cause all sorts of mischief.
12950  
12951 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
12952  
12953         * gtk/gtkmain.c (gtk_propagate_event): When a grab
12954         widget is in effect, give the grab widget a first
12955         crack at KEY_PRESS/RELEASE events. (#424)
12956  
12957 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
12958
12959         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
12960         to extend the selection. (Roughly based on patch
12961         from Jay Cox, #50939)
12962
12963         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
12964         to properly handle previous GDK_BUTTON_PRESS. 
12965         (Patch from Jay Cox, #50938)
12966
12967         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
12968         '\0' back along with the deleted text. (#51148)
12969
12970 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
12971
12972         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
12973         the group when extracting it from the X keyboard event.
12974
12975         * modules/input/Makefile.am modules/input/imipa.c: 
12976         Simple module for entering IPA. (Do we need a 
12977         gtk-stupid-input-tricks CVS module?)
12978
12979 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
12980
12981         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
12982         const.
12983
12984         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
12985
12986         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
12987         is no focus widget for the dialog currently, grab the focus as well
12988         as the default.
12989
12990         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
12991         the action area's children to iterate through, not the
12992         dialog's children.
12993
12994 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
12995
12996         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
12997         Add plug-socket tests. (Won't work worth a darn until I commit
12998         the rest of the plug-socket changes, but no reason these
12999         can't go into CVS now.)
13000
13001 2001-03-02  Havoc Pennington  <hp@redhat.com>
13002
13003         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
13004         _gdk_region_get_xrectangles()
13005
13006         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
13007
13008         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
13009
13010         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
13011         function, contributed by Ron Steinke    
13012
13013         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
13014         gdk_net_wm_supports
13015
13016         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
13017         New function, contributed by Ron Steinke
13018
13019         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
13020         used to line up the text in the entry when using the entry for
13021         editable sheet cell hacks
13022
13023         * gtk/testgtk.c (create_entry): test the activate_default setting
13024         on GtkEntry
13025
13026         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
13027         cause the entry to activate the default button for a dialog when 
13028         activated
13029         (gtk_entry_get_activates_default): new function
13030
13031 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
13032
13033         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
13034         Hwang to move call to sync_selection() up a few lines
13035         to before the row list is modified, to fix crash when
13036         removing rows in the undo_selection list.
13037
13038         (Test case provided by Daniel Elstner:
13039
13040         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
13041
13042 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
13043
13044         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
13045         of tree->root_tree in parent_set rather than _map(), 
13046         fixing #50892 in a bit better manner.
13047
13048 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
13049
13050         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
13051
13052 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
13053
13054         * gtk/gtkstyle.c : Remove duplicate fwd decl for
13055         gtk_default_draw_shadow.
13056
13057 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
13058
13059         * gdk/gdkimage.c (gdk_image_new): Remove excess 
13060         warning, make warnings more verbose, treat a error
13061         in shmat as permanent, and don't try again.
13062         (#51163, Ed Randall.)
13063
13064 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
13065
13066         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
13067         delay for the first click before starting to scroll.
13068         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
13069
13070         * gtk/gtktext.c: GtkText should have I-beam cursor. 
13071         (based on gtk-enf-990513-1.patch, Eric Fisher.)
13072
13073 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
13074
13075         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
13076         cleanup to remove some references to unused
13077         ->xoffset, ->yoffset.
13078
13079 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
13080
13081         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
13082         mask. (#51039, fix from Martin Maierhofer)
13083
13084 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
13085
13086         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
13087         for unshifted + and shifted = for non-us keyboards.
13088         Make <Control>+ and <Control>- work as well as 
13089         <Control>KP_Plus, <Control>KP_Minus for recursive
13090         open/close.  (#2682, René Seindal)
13091
13092 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
13093
13094         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
13095         the active menu item before deactivating the menu,
13096         so gtk_menu_popdown doesn't change the history. (#50964)
13097         
13098 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
13099
13100         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
13101         draw lines with text_gc rather than black_gc.
13102         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
13103
13104 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
13105
13106         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
13107         Move handling of buttons fully in gtktreeviewcolumn.  This code is
13108         less interrelated then it was, but it still requires the
13109         GtkTreeView to map it.
13110
13111         * test/testtreecolumn.c: Now I can add a column to one view,
13112         remove it, add it to the another view, remove it, then re-add it
13113         to the first.  Nifty.
13114
13115 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
13116
13117         * docs/tutorial/gtk-tut.sgml: Minor corrections
13118
13119 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
13120
13121         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
13122         GtkRowReference.
13123
13124 2001-02-28  Havoc Pennington  <hp@redhat.com>
13125
13126         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
13127         draw_default
13128         (gtk_widget_draw_focus): remove this function; we could instead
13129         make it just gtk_widget_draw(), but in most cases I think the
13130         result would be broken user code, so think it's better to have
13131         that code not compile and get fixed
13132         (gtk_widget_draw_default): ditto
13133
13134         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
13135         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
13136         
13137         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
13138         widgets lose/get the default, instead of calling draw_default
13139         
13140         * docs/Changes-2.0.txt: note about all this
13141
13142         Then fixed every widget in GTK, I won't list all the filenames.
13143
13144 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
13145
13146         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
13147         _gtk_tree_row_reference_deleted.
13148         (inserted_callback): Proxy out to
13149         _gtk_tree_row_reference_inserted.
13150         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
13151         get around signal emission ordering problem.
13152
13153         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
13154         fix to work with SINGLE 
13155         (_gtk_tree_selection_internal_select_node): Major sanitization on
13156         selections.  SINGLE now seems to work.
13157
13158         * tests/Makefile.am: add testtreecolumn.c:
13159
13160         * tests/testtreecolumn.c: New test.  Mostly points out selection
13161         bugs currently, but will test columns later.
13162
13163         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
13164         selection bug.  I hate touching this code -- it's scary.
13165
13166 2001-02-26  Havoc Pennington  <hp@redhat.com>
13167
13168         * gtk/testgtk.c: test the window state stuff
13169
13170         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
13171         window come to the user's attention as if it were just created
13172         (gtk_window_iconify): new function
13173         (gtk_window_deiconify): new function
13174         (gtk_window_stick): new function
13175         (gtk_window_unstick): new function
13176         (gtk_window_maximize): new function
13177         (gtk_window_unmaximize): new function
13178
13179         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
13180
13181         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
13182
13183         * gdk/x11/gdkevents-x11.c: create window state events when
13184         appropriate
13185         (gdk_wmspec_supported): new function
13186
13187         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
13188         iconification before showing the window
13189         (gdk_window_deiconify): new function
13190         (gdk_window_stick): new function
13191         (gdk_window_unstick): new function
13192         (gdk_window_maximize): new function
13193         (gdk_window_unmaximize): new function
13194
13195         * gdk/gdkwindow.c: store the window state in the window; 
13196         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
13197         window->mapped.
13198         (gdk_window_get_state): return the current window state
13199
13200         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
13201         (gdk_event_get_state): handle GDK_WINDOW_STATE
13202         (gdk_synthesize_window_state): function to create the window state
13203         events
13204
13205         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
13206         event, for changes to "window state" such as maximized, sticky, 
13207         etc.
13208         
13209         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
13210         focuses a window
13211
13212         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
13213         finds out if we support a given WM spec hint
13214
13215 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
13216
13217         * docs/faq/gtk-faq.sgml: New question re memory leaks.
13218
13219 2001-02-25  Hans Breuer  <hans@breuer.org>
13220
13221         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
13222         cause we want to loose those prototypes only in the latter case
13223
13224         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
13225         GdkPixmapImplWin32 because it itsn't derived from it. Use the
13226         impl member variable instead
13227
13228         * gtk/gtk.def : updated
13229
13230         * gtk/gtklist.c : 
13231         * gtk/gtkmenus.c : include <string.h> for memset ()
13232
13233         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
13234         for everthing built here, but for gtk-x.x.dll only. This solves
13235         problem of indifferent gtk type definitions
13236
13237 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
13238
13239         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
13240
13241 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
13242
13243         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
13244         column that is exposed.
13245
13246         (_gtk_tree_view_update_size): Changed name from set_size, and
13247         changed function to do more work, and not force people calling it
13248         to figure out the size.  Simplifies a lot of code elsewhere.
13249
13250 2001-02-23  Alexander Larsson  <alexl@redhat.com>
13251
13252         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
13253         return solid masks for xpms that have no transparent color.
13254         This makes the ..._create_from_xpm... API backwards
13255         compatible.
13256
13257 2001-02-23  Tor Lillqvist  <tml@iki.fi>
13258
13259         * README.win32: Update. Mention the gtk-1-3-win32-production
13260         branch.
13261
13262         * gdk/win32/bdfcursor.c: New file. A program that generates
13263         xcursors.h. Thanks to Stefan Ondrejicka.
13264
13265         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
13266         compact format.
13267
13268         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
13269
13270         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
13271         function, uses xcursors.h.
13272         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
13273         cursor from inline data instead of using LoadCursor() to generate
13274         it from a resource.
13275
13276         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
13277         event, must check the Windows message for mouse button state, as
13278         the GDK event state might not have been built if it is
13279         undelivered. Remove one goto.
13280
13281         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
13282         SetCursor() if the current cursor as returned by GetCursor() is
13283         the window's previous cursor. The ChildWindowFromPoint() test
13284         apparently didn't work correctly.
13285
13286         * gdk/win32/rc/*.cur: Remove.
13287
13288         * gdk/win32/rc/gdk.rc.in: Remove cursors.
13289
13290         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
13291
13292         * gtk/makefile.{mingw,msc}.in: Updates.
13293
13294 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
13295
13296         * gtk/gtktreemodel.h: add functions for signal emission.
13297
13298         * gtk/gtktreestore.c: move to use above functions instead of
13299         g_signal_emit.
13300
13301         * gtk/gtkliststore.c: ditto
13302
13303 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
13304
13305         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
13306         GObject instead of GtkObject.
13307
13308         * gtk/gtkliststore.c: ditto.
13309
13310         * gtk/gtktreemodelsort.c: ditto.
13311
13312         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
13313         GtkTreeModelIface, instead of in each model.
13314
13315 2001-02-21  Havoc Pennington  <hp@redhat.com>
13316
13317         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
13318         unbreak this function
13319
13320         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
13321         properties
13322
13323         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
13324         properties
13325
13326         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
13327         properties
13328
13329         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
13330         mean unset the max length
13331
13332 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
13333
13334         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
13335         Changed name to be set_cell_data_func to make it clear what
13336         the functino does.  Close bug #51069.
13337
13338 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
13339
13340         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
13341         have memory actually freed.  Keeps box running longer.
13342
13343 2001-02-21  Alexander Larsson  <alexl@redhat.com>
13344         
13345         * gtk/gtkseparatormenuitem.[ch]:
13346         Added new menu separator item. The drawing and size handling
13347         is still done in GtkMenuItem, but the API is a bit more sane.
13348         
13349         * gtk/Makefile.am:
13350         Add gtkseparatormenuitem.[ch].
13351
13352         * gtk/gtk.h:
13353         Add gtkseparatormenuitem.h.
13354         
13355         * gtk/gtkentry.c:
13356         * gtk/gtkmenufactory.c:
13357         * gtk/gtktextview.c:
13358         Use the new API for menu separators.
13359         
13360         * demos/gtk-demo/menus.c (create_menu):
13361         Add some GtkSeparatorMenuItem demo code.
13362
13363 2001-02-20  Havoc Pennington  <hp@redhat.com>
13364
13365         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
13366         Lee Mallabone
13367
13368         * gtk/gtkarrow.c: Convert to new property API, patch from 
13369         Lee Mallabone
13370
13371 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
13372
13373         * tests/testtreeview.c (toggled_callback): fix to reflect change
13374         in GtkTreeModelStore.
13375
13376 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
13377
13378         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
13379         function to create an icon set from a pixbuf.
13380
13381 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13382
13383         * gtk/gtkcellrenderertext.[ch]:
13384         Add a "markup" property.
13385
13386         * gtk/treestoretest.c:
13387         Use the markup property, remove some leftover stuff from
13388         GtkTreeModelMapping.
13389
13390 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13391
13392         * gtk/gtklabel.c (gtk_label_set_selectable):
13393         Queue a redraw if the selectable setting was changed.
13394
13395 2001-02-20  Alexander Larsson  <alexl@redhat.com>
13396
13397         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
13398         Actually copy the whole gc, not just the public parts.
13399         
13400         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
13401         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
13402         labels.
13403
13404 2001-02-19  Havoc Pennington  <hp@pobox.com>
13405
13406         * gdk/gdkwindow.c: docs
13407
13408         * gdk/gdkrgb.c: docs
13409
13410         * gdk/gdkregion-generic.c: docs
13411
13412         * gdk/gdkgc.c (gdk_gc_set_values): docs
13413
13414         * gdk/gdkdraw.c: docs
13415
13416         * gdk/gdkdrawable.h: deprecate drawable get/set data
13417
13418 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
13419
13420         * demos/gtk-demo/dialog.c: Add simple new demo.
13421
13422 2001-02-19  Havoc Pennington  <hp@redhat.com>
13423
13424         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
13425         insert_child_anchor signal, bug #50245
13426
13427         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
13428         from create_child_anchor, so the anchor is passed in
13429
13430         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
13431         (_gtk_widget_segment_new): have the child anchor object passed in, 
13432         instead of creating it.
13433
13434         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
13435         to gtk_text_buffer_get_modified
13436
13437 2001-02-19  Havoc Pennington  <hp@redhat.com>
13438
13439         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
13440         changed GLib without fixing GTK
13441
13442         * gtk/gtkrange.h: Rename all the stupid implementation detail 
13443         functions to have an underscore in front. Most of them should 
13444         probably just go away, but for starters don't export them.
13445         Bug #50482
13446
13447 2001-02-19  Havoc Pennington  <hp@redhat.com>
13448
13449         * gdk/gdkcolor.h: test was backward, so deprecated functions were
13450         excluded by default
13451
13452         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
13453         clean up the old code a bit
13454
13455         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
13456         inconsistent state
13457
13458         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
13459         draw inconsistent state
13460
13461         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
13462         (create_menu): add inconsistent test
13463
13464         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
13465         new function
13466         (gtk_check_menu_item_get_inconsistent): new function
13467         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
13468         state (using etched in for now)
13469
13470         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
13471         draw inconsistent state
13472
13473         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
13474         function, used when the user has selected a range of stuff in
13475         different states
13476         (gtk_toggle_button_get_inconsistent): accessor for that
13477         (gtk_toggle_button_paint): draw inconsistent state (etched in?
13478         don't know what else to do)
13479
13480 2001-02-19  Hans Breuer <hans@breuer.org>
13481
13482         * gtk/gtk.def : updated exported symbols
13483
13484         * gtk/makefile.msc.in : updated
13485
13486         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
13487         a colormap, when invoked from testgtk::entry. I'm not sure where
13488         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
13489         avoids immediate crashing ...
13490
13491         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
13492         any objections ?
13493
13494         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
13495         0 parameter. At least msvc doesn't like macros with var args. 
13496         I simply removed the extra 0, was it a feature or a typo ?
13497
13498         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
13499         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
13500         because the value assignment to the internal struct wasn't working.
13501         I'm not absolutely sure. The problem could have been resolved by
13502         changing the "func" declartion in the struct, but was the pointer
13503         to the function pointer intended ?
13504
13505         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
13506
13507         * gdk/gdk.def : updated exported symbols
13508
13509         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
13510         only use SetDIBitsToDevice if there is a palette at the drawable
13511         and the image is GDK_VISUAL_PSEUDO_COLOR
13512
13513         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
13514
13515         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
13516
13517         * gdk/*/makefile.msc : updated
13518
13519 2001-02-19  Havoc Pennington  <hp@redhat.com>
13520
13521         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
13522         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
13523
13524         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
13525         (gdk_key_repeat_restore): nuke
13526
13527         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
13528         (gdk_init_check): no atexit func
13529
13530         * gdk/gdkrgb.h: mark some stuff deprecated
13531
13532         * gdk/gdkcolor.h: mark some stuff deprecated
13533         
13534         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
13535
13536         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
13537
13538 2001-02-16  Havoc Pennington  <hp@redhat.com>
13539
13540         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
13541         scroll steps.
13542
13543         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
13544         steps, and add Ctrl-arrow shortcuts for paging visually as with
13545         HScale, since Page Up and Page Down move logically.
13546
13547         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
13548         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
13549         
13550         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
13551         steps
13552         (gtk_range_scroll): handle the visual steps
13553
13554         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
13555         scroll steps
13556
13557         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
13558         steps, not the logical ones.
13559
13560         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
13561         (scroll_vertical): handle up/down steps
13562
13563 2001-02-19 Alexander Larsson  <alexl@redhat.com>
13564
13565         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
13566         Copy data and free data with free().
13567
13568         * gdk-pixbuf/gdk-pixbuf.c:
13569         * gdk-pixbuf/io-jpeg.c:
13570         * gdk-pixbuf/io-png.c:
13571         Use g_try_malloc/g_free instead malloc/free.
13572         
13573         * gdk-pixbuf/test-gdk-pixbuf.c:
13574         Must... initialize... gobject...
13575         
13576         * gdk-pixbuf/pixops/timescale.c:
13577         * gtk/gtkcalendar.c:
13578         Use g_malloc instead of malloc.
13579         
13580 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
13581
13582         * gtk/testgtkrc:
13583         Comment out property assignments, these don't work yet.
13584
13585 2001-02-17  Havoc Pennington  <hp@pobox.com>
13586
13587         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
13588         bit.
13589
13590 2001-02-17  Havoc Pennington  <hp@pobox.com>
13591
13592         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
13593         shadowed variables that had broken size request in some cases,
13594         leading to bogus tooltips (#50996)
13595
13596 2001-02-06  Jon K Hellan  <hellan@acm.org>
13597
13598         Implement fast browsing of tooltips, bug #50619
13599         
13600         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
13601         and last_popdown
13602         
13603         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
13604         use_sticky_delay and last_popdown.
13605         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
13606         time of popdown.
13607         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
13608         is NULL.
13609         (gtk_tooltips_recently_shown): New static function.  Return true
13610         if < sticky_delay has elapsed since last popdown.
13611         (gtk_tooltips_event_handler): Display window after sticky_delay
13612         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
13613         since last popdown.
13614         
13615 2001-02-17  Havoc Pennington  <hp@pobox.com>
13616
13617         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
13618         instead of (). #6394
13619
13620         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
13621         G_CONST_RETURN, make it return by reference, #50473
13622         
13623 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
13624
13625         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
13626         generated ENTER_NOTIFY event with 0, otherwise not explicitely
13627         setup fields contain garbage (e.g. subwindow, breaking
13628         gdk_drawable_ref() upon event copy).
13629         (gtk_menu_stop_navigating_submenu_cb): same here.
13630
13631         * gtk/gtklist.c (gtk_list_vertical_timeout): 
13632         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
13633         * gtk/gtkclist.c (vertical_timeout): 
13634         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
13635         default-zero-intialization for unions to memset(,0,), as unions are
13636         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
13637         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
13638
13639         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
13640         g_closure_sink() warning.
13641
13642         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
13643         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
13644         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
13645         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
13646         
13647 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
13648
13649         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
13650         gtk_*_store_get, and moved to GtkTreeModel.
13651
13652         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
13653
13654         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
13655
13656         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
13657
13658         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
13659         set the func.
13660
13661         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13662         freeze/thaw notify between setting all the properties for a cell.
13663
13664         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
13665
13666 2001-02-15  Havoc Pennington  <hp@redhat.com>
13667
13668         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
13669         the X coordinates so they're with respect to the line, rather than 
13670         with respect to the layout.
13671
13672         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
13673         Mallabone
13674
13675         * gtk/testgtk.c (create_range_controls): add vscale tests, 
13676         and inverted test
13677
13678         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
13679         #50806
13680
13681         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
13682
13683         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
13684         gtk_text_iter_is_end
13685
13686         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
13687         rename gtk_text_buffer_get_end_iter
13688
13689         * gtk/testgtk.c (create_labels): Add test for selectable
13690
13691         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
13692         the selection stuff. This code is kind of broken since it doesn't 
13693         use the theme engine.
13694
13695         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
13696         fix infinite loop and y offset problem
13697         (gdk_draw_layout_line_with_colors): fix foreground color handling
13698
13699         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
13700         that makes the label selectable.
13701         
13702         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
13703         layout when the style is set, since fonts etc. could have changed.      
13704
13705 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
13706
13707         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
13708
13709         * gtk/gtktreemodelsimple.[ch]: removed.
13710
13711 2001-02-16  Alexander Larsson  <alexl@redhat.com>
13712
13713         * gtk/gtktreemodelmapping.[ch]:
13714         New files. Implement GtkTreeModelMapping.
13715         
13716         * gtk/Makefile.am:
13717         Add gtktreemodelmapping.[ch].
13718         
13719         * gtk/gtk.h:
13720         Add gtktreemodelmapping.h
13721
13722         * gtk/treestoretest.c:
13723         Test the GtkTreeModelMapping
13724
13725 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
13726
13727         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
13728         have a demo, we might as well pass in real values.  Thanks to
13729         clahey for pointing this out.
13730
13731 2001-02-14  Havoc Pennington  <hp@pobox.com>
13732
13733         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
13734         "static" to a private function
13735         (gtk_image_menu_item_class_init): remove destroy handler,
13736         add "image" object property
13737
13738 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
13739
13740         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
13741         Add a shortcut if the window and the current clip_region doesn't
13742         overlap. This is needed when there are a lot of windows in a
13743         window. The layout test in testgtk is a good test.
13744
13745         * gdk/linux-fb/gdkwindow-fb.c:
13746         Whitespace fix.
13747
13748 2001-02-13  Sven Neumann  <sven@convergence.de>
13749
13750         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
13751
13752 2001-02-13  Alexander Larsson  <alexl@redhat.com>
13753
13754         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
13755         Don't reference last_cursor if it is null. Fixes crash when rotating
13756         the screen before having moved the mouse.
13757
13758         * gdk/linux-fb/gdkcc-fb.c: Zapp!
13759
13760         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
13761
13762         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
13763         when using 90 or 270 degrees rotation.
13764
13765 2001-02-12  Havoc Pennington  <hp@pobox.com>
13766
13767         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
13768         it always set the foreground, even if we were only using
13769         a stipple.
13770         (gdk_draw_layout_line_with_colors): new function, allow
13771         override colors
13772         (gdk_draw_layout_with_colors): new function, allow override
13773         colors
13774         (gdk_pango_layout_line_get_clip_region): function to get the clip
13775         region for a logical text range
13776         (gdk_pango_layout_get_clip_region): get the clip region for a
13777         logical text range
13778
13779         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
13780         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
13781         the right number of arguments.
13782
13783         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
13784         enhance the function to check that node data corresponds to a 
13785         view still belonging to the tree.
13786
13787         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
13788         GtkTreePath
13789         (gtk_tree_view_inserted): ditto
13790         (gtk_tree_view_child_toggled): ditto
13791
13792         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
13793         simplify this code.
13794
13795         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
13796         a PangoAttrList
13797
13798         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
13799
13800         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
13801
13802         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
13803         size in the size request 
13804         (gtk_menu_bar_size_allocate): consider toggle size here
13805
13806         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
13807         that displays a widget in the toggle slot
13808
13809         * gtk/testgtk.c: test GtkImageMenuItem
13810
13811         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
13812         
13813         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
13814         request and allocation
13815
13816         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
13817
13818         * gtk/gtkcheckmenuitem.c
13819         (gtk_check_menu_item_toggle_size_request): ditto
13820         
13821 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
13822
13823         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
13824         reference.
13825
13826         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
13827         and refuse to initialize GTK+ if they fail.
13828
13829 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
13830
13831         * configure.in: Add check for gtk-doc version.
13832
13833 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
13834
13835         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
13836         where the xpad/ypad was only being used on one side!
13837
13838 2001-02-11  Tor Lillqvist  <tml@iki.fi>
13839
13840         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
13841         function, copied from X11 version.
13842
13843         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
13844         DestroyCursor failures. The reason for the problem (despite the
13845         inconsistent messages from GetLastError()) was that
13846         DestroyCursor() cannot be called while a cursor is set in a
13847         window. Set the new cursor first and then destroy the old one.
13848         Thanks to jpe@archaeopteryx.com.
13849
13850         * gdk/win32/gdkcc-win32.c: Remove.
13851
13852         * gdk/win32/Makefile.am: Remove from here, too.
13853         
13854         * gdk/gdk.def
13855         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
13856
13857         * gtk/gtk.def
13858         * gtk/makefile.mingw.in: Updates.
13859
13860 2001-02-08  Havoc Pennington  <hp@redhat.com>
13861
13862         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
13863         add a widget to a bin that already has a child.
13864
13865         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
13866
13867         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
13868         
13869         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
13870
13871         * gdk/gdk.h: remove gdkcc.h
13872
13873         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
13874
13875         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
13876         GdkPixbuf, since the previous implementation was GdkColorContext
13877         dependent.
13878
13879         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
13880         
13881 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
13882
13883         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
13884         a sane value!
13885
13886 2001-02-08  Havoc Pennington  <hp@redhat.com>
13887
13888         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
13889         lighten them.
13890
13891 2001-02-08  Havoc Pennington  <hp@redhat.com>
13892
13893         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
13894         validation idle
13895
13896         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
13897         cell renderer
13898
13899         * demos/pixbuf-demo.c (timeout): remove deprecated
13900         gtk_widget_draw
13901
13902         * demos/testpixbuf-save.c (main): remove deprecated
13903         gtk_drawing_area_size
13904
13905         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
13906         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
13907         at the start of the allocation.
13908         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
13909         unsetup or NULL model.
13910
13911         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
13912         even/odd/sorted cells in the tree view.
13913
13914         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
13915         bugfixes
13916
13917         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
13918         backgrounds with draw_flat_box using different detail for even/odd
13919         rows.
13920
13921         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
13922         row, so we can draw the alternating colors thing
13923
13924         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
13925         property from a synonym property, notify for the synonym.
13926         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
13927         (gtk_text_tag_get_property): Always return the font, even if
13928         all its fields aren't set
13929
13930         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
13931         store the attr list; it leaves us with no way to change attributes
13932         in _render according to the render flags, and no way to implement
13933         get_property. Instead store all the specific text attributes. 
13934         Separate whether an attribute is enabled from its value. Sync all
13935         properties with GtkTextTag, make them all consistent, etc.
13936
13937         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
13938         renderers can highlight the sort row/column     
13939
13940         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
13941         accessor functions to get values; this has the side effect of
13942         showing up which accessor functions were missing. Added those.
13943
13944         * gtk/gtktreeviewcolumn.h: Replace set_justification with
13945         set_alignment, to be consistent with GtkLabel, GtkMisc
13946
13947         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
13948         arrow.
13949
13950         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
13951
13952         * gtk/gtktreesortable.h: updates in here
13953
13954 2001-02-07  Sven Neumann  <sven@convergence.de>
13955
13956         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
13957         pango dimensions after painting the background. We used to draw
13958         gigantic flat boxes here.
13959
13960 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
13961
13962         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
13963         error introduced with earlier commit) (pointed out by
13964         Ollie Lho)
13965
13966 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
13967
13968         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
13969         which are no longer necessary.
13970
13971 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
13972
13973         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
13974
13975 2001-02-04  Tor Lillqvist  <tml@iki.fi>
13976
13977         * gdk/gdk.def
13978         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
13979         Provide dummy implementations.
13980
13981 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
13982
13983         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
13984
13985         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
13986         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
13987         deprecated this function.
13988
13989         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
13990         argument.
13991
13992 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
13993
13994         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
13995
13996 2001-02-03  Havoc Pennington  <hp@pobox.com>
13997
13998         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
13999         Mikael Hermansson with patch from Mikael (if there was a toggle
14000         start one after the first character in the range, this function
14001         was broken). Bug #50380
14002
14003 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
14004
14005         * configure.in: Remove confusing comment about X11.
14006
14007 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
14008
14009         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
14010         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
14011         
14012 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
14013
14014         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
14015         it breaks things on BSD. If you want to compile GTK+ with
14016         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
14017         when configuring, since GTK+ simply can't be "pure ANSI" 
14018         in the header files it uses. (#8170, Greg Hudson)
14019
14020 2001-02-02  Havoc Pennington  <hp@redhat.com>
14021
14022         * gtk/gtkwindow.c: docs
14023
14024         * gtk/gtkwidget.c: docs
14025         (gtk_widget_set_colormap): add a reference to the colormap
14026         (gtk_widget_get_default_colormap): add a reference to the colormap
14027
14028         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
14029
14030         * gtk/gtktextiter.c: docs
14031
14032         * gtk/gtkmain.c (gtk_propagate_event): docs
14033
14034         * gtk/gtkpaned.c (gtk_paned_get_position): docs
14035         (gtk_paned_set_position): docs
14036
14037         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
14038         sort interface, no implementation yet.
14039
14040         * demos/testpixbuf.c (new_testrgb_window): replace
14041         gtk_drawing_area_size() with gtk_widget_set_usize()
14042
14043         * demos/testpixbuf-drawable.c (main): ditto
14044         
14045         * gtk/testgtk.c: remove use of GtkStatusbarMsg
14046
14047         * gtk/gtktextbuffer.c: docs
14048
14049         * gtk/gtkstock.c: docs
14050
14051         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
14052
14053         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
14054
14055         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
14056         
14057         * gtk/gtkimage.c: add some docs in here
14058         (gtk_image_size_request): change name of
14059         gtk_widget_render_stock_icon
14060         (gtk_image_get_icon_set): don't dup returned string
14061         (gtk_image_get_icon_set): don't dup returned string
14062
14063         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
14064         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
14065         and gtkiconfactory.h functions
14066
14067         * gtk/gtkiconfactory.c: add some docs in here
14068
14069         * gtk/gtkmain.c (gtk_get_default_language): document
14070         (gtk_get_current_event): document
14071         (gtk_get_current_event_state): document
14072         (gtk_get_event_widget): document
14073
14074         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
14075
14076         * gtk/gtkcontainer.c: Add some documentation
14077         (gtk_container_add): give a more explanatory warning on adding an
14078         already-parented widget, this is kind of a FAQ and also a common
14079         typo that's easier to debug with a nice warning 
14080
14081         * gtk/gtkcellrenderertoggle.c
14082         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
14083         adding this, it's useless
14084         (gtk_cell_renderer_toggle_set_active): remove
14085         (gtk_cell_renderer_toggle_get_radio): add
14086
14087         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
14088         the NULL cell renderer, that doesn't make any sense to me. 
14089
14090         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
14091         demo code should never use deprecated features.
14092
14093         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
14094         code should never use deprecated features.
14095
14096         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
14097         gtk_widget_queue_clear_area deprecated
14098
14099         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
14100         deprecated
14101
14102         * gtk/gtklabel.h: mark gtk_label_get() deprecated
14103
14104         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
14105         a GdkImage deprecated, replaced by new consistently-named
14106         functions       
14107
14108         * gtk/gtkmain.h: Mark gtk_exit() deprecated
14109
14110         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
14111
14112         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
14113         deprecated
14114
14115         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
14116         so it won't appear in docs and confuse people.
14117
14118         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
14119
14120         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
14121         macros deprecated. (can't mark the type itself deprecated, since
14122         GtkProgressBar is not deprecated and we need the type decl to use
14123         GtkProgressBar)
14124
14125         * gtk/gtkpixmap.h: Mark deprecated
14126
14127         * gtk/gtkoldeditable.h: Mark deprecated
14128
14129         * gtk/gtklist.h: Mark deprecated
14130
14131         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
14132         for anything anymore.
14133
14134         * gtk/gtkctree.h: Mark deprecated
14135
14136         * gtk/gtkclist.h: Mark deprecated
14137
14138         * gtk/gtkpreview.h: Mark deprecated
14139
14140         * gtk/gtkpacker.h: Mark deprecated
14141
14142         * gtk/gtktipsquery.h: Mark deprecated
14143
14144         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
14145
14146         * gtk/gtkvruler.h: Add comment that it will move out of GTK
14147
14148         * gtk/gtkhruler.h: Add comment that it will move out of GTK
14149
14150         * gtk/gtkruler.h: Add comment that it will move out of GTK
14151
14152         * gtk/gtkgamma.h: Add comment that it will move out of GTK
14153
14154         * gtk/gtkcurve.h: Add comment that it will move out of GTK
14155
14156 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
14157
14158         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
14159         gdk_colormap_sync private since it was never exported
14160         in a header file.
14161
14162         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
14163         colormap->colors[] for StaticGray, StaticColor colormaps.
14164
14165         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
14166         was being used as if it was image->bits_per_pixel.
14167
14168         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
14169         for the image in the GdkImage structure since it isn't
14170         reconstructable, and we need it to handle packed types
14171
14172         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
14173         the assumption that on Win32 image->bits_per_pixel == image->depth,
14174         always.
14175
14176         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
14177
14178         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
14179         warning message if no converter can be found. 
14180
14181 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
14182
14183         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
14184         chars to isupper() / tolower(). (#567)
14185
14186         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
14187         to clear up 64-bit warnings. (#567)
14188
14189 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
14190
14191         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
14192         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
14193
14194         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
14195         since some people set $(libdir) separately. (#1290, David Kaelbling)
14196
14197 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
14198
14199         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
14200         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
14201         MAXPATHLEN, but the code here depends on a fixed value.)
14202         (#4524)
14203
14204 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
14205
14206         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
14207         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
14208
14209 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
14210
14211         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
14212         viewable there is no way that moving the node will cause the 
14213         focus row to become not viewable, so omit check on the visibility
14214         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
14215
14216 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
14217
14218         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
14219         selection before inserting new text.
14220
14221 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
14222
14223         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
14224         Make the sensitivity of the reparented child track that of
14225         the original parent menu item. (#34218, David Hodson)
14226
14227         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
14228         the case where the current item is destroyed properly.
14229
14230         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
14231         some edge cases with child-less menuitems.
14232         
14233 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
14234
14235         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
14236         key pop down window. (#12074, Jon K Hellan)
14237
14238 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
14239
14240         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
14241         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
14242         The solution here isn't perfect - you get an extraneous
14243         emission of "toggle", which could conceivably confuse an app,
14244         but better than the current situation. LXR search seems to
14245         indicate that no apps in GNOME CVS connect to "toggle".
14246
14247 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
14248
14249         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
14250         gtk_public_h_sources to directly here to avoid warning when
14251         building srcdir != builddir. (#9656)
14252
14253 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
14254
14255         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
14256         handlers in gtkrange.c return the proper values (TRUE == handled)
14257         (#10316).
14258
14259         This is just the tip of the iceberg, but gtkrange.c is the
14260         most common place where the propagation is problematical,
14261         and also a place where it is almost certainly safe to change
14262         this in the stable branch.
14263
14264         (You don't want right click popups on a range control or anything...)
14265
14266 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
14267
14268         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
14269         area on focus out, even if a background pixmap isn't set.
14270         (#13941)
14271         
14272 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
14273
14274         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
14275         to deal with setting the shape properly when scrolling arrows are
14276         turned on, but not visible because there is sufficient space.
14277         (#13432)
14278
14279 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
14280
14281         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
14282         items with submenus, destroy the item along with the submenu.
14283         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
14284         properly.
14285
14286         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
14287         later.
14288
14289 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
14290
14291         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
14292         the focus widget sometimes wasn't drawn with the default if there
14293         was no default widget.
14294
14295         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
14296         unreference pixmaps. 
14297
14298         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
14299         for some extra safety.
14300
14301 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
14302
14303         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
14304         the text of a cell to the old pointer value better, by
14305         copying the new text before freeing the old text. Some code
14306         cleanup. (#8079, Karl Nelson)
14307
14308 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
14309
14310         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
14311         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
14312
14313 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
14314
14315         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
14316         item from a menu, check to see if it matches 
14317         menu->old_active_menu_item, and if so, unref and clear
14318         old_active_menu_item (Patch from Pavel Cisler)
14319
14320         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
14321         menu_shell->active_menu_item, if it is the child being
14322         removed. (Patch based on that of Gene Ragan, #50337)
14323
14324 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
14325
14326         * gdk/linux-fb/gdkselection-fb.c: 
14327         * gdk/linux-fb/gdkcolor-fb.c: 
14328         * gdk/linux-fb/gdkdrawable-fb2.c: 
14329         * gdk/linux-fb/gdkfont-fb.c: 
14330         * gdk/linux-fb/gdkim-fb.c: 
14331         * gdk/linux-fb/gdkinput.c: 
14332         * gdk/linux-fb/gdkkeyboard-fb.c: 
14333         * gdk/linux-fb/gdkmain-fb.c: 
14334         * gdk/linux-fb/gdkrender-fb.c: 
14335         A bunch of whitespace cleanup.
14336         
14337 2001-01-30  Havoc Pennington  <hp@pobox.com>
14338
14339         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
14340         #ifdef GTK_ENABLE_BROKEN.
14341
14342         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
14343         GTK_ENABLE_BROKEN just before including the broken headers.
14344         
14345         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
14346         deprecated types registered.
14347
14348         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
14349         we have to test the broken stuff.
14350
14351         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
14352         
14353 2001-01-30  Havoc Pennington  <hp@redhat.com>
14354
14355         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
14356         here where prev pointer was set to the wrong thing
14357
14358         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
14359         (gtk_tree_path_is_descendant): new function
14360
14361         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
14362         cached length
14363         (gtk_list_store_get_iter): don't modify iter if we can't get the
14364         path.
14365
14366         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
14367         
14368         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
14369         GtkTreeDragDest
14370
14371         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
14372         was causing segfault
14373
14374         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
14375         pointer to NULL
14376
14377         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
14378
14379         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
14380         on returning FALSE
14381         (gtk_list_store_iter_children): ditto
14382         (gtk_list_store_iter_nth_child): ditto
14383         (gtk_list_store_iter_nth_child): ditto
14384         (gtk_list_store_iter_parent): ditto
14385
14386         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
14387         on iter->user_data != NULL instead of silently accepting it.
14388         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
14389         we are returning TRUE.
14390         (gtk_tree_store_iter_children): ditto
14391         (gtk_tree_store_iter_nth_child): ditto
14392         (gtk_tree_store_iter_parent): ditto
14393         (gtk_tree_store_insert): remove handling of parent->user_data ==
14394         NULL, replace with parent == NULL       
14395
14396         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
14397         and a comment explaining things
14398
14399         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
14400         interface support to GtkTreeStore.
14401
14402         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
14403         FALSE if no prev, fix
14404
14405         * gtk/gtktreeview.c (set_source_row): use a row reference
14406         (set_dest_row): use a row reference
14407
14408 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
14409
14410         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
14411         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
14412         (gtk_tree_selection_select_iter): The same as above.
14413
14414 2001-01-26  Havoc Pennington  <hp@redhat.com>
14415
14416         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
14417         which holds a handle to a specific row (particular set of values
14418         in the model, i.e. pointer-identity row).
14419
14420         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
14421         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
14422         Still need to use it for the src/dest row saved on the drag context.
14423
14424 2001-01-26  Havoc Pennington  <hp@redhat.com>
14425
14426         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
14427
14428         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
14429         not offset by TREE_VIEW_HEADER_HEIGHT
14430         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
14431         TREE_VIEW_HEADER_HEIGHT
14432
14433         * configure.in (included_loaders): for me, --with-included-loaders
14434         generates the error "the specified loader yes does not exist",
14435         i.e. the arg defaults to "yes", so change test for value ""
14436         to test for value "yes", and include all loaders in that case.
14437
14438         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
14439
14440         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
14441         handle TREE_VIEW_VERTICAL_SEPARATOR
14442         (gtk_tree_view_bin_expose): fix to consider the row offset as
14443         pointing halfway into vertical separator.       
14444         (gtk_tree_view_draw_node_focus_rect): ditto
14445
14446         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
14447         --gtk-debug=updates, which causes gdk_window_set_debug_updates
14448         (TRUE) to be called.
14449
14450         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
14451         debug mode where the invalid region is colored in on invalidate,
14452         so you can see the flicker and know whether your redraw code is 
14453         doing a good job.
14454
14455         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
14456         tree window coordinates (clip rect is in tree window coords)
14457
14458         * gtk/Makefile.am: add gtktreednd.[hc]
14459
14460         * gtk/gtkliststore.c: implement gtktreednd interfaces.
14461
14462         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
14463         drag-and-drop data operations on a model (so we can set up tree
14464         drag-and-drop automatically)
14465
14466         * gtk/testgtk.c: Add a window to change sensitivity in the
14467         GtkLabel test; add a way to change the entry frame in GtkEntry
14468         test
14469
14470         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
14471         (gtk_entry_get_has_frame): new functions to remove the frame
14472         around an entry
14473         (gtk_entry_size_request): shrink requisition if no frame
14474         (gtk_entry_draw_focus): don't draw frame if no frame
14475
14476         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
14477         checks inside a cell renderer
14478         (gtk_default_draw_option): ditto for options
14479
14480         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
14481         children from the alignment, not the button
14482         (gtk_tree_view_column_init): ref/sink the column, to emulate
14483         GObject refcounting.
14484
14485         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
14486         
14487         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
14488         Use theme functions to draw the toggles 
14489
14490         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
14491
14492         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
14493         GdkPangoAttrEmbossed to use in rendering insensitive text
14494
14495         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
14496
14497         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
14498         using new GDK features
14499         
14500 2001-01-24  Alexander Larsson  <alexl@redhat.com>
14501
14502         * gtk/gtkimage.c:
14503         Splitted gtk_image_clear into gtk_image_clear() and
14504         gtk_image_reset(). Call gtk_image_clear() in ::destroy
14505         to avoid leaks.
14506
14507         * gtk/gtklabel.c (set_markup):
14508         Don't leak text.
14509
14510         * gtk/gtktextlayout.c:
14511         Always free display->shaped_objects.
14512
14513         * gtk/testgtk.c (create_clist):
14514         Don't leak custom style.
14515
14516 2001-01-23  Alexander Larsson  <alexl@redhat.com>
14517
14518         * gtk/gtkcolorsel.c (grab_color_at_mouse):
14519         Don't leak image. Simplify using gdk_colormap_query_color().
14520         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
14521
14522         * linux-fb/gdkcolor-fb.c:
14523         Implemented gdk_colormap_query_color.
14524
14525 2001-01-23  Alexander Larsson  <alexl@redhat.com>
14526
14527         * linux-fb/gdkcursor-fb.c:
14528         Don't leak built-in cursors.
14529
14530         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
14531         Don't leak tmp_points.
14532
14533         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
14534         Don't modify desc. Don't leak font if the PangoFont
14535         isn't found.
14536         
14537         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
14538         Free dash_list.
14539
14540         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
14541         Don't leak string.
14542         
14543 2001-01-20  Havoc Pennington  <hp@pobox.com>
14544
14545         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
14546         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
14547         me, matches Pango
14548
14549 2001-01-22  Havoc Pennington  <hp@redhat.com>
14550
14551         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
14552
14553         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
14554
14555         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
14556         Remove, move back to gdk-pixbuf
14557
14558         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
14559         to all the word functions
14560
14561         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
14562         before doing anything on NULL layout or if we don't have the focus
14563
14564         * gtk/testtext.c (fill_example_buffer): "justification"
14565
14566         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
14567         to be called "justification" not "justify"
14568
14569         * demos/gtk-demo/textview.c (create_tags): "justification"
14570         
14571         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
14572
14573 2001-01-22  Alexander Larsson  <alexl@redhat.com>
14574
14575         * gdk/gdkwindow.c (gdk_window_invalidate_region):
14576         Don't leak visible_region. Use visible_region instead of region.
14577         
14578         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
14579         Don't do extra gdk_drawable_ref(). This is not X.
14580         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
14581         gdk_fb_focused_window is ref:ed.
14582         (gdk_fb_window_send_crossing_events): Watch out for destroyed
14583         windows.
14584
14585 2001-01-22  Alexander Larsson  <alexl@redhat.com>
14586
14587         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
14588         Don't leak the PangoFontDescriptor.
14589
14590 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
14591
14592         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
14593         when not realized.
14594         (gtk_tree_view_scroll_to_cell): Make work when not realized.
14595         (gtk_tree_view_realize): add scroll_to support
14596         (gtk_tree_view_finalize): add a finalize method.  Populate.
14597         (gtk_tree_view_insert_column): ref and sink the column.
14598         (gtk_tree_view_append_column): ref and sink the column.
14599         (gtk_tree_view_queue_draw_node): New function to handle redrawing
14600         individual nodes.  Should make the code much more efficient, if
14601         actually used.
14602
14603 2001-01-19  Havoc Pennington  <hp@redhat.com>
14604
14605         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
14606         byte_offset variable was being used to mean both "offset into
14607         layout" and "offset into buffer line" which was no longer true
14608         with addition of preedit string; fix
14609
14610 2001-01-19  Havoc Pennington  <hp@redhat.com>
14611
14612         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
14613
14614         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
14615         function
14616
14617         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
14618         implement
14619
14620         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
14621         scroll_to_cell, matches TextView scroll functions better
14622         (gtk_tree_view_tree_to_widget_coords): new function
14623         (gtk_tree_view_widget_to_tree_coords): new function
14624         (gtk_tree_view_get_visible_rect): new function
14625         (gtk_tree_view_get_path_at_pos): accept negative coordinates
14626         (gtk_tree_view_draw_node_focus_rect): new function moved from
14627         draw_focus, also, use width of bin_window as width of the focus
14628         rect
14629         (gtk_tree_view_expand_row): fix bug where it didn't recognize
14630         already-expanded rows
14631         (gtk_tree_view_get_cell_rect): new function
14632         (gtk_tree_view_get_path_at_pos): return the click position
14633         relative to the passed-in cell
14634         (gtk_tree_view_set_expander_column): new function
14635
14636         * configure.in: remove gtk-config-2.0 chmod
14637
14638         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
14639         and properly handle drags with targets we don't understand
14640         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
14641         scrolling anyway
14642         (gtk_text_view_drag_drop): stop scrolling here though, and set the
14643         mark invisible
14644
14645         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
14646         function
14647         (gtk_drag_dest_get_target_list): new function
14648         (gtk_drag_dest_set_target_list): new function
14649         
14650         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
14651
14652         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
14653         related to drag-and-drop
14654
14655 2001-01-19  Alexander Larsson  <alexl@redhat.com>
14656
14657         * gdk/linux-fb/gdkprivate-fb.h:
14658         Define EMULATE_GDKFONT.
14659         Add extra pango_font stuff to GfkFontPrivate.
14660         
14661         * gdk/linux-fb/gdkdrawable-fb2.c:
14662         * gdk/linux-fb/gdkfont-fb.c:
14663         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
14664         emulation using PangoFont.
14665
14666 2001-01-17  Havoc Pennington  <hp@pobox.com>
14667
14668         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
14669         all the non-deprecated set_foo functions. Added missing object
14670         properties, and added g_object_notify() to setters. 
14671         Wrote docs.
14672         
14673 2001-01-18  Tor Lillqvist  <tml@iki.fi>
14674
14675         * gtk/gtkmain.c
14676         * gtk/gtkrc.c: (Win32) Use the new
14677         g_win32_get_package_installation_(sub)directory() functions.
14678
14679         * config.h.win32.in: New file.
14680         
14681         * config.h.win32: Removed.
14682
14683         * configure.in: Output config.h.win32.
14684
14685         * Makefile.am: Add it to EXTRA_DIST.
14686
14687         * gtk/gtk.def: Update.
14688
14689 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
14690
14691         * gtk/gtklabel.c (gtk_label_size_request): Set the
14692         attributes onto the PangoLayout even if they are newly
14693         created from label->pattern.
14694
14695 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
14696
14697         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
14698
14699         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
14700         structures in functions. Fixes bug where gtk_dataset_*
14701         was accidentally still being used in one place, causing
14702         every dest side event to be treated independently.
14703
14704         * gtk/gtkdnd.c: Remove last vestages of handling
14705         ::draw (fixes warning)
14706         
14707         * gtk/gtkentry.[ch]: Add drag and drop support.
14708
14709         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
14710         new function gtk_check_drag_threshhold() for checking
14711         to check if (dx,dy) has exceeded the threshhold for starting
14712         a drag and use it everywhere.
14713
14714 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
14715
14716         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
14717         add -I{includedir}/gtk-2.0.
14718
14719         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
14720         gdk/gdk-pixbuf.h: Doc fixups.
14721         
14722         * gtk/gtkobject.h: Remove trailing , from enum
14723
14724 2001-01-17 Alexander Larsson <alexl@redhat.com> 
14725
14726         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
14727         Doh! Mixed up x and y.
14728
14729         * gdk/linux-fb/gdkglobals-fb.c:
14730         Removed gdk_fb_pointer_grab_window_events,
14731         added _gdk_fb_pointer_grab_owner_events and
14732         _gdk_fb_keyboard_grab_owner_events.
14733
14734         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
14735         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
14736         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
14737         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
14738         Send crossing events after ungrab finished.
14739         (gdk_keyboard_grab): Set ..._owner_events
14740         (type_masks): Move out of function.
14741         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
14742         gdk_fb_keyboard_event_window): New functions, return the
14743         window an event should be targeted at. Handles grabs and
14744         event propagation. Can return NULL.
14745         (gdk_event_make): Remove event_mask checking. Now always
14746         returns an event.
14747                 
14748         * gdk/linux-fb/gdkkeyboard-fb.c:
14749         * gdk/linux-fb/gdkproperty-fb.c:
14750         * gdk/linux-fb/gdkselection-fb.c:
14751         Use new event_window/gdk_event_make() behaviour.
14752         
14753         * gdk/linux-fb/gdkmouse-fb.c:
14754         Use new event_window/gdk_event_make() behaviour.
14755         Only send motion events if in the same window.
14756         If grabbed, use cursor from window if sibling of grabbed
14757         window, and cursor from grabbed window otherwise.
14758
14759         * gdk/linux-fb/gdkprivate-fb.h:
14760         Update gdk_fb_window_send_crossing_events, gdk_event_make
14761         and grab varaible declarations. Add gdk_fb_*_event_window().
14762
14763         * gdk/linux-fb/gdkwindow-fb.c:
14764         Use new event_window/gdk_event_make() behaviour.
14765         Keep correct track of focus window.
14766         (gdk_window_set_events): Set all specific button motion masks
14767         if GDK_BUTTON_MOTION_MASK set.
14768
14769         * gtk/gtkdnd.c (gtk_drag_update):
14770         Free info->last_event if gdk_drag_motion returned FALSE.
14771
14772 2001-01-16  Tor Lillqvist  <tml@iki.fi>
14773
14774         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
14775         Eliminate redraws when input-only windows are shown or
14776         hidden. Thanks to jpe@archaeopteryx.com.
14777
14778 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
14779
14780         * docs/faq/gtk-faq.sgml: FAQ update:
14781           - Update to bugzilla
14782           - Add GTK+ and security/SUID/SGID
14783           - Add DnD question
14784
14785 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
14786
14787         * gdk/linux-fb/gdkdnd-fb.c:
14788         Some cleanups.
14789         
14790 2001-01-15  Havoc Pennington  <hp@pobox.com>
14791
14792         * tests/testtreeview.c: add test stuff for CellRendererToggle
14793
14794         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
14795         accessor
14796
14797         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
14798         only toggle on button press (would do release like GtkButton, but
14799         we'd need implicit grab code for treeview cells)
14800
14801 2001-01-16  Tor Lillqvist  <tml@iki.fi>
14802
14803         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
14804
14805         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
14806         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
14807
14808         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
14809         to g_{locale,filename}_{to,from}_utf8 to match current API.
14810
14811         * gtk/makefile.msc.in (gtk_OBJECTS)
14812         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
14813
14814         * gtk/gtk.def: Update.
14815
14816 2001-01-15  Tor Lillqvist  <tml@iki.fi>
14817
14818         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
14819         implementaion that more closely mimics the events that an X server
14820         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
14821         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
14822         with nested preview widgets, for instance, more responsive when
14823         you move the mouse quickly into them.
14824         (find_window_for_pointer_event): Make it actually compile.
14825         (gdk_event_translate): Set send_event to the value of
14826         InSendMessage (). This doesn't really mean the same as X11's
14827         send_event flag, but is close enough, says jpe@archaeopteryx.com
14828
14829 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14830
14831         * gdk/linux-fb/gdkdnd-fb.c:
14832         Implemented drag and drop.
14833         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
14834         when it tries to free and then copy the same event (info->last_event).
14835         I am not sure about why this happens, but will continue looking.
14836
14837 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14838
14839         * gdk/linux-fb/gdkwindow-fb.c:
14840         Use gdk_window_invalidate_rect instead of
14841         gdk_window_invalidate_rect_clear to minimise flashing.
14842         When hiding windows you need to clear the root window though.
14843
14844 2001-01-15  Alexander Larsson  <alexl@redhat.com>
14845
14846         * gdk/linux-fb/gdkdrawable-fb2.c:
14847         For optization, add an full_shapes argument to gdk_fb_clip_region.
14848         If this is false, only the cliprects of the shapes are used.
14849
14850         * gdk/linux-fb/gdkprivate-fb.h:
14851         Export gdk_fb_window_peek_shape.
14852         Add full_shapes to gdk_fb_clip_region.
14853
14854         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
14855         When moving a window, don't clear everything under the it, just the
14856         root window. Makes stuff faster and flash less.
14857         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
14858         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
14859         offset of the shape.
14860         
14861
14862 2001-01-12  Havoc Pennington  <hp@redhat.com>
14863
14864         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
14865         current invalid region, fixes redraw bug while scrolling the 
14866         text widget
14867
14868         * gtk/gtktextview.c, gtk/gtktextview.h:
14869         Rearrange the scrolling/validation/etc. code in a major way, 
14870         so it seems to make sense to me. Probably isn't genuinely that
14871         much better, but...
14872
14873         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
14874         notifies
14875
14876         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
14877
14878 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
14879
14880         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
14881         Hide mouse pointer while rotation. Show it afterwards.
14882
14883 2001-01-12  Alexander Larsson  <alexl@redhat.com>
14884
14885         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
14886         windows in consideration when generating clip region.
14887
14888         * gdk/linux-fb/gdkfb.h:
14889         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
14890
14891         * gdk/linux-fb/gdkprivate-fb.h:
14892         Add shape to GdkWindowFBDatat.
14893         exported gdk_fb_window_get_abs_shape().
14894         removed gdk_fb_draw_lines declaration.
14895
14896         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
14897         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
14898         send focus changes when there is a grabbed window.
14899         (gdk_window_get_pointer): Handle shaped windows.
14900         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
14901         (gdk_fb_window_peek_shape): Returns the shape for a window,
14902         handles GDK_FB_USE_CHILD_SHAPE.
14903         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
14904         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
14905         (gdk_window_shape_combine_mask): Implement.
14906
14907         * gtk/gtkwindow-decorate.c:
14908         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
14909         setting the shape of a window makes the window transparent.
14910
14911 2001-01-11  Havoc Pennington  <hp@redhat.com>
14912
14913         * gtk/gtktreemodelsimple.h: Oops, broke some macros
14914
14915 2001-01-10  Havoc Pennington  <hp@redhat.com>
14916
14917         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
14918         add this function, bug 40251
14919
14920         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
14921         of type macro   
14922
14923 2001-01-11  Alexander Larsson  <alexl@redhat.com>
14924
14925         * acconfig.h:
14926         Added ENABLE_SHADOW_FB
14927
14928         * configure.in:
14929         Added --disable-shadowfb
14930
14931         * gdk/linux-fb/gdkcursor-fb.c:
14932         Update shadowfb when updating cursor
14933
14934         * gdk/linux-fb/gdkdrawable-fb2.c:
14935         Added wrappers for shadowfb that calls  the normal drawable
14936         methods, but calls gdk_shadow_fb_update(bounding box) when
14937         GdkWindows are drawed to.
14938         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
14939         which also returns the bounding box.
14940
14941         * gdk/linux-fb/gdkfb.h:
14942         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
14943
14944         * gdk/linux-fb/gdkgeometry-fb.c:
14945         Update shadowfb when scrolling window.
14946
14947         * gdk/linux-fb/gdkglobals-fb.c:
14948         Add _gdk_fb_screen_angle.
14949         
14950         * gdk/linux-fb/gdkkeyboard-fb.c:
14951         Test code for screen rotation. Shift-F2 in the xlate driver
14952         rotates the screen.
14953
14954         * gdk/linux-fb/gdkmain-fb.c:
14955         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
14956
14957         * gdk/linux-fb/gdkmouse-fb.c:
14958         Use fb_width/height instead of modeinfo.xres/yres.
14959
14960         * gdk/linux-fb/gdkprivate-fb.h:
14961         Added fb_men, fb_width, fb_height & fb_stride. When using
14962         shadow fb these can differ from the framebuffer stuff.
14963         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
14964         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
14965         _gdk_fb_screen_angle. Removed CM, RP.
14966
14967         * gdk/linux-fb/gdkrender-fb.c:
14968         Added code for shadowfb handling and screen rotation using
14969         shadowfb.
14970
14971         * gdk/linux-fb/gdkwindow-fb.c:
14972         Use fb_mem, fb_stride, fb_width, fb_height.
14973         Added recompute_rowstride to reset the rowstride of all windows.
14974         Added gdk_fb_recompute_all() which recomputes rootwindow size,
14975         window abs positions and window rowstrides. Usefull when the
14976         rotation has changed.
14977
14978 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
14979
14980         * docs/faq/gtk-faq.sgml: update to make web site updating easier
14981
14982 2001-01-10  Havoc Pennington  <hp@redhat.com>
14983
14984         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
14985         where sibling == iter
14986         (gtk_tree_store_insert_after): handle sibling == iter
14987         (gtk_tree_store_prepend): remove stamp checks
14988         (gtk_tree_store_insert_before): ditto
14989         (gtk_tree_store_append): ditto
14990         (gtk_tree_store_get_path): ditto
14991         (gtk_tree_store_get_value): ditto
14992         (gtk_tree_store_iter_has_child): ditto
14993         (gtk_tree_store_iter_n_children): ditto
14994         (gtk_tree_store_iter_nth_child): ditto
14995         (gtk_tree_store_insert_after): ditto
14996         (gtk_tree_store_is_ancestor): ditto
14997         (gtk_tree_store_iter_depth): ditto
14998         (gtk_tree_store_insert_before): assert that sibling's parent is
14999         the same as the passed-in parent
15000         (gtk_tree_store_insert_after): assert that sibling's parent is
15001         the same as the passed-in parent
15002
15003         
15004         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
15005         function to get the first iterator in a model
15006         
15007         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
15008         conventionally the "root" in this sense is just NULL afaict.
15009
15010         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
15011         where sibling == iter
15012         (gtk_list_store_insert_after): handle case where sibling == iter
15013
15014         * tests/testtreeview.c (run_automated_tests): fairly lame basic
15015         automated tests for ListStore, TreeStore
15016
15017         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
15018         (gtk_list_store_insert): update tail pointer, and fix it to work
15019         (gtk_list_store_insert_before): update tail pointer, and fix it to work
15020         (gtk_list_store_append): use tail to be faster
15021         (gtk_list_store_prepend): fix it, update tail pointer
15022         (gtk_list_store_insert_after): fix it, update tail pointer
15023
15024         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
15025         the list
15026
15027 2001-01-09  Havoc Pennington  <hp@redhat.com>
15028
15029         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
15030         is NULL due to a pending resize
15031
15032         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
15033         column width to values less than 1
15034
15035         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
15036         width to be between min/max width, and still set the width 
15037         even if autosize is turned on, so the tree view can use this 
15038         function in order to autosize.
15039         (gtk_tree_view_column_init): set initial width to 1 not 0
15040
15041         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
15042         setter function to modify column width, so we get notification
15043         (gtk_tree_view_insert_iter_height): ditto
15044         (gtk_tree_view_calc_size): ditto
15045         (gtk_tree_view_check_dirty): ditto
15046
15047         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
15048         properties to change all the interesting attributes of the tree
15049         view column.
15050         (gtk_tree_view_column_set_header_clickable): rename set_clickable
15051         (gtk_tree_view_column_get_clickable): add
15052         (gtk_tree_view_column_set_cell_renderer): don't unset the current
15053         attributes; assume a cell renderer with equivalent object
15054         properties has been swapped in. Do g_object_notify().
15055         (gtk_tree_view_column_set_visible): g_object_notify
15056         (gtk_tree_view_column_get_sizing): rename from get_col_type
15057         (gtk_tree_view_column_set_sizing): g_object_notify
15058         (gtk_tree_view_column_set_width): add g_object_notify
15059         (gtk_tree_view_column_set_min_width): ditto
15060         (gtk_tree_view_column_set_max_width): ditto
15061         (gtk_tree_view_column_set_title): ditto
15062         (gtk_tree_view_column_set_clickable): ditto
15063         (gtk_tree_view_column_set_widget): ditto
15064         (gtk_tree_view_column_set_justification): ditto
15065
15066 2001-01-09  Havoc Pennington  <hp@redhat.com>
15067
15068         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
15069         there are no rows in the model
15070
15071         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
15072         NULL, then return the start of the list
15073
15074         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
15075         if we can't get any rows from an empty model 
15076
15077         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
15078         extraneous * after function pointer typedef usage
15079
15080         * Makefile.am: don't specify full path to cp and rm
15081
15082         * gtk/gtkcellrenderertextpixbuf.c
15083         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
15084         NULL before dereferencing, fixes a segfault that happened from
15085         time to time
15086
15087         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
15088         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
15089         and reindent the function
15090         (gtk_cell_renderer_pixbuf_get_size): indentation
15091
15092         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
15093         we quit it
15094         (gtk_dialog_add_buttons_valist): add g_return_if_fail
15095         (gtk_dialog_set_default_response): New function, to set default
15096         button
15097         (gtk_dialog_set_response_sensitive): New function, to set 
15098         sensitivity of buttons
15099
15100         * gtk/gtkcellrendererpixbuf.c
15101         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
15102         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
15103
15104         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
15105         handle any G_TYPE_OBJECT subclass, not just the base class, and 
15106         also boxed types.
15107         (_gtk_tree_data_list_value_to_node): ditto
15108
15109         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
15110         --gtk-debug=tree
15111
15112         * gtk/gtkmain.c: add GTK_DEBUG_TREE
15113
15114         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
15115
15116 2001-01-09  Tor Lillqvist  <tml@iki.fi>
15117
15118         * gdk/win32/gdkevents-win32.c: Implement better mouse
15119         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
15120         (find_window_for_pointer_event): New function.
15121         (gdk_event_translate): Use it when handling mouse events.
15122
15123 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
15124
15125         * configure.in:
15126         Added --with-included-loaders option
15127
15128         * gdk-pixbuf/Makefile.am:
15129         * gdk-pixbuf/gdk-pixbuf-io.c:
15130         Add support for including selected gdk-pixbuf loaders only.
15131
15132         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
15133         gtk_window_set_has_frame):
15134         Added inline documentation.
15135
15136         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
15137         * docs/reference/gdk/tmpl/windows.sgml:
15138         Added inline documentation.
15139
15140 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
15141
15142         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
15143         realizing buttons that have already been realized.
15144
15145 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
15146
15147         * tests/testtreeview.c (main): Show menu items before adding to
15148         option menu.
15149
15150         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
15151         around if we kill them.
15152
15153         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
15154         Return if we pass in a NULL model.
15155
15156 2001-01-08  Havoc Pennington  <hp@redhat.com>
15157
15158         * tests/testtreeview.c: hack on this some
15159
15160         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
15161         gtk_tree_store_set_valist, v is for arrays, valist for varargs
15162         list
15163         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
15164
15165         * gtk/gtkliststore.h: Add varargs set() and get() convenience
15166         functions
15167
15168 2001-01-08  Alexander Larsson  <alexl@redhat.com>
15169
15170         * gtk/gtkwindow-decorate.[hc]:
15171         * gtk/Makefile.am:
15172         New files. Contains an implementation of a minimal WM for
15173         linux-fb.
15174
15175         * gtk/gtkwindow.h:
15176         Add the possibility for GtkWindows to specify a frame. This
15177         is used for the window decoration code, but could concievably
15178         be used for X programs too (xmms style windows).
15179         GtkWindow->frame is the toplevel window if the window is framed.
15180         The signal frame_event gets all events that are targeted to
15181         GtkWindow->frame.
15182         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
15183         
15184         * gtk/gtkwindow.c:
15185         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
15186         Call out to gtkwindow-decorate.c for WM support in linx-fb.
15187
15188 2001-01-08  Alexander Larsson  <alexl@redhat.com>
15189
15190         * docs/README.linux-fb:
15191         Correct filename ~/.pangoft2_aliases
15192
15193         * gdk/gdkwindow.h:
15194         Added new function gdk_window_get_decorations.
15195
15196         * gdk/linux-fb/gdkfb.h:
15197         Removed _gdk_window_get_decorations declaration.
15198         Renamed _gdk_window_set_child_handler to
15199         gdk_fb_window_set_child_handler.
15200
15201         * gdk/linux-fb/gdkwindow-fb.c:
15202         Renamed _gdk_window_set_child_handler to
15203         gdk_fb_window_set_child_handler.
15204
15205         * gdk/x11/gdkwindow-x11.c:
15206         New function gdk_window_get_mwm_hints().
15207         Implemented gdk_window_get_decorations.
15208
15209         * docs/reference/gdk/tmpl/windows.sgml:
15210         * docs/reference/gdk/gdk-sections.txt:
15211         Added gdk_window_get_decorations docs.
15212         
15213 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
15214
15215         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
15216         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
15217         gdk_fb_window_send_crossing_events):
15218         Possibly send focus events when the mouse moves from one
15219         window to another.
15220
15221 2001-01-07  Tor Lillqvist  <tml@iki.fi>
15222
15223         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
15224         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
15225         to match current API.
15226
15227         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
15228         environment variable is set, don't call g_error when on a
15229         palettized (PseudoColor) display. Some people want to use GTK+ 
15230         in 256-colour mode even though works only partially.
15231
15232         * gdk/gdk.def
15233         * gtk/gtk.def
15234         * gtk/makefile.mingw.in: Update.
15235
15236 2001-01-05  Havoc Pennington  <hp@redhat.com>
15237
15238         * tests/testtreeview.c: hack on this a bit
15239
15240         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
15241         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
15242
15243         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
15244         was spelled incorrectly
15245         (GTK_IS_TREE_MODEL_SIMPLE): ditto
15246
15247         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
15248         from gtk_tree_view_set_headers_active   
15249
15250         * gtk/gtktexttag.c:
15251         (gtk_text_tag_get_property): handle PROP_DIRECTION
15252         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
15253         properties, bug 40235
15254
15255         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
15256         forward_to_line_end
15257
15258 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
15259
15260         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
15261         modules/input/gtkimcontextxim.c: Adapt to new prototypes
15262         for unicode,locale,filename conversion functions.
15263
15264 2001-01-05  Havoc Pennington  <hp@redhat.com>
15265
15266         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
15267         broken if called on the first position in the buffer.
15268
15269         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
15270         forward_to_delimiters to be called only if we aren't already at
15271         the delimiters.
15272
15273 2001-01-05  Havoc Pennington  <hp@redhat.com>
15274
15275         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
15276
15277 2001-01-05  Alexander Larsson  <alexl@redhat.com>
15278
15279         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
15280         colormap in here. Sync from X port.
15281         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
15282         Sync from X port.
15283         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
15284         This happens now and then, and i don't think it is a bug.
15285         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
15286         != endpoint.
15287         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
15288         GDK_LINE_SOLID.
15289
15290         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
15291         some of the fields filled in at least.
15292
15293         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
15294         miLineArcD is no more, remove it from the function definition.
15295
15296 2001-01-04  Havoc Pennington  <hp@redhat.com>
15297
15298         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
15299         this
15300
15301         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
15302         user_data instead of tree_node
15303
15304         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
15305         TREE_VIEW_COLUMN_SIZE
15306
15307         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
15308         "size" field to "width" finishes bug 40061
15309
15310         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
15311         for bitfields, bug 40268
15312
15313 2001-01-04  Havoc Pennington  <hp@redhat.com>
15314
15315         Rename some stuff:
15316         
15317         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
15318
15319         s/GtkModelSimple/GtkTreeModelSimple/g;
15320         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
15321         s/gtk_model_simple/gtk_tree_model_simple/g;
15322         s/gtkmodelsimple/gtktreemodelsimple/g;
15323
15324         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
15325
15326         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
15327         s/column_set_col_type/column_set_sizing/g;
15328
15329         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
15330         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
15331
15332         s/GtkCellRendererType/GtkCellRendererState/g;
15333         
15334         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
15335         (gtk_cell_renderer_toggle_class_init): change "state" property to
15336         "active", to match GtkToggleButton
15337         (gtk_cell_renderer_toggle_get_active): new function, bug
15338         40269
15339         (gtk_cell_renderer_toggle_set_active): new function
15340         (gtk_cell_renderer_toggle_set_property): route changes to toggle
15341         state through gtk_cell_renderer_set_active
15342
15343 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
15344
15345         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
15346         temporarily until they work again.  Brought up to date with
15347         changes in the model.
15348         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
15349         model.
15350
15351 2001-01-04  Havoc Pennington  <hp@redhat.com>
15352
15353         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
15354         equal to the line length, then position iterator before paragraph 
15355         separators. Fixes crash reported by Mikael Hermansson when
15356         pressing left arrow from the start of a line.   
15357
15358         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
15359         about byte indexes off the end
15360         (iter_set_from_char_offset): add g_error about char offsets
15361         off the end
15362
15363 2001-01-03  Havoc Pennington  <hp@redhat.com>
15364
15365         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
15366
15367         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
15368         of private functions; remove inclusion of private headers.
15369
15370         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
15371         function, so we don't need private functions in gtktextdisplay.c
15372
15373         * gtk/gtktextiterprivate.h: underscore-ification
15374
15375         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
15376         to instead say "only useful to implement widgets"
15377
15378         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
15379         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
15380         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
15381
15382         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
15383         This function was completely broken
15384
15385         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
15386
15387         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
15388
15389         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
15390
15391         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
15392
15393         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
15394
15395         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
15396
15397         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
15398         gtk_paint_layout
15399
15400         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
15401         gtk_paint_layout
15402
15403         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
15404         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
15405         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
15406         which were not implemented.     
15407
15408         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
15409         insert_pixbuf signal. Rename delete_text to delete_range since it
15410         also deletes pixbufs and child anchors. This almost closes bug
15411         40245 (still need to deal with child anchors)
15412
15413         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
15414         insert_pixbuf, change signal names as appropriate, change types of
15415         signals taking marks/tags to have the specific type, not just
15416         G_TYPE_OBJECT
15417         
15418         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
15419         closes bug 40051
15420
15421         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
15422         unnecessary remove_contents() call
15423         (gtk_option_menu_class_init): add a "changed" signal, closes
15424         bug 40039
15425         (gtk_option_menu_update_contents): emit "changed" if the 
15426         active menu item changes
15427
15428         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
15429         cast to GtkObject, reported by Jonas Borgstrom
15430         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
15431         we can't do stuff with side effects in finalize. Instead, spew a
15432         warning if the loader isn't closed.
15433
15434         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
15435         colormap in here, non-X ports probably need to sync to this change
15436
15437         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
15438         assertion that colormap != NULL, you can set the colormap to NULL
15439         if you like.
15440         
15441         * Makefile.am: remove gtk-config-2.0
15442
15443         * configure.in: Use pkg-config to locate GLib. Remove
15444         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
15445         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
15446         Use pkg-config to locate Pango. Output correct Pango libs to
15447         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
15448
15449         * Makefile.am (pkgconfig_DATA): install only target-specific pc
15450         files
15451         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
15452         X11 pc files
15453
15454         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
15455         unref from here
15456
15457 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
15458
15459         * configure.in:
15460         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
15461
15462 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
15463
15464         * gtk/gtktextlayout.c
15465         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
15466         variable when moving back onto a single line.
15467
15468 2001-01-01  Havoc Pennington  <hp@redhat.com>
15469
15470         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
15471
15472         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
15473
15474         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
15475         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
15476
15477 2001-01-01  Havoc Pennington  <hp@redhat.com>
15478
15479         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
15480
15481         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
15482         GtkTextAttributes
15483
15484         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
15485         #40246
15486         (gtk_text_attributes_copy_values): rename from 
15487         gtk_text_attributes_copy
15488         (gtk_text_attributes_copy): a more standard GTK copy function, 
15489         which returns a new object
15490
15491 2001-01-01  Havoc Pennington  <hp@redhat.com>
15492
15493         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
15494         
15495         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
15496         don't fill in tree_view->priv->selection, kind of an unexpected
15497         side effect
15498
15499         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
15500         gtkintl.h
15501         
15502         * gtk/gtkcellrenderer.c: Remove definition of _ and include
15503         gtkintl.h
15504         (gtk_cell_renderer_get_property): remove calls to g_value_init
15505
15506         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
15507         gtkintl.h
15508
15509         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
15510         and include gtkintl.h
15511         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
15512         property names
15513
15514         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
15515         GtkTreeSelection
15516         (_gtk_tree_selection_new_from_with_view): rename, return
15517         GtkTreeSelection
15518         (_gtk_tree_selection_set_tree_view): rename with uscore
15519         (gtk_tree_selection_get_selected): fill in the "model" out param
15520         first, so it gets filled in even if we return at the top of the 
15521         function
15522         (gtk_tree_selection_real_select_all): add a comment and an else{}
15523         to clarify this a bit
15524         (gtk_tree_selection_real_unselect_all): add the same else{}
15525
15526         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
15527         set_tree_view to have underscore prefixes, move them to the
15528         private header, fix return type of new_with_tree_view
15529         (struct _GtkTreeSelection): mark struct
15530         fields private  
15531
15532         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
15533         GtkTreeModelFlags, not a guint
15534         (gtk_tree_path_prev): return gboolean not gint
15535         (gtk_tree_path_up): return gboolean not gint
15536
15537         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
15538         return GtkTreeModelFlags, not a guint
15539
15540         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
15541         that child model is non-null before unrefing it
15542         (g_value_int_compare_func): make this a qsort compare func, not 
15543         a boolean predicate
15544
15545         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
15546         (add -umn to the end), and mark it unimplemented
15547         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
15548         I don't see what it's for - doesn't the model always sort itself?
15549         (gtk_tree_model_sort_set_compare): this had the wrong signature
15550
15551         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
15552         Fix the docs to say that it destructively replaces existing
15553         attributes (previously said that it added attributes).
15554         (gtk_tree_view_column_set_visible): canonicalize bool before
15555         equality testing. Also, check for realization before
15556         hiding/showing the tree_column->window; if this window could exist
15557         before realization, then it's busted and needs fixing, we can't 
15558         create GDK resources pre-realization. Also, remove
15559         superfluous queue_resize(), since set_size() does that for us.
15560         (gtk_tree_view_column_set_col_type): check realization before 
15561         using tree_column->window
15562
15563         * gtk/gtktreedatalist.c: fix filename in copyright notice
15564
15565 2000-12-31  Havoc Pennington  <hp@pobox.com>
15566
15567         * gtk/gtktextview.c: Rearrange all the
15568         scroll-while-dragging-or-selecting code to be different, not
15569         necessarily better. ;-)
15570         (gtk_text_view_scroll_to_mark): Change this
15571         function to take within_margin as a fraction instead of a pixel
15572         value, and to take alignment arguments (indicating where to align 
15573         the mark inside the visible area)
15574         
15575         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
15576         to GtkObject
15577
15578         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
15579         behavior so that offsets past the end of the line are not 
15580         allowed, and an offset equal to the line length moves the iterator
15581         to the next line
15582         (gtk_text_iter_set_line_index): make parallel change
15583         (gtk_text_iter_get_bytes_in_line): add this function
15584         
15585         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
15586         of byte indexes off the end of the line; byte index at the end of
15587         the line now returns FALSE and doesn't fill in the requested
15588         values, byte index past the end of the line is an error.  Also,
15589         don't allow -1 offset anymore, since its meaning is unclear.
15590
15591         This change exposes some bug in visual cursor motion, where we
15592         end up with a huge invalid byte index; needs fixing. Symptom of 
15593         bug is a crash when you hit up arrow.
15594         
15595         (_gtk_text_line_char_locate): match the change to byte_locate
15596
15597         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
15598         from start of line properly. fixes bug reported by Mikael
15599         Hermansson where backspace would delete all text before the
15600         cursor.
15601
15602 2000-12-30  Tor Lillqvist  <tml@iki.fi>
15603
15604         * gdk/win32/gdkwindow-win32.c
15605         (gdk_window_impl_win32_get_visible_region): New function, as in
15606         the X11 backend.
15607         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
15608         instead of duplicating the same code here.
15609
15610         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
15611         GDK_COLORMAP macro.
15612
15613         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
15614         destroy function.
15615         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
15616         access that.
15617
15618         * gtk/gtk.def: Update.
15619
15620         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
15621
15622 2000-12-30  Havoc Pennington  <hp@pobox.com>
15623
15624         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
15625         colormap on input only windows, to avoid special cases all over
15626         the code for these windows.
15627
15628 2000-12-26  Tor Lillqvist  <tml@iki.fi>
15629
15630         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
15631         we are on a palettized display ("PseudoColor" in X11), as the code
15632         for that doesn't work anyway, and never has.
15633
15634 2000-12-22  Alexander Larsson  <alexl@redhat.com>
15635
15636         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
15637         Don't use isprint() for chars > 255.
15638
15639 2000-12-21  Havoc Pennington  <hp@redhat.com>
15640
15641         * tests/testtreeview.c: more work
15642
15643 2000-12-21  Alexander Larsson  <alexl@redhat.com>
15644
15645         * docs/README.linux-fb:
15646         Update the docs to the new pangoft2 way.
15647
15648 2000-12-21  Alexander Larsson  <alexl@redhat.com>
15649
15650         * configure.in:
15651         For linux-fb get the pangoft2 cflags and libs. This needs a recent
15652         pango version.
15653         Remove modules/linux-fb/Makefile.
15654
15655         * gdk/linux-fb/gdkdrawable-fb2.c:
15656         Render glyphs using freetype.
15657
15658         * gdk/linux-fb/gdkfb.h:
15659         Add new fb-specific functions needed for managing windows.
15660
15661         * gdk/linux-fb/gdkmain-fb.c:
15662         Remove gdk_font_init/fini() calls.
15663
15664         * gdk/linux-fb/gdkpango-fb.c:
15665         Remove old implementation. Use pangoft2 instead.
15666
15667         * gdk/linux-fb/gdkprivate-fb.h:
15668         Remove PangoFBFont and related stuff.
15669
15670         * gdk/linux-fb/gdkwindow-fb.c:
15671         Implement drawable->get_visible_region.
15672         Implement support for _gdk_window_set_child_handler () and
15673         _gdk_window_get_decorations().
15674
15675         * modules/Makefile.am:
15676         Remove linux-fb subdir.
15677
15678         * modules/linux-fb/*:
15679         Removed all.
15680         
15681 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
15682
15683         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
15684         calls, as they are no longer needed.
15685
15686         * gtk/gtktreemodelsort.c: Fix up the comparison code.
15687         
15688         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
15689         figure out how to emit a signal on an interface.
15690
15691 2000-12-20  Havoc Pennington  <hp@redhat.com>
15692
15693         * tests: new directory to contain tests, gtk/test* should move
15694         here sometime (with appropriate on-cvs-server hackery)
15695
15696         * tests/testtreeview.c, tests/Makefile.am: a test
15697         
15698         * configure.in (AC_OUTPUT): add tests/Makefile
15699
15700         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
15701         and "invisible_set" which were missing
15702
15703         * gtk/gtkrbtree.h: some cheesy indentation fix
15704         
15705 2000-12-20  Alexander Larsson  <alexl@redhat.com>
15706
15707         * gtk/gtkinvisible.c (gtk_invisible_realize):
15708         Attach the style to the window so that the style it is not
15709         leaked when unrealizing the window.
15710
15711 2000-12-18  Havoc Pennington  <hp@redhat.com>
15712
15713         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
15714         begin/end user action where appropriate
15715         (gtk_text_view_commit_handler): add begin/end user action
15716
15717         * gtk/gtktextbuffer.c: add begin/end user action signals, and
15718         bracket interactive operations with begin/end user action pair.
15719         
15720         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
15721         "interactive" arg from insert_text and delete_text signals.
15722         Add begin_user_action, end_user_action signals
15723         (gtk_text_buffer_begin_user_action): 
15724         (gtk_text_buffer_end_user_action): New functions to delimit 
15725         a user-visible action
15726
15727         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
15728         signals.
15729         
15730 2000-12-18  Havoc Pennington  <hp@redhat.com>
15731
15732         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
15733         was pretty non-working.
15734
15735         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
15736         by passing the length to g_utf8_validate().
15737
15738 2000-12-16  Havoc Pennington  <hp@pobox.com>
15739
15740         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
15741         Port to GObject, can go back in gdk-pixbuf after setting up 
15742         a gdk-pixbuf-marshal.h header over there.
15743
15744         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
15745         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
15746         args
15747         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
15748         set
15749         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
15750         here, do it when we create the buttons later
15751         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
15752         (gtk_tree_view_map): paranoia checks that column->button is shown 
15753         and unmapped
15754         (gtk_tree_view_size_request): only request visible children.
15755         Move header size calculation in here, for cleanliness, and 
15756         to maintain invariants for child widgets if we eventually 
15757         let users set different children inside the buttons
15758         (gtk_tree_view_map_buttons): factor out code to map buttons,
15759         since it was being called several times
15760         (gtk_tree_view_size_allocate_buttons): move_resize the drag
15761         windows instead of just moving them; their height may change 
15762         if we allow random widgets in there, or the theme changes.
15763         (gtk_tree_view_size_allocate): move button size allocation 
15764         above emitting the scroll signals, to ensure a sane state when we
15765         hit user code
15766         (gtk_tree_view_button_release): remove queue_resize after
15767         tree_view_set_size(), set_size() will handle any resize queuing
15768         that's needed
15769         (gtk_tree_view_focus_in): just queue a draw, don't fool with
15770         draw_focus goo
15771         (gtk_tree_view_focus): use gtk_get_current_event() and
15772         gdk_event_get_state()
15773         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
15774         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
15775         semicolon
15776         (gtk_tree_view_create_button): show the button here
15777         (gtk_tree_view_button_clicked): actually emit the clicked signal
15778         on the column
15779         (_gtk_tree_view_set_size): return right away if the size is
15780         unchanged, as a cheesy optimization
15781         (gtk_tree_view_setup_model): rename set_model_realized to 
15782         setup_model to match the flag that indicates whether we've 
15783         called it
15784         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
15785         exist, because set_scroll_adjustment does that and it shouldn't
15786         matter what order you call these in
15787         (gtk_tree_view_get_vadjustment): ditto
15788         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
15789         for paranoia
15790         (gtk_tree_view_set_headers_visible): call
15791         gtk_tree_view_map_buttons() instead of using cut-and-paste code
15792         (gtk_tree_view_append_column): clarify whether the return value
15793         is the count of columns before or after, and do the increment 
15794         separately from the return statement so you can tell from the code.
15795         (gtk_tree_view_remove_column): ditto
15796         (gtk_tree_view_insert_column): ditto
15797         (gtk_tree_view_get_column): remove g_return_if_fail for columns
15798         outside the existing range, the docs say that outside-range
15799         columns are allowed, so we handle them as documented. (Presumably
15800         this allows a nice loop with column != NULL as test.)
15801         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
15802         mean (left/right/center etc.).
15803         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
15804         (gtk_tree_view_expand_row): add docs
15805         (gtk_tree_view_collapse_row): add docs
15806
15807         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
15808         function to emit the clicked signal on a column
15809         
15810         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
15811         state of an event
15812         (gdk_event_get_time): don't treat GDK_SCROLL 
15813         as a button event, remove default case from switch so gcc 
15814         will whine if we don't explicitly handle all event types
15815
15816         * gtk/gtktreeselection.h: added some FIXME 
15817         
15818         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
15819         "columns" to "n_columns" and "column" to "columns" for clarity
15820
15821 2000-12-16  Havoc Pennington  <hp@pobox.com>
15822         
15823         * gtk/gtktextiter.c: General cleanup of the log attr iteration
15824         stuff. This should make e.g. the delete key work again in the
15825         text widget...
15826         (gtk_text_iter_forward_cursor_positions): handle negative count
15827         (gtk_text_iter_backward_cursor_positions): handle negative count
15828         (gtk_text_iter_forward_word_ends): handle negative count
15829         (gtk_text_iter_backward_word_starts): handle negative count
15830
15831         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
15832         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
15833         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
15834         GObject. No doubt will cause breakage.
15835
15836         * demos/gtk-demo/textview.c: remove hacks around
15837         non-GObject-ification of the text objects
15838
15839         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
15840         the text tag
15841         
15842 2000-12-14  Havoc Pennington  <hp@pobox.com>
15843
15844         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
15845         that we have Xrender
15846
15847 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
15848
15849         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
15850         Add two virtualized functions gdk_drawable_get_clip_region - to
15851         get the clip region when drawing.
15852         
15853         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
15854         use invalidate_region.
15855
15856         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
15857         region.
15858
15859         * acconfig.h configure.in: Check for Xft. For now, assume
15860         that if Xft is found, Pango was compiled with Xft support
15861         as well.
15862
15863         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
15864         gdk_colormap_query_color().
15865         
15866         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
15867         with Xft if appropriate.
15868
15869         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
15870         a pangoxft context if we have XFT and the environment
15871         variable GD_USE_XFT is set.
15872         
15873         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
15874         and also possibly an XftDraw structure.
15875
15876         * gtk/gtkfontsel.c: Handle the case where the font from the
15877         style doesn't match any of the fonts a bit better.
15878         
15879         * gtk/testgtk.c: Add tabs between directional segments for
15880         hebrew/arabic test. (Not really necessary, just a little
15881         prettier.)
15882
15883 2000-12-14  Havoc Pennington  <hp@redhat.com>
15884
15885         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
15886         reading a file
15887
15888 2000-12-14  Havoc Pennington  <hp@redhat.com>
15889
15890         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
15891         unused call to get_last_line()
15892
15893         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
15894         here until boxed is working (and maybe after that - we should
15895         really not gratuitously break old code)
15896
15897         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
15898         specific types for font_desc and tabs args, move them to
15899         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
15900         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
15901
15902         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
15903         use GTK_TYPE_POINTER for signal signatures as a hack-around
15904
15905         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
15906         PangoTabArray
15907
15908         * gtk/gtktextlayout.c (line_display_iter_to_index): 
15909         make static
15910         (line_display_index_to_iter): make static
15911
15912         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
15913         to marshal a string not a boxed
15914
15915         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
15916
15917         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
15918         since the UTF-8 isn't validated yet
15919
15920         * gtk/gtktextsegment.c (char_segment_check_func): don't require
15921         lines to end in '\n'
15922         
15923         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
15924         forward_to_delimiters, and grapheme boundaries
15925         (gtk_text_view_delete_from_cursor): properly handle non-newline
15926         delimiters, and grapheme boundaries
15927
15928         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
15929         to gtk_text_iter_forward_to_delimiters, and make it work properly
15930         if empty lines end with a character other than '\n'
15931
15932         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
15933         position
15934
15935 2000-12-15  Tor Lillqvist  <tml@iki.fi>
15936
15937         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
15938
15939         * gtk/gtk.def
15940         * gdk/gdk.def: Update.
15941
15942         * gdk/win32/gdkmain-win32.c
15943         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
15944         gdkmain-win32.c here.
15945
15946         * gdk/win32/makefile.mingw.in (all): No need to make
15947         gdk-win32res.o here, the makefile one step up will call us to make
15948         it.
15949
15950         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
15951         gdkkeys-win32.
15952
15953         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
15954
15955         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
15956         call to g_source_add().
15957
15958         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
15959         leak. Thanks to Andreas Kemnade.
15960
15961 2000-12-13  Havoc Pennington  <hp@pobox.com>
15962
15963         * gtk/gtktextbtree.h: Remove double _ in front of some functions
15964
15965         * gtk/gtktext*.[hc]: update accordingly
15966         
15967 2000-12-13  Havoc Pennington  <hp@pobox.com>
15968
15969         * gtk/gtktextbtree.h: Put _ in front of every function in this 
15970         header file
15971
15972         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
15973
15974 2000-12-13  Alex Larsson  <alexl@redhat.com>
15975
15976         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
15977         Add support for ps2 intellimouse.
15978
15979         * gdkkeyboard-fb.c:
15980         Move shift-F1 repaint handling to xlate handler only.
15981         
15982         * docs/README.linux-fb:
15983         Add imps2 to docs.
15984         Document the new refresh keys.
15985         
15986 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
15987
15988         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
15989
15990         * gtk/gtkbox.c: change property types from (u)long to (u)int for
15991         ::position and ::padding.
15992
15993         * gtk/gtkcontainer.c: make ::border_width an INT property.
15994
15995         * gtk/gtkpacker.c: make ::position an INT property.
15996
15997         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
15998         guard against NULL h/v scrollbars, since this is used at construction
15999         time.
16000
16001         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
16002         internal gtk_clist_constructor().
16003
16004         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
16005         gtk_ctree_constructor().
16006
16007         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
16008         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
16009
16010         * docs/reference/Makefile.am: fun stuff, disabled docs generation
16011         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
16012
16013         * gtk/gtkwidget.[hc]:
16014         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
16015         and gtk_widget_get().
16016         (gtk_widget_new): use g_object_new_valist().
16017         (gtk_widget_set): use g_object_set_valist().
16018
16019         * gtk/gtkobject.[hc]:
16020         removed gtk_object_arg_get_info(), gtk_object_getv(),
16021         gtk_object_query_args(), gtk_object_newv(),
16022         gtk_object_class_add_signals(),
16023         gtk_object_class_user_signal_new(),
16024         gtk_object_class_user_signal_newv(),
16025         gtk_object_arg_set(), gtk_object_arg_get(),
16026         gtk_object_args_collect(),
16027         gtk_object_default_construct(),
16028         gtk_object_constructed(),
16029         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
16030         removed nsignals, signals and n_args members from GtkObjectClass.
16031         (gtk_object_new): use g_object_new_valist().
16032         (gtk_object_set): use g_object_set_valist().
16033         (gtk_object_get): use g_object_get_valist().
16034         
16035         * gtk/gtkcompat.h: define gtk_object_default_construct().
16036         
16037         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
16038         g_object_new().
16039
16040         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
16041         fucntions, cleaned up method assignments (make sure your structures
16042         are setup properly before calling out). removed all GTK_CONSTRUCTED
16043         hacks ;)
16044
16045 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
16046
16047         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
16048         off-by-one error in checks. (Dave Lambert)
16049
16050 2000-12-12  Alexander Larsson  <alexl@redhat.com>
16051
16052         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
16053         Don't free gdk_fb_keyboard twice.
16054
16055 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
16056
16057         * gtk/testgtk.c:
16058         (create_tooltips): 
16059         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
16060         use GObject swapped_signal:: properties instead.
16061
16062         * gtk/gtkcellrenderertoggle.c: 
16063         * gtk/gtkcellrenderertextpixbuf.c: 
16064         * gtk/gtkcellrenderertext.c: 
16065         * gtk/gtkcellrendererpixbuf.c: 
16066         * gtk/gtkcellrenderer.c:
16067         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
16068         missing warnings for invalid property ids, install properties
16069         with g_object_class_install_property() now.
16070         
16071         * gtk/gtksignal.c:
16072         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
16073         
16074 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
16075         
16076         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
16077         to determine if a window is the focus widget within
16078         its toplevel.
16079
16080         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
16081         to be boolean.
16082
16083         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
16084         of the case where the container CAN_FOCUS to here instead
16085         of having it in each individual move-the-focus place.
16086
16087         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
16088         focusing to be geometric in a much more obvious sense. Arrowing
16089         around is still non-intuitive because it isn't perfect and
16090         because entries, etc, grab the arrow keys, but it at least
16091         usually will do what you expect now.
16092         
16093         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
16094         file.
16095
16096         * gtk/gtknotebook.c: Change tabs to be a single item in
16097         the focus chain. Make movement of focus on tabs with arrow
16098         keys wrap around.
16099         
16100         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
16101         CHECK_FIND_CHILD macro to give informative error messages
16102         instead of silent returns.
16103
16104         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
16105         flag since we handle GdkReturn on the tabs.
16106
16107         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
16108         windows rather than sending expose events directly.
16109
16110         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
16111         definition for GtkNotebookPage into .c file, since it is private.
16112
16113         * gtk/testgtk.c (create_notebook): Add option for 
16114         testing borderless notebook.
16115
16116         * gtk/testgtk.c (page_switch): Removed egregious poking
16117         around in GTK+ internals.
16118
16119         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
16120
16121         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
16122         properly through gtk_clist_focus. Make the title headers a
16123         single item in the tab-focus chain, and make left-right wrap
16124         around.
16125
16126         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
16127         focus method so that wrapping around works properly.
16128
16129         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
16130         that is handled for the widget now. 
16131
16132 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
16133
16134         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
16135         widgets as TOPLEVEL.
16136
16137         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
16138         TOPLEVEL widgets are containers.
16139
16140         * gtk/gtkinvisible.h: Remove useless include.
16141
16142 2000-12-11  Havoc Pennington  <hp@redhat.com>
16143
16144         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
16145         Handle chopping off \r\n and 0x2029 in addition to \n before
16146         passing to PangoLayout
16147
16148         * gtk/gtkimcontextsimple.c
16149         (gtk_im_context_simple_get_preedit_string): 
16150         return an empty string if no match is pending
16151
16152         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
16153         assertion that the returned preedit string was sane
16154
16155         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
16156         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
16157         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
16158
16159 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
16160
16161         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
16162         Fix up finalizer to chain to its parent.
16163
16164 2000-12-11  Alexander Larsson  <alexl@redhat.com>
16165
16166         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
16167         Clearified the difference between the keyboard types. Wrote a note
16168         about the magic sysrq key to get out of raw mode.
16169
16170 2000-12-09  James Henstridge  <james@daa.com.au>
16171
16172         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
16173         member to hold masks for detecting the start of a protocol packet.
16174         (mouse_devs): add packet start masks for ps2 and ms device types.
16175         Left the mask for fidmour blank, as I have no idea what it should
16176         be.
16177         (handle_mouse_io): skip bytes until we get to the start of a
16178         packet.  My Logitech mouse seems to be passing an extra NULL pad
16179         byte, and GPM does a similar thing here.
16180         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
16181         this is the ms mouse driver.
16182         (gdk_fb_mouse_ms_packet): fix up button handling, which was
16183         completely broken except for button1.  It was checking the wrong
16184         bit in the packet for the status of the right mouse button, and
16185         wrongly assuming right == button2 rather than 3.  I fixed that and
16186         also added support for middle button (button2).
16187
16188 2000-12-08  Havoc Pennington  <hp@redhat.com>
16189
16190         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
16191         that cause a segfault on text insertion
16192
16193         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
16194         warning
16195
16196         * gtk/gtktextiter.c (test_log_attrs): use
16197         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
16198
16199         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
16200         Get log attrs for a line, using a cache stored on the buffer
16201         
16202         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
16203         reported by Jeff Franks
16204
16205 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
16206
16207         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
16208         /dev/ttyS0 -> /dev/mouse
16209
16210 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
16211
16212         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
16213         Added dummy gdk_fontset_load.
16214
16215 2000-12-08  Alexander Larsson  <alexl@redhat.com>
16216
16217         * docs/README.linux-fb:
16218         * docs/Makefile.am:
16219         Initial GtkFB docs.
16220         
16221         * gdk/linux-fb/Makefile.am:
16222         Define GDK_DATA_PREFIX.
16223
16224         * gdk/linux-fb/gdkmain-fb.c:
16225         Fix typo.
16226         Change default display to /dev/fb0.
16227
16228         * gdk/linux-fb/gdkpango-fb.c:
16229         Add $(prefix)/share/fonts/ to font path.
16230         
16231 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
16232
16233         * gdk/linux-fb/gdkkeyboard-fb.c:
16234         New file containing the abstracted keyboard driver. Most code
16235         taken from gdkinput-ps2.c
16236
16237         * gdk/linux-fb/gdkinput-ps2.c:
16238         Removed file.
16239         
16240         * gdk/linux-fb/Makefile.am:
16241         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
16242
16243         * gdk/linux-fb/gdkcolor-fb.c:
16244         display->fb was renamed to display->fb_fd.
16245
16246         * gdk/linux-fb/gdkcursor-fb.c:
16247         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16248
16249         * gdk/linux-fb/gdkinput.c:
16250         Moved gdk_input_init here from gdkinput-ps2.c
16251
16252         * gdk/linux-fb/gdkmain-fb.c:
16253         display->fb was renamed to display->fb_fd.
16254         Now the tty and the console is opened here instead
16255         of in the keyboard driver. Also check GDK_VT to see what
16256         tty to open.
16257         Move gdk_beep () here from gdkinput-ps2.c
16258         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16259
16260         * gdk/linux-fb/gdkmouse-fb.c:
16261         Add header.
16262         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16263         Return correct keyboard modifiers.
16264         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
16265
16266         * gdk/linux-fb/gdkprivate-fb.h:
16267         Add tty and vt info to display.
16268         Add orignal modeinfo storage to display
16269         Update global functions
16270
16271         * gdk/linux-fb/gdkwindow-fb.c:
16272         Added gdk_fb_window_find_focus().
16273         gdk_mouse_get_info -> gdk_fb_mouse_get_info
16274
16275 2000-12-07  Havoc Pennington  <hp@pobox.com>
16276
16277         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
16278         function, noticed by Alex
16279
16280 2000-12-06  Elliot Lee  <sopwith@redhat.com>
16281
16282         * configure.in: Detect freetype properly
16283
16284         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
16285         above.
16286
16287 2000-12-06  Alexander Larsson  <alexl@redhat.com>
16288
16289         * gdk/linux-fb/Makefile.am:
16290         Add gdkmouse-fb.c
16291         
16292         * gdk/linux-fb/gdkmouse-fb.c:
16293         New file. Abstracted the mouse drivers a bit.
16294
16295         * gdk/linux-fb/gdkcursor-fb.c:
16296         The cursor hide/show functions was moved here from gdkinput-ps2.c.
16297
16298         * gdk/linux-fb/gdkinput-ps2.c:
16299         Removed old mouse handling code. Moved cursor handling code
16300         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
16301         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
16302         gdk_mouse_get_info.
16303
16304         * gdk/linux-fb/gdkmain-fb.c:
16305         Pass NULL pointers for x,y in gdk_mouse_get_info call.
16306
16307         * gdk/linux-fb/gdkprivate-fb.h:
16308         Removed public gdk_fb_find_common_ancestor, added and renamed
16309         functions for the new mouse handling code.
16310
16311         * gdk/linux-fb/gdkwindow-fb.c:
16312         Moved gdk_fb_window_send_crossing_events here. added global
16313         variable gdk_fb_window_containing_pointer. made
16314         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
16315         renamed to gdk_mouse_get_info.
16316
16317 2000-12-06  Alexander Larsson  <alexl@redhat.com>
16318
16319         * gdk/linux-fb/gdkevents-fb.c:
16320         Update to match latest gmain/gsource changes.
16321
16322         * gdk/linux-fb/gdkinput-ps2.c:
16323         Bogus gdk_keymap_get_entries_for_keycode implementation so that
16324         it links. Will be implemented later.
16325
16326 2000-12-03  Havoc Pennington  <hp@pobox.com>
16327
16328         * gdk/Makefile.am: add gdkkeys.[hc]
16329
16330         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
16331         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
16332
16333         * acconfig.h, configure.in: add checks and command line options
16334         for XKB
16335
16336         * gdk/x11/gdkkeys-x11.c: Implement the above functions
16337         
16338         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
16339         and group in the key event
16340
16341         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
16342         field with the low-level hardware key code, and a group
16343         field with the keyboard group
16344
16345         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
16346         and declare a couple globals used for keymap handling
16347         
16348         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
16349         hold down Shift-Control and type a hex number to get a Unicode 
16350         character corresponding to the hex number
16351         (gtk_im_context_simple_get_preedit_string): Fix cursor position
16352         (return bytes not chars)
16353
16354 2000-12-05  Elliot Lee  <sopwith@redhat.com>
16355
16356         * gdk/gdkcolor.h: Make GdkColor specify element sizes
16357         to avoid waste on 64-bit platforms.
16358
16359 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
16360
16361         * INSTALL: Fix link to PNG home, remove reference
16362         to fribidi.
16363
16364         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
16365         
16366         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
16367         tested.)
16368
16369         * gtk/gtkcheckmenuitem.c: Permanently turn on
16370         always_show_toggle.
16371
16372         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
16373         be NULL. (Vladimir Klebanov, #26545)
16374
16375         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
16376         some signed/unsigned comparison problems. (#6510,
16377         David Kaelbling)
16378
16379         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
16380         return type to boolean (Oskar Liljeblad, #18648)
16381
16382 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16383
16384         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
16385         Remove bogus colormap setting.
16386
16387 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16388
16389         * gdk/linux-fb/gdkcolor-fb.c:
16390         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
16391
16392         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
16393         Must set colormap.
16394         
16395 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
16396
16397         * docs/tutorial/gtk-tut.sgml: DND updates
16398
16399 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
16400
16401         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
16402         Remove old debug g_warning().
16403         (gdk_fb_draw_drawable): The src argument can be either a wrapper
16404         or an implementation, just pass the implementation to draw_drawable_2.
16405         
16406         * gdk/linux-fb/gdkprivate-fb.h:
16407         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
16408
16409         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
16410         clear and invalidate area when window is destroyed.
16411         (send_map_events): Remove old commented out code.
16412
16413 2000-12-05  Alexander Larsson  <alexl@redhat.com>
16414
16415         * gdk/linux-fb/gdkpango-fb.c:
16416         Use italic instead of oblique in font aliases.
16417         
16418         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
16419         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
16420         other unsupported functions.
16421
16422 2000-12-04  Havoc Pennington  <hp@redhat.com>
16423
16424         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
16425
16426         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
16427
16428         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
16429
16430         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
16431         hack to avoid infinite loops (synthetic expose event) - 
16432         Owen has more appropriate fixes in a branch he'll check in later.
16433
16434         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
16435         separator, CR, and CRLF as line ends
16436
16437         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
16438         into lines using pango_find_paragraph_boundary(); other bits of
16439         the widget are still going to be broken if the boundary isn't '\n'
16440         though
16441
16442 2000-12-04  Alexander Larsson  <alexl@redhat.com>
16443
16444         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
16445         multiply.
16446
16447         * gdk/linux-fb/gdkpango-fb.c:
16448         Copied some 26.6 scaling macros from pango to clean up the rounding.
16449         (pango_fb_font_get_glyph_info): Correct sign on x value.
16450
16451         * gdk/linux-fb/gdkprivate-fb.h:
16452         Removed unreferenced external functions.
16453
16454         * modules/linux-fb/Makefile.am: Use ` instead of '.
16455
16456         * modules/linux-fb/basic.c:
16457         Remove dead code. In particular the dummy lang engine which broke all
16458         pango layouts in GtkFB. Don't include tables-big.i anymore.
16459
16460         * modules/linux-fb/tables-big.i:
16461         Upgrade to latest version from pango. Left for reference, basic_ranges
16462         moved to basic.c.
16463         
16464 2000-12-04  Havoc Pennington  <hp@redhat.com>
16465
16466         Fix bugs Alex found:
16467         
16468         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
16469         to "draw"
16470
16471         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
16472
16473         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
16474
16475         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
16476         implementation in here, apparently the expose() implementation was
16477         dead code.
16478
16479 2000-12-04  Alexander Larsson  <alexl@redhat.com>
16480
16481         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
16482         Return positive descent.
16483
16484 2000-12-02  Havoc Pennington  <hp@pobox.com>
16485
16486         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
16487         method and signal
16488         
16489         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
16490         calls gdk_window_process_updates() to push the exposes through
16491         (gtk_widget_class_init): No more draw signal, no
16492         gtk_widget_real_draw()  
16493         
16494         * gtk/gtkbin.c (gtk_bin_draw): remove
16495
16496         * gtk/gtkbox.c (gtk_box_draw): remove
16497
16498         * gtk/gtkbutton.c (gtk_button_draw): remove
16499
16500         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
16501
16502         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
16503
16504         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
16505
16506         * gtk/gtkclist.c (gtk_clist_draw): remove
16507
16508         * gtk/gtkentry.c (gtk_entry_draw): remove
16509
16510         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
16511
16512         * gtk/gtkfixed.c (gtk_fixed_draw): remove
16513
16514         * gtk/gtkframe.c (gtk_frame_draw): remove
16515
16516         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
16517
16518         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
16519
16520         * gtk/gtklayout.c (gtk_layout_draw): remove
16521
16522         * gtk/gtklist.c (gtk_list_draw): remove
16523
16524         * gtk/gtklistitem.c (gtk_list_item_draw): remove
16525
16526         * gtk/gtkmenu.c (gtk_menu_draw): remove
16527
16528         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
16529
16530         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
16531
16532         * gtk/gtknotebook.c (gtk_notebook_draw): remove
16533
16534         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
16535
16536         * gtk/gtkpacker.c (gtk_packer_draw): remove
16537
16538         * gtk/gtkrange.c (gtk_range_draw): remove
16539
16540         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
16541
16542         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
16543
16544         * gtk/gtktable.c (gtk_table_draw): remove
16545
16546         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
16547
16548         * gtk/gtktext.c (gtk_text_draw): remove
16549
16550         * gtk/gtktextview.c (gtk_text_view_draw): remove
16551
16552         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
16553
16554         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
16555
16556         * gtk/gtktree.c (gtk_tree_draw): remove
16557
16558         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
16559
16560         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
16561
16562         * gtk/gtkviewport.c (gtk_viewport_draw): remove
16563
16564         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
16565
16566         * gtk/gtkvscale.c (gtk_vscale_draw): remove
16567
16568         * gtk/gtkwindow.c (gtk_window_draw): remove
16569
16570 2000-20-01  Anders Carlsson  <andersca@gnu.org>
16571
16572         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
16573         a GtkToggleButton is both insensitive and active, it was being
16574         drawn by the GtkButton draw handler which doesn't check the
16575         state. Now it's calling gtk_toggle_button_paint instead.
16576         
16577 2000-12-01  Havoc Pennington  <hp@redhat.com>
16578
16579         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
16580         dangling pointers to the appearance attributes from the 
16581         line display
16582
16583         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
16584         width/height to mean "full width/height of drawable"
16585
16586         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
16587         click to select word/line
16588         
16589         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
16590         when getting log attrs. Get a slice, so that pixmaps and stuff
16591         are properly handled.
16592
16593         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
16594         paste into the selection (replaces selection now, previously
16595         crashed or added to selection). Reveals longstanding btree bug -
16596         select multiple lines, middle-click on the selection, boom. This
16597         isn't related to my changes though.
16598
16599         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
16600         PangoLogAttrs changes
16601         (gtk_entry_move_backward_word): ditto
16602
16603         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
16604         functions return bool whether the iter moved onto a
16605         dereferenceable position.
16606  
16607         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
16608         functions for motion in terms of display lines.
16609
16610         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
16611         get the buffer a mark is inside
16612         
16613 2000-12-01  Alexander Larsson  <alexl@redhat.com>
16614
16615         * gdk/linux-fb/Makefile.am:
16616         * modules/linux-fb/Makefile.am:
16617         Freetype 2 final uses freetype-config
16618
16619         * gdk/linux-fb/gdkpango-fb.c:
16620         Upgrade to use Freetype 2 final.
16621         More flexible support for font aliases, this also fixes a bug with
16622         GtkFontSelector, as the aliases must be visible in the font/family list,
16623         or GtkFontSelector reads uninitialized memory.
16624
16625 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
16626
16627         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
16628         XGetIMValues to properly terminate variable argument list, and do
16629         NULL return check for ic_values and xim_styles.
16630
16631         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
16632         Restore preedit state after XmbResetIC().
16633         
16634         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
16635         XvaCreateNestedList() should take XvaNestedList, but not
16636         XvaNestedList*.
16637
16638         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
16639         preedit_draw_callback, preedit_caret_callback): Match
16640         "preedit-changed" signal name to "preedit_changed" to be
16641         consistent to the spec.
16642
16643         * gtk/gtkimcontextsimple.c (check_table):
16644         Match "preedit-changed" to "preedit_changed" to be consistent
16645         to the spec.
16646
16647 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
16648
16649         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
16650         gc->clip_region == NULL>
16651
16652 2000-11-30  Tor Lillqvist  <tml@iki.fi>
16653
16654         Changes by Hans Breuer:
16655         
16656         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
16657         Dont't use negative width and height as max_hints. This fixes
16658         Owen's recent testgtk changes for win32.
16659
16660         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
16661         gdk_win32_hdc_release): These are exported and may be called with
16662         other drawable types than our GdkDrawableImplWin32 (?).
16663
16664         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
16665         so always #define USE_BACKING_STORE.
16666
16667         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
16668         of printf for debugging output.
16669
16670         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
16671         
16672         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
16673
16674         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
16675         declaration.
16676
16677         * gtk/gtktexttypes.h: Ditto.
16678
16679         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
16680         (GDK_VoidSymbol) also if in case of arg check failure.
16681
16682         * gtk/gtkimcontextsimple.c
16683         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
16684         position to the pointer, but to the variable it points to.
16685
16686         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
16687
16688         * gtk/gtk.def: Updates.
16689
16690 2000-11-29  Elliot Lee  <sopwith@redhat.com>
16691
16692         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
16693         GTK_TYPE_TREE_MODEL.
16694
16695 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16696
16697         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
16698         Set the size of the font from the description.
16699         (gdk_text_width): Gross hack that calculates the width
16700         of text by text_length * size/2. This is necessary because
16701         GtkLabel does some ugly gtk_string_width call to calculate
16702         an good size.
16703         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
16704
16705 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
16706
16707         * docs/tutorial/gtk-tut.sgml: DND updates
16708
16709 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16710
16711         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
16712         If you pass width or height == 0 to gdk_window_clear_area they
16713         should be calculated from the window size.
16714
16715 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16716
16717         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
16718         a grab, but no grab-cursor, use the cursor from the grabbed
16719         window. (gdk_fb_window_send_crossing_events): Send normal
16720         enter/leave notifications if grab and owner_events == TRUE.
16721
16722 2000-11-29  Alexander Larsson  <alexl@redhat.com>
16723
16724         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
16725         Do implicit button grabs, even if the window doesn't
16726         want the event.
16727         (gdk_fb_window_send_crossing_events): If there is a
16728         grab, only the grabbed window gets normal enter/leave
16729         notifications. On ungrab go from grabbed window to current.
16730         Don't send any notification to b when propagating from c -> b.
16731         If setting a grab on window, don't set prev_window.
16732         (handle_mouse_input): Send enter/leave events to the window the
16733         mouse is over, not the grabbed one.
16734         
16735 2000-11-28  Elliot Lee  <sopwith@redhat.com>
16736
16737         * gdk/gdkregion-generic.c: Zap warning.
16738         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
16739         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
16740
16741 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
16742
16743         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
16744         The cursor should be hidden if it is part of either the
16745         source or destination region. Not only if it is in both.
16746         (gdk_window_set_transient_for): Silence warnings.
16747
16748 2000-11-28  Alexander Larsson  <alexl@redhat.com>
16749
16750         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
16751         The default mode in X is Pie Arcs, therefore that is
16752         what Gtk+ uses.
16753
16754 2000-11-28  Alexander Larsson  <alexl@redhat.com>
16755
16756         * gdk/linux-fb/gdkinput-ps2.c:
16757         Implement correct EnterNotify/LeaveNotify:
16758         (gdk_fb_window_send_crossing_events): New function that sends
16759         all GdkCrossingEvents from the last mouse-window to the specified
16760         destination.
16761         (gdk_fb_window_visibility_crossing): Removed function.
16762         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
16763         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
16764         instead of gdk_window_get_pointer() for better readability.
16765
16766         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
16767         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
16768
16769         * gdk/linux-fb/gdkprivate-fb.h:
16770         removed gdk_fb_window_visibility_crossing, added
16771         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
16772
16773         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
16774         New function that finds the least common ancestor of two windows.
16775         (gdk_window_show, gdk_window_hide):
16776         Use gdk_fb_window_send_crossing_events.
16777         (gdk_fb_window_move_resize): Send configure events to toplevel
16778         windows. Use gdk_fb_window_send_crossing_events.
16779
16780 2000-11-27  Havoc Pennington  <hp@redhat.com>
16781
16782         * gtk/gtkprivate.h (enum): Remove a trailing comma
16783
16784 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
16785
16786         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
16787         the "changed" callback of the adjustment.  We need to redraw the
16788         spin button's arrows when the adjustment's range changes.
16789         (adjustment_changed_cb): Draw the arrows.
16790         (gtk_spin_button_value_changed): Draw the arrows.
16791
16792 2000-11-23  Alexander Larsson  <alexl@redhat.com>
16793
16794         * gdk/linux-fb/gdkselection-fb.c:
16795         Initial selection implementation.
16796
16797         * gtk/gtkselection.c:
16798         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
16799         requestor in gtk_selection_request.
16800         
16801         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
16802         Added gdk_selection_property atom.
16803
16804         * gdk/linux-fb/gdkprivate-fb.h:
16805         Export _gdk_selection_window_destroyed.
16806         Removed mask_off_x/y from GdkCursorPrivateFB.
16807         Removed hbearing, added top, left to PangoFBGlyphInfo.
16808
16809         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
16810         Call _gdk_selection_window_destroyed
16811         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
16812         the root window has been created.
16813         (static_dx_hack, static_dy_hack, compare_draw_rects,
16814         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
16815         in region. They are already sorted. Instead just traverse them in
16816         reverse if draw_direction < 0.
16817         
16818         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
16819         Double-clicks must be sent after the normal button_press.
16820         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
16821         
16822         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
16823         Pass _gdk_fb_screen_gc instead of NULL.
16824
16825         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
16826         Initialize gdk_selection_property.
16827         (gdk_event_make): Remove unused code.
16828
16829         * gdk/linux-fb/gdkcursor-fb.c:
16830         Make the pixmap for the cursor the same size as the mask. Also remove
16831         the mask_off_x/y fields in GdkCursorPrivateFB and combine
16832         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
16833         Now the whole cursor is visible.
16834
16835         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
16836         Fix bug where xdest+height instead of ydest+height was used
16837         to calculate if the source and dest overlapped. This fixes the
16838         redraw bug when the main window in testgtk was scrolled when
16839         partially covered by a tall window.
16840         Copy rectangles in region in order depending on draw_direction.
16841         Also moved the draw_direction flipping of start_y and end_y into
16842         the gc functions, as this might not be what all of them want.
16843         (gdk_fb_draw_lines): Support dashed lines.
16844         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
16845         so that the text is positioned correctly (was 1 pixel high).
16846
16847         gdk/linux-fb/gdkgc-fb.c:
16848         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
16849         all lines were drawn a pixel to short. Also checked the default of
16850         the rest of the values, and they're the same as X now.
16851
16852         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
16853         Clean up pixel positioning of the glyphs. Just use bgy->top and
16854         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
16855         to all divisions to get correct rounding behaviour.
16856
16857         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
16858         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
16859         Moved start_y/end_y flip into draw_drawable implementations.
16860         Flip also x rendering when draw_direction < 0.
16861         Remove unneccesary multiply with draw_direction.
16862
16863 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
16864
16865         * docs/tutorial/gtk-tut.sgml:
16866           - get rid of gtk_toggle_button_toggled FUD
16867           - start DND section - needs work - based on:
16868                 http://wolfpack.twu.net/docs/gtkdnd/
16869
16870 2000-11-22  Alexander Larsson  <alexl@redhat.com>
16871
16872         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
16873         Correct calculation of font metrics. Now GtkEntrys have sane
16874         size.
16875
16876 2000-11-22  Alexander Larsson  <alexl@redhat.com>
16877
16878         * gdk/gdktypes.h:
16879         Add new type GdkSpan
16880         
16881         * docs/reference/gdk/gdk-sections.txt,
16882         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
16883         gdk/gdkregion.h:
16884         Implement and document gdk_region_spans_intersect_foreach.
16885
16886         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
16887         Add new file gdkrender-fb.c which contains all core
16888         rendering code.
16889         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
16890         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
16891         (optimized rectangle fillers).
16892
16893         * gdk/linux-fb/gdkdrawable-fb2.c:
16894         Move all rendering code to gdkrender-fb.c.
16895         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
16896         Use the new span intersection functions in gdk_fb_fill_spans.
16897         gdk_fb_draw_rectangle() clips filled rectangles and calls
16898         gc->fill_rectangle with the result.
16899         gdk_fb_fill_spans() gets extra argument "sorted".
16900
16901         * gdk/linux-fb/gdkevents-fb.c:
16902         Remove unused includes and defines.
16903         New function gdk_fb_get_time() to get correct time for events.
16904
16905         * gdk/linux-fb/gdkinput-ps2.c:
16906         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
16907         Make sure to set the time of all events.
16908
16909         * gdk/linux-fb/gdkmain-fb.c:
16910         Use gdk_fb_get_time ().
16911
16912         * gdk/linux-fb/gdkprivate-fb.h:
16913         New virtual GC calls: fill_span & fill_rectangle.
16914         Export gdk_fb_get_time().
16915         gdk_fb_fill_spans() gets extra argument "sorted".
16916
16917         * gdk/linux-fb/mi*.c:
16918         Use GdkSpan instead of GdkRectangle.
16919         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
16920         from XFree 4 source)
16921         
16922 2000-11-22    <jrb@redhat.com>
16923
16924         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
16925         reversing the order in an if statement will do.  Doing so managed
16926         to make the treemodelsort half work.  Other half will follow after
16927         I get the insert function fully fixed.
16928
16929 2000-11-21  Elliot Lee  <sopwith@redhat.com>
16930         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
16931         more than 2 bits. Besides, I need to implement an evil hack. :)
16932
16933 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
16934
16935         * docs/tutorial/gtk-tut.sgml: minor corrections
16936
16937 2000-11-20  Jonathan Blandford <jrb@redhat.com>
16938         * gtk/gtktreemodelsort.h: Add convertion functions to let you
16939           convert to and from relative path's and iters.
16940
16941         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
16942           testing sorting functions a bit better.  Currently broken -- will
16943           fix in morning.
16944
16945 2000-11-20  Havoc Pennington  <hp@redhat.com>
16946
16947         * gtk/gtkwidget.c: Documented a bunch of functions in here
16948         (gtk_widget_realize): Warn if you try to realize
16949         a widget with no parent that isn't a toplevel
16950         (gtk_widget_intersect): return a gboolean
16951
16952 2000-11-20  Havoc Pennington  <hp@redhat.com>
16953
16954         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
16955         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
16956         scrolling to be implemented in GDK to finish. Also, right now
16957         we just size_allocate all children on every layout change,
16958         which is pretty lame. Test commented out of testtext.c, 
16959         until it works better.
16960
16961 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
16962
16963         * gdk/linux-fb/gdkdrawable-fb2.c:
16964         Removed unused arguments from gdk_fb_drawable_get_pixel().
16965
16966         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
16967         Renamed fidur specific mouse packet data in MouseDevice to
16968         generic. Used it in ps2 mouse handling code to avoid blocking
16969         reads.
16970
16971 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
16972
16973         * demos/gtk-demo/main.c: Changed to have the list become
16974         non-italic when the demo window is destroyed through an external
16975         event (like a close button).  Doing so found three bugs in the
16976         widget.
16977
16978         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
16979
16980         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
16981         we actually set the cell.
16982
16983         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
16984
16985         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
16986         free a leaked path.  Thanks memprof.
16987
16988 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
16989
16990         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
16991         off-by-one error when destroying allocated segments
16992         on failure. (Elliot)
16993
16994 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
16995
16996         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
16997         memleaks found by Evan Martin.
16998
16999 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
17000
17001         * Released 1.3.2
17002         
17003         * NEWS: Updates for 1.3.2
17004
17005 2000-11-17  Tor Lillqvist  <tml@iki.fi>
17006
17007         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
17008         but in general for window system specific events.
17009
17010         * gtk/gtk.def
17011         * gtk/makefile.mingw.in
17012         * gtk/makefile.msc.in: Update.
17013         
17014         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
17015
17016 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
17017
17018         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
17019         distribute gtk.immodules.
17020
17021         * gtk/Makefile.am (install-data-local): Don't install the
17022         gtk.immodules file created for the uninstalled modules;
17023         instead run gtk-query-immodules after install
17024
17025 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
17026
17027         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
17028         -rpath to the right install location.
17029
17030         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
17031         -export-dynamic.
17032
17033         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
17034         properly.
17035
17036 2000-11-15  Havoc Pennington  <hp@pobox.com>
17037
17038         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
17039         patch from Mikael Hermansson to temporarily stop blinking while
17040         the user is using the keyboard to type or navigate. 
17041
17042         Also, when blinking, stay on for longer than we stay off. Also,
17043         return from start_cursor_blink if !cursor_visible, to save
17044         checking that flag all over the place before we call
17045         start_cursor_blink.
17046
17047 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
17048
17049         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
17050         only contain a "fontset" line, which is now ignored.
17051
17052         * gtk/gtkentry.c (gtk_entry_button_release): Make 
17053         double-click-to-select-word work.
17054         
17055 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
17056
17057         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
17058         Don't move back one char when we are actually at the end of the 
17059         paragraph.
17060
17061 2000-11-15  Robert Brady  <robert@suse.co.uk>
17062
17063         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
17064         'o' < 'p'.
17065         
17066         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
17067         bind_textdomain_codeset.
17068
17069         (gtk_init_check): Make the warning about translating default:LTR
17070         sterner.
17071         
17072 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
17073
17074         * **/Makefile.am : remove unecessary rules for win32-specific
17075         config-substituted targets. If you want these rules, use
17076         --enable-maintainer-mode (called automatically by autogen.sh).
17077         Stops a lot of unneccessary make-time warnings.
17078
17079         * gtk/gtktext{layout,display}.c: Factor in total width as
17080         well as screen when figuring alignment for word-wrap as well as
17081         no wrap; this is necessary to handle lines that cannot be wrapped
17082         at all.
17083
17084 2000-11-15  Havoc Pennington  <hp@redhat.com>
17085
17086         * gtk/testtext.c: Implement essential color cycling feature
17087
17088 2000-11-15  Havoc Pennington  <hp@redhat.com>
17089
17090         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
17091         when we invalidate the main window.
17092
17093         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
17094         GtkTextView will now invalidate the side windows for us when text
17095         changes.
17096
17097 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
17098
17099         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
17100         unconditionally, since we may need to update the horizontal
17101         scrollbars even if the height didn't change.
17102
17103         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
17104         the extra attrs, since some of them affect size.
17105
17106         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
17107         x_offset correctly.
17108
17109 2000-11-15  Havoc Pennington  <hp@redhat.com>
17110
17111         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
17112         don't move the first line out into the margin, instead move the
17113         whole paragraph in order to make space for the first line within 
17114         the margin
17115
17116 2000-11-15  Havoc Pennington  <hp@redhat.com>
17117
17118         * gtk/gtktextview.c (changed_handler): offset redraw rect by
17119         xoffset in addition to yoffset, so horizontal scrolling doesn't
17120         break redraws
17121
17122 2000-11-15  Havoc Pennington  <hp@redhat.com>
17123
17124         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
17125         from the cursor
17126         (render_layout_line): fix reversed test that caused weird
17127         underlines to get drawn
17128
17129 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
17130
17131         * gdk/linux-fb/gdkprivate-fb.h:
17132         Fix debug macros.
17133         
17134 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
17135
17136         * gdk/linux-fb/gdkprivate-fb.h:
17137         Added virtual functions set_pixel, get_color,
17138         fill_span and draw_drawable to the GC.
17139         Added global _gdk_fb_screen_gc to use instead of
17140         NULL when drawing to the screen.
17141         Added _gdk_fb_gc_calc_state() prototype.
17142
17143         * gdk/linux-fb/gdkgc-fb.c:
17144         Call _gdk_fb_gc_calc_state() on any gc state change.
17145
17146         * gdk/linux-fb/gdkglobals-fb.c:
17147         Add _gdk_fb_screen_gc
17148                 
17149         * gdk/linux-fb/gdkdrawable-fb2.c:
17150         _gdk_fb_gc_calc_state() calculates best functions
17151         for the GC state and depth.
17152         Moved bpp specialized code to separate functions.
17153         Added optimized 24 bpp AA draw_drawable.
17154
17155         * gdk/linux-fb/gdkevents-fb.c:
17156         Silence gcc warning.
17157
17158         * gdk/linux-fb/gdkimage-fb.c:
17159         Use _gdk_fb_screen_gc
17160
17161         * gdk/linux-fb/gdkwindow-fb.c:
17162         Init and use _gdk_fb_screen_gc
17163
17164         * gdk/linux-fb/mitypes.h:
17165         Remove unused types.
17166
17167 2000-11-14  Havoc Pennington  <hp@pobox.com>
17168
17169         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
17170         to pixels
17171
17172 2000-11-14  Havoc Pennington  <hp@pobox.com>
17173
17174         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
17175
17176         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
17177         unknown char, no real reason we were using a variable. 
17178         Remove gtk_text_unknown_char variable. Fix all the text widget
17179         files accordingly.
17180
17181         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
17182         since the Unicode spec seems to prefer that character for our
17183         purposes.
17184
17185 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
17186
17187         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
17188         value of g_getenv() isn't freeable, so g_strdup it.
17189
17190         * modules/input/inuktitut.c: Inuktitut input method.
17191
17192         * modules/input/Makefile.am: Build this.
17193         
17194 2000-11-14  Elliot Lee  <sopwith@redhat.com>
17195
17196         * gtk/Makefile.am: Install gtk.immodules, needed for operation
17197         of gtk programs.
17198
17199 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
17200
17201         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
17202         reversed > that was causing Home to go to end of previous line.
17203
17204         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
17205         modified-keypresses (leave for bindings.)
17206
17207         * modules/input/Makefile.am: Remove useless -export-dynamic
17208         from module LDFLAGS.
17209
17210 2000-11-14  Havoc Pennington  <hp@redhat.com>
17211
17212         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
17213         higher.
17214
17215         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
17216         account. Also, render rise, underline, background, etc. for
17217         pixbufs as well as text. Also, draw underlines one pixel higher.
17218
17219         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
17220         PangoAttribute for the rise, so it gets drawn properly. Also,
17221         add the GtkTextAppearance attribute for pixbuf/widget segments
17222         as well; we should go ahead and have rise, underline, background,
17223         stipple work for those
17224
17225         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
17226         Pango
17227
17228 2000-11-15  Tor Lillqvist  <tml@iki.fi>
17229
17230         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
17231
17232         * gtk/gtk.def: Update.
17233
17234         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
17235         included.
17236         (gtk_rc_get_im_module_file): Use run-time installation directory
17237         on Win32.
17238
17239         * gdk/win32/rc/gdk.rc: Remove.
17240         * gdk/win32/rc/gdk.rc.in: New file.
17241         * gdk/win32/rc/Makefile.am: New file
17242         * gdk/win32/Makefile.am: Corresponding changes.
17243
17244         * gtk/gtk.rc: Remove.
17245         * gtk/gtk-win32.rc.in: New file.
17246         * gtk/Makefile.am: Corresponding changes.
17247
17248         * configure.in: Corresponding changes.
17249
17250         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
17251         has a built gtkcompat.h. Developers using CVS code on Win32 can
17252         hand-edit it from gtkcompat.h.in.
17253
17254         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
17255         gtkcompat.h from gtkcompat.h.win32.
17256
17257 2000-11-14  Havoc Pennington  <hp@redhat.com>
17258
17259         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
17260         to default to GDK_ACTION_MOVE if the drag is within a single
17261         widget. Defaults to GDK_ACTION_COPY between widgets.
17262
17263 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
17264
17265         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
17266
17267         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
17268
17269         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
17270         srcdir != builddir
17271
17272         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
17273
17274         * configure.in (GTK_VERSION): Up to 1.3.2
17275
17276         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
17277         gtkimcontextxim.h
17278
17279         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
17280         missing doc comment.
17281
17282 2000-11-14  Alexander Larsson  <alexl@redhat.com>
17283
17284         * modules/linux-fb/basic.c:
17285         Use the glib iconv wrappers.
17286
17287 2000-11-13  Havoc Pennington  <hp@pobox.com>
17288
17289         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
17290         still more bugs.
17291
17292         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
17293         scroll the GdkWindows before realization.
17294
17295 2000-11-13  Havoc Pennington  <hp@redhat.com>
17296
17297         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
17298         where GC didn't always get updated properly
17299
17300         * demos/gtk-demo/textview.c (create_tags): Use subattributes
17301         of fonts instead of setting the entire font
17302
17303         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
17304         setting entire font
17305
17306         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
17307
17308         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
17309         a bunch of individually-settable font attributes. You can still 
17310         use the "font" and "font_desc" args, they just set all the font
17311         attributes at once.
17312
17313 2000-11-13 Elliot Lee <sopwith@redhat.com>
17314
17315         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
17316
17317 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
17318
17319         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
17320         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
17321
17322         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
17323         work better.
17324
17325 2000-11-13  Havoc Pennington  <hp@redhat.com>
17326
17327         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
17328         the module file.
17329
17330         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
17331         dest->language
17332
17333         * gtk/testtext.c: Test pixels above/below/inside paragraphs
17334         settings
17335
17336         * gtk/gtktextview.c: Implement object args and setters/getters for
17337         all the aspects of the GtkTextAttributes that are not set from
17338         GtkWidget attributes. This is spacing, justification, margins,
17339         etc.
17340
17341         (gtk_text_view_set_arg)
17342         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
17343         args
17344         (gtk_text_view_class_init): Add args for justify, left_margin,
17345         right_margin, indent, and tabs
17346         
17347
17348         * gtk/gtktextlayout.c (set_para_values): fix to display indent
17349         attribute properly
17350
17351         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
17352         replace with indent attribute
17353
17354         * gtk/gtktextlayout.c (set_para_values): multiply indent by
17355         PANGO_SCALE
17356
17357         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
17358         rearranging code to do that
17359         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
17360         i.e. don't subtract the top_margin first, just to keep
17361         all margin-futzing in one place.
17362
17363         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
17364
17365         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
17366         special case of last line, Pango now handles this itself.
17367         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
17368         Y coordinate
17369         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
17370         (find_display_line_above): wasn't moving the byte index as it
17371         iterated over lines, so always returned byte 0. Also, port to use
17372         PangoLayoutIter.
17373         (find_display_line_below): same problem as
17374         find_display_line_above. Also, port to use PangoLayoutIter.
17375
17376 2000-11-13  Alexander Larsson  <alexl@redhat.com>
17377
17378         * gdk/linux-fb/*.[ch]:
17379         Massive reindent to gtk+ standard. My hands hurt.
17380
17381         * gdk/linux-fb/gdkcolor-fb.c:
17382         Move GdkColorPrivateFB from inherited to windowing_data
17383
17384         * gdk/linux-fb/gdkcursor-fb.c:
17385         _gdk_cursor_new_from_pixmap made static
17386
17387         * gdk/linux-fb/gdkdnd-fb.c:
17388         GdkDragContextPrivate moved to windowing_data
17389
17390         * gdk/linux-fb/gdkdrawable-fb2.c:
17391         Removed endian.h, use glib endianness macros instead
17392         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
17393         and GDK_DRAWABLE_IMPL_FBDATA
17394
17395         * gdk/linux-fb/gdkfont-fb.c:
17396         Add empty gdk_font_load(). Needed for linking of Gtk+.
17397
17398         * gdk/linux-fb/gdkimage-fb.c:
17399         Removed endian.h, use glib endianness macros instead
17400         Moved GdkImagePrivateFB to windowing_data
17401         gdk_image_new_bitmap didn't always allocate enough
17402         memory.
17403
17404         * gdk/linux-fb/gdkinput-ps2.c:
17405         Added semi-working support for MS serial mice.
17406
17407         * gdk/linux-fb/gdkprivate-fb.h:
17408         s/GdkWindowPrivate/GdkWindowObject/
17409         Removed GdkWindowPrivate typedef
17410         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
17411         Removed GDK_DRAWABLE_P
17412         Move GdkColorPrivateFB from inherited to windowing_data
17413         Moved GdkImagePrivateFB to windowing_data
17414
17415         * gdk/linux-fb/gdkvisual-fb.c:
17416         Removed some unused debug code.
17417
17418         * gdk/linux-fb/gdkwindow-fb.c:
17419         Use stock cursors instead of including X headers.
17420         s/GdkWindowPrivate/GdkWindowObject/
17421
17422         * gdk/linux-fb/mitypes.h:
17423         Removed unused types.
17424
17425         * modules/linux-fb/basic.c:
17426         Use the pango fribidi wrappers.
17427
17428 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17429
17430         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
17431         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
17432         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
17433         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
17434         GEqualFunc where applicable.
17435         
17436         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
17437         pango_font_description_equal as changed in pango.
17438         
17439         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
17440
17441         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
17442
17443         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
17444
17445         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
17446
17447         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
17448
17449         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
17450
17451         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
17452         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
17453
17454         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
17455         gtk_rc_styles_compare -> gtk_rc_styles_equal.
17456
17457 2000-11-12  Havoc Pennington  <hp@pobox.com>
17458
17459         * demos/gtk-demo/Makefile.am (democodedir): change demo install
17460         dir to datadir/gtk+-2.0/demo
17461
17462         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
17463         sorts of text widget and Pango font bugs. Urgh.
17464
17465         * demos/gtk-demo/Makefile.am (demos): Add textview.c
17466
17467         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
17468         tree that you should double click to see the demo. Fix 
17469         types of variables to reflect changed return values from 
17470         GtkTreeStore and GtkTreeViewColumn constructors.
17471
17472         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
17473         newly-created buffer to prepare for GObject semantics
17474
17475         * gtk/testtext.c: don't leak the buffer with GObject semantics
17476
17477         * gtk/testtextbuffer.c: ditto
17478         
17479 2000-11-12  Havoc Pennington  <hp@pobox.com>
17480
17481         Rename this testgtk to gtk-demo to avoid confusion, and 
17482         install it so people can use it as a supplement to 
17483         the documentation.
17484         
17485         * demos/gtk-demo: Moved from demos/testgtk
17486
17487         * demos/testgtk: Removed
17488
17489         * configure.in: make Makefile in gtk-demo
17490         
17491         * demos/gtk-demo/Makefile.am: Install sample source to 
17492         datadir/gtk-demo (maybe there's a better place?), and 
17493         rename the binary to gtk-demo
17494         
17495         * demos/gtk-demo/main.c (load_file): Load installed sample
17496         source if source isn't found in pwd.
17497
17498 2000-11-09  Havoc Pennington  <hp@pobox.com>
17499
17500         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
17501         argument to set the char displayed when visibility == FALSE
17502         (gtk_entry_create_layout): If !entry->visible, replace 
17503         all chars with the "invisible char"
17504
17505         * gtk/testgtk.c: Test the invisible_char deal
17506         
17507 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
17508
17509         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
17510         can't get a native font in the right encoding.
17511
17512 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
17513
17514         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
17515         respectively.
17516
17517 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
17518
17519         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
17520         Fix warning when moving between paragraphs.
17521
17522         * gtk/gtkentry.[ch]: Change move => move_cursor, 
17523         delete => delete_from_cursor, insert => insert_at_cursor
17524
17525 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
17526
17527         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
17528
17529         * modules/input/imthai-broken.c: A Thai input method for use if
17530         Thai keys are really generating Latin1 keysyms.
17531
17532         * modules/input/Makefile.am: Build these.
17533
17534 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
17535
17536         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
17537         g_filename_{to,from}_utf8 now takes an extra parameter.
17538
17539         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
17540         strftime into UTF-8.
17541
17542         (column_from_x, gtk_calendar_paint_day_names): Support RTL
17543         calendars.
17544
17545         (gtk_calendar_paint_day_names): Draw day names in the right 
17546         place.
17547         
17548 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
17549
17550         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
17551         problem with using result of g_get_charset() backwards -
17552         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
17553
17554         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
17555         negative min_width/height and max_width/height to
17556         mean "requisition"; this allows setting a window
17557         to be user-resizable in only one direction easily.
17558
17559         * gtk/testgtk.c (create_main_window): Remove hard-coded
17560         usize - set a default size in the vertical direction.
17561
17562 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
17563
17564         * gtk/gtkrange.c: Add some missing casts. Support 
17565         2 and 3 button clicks on the arrows to mean 
17566         "move by pages" and "jump to end". (Like gtkspinbutton)
17567
17568 2000-11-12 Hans Breuer <Hans@Breuer.Org>
17569
17570         * gdk/win32/makefile.msc : reflect build module changes
17571
17572         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
17573         from GdkPixmap*, cast implementation member instead.
17574
17575         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
17576         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
17577         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
17578         more Gdi functions return value checking. 
17579         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
17580         GdkImagePrivateWin32 *.
17581
17582         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
17583         menus useable again. Add #pragma message to keep reminded on this issue.
17584         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
17585         windows. This allows to enable backing store on Win32!
17586
17587         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
17588         in drawable is of impl type. Correct specific type checks appropriate.
17589  
17590         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
17591         GDK_WINDOW_DESTROYED before allocating new resources.
17592
17593         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
17594
17595         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
17596         (gdk_window_foreign_new) initialize parent handle.
17597         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
17598
17599         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
17600         Let the GDI invalidate the window on MoveWindow call to fix scrolling
17601         problems (e.g. main buttons in testgtk). 
17602
17603 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
17604
17605         * gtk/gtkentry.c (gtk_entry_key_press): Call 
17606         gtk_widget_activate for GDK_Return.
17607
17608         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
17609         of preedit cursor position.
17610
17611 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
17612
17613         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
17614         static.
17615
17616 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
17617
17618         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
17619         out support for multiple locales; that simple doesn't
17620         work reliably with current Xlib
17621
17622         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
17623         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
17624         Add support for positioning the cursor within the preedit string.
17625
17626 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
17627
17628         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
17629         at XIM input method module.
17630
17631         * gtk/gtktextview.c: Check for bindings after passing
17632         events to im context filter.
17633
17634 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
17635
17636         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
17637         empty attribute lists properly.
17638
17639 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
17640
17641         * gtk/queryimmodules.c (main): Return non-zero exit
17642         status if errors were encountered querying any
17643         modules.
17644
17645         * modules/input/Makefile.am (moduledir): remove
17646         leftover bin program target.
17647
17648         * docs/make-todo: Fix typo in error message.
17649
17650 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
17651
17652         * configure.in: Add modules/input/Makefile
17653
17654 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
17655
17656         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
17657         don't include gtkthemes.h.
17658
17659         * gtk/testgtk.c gtk/testtext.c: Set environment variables
17660         to point
17661
17662         * gtk/Makefile.am: Add new .c and .h files, build 
17663         gtk-query-immodules and use it to create a gtk.immodules
17664         file for use of test programs.
17665
17666         * gtk/gtkpreview.c: remove extra blank line.
17667
17668 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
17669
17670         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
17671         Add the ability to add extra tables beyond the default
17672         one, and also the ability to have compose sequences 
17673         that are prefixes of other compose sequences. 
17674
17675         * gtk/gtkimcontextsimple.c: Export a preedit string which
17676         consists of possible candidates for keystrokes that have
17677         been entered but not yet committed.
17678
17679         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
17680         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
17681
17682         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
17683         Add a function to add input-method switching menu items
17684         to a menu.
17685
17686         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
17687         when switching input methods.
17688
17689         * gtk/gtkimcontextsimple.[ch]: Change the format of
17690         the compose table to allow compose tables of different
17691         lengths / sequence.
17692
17693 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
17694
17695         * gtk/gtkimmodule.[ch]: Support routines for loading
17696         GtkIMContext implementations dynamically at runtime.
17697
17698         * modules/input/imcyrillic-translit.c: A sample input
17699         method (based on GtkIMContextSimple with an extra table),
17700         which demonstrates preedit strings and the module
17701         system for input modules
17702
17703         * gtk/queryimmodules.c: Program to query the available
17704         input modules and write the results into a file.
17705          
17706         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
17707         extra config options "im_module_file" (cache file for
17708         input method modules), and "im_module_path" - path
17709         to look for modules when generating cache file.
17710
17711         This doesn't scale.
17712
17713 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
17714
17715         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
17716         generic code from gtkthemes into a new abstraction
17717         GtkModule which has the logic for implementing
17718         a loadable module which implements a number of 
17719         GObject types.
17720
17721 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
17722
17723         * gtk/gtkeditable.[ch]: Convert GtkEditable from
17724         a class into an interface  
17725         
17726         * gtk/gtkoldeditable.[ch]: Move the old editable
17727         implementation into here, so legacy widgets can
17728         still rely on the implemenation. GtkOldEditable
17729         exports GtkEditable. Make selection handling
17730         code use new text conversion functions (and
17731         handle UTF-8 as a side-effect). Use GtkClipboard
17732         for CLIPBOARD.
17733
17734         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
17735         Adopt to match above changes.
17736
17737         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
17738         avoid GtkOldEditable implementation. Restructure
17739         to reduce number of places that modify state directly.
17740         Move to GtkBindingSet. Display the preedit string.
17741         Queue recomputation of PangoLayout and scroll position
17742         to improve effiency of doing complex changes naively.
17743         Add a menu with cut/copy/paste and input method selection.
17744
17745 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
17746
17747         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
17748         to set preedit string and attributes; display preedit string by
17749         inserting string and attributes at cursor when creating the
17750         GtkTextLineDisplay.
17751
17752         * gtk/gtktextlayout.c: Move all conversions between byte
17753         positions in PangoLayout and GtkTextIter into new functions
17754         line_display_iter_to_index/index_to_iter that properly
17755         handle the preedit string.
17756
17757         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
17758         it to return const char * (eventually will end up
17759         as GCONST char *, most likely.)
17760
17761         * gtk/gtktextview.[ch]: Handle the preedit string, call
17762         gtk_im_context_reset() as necessary, add a menu to switch
17763         input methods.
17764         
17765         * gtk/gtktextlayout.[ch]: Remove useless
17766         gtk_text_layout_get_log_attrs() function.
17767
17768 2000-11-11  Tor Lillqvist  <tml@iki.fi>
17769
17770         * gdk/gdk.def
17771         * gtk/gtk.def: Update.
17772
17773         * gdk/win32/*.c: Add last argument to g_type_register_static()
17774         calls.
17775
17776         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
17777
17778         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
17779         generated by older wheel mouse drivers. Get the correct y
17780         coordinate from WM_MOUSEWHEEL messages.
17781
17782         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
17783         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
17784         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
17785         Debugging functions.
17786
17787         * gdk/win32/gdkprivate-win32.h: Declare them.
17788
17789         * gdk/win32/gdkinput-win32.h: Add declaration for
17790         gdk_input_window_destroy().
17791
17792         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
17793
17794 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
17795
17796         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
17797         function to help handle keeping things in sync.
17798
17799 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
17800
17801         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
17802         BOXED marshallers.
17803
17804         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
17805         (gtk_list_store_class_init): use the new BOXED marshallers.
17806
17807         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
17808         new_with_values to new_with_types.
17809         (gtk_tree_store_get_column_type): add this.
17810         (gtk_tree_store_class_init): use the new BOXED marshallers.
17811
17812         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
17813         mirror some POINTER marshallers.
17814
17815 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
17816
17817         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
17818         allow more interesting iterators.  Also, made the lifecycle of
17819         iterators more explicit.
17820
17821         * gtk/gtktreemodelsort.[ch]: New model for sorting.
17822
17823         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
17824         types.
17825
17826 2000-11-09  Alexander Larsson  <alexl@redhat.com>
17827
17828         * demos/testgtk/menus.c:
17829         Changes to make the new testgtk compile after
17830         gtk_menu_append was removed.
17831
17832         * gdk/linux-fb/gdkdrawable-fb2.c
17833         (gdk_fb_get_depth, gdk_fb_get_visual,
17834         gdk_drawable_impl_fb_class_init): Implement
17835         these drawable functions. Now GtkImages work again.
17836
17837         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
17838
17839         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
17840         
17841         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
17842         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
17843         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
17844         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
17845
17846 2000-11-08  Havoc Pennington  <hp@pobox.com>
17847
17848         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
17849         visible_set args, don't know where these had gone, I thought they
17850         used to be there
17851
17852         * gtk/testtext.c: Add a menu item to apply invisibility tag;
17853         now we can test the feature and see that it's totally broken.
17854
17855 2000-11-08  Havoc Pennington  <hp@pobox.com>
17856
17857         Make DND copy pixbufs and tags when source and target share a 
17858         tag table.
17859         
17860         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
17861         in-process GTK_TEXT_BUFFER_CONTENTS target
17862         (gtk_text_view_drag_data_received): Paste from
17863         GTK_TEXT_BUFFER_CONTENTS if we receive it.
17864
17865 2000-11-08  Alexander Larsson  <alexl@redhat.com>
17866
17867         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
17868         API changes.
17869
17870         * gtk/gtkmenu.c: Add support for scrolling menus.
17871         Remove gtk_menu_append/prepend/insert, these have been moved to
17872         gtkcompat.h as #defines.
17873
17874         * gtk/gtkcompat.h.in:
17875         Add compatibility #defines for gtk_menu_append/prepend/insert
17876
17877         * gtk/gtkmenu.h: Add data needed for scrolling menus.
17878         GtkMenuPositionFunc gets an extra argument push_in.
17879         gtk_menu_append/prepend/insert removed.
17880         
17881         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
17882         positioning behaviour to fit to scrolling menus.
17883
17884         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
17885         into menuitem->submeny. That is wrong, and broke torn
17886         off submenus of torn off menus, since they were unrealized
17887         when the first menu was unrealized.
17888
17889         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
17890         gtk_menu_shell_select_item() since these need to be overridden in
17891         GtkMenu.
17892
17893         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
17894         positioning behaviour to fit to scrolling menus.
17895         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
17896         the current item so that it is prelighted when the menu pops up.
17897         This is a workaround to the fact that the menu doesn't get the
17898         initial enter event (due to grabs).
17899
17900         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
17901         s/gtk_menu_append/gtk_menu_shell_append/
17902
17903         * gtk/gtknotebook.c:
17904         s/gtk_menu_insert/gtk_menu_shell_insert/
17905
17906         * gtk/testgtk.c (create_menu, create_menus):
17907         Create the first menu with 50 items so that menu scrolling
17908         can be tested.
17909         
17910         
17911         Patch from Jonathan Blandford  <jrb@redhat.com>
17912
17913         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
17914         system to handle size requests.  First, we ask what the size of
17915         the toggle is.  Then, when allocating the size, we allocate the
17916         toggle_size first.  This way we can have multiple menu-item
17917         classes w/o needing a seperate class for each.
17918
17919         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
17920         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
17921
17922         * gtk/gtkcheckmenuitem.c
17923         (gtk_check_menu_item_toggle_size_request): New function to handle
17924         the toggle size-request.
17925
17926 2000-11-07  Havoc Pennington  <hp@redhat.com>
17927
17928         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
17929         Half-ass somewhat fix this function, so that scrolling to the
17930         insertion point works. Pango hacking is in the future to really
17931         fix it.
17932
17933         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
17934         length of data, no longer used.
17935
17936         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
17937         method contents in here, get rid of destroy method
17938         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
17939         that were backward. Remove debug spew.
17940         (cut_or_copy): Make the clipboard work with insert_range to
17941         preserve tags and pixbufs, not just the primary selection.
17942
17943 2000-11-07  Havoc Pennington  <hp@redhat.com>
17944
17945         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
17946         to gtk_text_mark_get_visible
17947
17948         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
17949         bug that was generating an invalid iterator
17950
17951         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
17952         ensure_char_offsets() in front of code placing the iter in an
17953         invalid state.
17954
17955         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
17956         make override_location arg const
17957         (paste): Replace the selection if we paste into the 
17958         current selection
17959
17960         * gtk/gtkselection.h: Remove "GtkSelectioData"
17961         (struct _GtkSelectionData): move the definition here.
17962
17963         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
17964         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
17965
17966         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
17967
17968         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
17969         (gtk_text_buffer_insert_range_interactive): implement
17970         (gtk_text_buffer_get_tags): Remove, replaced by
17971         gtk_text_iter_get_tags()
17972
17973         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
17974         limit parameter, to avoid infinite linear scan.
17975         (gtk_text_iter_backward_search): Add search limit
17976         (gtk_text_iter_forward_find_char): Add search limit
17977         (gtk_text_iter_backward_find_char): Add search limit
17978
17979 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
17980
17981         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
17982         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
17983         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
17984         gdk/linux-fb/gdkwindow-fb.c:
17985         use g_object_new() instead of g_type_create_instance() which
17986         is a private function for fundamental type implementations.
17987
17988         * gdk/linux-fb/gdkinput-ps2.c:
17989         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
17990         instead just store the current modifier state. Add a (somewhat broken)
17991         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
17992         Rename exported function gdk_input_ps2_get_mouseinfo to
17993         gdk_input_get_mouseinfo.
17994
17995         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
17996         gdk/linux-fb/gdkwindow-fb.c:
17997         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
17998         
17999
18000 2000-11-02  Havoc Pennington  <hp@redhat.com>
18001
18002         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
18003         use stock buttons. Should be 100% source compatible, appropriate
18004         filesel fields now point to dialog->vbox and dialog->action_area.
18005         On the bizarre side, dialog->action_area and filesel->action_area
18006         are not the same widget.
18007         (gtk_file_selection_init): Put some padding around the selection
18008         entry, so it isn't touching the GtkDialog separator.    
18009
18010         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
18011         use stock buttons, etc. Should also be source compatible.
18012         Set the dialog default title in _init not _new().
18013         
18014         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
18015         Use stock buttons; don't put a button box inside the existing
18016         dialog button box. Don't bother with push/pop colormap anymore.
18017
18018         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
18019         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
18020         for message dialog, and necessary for the font selection and color
18021         selection with help and apply buttons.
18022         
18023         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
18024         to the created button widget. Set GTK_CAN_DEFAULT on the button.
18025         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
18026         between buttons, put less padding around the action area.
18027         (gtk_dialog_run): Exit on unmap rather than on destroy. 
18028         This will also exit the loop if the widget is hidden.
18029         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
18030         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
18031         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
18032         special-case delete event.
18033
18034         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
18035         formatting
18036         
18037 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
18038
18039         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
18040         button to temporarily disable position recording in the
18041         "saved position" test.
18042
18043 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
18044
18045         * gtk/gtkthemes.c: added compat code that temporarily implements
18046         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
18047         going to be revamped by owen's upcoming GtkModule patches, but
18048         untill then people want gtk to build, right? ;)
18049
18050 2000-11-04  Havoc Pennington  <hp@pobox.com>
18051
18052         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
18053         list
18054
18055         * docs/Changes-2.0.txt: Add note about
18056         gtk_container_get_toplevels()
18057
18058         * gtk/gtktextview.h: formatting
18059         
18060         * gtk/gtktextview.c: don't start descriptions with "Returns",
18061         confuses gtk-doc
18062
18063 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
18064
18065         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
18066         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
18067
18068 2000-11-03  Havoc Pennington  <hp@redhat.com>
18069
18070         * gtk/gtktexttagtable.c: Docs
18071         (gtk_text_tag_table_size): return a signed int
18072
18073         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
18074         (gtk_text_tag_event): make the event_object a GObject
18075
18076         * gtk/gtktextview.c: Write API docs for all functions.
18077
18078         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
18079         for gtk_text_view_get_window_type() called on one of the private
18080         windows.
18081
18082         * gtk/gtktextview.c: Instead of accessing text_view->buffer
18083         directly, call get_buffer() which demand-creates a default
18084         buffer. So gtk_text_view_new() can be used to create a view with a
18085         default buffer in it, if you just want an empty text box users can
18086         put data in. Useful for GUI builders also.
18087
18088 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
18089
18090         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
18091         the charset encodign portion MUST be in lowercase.
18092         * gtk/gtkrc.az: added file for Azeri language
18093
18094 2000-11-03  Havoc Pennington  <hp@redhat.com>
18095
18096         Get widgets working on the btree/buffer side. Display of them 
18097         still doesn't work.
18098         
18099         * gtk/gtktextview.c: start implementing child widget stuff
18100
18101         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
18102
18103         * gtk/gtktextlayout.c: handle embedded widgets
18104
18105         * gtk/gtktextdisplay.c: handle embedded widgets
18106
18107         * gtk/gtktextchild.c: Implement all the child anchor goo
18108
18109         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
18110         function
18111
18112         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
18113         (insert_pixbuf_or_widget_segment): abstract out common portions of 
18114         creating a child anchor or a pixbuf segment.
18115         (gtk_text_btree_create_child_anchor): new function
18116         (gtk_text_btree_unregister_child_anchor): new function
18117
18118         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
18119         allocate_child signal on GtkTextLayout
18120
18121         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
18122         values
18123         (gtk_text_iter_get_child_anchor): new function
18124
18125         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
18126         default handler for the changed signal, which calls
18127         gtk_text_buffer_set_modified(), instead of just always emitting
18128         changed then calling set_modified() manually. I guess this is
18129         maybe more flexible. It seems logical.
18130
18131 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
18132
18133         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
18134         now.
18135
18136         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
18137
18138 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
18139
18140         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
18141         been marked static.
18142
18143 2000-11-02  Havoc Pennington  <hp@redhat.com>
18144
18145         * gtk/testgtk.c (create_labels): had a test backward
18146
18147         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
18148         fields, so the dest GC ends up with the correct clip origin, 
18149         etc. Fixes a bug where colored labels didn't redraw 
18150         properly.
18151
18152 2000-11-02  Alexander Larsson  <alexl@redhat.com>
18153
18154         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
18155         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
18156         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
18157         Add last argument to t_type_register_static call.
18158         
18159         * gdk/linux-fb/gdkdrawable-fb2.c:
18160         Add last argument to t_type_register_static call.
18161         export the get_image drawable virtual function.
18162
18163         * gdk/linux-fb/gdkimage-fb.c:
18164         Add last argument to t_type_register_static call.
18165         rename gtk_image_get to _gdk_fb_get_image and
18166         export it for use by gdkdrawable-fb2.
18167
18168         * gdk/linux-fb/gdkprivate-fb.h:
18169         export _gdk_fb_get_image.
18170
18171         * gdk/linux-fb/gdkselection-fb.c:
18172         Add new api call stubs.
18173
18174         * gtk/Makefile.am:
18175         Missing ( in linux-fb part.
18176
18177         * modules/linux-fb/Makefile.am:
18178         Must link with gdk_pixbuf or get unresolved symbol.
18179
18180 2000-11-01  Havoc Pennington  <hp@pobox.com>
18181
18182         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
18183         GTK_TYPE_TEXT_ITER and BOXED marshallers
18184
18185         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
18186
18187         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
18188         
18189         * gtk/gtk-boxed.defs: add GtkTextIter
18190
18191         * gtk/gtkmarshal.list: Add marshallers for text widget that 
18192         properly use OBJECT and BOXED
18193
18194 2000-11-01  Havoc Pennington  <hp@redhat.com>
18195
18196         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
18197
18198         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
18199         before returning it. 
18200         
18201 2000-11-01  Havoc Pennington  <hp@redhat.com>
18202
18203         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
18204         Clip the rectangle to be rendered to the drawable, since
18205         get_from_drawable() requires a region within the drawable
18206
18207 2000-11-01  Havoc Pennington  <hp@redhat.com>
18208
18209         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
18210         from coordinates.
18211
18212 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
18213
18214         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
18215         it isn't NULL.
18216
18217 2000-11-01  Havoc Pennington  <hp@pobox.com>
18218
18219         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
18220         on a label
18221         (gtk_label_finalize): unref the attr list if any.
18222
18223         * gtk/testgtk.c (create_get_image): close test on second click
18224         (make_message_dialog): close dialog if it exists
18225
18226         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
18227
18228         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
18229         gdk-pixbuf
18230
18231         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
18232         from Pango markup format
18233         (gtk_label_set_markup_with_accel): ditto but with accelerator
18234         parsing
18235
18236         * gtk/gtkimage.c (gtk_image_expose): reformatting.
18237
18238         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
18239         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
18240         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
18241         call gdk_window_get_origin().
18242
18243         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
18244         implement GDK_PIXBUF_ALPHA_FULL
18245         
18246 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
18247
18248         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
18249         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
18250         g_signal_handlers_disconnect_matched to block/unblock and disconnect
18251         multiple handlers respectively, instead of only treating the
18252         first handler found (bug reported by owen).
18253
18254 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
18255
18256         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
18257
18258         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
18259
18260         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
18261         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
18262         gtk/gtktreeviewcolumn.h: Fixed inline docs.
18263
18264         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
18265         widget.  Needs writing someday.
18266
18267         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
18268         the docs.
18269
18270 2000-10-30  Havoc Pennington  <hp@redhat.com>
18271
18272         * gtk/gtktextview.h, gtk/gtktextview.c:
18273         Rename delete_at_cursor delete_from_cursor, and 
18274         move to move_cursor.
18275
18276 2000-10-30  Havoc Pennington  <hp@redhat.com>
18277
18278         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
18279         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
18280         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
18281         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
18282         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
18283         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
18284         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
18285         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
18286         gtktexttypes.h, gtktextview.c, gtktextview.h:
18287
18288         Massive reindentation and reformatting. Arg alignment and comments
18289         still need fixing in various places.
18290
18291 2000-10-30  Havoc Pennington  <hp@redhat.com>
18292
18293         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
18294         to be named insert_at_cursor and delete_at_cursor so C++ can
18295         handle them.
18296
18297 2000-10-28  Tor Lillqvist  <tml@iki.fi>
18298
18299         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
18300         to get a double directory separator in case the home directory
18301         ends with one. This would cause trouble especially on Windows,
18302         where the path will be confused with the syntax for an an UNC
18303         (network share) path \\server\share\path.
18304         (gtk_rc_add_initial_default_files): Ditto.
18305
18306 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
18307
18308         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
18309
18310         * gtk/gtktextview.c: Use correct marshallers.
18311
18312 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
18313
18314         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
18315         use new iter stuff, and added all the appropriate signals et al.
18316
18317         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
18318         code is internal to gtk only.
18319
18320 2000-10-28  Tor Lillqvist  <tml@iki.fi>
18321
18322         * gtk/gtk.def
18323         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
18324         glib-genmarshal etc.
18325
18326 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
18327
18328         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
18329         parallel builds.
18330
18331 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
18332
18333         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
18334
18335 2000-10-27  Robert Brady  <robert@suse.co.uk>
18336
18337         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
18338         en_GB (British), ia (Interlingua).
18339
18340 2000-10-26  Havoc Pennington  <hp@redhat.com>
18341
18342         * gtk/gtktextiter.c (my_strrstr): fix constness warning
18343
18344         Fixed output of:
18345         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
18346         
18347         * gtk/gtktextsegment.c (char_segment_new): rename
18348         (_char_segment_new_from_two_strings): rename
18349         (_toggle_segment_new): rename
18350         
18351         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
18352         (make_clipboard_widget): make it static
18353         (text_get_func): static
18354         (text_clear_func): static
18355
18356         * gtk/gtkcolorsel.c (adjustment_changed): make this function
18357         static
18358         (hex_changed): make it static
18359         (hsv_changed): make it static
18360         (opacity_entry_changed): make it static
18361
18362         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
18363         (toggle_segment_check_func): rename with _gtk
18364
18365         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
18366         (_widget_segment_new): rename
18367         (_widget_segment_add): rename
18368         (_widget_segment_remove): rename
18369         (_widget_segment_ref): rename
18370         (_widget_segment_unref): rename
18371
18372         * gtk/gtktextmark.c (_mark_segment_new): Rename
18373         _gtk_mark_segment_new   
18374
18375 2000-10-26  Havoc Pennington  <hp@redhat.com>
18376
18377         * gtk/gtkmarshal.list: add new marshallers used by the text widget
18378         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
18379         types
18380
18381         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
18382         marshaller types
18383
18384         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
18385         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
18386         license on these files.
18387
18388         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
18389         work.
18390
18391         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
18392         runtime random number different for each tree, instead of 
18393         a constant I made up.
18394
18395 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
18396
18397         * gtk/Makefile.am: buncha cleanups, kludged build sources
18398         dependencies with a Makefile: oldest-source-stamp dependancy
18399         for the moment. automake is really fighting us here, with
18400         intentionally not allowing user-defined rules or dependancies
18401         prior to it's -include $(DEP_FILES) statement. sucks rocks!
18402
18403         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
18404         to public headers. tehy have a comment stating that they are
18405         "semi-public" aren't included by gtk.h and if enums popup there,
18406         they can be /*< skip >*/-ed.
18407
18408         * gtk/gtktextlayout.h: 
18409         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
18410         added LGPL... <SIGH>
18411
18412 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
18413
18414         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
18415         GtkTreeIter.  Added iterators everywhere.
18416
18417         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
18418
18419         * gtk/gtktreeviewselection.c: Changed to use the iterators.
18420
18421         * gtk/gtktreestore.c: Changed to use the iterators.
18422
18423         * gtk/gtkliststore.c: Commented out the code.  Will convert to
18424         iterators tomorrow.
18425
18426         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
18427         iterators tomorrow.
18428
18429         * gtk/treestoretest.c: Changed to use iterators.
18430
18431         * demos/testgtk/main.c: Moved to use the new iterator system.
18432
18433 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
18434
18435         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
18436         localization misbehaviour.
18437
18438         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
18439         a useless type without copy/free.
18440
18441         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
18442         of GTK_TYPE_CTREE_NODE.
18443
18444 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
18445
18446         * gtk/gtksignal.c:
18447         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
18448         applicable.
18449
18450         * gtk/gtk-boxed.defs (GtkSelectionData): specify
18451         gtk_selection_data_copy and gtk_selection_data_free
18452         do GtkSelectionData work as params in signals.
18453
18454 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
18455
18456         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
18457         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
18458         couldn't they at least give it a non-standard name?
18459         
18460         * gtk/gtktextlayout.c: arg! yet another implementation of
18461         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
18462
18463         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
18464         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
18465         home. now i know this _is_ a conspiracy.
18466
18467         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
18468         ::state-changed.
18469
18470         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
18471         (gtk_accel_group_create_add): marshaller signature fixups.
18472
18473         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
18474         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
18475
18476         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
18477         anymore.
18478
18479 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
18480
18481         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
18482         due to the signal system changes, it wouldn't build currently. to
18483         be fixed soon.
18484
18485         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
18486
18487         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
18488         so it needs gtk_marshal_VOID__ENUM() instead of
18489         gtk_marshal_NONE__UINT().
18490
18491         * gdk/gdk*.c: adapted type registration functions.
18492
18493         * gtk/gtkbindings.c:
18494         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
18495         gone.
18496
18497         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
18498
18499         * gtk/gtkobject.c:
18500         (gtk_object_destroy):
18501         (gtk_object_shutdown): fixed recursion guards. basically we have to
18502         catch the case where any of GObject.shutdown() or gtk_object_destroy()
18503         is called during ::destroy, and avoid recursion there.
18504
18505         * gtk/gtktypeutils.c:
18506         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
18507         boxed_copy/boxed_free. this needs a more general solution based on a
18508         publically installed code-generator utility.
18509
18510         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
18511         glib's gobject has support for that now.
18512         define GtkSignalMarshaller in terms of GSignalCMarshaller.
18513
18514 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
18515
18516         * gtk/gtksignal.[hc]:
18517         * gtk/gtkmarshal.[hc]:
18518         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
18519         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
18520         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
18521         care of that.
18522
18523         * *.c: marshaller name fixups.
18524
18525         * gtk/gtkmarshal.list: added a comment briefing the format.
18526
18527 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
18528
18529         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
18530         compatibility macros here now. more specifically, most of
18531         the API is preserved (yes, _most_, nonwithstanding the
18532         following exceptions listed, the API is stil lHUGE ;)
18533         things that got removed completely:
18534         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
18535         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
18536         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
18537         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
18538         gtk_signal_remove_emission_hook().
18539         non-functional functions variants:
18540         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
18541         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
18542         not supported anymore.
18543         (gtk_signal_compat_matched): new internal function to aid
18544         implementation of the compatibility macros, it  provides
18545         functionality to block/unblock/disconnect handlers based
18546         on func/data.
18547
18548         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
18549
18550         * *.c: adaptions to new type registration API signatures.
18551
18552 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
18553
18554         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
18555
18556 2000-10-25  Robert Brady  <robert@suse.co.uk>
18557
18558         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
18559         gdk_property_delete): If window == NULL, assume the root window.
18560         (restoring the behaviour that was in 1.2).
18561         
18562         * gtk/testtext.c (save_buffer): Allow creation of new files when
18563         saving.
18564
18565         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
18566         calls to read().
18567
18568 2000-10-25  Tor Lillqvist  <tml@iki.fi>
18569
18570         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
18571
18572         * gdk/win32/gdkdrawable-win32.c
18573         * gdk/win32/gdkimage-win32.c
18574         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
18575         X11 backend.
18576
18577         * gdk/win32/gdkcc-win32.c
18578         * gdk/win32/gdkcolor-win32.c
18579         * gdk/win32/gdkfont-win32.c
18580         * gdk/win32/gdkinput-win32.c
18581         * gdk/win32/gdkmain-win32.c
18582         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
18583
18584 2000-10-24  Havoc Pennington  <hp@redhat.com>
18585
18586         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
18587         it a static function
18588
18589         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
18590         redraw text when a tag is applied to it.
18591
18592         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
18593         (gtk_text_tag_affects_nonsize_appearance): private functions to
18594         see if a tag requires various kinds of redraw/layout to be queued
18595         up.
18596
18597         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
18598
18599         * gtk/testtext.c (fill_example_buffer): Put the cursor 
18600         at the start of the buffer, so search works by default
18601
18602         * gtk/gtktextiter.c (lines_match): init match_start always
18603
18604         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
18605         function, get iter at a line + a byte index
18606
18607         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
18608         to set byte position within a line
18609         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
18610
18611 2000-10-23  Havoc Pennington  <hp@redhat.com>
18612
18613         * gtk/testtext.c: Re-enable the "find" dialog
18614
18615         * gtk/testgtk.c: Add test for gdk_drawable_get_image
18616         
18617         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
18618         the arguments to gdk_draw_drawable were in the wrong order
18619         (gdk_window_paint_init_bg): This function was ignoring the
18620         init_region, instead of clipping to it, so the entire backing
18621         pixmap was cleared on every begin_paint()
18622         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
18623         was in here again, the loop kept using the same GtkWindowPaint
18624         over and over.
18625         (gdk_window_begin_paint_region): Fix a bug where we had two
18626         x_offset instead of x_offset and y_offset
18627
18628         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
18629         before we get the image.
18630         (gdk_draw_drawable): get the composite before we draw the drawable.
18631         (gdk_drawable_real_get_composite_drawable): default
18632         get_composite_drawable implementation that returns the drawable 
18633         itself
18634
18635         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
18636         get_composite_drawable virtual function
18637
18638         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
18639         list-walking bug
18640
18641         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
18642         make this work if the source drawable is a GdkDrawableImplX11
18643         instead of a public drawable type. This is really broken; the
18644         problem is that GdkDrawable needs a virtual method get_xid(), but
18645         of course that doesn't work in practice. Enter RTTI.
18646
18647         Also, improve mismatched depth message.
18648
18649         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
18650         GdkPixmap
18651
18652         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
18653         install _gdk_x11_get_image as our implementation of get_image
18654         
18655         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
18656         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
18657
18658         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
18659         gdk_drawable_get_image
18660
18661         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
18662
18663         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
18664         get_image
18665
18666         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
18667         trailing semicolon after for loop
18668
18669 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
18670
18671         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
18672         where font_desc for widget's context lagged widget's font_desc by
18673         one step.
18674
18675 2000-10-22  Tor Lillqvist  <tml@iki.fi>
18676
18677         * gdk/win32/gdkgc-win32.c
18678         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
18679
18680         * gtk/makefile.mingw.in
18681         * gtk/gtk.def: Updates.
18682
18683         * gtk/testgtk.c: sleep() is called _sleep in MS's C
18684         library.
18685
18686         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
18687
18688         * gtk/makefile.msc: Remove
18689
18690         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
18691
18692         * gtk/Makefile.am: Add it.
18693
18694         * configure.in: Generate it.
18695
18696         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
18697         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
18698         something even if not implemented, to satisfy picky MSVC.
18699
18700         Patches by Hans Breuer:
18701         
18702         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
18703         SetBkMode() and SetTextAlign() before calling
18704         pango_win32_render().
18705
18706         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
18707         Set hcliprgn to NULL after destroying it.
18708         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
18709
18710         * gdk/win32/gdkgeometry-win32.c
18711         (_gdk_windowing_window_queue_antiexpose): More effective
18712         implementation.
18713
18714         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
18715         depth as default, not the visual's.
18716
18717         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
18718         against empty title.
18719
18720         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
18721         IMAGE_PRIVATE_DATA.
18722
18723         * gdk/win32/gdkimage-win32.c: Use it.
18724
18725 2000-10-22  Robert Brady  <robert@suse.co.uk>
18726
18727         * configure.in: Check for bind_textdomain_codeset
18728
18729         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
18730         present, make use of it.
18731
18732         Add a translatable string "default:LTR" which, if translated
18733         to "default:RTL", will cause the default direction to be
18734         Right-to-Left.
18735
18736         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
18737         direction if marked as flippable.
18738
18739         * gtk/gtkhscale.c: Mark widget as flippable.
18740         
18741 2000-10-04  Havoc Pennington  <hp@redhat.com>
18742
18743         * gtk/testgtk.c (create_buttons): create some stock buttons
18744         with the default accel group
18745         (create_image): test some new GtkImage features
18746         (make_message_dialog): test GtkMessageDialog
18747         (create_modal_window): fix someone's bizzarro indentation
18748
18749         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
18750         GTK_WIN_POS_CENTER_ON_PARENT. 
18751         Add "destroy with parent" setting, which means the window goes
18752         away with its transient parent.
18753         (gtk_window_get_default_accel_group): get the default accel group
18754         for the window.
18755         (gtk_window_set_destroy_with_parent): set/unset destroy with
18756         parent flag
18757         (gtk_window_read_rcfiles): invalidate icon set caches
18758         after reloading rcfiles 
18759
18760         * gtk/gtkenums.h (GtkWindowPosition): add
18761         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
18762         on its parent window when the dialog is mapped for the first time.
18763
18764         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
18765         a simple message dialog class
18766         
18767         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
18768         handler to emit response signal, and maybe later it would
18769         honor a hide_on_delete flag - though that isn't there yet.
18770         Set border width on the vbox to 2, so we get some padding.      
18771         Use a button box for the action area.
18772         (gtk_dialog_key_press): synthesize a delete event if Esc
18773         is pressed and the GtkWidget key press handler didn't 
18774         handle the escape key.
18775         (gtk_dialog_new_with_buttons): new function creates a dialog
18776         with some default buttons in it.
18777         (gtk_dialog_add_action_widget): add an activatable widget
18778         as a button in the dialog - you can also add a non-activatable
18779         widget by accessing the action area directly.
18780         (gtk_dialog_add_button): add a simple button - stock ID or 
18781         label - to the action area
18782         (gtk_dialog_response): emit response signal
18783         (gtk_dialog_run): block waiting for the dialog, return 
18784         the response. Override normal delete_event behavior, so that 
18785         delete_event does nothing inside gtk_dialog_run().
18786         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
18787         emitted when an action widget is clicked or the dialog gets
18788         delete_event
18789
18790         * gtk/gtk.h: add gtkmessagedialog.h
18791
18792         * gtk/Makefile.am: add gtkmessagedialog.[hc]
18793
18794 2000-10-18  Havoc Pennington  <hp@redhat.com>
18795
18796         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
18797         where any number of empty lines would get skipped
18798
18799         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
18800         edge.
18801
18802         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
18803         warning about invalid iterators (explain more thoroughly)
18804         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
18805
18806         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
18807         big
18808
18809         * demos/*.c: Add error handling
18810
18811         * gtk/gtktextbuffer.c: don't modify const iterators
18812
18813         * gtk/gdk-pixbuf-loader.c: Add full error handling here
18814
18815         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
18816         on file load
18817
18818         * gtk/gtkiconfactory.c: Update to reflect addition of error
18819         handling to gdk-pixbuf loaders
18820
18821 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
18822
18823         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
18824         move to new modularized testgtk.
18825
18826 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
18827
18828         * gtk/gtktreeview.c: Draw the arrows correctly.
18829
18830         * gtk/gtktreemodel.c: Added user docs.
18831
18832         * gtk/gtk.h: remove gtktreedatalist.h.
18833
18834         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
18835         parent when generating my type.
18836
18837         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
18838         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
18839
18840 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
18841
18842         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
18843         GtkTreeModel from object to interface.
18844
18845 2000-10-16  Havoc Pennington  <hp@redhat.com>
18846
18847         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
18848         compilation
18849
18850 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
18851
18852         * gtk/gtktreeselection.c: Add API documentation to all public
18853         functions.
18854
18855         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
18856         functions.
18857
18858 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
18859
18860         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
18861         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
18862         docs to all public functions.
18863
18864         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
18865         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
18866         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
18867         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
18868         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
18869         issue.
18870
18871 2000-10-14  Robert Brady  <robert@suse.co.uk>
18872
18873         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
18874
18875 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
18876
18877         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
18878         values other then G_TYPE_STRING.
18879         * gtk/gtktreeselection.c: Minor commenting updates.
18880         * gtk/gtktreeview.c: Format updates.
18881
18882 2000-10-09  Tor Lillqvist  <tml@iki.fi>
18883
18884         * README.win32: Update.
18885
18886         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
18887         lines that had been deleted by mistake (?).
18888
18889         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
18890         also the case fg==white and bg==black (but still not randomly
18891         coloured cursors). Thanks to Wolfgang Sourdeau.
18892
18893         * gdk/win32/*.c: Silence gcc -Wall.
18894
18895         * gtk/gtk.def: Add missing entry points.
18896
18897         Fixes by Hans Breuer:
18898
18899         * gdk/makefile.msc
18900         * gdk/win32/makefile.msc: Update.
18901
18902         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
18903         some MSVC thing, presumably), cause breakpoint on failures. Add
18904         GDK_NOR case. Call g_log_set_always_fatal.
18905
18906         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
18907         should be pased by reference.
18908         
18909         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
18910         
18911         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
18912
18913         * gdk/win32/gdkevents-win32.c
18914         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
18915
18916         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
18917         implementation object.
18918
18919         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
18920         not just windows.
18921         
18922         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
18923         Use the wrapper object.
18924         
18925 2000-10-06  Havoc Pennington  <hp@redhat.com>
18926
18927         * Makefile.am (SRC_SUBDIRS): contrib subdir
18928
18929         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
18930         so it can be used in Xlib version
18931
18932         * demos/testpixbuf.c (update_timeout): error checking from 1.0
18933         tree
18934
18935         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
18936         change from 1.0 tree that returns first frame of animation
18937         if the loaded file is an animation.
18938
18939         * contrib: add new directory to hold stuff that comes with GTK+
18940         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
18941         
18942         * configure.in: add contrib/*
18943
18944 2000-10-05  Havoc Pennington  <hp@redhat.com>
18945
18946         * demos/testpixbuf-save.c: add pixbuf save test
18947
18948         * demos/Makefile.am: add testpixbuf-save.c
18949
18950 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
18951
18952         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
18953         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
18954         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
18955         * gtk/gtktreeselection.[ch]: Replaced
18956         "node_selected"/"node_unselected" signal with "selection_changed"
18957         signal.
18958
18959 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
18960
18961         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
18962         tree widget.
18963
18964 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
18965
18966         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
18967         drawing.
18968
18969 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
18970
18971         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
18972         Move list pointer forwards before removing item from
18973         list. (Crash reported by Salmaso Raffaele)
18974
18975         * gdk/gdkwindow.h: Remove spurious trailing ,
18976
18977         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
18978         dependencies on uninstalled libraries, sorry folks.
18979
18980 2000-10-04  Havoc Pennington  <hp@redhat.com>
18981
18982         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
18983         gtk/gtkiconfactory.c: Fix copyrights    
18984
18985         * demos/testpixbuf.c: add inline pixbuf test
18986         
18987 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
18988
18989         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
18990         Add gdk_window_iconify.
18991
18992         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
18993         (gdk_window_set_geometry_hints): Add win_gravity
18994         to geometry structure.
18995
18996         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
18997         Implement _NET_WM_PING.
18998
18999         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
19000         Set _NET_WM_PID on the client leader.
19001
19002         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
19003         Handle UTF-8 better.
19004
19005         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
19006         UTF-8 better, set _NET_WM_NAME as well. Only set
19007         icon name if it hasn't previously been explicitely 
19008         set.
19009
19010 2000-10-03  Havoc Pennington  <hp@redhat.com>
19011
19012         * gtk/testtextbuffer.c: clean up trailing whitespace,
19013         add extensive tests for tag toggle iteration.
19014         
19015         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
19016         distance
19017
19018         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
19019         optimize case where the tag root is on level 1
19020         (gtk_text_line_previous_could_contain_tag): attempt to implement
19021         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
19022         functionality
19023
19024         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
19025         Implement this, though not very efficiently.
19026
19027         * gtk/gtktextiterprivate.h: reformat
19028
19029         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
19030         iterator
19031
19032         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
19033         this to properly revalidate the iterators.
19034
19035         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
19036         properly at the end of the line (and therefore on empty lines)
19037
19038         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
19039         maybe we should return a value...
19040
19041 2000-10-03  Tor Lillqvist  <tml@iki.fi>
19042
19043         * config.h.win32: Guard definition of alloca(). glib.h now handles
19044         that.
19045
19046         * gdk/gdk.def
19047         * gtk/gtk.def: Add new entry points.
19048
19049         Changes just to make GTK+ build without errors on Win32. No hope
19050         of it working in its current state, though...:
19051         
19052         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
19053         some functions from the X11 backend, just to make GTK+ build.
19054
19055         * gdk/makefile.mingw.in
19056         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
19057         number. Add new object files.
19058
19059         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
19060         GetMessageTime to get timestamp (where on X11 uses
19061         gdk_x11_get_server_time()).
19062
19063 2000-10-02  Havoc Pennington  <hp@pobox.com>
19064
19065         * gtk/gtktextview.c: text_window_* weren't static and should have
19066         been.
19067         Start work on child widgets; not yet complete, syncing to 
19068         office computer.
19069
19070         * gtk/gtktextchild.h: change this to contain a public interface,
19071         starting work on child interfaces.
19072         * gtk/gtktextchildprivate.h: move private interfaces here
19073
19074         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
19075
19076         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
19077         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
19078         gtk/gtktextmark.c: copyright notices
19079
19080         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
19081         internal functions      
19082
19083         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
19084         internal function
19085
19086         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
19087         Reformatting    
19088
19089 2000-09-30  Havoc Pennington  <hp@pobox.com>
19090
19091         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
19092         NULL start/end pointers
19093
19094         * gtk/gtktextbuffer.c: Write some docs
19095         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
19096         NULL, so you can just check whether there's a selection.        
19097
19098         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
19099         cleanup_line or segments_changed ourselves, it gets done 
19100         in unlink_segment
19101
19102         * gtk/gtktextmark.h:
19103         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
19104         
19105         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
19106
19107         * gtk/gtktextmark.c: delete some more old Tk cruft
19108
19109         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
19110         mark before removing it, so we can emit MARK_DELETED with a valid
19111         pointer.
19112         (gtk_text_buffer_mark_set): hold ref across signal emission
19113
19114         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
19115         whining about attempts to delete special marks
19116
19117         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
19118         underscore, since it's internal.
19119
19120         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
19121         now implemented in terms of iterators in gtktextiter.h
19122
19123         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
19124         New function, destructively sets contents of buffer. Also 
19125         a convenient way to clear the buffer by setting text to ""
19126
19127         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
19128         multiline string literal
19129
19130         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
19131         text changes.
19132
19133         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
19134         is not dereferenceable
19135         (gtk_text_iter_forward_lines): fix return value
19136
19137 2000-09-29  Havoc Pennington  <hp@redhat.com>
19138
19139         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
19140
19141         * gtk/gtktextview.c: Implement drag thresholding; change functions 
19142         that set border window size to have nicer name
19143         (gtk_text_view_mark_set_handler):  Fix this to have the 
19144         right signature.
19145
19146         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
19147
19148         * gtk/testtext.c: Update with API changes, put line numbers on 
19149         both sides.
19150         
19151         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
19152         with this
19153
19154         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
19155         pixbuf; delete a big block of #if 0 Tk code
19156
19157         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
19158         insert_pixmap with insert_pixbuf
19159
19160 2000-09-29  Martin Baulig  <baulig@suse.de>
19161
19162         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
19163         confusion with the GdkPixbuf of the GNOME 1.x platform.
19164
19165 2000-09-29  Havoc Pennington  <hp@pobox.com>
19166
19167         * gtk/gtktextview.c: Implement the side windows.
19168
19169         * gtk/testtext.c: Implement simple line numbering in the 
19170         left side window; seems to make scrolling sloooow. Oops.
19171         Also, cursor blink is for some reason causing redraws
19172         of the line numbers. Should investigate...
19173
19174 2000-09-28  Havoc Pennington  <hp@redhat.com>
19175
19176         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
19177         scrolling child windows, and draw focus rectangle properly.
19178         
19179         (gtk_text_view_buffer_to_window_coords):
19180         Coordinate transformation to deal with all these freaking windows
19181         and offsets
19182         (gtk_text_view_window_to_buffer_coords): transform the other way
19183
19184         * gtk/testtext.c (create_buffer): Update to match Pango API change
19185
19186         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
19187         anonymous tags
19188         (foreach_unref): don't emit remove signal from finalize, just
19189         set tag's parent to NULL
19190
19191 2000-09-26  Havoc Pennington  <hp@redhat.com>
19192
19193         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
19194         Fix some warnings       
19195
19196 2000-09-26  Havoc Pennington  <hp@redhat.com>
19197
19198         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
19199         headers into the private header list
19200
19201         * Makefile.am (pkgconfig_DATA): install pkg-config files
19202
19203         * configure.in: add pkg-config files
19204
19205         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
19206
19207         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
19208         outstanding icon caches on theme change.
19209
19210         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
19211         important types:
19212
19213         (GtkIconSource): Specification for creating a pixbuf 
19214         appropriate for a direction/state/size triplet from 
19215         a source pixbuf or filename
19216
19217         (GtkIconSet): List of GtkIconSource objects that are used to
19218         create the "same" icon (e.g. an OK button icon), and cache for
19219         rendered icons
19220
19221         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
19222         up the icon set for a given stock ID.  GTK maintains a stack of
19223         GtkIconFactory to search, and applications or libraries can add
19224         additional icon factories on top of the stack
19225         
19226         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
19227         the set of GtkIconSource specified for a given stock ID into 
19228         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
19229         RcStyle, under the specified stock ID.
19230
19231         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
19232         render_icon used to derive a GdkPixbuf from a GtkIconSource.
19233         This allows people to theme how prelight, insensitive, etc. are
19234         done.
19235
19236         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
19237         icon factories for a style, and return the resulting 
19238         icon set if any.
19239
19240         (gtk_style_render_icon): Render an icon using the render_icon 
19241         method in the GtkStyleClass.
19242
19243         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
19244         Use the style for a given widget to look up a stock ID, get the
19245         icon set, and render an icon using the render_icon method 
19246         of the style
19247
19248         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
19249         (contains information about a stock item), the built-in stock item
19250         IDs, and functions to add/lookup stock items.
19251
19252         * gtk/stock-icons/*: Stock icons that come with GTK
19253
19254         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
19255         a button based on a GtkStockItem
19256         (gtk_button_new_accel): Takes a uline string and accel group, and
19257         installs the accelerator.
19258
19259         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
19260         image-display widget.
19261
19262 2000-09-25  Havoc Pennington  <hp@redhat.com>
19263
19264         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
19265
19266         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
19267         Fix a bug when removing node data, we didn't properly 
19268         re-splice the linked list after removing the data.
19269
19270         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
19271         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
19272
19273         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
19274
19275         * gtk/gtktextlayout.c (set_para_values): Set tab array 
19276         for the layout from the GtkTextTag.
19277
19278         * gtk/gtktexttypes.h: delete tab and search cruft, 
19279         remove g_convert() in favor of GLib version
19280
19281         * gtk/gtktexttypes.c: remove tab implementation from here,
19282         move to Pango
19283
19284         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
19285         tab stuff using new PangoTabArray from Pango
19286
19287         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
19288         unused border_width stuff
19289
19290 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
19291
19292         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
19293         glib) and now useless utf_to_latin1() latin1_to_utf()
19294
19295         * gtk/gtktextview.[ch]: Change ::move_insert and
19296         ::delete_text action signals to ::move and ::delete;
19297         create the signals with the right enumeration type,
19298         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
19299         C-v bindings, change Home, End to move to beginning/end
19300         of line, Add C-Home C-End to move to beginning/end
19301         of buffer. Change ::cut_text to ::cut_clipboard, etc;
19302         combine ::scroll_text into ::move; use new GtkSelectionData
19303         functions to simplify DND text handling.
19304         
19305         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
19306         deletion enumerations here, rename enumeration values to 
19307         be consistently plural.
19308
19309         * gtk/gtktextbuffer.c: Use new clipboard interfaces
19310         for cut/copy/paste and primary selection.
19311
19312         * gtk/gtktextbuffer.[ch]: Remove excess time and
19313         'interactive' arguments from cut/copy/paste;
19314         rename cut to cut_clipboard, etc; remove
19315         gtk_text_buffer_get_clipboard_contents().
19316
19317         * gtk/gtktextlayout.[ch]: Add 
19318         gtk_text_layout_move_iter_to_line_end() to move the iter to 
19319         line ends.
19320
19321         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
19322         Functions to set or get a UTF-8 string on the selection
19323         data.
19324
19325         * gtk/gtkclipboard.[ch]: New, simplified selection handling
19326         interfaces.
19327
19328         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
19329         created widgets - one of these is useless if we don't.
19330
19331         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
19332         a public function clear all targets registered for the
19333         widget.
19334
19335         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
19336         Never call gtk_widget_realize() - that was just asking
19337         for bizarre side-effects.
19338
19339         * gtk/gtkselection.c (gtk_selection_owner_set): Call
19340         gdk_selection_owner_set even if the widget is the
19341         same so that we reliably update the timestamp on
19342         the server.
19343
19344         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
19345         gdk_x11_get_server_time() function.
19346         
19347         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
19348         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
19349         Add some tricky filtering on serial numbers for
19350         selection clear events to fix up long-standard
19351         race condition FIXME's in gtkselection.c.
19352
19353         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
19354         routines to convert from utf8 to compound text or
19355         STRING and from a text property to UTF-8.
19356
19357         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
19358         a convenience function gdk_get_current_event_time().
19359
19360         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
19361         and free selection_data->data properly
19362
19363 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
19364
19365         * gtk/gtkthemes.c: Remove some unecessary includes.
19366
19367 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
19368
19369         * gtk/gtktextdisplay.c
19370         * gtk/gtktextlayout.c
19371         * gtk/gtktexttag.c
19372         * gtk/gtktexttag.h
19373         * gtk/testtext.c: Change the overstrike property to strikethrough,
19374         to closer match pango.
19375
19376 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
19377
19378         * gtk/gtktextview.c: Fix up visibility so that focus,
19379         cursor_visible and blink interact properly.  Reenable cursor blink
19380         which had been roughly disabled. Make blink and focus
19381         properly per-view.
19382
19383         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
19384         Add a flag for whether to display insertion cursor and
19385         a function to set the flag.
19386
19387         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
19388         get_line_y() to get_line_yrange(), to be a bit more generally
19389         useful.
19390
19391 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
19392
19393         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
19394           do stop_navigating_submenu, to clear last timeout properly.
19395           Also in gtk_menu_motion_notify move ignore_enter above
19396           the conditional to make it always happen as suggested by Owen
19397
19398 2000-09-07  Tor Lillqvist  <tml@iki.fi>
19399
19400         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
19401
19402         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
19403         w32api headers.
19404
19405         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
19406         declarations.
19407
19408         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
19409         (gdk_win32_get_colormap): A line had been deleted by mistake.
19410
19411         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
19412         (gdk_event_translate): Handle more virtual keycodes to be able to
19413         generate GDK events for Control-comma, Control-period, etc.
19414
19415         * gtk/gtk.def: Add some missing entry points.
19416
19417 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
19418
19419         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
19420         Doc comment fixing. (Mostly non-matching parameter names.)
19421
19422         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
19423         comments a little to avoid looking like a doc comment.
19424
19425         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
19426         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
19427         conversions be changed to GError?)
19428
19429         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
19430         Move private #defines into .c file.
19431
19432         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
19433         order of argument addition, remove duplicates.
19434
19435         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
19436         parent class is FrameClass, not BinClass.
19437
19438         * gtk/gtk.h: Add gtkinvisible, which was missing.
19439         (It's occasionalyl useful for client apps, if seldom.)
19440
19441         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
19442         #define.
19443
19444 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
19445
19446         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
19447         coordinates when creating window, instead of GDK-space
19448         coordinates. (Avoid BadValue on too large windows.)
19449
19450 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
19451
19452         * configure.in (use_mmx_asm): Remove conftest* after use along the
19453         lines of AC_TRY_COMPILE.        
19454         
19455         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
19456         of g_dirname, which is deprecated.
19457         (gtk_rc_parse_any): Removed calls to
19458         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
19459
19460         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
19461         Removed calls to g_hash_table_{freeze,thaw}, as they are
19462         deprecated now.
19463
19464         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
19465         instead of g_basename.
19466         
19467 2000-09-04 Elliot Lee <sopwith@redhat.com>
19468         
19469         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
19470         ANSI warning.
19471
19472 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
19473
19474         * gtk/gtkwidget.h:  Add some documenting comments about 
19475           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
19476           just as owen said on irc.
19477
19478         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
19479           set HAS_DEFAULT.  Only set it if there isn't another window
19480           holding it (a focus window which RECEIVES_DEFAULT) and only unset
19481           it if the widget is not the focused window with RECEIVES_DEFAULT.
19482           This fixes weird double default bugs in dialogs which has things
19483           call gtk_window_set_default at times.
19484
19485 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
19486
19487         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
19488         Nils Barth and David Santiago to improve submenu
19489         navigation. The patch does this by creating a triangular
19490         region from the point where the pointer leaves the
19491         menu to the submenu.  While the pointer is in
19492         that region and a timeout has not expired, events 
19493         that would cause the active submenu to change are
19494         ignored.
19495
19496 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
19497
19498         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
19499         moving a toplevel window immediately after sizing it would
19500         result in it being sized back to the old size since 
19501         impl->width, impl->height aren't updated until we hear
19502         back from the server. There is still a (longstanding) bug
19503         here that gdk_window_get_size() will give the wrong size
19504         until we do hear back.
19505
19506 2000-08-31  Havoc Pennington  <hp@redhat.com>
19507
19508         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
19509         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
19510         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
19511         Rename GtkTextStyleValues to GtkTextAttributes
19512
19513 2000-08-31  Havoc Pennington  <hp@pobox.com>
19514
19515         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
19516         for rapid testing whether an iterator is the end iterator
19517         (gtk_text_btree_new): init end line cache
19518         (gtk_text_line_is_last): use fast cached line to 
19519         see if we're the last line.
19520         (get_last_line): use cached line here too, should 
19521         speed up some random unrelated code.
19522         
19523 2000-08-30  Havoc Pennington  <hp@pobox.com>
19524
19525         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
19526         signals.
19527
19528         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
19529         delete_text signals. This allows the signals to be used for
19530         implementing undo.
19531
19532         * gtk/gtktextbuffer.c: Change signal handler signatures; 
19533         provide "interactive" argument when emitting insert_text or
19534         delete_text signal.
19535         
19536 2000-08-30  Havoc Pennington  <hp@pobox.com>
19537
19538         * gtk/gtktextbuffer.c: Docs
19539
19540 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
19541
19542         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
19543         from switch statements, since Tor removed the enumeration
19544         value.
19545         
19546         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
19547         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
19548
19549 2000-08-29 Elliot Lee <sopwith@redhat.com>
19550         * */*.h: Use G_GNUC_CONST.
19551
19552 2000-08-27  Havoc Pennington  <hp@pobox.com>
19553
19554         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
19555         minor indentation fixes, inserted some FIXME about stuff I
19556         realized was broken while documenting it.
19557         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
19558         GTK convention  
19559
19560 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
19561
19562         * gtk/testgtk.c (create_styles): Fix double free of
19563         font desc.
19564
19565 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19566
19567         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
19568         
19569         * gtk/testgtk.c (create_styles): Add a test for modifying
19570         the style through gtk_widget_modify_*.
19571
19572         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
19573         a function to get the current modifier style.
19574
19575         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
19576         of the passed in GtkRcStyle instead of ref'ing it.
19577
19578         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
19579
19580 2000-08-20  Tor Lillqvist  <tml@iki.fi>
19581
19582         * gdk/gdkimage.h
19583         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
19584         shared memory image+pixmap GdkImage type, or
19585         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
19586         I am dropping that.
19587
19588         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
19589         actually call gtk_init_abi_check(), passing also
19590         sizeof(GtkWindow). Ditto for gtk_init_check(). 
19591
19592         * gtk/gtk.def
19593         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
19594         New functions, used to check that the GTK+-using code has been
19595         compiled using the correct compiler and switches. In particular,
19596         with gcc one has to use the -fnative-struct switch as GTK+ is
19597         compiled with that.
19598
19599 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
19600
19601         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
19602         ->prev fields when merging lists. (Found simultaneously
19603         by Pawel Salek and Jakub Jelinek)
19604
19605 2000-08-12  Tor Lillqvist  <tml@iki.fi>
19606
19607         * gdk/gdk.def
19608         * gtk/gtk.def: Add missing entries.
19609
19610         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
19611         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
19612
19613         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
19614         function. Dummy implementation at this point.
19615
19616         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
19617         rules. Undefine GTK_COMPILATION when compiling the test programs.
19618         
19619         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
19620
19621 2000-08-11  Tor Lillqvist  <tml@iki.fi>
19622
19623         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
19624         to convert back and forth from UTF-8 and the "system" (or "current
19625         locale") charset when necessary. Indentation/spacing cleanup.
19626
19627 2000-08-10  Havoc Pennington  <hp@redhat.com>
19628
19629         * Makefile.am (snapshot): Change the format of the snapshot
19630         version to match glib
19631
19632         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
19633         from EXTRA_DIST since it doesn't seem to exist
19634
19635 2000-08-10  Tor Lillqvist  <tml@iki.fi>
19636
19637         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
19638         version of the directory name (not the UTF-8 one) when building
19639         the path name to stat().
19640
19641 2000-08-03  Elliot Lee  <sopwith@redhat.com>
19642
19643         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
19644         PANGO_ATTR_SHAPE set.
19645
19646 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
19647
19648         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
19649         Peter Osterlund to simplify the code while keeping the
19650         functionality the same.
19651
19652 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
19653
19654         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
19655         is_viewable() test further inside the function, since removing the 
19656         window from the redraw list without clearing ->update_area
19657         was also very broken.
19658
19659 2000-08-02  Tor Lillqvist  <tml@iki.fi>
19660
19661         * configure.in: Check for <unistd.h>.
19662
19663 2000-08-01  Martin Baulig  <baulig@suse.de>
19664
19665         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
19666         to display the message that this is a development version of GTK+.
19667
19668 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
19669
19670         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
19671         was depending on widget->allocation instead of the width of text_area,
19672         which was incorrect for subclasses like GtkSpinButton.
19673
19674         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
19675         with width == 1 tests that should be width == -1.
19676
19677 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
19678
19679         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
19680         (broken, Elliot, every single window blank on X) custom code with call
19681         to gdk_window_is_viewable() which a) prevents code duplicate and
19682         b) works. 
19683
19684 2000-07-31  Elliot Lee  <sopwith@redhat.com>
19685
19686         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
19687         to get the GDK_PARENT_ROOT() macro to work.
19688         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
19689         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
19690         of, windows that aren't shown.
19691         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
19692         pointer grab stuff.
19693
19694 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
19695
19696         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
19697           s/gtk_main_iteration/g_main_iteration/
19698
19699           Did this already in change:
19700                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
19701           don't know how it got reverted.
19702
19703 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
19704
19705         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
19706         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
19707
19708         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
19709         not gdk_pixbuf.
19710
19711 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
19712
19713         * configure.in,po/{sp,sr}.po: Added Serbian files
19714
19715 2000-07-30  Tor Lillqvist  <tml@iki.fi>
19716
19717         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
19718
19719         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
19720         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
19721         GIOChannel implementation.
19722
19723         * gdk/win32/gdkinput.c
19724         * gdk/win32/gdkpango-win32.c: Update license name here, too.
19725
19726         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
19727         definition to match prototype.
19728
19729         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
19730
19731 2000-07-27  Elliot Lee  <sopwith@redhat.com>
19732
19733         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
19734         function, to allow handling image formats that cannot be detected
19735         by looking at content alone.
19736
19737 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
19738
19739         * docs/tutorial/*.gif *.jpg *.eps
19740           Update these to the same look-n-feel.
19741           Why does including images in DocBook suck so badly?
19742
19743 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
19744
19745         * gtk/gtktable.c: applied patch from Phil Thompson
19746         <phil@river-bank.demon.co.uk> that enables space settings for
19747         the last row/columns as well.
19748
19749 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
19750
19751         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
19752         updates the license headers to the GNU Lesser General Public License,
19753         as well as updating the copyright year to 2000.
19754
19755 2000-07-26  Robert Brady  <rwb197@zepler.org>
19756
19757         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
19758           and po/Makefile, was installing and looking for them under gtk20
19759           and gtk2 respectively.
19760
19761 2000-07-25  Havoc Pennington  <hp@redhat.com>
19762
19763         * gtk/testtext.c: Comment out some stuff that depends on the rest
19764         of my patches.
19765
19766 2000-07-25  Havoc Pennington  <hp@redhat.com>
19767
19768         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
19769         buffer
19770
19771 2000-07-25  Havoc Pennington  <hp@redhat.com>
19772
19773         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
19774         widget changes.
19775
19776         * gtk/gtktextview.h: To be consistent with usage of "line"
19777         throughout the API to mean "newline-terminated thingy", change
19778         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
19779         to MOVEMENT_LINE.
19780
19781         (GtkTextView): Add flags for default editability, and whether to
19782         show the cursor. Add functions to get/set that. Add 
19783
19784         (gtk_text_view_get_iter_location): new function
19785
19786         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
19787         gtktextlayout.h
19788         (g_convert): Add g_convert temporarily, will go in glib in a bit
19789         
19790         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
19791         GtkTextTagTableForeach instead of brokenly using GHFunc.
19792         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
19793
19794         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
19795         moved to public header.
19796
19797         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
19798         "invisible", since "elide" was a bad name.
19799         (gtk_text_tag_get_priority): Added
19800
19801         (GtkTextStyleValues): put this in public header, along with
19802         functions to use it.
19803
19804         * gtk/gtktextmarkprivate.h: Include more headers, since we no
19805         longer include gtktextbtree.h.
19806
19807         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
19808         gtk_text_mark_deleted
19809
19810         * gtk/gtktextlayout.h: Don't include the "really private" headers,
19811         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
19812         to make this possible. Now we only need to install
19813         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
19814         (However the Makefile.am isn't changed yet because of the
19815         logistics of merging gtk-hp-patches piecemeal)
19816
19817         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
19818         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
19819         gtk_text_iter_get_line is now used in the public API for a
19820         different purpose.
19821
19822         * gtk/gtktextiter.h: Clean up function names to be more
19823         consistent. Always call char offset "offset" and byte index
19824         "index". A "line" is always a line number. 
19825
19826         (gtk_text_iter_is_last): new function, more efficient than 
19827         the existing way to check
19828         (gtk_text_iter_is_first): new function, also more efficient
19829
19830         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
19831
19832         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
19833         gtk_text_iter_forward_char, etc.
19834
19835         (gtk_text_iter_forward_to_tag_toggle): Renamed from
19836         forward_find_tag_toggle, since this isn't a linear search
19837
19838         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
19839
19840         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
19841         New functions, search for a buffer substring.
19842
19843         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
19844         interactive and default editable (since we need to store that info
19845         until we receive the selection data).
19846
19847         Remove all the _at_char and at_line etc. versions of functions;
19848         only have iterator versions.
19849
19850         Add _interactive() versions of functions, that consider the
19851         editability of text. (FIXME add interactive flag to the 
19852         insert/delete signals per Darin's suggestion)
19853
19854         (gtk_text_buffer_get_tag_table): new function, demand-creates the
19855         tag table if necessary
19856
19857         Remove declaration of gtk_text_buffer_get_iter_from_string
19858
19859         (_gtk_text_buffer_get_btree): private/internal function, added.
19860         
19861
19862         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
19863         (gtk_text_line_is_last): new function
19864
19865 2000-07-25  Havoc Pennington  <hp@redhat.com>
19866
19867         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
19868         using GtkProgressBar. See Changes-2.0.txt for details.
19869
19870         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
19871         "pulse_step" which are the equivalent of
19872         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
19873         Implement new API.
19874         
19875         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
19876         (use_text_format) to mark whether text set on the progress bar is
19877         a format string. Deprecate entire GtkProgress interface.
19878
19879         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
19880         (gtk_progress_build_string): make this a no-op if use_text_format
19881         is FALSE
19882
19883         * docs/Changes-2.0.txt: Describe progress bar changes.
19884
19885 2000-07-25  Tor Lillqvist  <tml@iki.fi>
19886
19887         * Makefile.am: Include the build directory.
19888
19889         * configure.in: Generate build/Makefile, build/win32/Makefile,
19890         gdk/, gdk/win32/, and gtk/makefile.mingw.
19891
19892         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
19893         Add GETTEXT_PACKAGE.
19894         
19895         * gdk/gdk.def
19896         * gtk/gtk.def: Updates.
19897
19898         * gdk/gdkfont.h
19899         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
19900         need them any longer.
19901
19902         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
19903
19904         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
19905         PANGOWIN32_LIBS and gdk_pixbuf.
19906
19907         * gdk/win32: Compiles, but no doubt doesn't work at all.
19908
19909         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
19910
19911         * gdk/win32/gdkinput.c: New file, temporarily.
19912         
19913         * gdk/win32/gdkinput-win32.h: New file
19914
19915         * gdk/win32/gdkinputprivate.h: Remove.
19916
19917         * gdk/win32/gdkpango-win32.c: New file.
19918
19919         * gtk/makefile.mingw.in: New file
19920
19921         * gtk/makefile.cygwin: Removed
19922         
19923         * gtk/Makefile.am: Update accordingly.
19924
19925         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
19926         made externally visible.
19927
19928         * gtk/gtkmain.c: Use it.
19929         
19930         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
19931         is enough.
19932
19933         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
19934
19935 2000-07-24 Elliot Lee <sopwith@redhat.com>
19936         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
19937         individual backends already.
19938         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
19939         again. Yes, there really is a good reason for this, if you are using the gdkregion
19940         internals, and if you're not, why do you care?
19941         * gdk/gdkwindow.c: Fix inverted condition
19942         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
19943         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
19944         * gtk/gtkrange.c: Redraw trough when moving.
19945         * gtk/gtktypeutils.c: Fix warning by adding const cast.
19946         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
19947
19948 2000-07-23  Tor Lillqvist  <tml@iki.fi>
19949
19950         * configure.in: Check for mkstemp and sigsetjmp. Output
19951         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
19952
19953         More work on GDK for Win32. Still in an intermediate state.
19954
19955         * gdk/makefile.cygwin
19956         * gdk/win32/makefile.cygwin: Removed.
19957         
19958         * gdk/makefile.mingw.in
19959         * gdk/win32/makefile.mingw.in: New files.
19960
19961         * gdk/Makefile.am
19962         * gdk/win32/Makefile.am: Generate and distribute them.
19963
19964         * gdk/win32/gdkwindow-win32.h
19965         * gdk/win32/gdkdrawable-win32.h
19966         * gdk/win32/gdkpixmap-win32.h: New files.
19967
19968         * gdk/win32/gdkcolor-win32.c
19969         * gdk/win32/gdkcursor-win32.c
19970         * gdk/win32/gdkdrawable-win32.c
19971         * gdk/win32/gdkgc-win32.c
19972         * gdk/win32/gdkimage-win32.c
19973         * gdk/win32/gdkprivate-win32.h
19974         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
19975         Rename fields and variables called xcursor, xid, etc (these names
19976         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
19977
19978 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
19979
19980         * gtk/gtkentry.[ch]: Fix some problems with vertical
19981         alignment.
19982
19983         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
19984         char/byte confusion.
19985
19986 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
19987
19988         * gtk/gtktextview.c (changed_handler): Fix bug where
19989         redraw wasn't being done properly when height of
19990         dirty region changed.
19991
19992         * demos/Makefile.am: Remove various references to
19993         -lgmodule
19994
19995 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
19996
19997         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
19998         PangoAttrShape to reserve space for pixmaps, add 
19999         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
20000         in the display functions.
20001         
20002         * gtk/testgtk.c (create_layout): Set some more exotic
20003         scrolled window options
20004
20005         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
20006         Add function to set the shadow type of a window, to allow
20007         putting a shadow around widgets such as GtkLayout or GnomeCanvas
20008         which don't draw their own frame.
20009
20010 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
20011
20012         * docs/tutorial/package-db-tutorial.sh: New file for
20013           packaging DocBook format tutorial
20014
20015 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
20016
20017         * docs/tutorial/gtk-tut.sgml: Minor updates
20018
20019         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
20020
20021 2000-07-19  Tor Lillqvist  <tml@iki.fi>
20022
20023         * gtk/gtksignal.c: Fix C++ comment.
20024
20025         * gtk/gtkimmulticontext.c
20026         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
20027         don't return value from void functions.
20028
20029         * gtk/gtk.def: Add gtk_rc_style_unref.
20030
20031 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
20032
20033         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
20034         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
20035         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
20036         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
20037         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
20038         gtk/gtktypeutils.h: Include files outside of the extern "C"
20039         block. Makes some C++ compiler happy. Reported by Denis Vakatov
20040         <vakatov@peony.nlm.nih.gov>.
20041
20042 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
20043
20044         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
20045           Completes first pass. Hurrah!
20046
20047 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
20048
20049         * docs/tutorial/gtk-tut.sgml: More clean ups.
20050
20051 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
20052
20053         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
20054         paint the background of the text area which was accidentally
20055         removed at some point.
20056
20057         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
20058           
20059          - Move most of the functionality from the theme vtable
20060            into GtkRcStyleClass and GtkStyleClass. The moved
20061            vtable functions were changed a bit in the move to
20062            work better in their new home.
20063
20064          - Get rid of the engine and engine_data fields from
20065            GtkRcStyle and GtkStyle; instead the theme
20066            engine derives theme-specific subclasses of GtkRcStyle
20067            and GtkStyle
20068
20069          - Add extra dlsym() found entry point to themes,
20070            theme_create_rc_style().
20071
20072         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
20073         in gtk_style_real_copy.
20074
20075         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
20076         to register a type associated with an engine. (The engine
20077         won't be unloaded as there is an instance of the type.)
20078
20079
20080 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
20081
20082         * docs/tutorial/gtk-tut.sgml: Clean ups.
20083
20084 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
20085
20086         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
20087           of cleaning up to do.
20088
20089 2000-07-15  Tor Lillqvist  <tml@iki.fi>
20090
20091         * gdk/testgdk.c: New file, quick hack to test backends for
20092         pixel-by-pixel correctness of the most simple graphic operations.
20093
20094 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
20095
20096         * Really release 1.3.1
20097         
20098         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
20099         include structure.
20100
20101 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
20102
20103         * Released 1.3.1
20104
20105 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
20106
20107         * gtk/gtktextlayout.c: use FALSE for size_only most
20108         of the time when calling gtk_text_layout_get_line_display()
20109         to avoid causing double reshapes when a redraw follows
20110         immediately after.
20111
20112 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
20113
20114         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
20115         appropriate region and gdk_window_process_updates() so trough
20116         updating doesn't lag behind the window being scrolled.
20117
20118         * gdk/gdkgc.c: Make parent_class pointer static.
20119          
20120 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
20121
20122         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
20123         include <string.h>.
20124          
20125         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
20126         cut-and-paste error in computing memory offset for 4 channels.
20127
20128 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
20129
20130         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
20131         gtk_rc_append_default_pixmap_path(), since it wasn't
20132         adding an interesting path and we don't have a meaningful
20133         default for this value.
20134
20135 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
20136
20137         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
20138         gtk-config to gtk-config-2.0 move gtk_.m4 to
20139         gtk-2.0.m4
20140
20141         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
20142         gdk/Makefile.am demos/Makefile.am: Change 
20143         library names to libgtk-1.3.la, etc, so that we
20144         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
20145
20146         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
20147         gdk/Makefile.am gdk/x11/Makfile.am
20148         Move include files into /usr/include/gtk-2.0, 
20149         /usr/lib/gtk-2.0/include/
20150          
20151         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
20152         gtk/gtkintl.h: Change package for gettext from 
20153         gtk+ to gtk20. Put hack in autogen.sh to modify
20154         po/Makefile.in.in after gettextize to make this
20155         possible.
20156
20157         * gtk+.spec: Some updates, not tested.
20158
20159         * gdk-pixbuf/Makefile.am: Move loaders into
20160         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
20161
20162         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
20163         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
20164         to THEMENAME/gtk-2.0/. Move engine directory  to
20165         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
20166         
20167 2000-07-12  Tor Lillqvist  <tml@iki.fi>
20168
20169         Win32 changes, still doesn't build though.
20170
20171         * gdk/makefile.cygwin
20172         * gdk/win32/makefile.cygwin
20173         * gtk/makefile.cygwin: Updates.
20174
20175         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
20176         default values for fg and bg pixel as X11 does (0 and 1), not
20177         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
20178         Use 0 for pen width by default (treated as 1 anyway later, but for
20179         apps that might check the value in the GdkGC).
20180         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
20181         interface to gdk_gc_predraw and _postdraw.
20182
20183         * gdk/win32/gdkwin32.h
20184         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
20185
20186         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
20187         extraneous semicolon.
20188
20189         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
20190
20191         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
20192         not the Win32 bitspixel value.
20193
20194         * gdk/win32/gdkcc-win32.c:
20195         * gdk/win32/gdkcolor-win32.c 
20196         * gdk/win32/gdkprivate-win32.h
20197         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
20198         GDK object structure.
20199
20200 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
20201
20202         * docs/tutorial/gtk_tut_12.es.sgml (name): 
20203         * docs/tutorial/gtk_tut_it.sgml (name): 
20204         * docs/tutorial/gtk_tut_fr.sgml (name): 
20205         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
20206         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
20207
20208 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
20209
20210         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
20211           small changes.
20212
20213 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
20214
20215         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
20216         a bug here, never been here and never fixed anything ;(
20217         (don't segfault if tree->root_tree is NULL, which happens prior
20218         to widget realization, but puke instead).
20219
20220 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
20221
20222         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
20223         add the necessary tokens.
20224
20225         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
20226         (gtk_rc_style_to_style): copy thicknesses.
20227         (gtk_rc_init_style): apply thicknesses.
20228         (gtk_rc_parse_style): parse xthickness and ythickness.
20229
20230         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
20231
20232         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
20233         (gdk_window_new): 
20234         (_gdk_windowing_window_init): 
20235         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
20236         (gdk_pixmap_create_from_data): 
20237         (gdk_bitmap_create_from_data): 
20238         (gdk_pixmap_new): 
20239         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
20240         (gdk_image_new): 
20241         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
20242         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
20243         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
20244         (gdk_colormap_get_system): 
20245         (gdk_colormap_new): 
20246         * gdk/gdkwindow.c (gdk_window_init): 
20247         * gtk/gtkstyle.c (gtk_style_new):
20248         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
20249         * gdk/gdkpixmap.c (gdk_pixmap_init): 
20250         * gtk/gtkrc.c (gtk_rc_style_new):
20251         use g_object_new() instead of g_type_create_instance() which
20252         is a private function for fundamental type implementations.
20253
20254 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
20255
20256         * configure.in: Add check for db2html
20257
20258 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
20259
20260         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
20261         hack to set glib_debug_objects based on gtk_debug_flags.
20262
20263 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
20264
20265         * INSTALL.in: Update the Prerequisites section.
20266
20267         * Makefile.am demos/Makefile.am docs/Makefile.am
20268         docs/tutorial/Makefile.am gdk/x11/Makefile.am
20269         gdk/linux-fb/Makefile.am: Dist fixes
20270
20271 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
20272
20273         * NEWS: 10,000 foot view of 1.3.1 changes.
20274
20275 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
20276
20277         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
20278         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
20279         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
20280         gdk/x11/gdkmain-x11.c: 
20281
20282         Patch from George Lebl to add a GdkGrabStatus enumeration to use
20283         as a return value of gdk_*_grab(). Previously, we just
20284         returned the X11 values directly.
20285
20286 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
20287
20288         * gdk/x11/Makefile.am: Patch from George Lebl to 
20289         install all the headers in the right place.
20290
20291 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
20292
20293         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
20294           initial conversion to DocBook.
20295
20296 2000-07-04  Tor Lillqvist  <tml@iki.fi>
20297
20298         * README.win32: Improve a bit.
20299
20300         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
20301         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
20302         Alt+0nnn on the numpad (used to enter characters by numeric code
20303         from current DOS or ANSI codepage) working correctly, as in other
20304         Windows apps.
20305
20306         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
20307         same argument validity tests as in X11 version.
20308         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
20309
20310         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
20311         definitions in case missing from headers.
20312
20313         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
20314         destroy the window-specific cursor.
20315         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
20316         calling GetModuleHandle(NULL).
20317         (gdk_window_set_cursor): Reworked to always copy the passed cursor
20318         with CopyCursor before setting it as the window-specific
20319         cursor. It is OK for the caller to destroy the GdkCursor (and thus
20320         also its Windows cursor) after calling this function. Destroy any
20321         previous window-specific cursor.
20322
20323 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
20324
20325         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
20326         font charset is iso8859-1, not iso-8859-1.
20327
20328 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
20329
20330         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
20331         Use g_get_charset() instead of g_get_codeset().
20332
20333         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
20334         Comment out some strdup'ing functions to keep timj
20335         happy until we finish fighting this out.
20336
20337 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
20338
20339         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
20340         <= width or height.
20341
20342         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
20343         from 1.2 for parent/child states.
20344
20345         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
20346         of typos.
20347
20348         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
20349         event structures, replace with a generic axes field. Replace 
20350         deviceid/sourec with GdkDevice *device.
20351
20352         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
20353         to extract particular axis use value from event. (Also
20354         can be used for normal X/Y.)
20355
20356         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
20357         allow for arbitrary number of axes, namespace everything
20358         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
20359         everywhere.
20360
20361         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
20362         Get rid of the gdk_input_vtable setup if favor of simply
20363         defining the functions in gdkinput-none/gxi/xfree.c in
20364         a similar fashion to the way that the port structure is 
20365         done.
20366
20367         * gtk/gtkdnd.c: Fix fields of synthesized button press event
20368         for new event structures. 
20369
20370         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
20371         new device interfaces.
20372
20373 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
20374
20375         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
20376         set the initial text.
20377
20378         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
20379         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
20380         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
20381         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
20382
20383         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
20384         pango_layout_set_font_description to simplify.
20385
20386 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
20387
20388         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
20389         pango_layout_set_font_description to simplify.
20390
20391 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
20392
20393         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
20394         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
20395         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
20396
20397         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
20398         PANGO_PIXELS() macro.
20399
20400 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
20401
20402         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
20403         that returns a PangoContext owned by the widget and updated to
20404         match future changes in the widget. Also, make 
20405         gtk_widget_create_pango_layout() use this context. If we ever
20406         add a ::changed signal to PangoContext, this will make things
20407         much more convenient. 
20408
20409         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
20410         in the appropriate places instead of destroying the layouts and
20411         creating new ones.
20412
20413         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
20414         in a few strategic places.
20415
20416 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
20417
20418         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
20419         gtk_widget_size_request() on reparented child, if one. Otherwise,
20420         queue_resize() on the child never results in it getting size-requested
20421         at all.
20422
20423         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
20424         in option menus, so that (with luck) people won't copy it into
20425         their apps in the future.
20426
20427         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
20428         to gtk_option_menu_calc_size. This isn't perfect, but should fix
20429         a lot of problems with changing the size of the menu's menu
20430         items after adding it to the option menu.
20431
20432         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
20433
20434         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
20435         the text direction for a widget changes.
20436
20437         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
20438         ::direction_changed to get rid of various hacks.
20439
20440 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
20441
20442         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
20443         name.
20444
20445 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
20446
20447         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
20448         flag to the structure. Do not call XFreePixmap on pixmaps created
20449         by gdk_pixmap_foreign_new().
20450
20451 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
20452
20453         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
20454         value using GdkRGB functionality given GdkColormap and GdkColor.
20455         (name not final, waiting for inspiration.)
20456         
20457         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
20458         set the foreground/background of a GC using the GC's colormap
20459         and GdkRGB. (name not final, waiting for inspiration.)
20460
20461         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
20462         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
20463
20464         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
20465         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
20466         purely a function of the corresponding colormap. Make
20467         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
20468
20469         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
20470         gdk_pixbuf_*create_from_xpm_* in terms of
20471         gdk_pixbuf_new_from_xpm_data(), move into platform independent
20472         code.
20473
20474         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
20475         advantage of the new draw_rgb_32_image_dithalign.
20476
20477         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
20478
20479         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
20480         on each created GC.
20481
20482         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
20483
20484         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
20485         which we initialize from the drawable when the GC is created,
20486         if the drawable has a colormap.
20487
20488         * gdk/x11/gdkgc-x11.c: include string.h for memset.
20489
20490         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
20491
20492         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
20493
20494 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
20495
20496         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
20497         actually returning expose events, make sure to set
20498         the count field properly.
20499
20500         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
20501         accidentally reintroced bug which always cleared
20502         the graphics_exposures value. 
20503
20504 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
20505
20506         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
20507
20508 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
20509
20510         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
20511
20512 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
20513
20514         * docs/faq/gtk-faq.sgml: Start of Section 6.
20515
20516 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
20517
20518         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
20519         
20520         (Fixes problem with drawing childless frames. Pointed out
20521         by and a first patch from Anders)
20522         
20523         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
20524         compute a child_allocation, even if we don't have a child.
20525
20526         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
20527         Always chain to the parent's impl, even if we don't have a child.
20528
20529 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
20530
20531         * gdk/gdkrgb.c: If possible, create only a single shm segment and
20532         use multiple parts of it instead of creating a bunch of separate
20533         segments, since the maximum number of segments per system is not
20534         large. (This might be worth backporting to GTK+-1.2.x if we make a
20535         new release )
20536
20537         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
20538         structure in preparation for per-colormap GdkRGB.
20539
20540         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
20541         to False when we get EINVAL from shmget so that the caller of
20542         gdk_image_new can retry with a smaller segment size.
20543
20544 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
20545
20546         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
20547
20548 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
20549
20550         * configure.in: make the current version number 1.3.1 (binary age 0,
20551         interface age 0).
20552         
20553         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
20554         gtkcompat.h is all we want.
20555
20556         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
20557         GLib primitive types. fixed g_type_register_fundamental() argument
20558         ordering.
20559
20560         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
20561         compiles.
20562
20563         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
20564         object code cleanup, comment trigraph fixes, etc...
20565
20566 2000-06-23  Havoc Pennington  <hp@redhat.com>
20567
20568         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
20569         instead of making up a bogus name for first_para_mark
20570
20571         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
20572         0 as a context ID
20573
20574 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
20575
20576         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
20577
20578 2000-06-21  Havoc Pennington  <hp@pobox.com>
20579
20580         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
20581         we didn't check window->bg_pixmap != GDK_NO_BG.
20582
20583         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
20584         gdk-pixbuf
20585
20586 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
20587
20588         * docs/faq/gtk-faq.sgm: Move file to here.
20589           TODO: Update Makfile.am 
20590
20591 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
20592
20593         * docs/gtk-faq.sgm: Add Section 2
20594
20595 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
20596
20597         * docs/gtk-faq.sgm: New file. Start of DocBook
20598           version of the FAQ.
20599
20600 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
20601
20602         * configure.in (GDK_PIXBUF_MAJOR): Define version
20603         numbers for GDK_PIXBUF_*, as they get substituted
20604         into a header file. Need to consider versioning
20605         for gdk-pixbuf more carefully later.
20606
20607 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
20608
20609         Work with srcdir != builddir.   
20610         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
20611         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
20612         * demos/testpixbuf.c: Likewise.
20613         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
20614         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
20615         <gdk/x11/gdkx.h>.
20616         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
20617         "gdk-pixbuf.h".
20618         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
20619
20620 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
20621
20622         * TODO.xml: Change 1.4 version numbers to 2.0.
20623
20624 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
20625
20626         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
20627         fixups to GTK+ standard.
20628
20629 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
20630
20631         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
20632         gdk-pixbuf.
20633
20634         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
20635         fixups for GObject.
20636
20637         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
20638         gdk-pixbuf with GDK dependencies moved into GDK.
20639         
20640         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
20641         move gdk-pixbuf-loader here until GObject has signals.
20642
20643         * demos/: New directory of demos. Move demos from
20644         gdk-pixbuf here.
20645
20646         * demos/pixbuf-init.c: Small bit of code to check for
20647         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
20648         set GDK_PIXBUF_MODULEDIR appropriately.
20649
20650         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
20651         define which no longer makes sense.
20652
20653 2000-06-21  Havoc Pennington  <hp@redhat.com>
20654
20655         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
20656         gtk_get_default_language
20657
20658         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
20659         new function to get the default language
20660
20661         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
20662         s/gtk_text_view_style_values/gtk_text_style_values/
20663
20664         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
20665         Add a "language" field to tags.
20666
20667         (gtk_text_tag_set_arg): Fix bug in setting
20668         "bg_full_height_set" tag.
20669
20670 2000-06-21  Havoc Pennington  <hp@redhat.com>
20671
20672         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
20673         in the interfaces
20674
20675         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
20676         stuff instead when possible.
20677
20678         * gtk/gtktexttypes.h: Delete some unused constants
20679
20680         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
20681         testtextbuffer.c: use glib instead of custom unicode routines
20682
20683 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
20684
20685         * docs/es/: Removed mistakenly added generated sgml
20686
20687         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
20688         Remove outdated info files.
20689
20690         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
20691         Moved tutorial files into subdir
20692
20693         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
20694         subdir.
20695
20696         * docs/man/gtk_button.pod: Remove. (contents will be
20697         integrated into gtk-reference button page.)
20698
20699         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
20700         docs/faq/Makefile.am: Adjust for new organization
20701
20702 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
20703
20704         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
20705         not $(MKINSTALLDIRS)
20706
20707 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
20708
20709         * gtk/testgtk.c (create_text): Finish the job Elliot started
20710         of removing font setting test for text widget. (Since text widget
20711         and GdkFont are not deprecated, and cause portability problems.)
20712
20713 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
20714
20715         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
20716         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
20717         Remove use of libunicode in favor of new GLib functions.
20718
20719         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
20720         nano-x, framebuffer. The X11 include is just a hack until we get
20721         the necessary functions in gdkcolor.h, so there is no reason to
20722         add other includes of platforms.
20723
20724         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
20725         window bigger than the screen change.
20726
20727         * gtk/testgtk.c: Revert some random changes from Elliot
20728         that had no particular point and were causing testgtkrc
20729         not to function correctly.
20730         
20731         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
20732         because GdkSegment and GdkRegionBox have the same fields,
20733         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
20734         results in clearer code.
20735
20736         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
20737         gdk_input_translate_coordinates): Fix missed GdkObjectification
20738
20739 2000-06-18  Elliot Lee  <sopwith@redhat.com>
20740
20741         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
20742         * gtk/gtk{plug,socket}.h: Missed commits from previous.
20743
20744 2000-06-20  Havoc Pennington  <hp@redhat.com>
20745
20746         * modules/linux-fb/Makefile.am: Make this compile
20747         without framebuffer enabled
20748
20749         * gdk/linux-fb/Makefile.am: Add conditional to not build
20750         framebuffer unless specified in configure
20751
20752         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
20753         the size of the target instead of source if -1 was passed for
20754         width/height
20755
20756         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
20757         width/height confusion.
20758
20759 2000-06-19  Havoc Pennington  <hp@redhat.com>
20760
20761         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
20762         GDK_DRAWABLE_XID. In the future, we probably want to make it
20763         faster with G_DISABLE_CHECKS turned on.
20764
20765 2000-06-14  Havoc Pennington  <hp@redhat.com>
20766
20767         * gdk/Makefile.am: add gdkpixmap.c
20768
20769         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
20770         s/gdk_image_init/_gdk_windowing_image_init
20771
20772         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
20773         ref/unref
20774
20775         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
20776
20777         * gdk/gdkcompat.h: remove GdkWindowType compat, since
20778         GdkWindowType is now non-deprecated; 
20779         change gdk_window_get_type() compat to be
20780         gdk_window_get_window_type().
20781
20782         * gdk/gdkdnd.h: make GdkDragContext a GObject.
20783
20784         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
20785         virtual GObject. Make all functions call into the vtable.
20786         Move gdk_image_put() guts in here. Remove GdkDrawableType
20787         and gdk_drawable_get_type(), these are now GdkWindow-specific.
20788         draw_image, get_depth, get_size, set_colormap, get_colormap,
20789         get_visual added to the vtable.
20790         
20791         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
20792         GObject. Virtualize everything. 
20793         (gdk_gc_new_with_values): remove check for destroyed window,
20794         because now GdkWindow::create_gc will check this.
20795         (gdk_gc_set_values): New function to set GC values, this 
20796         was already implemented but wasn't in the header
20797
20798         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
20799
20800         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
20801         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
20802         remove _gdk_window_class; add _gdk_window_impl_get_type() and
20803         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
20804         _gdk_windowing_window_init, rename gdk_image_init to
20805         _gdk_windowing_image_init.
20806         
20807         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
20808         (gdk_draw_layout): Remove check for destroyed window, 
20809         because all the drawable methods already check it.
20810         
20811         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
20812         Add gdkpixmap.c which contains implementation of GdkDrawable
20813         virtual table (by chaining to a platform-specific implementation
20814         object).
20815         
20816         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
20817         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
20818         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
20819         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
20820         GdkColormapPrivate. 
20821
20822         * gdk/gdktypes.h: #include <glib-object.h>
20823
20824         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
20825         Move most functionality to platform-specific implementation
20826         object. GdkWindow itself now handles the backing store, then
20827         chains to the platform-specific implementation.
20828         (gdk_window_get_window_type): return GdkWindowType of the window.
20829         (gdk_window_peek_children): New routine, returns the children of 
20830         a GdkWindow
20831         (gdk_window_get_children): Was in X11-specific code and did 
20832         XQueryTree. Changed to simply return a copy of window->children; 
20833         so it can go in cross-platform code.
20834         
20835         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
20836
20837         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
20838         GdkColormap; just changed to use the new private data instead
20839         of casting to GdkColormapPrivate.
20840
20841         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
20842         gdk_cursor_new().
20843
20844         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
20845         (private data member in the GObject). 
20846         (xdnd_manager_source_filter): Function had broken 
20847         error handling, fix it (use gdk_error_trap_push).
20848
20849         * gdk/x11/gdkdrawable-x11.c: This file now implements
20850         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
20851         base class is purely for the convenience of the X port,
20852         and not part of the interface to cross-platform GDK.
20853
20854         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
20855         
20856         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
20857         specific to X, and returned by the create_gc virtual method
20858         of GdkDrawableImplX11. 
20859         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
20860         rather than gchar, this was also changed in the GdkGC vtable.
20861         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
20862         mask is 0, return immediately, instead of checking every flag.
20863         This is faster, and keeps us from segfaulting if values is NULL
20864         and the mask contains some nonzero flags.
20865
20866         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
20867         GdkWindow.
20868
20869         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
20870         GdkWindowPrivate is gone.
20871
20872         * gdk/x11/gdkim-x11.c: rename things that got renamed.
20873
20874         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
20875         remove the image_put stuff that got transferred to GdkDrawable.
20876         
20877         * gdk/x11/gdkinput.c: renamings
20878
20879         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
20880
20881         * gdk/x11/gdkpixmap-x11.c: GObject conversion
20882
20883         * gdk/x11/gdkprivate-x11.h: indentation fixes
20884
20885         * gdk/x11/gdkproperty-x11.c: renamings
20886
20887         * gdk/x11/gdkselection-x11.c: renamings
20888
20889         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
20890         implements the platform-specific "impl" object.
20891         Moved gdk_window_get_children to gdk/gdkwindow.c
20892
20893         * gdk/x11/gdkx.h: Remove all the private structs and private datas
20894         that no longer exist. Add declaration of GdkGCX11 object here.
20895         Fix all the macros to still work. 
20896
20897         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
20898         GdkDragContext from the boxed types since they are now GObjects.
20899
20900         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
20901         moved xthickness/ythickness into the instance. GtkStyleClass
20902         functions are now in the standard vtable for GtkStyle, so you have
20903         to create a GObject subclass to write a theme engine.
20904         (gtk_style_copy): fixed a leaked PangoFontDescription
20905         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
20906         can be the standard GObject function.
20907         
20908         * Throughout GTK:
20909         s/style->klass->[xy]thickness/style->[xy]thickness
20910         s/pango_layout_unref/g_object_unref/
20911
20912         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
20913         
20914         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
20915         accessing GDK internals.
20916
20917         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
20918         accessing GDK internals.
20919
20920 2000-06-18  Elliot Lee  <sopwith@redhat.com>
20921
20922         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
20923
20924         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
20925         problem by calculating event position relative to the trough
20926         rather than the slider.
20927         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
20928
20929         * gdk/gdkgc.h: Add GDK_NOR.
20930
20931         * configure.in, Makefile.am: Add modules top level dir
20932         * configure.in: Only use pangox library if building x11 target.
20933         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
20934
20935 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
20936
20937         * gtk/gtkcolorsel.c: Change private class member to be named
20938         private_data throughout the file.
20939
20940         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
20941         private_data to avoid clashing with keyword.
20942
20943 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
20944
20945         * gdk/gdkdnd.h: Add comment to remove warning.
20946
20947 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
20948
20949         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
20950         Byelorussian language; changed the Makefile and file names 
20951         to reflect that.
20952
20953 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
20954
20955         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
20956         rather than gdk_window_hide; this makes things work
20957         correctly if the window is programmatically hidden while
20958         iconified.
20959
20960 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
20961
20962         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
20963         cut and paste typo where wrong pixmap was being
20964         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
20965
20966 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
20967
20968         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
20969         Add helper function to compute format / bytes 
20970         relationship. Use in a couple places to fix up
20971         errors which assume 8 * format.
20972
20973         * gtk/gtkselection.c (gtk_selection_request): Use 32
20974         rather than 8 * sizeof (GdkAtom), to work correctly
20975         on Alpha.
20976
20977 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
20978
20979         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
20980         libgtk.la
20981         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
20982         versions
20983
20984         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
20985         checking macros return NULL since the function has a return value.
20986
20987 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
20988
20989         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
20990         GTK+ from building at all.
20991
20992         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
20993
20994 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
20995
20996         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
20997         gtk/Makefile.am: make it possible to configure gtk for different
20998         targets on the same platform. The library name is now 
20999         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
21000         flag. Only the x11 target compiles right now.
21001         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
21002         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
21003         * gdk/nanox/gdk*generic*: delete generic region code.
21004         * gdk/linux-fb/gdk*generic*: delete generic region code.
21005         * README.nanox: update information.
21006         
21007 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
21008
21009         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
21010         prepend not append. (Pointed out by Brett Hall.)
21011
21012 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
21013
21014         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
21015
21016 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
21017
21018         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
21019         need this later, and this makes sure that the atexit for
21020         glib gets called after that for GDK, so atexits are
21021         properly ordered for object leak checking.
21022
21023         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
21024
21025         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
21026         pango_x_shutdown_display()
21027
21028         * gtk/simple.c (main): Close window on destroy.
21029
21030 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
21031
21032         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
21033         to treat initial creation different from setting with 
21034         regards to the graphics-exposures parameter, so add a parameter
21035         indicating whether this is initial or not.
21036
21037 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
21038
21039         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
21040         to sort of work by adding an extra return_exposes arg
21041         to gdk_event_translate() - it might be better to simply
21042         deprecate the function altogether and force people to rewrite
21043         without it. gdk_window_scroll() handles most of it, and where
21044         gdk_window_scroll() doesn't work, simply redrawing more does.
21045
21046         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
21047         assertion.
21048
21049         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
21050
21051         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
21052         bunch of pretty much useless /* Print debugging info */ comments 
21053         which had drifted away from the code they were commenting.
21054
21055 2000-06-02  Havoc Pennington  <hp@pobox.com>
21056
21057         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
21058         is in working order.
21059         
21060         * gtk/testtext.c: Change to reflect anonymous mark API
21061
21062         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
21063
21064         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
21065         field, which was unused.
21066
21067         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
21068         saves some typing.
21069
21070         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
21071
21072         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
21073         flag on the insertion point and selection bound
21074
21075         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
21076         make mark-manipulation functions take a GtkTextMark* instead of a
21077         mark name.
21078         
21079         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
21080         GtkTextMarkBody; will be used to detect attempts to delete
21081         the permanent marks (insert and selection bound)
21082
21083         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
21084
21085 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
21086
21087         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
21088         flag to on.
21089
21090         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
21091         Honor DOUBLE_BUFFRED_FLAG
21092
21093         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
21094         function to set the DOUBLE_BUFFERED flag.
21095
21096         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
21097         or not exposes done on the widget should be double-buffered.
21098
21099         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
21100         to be what would be expected. (Fixes problem with a
21101         g_return_if_fail() validating a TextDirection enumeration)
21102
21103 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
21104
21105         * gtk/gtkwidget.c: Remove all references to 
21106         offscreen flag which was no longer used.
21107
21108         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
21109
21110         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
21111         for non-null label_widget->parent.
21112
21113         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
21114         which no longer was used.
21115
21116         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
21117
21118         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
21119         for null arguments.
21120
21121         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
21122         check for destroyed windows.
21123
21124 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
21125
21126         * gtk/gtkimmulticontext.c: Add a finalize method and unref
21127         the slave context there.
21128
21129         * gtk/gtkinvisible.[ch]: Make reference counting behavior
21130         identical to GtkWindow.
21131
21132 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
21133
21134         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
21135         pangox to here, so we can write them independent of rendering
21136         system, using GDK primitives.
21137
21138         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
21139         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
21140         since we have a rendering-system independent implementation in
21141         terms of draw_glyphs().
21142         
21143         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
21144         function to render a single line.
21145
21146         * gdk/x11/gdkpango.c: Move the guts of this file mostly
21147         into ../gdkpango.c, which simplifies things, since we
21148         don't have to deal with raw X gc's.
21149
21150 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
21151
21152         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
21153         get the logical attributes for a given GtkTextLine.
21154
21155 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
21156
21157         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
21158         g_locale_get_codeset() to g_get_codeset() change.
21159
21160 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
21161
21162         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
21163         descriptions.
21164
21165         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
21166         the entry.
21167
21168         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
21169         redoing (vastly simplifying) for Pango. Still needs quite
21170         a bit of work. (Size selection is currently poor. List of 
21171         predefined sizes is not a good idea, since all of these
21172         sizes won't necessarily be distinct.)
21173
21174 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
21175
21176         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
21177         CODESET results for LANG=C.
21178
21179 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
21180
21181         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
21182         which takes a stringized pango font description;
21183         ignore the older 'font' and 'fontset' declarations.
21184
21185         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
21186         field with a GdkFont derived via gdk_font_from_description(),
21187         for compatibility. (Should we just remove it entirely?
21188         Probably too much compatibility breakage, but people
21189         should be migrating to the new Pango stuff as quickly
21190         as possible.)
21191
21192 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
21193
21194         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
21195
21196 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
21197
21198         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
21199         redoing; there are some bugs in size allocation right
21200         now, the semi-existant distinction between header / day
21201         fonts was removed, but, with Pango, could actually
21202         be made functional in a nice way.
21203         
21204         * gtk/testcalender: Move calender from examples into this
21205         directory as a test program. (We really need to restrcture
21206         testgtk into a whole directory full of tests for every
21207         widget or functionality group, separated into multiple .c
21208         files.)
21209
21210 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
21211
21212         * gtk/testgtk.c (file_exists): Fix stupid typo that
21213         was keeping RC file from being loaded.
21214
21215         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
21216         RC file font code.
21217
21218 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
21219
21220         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
21221         Add function to load a GdkFont from a PangoFontDescription.
21222
21223 2000-05-29  Tor Lillqvist  <tml@iki.fi>
21224
21225         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
21226         variable should be of type GdkEventPrivate.
21227
21228 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
21229
21230         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
21231         to have any widget for the label, use a GtkLabel widget
21232         to display the text. (Based partially on a patch from
21233         Anders Carlson.)
21234
21235         (Quite a bit of code reorganization - strip 90% of the
21236         guts out of gtkaspectframe and add a single virtual
21237         func to GtkFrameClass - compute_child_allocation.)
21238
21239 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
21240
21241         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
21242         (Removed clist->row_center_offset field because caching
21243         it wasn't saving time or code, added private function
21244         _gtk_clist_create_cell_layout()).
21245
21246 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
21247
21248         * gtk/gtkaccellabel.c: Pangoized.
21249
21250         * gtk/[hv]ruler.c: Pangoized
21251
21252 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
21253
21254         * gtk/gtkfilesel.c (gtk_file_selection_init):
21255         Use gtk_clist_set_column_auto_resize() to remove need
21256         need for manual column width computations.
21257
21258 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
21259
21260         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
21261         ensuring Pango correctness, and considerably simplifying the
21262         code.
21263         
21264         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
21265
21266         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
21267         getting of numbers of lines.
21268
21269         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
21270         to the actual requested width of the lable, not to the wrap
21271         width we set.
21272
21273         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
21274
21275         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
21276           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
21277
21278         * gtk/gtktextview.c: Fix structure inheritance.
21279
21280         * gtk/gtkprogressbar.c: Pangoize.
21281
21282 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
21283
21284         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
21285         in a function.
21286
21287         * gtk/gtktextlayout.c (find_display_line_above): Fixed
21288         bug with computing line tops.
21289
21290         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
21291
21292 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
21293
21294         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
21295         and y_offset coordinates to do what we need now. (The offset between
21296         buffer and layout coordinates has been reintroduced, but is a 
21297         bit different than before.)
21298
21299         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
21300         handle the adjustments ourselves, and scroll as necessary using
21301         the new gdk_window_scroll().
21302         
21303         The advantage of this is that when we are incrementally revalidating,
21304         we are essentially rearranging things around the visible portion
21305         of the screen. With the old setup, the visible portion of the
21306         screen was moved around in the layout, so scrolling and redrawing
21307         to track that caused jumping of the display. Since we now
21308         control the scrolling ourselves, we can suppress this and
21309         only redraw when things actually change.
21310
21311 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
21312
21313         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
21314         the region not just redisplay it after-all, since we store the
21315         cursors in the LineDisplay. (Ugly interactions here between
21316         GtkLayout and GtkTextBTree here.)
21317         
21318         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
21319
21320 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
21321
21322         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
21323         Added function to scroll contents of a window while keeping the
21324         window constant. Works by XCopyArea or guffaw-scrolling depending
21325         on the details of how the window is set up. (guffaw-scrolling
21326         still needs to be filled in.)
21327
21328 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
21329
21330         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
21331         move the debugging that was tied to a global variable
21332         to that.
21333
21334         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
21335
21336         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
21337         validated flag, in line data instead of setting height/width to
21338         -1. This allows us to perform operations with partially invalid
21339         buffer (using the old size for invalid lines) and thus to do
21340         incremental vaidation. Keep height/width aggregates up to date
21341         when deleting text and rebalancing the tree.
21342
21343         * gtk/gtktextbtree.[ch]: Add functions validate a line
21344         (gtk_text_btree_validate_line), and to validate up
21345         to a number of pixels (gtk_text_btree_validate).
21346
21347         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
21348         that indicates that something is changed and a revalidation
21349         pass is needed. Change ::need_repaint to ::changed, and
21350         make it take old and new yranges instead of a rectangle.
21351
21352         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
21353         the line_data_destroy() function from 
21354         gtk_text_btree_add_view() to a virtual function in 
21355         GtkTextLayout
21356
21357         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
21358         since we are handling partial repaints in a different fashion
21359         now.
21360
21361         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
21362         of the selection instead of queueing a repaint on the
21363         entire widget.
21364
21365         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
21366         get_selection_bounds() down to btree, make the function
21367         in buffer a wrapper around the btree function.
21368
21369         * gtk/gtktextlayout.[ch]: Add functions to check if the
21370         layout is valid and to recompute either a range of pixels
21371         aroudn a line or a certain total number of pixels.
21372
21373         * gtk/gtktextlayout.[ch]: Cache a single line display;
21374         now that we only redraw the needed portions, the hit rate
21375         for this cache is quite high.
21376         
21377         * gtk/gtktextview.[ch]: Keep track of the first paragraph
21378         on the screen so that when re-laying-out the buffer, we can
21379         keep the same place. This requires connecting to ::value_changed
21380         on the adjustments
21381
21382         * gtk/gtktextview.[ch]: Add idle functions to revalidate
21383         the buffer after we receive an ::invalidated signal.
21384         
21385 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
21386
21387         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
21388         to max of allocation and layout size, not just to the
21389         layout size.
21390
21391         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
21392         Invalidate window so it gets redrawn properly.
21393
21394         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
21395         to mean the entire window.
21396
21397         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
21398         into public header.
21399
21400 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
21401
21402         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
21403         to get the name of a mark.
21404
21405         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
21406         to find the paragraph from a y position.
21407
21408 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
21409
21410         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
21411         nodes have width/height >= 0, not > 0.
21412
21413 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
21414
21415         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
21416         Add a size_only flag, so when we only need the size, we don't create
21417         useless appearance attributes.
21418
21419         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
21420         duplicate setting of font description.
21421
21422         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
21423
21424 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
21425
21426         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
21427         EXTRA_DIST. It does not work well when the file that
21428         everything depends on is not in the tarball.
21429
21430 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
21431
21432         * gtk/testgtk.c: Some hacks and fixes so that it basically
21433         works when not sitting in the GTK+ build tree.
21434
21435 2000-05-03  Havoc Pennington  <hp@redhat.com>
21436
21437         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
21438         Properly determine the ordering of the tag root and the current
21439         line within the tree. Previous algorithm only worked if the tag
21440         root's immediate parent was the common root of both the current
21441         line and the tag root.
21442
21443 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
21444
21445         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
21446         alignment.
21447
21448         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
21449         the widget text directional dynamically.
21450
21451         * gtk/gtktextview.[ch]: Added functions to get and set default
21452         wrap mode.
21453
21454 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
21455
21456         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
21457         in cursor location computation.
21458
21459 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
21460
21461         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
21462         vadjusment values properly when layout gets smaller.
21463
21464         * gtk/gtktextview.c (need_repaint_handler): Areas being
21465         passed in are far completely inaccurate, and sometimes
21466         too small, so, for now, just queue a redraw on the
21467         whole visible region.
21468
21469 2000-04-25  Havoc Pennington  <hp@redhat.com>
21470
21471         * gtk/gtktextbtree.c (summary_destroy): new function to 
21472         destroy tag summary nodes
21473         (gtk_text_line_next_could_contain_tag): this function was 
21474         totally broken if the line passed in wasn't below the tag
21475         root. Fix it.
21476         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
21477         "wildcard" case, we have to do a linear scan. Blah.
21478         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
21479         we have to do the linear scan
21480         (tag_removed_cb): When a tag is removed from the tag table, 
21481         remove the GtkTextTagInfo node from the btree.
21482         (gtk_text_btree_spew): Implement the spew function, for 
21483         our debugging pleasure.
21484
21485 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
21486
21487         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
21488         a problem with referring to the wrong buffer.
21489
21490         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
21491
21492         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
21493         font description to gtk_style_new() - otherwise things
21494         don't work without a .gtkrc file.
21495
21496         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
21497         tags table if we create it ourself, too.
21498
21499         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
21500         it was conflicting with XKB modifiers.
21501
21502         * gtk/gtktextview.[ch]: Add simple support for 
21503         GtkIMContext.
21504
21505 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
21506
21507         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
21508         with deletion from last commit.
21509
21510 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
21511
21512         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
21513         in the context from the current locale.
21514         
21515         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
21516         context, not hardcoded value.
21517
21518         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
21519         not logical.
21520
21521 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
21522
21523         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
21524         attributes - that doesn't handle partial-glyph selection
21525         properly. Instead use new pango_layout_line_get_x_ranges()
21526         functionality to draw the selection.
21527
21528         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
21529         now properly handles out-of-range coordinates.
21530
21531         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
21532
21533         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
21534         public.
21535
21536         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
21537         for paragraphs opposite to the base direction of the widget.
21538
21539         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
21540
21541         * gtk/gtktextlayout.c: Don't split segments on marks, since that
21542         causes Arabic words to reshape as you cursor through.
21543
21544         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
21545         cursor position when moving vertically with the arrow keys and
21546         scrolling with page-up/page-down. (Arrow keys save only the X,
21547         scrolling saves both X and Y.)
21548
21549         This means you can line-up / line-down or page-up / page-down
21550         without losing your place, and also that moving vertically
21551         with the cursor keys keeps the same X position, not the same
21552         character count:
21553
21554         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
21555         arrow keys move by display lines, not paragraphs.
21556
21557 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
21558
21559         * gtk/gtklayout.c: Make sure that the bin window is at least
21560         as big as the allocation. (Should we also make sure that the
21561         bin window is big enough to completely cover widget->window?)
21562
21563         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
21564         function to get the onscreen rectangle.
21565
21566         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
21567         for offsets in window coordinates.
21568
21569 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
21570
21571         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
21572         confusion.
21573
21574         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
21575         from the widget direction.
21576
21577         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
21578         Add a "direction" attribute.
21579
21580         * gtk/gtktextview.c: global s/tkxt/text_view/.
21581
21582         * gtk/testtext.c: Added long block of text in Arabic, to test out
21583         the direction attributes. (Some problems with the shaping system
21584         for arabic become obvious - like the fact the cursor splits words
21585         into unjoined pieces.)
21586
21587 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
21588
21589         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
21590
21591         * gtk/gtktextlayout.c: Fix up alignment.
21592
21593         * gtk/testtext.c: Add some tests for centering, wrapping.
21594
21595 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
21596
21597         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
21598         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
21599         If we wrote GTK+-specific layout-render function this could just replace
21600         the draw_layout() operation in the vtable.
21601
21602         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
21603         pango_layout_get_cursor_pos() and use that function.
21604
21605         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
21606         is a non-static symbol.
21607
21608         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
21609         with gtk_text_btree_find_line_by_y()
21610
21611         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
21612         renderer that handles GtkTextAppearance attributes.
21613
21614         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
21615
21616           - Move the values in the style that don't affect geometry into a
21617             GtkTextAppearance structure.
21618           - Change underline to take a PangoUnderline and "font" a string
21619             representation of a font description
21620           - Add a "font_desc" attribute which takes a FontDescription structure.
21621
21622         * gtk/gtktextlayout.[ch]:
21623
21624           - Get rid of the display-line list per each line. Instead, we
21625             generate, on demand, a GtkTextLineDisplay structure which]
21626             contains a PangoLayout * and other necesary information
21627             (offsets, cursor locations) for displaying a paragraph.
21628           - Get rid of the code to wrap lines, create display chunks,
21629             etc. Instead, we just go through a paragraph and convert
21630             it into the necessary inputs to a PangoLayout.
21631           - Implement a new attribute type, GtkTextAttrAppearance. This
21632             holds a GtkTextAppearance, and is used to pass colors, 
21633             stipple, etc, through from the layout to the display without
21634             having to use lots and lots of individual attributes.
21635           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
21636             in terms of PangoLayout functions.
21637         
21638         * gtk/gtktextview.c: 
21639          
21640           - Handle passing the necessary PangoContext to the layout
21641           - Some fixups in painting to deal with the automatic backing store
21642             and offsetting of GTK+-1.4
21643           - Add a style_set handler so that the default style reacts
21644             properly to theme changes.
21645         
21646         * gtk/gtktext?*.[ch]: Random code-style fixes.
21647
21648         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
21649
21650 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
21651
21652         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
21653         in original form preparatory to Pango-ization and gdkimcontext-ization.
21654
21655 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
21656
21657         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
21658         so that we can derive from gtkimcontext in language bindings properly.
21659
21660 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
21661
21662         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
21663         Add a compose table including (almost) all the compose combinations
21664         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
21665         data in the XIM implementation.
21666
21667         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
21668         Moved functions to convert keyvalues from and to unicode here from
21669         the win32 port and made them public.
21670
21671 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
21672
21673         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
21674
21675 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
21676
21677         * gtk/gtkimcontext.[ch]: Base class for new input context system
21678
21679         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
21680         the real input context implementation to be loaded from modules
21681         and switched on the fly.
21682
21683         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
21684         context that just does direct keysymbol => unicode translation.
21685
21686         * gtk/gtkentry.[ch]: Start switching editing over to using
21687         GtkInputContext. (No handling of preedit yet.)
21688
21689 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
21690
21691         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
21692         many substitutions. (klass should not be subsituted.)
21693
21694 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
21695
21696         * configure.in: Add checks for Pango
21697
21698         * configure.in docs/Makefile.am: Add test for sgml2html
21699         and allow 'make dist' without building html, but print out
21700         warnings in that case. (For making snapshots)
21701
21702         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
21703         Add Pango libraries and C flags
21704
21705         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
21706         Add function (gdk_draw_layout) to draw a pango layout.
21707
21708         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
21709         for getting Pango contexts for GDK.
21710
21711         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
21712
21713         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
21714         editing.
21715
21716         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
21717         keysym => unicode translations. More languages can be added
21718         here, but real input-method support is needed.
21719
21720         * docs/Changes-1.4.txt: Added note about entry behavior.
21721         
21722         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
21723         to set the reading direction for a widget and the global direction.
21724         Add test which allows toggling the global direction. Two private
21725         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
21726
21727         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
21728           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
21729
21730         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
21731
21732         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
21733         underlining now handled by Pango.
21734
21735         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
21736         to RCStyle and Style. (Having both this and the old font name and GdkFont 
21737         is temporary.)
21738
21739         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
21740         convenience functions for creating contexts and layouts for widgets.
21741
21742         * gtk/testgtk.c: Enhance label tests with multilingual labels.
21743
21744 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
21745
21746         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
21747         titles to be active, even if they aren't visible.
21748         (gtk_clist_column_titles_passive):  Ditto.
21749
21750 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
21751
21752         * gtkmenu.c:
21753         * gtkmenu.h:
21754         * gtktypeutils.h: Spelling/grammar fixes in comments.
21755
21756 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
21757
21758         * gdk/nanox/*.h: add missing header files.
21759
21760 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
21761
21762         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
21763         send_event to TRUE.
21764         (gtk_drawing_area_size): queue a resize.
21765
21766 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
21767
21768         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
21769         the handlers, also invalidate them. bug nailed down by Karl Nelson
21770         <kenelson@ece.ucdavis.edu>.
21771
21772 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
21773
21774         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
21775         "(nil)" foundries, patch from Grigorios Magklis.
21776
21777         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
21778         on non-available fonts, based on a patch by Grigorios Magklis
21779         <maglis@cs.rochester.edu>.
21780
21781 2000-05-18  Elliot Lee  <sopwith@redhat.com>
21782
21783         * gdk/x11/gdkregion-generic.c: If a region does not have any
21784         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
21785         instead of GDK_OVERLAP_RECTANGLE_IN.
21786
21787 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
21788
21789         * gtk/gtklayout.c (gtk_layout_map): Remove references to
21790         OFFSCREEN, as it is no longer necessary.
21791
21792 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
21793
21794         * gtk/gtkcolorsel.c: Patch from David Santiago
21795         <mrcooger@cyberverse.com> to change things so that the 
21796         indicator of the active palette entry is done independently,
21797         not via the focus, since it should always be visible.
21798
21799 2000-05-17  Tor Lillqvist  <tml@iki.fi>
21800
21801         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
21802         refcount leaks as in the X11 backend.
21803
21804         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
21805         cosmetics.
21806
21807         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
21808         backend. Add _gdk_windowing_window_destroy().
21809
21810         * gtk/gtkcolorsel.c: Include correct backend-specific header.
21811         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
21812         either, but these probably do exist on nanox?)
21813         
21814         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
21815         which isn't necessarily defined by <math.h>.
21816
21817         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
21818         ancestry past GtkObject.
21819
21820         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
21821         from DLL on Win32.
21822
21823         * gtk/gtk.def: Update corresponding to recent changes.
21824
21825         * gtk/makefile.{cygwin,msc}: Updates.
21826
21827 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
21828
21829         * docs/Changes-1.4.txt: A bit of editing.
21830
21831         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
21832         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
21833         to clear the update area for the window, and clear it
21834         when hiding a window.
21835
21836         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
21837         if window destroyed.
21838
21839         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
21840
21841         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
21842         gdk_window_destroy() to the generic code, since there was a lot of 
21843         window-system-independent logic it in. Add a function:
21844         
21845          _gdk_window_destroy() 
21846
21847         to the internal API to destroy a window without unreferencing it.
21848         Add a function:
21849
21850          _gdk_windowing_window_destroy()
21851
21852         That does the windowing-system-dependent part of destroying 
21853         the window.
21854
21855 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
21856
21857         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
21858
21859 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
21860
21861         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
21862         Make gtk_widget_shape_combine_mask() keep a reference count on
21863         the pixmap since it keeps it around.
21864
21865 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
21866
21867         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
21868         leak.
21869
21870         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
21871         leak with event filters.
21872
21873 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
21874
21875         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
21876         signal handlers with the right data arguments. (Fixes
21877         some warnings when a widget was repeatedly set as a drag
21878         destination.)
21879
21880         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
21881         window so we can avoid avoid setting the DND properties on the
21882         toplevel window repeatedly.
21883
21884 2000-05-13  Tor Lillqvist  <tml@iki.fi>
21885
21886         * gdk/win32/gdkwin32.h: Define more message types missing from
21887         mingw headers.
21888
21889         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
21890         call gdk_window_destroy_notify(). It was never called. This
21891         probably meant that the GdkWindow was never freed. Thanks Owen for
21892         noticing (!).
21893
21894         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
21895         window as destroyed before calling DestroyWindow(). DestroyWindow()
21896         causes a call to the window procedure (gdk_WindowProc), which
21897         calls gdk_event_translate(), which calls
21898         gdk_window_destroy_notify(), which gets confused unless the window
21899         is set as destroyed.
21900
21901         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
21902         this function to indicate it's win32 only. Put inside #ifdef
21903         G_ENABLE_DEBUG.
21904
21905         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
21906         debugging function. (gdk_event_translate:) Add a default branch
21907         that uses the above function to print debug messages with all
21908         Windows messages symbolically.
21909
21910         * gdk/win32/gdkprivate-win32.h: Declare it, and
21911         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
21912
21913 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
21914
21915         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
21916         public header file.
21917
21918 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
21919
21920         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
21921
21922         * gtk/gtktext.c: made the adjustments no-construct args, simply
21923         provide default adjustments.
21924         (gtk_text_destroy): release adjustments.
21925
21926         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
21927         adjustment argument non-construct.
21928
21929         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
21930         instead of in finalize.
21931         (gtk_progress_get_text_from_value): 
21932         (gtk_progress_get_current_text): 
21933         (gtk_progress_set_value): 
21934         (gtk_progress_get_percentage_from_value): 
21935         (gtk_progress_get_current_percentage): 
21936         (gtk_progress_set_percentage): 
21937         (gtk_progress_configure): ensure an adjustment is present.
21938
21939 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
21940
21941         * gtk/gtkcolorsel.[hc]:
21942         * gtk/gtkcolorseldialog.[hc]:
21943         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
21944         their parent implementation, use bit fields for boolean values, don't
21945         create unused widgets, usage of glib types, braces go on their own
21946         lines, function argument alignment, #include directives etc. etc. etc..
21947
21948         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
21949
21950 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
21951
21952         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
21953
21954         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
21955         of NULL.
21956
21957         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
21958         to freed data.
21959         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
21960
21961         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
21962         to NULL when the toplevel is getting destroyed.
21963         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
21964         (gtk_menu_destroy): 
21965         (gtk_menu_init): store the information of whether we have to
21966         readd the initial child ref_count during destruction in a new
21967         GtkMenu field needs_destruction_ref_count.
21968
21969         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
21970         here, those reading: learn from my mistake! ;)
21971         in order for set_?adjustment to support a default adjustemnt if
21972         invoked with an adjustment pointer of NULL, the code read (pseudo):
21973         if (v->adjustment) unref (v->adjustment);
21974         if (!adjustment) adjustment = adjustment_new ();
21975         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
21976         now imagine the first unref to actually free the old adjustment and
21977         adjustment_new() creating a new adjustment from the very same memory
21978         portion. here, the latter comparision will unintendedly fail, and
21979         all hell breaks loose.
21980         (gtk_viewport_set_hadjustment):
21981         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
21982         after unreferencing it.
21983
21984         * gtk/gtkcontainer.[hc]: removed toplevel registration
21985         functions: gtk_container_register_toplevel(),
21986         gtk_container_unregister_toplevel() and
21987         gtk_container_get_toplevels() which had wrong semantics
21988         anyways: it didn't reference and copy the list.
21989
21990         * gtk/gtkwindow.c: we take over the container toplevel registration
21991         bussiness now. windows are registered across multiple destructions,
21992         untill they are finalized. the initial implicit reference count
21993         users are holding on windows is removed with the first destruction
21994         though.
21995         (gtk_window_init): ref & sink and set has_user_ref_count, got
21996         rid of gtk_container_register_toplevel() call. add window to
21997         toplevel_list.
21998         (gtk_window_destroy): unref the window if has_user_ref_count
21999         is still set, got rid of call to
22000         gtk_container_unregister_toplevel().
22001         (gtk_window_finalize): remove window from toplevel list.
22002         (gtk_window_list_toplevels): new function to return a newly
22003         created list with referenced toplevels.
22004         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
22005
22006         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
22007         adjustment a non-construct arg.
22008         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
22009         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
22010         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
22011
22012         * gtk/gtkrange.c: added some realized checks.
22013         (gtk_range_destroy): get rid of the h/v adjustments in the
22014         destroy handler instead of finalize. remove timer.
22015         (gtk_range_get_adjustment): demand create adjustment.
22016
22017         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
22018         we simply create them on demand now and get rid of them in
22019         the destroy handler.
22020         (gtk_viewport_destroy): get rid of the h/v adjustments in the
22021         destroy handler instead of finalize.
22022         (gtk_viewport_get_hadjustment): 
22023         (gtk_viewport_get_vadjustment): 
22024         (gtk_viewport_size_allocate): demand create h/v adjustment
22025         if required.
22026
22027         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
22028         gtk_widget_real_destroy () functionality.
22029         (gtk_widget_real_destroy): reinitialize with a new style, instead
22030         of setting widget->style to NULL.
22031
22032 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
22033
22034         * gtk/gtkcalendar.c:
22035         * gtk/gtkbutton.c: ported _get_type() implementation over to
22036         GType, either to preserve memchunks allocation facilities,
22037         or because Gtk+ 1.0 GtkTypeInfo was still being used.
22038
22039         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
22040         over. prepare for ::destroy to be emitted multiple times.
22041         removed reference tracer magic. chain into GObjectClass.shutdown()
22042         to emit ::destroy signal.
22043
22044         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
22045         fundamental.
22046
22047         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
22048         cludge.
22049
22050         * gtk/gtksocket.c:
22051         * gtk/gtkplug.c:
22052         * gtk/gtklayout.c:
22053         * gtk/gtklabel.c:
22054         * gtk/gtkargcollector.c:
22055         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
22056         not being a fundamental anymore, and to work with the new
22057         type system (nuked fundamental type varargs clutter).
22058
22059         * gtk/*.c: install finalize handlers in the GObjectClass
22060         part of the class structure.
22061         changed direct GTK_OBJECT()->klass accesses to
22062         GTK_*_GET_CLASS().
22063         changed direct object_class->type accesses to GTK_CLASS_TYPE().
22064
22065         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
22066         GType. made most of the GTK_*() type macros and Gtk* typedefs
22067         simple wrappers around macros and types provided by GType.
22068         most notably, a significant portion of the old API vanished:
22069         GTK_TYPE_MAKE(),
22070         GTK_TYPE_SEQNO(),
22071         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
22072         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
22073         GTK_TYPE_ARGS,
22074         GTK_TYPE_CALLBACK,
22075         GTK_TYPE_C_CALLBACK,
22076         GTK_TYPE_FOREIGN,
22077         GtkTypeQuery,
22078         gtk_type_query(),
22079         gtk_type_set_varargs_type(),
22080         gtk_type_get_varargs_type(),
22081         gtk_type_check_object_cast(),
22082         gtk_type_check_class_cast(),
22083         gtk_type_describe_tree(),
22084         gtk_type_describe_heritage(),
22085         gtk_type_free(),
22086         gtk_type_children_types(),
22087         gtk_type_set_chunk_alloc(),
22088         gtk_type_register_enum(),
22089         gtk_type_register_flags(),
22090         gtk_type_parent_class().
22091         replacements, where available are described in ../docs/Changes-1.4.txt.
22092         implemented compatibility functions for the remaining API.
22093
22094         * configure.in: depend on glib 1.3.1, use gobject module.
22095
22096 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
22097
22098         * TODO.xml: Various updates to current status.
22099
22100 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
22101
22102         * gtk.m4: Print out version when test succeeds.
22103
22104 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
22105
22106         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
22107         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
22108         
22109         (Original triangle color selector from Simon Budig
22110         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
22111         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
22112         Santiago <mrcooger@cyberverse.com>)
22113
22114         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
22115         out into a separate widget.
22116
22117         * gtk/testgtk.c: Add some checkbuttons for toggling palette
22118         and opacity controls.
22119
22120 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
22121
22122         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
22123         snuck in prematurely.
22124
22125 2000-05-07  Tor Lillqvist  <tml@iki.fi>
22126
22127         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
22128         had deleted a ! operator by mistake, which caused
22129         GDK_SELECTION_CLEAR events never to be generated, which caused
22130         only the first copy to the clipboard from an gtkeditable to
22131         actually cause a copy to the Windows clipboard.
22132
22133 2000-05-06  Tor Lillqvist  <tml@iki.fi>
22134
22135         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
22136         compilation, too. Current mingw gcc distributions include the
22137         necessary headers. Also the necessary IIDs are now in mingw
22138         headers/libraries, and own definitions unnecessary.
22139
22140         More hacking on OLE2 DND, still doesn't work though, and thus
22141         ifdeffed out.
22142
22143         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
22144         here, too.
22145
22146 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
22147
22148         * gdk/nanox/*: nano-X port work in progress.
22149         * gdk/simple.c: simple test for Gdk.
22150         * README.nanox: notes about the port: read this first!
22151         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
22152         with nano-X.
22153
22154 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
22155
22156         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
22157         gdk_window_clear() into common code, implement in terms of
22158         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
22159         not redirected to the backing rectangle.
22160
22161 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
22162
22163         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
22164         EXTRA_DIST. It does not work well when the file that
22165         everything depends on is not in the tarball.
22166
22167 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
22168
22169         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
22170         with recursion where process_updates() is called from
22171         an expose handler. (GtkTextView is highly broken in
22172         doing this, but it should work, so it is a nice test
22173         case.)
22174
22175 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
22176
22177         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
22178         handle the case where updates are queued during processing of
22179         updates.
22180
22181 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
22182
22183         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
22184         window is on gdk_display - use that instead of segfaulting.
22185
22186 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
22187
22188         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
22189         broken and require an empty arg, give it to them.
22190
22191 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
22192
22193         * gtk/gtklabel.h: indentation fixes.
22194
22195 2000-05-02  Tor Lillqvist  <tml@iki.fi>
22196
22197         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
22198         draw too narrow or too low arcs, they seem to fail, at least with
22199         some display drivers.
22200
22201         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
22202
22203         Large changes to the Win32 backend, partially made necessary by
22204         the changes to the backend-independent internal
22205         structures. Attempts to implement similar backing store stuff as
22206         on X11. The current (CVS) version of the Win32 backend is *not* as
22207         stable as it was before the no-flicker branch was merged. A
22208         zipfile with that version is available from
22209         http://www.gimp.org/win32/. That should be use by "production"
22210         code until this CVS version is usable. (But note, the Win32
22211         backend has never been claimed to be "production quality".)
22212
22213         * README.win32: Add the above comment about versions.
22214
22215         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
22216
22217         * gdk/gdk.def: Update.
22218
22219         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
22220         presumably be replaced by some more better mechanism as 1.4 gets
22221         closer to release shape.
22222
22223         * gdk/makefile.{cygwin,msc}: Update.
22224
22225         * gdk/win32/*.c: Correct inclusions of the backend-specific and
22226         internal headers. Change code according to changes in these. Use
22227         gdk_drawable_*, not gdk_window_* where necessary.
22228
22229         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
22230         our old DND.
22231
22232         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
22233         to interpret single characters as UTF-8. Thanks to Hans Breuer.
22234         Use correct function name in warning messages.
22235
22236         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
22237         GSourceFuncs gdk_event_prepare and gdk_event_check.
22238         (gdk_event_get_graphics_expose): Do implement, use
22239         PeekMessage. Thanks to Hans Breuer.
22240         (event_mask_string): Debugging function to print an GdkEventMask.
22241         (gdk_pointer_grab): Use it.
22242
22243         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
22244         (old) book I used claimed was Hangul actually is CJK Unified
22245         Ideographs Extension A. Also, Hangul Syllables were missing.
22246         Improve logging.
22247
22248         * gdk/win32/gdkgc-win32.c: Largish changes.
22249
22250         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
22251         g_win32_getlocale() from GLib, and not setlocale() to get current
22252         locale name.
22253
22254         * gdk/win32/gdkprivate-win32.h
22255         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
22256         gdkwin32.h, similarily as in the X11 backend.
22257
22258         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
22259         assignment was used instead of equals in if test. Thanks to Hans
22260         Breuer.
22261
22262         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
22263         the X11 version.
22264
22265         * gdk/win32/makefile.{cygwin,msc}
22266         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
22267         path to the Win32 headers that works also with the mingw compiler.
22268
22269         * gtk/gtkstyle.c: Include <string.h>.
22270
22271 2000-04-26  Havoc Pennington  <hp@redhat.com>
22272
22273         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
22274         replacing the broken gtk_label_get ()
22275
22276 2000-04-15  Havoc Pennington  <hp@pobox.com>
22277
22278         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
22279         this keeps scanner scripts from getting confused.
22280
22281         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
22282         data, rather than void
22283
22284 2000-04-15  Tor Lillqvist  <tml@iki.fi>
22285
22286         * gtk/gtkclist.c (gtk_clist_motion)
22287         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
22288         with is_hint FALSE, get x and y from the event. They used to be
22289         used uninitialised. The Win32 backend never sends motion events
22290         marked as hints. This for instance fixes the annoying file and
22291         font selector behaviour in the Win32 version.
22292
22293 2000-04-14  Tor Lillqvist  <tml@iki.fi>
22294
22295         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
22296         gtk_private_n_signals variables, they are used by some software,
22297         sigh.
22298
22299         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
22300         installation directory from the Registry, where the installer
22301         should have put it.
22302
22303 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
22304
22305         * gdk/x11/Makefile.am: Fix problem with installation directory for
22306         gdkx.h
22307
22308         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
22309         <mrcooger@cyberverse.com> so that when selecting menus with the
22310         mouse, the first item will not be selected, but when selecting
22311         with an accelerator, or navigating left-right on a menubar with
22312         the menus popped up, the first item will be selected.
22313
22314 2000-04-05  Dan Damian  <dand@dnttm.ro>
22315
22316         * configure.in: Added "ro" to ALL_LINGUAS.
22317
22318 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
22319
22320         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
22321         indentation.
22322
22323         * Makefile.am (EXTRA_DIST): Fix typo.
22324
22325         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
22326         to catch gdkconfig.h
22327
22328         * gtk/gtkitemfactory.c: Added FIXME.
22329
22330 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
22331
22332         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
22333         s/return_if_fail/return_val_if_fail/g and add a return value.
22334
22335 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
22336
22337         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
22338         merge slipup.
22339
22340         * gdk/gdkinput.h: Fix missing line from merge.
22341
22342 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
22343
22344         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
22345         instead of gdkprivate.h.
22346
22347 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
22348
22349         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
22350         parent class to correctly be GtkDialogClass.
22351
22352 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
22353
22354         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
22355         toplevel windows and their immediate children by their parents,
22356         since the size of toplevel windows is out of our immediate
22357         control and we don't get any real benefit from trying to track
22358         this size for clipping.
22359
22360         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
22361         for input_only windows.
22362
22363         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
22364         to fix some hacks and make sure that we don't try to set the
22365         background of input only windows.
22366
22367 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
22368
22369         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
22370         the _really_ internal stuff, and leave gdkprivate.h for the fake private
22371         stuff that we've traditionally exposed.
22372
22373         * gdk/**.c: Use gdkinternals.h where appropriate.
22374
22375         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
22376         not include gdkprivate-x11.h, move all stuff of conceivable public
22377         interest into gdkx.h; keep all really private stuff in
22378         uninstalled header gdkprivate-x11.h.
22379
22380         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
22381         image->image_put on windows through a new function _gdk_window_draw_image()
22382         to allow us to do backing store for images. (Sort of ugly)
22383
22384         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
22385         contexts locally so that we can offset them properly when drawing 
22386         onto backing pixmaps.
22387
22388         * gdk/gdkinput.h: Reindented
22389
22390         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
22391         pixmap or color for the window, so we can properly initialize
22392         our double-buffer pixmaps, and also so that we temporarily set
22393         a background of None while scrolling.
22394
22395         * gdk/gdkregion.h: Revise region boolean operators to have an
22396         interface that is actually convenient - switch from creating new
22397         regions on every op, to "methods" that modify existing regions
22398         (A = A OP B). 3 argument forms which allow dest == src, would also
22399         be possible, but the current interfaces seem to map nicely
22400         onto what needs to be done. (There is quite a lot of region
22401         code in GDK now.)
22402
22403         * gdk/gdkregion.h: Add constructor from rectangle and a copy
22404         operator.
22405
22406         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
22407         gdkpoly-generic.h: Copy region code from Xlib, switch it over
22408         to 32 bit coordinates, modify it to be mostly GTK+ style
22409         and to have interfaces that match gdkregion.h.
22410
22411         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
22412         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
22413         create a backing pixmap and redirect all drawing to
22414         that backing pixmap until a matching gdk_window_end_paint().
22415
22416         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
22417         Create a special drawable class for GtkWindow's that 
22418         redirects the drawing to the backing pixmap as necessary
22419         and then calls the real operations in _gdk_windowing_window_class.
22420
22421         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
22422         Store invalid region for each window. Generate expose events for invalid
22423         region in an idle. This replaces both the expose compression
22424         and the redrawing queuing in GTK+. It is both more efficient and
22425         simpler than either one individually and far more so then the
22426         combination.
22427
22428         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
22429         Emulate 32 bit coordinates for windows with 16 bit coordinates
22430         by offsetting drawing, guffaw scrolling techniques and
22431         mapping/unmapping child windows as necessary.
22432
22433         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
22434         where, when invalid regions are processed, the region is stored,
22435         and if expose events come in that are detectably duplicate
22436         the processed exposes (by comparison of event serial numbers),
22437         the stored region is subtracted out of those exposes.
22438
22439         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
22440         regions newly exposed when scrolling or resizing windows.
22441         This, combined with forcing processesing of queued invalidated
22442         regions, gives nice flicker-free scrolling.
22443
22444         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
22445         invalidated regions after every scroll.
22446
22447         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
22448         emulation in GDK. Its, for all practical purposes just a
22449         GtkViewport/GtkFixed hybrid now.
22450
22451         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
22452         (16-bit) structures as necessary instead of just casting.
22453
22454         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
22455         in terms of the structures from gdkregion-generic.c, using appropriate
22456         offsets from GDK to X11 coordinates. Cache clip mask and
22457         origin and ts origin locally and only flush to the server
22458         when drawing, to avoid constantly setting and resetting these
22459         values when offsetting GC's for scrolling and backing pixmaps.
22460
22461         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
22462
22463         * gtk/gtkcontainer.c: Call process_all_updates at end
22464         of resizing to reduce flicker. (Avoids having redraw
22465         lag arbitrarily behind resize under some circumstances)
22466
22467         * gtk/gtkentry.c: Remove old backing store code, and simply take
22468         advantage of the new backing store capabilities of GDK.
22469
22470         * gtk/gtkmain.c: Simple implementation of widget backing
22471         store - simply push a paint while handling each expose.
22472         (Should really be configurable widget for widget.)
22473         
22474         * gtk/gtkwidget.c: Remove all the old complicated redraw
22475         code, and simply invalidate the GDK windows from
22476         gdk_window_queue_clear(), etc. (Sigh, so much carefully
22477         debugged complexity ... gone to the winds.)
22478
22479         Remove all the code for suppressing expose events while
22480         resizes are pending; this isn't needed since the invalid
22481         areas won't be processed until after the resizes are
22482         processed, since they are in a lower priority idle.
22483
22484 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
22485
22486         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
22487         and height of dest rectangle for non-intersecting rectangles.
22488
22489 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
22490
22491         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
22492         for GdkRectangle.
22493
22494 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
22495
22496         * gdk/gdk{events,image,private,types,window}.h
22497          gdk/x11/gdkinputprivate.h: Change all coordinates
22498          from int16 to int. Also, Change width and height from
22499          unsigned to signed to avoid all the stupid C 
22500          signedness bugs.
22501
22502 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
22503
22504         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
22505         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
22506         Add some more detailed checking.
22507
22508         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
22509         New function to retrieve the depth of a drawable.
22510
22511         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
22512         field, reorder fields to save memory. 
22513
22514 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
22515
22516         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
22517         of the background image instead of scaling the background down to
22518         a line.
22519
22520         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
22521         which temporarily set slider to wrong size.
22522
22523         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
22524         queue_clear().
22525
22526 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
22527
22528 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
22529
22530         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
22531
22532 2000-03-17  Tor Lillqvist  <tml@iki.fi>
22533
22534         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
22535         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
22536
22537         * gdk/win32/gdkfont-win32.c
22538         * gdk/win32/gdkproperty-win32.c
22539         * gdk/win32/gdkselection-win32.c
22540         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
22541         now declared such.
22542
22543 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
22544
22545         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
22546
22547 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
22548
22549         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
22550         is called without trapping X errors.
22551
22552 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
22553
22554         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
22555         way into the fontset lists.
22556
22557 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
22558
22559         * gtk/gtkthemes.h: add extern "C" scope.
22560
22561 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
22562
22563         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
22564         to make appends to the list constant. (gtk-guy-990901-0.patch)
22565
22566 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
22567
22568         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
22569         for the typename hash table.
22570
22571 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
22572
22573         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
22574         to make sure we never divide by zero. 
22575         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
22576
22577 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
22578
22579         * gtk/gtkfontsel.c: Apply patch from
22580         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
22581         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
22582
22583         Also, some cleanups in atom handling.
22584
22585 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
22586
22587         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
22588         not GtkWidget.
22589
22590 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
22591
22592         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
22593         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
22594         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
22595         more guint wrap-around bugs before going to bed.
22596
22597 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
22598
22599         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
22600         guint wrap arounds in allocation.width.
22601
22602         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
22603         process untill we fit the allocation given.
22604
22605 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
22606
22607         * gtk/gtkwidget.c:
22608         (gtk_widget_unrealize): guard widget access with ref/unref
22609         around signal emission.
22610         (gtk_widget_hide): same here, but also check its destroyed
22611         state before queueing a resize.
22612
22613 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
22614
22615         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
22616         of gtk_default_insensitive_bg as insensitive base color.
22617
22618         * gtk/gtktext.c (gtk_text_style_set): set the background color according
22619         to the widget's state.
22620         (gtk_text_realize): same here.
22621         (gtk_text_state_changed): same here.
22622         (draw_bg_rect): compare background color against base[] from
22623         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
22624
22625 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
22626
22627         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
22628         grabs are active, unless a delete event is send to the toplevel
22629         of the currently grab holding widget.
22630
22631 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
22632
22633         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
22634         debugging g_print's.
22635
22636 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
22637
22638         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
22639         ever make the scrolled-window requisition ever depend on the 
22640         visibility state of the scrollbars for the AUTOMATIC policy. 
22641         This breaks the GTK+ requisition model, and causes loops.
22642
22643 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
22644
22645         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
22646         the default font to avoid problems with XFree86-4.0 where the
22647         default charset is iso10646-1, not iso8859-1.
22648
22649 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
22650
22651         * acinclude.m4
22652         * config.guess
22653         * config.sub
22654         * ltconfig
22655         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
22656
22657         * gtk/Makefile.am: minor cosmetic consistency tweak
22658
22659 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
22660
22661         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
22662         the activate_time to 0, so that we handle a quick
22663         press/release press/release properly and don't suppress
22664         the second release. (Red Hat bug #7545)
22665
22666 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
22667
22668         * gtk/gtkctree.c (row_delete):
22669         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
22670         bugs with destruction notifier, *always* update internal
22671         structures *before* calling user code.
22672
22673 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
22674
22675         A few more fixes for bug #5487, #2051, #2677.
22676         * gtk/gtkclist.c : 
22677         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
22678         not GDK_BUTTON_PRESS.
22679         (resync_selection): resync only if selection_mode is
22680         GTK_SELECTION_EXTENDED
22681         * gtk/gtkctree.c (resync_selection): same here
22682
22683 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
22684
22685         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
22686         gdk_drag_get_selection() and gtk_menu_detach().
22687
22688         [ From Jeroen Ruigrok/Asmodai ]
22689
22690 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
22691
22692         * gtk/gtknotebook.c (gtk_notebook_size_request): 
22693         page->tab_label can be NULL.
22694
22695 2000-01-25  Havoc Pennington  <hp@pobox.com>
22696         
22697         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
22698         arg is boolean
22699
22700         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
22701
22702         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
22703
22704         * gdk/gdkproperty.c (gdk_property_get): return boolean
22705
22706         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
22707
22708         * gdk/gdkim.c (gdk_im_ready): return boolean
22709
22710         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
22711
22712         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
22713         glib clash, should fix glib)
22714
22715         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
22716         (gdk_get_show_events): return gboolean, and canonicalize 
22717         to TRUE/FALSE
22718
22719         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
22720         colormap is private
22721         (gdk_colors_alloc): gboolean whether to be contiguous
22722         (gdk_color_equal): return gboolean since we are a predicate
22723         and not a qsort() (this looks semi-wrong due to glib breakage,
22724         IMO glib should be fixed)
22725         
22726         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
22727         (gdk_get_use_xshm): return gboolean
22728         (gdk_pointer_is_grabbed): return gboolean
22729
22730         * gdk/gdk.h: Change prototypes to match all the above changes,
22731         and re-run egtk-format-protos as required.
22732
22733 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
22734
22735         * gtk/gtkctree.c (resync_selection): 
22736         * gtk/gtkclist.c (resync_selection):
22737
22738         Return immediately if clist->drag_pos < 0. This is a workaround
22739         for the corrupt state that the clist gets into when a
22740         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
22741
22742         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
22743         
22744         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
22745         variable from recent commit.
22746
22747 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
22748
22749         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
22750
22751 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
22752
22753         * gtk/Makefile.am: prefix all autogenerated source that get build in
22754         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
22755         in builddir. since we subsequently cd into srcdir for autogeneration,
22756         the paths have to be stripped from the target file names, thusly we
22757         use $(@F) as target names now.
22758         put a comment about configure.in's --disable-rebuilds option,
22759         which can be used for non-writable source directories, for development
22760         setups though, srcdir has to be *writable*.
22761
22762 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
22763
22764         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
22765           Finish the job of allowing event to be NULL.
22766           (Fixes bug #4283, reported by Chris Blizzard)
22767
22768         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
22769           things so that the cursor appears on screen, properly
22770           take into account INNER_BORDER.
22771           (Fixes bug #4754, reported by Antonio Campos)
22772
22773 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
22774
22775         * gtk/gtknotebook.c (gtk_notebook_map): Don't
22776           show the tab_label unless it itself is visible.
22777
22778           gtk/gtknotebook.c (gtk_notebook_size_request):
22779           Do a better job of making sure that the visibility
22780           of the tab label corresponds to whether it should
22781           be mapped or not.
22782
22783 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
22784
22785         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
22786           Use the requisition, not the allocation, since the
22787           allocation has not necessarily been computed yet.
22788           (Pointed out by Eugene Osintsev)
22789
22790 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
22791
22792         * gtk/gtkstyle.c (gtk_style_new): Dont' set
22793           style/base[GTK_STATE_INSENSITIVE] both to
22794           gtk_default_insensitive_bg!
22795           (Bug #2187, reported by Jonathan Blandford)
22796
22797         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
22798           Add Alt_L, Alt_R to list of invalid accelerators.
22799           (Bug #3736, reported by Vlad Harchev)
22800
22801 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
22802
22803         * gtk/gtkfilesel.c (open_ref_dir): Fix several
22804         bugs which occured after an attempt to open 
22805         invalid home directory left cmpl_state->reference_dir == NULL.
22806
22807          - completion on files in home directory didn't work
22808          - completion on an empty string caused  segfault
22809
22810          (Bug #3678, reported by Steve Ratcliffe)
22811
22812         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
22813         cut and paste error that was causing scales to
22814         be incorrectly positioned.
22815         (Bug #2956,
22816          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
22817
22818 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
22819
22820         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
22821         when checking for dcgettext, if we've found we needed
22822         it for dgettext.
22823 +
22824 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
22825
22826         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
22827         queue_clear on NO_WINDOW widgets during a reparent,
22828         since at that point the window and widget heirarchies
22829         are out of sync. This stops crashing in some cases
22830         (the scrolled window reparent test, for instance), and
22831         _probably_ won't cause drawing errors.
22832
22833         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
22834         test do what it was supposed to do and be robust against
22835         window closings, etc. (Bug #2443)
22836
22837 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
22838
22839         * gtk/gtkentry.c: Fix return values on mouse events.
22840         (Bug #2686, Sky <seb_sky@yahoo.com>)
22841
22842         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
22843         (pointed out by George Lebl)
22844
22845         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
22846         (From Ettore Perazzoli  <ettore@helixcode.com>)
22847  
22848 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
22849
22850         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
22851         clicks between rows or outside calender area correctly.
22852         (Patch from Damon Chaplin)
22853
22854         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
22855         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
22856           Call destroy function when overwriting existing data. 
22857           (Pointed out by Damon Chaplin)
22858
22859 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
22860
22861         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
22862           which was causing problems on various systems with Xmu.
22863           This hasn't been needed for a very long time.
22864           (Fixes #1185 3167)
22865
22866 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
22867
22868         * gdk/gdki18n.h: Include <ctype.h> when defining
22869           gdk_isw* in terms of is* as a fallback.
22870           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
22871
22872 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
22873
22874         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
22875           realize the widget when it is size allocated!
22876           (old, old bug)
22877
22878         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
22879           Removed unused call to gdk_window_get_size() that
22880           showed up when the above was fixed.
22881
22882 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
22883
22884         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
22885           fix up widget->window when the widget is a
22886           NO_WINDOW container widget.
22887
22888 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
22889
22890         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
22891           to account for the fact that feof() does _not_ 
22892           return TRUE on errors, and thus avoid infinite loops
22893           when trying to use gdk_pixmap_create_from_xpm()
22894           on unreadable values.
22895
22896 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
22897
22898         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
22899
22900 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
22901
22902         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
22903           gdk_gc_set_dashes to take gint8 instead of gchar to
22904           make it clearer that it is _not_ a NULL terminated string.
22905
22906         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
22907           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
22908           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
22909           arguments.
22910
22911 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
22912
22913         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
22914         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
22915         background size relative to our allocation, guard against small
22916         allocations, we may have not yet been size allocated.
22917
22918 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
22919
22920         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
22921         not just version == 3. We implement all 3 + most of 4 - 
22922         (we don't support matching text/plain;charset=iso-8859-1
22923         to a dest that expects text/plain). We'll still advertise
22924         3 to be safe, but any client implementing version >= 3
22925         must interoperate with 3.
22926         
22927 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
22928
22929         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
22930         background and gc members, add a warning in gtk_tooltips_set_color()
22931         indicating that this function is deprecated.
22932
22933 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
22934
22935         * docs/gtkfaq.sgml: FAQ Update:
22936           - Minor cleanups (Emmanuel, me)
22937           - New questions:
22938                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
22939                 How can I retrieve the text from a GtkMenuItem? (timj)
22940                 How do I validate/limit/filter the input to a GtkEntry? (me)
22941                 Memory does not seem to be released when I free the list
22942                         nodes I've allocated (timj)
22943
22944 2000-03-07  Tor Lillqvist  <tml@iki.fi>
22945
22946         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
22947         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
22948         for which it is no use to call GetLastError onWin9x.
22949         (gdk_other_api_failed) New function, for general error
22950         reporting without calling GetLastError.
22951         (gdk_win32_api_failed) OTOH, this function always calls
22952         GetLastError. (gdk_win32_last_error_string) Remove this function,
22953         GLib has the equivalent now.
22954
22955         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
22956         call them with function name, file name and line number in the
22957         arguments.
22958
22959         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
22960         functions.
22961         
22962         * gtk/gtk.def: Add some missing entry points.
22963
22964         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
22965         gtk_paned_set_gutter_size, which don't exist any longer, as void.
22966         
22967         Fixes by Hans Breuer:
22968
22969         * gdk/makefile.msc: Update for debugging.
22970
22971         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
22972         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
22973         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
22974         in the dash_list.
22975
22976         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
22977         the x11 backend.
22978
22979         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
22980
22981         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
22982
22983 2000-03-04  Tor Lillqvist  <tml@iki.fi>
22984
22985         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
22986         just pixel value of background colour.
22987
22988         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
22989         containing code snippet previously duplicated in a couple of
22990         places.
22991         
22992         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
22993         gdk_colormap_color.
22994
22995         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
22996         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
22997         events for autorepeated Shift, Control and Alt keys. Use
22998         gdk_colormap_color.
22999
23000         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
23001         pointer is inside the window the cursor of which we are setting,
23002         call SetCursor immediately.
23003
23004         * gdk/win32/makefile.cygwin
23005         * gtk/makefile.cygwin: If we don't have the build number stamp
23006         file, use zero.
23007
23008         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
23009         gtk_paned_set_gutter_size as empty.
23010
23011         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
23012         
23013 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
23014
23015         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
23016           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
23017           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
23018           docs/gtk_tut.sgml docs/gtk.texi TODO:
23019
23020           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
23021
23022 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
23023
23024         * gtk/gtkcalendar.c: Implement num_marked_dates,
23025           and don't emit mutiple day_selected signals on
23026           month_prev.
23027
23028 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
23029
23030         * docs/make-todo (lineno): let title and logo be configurable so
23031         that GNOME can use this script too.
23032
23033         * TODO.xml: added logourl and a title
23034
23035 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
23036
23037         * TODO.xml: Added some UI items, and an explanatory
23038         comment at the top of the file.
23039
23040 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
23041
23042         * TODO.xml: some updates, added abunch of new entries.
23043         a note for those fiddeling with this file, when done
23044         with it, invoke:
23045         $ ./docs/make-todo TODO.xml >/dev/null
23046         and correct output errors before comitting changes.
23047
23048 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
23049
23050         * TODO.xml: Added XML-structured TODO file.
23051         * docs/make-todo: python script to turn TODO.xml into
23052           pretty XML output. 
23053
23054 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
23055
23056         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
23057         the function to let it draw the seven dots, instead of the old,
23058         much maligned, method.
23059         (draw_dot): New function to draw a dot.
23060
23061         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
23062         to draw the handle inside the border width as opposed to outside.
23063         Use paint function instead of gdk_draw_point.
23064
23065         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
23066         to draw the handle inside the border width as opposed to outside.
23067         Use paint function instead of gdk_draw_point.
23068
23069         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
23070         Change indenting to be more GTK like.
23071
23072 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
23073
23074         * docs/gtk_tut.sgml: New section on GtkCalendar
23075         * examples/calendar: Update example code
23076
23077 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
23078
23079         * docs/gtkfaq.sgml: FAQ Update
23080
23081 2000-02-19  Anders Carlsson  <andersca@gnu.org>
23082
23083         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
23084         to prevent the scroll event to be propagated upwards.
23085
23086 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
23087
23088         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
23089         OwnerGrabButtonMask from button entries for
23090         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
23091
23092         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
23093         to the event mask (which will result in button/press release
23094         being added to the event mask on Unix) so scrolling works
23095         for layouts in scroll windows.
23096
23097         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
23098
23099         Patch from Anders Carlsson  <andersca@gnu.org> to add
23100         a scroll event.
23101
23102         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
23103         scrolling to the "Test Scrolling" part of testgtk.
23104  
23105         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
23106  
23107         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
23108         it against GDK_SCROLL.
23109  
23110         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
23111         way of mouse wheel scrolling.
23112  
23113         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
23114  
23115         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
23116  
23117         * gtk/gtkmain.c: Removed previous mouse wheel hack.
23118  
23119         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
23120         gdk_event_mask_table.
23121  
23122         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
23123         GdkEventScroll handler.
23124  
23125         * gdk/gdkevents.h: Added GdkEventScroll structure.
23126  
23127 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
23128
23129         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
23130         and Anders Carlsson to change the Paned widgets so that they
23131         can be dragged from anywhere along the length. Also change
23132         the way that this is drawn to make this apparent.
23133
23134         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
23135         from George Lebl to check that option_menu->menu is present
23136         before getting history.
23137
23138 2000-02-14  Tor Lillqvist  <tml@iki.fi>
23139
23140         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
23141         before the assertion for non-NULL segment list.
23142
23143         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
23144         Seems that pattern brushes *must* be 8x8 pixels! At least on my
23145         machine, but it might be display driver dependent. Sigh, so make
23146         sure the stipple is that size. Does Windows suck or what?
23147
23148         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
23149         places.
23150
23151 2000-02-13  Havoc Pennington  <hp@pobox.com>
23152
23153         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
23154         refcount to 1
23155         (gdk_cursor_new): init refcount to 1
23156
23157         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
23158
23159 2000-02-13  Tor Lillqvist  <tml@iki.fi>
23160
23161         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
23162         so that we don't have to do unnecessary settings to the HDC.
23163
23164         * gdk/win32/gdkdrawable-win32.c
23165         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
23166         gdk_gc_predraw.
23167
23168         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
23169         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
23170         GDI paths, call WidenPath to get the outline of the stroken path,
23171         and then fill the outline (with the brush that was built from the
23172         stipple).
23173
23174         * gdk/win32/gdkgc-win32.c: Factor out common code from
23175         _gdk_win32_gc_new and gdk_win32_gc_set_values into
23176         gdk_win32_gc_values_to_win32values. Use correct colour for
23177         SetBkColor() (Until now the code actually used a random colour in
23178         the call to SetBkColor()... but that didn't show up as not many
23179         GDI APIs use the background colour. Pattern (opaque stippled)
23180         brushes do.)
23181
23182         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
23183         gdk_win32_api_failed): New functions for error logging.
23184
23185         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
23186         WIN32_API_FAILED to call them, passing function or file name and
23187         line number.
23188
23189         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
23190
23191         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
23192         GdkColor for foreground and background in GdkGCWin32Data.
23193
23194         * gdk/makefile.cygwin: Link in the resource object separately.
23195
23196         * gdk/win32/rc/gdk.rc
23197         * gtk/gtk.rc (New file)
23198         * gdk/win32/makefile.cygwin
23199         * gtk/makefile.cygwin: Update build number in DLLs automatically,
23200         as in GLib.
23201
23202 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
23203
23204         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
23205         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
23206         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
23207         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
23208         parameters given and cursor->ref_count. coding style fixups.
23209
23210         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
23211         not GtkWidget.
23212         
23213         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
23214         fix up widget macros and add _GET_CLASS() variant.
23215         
23216         * gtk/*.c: some GtkType fixups.
23217
23218 2000-02-09  Tor Lillqvist  <tml@iki.fi>
23219
23220         * gdk/win32/gdkproperty-win32.c
23221         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
23222         were reversed.
23223
23224 2000-02-04  Tor Lillqvist  <tml@iki.fi>
23225
23226         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
23227         g_filename_to_utf8 to convert the font names Windows gives us from
23228         whatever is the default codepage to UTF-8.
23229         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
23230         in the other direction.
23231
23232         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
23233         error in debugging output.
23234
23235 2000-02-02  Tor Lillqvist  <tml@iki.fi>
23236
23237         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
23238         and height parameters to gdk_window_clear_area(). Not minus one.
23239
23240 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
23241
23242         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
23243         checks if the widget passed to gtk_drag_get_data() was not the
23244         dest widget.
23245
23246 2000-02-01  Tor Lillqvist  <tml@iki.fi>
23247
23248         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
23249         g_filename_from_utf8 functions (which were added a moment ago to
23250         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
23251         size buffers.
23252
23253         gtk_file_selection_get_filename returns the filename in the C
23254         runtime encoding. It calls g_filename_from_utf8, but copies the
23255         returned string to a static buffer, which is returned. I think
23256         this is better than returning the result from g_filename_from_utf8
23257         directly, which would mean all apps that use it would have to free
23258         the return value. Or should this function care about this issue at
23259         all? Maybe a new function with clearly defined semantics.
23260
23261         * gtk/gtkfilesel.h: Add comment about
23262         gtk_file_selection_get_filename returning the filename in the C
23263         runtime's encoding.
23264
23265         * README.win32
23266         * gdk/gdk.def
23267         * gdk/makefile.{cygwin,msc}
23268         * gtk/gtk.def: Updates.
23269
23270         * gdk/gdkcursor-win32.c: Initialise refcount.
23271
23272 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
23273
23274         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
23275
23276 2000-01-30  Havoc Pennington  <hp@pobox.com>
23277
23278         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
23279         destroy
23280
23281         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
23282
23283         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
23284         implemented in platform-specific code
23285
23286         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
23287
23288         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
23289         underscore in front
23290
23291         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
23292         put an underscore in front
23293
23294         * gdk/gdkcursor.c: new file, implements
23295         gdk_cursor_ref/gdk_cursor_unref
23296
23297         * gdk/gdkcursor.h: Refcount GdkCursor
23298
23299         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
23300
23301 2000-01-29  Tor Lillqvist  <tml@iki.fi>
23302
23303         * gdk/gdkwindow.h
23304         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
23305
23306 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
23307
23308         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
23309         structures to properly inherit from GtkWidget not GtkBin.
23310
23311 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
23312
23313         * gtk+.spec.in: Added lib/gtk+/include/* to %files
23314         (bug #5178 - Peter Wainright)
23315         
23316         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
23317         so that it will be installed.
23318         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
23319
23320 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
23321
23322         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
23323         for the GtkStyleClass vtable const.
23324
23325         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
23326         take a const string argument like GtkTranslateFunc. This will
23327         require changes in use code.
23328
23329 2000-01-19  Tor Lillqvist  <tml@iki.fi>
23330
23331         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
23332         semantics (to mimic the X11 backend, which just calls XClearArea)
23333         is to check for zero width (and height), and in that case use the
23334         window's width minus x (height minus y). This fixes for instance
23335         some redraw problems with gtkclist, which were easily noticeable
23336         in the gtk file selection widget.
23337
23338         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
23339         windows.
23340
23341 2000-01-13  Tor Lillqvist  <tml@iki.fi>
23342
23343         * configure.in
23344         * gdk/Makefile.am
23345         * gdk/x11/Makefile.am
23346         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
23347         (bug #5177).
23348         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
23349         out later.
23350
23351 2000-01-09  Tor Lillqvist  <tml@iki.fi>
23352
23353         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
23354         WM_MOVE for iconified or invisible windows. This fixes various
23355         problems when minimising windows. Thanks to Bernd Herd.
23356
23357 2000-01-05  Tor Lillqvist  <tml@iki.fi>
23358
23359         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
23360         backend's draw_lines method, not draw_points.
23361
23362 2000-01-02  Tor Lillqvist  <tml@iki.fi>
23363
23364         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
23365         before Owen's reorganisation: Don't have queued_events and
23366         queued_tail statics in this file, but use gdk_queued_events and
23367         gdk_queued_tail. This makes exposure event compression work again.
23368
23369         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
23370         seem to be needed?
23371
23372 1999-12-30  Tor Lillqvist  <tml@iki.fi>
23373
23374         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
23375         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
23376         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
23377         doesn't do anything.
23378
23379         * gdk/gdk.def: Add gdk_xid_table_insert.
23380
23381         * gdk/win32/gdkprivate-win32.h
23382         * gdk/win32/gdkevents-win32.c
23383         * gdk/win32/gdkinput-win32.c
23384         
23385         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
23386         extension_events field in the GdkWindowWin32Data struct. Use only
23387         the extension_events field in GdkWindowPrivate. Previously one was
23388         set, and the other one tested, which broke tablet
23389         functionality. Thanks to Keishi Suenaga for pointing this out.
23390
23391 1999-12-18  Tor Lillqvist  <tml@iki.fi>
23392
23393         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
23394         When handling a single character (text length == 1), don't handle
23395         it as if it was UTF-8.
23396
23397 1999-12-11  Tor Lillqvist  <tml@iki.fi>
23398
23399         * Makefile.am: Distribute README.win32.
23400         
23401         * gdk/Makefile.am
23402         * gdk/win32/Makefile.am: Distribute Win32 files.
23403
23404         * gdk/makefile.msc: New file.
23405
23406         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
23407         after label).
23408
23409         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
23410         gdk_error_code as GDKVAR, as they are referred outside GDK.
23411
23412         * gdk/win32/makefile.msc: Update.
23413
23414         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
23415         tweaks. Check only if at least one of those Unicode subrange bits
23416         we care for is set. If no code page bits are set, guess (wildly)
23417         based on the charset.
23418
23419         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
23420
23421         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
23422         non-NULL.
23423
23424         * gtk/gtkdnd.c
23425         * gtk/gtklayout.c
23426         * gtk/gtkplug.c
23427         * gtk/gtkselection.c
23428         * gtk/gtksocket.c
23429         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
23430         appropriate. There must be a cleaner way to handle this?
23431
23432         * gtk/gtkrc.c: Must include windows.h on Win32.
23433
23434         * gtk/testgtk.c: No need to include gdkx.h.
23435
23436         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
23437
23438 1999-12-07  Tor Lillqvist  <tml@iki.fi>
23439
23440         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
23441         the rbearing is set to the same as the width, but this should be
23442         fixed.
23443
23444 1999-12-06  Tor Lillqvist  <tml@iki.fi>
23445
23446         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
23447         function. If Windows doesn't tell us what Unicode subranges a font
23448         covers, guesstimate based on the codepages it covers. This will
23449         hopefully help those Windows versions or fonts that don't give us
23450         any useful Unicode subrange information with GetTextCharsetInfo.
23451         Call this function in gdk_font_load_internal.
23452
23453         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
23454         minor changes.
23455
23456 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
23457
23458         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
23459         New function, long needed.
23460
23461 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
23462
23463         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
23464         only_if_exists argument of gdk_atom_intern to
23465         bool.
23466
23467 1999-11-25  Tor Lillqvist  <tml@iki.fi>
23468
23469         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
23470         Fix two copy&paste errors.
23471
23472         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
23473         win32 has changed.
23474
23475         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
23476         GdkWin32SingleFont struct.
23477
23478         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
23479         subranges of loaded fonts. Clear font signature first, in case
23480         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
23481         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
23482
23483         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
23484         Unoffset clip region.
23485
23486 1999-11-23  Tor Lillqvist  <tml@iki.fi>
23487
23488         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
23489         event->any.window before calling filter functions.
23490
23491 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
23492
23493         * gtk/gtkgamma.h: Adapt cast macros to standard.
23494
23495 [ Merges from 1.2 ]
23496
23497 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
23498
23499         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
23500         If translation does not include a '/', use entire
23501         translation instead of crashing.
23502
23503 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
23504
23505         * docs/gtk_tut.sgml:
23506         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
23507
23508 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
23509
23510         * gtk/gtkselection.c (gtk_target_list_remove): Use
23511         g_list_remove_link, not g_list_remove.
23512
23513         [ From Geert Bevin <gbevin@thunderstorms.org> ]
23514         
23515 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
23516
23517         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
23518         statement upon unselection (how the heck did that slip in?).
23519
23520 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
23521
23522         * gtk/gtktext.c (gtk_text_freeze): 
23523         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
23524         in frozen state (and aparently crashes). patch provided by Anders
23525         Melchiorsen <and@kampsax.dtu.dk>.
23526
23527 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
23528
23529         * fix insensitive default/focus widget activation,
23530         reported by Matt Goodall <mgg@isotek.co.uk>.
23531
23532         * gtk/gtkwindow.c (gtk_window_key_press_event): 
23533         (gtk_window_activate_default):
23534         (gtk_window_activate_focus):
23535         return handled=FALSE for actiavtion of insensitive default
23536         widgets. return handled=TRUE for activation of insensitive
23537         focus widgets. don't activate in either case.
23538
23539 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
23540
23541         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
23542         and $glib_cflags to match library order and in the
23543         theory that an old version of GLib is more likely to
23544         be in the include directory for X then vice-versa.
23545         (Bug #2776)
23546
23547 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
23548
23549         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
23550         to determine the locale for fontsets, not LC_MESSAGES;
23551         the user may want English messages with a handling
23552         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
23553         will still be broken) (Bug #2891)
23554
23555 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
23556
23557         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
23558
23559 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
23560
23561         * gtk/gtkrc.ko: Changed the Korean default fontset.
23562
23563 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
23564
23565         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
23566         where when scrolling to the left or top double exposes
23567         were done, causing major slowdowns.
23568
23569 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
23570
23571         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
23572         names to lowercase and alphanumeric, before looking
23573         them up.
23574
23575         * gtk/Makefile.am: Install codeset variant gtkrc files
23576         with normalized names.
23577
23578 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
23579
23580         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
23581         popup menus when the menu is already visible, but its parent
23582         is still hidden, (happens after tornoff window got hidden).
23583
23584 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
23585
23586         * gtk/Makefile.am (install-data-local): Fix
23587         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
23588         deleted, causing error messages on install.
23589
23590 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
23591
23592         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
23593         the handle as well, since we now sometimes ignore
23594         exposes on the handle while resizing.
23595
23596 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
23597
23598         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
23599         extra g_free introduced in one of the last one or two 
23600         commits.
23601
23602 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
23603
23604         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
23605         consistent, put each style that a gtkrc.* file creates
23606         in a unique namespace, remove old files before installing.
23607
23608 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
23609
23610         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
23611         gtk_rc_init is called multiple times. (Yes, people who
23612         do that have bugs in their code.)
23613
23614 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
23615
23616         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
23617         Remove it since it's generated by the Makefile anyway
23618
23619 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
23620
23621         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
23622         device->info.axes for core pointer.
23623
23624 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
23625
23626         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
23627         idle_id, to deal with obsolete, broken C libraries.
23628
23629 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
23630
23631         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
23632         allocation->x/y twice!
23633
23634         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
23635         consistent with gtk_vscale_pos_trough().
23636
23637 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
23638
23639         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
23640         be queueing a resize on a toplevel container between
23641         the time we show it and when we map it. So, we need
23642         to test GTK_WIDGET_VISIBLE() for toplevels, and only
23643         use GTK_WIDGET_DRAWABLE() for child windows.
23644
23645 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
23646
23647         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
23648         (fixes bug #2144)
23649
23650 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
23651
23652         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
23653         container DRAWABLE (instead of VISIBLE), so we don't queue
23654         resizes on non-toplevel containers.
23655
23656 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
23657
23658         * gtk/gtkselection.[ch]: Make the data argument
23659         const guchar *.
23660
23661 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
23662
23663         * gtk/gtkwindow.c: Try to behave sensibly if 
23664         the focus widget is the window itself. (Should
23665         we allow this at all?)
23666
23667 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
23668
23669         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
23670         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
23671         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
23672         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
23673         in prototypes and implementations consistent (Tomas Ogren).
23674
23675         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
23676         before the widget is unparented (reported by damon).
23677
23678         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
23679         since we provide unsigned data anyways.
23680
23681 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
23682
23683         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
23684         the call to gtk_tooltips_layout_text() until later.
23685
23686         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
23687         Call gtk_widget_ensure_style() before using the style.
23688
23689 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
23690
23691         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
23692         for old widgets that don't propagate draws to all
23693         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
23694
23695 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
23696
23697         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
23698         for a redraw but just the widget that requested the resize.
23699
23700 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
23701
23702         * gtk/gtkcontainer.c: added new widget level method
23703         gtk_container_set_reallocate_redraws() and a GtkContainer flag
23704         reallocate_redraws : 1 to reflect the setting, exported this through
23705         the argument system as a boolean ::reallocate_redraws.
23706
23707         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
23708         on the widget because the allocation changes, do so as well for
23709         widget->parent if the parent has reallocate_redraws set to TRUE.
23710         with that containers requesting reallocation redraws get automatically
23711         redrawn if their children changed allocation (this unfortunately
23712         affects also other children that didn't change allocation, but we
23713         cannot work around that before 1.3).
23714
23715 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
23716
23717         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
23718         _and_ height are >0 (not _or_).
23719
23720         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
23721         instead of gtk_container_queue_resize(), which is a core gtk internal
23722         function (must have been on crack when i queued that).
23723
23724         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
23725         we can check more reliably if we want to discard expose events.
23726         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
23727         flag.
23728         
23729         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
23730         we simply trust these events. for deciding whether to discard exposes,
23731         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
23732         
23733 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
23734
23735         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
23736         queues of areas that are completely off screen.
23737
23738         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
23739         logic for handleboxes.
23740
23741         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
23742         check on width/height.
23743
23744 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
23745
23746         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
23747         we are fine with using $@ the way we do (if we actually encounter
23748         brokeness with $@ in VPATH builds because of additional path prefixes,
23749         we need to use $(@F) actually).
23750
23751 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
23752
23753         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
23754         short lived bugs, that would allow language bindings to do surgeries
23755         to our guts.
23756
23757 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
23758
23759         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
23760         where comparison was being done against an uninitialized
23761         value causing intermittant results depending on
23762         compiler flags. Also make it clearer that we aren't
23763         ever initializing the child as 0x0 (though this will
23764         be caught in gtk_widget_size_allocate())
23765
23766 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
23767
23768         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
23769         gtk_window_unset_transient_for() call after we do checks
23770         involving the old transient parent.
23771         [ From Lance Capser <lmc@cyberhighway.net> ]
23772
23773 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
23774
23775         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
23776         an empty file.
23777
23778 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
23779
23780         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
23781         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
23782
23783 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
23784
23785         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
23786         `$@' is valid only in the build dir, not after we've done 
23787         `cd $srcdir'.  Also use `test -f' instead of less portable
23788         `test -e'.
23789
23790 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
23791
23792         * gtk/gtktext.c (correct_cache_insert): Rewrite
23793          for simplicity, and hopefully correctness.
23794          (Fixes bug #1322, which was a segfault when
23795           on some insertions with the properties around
23796           the insertion set up just wrong.)
23797
23798         * gtk/gtktext.c (gtk_text_adjustment): When we receive
23799          a "changed" signal, clamp the new value to the adjustment
23800          bounds to avoid segfaulting if someone tries to change
23801          the adjustment to a bogus value. (Bug #1795)
23802
23803 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
23804
23805         * gtk/gtkmain.c: Ignore unexpected destroy notifies
23806         for children, for toplevel windows handle them
23807         like delete_event.
23808
23809         * gtk/gtkplug.c: Add an unrealize handler so that
23810         we unref plug->socket_window when we are done
23811         with it.
23812
23813 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
23814
23815         * gtk/gtktext.c (clear_area): Fix stupid signedness
23816          problem that was causing background to sometimes
23817          be misaligned.
23818
23819 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
23820
23821         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
23822         
23823         * gtk/gtkmenu.c (gtk_menu_position): Make
23824          sure we never position menus with negative x, y,
23825          since gtk_widget_set_uposition() can't handle that.
23826
23827         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
23828          Modify the positioning code a bit so that we always
23829          put the top-left corner onscreen. (This is for
23830          UI reasons, gtk_menu_position() now takes care of
23831          gtk_widet_set_uposition() brokeness.)
23832
23833 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
23834
23835         * gtk/Makefile.am: fixed up things for -jx, x > 1.
23836
23837 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
23838
23839         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
23840           RC style that is passed in. The lack of the ref
23841           before was a bug. If people worked around this
23842           bug, this will introduce a slight memory leak
23843           in their code. The code should typically look like:
23844
23845             rc_style = gtk_rc_style_new ();
23846             [...]
23847             gtk_widget_modify_style (widget, rc_style);
23848             gtk_rc_style_unref (rc_style);
23849
23850         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
23851           the style if it was already set.
23852
23853         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
23854           style if it was set before.
23855
23856 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23857
23858         * gtk/testgtk.c (main): Add a check to see if we
23859           are being run from the correct directory and
23860           to quit nicely if we are not.
23861
23862         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
23863           static.
23864
23865 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
23866
23867         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
23868
23869         * gtk/gtkwindow.c:
23870         queue resizes unconditionally (gtk_widget_queue_resize will figure
23871         what to do if the window is not realized).
23872         (gtk_window_move_resize): only recenter the window
23873         for GTK_WIN_POS_CENTER_ALWAYS.
23874         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
23875         the same way as GTK_WIN_POS_CENTER.
23876
23877 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
23878
23879         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
23880         with (!(info->last_flags & GDK_HINT_POS)) instead of
23881         (!info->last_flags & GDK_HINT_POS).
23882
23883         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
23884         new_height unconditionally, because we use these values even if
23885         !default_size_changed && !hints_changed.
23886         comented the (default_size_changed || hints_changed) case with
23887         respect to resize rejects from the window manager.
23888
23889         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
23890         in the zvt condition hack, since this includes the window hints, set
23891         the hints after the handling_resize case.
23892
23893         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
23894         window is initially shown with to the geometry.
23895
23896 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
23897
23898         * gtk/gtkwindow.c (gtk_window_move_resize):
23899         s/size_changed/default_size_changed/g so i know what's
23900         really going on (frying brain on smaller flame now).
23901
23902 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
23903
23904         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
23905         we have size_changed upon handling_resize. this is a gross
23906         workaround for the broken zvt widget and should be removed in
23907         1.3 again (search for FIXME).
23908         Owen provided an accurate comment for this:
23909
23910         /* We could be here for two reasons
23911          *  1) We coincidentally got a resize while handling
23912          *     another resize.
23913          *  2) Our computation of size_changed was completely
23914          *     screwed up, probably because one of our children
23915          *     is broken. It's probably a zvt widget.
23916          *
23917          * For 1), we could just go ahead and ask for the
23918          * new size right now, but doing that for 2)
23919          * might well be fighting the user (and can even
23920          * trigger a loop). Since we really don't want to
23921          * do that, we requeue a resize in hopes that
23922          * by the time it gets handled, the child has seen
23923          * the light and is willing to go along with the
23924          * new size. (this happens for the zvt widget, since
23925          * the size_allocate() above will have stored the
23926          * requisition corresponding to the new size in the
23927          * zvt widget)
23928          *
23929          * This doesn't buy us anything for 1), but it shouldn't
23930          * hurt us too badly, since it is what would have
23931          * happened if we had gotten the configure event before
23932          * the new size had been set.
23933          */
23934
23935 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
23936
23937         * gtk/gtkrc.c: deal properly with the fact that RC
23938           style lists may include rc styles more than once.
23939
23940         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
23941           unused static function.
23942
23943         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
23944           stack of directories of RC files currently being
23945           parsed and implicitely add them to pixmap path.
23946           
23947           This fixes a bug where the directory would get
23948           appended then overwritten by pixmap_path declarations.
23949
23950           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
23951
23952         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
23953           theme's exit function. (Patch from Peter Wainwright,
23954           bug #1454)
23955
23956         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
23957           Add a destroy() handler to take care of removing
23958           group for menu item. (Fixes bug #1197)
23959
23960         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
23961           in warning message.
23962
23963 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
23964
23965         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
23966         roundtrip to figure window's width and height, since we know that
23967         anyways from widget->allocation.
23968
23969 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
23970
23971         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
23972           the hints after we request the new size.
23973
23974 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
23975
23976         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
23977           GTK_WIDGET_REALIZED() assertion - we can compute the
23978           hints before we are realized.
23979
23980         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
23981           hint changing so that we have a value of hints_changed
23982           when we decide whether to constrain the window size.
23983
23984         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
23985
23986         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
23987         change back to G_MAXINT.
23988
23989 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
23990
23991         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
23992         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
23993         contain uncluttered values.
23994         (gtk_window_compute_hints): simply assert that window is realized
23995         and that geometry_info is valid, since we rely on this anyways.
23996         (gtk_window_constrain_size): major cleanups to the code.
23997         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
23998         for the base size, instead of the minimums. use 32767 as max width
23999         and height (like in gtkwindow.c) instead of G_MAXINT.
24000
24001 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
24002
24003         * cleaned up the GtkContainer.need_resize flag handling mess, we
24004         only need to force resize requests when we were prematurely
24005         realized, or our widget tree was modified when we were temporarily
24006         hidden. handling these cases directly upon showing the window (i.e.
24007         while the GdkWindow is still unmapped) avoids the need to wait for
24008         a configure event response and therefore makes the GUI more snappier
24009         and avoids blank windows during the roundtrip.
24010
24011         * gtk/gtkwidget.c:
24012         (gtk_widget_hide): 
24013         (gtk_widget_show): don't queue resizes on toplevels, they know how
24014         to deal with matters.
24015
24016         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
24017         flag directly for not visible resize containers and spare us unecessary
24018         signal emissions.
24019
24020         * gtk/gtkwindow.c:
24021         (gtk_window_realize): if we need to enforce premature size allocation,
24022         queue a container resize so we are correctly resized later on.
24023         (gtk_window_init):
24024         (gtk_window_size_request):
24025         don't freak around with the ->need_resize flag,
24026         gtk_container_queue_resize() will care about that.
24027         (gtk_window_show):
24028         handle initial resizing issues here, we can handle matters better in
24029         this place, especially since we know that our GdkWindow is still
24030         unmapped.
24031         (gtk_window_move_resize):
24032         don't care about ->need_resize at all.
24033         handle size changes properly that occoured while we waited for a
24034         configure event.
24035
24036 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
24037
24038         * gtk/gtkwidget.c (gtk_widget_set_uposition):
24039         * gtk/gtkwindow.[hc] (gtk_window_reposition):
24040         Move the hint setting code from gtk_widget_set_uposition
24041         to here; set the hints so that we respect any previously
24042         set geometry hints.
24043
24044         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
24045         change the window hints here or move the window here,
24046         let that happen in gtk_window_move_resize().
24047
24048 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
24049
24050         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
24051         to already queued resizes (and therefore redraws) on a widget, check
24052         its anchestry as well.
24053
24054         * gtk/gtkcontainer.c:
24055         (gtk_container_queue_resize): clear resize widgets for resize
24056         containers before aborting prematurely. this is especially important
24057         for toplevels which may need imemdiate processing or their resize
24058         handler to be queued.
24059         (gtk_container_dequeue_resize_handler): added new internal function for
24060         gtkwindow.c.
24061
24062         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
24063         configure event, take possible changes in window position into account
24064         as well.
24065         if we request a new window size, queue up a resize handler that will
24066         last until the configure event response arrives.
24067         combined the ->need_resize case (initial show) with the general size
24068         (hints) changed case and added even more comments.
24069         if !auto_shrink, only revert to the old allocation if the new size
24070         is smaller than the current allocation.
24071
24072 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
24073
24074         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
24075                            gtk_window_set_geometry_hints
24076                            gtk_window_set_default_size):
24077         When hints are set, queue a resize so that the hints will
24078         be eventually reset on the toplevel.
24079
24080         * gtk/gtkwindow.c (gtk_window_show): Use
24081         gtk_window_compute_default_size(). Clear the need_resize flag
24082         on the initail map so that we don't unnecessarily trigger the
24083         resize code.
24084
24085         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
24086         into separate functions. Compare the hints we are setting
24087         with what we set last time so that we can accurately
24088         tell when we need to reset the hints.
24089
24090         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
24091         function to figure out the size from requisition
24092         and default_size.
24093
24094         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
24095         from fvwm to constrain a size to the geometry hints.
24096
24097         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
24098         to compare two sets of geometry hints.
24099
24100         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
24101         from gtk_window_set_hints(), just compute the hints,
24102         don't set them.
24103
24104         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
24105         code from gtk_window_move_resize() to separate function,
24106         rationalize a bit.
24107
24108 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
24109
24110         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
24111         structure into a new private structure.
24112
24113         * gtkrc.c: Split GtkRcStyle into public/private.
24114         In the private part, add a list of pointers to the
24115         RcStyle lists this RcStyle participates in.
24116
24117         * gtkrc.c: When a RcStyle is free, remove all
24118         lists referencing it from the 
24119         realized_style_ht hash, and free those lists.
24120         
24121         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
24122         gtk_rc_init(), since that adds the default styles
24123         to the list of parsed RC files again.
24124
24125         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
24126         
24127 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
24128
24129         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
24130         checks that ensure that a widget's allocation is at least 1 in width
24131         and height. (GNOME note: this doesn't affect old panel code anymore,
24132         because GtkSocket will request width and height of at least 1 since
24133         Fri Jul 23).
24134
24135         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
24136         allocated yet (happens if the user realizes the window prematurely),
24137         size request and allocate it.
24138         (gtk_window_size_allocate): guard against guint underflows.
24139
24140 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
24141
24142         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
24143         in gtk_built_sources, so gtk.defs gets built prior to all other
24144         sources.
24145
24146 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
24147
24148         * gtk/Makefile.am:
24149         invoke indent on gtkmarshal.*. 
24150         rewrote source generation rules, use COPYING as oldest source tag for
24151         a piggyback rule to generate all sources from (don't touch it ;).
24152         major cleanups, strip spaces on build rules for GNU Make.
24153
24154         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
24155         source and target files from commandline arguments. don't invoke indent.
24156
24157 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
24158
24159         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
24160         notebook after switch to avoid drawing problems.
24161         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
24162         
24163         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
24164         show them instead. 
24165         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
24166
24167 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
24168
24169         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
24170         notebook after switch to avoid drawing problems.
24171         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
24172         
24173         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
24174         show them instead. 
24175         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
24176
24177 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
24178
24179         * gtk/gtkwindow.c:
24180         we use window->need_resize from configure_event now, to indicate that
24181         the gtkwindow should keep its allocation (e.g. because the user resized
24182         the window through window manager handles). resize_count is now reliably
24183         used to figure whether we got the allocation we requested from the
24184         window manager.
24185         configure events get queued as resizes now, the real stuff (size
24186         computation and allocation) now only goes on in gtk_window_move_resize().
24187         GtkWindow's requisition now contains its *real* requisition (like all
24188         other widgets), *not* taking usize into account.
24189         geometry_info->last_{width|height} is now updated from set_hints() only
24190         so it always contains the last hints we set for the window manager.
24191         made some event handlers return TRUE instead of FALSE.
24192         the overall code should be much more straight forward now, and the
24193         significant code portions are accompanied by comments now.
24194         (gtk_window_set_hints):
24195         removed requisition argument and made it
24196         fetch the requisition through gtk_widget_get_child_requisition.
24197         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
24198         does that now.
24199         (gtk_window_show):
24200         ensure that the widget is realized before calling 
24201         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
24202         ensure that we got properly size requested and allocated before
24203         realization.
24204         (gtk_window_configure_event):
24205         ignore plain window moves, or reallocate the widget tree through the
24206         resize queue otherwise.
24207         (gtk_window_move_resize):
24208         mostly rewrote this function to figure window manager hints more
24209         reliably, coalesce window moves and resizes to reduce configure events
24210         and do actuall size allocations.
24211
24212 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
24213
24214         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
24215         that have a resize pending, because a redraw is already queued for them.
24216
24217         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
24218         hack to clear resize_widgets.
24219
24220         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
24221         for resize containers prior to size allocation. (this is also a bit
24222         ugly, but avoids side effects for stopped emissions and is thus more
24223         reliable).
24224         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
24225
24226         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
24227         function from gtk_tooltips_expose, as we connect to ::expose_event
24228         *and* ::draw now.
24229
24230 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
24231
24232         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
24233         checks.
24234         (gtk_target_list_unref): Likewise.
24235
24236         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
24237
24238 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
24239
24240         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
24241         guard against division by zero. (Fixes bug #1339)
24242
24243 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
24244
24245         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
24246         Prevent the trivial leak of information of allowing
24247         word motion when the entry is not visible.
24248
24249 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
24250
24251         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
24252         modality to error dialog as well as confirmation dialogs.
24253         (Bug #1803, reported by Rosanna Wing Sze Yuen)
24254
24255 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
24256
24257         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
24258         tree->view_lines.
24259         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
24260
24261         * gtk/Makefile.am (install-data-local): Solaris apparently
24262         has various troubles with ln -f; use rm first instead.
24263         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
24264
24265 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
24266
24267         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
24268         use `cp' followed by `rm' (the `rm' was already there).
24269
24270 July 30, 1999 Elliot Lee <sopwith@redhat.com>
24271         
24272         * configure.in: Fix autoconf warnings about cross compilation by
24273         trying to provide sane defaults for AC_TRY_RUN.
24274         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
24275         put them into $(srcdir) when generated. Also add a dependency of
24276         gtksignal.h on gtkmarshal.h for -j builds. 
24277         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
24278
24279 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
24280
24281         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
24282         GDK_THREADS_{LEAVE,ENTER} pair.
24283         (From Paul Fisher <pnfisher@redhat.com>)
24284
24285 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
24286
24287         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
24288         width and height are always >0 (owen).
24289
24290 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
24291
24292         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
24293         change that assured that a widget's allocated with and height are
24294         always >1, since this breaks *buggy* panel code. unfortunately this
24295         back-breaks the gimp's color selector.
24296
24297         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
24298         allocation is always >0 in width and height, before sending the
24299         configure event; this is a *gross* hack to get the gimp back to work.
24300         
24301         * marked both cases with TODO-1.3
24302
24303 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
24304
24305         * gtk/gtktext.c: Don't display wrap indicators when
24306         text is not editable and word wrap is on.
24307
24308 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
24309
24310         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
24311         option menus here as they are not derived from menu shell, assure that
24312         the option menu has a menu we can add items to.
24313
24314 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
24315
24316         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
24317         width/height to (gint) before calculations and check against < 0 to
24318         avoid guint wraparounds.
24319
24320 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
24321
24322         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
24323         width and height is never zero. sanity check both dimensions against
24324         32767 and issue a warning if the allocation is greater than that.
24325
24326 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
24327
24328         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
24329         to g_main_pending() as well.
24330
24331 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
24332
24333         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
24334         call to g_main_iteration() - since that will regrab
24335         GTK+ lock to process events.
24336
24337 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
24338
24339         * gtk/gtkwindow.c
24340         - Regularize with the rest of GTK+ by making widget->requisition
24341           not reflect the set_usize()
24342         - Always recompute geometry hints, then check if they
24343           changed before sending them to the X server. The
24344           previous checks for changes would fail in a number
24345           of circumstances. 
24346
24347 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
24348
24349         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
24350
24351 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
24352
24353         * gtk/gtkdnd.c:
24354         - Code cleanups
24355         - Instantaneously update on modifier key presses
24356         - Allow cancellation of the drag with Escape.
24357
24358 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
24359
24360         * gtk/testgtk.c (create_handle_box): Set the policy
24361         to auto_shrink - otherwise the appearance is rather
24362         strange when flipping between horizontal and vertical.
24363
24364 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
24365
24366         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
24367         (gtk_window_set_default_size): don't change a value if it's < 0.
24368         queue a resize.
24369
24370 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
24371
24372         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
24373
24374 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
24375
24376         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
24377         add an extra "/" when concating "/" + filename.
24378         (From Matt Grossman <mattg@oz.net>)
24379
24380 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
24381
24382         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
24383         for fg_gc if we set it for drawing pixmap.
24384
24385 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
24386
24387         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
24388         
24389         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
24390         already set, call old engine's destroy function and
24391         unref the old engine.
24392
24393 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
24394
24395         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
24396
24397 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
24398
24399         * gtk/gtkaccelgroup.h: mark certain functions as internal.
24400
24401 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
24402
24403         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
24404         expand behaviour changed.
24405
24406         * gtk/gtklabel.c (gtk_label_set_pattern):
24407         (gtk_label_set_justify):
24408         (gtk_label_set_line_wrap):
24409         don't bother invoking queue_clear, the reallocation does
24410         that for us, always free_words so the upcoming resize will
24411         relayout the label's contents.
24412
24413 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
24414
24415         * applied argument implementation patches from Elena Devdariani
24416         <elena@cogent.ca>.
24417
24418         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
24419         ::space_style, ::relief
24420         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
24421         * gtk/gtkpreview.c: ::expand
24422         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
24423         * gtk/gtknotebook.c: ::homogeneous
24424         * gtk/gtklabel.c: ::wrap
24425         * gtk/gtklist.c: ::selection_mode
24426         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
24427         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
24428         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
24429         * gtk/gtkclist.c: ::sort_type
24430         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
24431         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
24432
24433 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
24434
24435         * gtk/gtkstyle.c: Removed ill-thought-out part of last
24436         comment.
24437
24438 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
24439
24440         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
24441         counting right when we have to attach a new style
24442         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
24443
24444         * gtk/gtkstyle.c: Documented the refcounting
24445         peculularities of gtk_style_attach.
24446
24447 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
24448
24449         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
24450         window types.
24451
24452         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
24453         of GTK_TOPLEVEL for creating the window.
24454
24455 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
24456
24457         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
24458         the last argument (reported by Per Winkvist).
24459         
24460 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
24461
24462         Fixes for invisible XOR lines (Frank Loemker
24463         <floemker@TechFak.Uni-Bielefeld.DE>)
24464         
24465         * gtk/gtkclist.c (gtk_clist_realize): Always use
24466         a non-zero pixel for GDK_XOR.
24467
24468         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
24469         Use GDK_INVERT instead of GDK_XOR.
24470
24471 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
24472
24473         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
24474         signals if h/voffsets differ from adjustment values.
24475         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
24476
24477 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
24478
24479         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
24480         ::selection-done emissions up to the topmost menu shell.
24481
24482 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
24483
24484         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
24485         the user data on the window before destroying it.
24486
24487         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
24488         unrealize handler to take care of destroying 
24489         notebook->panel properly. 
24490         (Bug #1198 - Morten Welinder <terra@diku.dk>)
24491
24492         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
24493         of g_new and g_realloc to stop memory leak. (Actually,
24494         we could just use g_realloc(), but I'm not 100% sure
24495         that is portable).
24496         (Bug #1196 - Morten Welinder <terra@diku.dk>)
24497
24498 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
24499
24500         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
24501
24502         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
24503         for fontsets.
24504
24505         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
24506         with bin/button confusion.
24507
24508 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
24509
24510         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
24511         and show how preselection of radio items is done.
24512
24513 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
24514
24515         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
24516         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
24517         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
24518         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
24519         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
24520         * gtk/gtktable.c (gtk_table_attach): 
24521         * gtk/gtklist.c (gtk_list_insert_items): 
24522         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
24523         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
24524         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
24525         * gtk/gtkbin.c (gtk_bin_add): 
24526         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
24527         * gtk/gtkfixed.c (gtk_fixed_put): 
24528         * gtk/gtklayout.c (gtk_layout_put):
24529         general fixups to container_add logic. always realize child if
24530         child->parent is realized, only map the child and queue a resize
24531         if child and child->parent are both visible.
24532
24533 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
24534
24535         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
24536         instead of gtk_container_foreach to walk and unrealize children, so
24537         composite children get also unrealized.
24538         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
24539         (gtk_widget_map): assert that the widget is visible (basic constrain).
24540         (gtk_widget_real_map): assert that the widget is realized (basic
24541         constrain).
24542
24543 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
24544
24545         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
24546
24547 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
24548
24549         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
24550         file for iso-8859-2 locales.
24551
24552         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
24553
24554 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
24555
24556         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
24557          (Pointed out by andy@rz.uni-karlsruhe.de and others).
24558          Remove some suspicious and useless lines. 
24559
24560 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
24561
24562         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
24563         width,height = 0, 0 to mean - here to edge of window,
24564         instead of -1, -1, since the former is all we support.
24565
24566 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
24567
24568         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
24569         when removing from quit_functions list.
24570
24571 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
24572
24573         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
24574
24575 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
24576
24577         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
24578          When redrawing characters on non-visible entry, use appropriate
24579          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
24580
24581 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
24582
24583         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
24584         from drag coordinates.
24585         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
24586         use drag_dest_cell.
24587
24588         * gtk/gtktree (drag_dest_cell)
24589         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
24590         (Bug #1129)
24591
24592 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
24593
24594         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
24595         translate_* fields.
24596         (gtk_item_factory_finalize): invoke translate_notify independant from
24597         translate_data.
24598         (gtk_item_factory_set_translate_func): likewise.
24599         (gtk_item_factory_destroy): only remove ifactory pointer from those
24600         widgets that belong to us (stupid me).
24601
24602 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
24603
24604         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
24605         rc_style list when lookup succeeeds.
24606
24607 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
24608
24609         * gtk/gtkctree.c (resync_selection): 
24610         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
24611         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
24612         bug.
24613
24614 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
24615
24616         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
24617         Add some missing GDK_THREADS_ENTER()/LEAVE around
24618         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
24619
24620 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
24621
24622         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
24623         rather than emit_by_name.
24624
24625         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
24626         on the widget across multiple signal emissions.
24627         (gtk_editable_delete_text): same here.
24628         (gtk_editable_class_init): set widget_class->activate_signal after
24629         editable_signals[ACTIVATE] has been created.
24630
24631 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
24632
24633         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
24634         position here prematurely -- we might not have the
24635         right ->min_position and ->max_position yet.
24636
24637 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
24638
24639         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
24640         Add error traps so if the other end of the connection
24641         dies, we survive.
24642
24643         * gtk/gtkselection.c (gtk_selection_notify): Clean
24644         up properly when selection property retrieval fails.
24645         
24646         * gtk/gtkselection.c (gtk_selection_request): Correctly
24647         reject SelectionRequest notifies where the handler
24648         returns no data.
24649
24650 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24651
24652         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
24653         when we've previously highlighted.
24654
24655         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
24656         emit two "drag_leave" signals for Motif drops.
24657
24658         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
24659         back the correct status messages when dropping from
24660         Motif onto a proxy window that is rejecting the
24661         drop.
24662
24663 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
24664
24665         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
24666         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
24667         to compare two argument values. added gtk_arg_to_valueloc() to set a
24668         variable from an arg through its location (pointer).
24669
24670         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
24671         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
24672         as gfloat*, uchars are collected as guchar*, ints are collected as
24673         gint*, etc...
24674
24675 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
24676
24677         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
24678         Include <string.h> instead of <strings.h>.
24679
24680         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
24681         (actually, a lot more duplicate includes occur if
24682          you trace through the sequence of #include's)
24683         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
24684         
24685 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
24686
24687         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
24688         gtk-a-higuti-990322-[0-3]
24689
24690         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
24691         that was causing -DX_LOCALE not to work.
24692
24693         * gtk/gtkrc.c (gtk_rc_init):
24694         X_LOCALE will never have LC_MESSAGES defined
24695
24696 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
24697
24698         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
24699         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
24700
24701         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
24702         left/right as well (gtk-michael-980726-0.patch.gz).
24703
24704         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
24705         for pointer values, use gchar instead of char. fixed uline allocation
24706         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
24707         chunks instead of G_ALLOC_ONLY.
24708         (gtk_label_size_request): always alter requisition as passed and leave
24709         widget->requisition alone.
24710         (gtk_label_set_text): allow NULL strings.
24711         (gtk_label_new): likewise.
24712
24713 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
24714
24715         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
24716
24717 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
24718
24719         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
24720         *and* mapped (i.e. drawable).
24721         (gtk_bin_expose): only send exposes to drawable children.
24722
24723         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
24724         (gtk_box_expose): only send exposes to drawable children.
24725
24726         * gtk/gtkhscale.c (gtk_hscale_draw): 
24727         * gtk/gtkvscale.c (gtk_vscale_draw):
24728         hm, this is an ugly one. we first compute the size of our trough area
24729         here (window relative) and then check intersection with the draw_area
24730         which is parent relative because we're a NO_WINDOW widget, so we need
24731         to offset the trough area by allocation.x and allocation.y before the
24732         check. (this must not be done for the background area though, since
24733         that's already computed parent relative).
24734
24735 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
24736
24737         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
24738         unrealize title buttons.
24739
24740 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
24741
24742         * gtk/gtkclist.c (gtk_clist_column_title_passive)
24743         (gtk_clist_column_title_active): 
24744         only connect/disconnect to GtkWidgetClass::event to block mouse events.
24745
24746         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
24747         zero initialize event, removed superfluous gdk_window_get_pointer call
24748
24749         * gtk/gtklist.c (gtk_list_vertical_timeout)
24750         (gtk_list_horizontal_timeout): removed superfluous
24751         gdk_window_get_pointer call
24752
24753 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
24754
24755         * plugging problems reported by "Bruce Mitchener, Jr."
24756         <bruce@puremagic.com> due to a purify session.
24757
24758         * gtk/gtkstyle.c:
24759         (gtk_style_ref): 
24760         (gtk_style_unref): assert ref_count to be > 0.
24761
24762         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
24763         the requisition.
24764         (gtk_clist_set_shift): likewise.
24765
24766         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
24767         adjustments.
24768
24769         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
24770         event before sending it and set send_event to TRUE (which needs to
24771         be done for *all* synthesized events).
24772         (gtk_list_vertical_timeout): likewise.
24773
24774         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
24775         leaks.
24776
24777         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
24778         to TRUE when synthesizing events.
24779
24780 [ *** end of merges from 1.2 *** ]      
24781         
24782 1999-11-21  Tor Lillqvist  <tml@iki.fi>
24783
24784         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
24785         (or copied from gdkconfig.h.win32 on Win32, sigh).
24786
24787         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
24788
24789         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
24790
24791         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
24792
24793         * gdk/gdkconfig.h.win32: New file.
24794
24795         * gdk/win32/makefile.cygwin: Build just a static archive here.
24796
24797         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
24798         for the DLL from the static archive built above.
24799
24800         * gdk/gdk.def: Moved here from the win32 subdirectory.
24801
24802         * gdk/win32/*: Adapt for the changed private struct organisation.
24803
24804         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
24805
24806 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
24807
24808         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
24809         for wheel mice (buttons 4 and 5).
24810
24811 1999-11-18  Tor Lillqvist  <tml@iki.fi>
24812
24813         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
24814         drawables use just the pixel field in the foreground and
24815         background GdkColor of the GdkGC.
24816
24817         gdk_gc_set_{fore,back}ground() are called in the GIMP with
24818         GdkColors containing uninitialized (red,green,blue) fields, and
24819         just the pixel field filled in, and furthermore in the
24820         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
24821         It thus turns out that we really don't need to have the full
24822         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
24823         it later to have just the pixel values.
24824
24825 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
24826
24827         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
24828
24829 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
24830
24831         * docs/gtkfaq.sgml: threads example from Erik Mouw.
24832         New question on GtkLabel background colors.
24833
24834         * docs/gtk_tut.sgml:
24835           - Correct the example code callback
24836             function definitions.
24837           - Update the gtkdial example code, from Frans van Schaik.
24838           - Update setselection.c to current API.
24839
24840         * examples/Makefile examples/*/*.c: Update to code
24841         listed in tutorial.
24842
24843 1999-11-10  Tor Lillqvist  <tml@iki.fi>
24844
24845         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
24846         subrange table (from the "Developing International Software for
24847         WIndows 95 and Windows NT" book) was missing the Hangul syllable
24848         block... Get the loaded font's charset correctly.
24849
24850         (Note that this, and the other *-win32.c files, still really are
24851         the old ones, the win32 subdirectory is not ready for compilation
24852         yet after the reorg.)
24853
24854 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
24855
24856         * gtk/gtkclist.c: Fix off-by-one bug in parameter
24857         check.
24858
24859 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
24860
24861         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
24862         on results of XQueryDeviceState().
24863
24864 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
24865
24866         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
24867         we need to accesss only ->children. We need an accessor
24868         for the children.
24869
24870         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
24871         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
24872         to get rid of gdkx.h include.
24873         
24874         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
24875         and random references to 'None'.
24876
24877         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
24878         Get rid of unused #include <gdk/gdkx.h>
24879
24880         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
24881         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
24882         gdkconfig.h.
24883
24884 1999-11-08  Tor Lillqvist  <tml@iki.fi>
24885
24886         * gdk/win32/gdkdraw.c
24887         * gdk/win32/gdkfont.c
24888         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
24889         following yesterday's changes. (Unrelated to Owen's reorg.)
24890
24891 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
24892
24893         * gdk/x11/gdkinput-gxi.c: Add missing include,
24894           fix GdkWindowPrivate => GdkDrawablePrivate.
24895
24896         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
24897
24898         * gdk/x11/Makefile.am (xinput_sources): Add missing
24899         backslash to fix building with --with-xinput=none
24900
24901 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
24902
24903         Move all X specific code into the x11/ directory.
24904         Aside from shuffling things around, did the following:
24905
24906        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
24907          gdk_arg_context_* - a simple argument parsing system
24908          in the style of popt.
24909
24910        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
24911          gdk/x11/gdkprivate-x11.h:
24912          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
24913          add ->klass and ->klass_data fields. The klass_data
24914          field points to an auxilliary structure that is
24915          windowing system dependent.
24916
24917        * gdk/gdkfont.c: Make most of the measurement functions
24918          simply wrappers around gdk_text_extents().
24919
24920        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
24921          _gdk_font_strlen() function that hides the weird
24922          behavior in gtk+-1.[02] where a string is interpreted
24923          differently for 8-bit and 16-bit fonts.
24924
24925        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
24926          to store common code for synthesizing double/triple
24927          press events.
24928         
24929        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
24930          Make all the function that modify an existing GC
24931          simply wrappers around gdk_gc_set_values().
24932          
24933        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
24934          for throwing out later.
24935
24936        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
24937          GdkImagePrivate and GdkColormapPrivate to have a
24938          windowing system dependent part (GdkFontPrivateX etc.)
24939          that "derives" from the system-independent part.
24940
24941        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
24942          Got rid of the included-source-files for XInput in
24943          favor of automake conditionals. (Which didn't exist
24944          when XInput support was originally added.)
24945
24946        * gdk/gdkrgb.c: Remove the visual id from the debugging
24947          statements since that is X11 specific; print out
24948          type/depth info instead.
24949          
24950
24951 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
24952
24953         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
24954         loading duplicates of hashed fonts.
24955
24956         * gdk/gdk.c (gdk_keysym_convert_case): rename
24957         gdk_XConvertCase to gdk_keysym_convert_case, allow
24958         results to be NULL in the GTK+ style.
24959
24960         * gdk/gdkcompat.h: Started compatibility header
24961         for renames.
24962
24963 1999-11-07  Tor Lillqvist  <tml@iki.fi>
24964
24965         * gdk/win32/gdkprivate.h: New font private structures, related to
24966         fontsets.
24967
24968         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
24969         gdk_font_list_free(). On X11, will just be wrappers to
24970         XListFonts() and XFreeFontNames(). On Win32, the code previously
24971         in gtkfontsel.c is now here.
24972
24973         New function gdk_font_xlfd_create(). On X11 will get the FONT
24974         property of the font (for GDK_FONT_FONTs), or call
24975         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
24976         builds a XLFD style name from the font information in the LOGFONT
24977         struct(s).
24978
24979         New function gdk_font_xlfd_free(), which correspondingly frees the
24980         string returned by gdk_font_xlfd_create().
24981
24982         Implement fontsets on Win32. Add a function that iterates over a
24983         wide char string and calls a callback function for each substring
24984         of wide chars from the same Unicode subrange (and thus probably
24985         available in the same real font).
24986
24987         Improve the XLFD emulation a bit.
24988
24989         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
24990
24991         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
24992         Beta3, WM_IME_CHAR messages don't seem to contain the composed
24993         multi-byte char as with the Active IMM on Win9x. Oh well, handle
24994         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
24995         ImmGetCompositionStringW() to get the composed Unicode chars.
24996
24997         * gdk/win32/gdkgc.c
24998         * gdk/win32/gdkdraw.c: Changes needed because of the font private
24999         struct changes.
25000
25001         * gdk/win32/gdk.def: Add the new functions.
25002
25003 1999-11-04  Tor Lillqvist  <tml@iki.fi>
25004
25005         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
25006         get the Platform SDK to get <dimm.h>.
25007
25008         * gdk/win32/gdkevents.c: More event handling fixes and
25009         simplification. Never generate motion events with is_hint true. We
25010         used to do that on bogus grounds earlier. Windows sends
25011         WM_MOUSEMOVE messages on button events even if the mouse hasn't
25012         moved, ignore these.
25013
25014         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
25015
25016         * gdk/win32/gdkglobals.c
25017         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
25018         the TrackMouseEvent function, and use it.
25019
25020         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
25021         char before calling WideCharToMultiByte in order to get a string
25022         for the window title.
25023
25024         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
25025
25026         * gdk/win32/gdk.def: Remove obsolete functions.
25027
25028         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
25029         /nodefaultlib and /defaultlib switches.
25030
25031         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
25032
25033 1999-10-31  Tor Lillqvist  <tml@iki.fi>
25034
25035         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
25036         EuroSign).
25037
25038         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
25039         same type as GdkWChar, especially on Win32.
25040
25041         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
25042
25043         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
25044         before passing to Windows GDI for drawing etc. Convert to the
25045         system default codepage before passing to Windows as window
25046         titles.
25047
25048         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
25049         support changing input locale on the fly.
25050
25051         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
25052         on-the-fly changes. Convert incoming characters from the current
25053         codepage to Unicode (and then to a UTF-8 multi-byte string) based
25054         on the current input language. Use keysym<->Unicode mapping tables
25055         and functions borrowed from xterm sources.
25056
25057         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
25058         editions of Win9x, use the ActiveX-based Active IMM (Input Method
25059         Manager) if available. IMEs and the Active IMM are available under
25060         the disguise of Chinese, Korean and Japanese support for IE and
25061         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
25062         support is present in all editions (as long as you install it).
25063
25064         Call DispatchMessage from gdk_events_queue() (and thus
25065         gdk_WindowProc()), instead of duplicating the code in
25066         gdk_WindowProc().
25067
25068         Reworked the grab handling and propagation code, factored out
25069         duplicated code snippets into separate functions. Other cleanups,
25070         too.
25071
25072         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
25073         the <dimm.h> header describing the Active IMM.
25074
25075         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
25076         just do the same as for "single" fonts.
25077
25078         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
25079         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
25080         the new keysyms from gdkkeysyms.h.
25081
25082         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
25083         fontset, so that gtkentry uses wide characters.
25084
25085         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
25086         GTk+'s system directory "gtk+", not "gtk".
25087
25088 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
25089
25090         * docs/gtkfaq.sgml: FAQ update
25091
25092 1999-10-21  Tor Lillqvist  <tml@iki.fi>
25093
25094         * gdk/win32/gdkprivate.h: Add more font private data.
25095
25096         * gdk/win32/gdkfont.c
25097         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
25098         fonts and strings. Now works much better. You still have to
25099         have a correct font selected, though. No fontset emulation yet.
25100
25101 1999-10-19  Tor Lillqvist  <tml@iki.fi>
25102
25103         * gtk/maketypes.awk: Use G_OS_WIN32.
25104
25105         * gtk/gtk.def: Add some missing entry points. Also some non-public
25106         ones, but PyGTK porter claims to need them.
25107
25108         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
25109         built-in type generation.
25110
25111 1999-10-14  Tor Lillqvist  <tml@iki.fi>
25112
25113         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
25114         GDK_FONT_FONT fonts (which is all we have for now, we don't
25115         emulate fontsets). The X11 version uses plain XDrawString in that
25116         case, too. The string passed to gdk_draw_text_wc seems to be in
25117         fact (at least, when used by gtkentry and gtktext) either in a
25118         single-byte charset, or a DBCS. Not Unicode.
25119
25120         This fixes the problem in gtkfontsel, where even if you had
25121         selected a font with a non-Latin1 charset (windows-greek, for
25122         instance), the preview still used Latin-1 glyphs.
25123
25124         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
25125         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
25126         (gdk_font_load): Recognize the demibold etc weights, even if we
25127         don't have the corresponding constants in the headers.
25128         (gdk_font_hash_insert): Use same hash mechanism as in the X11
25129         version. Should save font resources a bit, when we don't have
25130         multiple HFONTs for the same font.
25131
25132         * gdk/win32/gdkprivate.h: Add the names field as in the X11
25133         version.
25134
25135 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
25136
25137         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
25138         X values
25139
25140 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
25141
25142         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
25143         layout support (as mentioned on
25144         http://www.jcinteractive.com/gnome-ui/software/widgets/)
25145
25146 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
25147
25148         * gtk/fnmatch.c
25149         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
25150
25151 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
25152
25153         * configure.in (ALL_LINGUAS): Added Galician (gl)
25154
25155 1999-10-05  Tor Lillqvist  <tml@iki.fi>
25156
25157         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
25158
25159         * gdk/win32/gdkcompat.c: New file, actually provide an
25160         implementation for the deprecated functions. (Just temporarily.)
25161
25162         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
25163
25164         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
25165
25166         * gdk/win32/gdk.def gtk/gtk.def: Updates.
25167
25168 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
25169
25170         * configure.in: Added "uk" to ALL_LINGUAS.
25171         
25172 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
25173
25174         * configure.in: correct checking for BeOS check
25175
25176         * gdk/gdktypes.h
25177         * gtk/fnmatch.c
25178         * gtk/gtkfilesel.c
25179         * gtk/gtkitemfactory.c
25180         * gtk/gtkmain.[ch]
25181         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
25182
25183 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
25184
25185         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
25186         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
25187         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
25188         by Bulgarian). 
25189
25190 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
25191
25192         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
25193         Fix a reference to window_private->destroyed.   
25194
25195         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
25196         (ugly) setting of an internal GdkWindow member to use
25197         a _slightly_ cleaner macro.
25198
25199         * gdk/gdkprivate.h: Split GdkWindowPrivate into
25200         GdkDrawablePrivate and GdkWindowPrivate.
25201         Add extra macros for accessing GDK_DRAWABLE_ components.
25202
25203         * *.[ch]: Massive adjustments for the above, use the
25204         new macros in a lot of places.
25205
25206 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
25207
25208         * gdk/gdktypes.h: Make GdkDrawable the base type,
25209         not GdkWindow.
25210
25211 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
25212
25213         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
25214
25215 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
25216
25217         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
25218
25219 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
25220
25221         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
25222         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
25223
25224         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
25225
25226         * docs/gtk-config.1: Now autogenerated.
25227         * docs/Changes-1.4.txt: started
25228         
25229 1999-10-03  Tor Lillqvist  <tml@iki.fi>
25230
25231         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
25232         to #ifdef also here.
25233
25234         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
25235         Owen did to the X11 backend.
25236
25237         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
25238         ScrollWindowEx when blitting inside a window, it can't be correct
25239         in the general case.
25240
25241         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
25242         WM_GETMINMAXINFO is easier.
25243
25244         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
25245         depth equal to the bitspixel value, not the visual's depth.
25246
25247         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
25248         to 24 even if the bitspixel value is 32.
25249
25250         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
25251         need to check for depth==32 when bpp==32, depth will always be 24.
25252
25253 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
25254
25255         * docs/Changes-1.4.txt: Started
25256         
25257         * gtk/Makefile.am (gdk_headers): Include all the new headers.
25258
25259         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
25260         
25261         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
25262         into C file.
25263         
25264         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
25265         header to gdkinputprivate.h.
25266
25267         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
25268         unused since before 1.2.
25269
25270 1999-09-30  Tor Lillqvist  <tml@iki.fi>
25271
25272         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
25273         expand possible hex escapes in the font family (put there by
25274         logfont_to_xlfd if the font name isn't a legal XLFD font family,
25275         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
25276         On Win32, add hex escapes here, too.
25277
25278 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
25279
25280         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
25281         to #ifdef GDK_WINDOWING_X11.
25282
25283 [ Merges from gtk-1-2 ]
25284
25285 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
25286
25287         * configure.in: fixed "GNU Make" check to pass with new make version
25288         3.77.95.
25289
25290 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
25291
25292         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
25293         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
25294         AM_PATH_GTK() macros don't get confused by the -pre1.
25295
25296 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
25297
25298         * configure.in (REBUILD): Change check for perl5
25299           to check explicitely for v >= 5.002. (5.001
25300           does not work with our scripts.)
25301
25302 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
25303
25304         * configure.in: evaluate $PERL for the perl version check. added
25305         --disable-rebuilds to give the user an option to completely disable
25306         any source autogeneration rules.
25307
25308 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
25309
25310         * configure.in: evaluate $ac_make when checking for GNU Make.
25311
25312 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
25313
25314         * docs/Makefile.am: added generation.txt.
25315
25316         * Makefile.am: require automake 1.4, build README from README.in and
25317         INSTALL from INSTALL.in in dist-hook.
25318         
25319         * README.in:
25320         * INSTALL.in: new files to autogenerate README and INSTALL from.
25321
25322         * configure.in: figure whether we have GNU Make
25323
25324         * docs/generation.txt: minor additions/corrections.
25325
25326 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
25327
25328         * docs/gtkfaq.sgml: FAQ Update
25329
25330 July 30, 1999 Elliot Lee <sopwith@redhat.com>
25331         
25332         * configure.in: Fix autoconf warnings about cross compilation by
25333         trying to provide sane defaults for AC_TRY_RUN.
25334
25335 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
25336
25337         * ltconfig
25338         * ltmain.sh: upgrade to libtool 1.3.3
25339
25340 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
25341
25342         * INSTALL: Indicate that the --with-glib= configure
25343         time flag is unsupported.
25344
25345 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
25346
25347         * docs/generation.txt: Added a file that gives
25348         documenation about the autogeneration process for
25349         various autogenerated files.
25350         
25351 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
25352
25353         * configure.in (LIBS): Look for libgmodule in the
25354         right location.
25355
25356 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
25357
25358         * docs/gtk_tut.sgml: Removed references to
25359         code examples in my directory on gtk.org as
25360         they should all be in the tutorial now.
25361
25362         * docs/gtk_tut.sgml: Added sources for dial-test
25363         and scribble-xinput programs that were previously
25364         missing.
25365
25366 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
25367
25368         * TODO: Added entry about menu keyboard navigation, removed
25369         some finished items.
25370
25371 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
25372
25373         * acinclude.m4: Standardize on func_dgettext
25374         not func_gettext, so that the checks for dgettext
25375         actually are paid attention to.
25376
25377 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
25378
25379         * configure.in (LIBS): Add $INTLLIBS into $LIBS
25380         directly, rather than repeating the checks for
25381         gettext.
25382
25383         * INSTALL: Added information about gettext and
25384         NLS support.
25385
25386         * acinclude.m4 (LIBM): Check for dgettext, not
25387         just gettext. This should hopefully fix things wrt
25388         systems with old versions of GNU gettext installed.
25389
25390 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
25391
25392         * configure.in (LIBS): Look for libgmodule in the
25393         right location.
25394
25395 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
25396
25397         * autogen.sh: add --enable-maintainer-mode
25398
25399         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
25400
25401 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
25402
25403         * docs/gtk-config.1.in:
25404           docs/Makefile.am:
25405           configure.in: gtk-config is now generated.
25406
25407         * docs/gtk-config.1: Removed, now generated.
25408
25409 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
25410
25411         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
25412         handle CreateNotify itself, still put out a debuging message for
25413         --gdk-debug=events. made the ReparentNotify debugging message more
25414         verbose.
25415         wrap xcoords translation for ConfigureEvents into an error trap,
25416         a destroy event may already be pending, and in that case, the
25417         actuall coordinate values are not at all critical.
25418
25419 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
25420
25421         * gdk/gdkcc.c: Stop leaking the color_hash all over
25422         the place. Simplify and improve the logic.
25423
25424 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
25425
25426         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
25427         for prototypes and function implementations consistent (reported
25428         by Tomas Ogren).
25429
25430 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
25431
25432         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
25433         send_event set in debugging output.
25434         (gdk_compress_exposures): default initialize the event so we don't
25435         operate on bogus values (namely send_event).
25436
25437 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
25438
25439         * gdk/gdkwindow.c: When we receive an unexpected
25440         destroy notify on one of our windows, don't just
25441         warn about it, also mark our windows as destroyed.
25442
25443 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
25444
25445         * gdk/gdkfont.c (gdk_font_hash_insert): Add
25446           name => font and name => fontset hashes. The 
25447           name => fontset hash is a _big_ win since we
25448           weren't previously caching fontsets at all and loading
25449           fontsets is expensive. The name => font hash
25450           is less of a win, but it does save us from doing
25451           repeated XQueryFont calls on the same font.
25452
25453         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
25454           list so we can remove font/fontset from hash.
25455
25456 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
25457
25458         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
25459           and slightly confusing test. [ XInternAtom (,,TRUE)
25460           will never return None ].
25461
25462 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
25463
25464         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
25465           gdk/gdkwindow.c (gdk_window_set_hints):
25466
25467         Don't omit setting the properties if flags == 0 -
25468         there may be an existing set of properties there
25469         already. (Very old bug. Would it be better to
25470         delete the property instead?)
25471
25472         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
25473           spelling error in comment.
25474
25475 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
25476
25477         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
25478           to avoid stomping over gdk_error_warnings.
25479
25480         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
25481           as (bits_per_pixel + 7) / 8. This gives the same
25482           result as before for multiples of 8, but actually
25483           a "reasonable" value for 1bit or 4bit displays.
25484
25485 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
25486
25487         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
25488         GNU Make.
25489
25490 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
25491
25492         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
25493         discarding configure events.
25494
25495 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
25496
25497         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
25498         refcount is greater than zero.
25499
25500         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
25501
25502         * gdk/gdkfont.c (gdk_font_unref): Likewise.
25503
25504         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
25505
25506         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
25507
25508 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
25509
25510         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
25511         that format 32 => sizeof(item) == 4. It really is
25512         sizeof(long).
25513
25514 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
25515
25516         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
25517         core dump at all on X IO errors, only core dump
25518         if --enable-debug for X errors.
25519
25520 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
25521
25522         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
25523         unknown window:" message. disabled ConfigureNotify discarding code,
25524         because it led to events being processed out of order.
25525
25526 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
25527
25528         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
25529
25530         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
25531         we export this function, supress error warnings and don't reset the
25532         error code in the first half of this function.
25533
25534         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
25535         code (instead of just -1) so gdk_error_trap_pop() reveals something
25536         actually informative about the error that happened.
25537
25538         * gdk/*.c:
25539         don't rely on gdk_error_code being -1 if an error occoured, but just
25540         gdk_error_code != 0.
25541
25542 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
25543
25544         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
25545         pointer *before* invoking the filter function, so we at least don't
25546         crash if a filter is removed that is currently executed. window filters
25547         *really* need to be made truely reentrant at some point.
25548
25549 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
25550
25551         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
25552         PropertyNotify debug messages.
25553
25554 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
25555         
25556         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
25557         
25558         * gdk/gdkim.c: Fix cut-and-paste errors for 
25559         x/y and PreeditAttributes/StatusAttributes.
25560
25561 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
25562
25563         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
25564         G_MAXINT to 2^16 to alleviate overflow problems in
25565         various window managers.
25566
25567 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
25568
25569         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
25570         for fontsets.
25571
25572 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
25573
25574         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
25575         Initialize size_hints.x and size_hints.y because kwm
25576         brokenly pays attention to them.
25577         (Bug #1181 -  Lars Heete <hel@admin.de>)
25578
25579 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
25580
25581         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
25582         return value of gdk_list_visuals(). 
25583         (Bug #1193 - Morten Welinder <terra@diku.dk>)
25584
25585 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
25586
25587         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
25588         XSetIMValues to (void *) when comparing to NULL, to workaround
25589         the problem of some compilers barfing since older X headers don't
25590         have the prototype for it.
25591
25592 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
25593
25594         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
25595         for pseudocolor where colormap->colors was double
25596         allocated.
25597
25598         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
25599         color value in the hash table with the pixel filled
25600         in so when we do later hash table lookups, the color
25601         value is correct.
25602         
25603 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
25604
25605         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
25606         making the call
25607
25608 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
25609
25610         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
25611         pointed out by Morten Welinder <terra@diku.dk>.
25612
25613 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25614
25615         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25616           default filter from the list
25617
25618 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25619
25620         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25621           default filter from the list
25622
25623 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
25624
25625         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
25626
25627         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
25628         g_strdup_printf instead of calcing the length separately
25629
25630 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
25631
25632         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
25633         that we don't do in many other places. (Fixing duplicate 
25634         #include of config.h)
25635
25636         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
25637         Otherwise, #ifndef XINPUT_NONE check in the latter
25638         doesn't work. (Bug #546)
25639
25640 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
25641
25642         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
25643         "None" case insensitive.
25644
25645 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
25646
25647         * gdk/gdkselection.c: 
25648         Add error traps so if the other end of the connection
25649         dies, we survive.
25650
25651 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
25652
25653         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
25654         dest_xid field into two fields - one for the window
25655         to send in messages, one to indicate the last looked
25656         up window for caching purposes. This is needed, so
25657         that Leave messages get the correct window.
25658
25659 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
25660
25661         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
25662         Fix warning created by people mucking around
25663         with the gsource API.
25664
25665         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
25666         Change mapping between GIOCondition and GdkInputCondition
25667         to match the way the Linux kernel does it. This should
25668         fix problems where closed pipes were no longer signalling
25669         GDK_INPUT_READ on systems with a native poll().
25670
25671 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
25672
25673         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
25674         explicitly for the string "None" - it is in the XPM
25675         spec and some servers treat unknown colors in odd ways
25676         (like asking the user!)
25677
25678 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
25679
25680         * gdk/gdkevents.c: made "->" into a "." of previous change so
25681         it compiles
25682
25683 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
25684
25685         * gdk/gdkevents.c (gdk_compress_exposures): Set the
25686         window field of the event structure before calling
25687         user filters.
25688
25689 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
25690
25691         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
25692         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
25693
25694 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
25695
25696         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
25697         intermediate text property - prevents major memory
25698         leak when gdk_use_mb.
25699         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
25700
25701 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
25702
25703         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
25704         gtk-a-higuti-990322-[0-3]
25705
25706         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
25707         sizeof(wchar_t) != sizeof (GdkWChar)
25708
25709         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
25710         that was causing -DX_LOCALE not to work.
25711
25712         * gtk/gtkrc.c (gtk_rc_init):
25713         X_LOCALE will never have LC_MESSAGES defined
25714
25715         * gdk/gdk.c (gdk_init_check):
25716         Remove --xim-preedit and --xim-status from argv properly.
25717
25718         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
25719         that the client window is present on the X server
25720         before we pass it to the input method.
25721
25722 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
25723
25724         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
25725         if --display is specified on the command line, than
25726         the drag window will not be created on that display.
25727         
25728 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
25729
25730         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
25731         lookups with only_if_exists == TRUE were inserting
25732         bogus values into the atom cache.
25733
25734 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
25735
25736         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
25737         then reset it to NULL.
25738
25739         * gdk/gdkcolor.c:
25740         (gdk_colors_free): 
25741         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
25742         key for g_hash_table_remove() in both functions, this prevents us
25743         from accessing possibly uninitialized portions of a GdkColor structure
25744         where we are only interested in its pixel value.
25745
25746 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
25747
25748         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25749         font hash table, if we have a GdkFontPrivate entry for this font
25750         already, simply increment its reference count, provided by Olaf Dietsche
25751         <olaf.dietsche+list.gtk@netcologne.de>.
25752
25753 1999-09-21  Tor Lillqvist  <tml@iki.fi>
25754
25755         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
25756         just to be sure.
25757
25758         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
25759         unused variables, leftovers from the X11 version.
25760
25761         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
25762
25763         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
25764         downcase fields on X11.
25765
25766 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
25767         
25768         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
25769         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
25770
25771 1999-09-17  Tor Lillqvist  <tml@iki.fi>
25772
25773         * gdk/win32/gdk.def: Add gdk_threads_mutex.
25774
25775         * gtk/makefile.msc: Correct path to libintl.
25776
25777         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
25778         use of gint vs. int, and gint vs. gboolean in headers and
25779         definitions. Use GtkType for the *_get_type functions. Note that
25780         these changes preserve binary compatibility.
25781
25782         * gdk/gdk.c
25783         * gdk/win32/gdk.c
25784         * gdk/gdk.h: Fix inconsistencies: gint vs int.
25785
25786         * gtk/gtkmain.c
25787         * gtk/gtkclist.c
25788         * gtk/gtkmenufactory.c
25789         * gtk/gtknotebook.c
25790         * gtk/gtkwidget.c: Fix inconsistencies, also gint
25791         vs. gboolean.
25792
25793         * gtk/gtkcolorsel.[ch]
25794         * gtk/gtkcombo.[ch]
25795         * gtk/gtkdrawingarea.[ch]
25796         * gtk/gtkgamma.[ch]
25797         * gtk/gtkhandlebox.[ch]
25798         * gtk/gtkhpaned.[ch]
25799         * gtk/gtkhruler.[ch]
25800         * gtk/gtkplug.[ch]
25801         * gtk/gtkpreview.[ch]
25802         * gtk/gtkruler.[ch]
25803         * gtk/gtksocket.[ch]
25804         * gtk/gtkstatusbar.[ch]
25805         * gtk/gtktoolbar.[ch]
25806         * gtk/gtkvbbox.[ch]
25807         * gtk/gtkvpaned.[ch]
25808         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
25809         functions.
25810
25811         * gtk/gtkgamma.h: Fix bug, missing () in call of
25812         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
25813
25814 1999-09-14  Tor Lillqvist  <tml@iki.fi>
25815
25816         * gdk/gdkcolor.c (gdk_colormap_new)
25817         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
25818         colormap->colors was allocated twice.
25819
25820         * gdk/win32/gdk.c: Remove some unused stuff.
25821
25822         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
25823         colormap.
25824
25825         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
25826         * gtk/gtklabel.h (gtk_label_get_type)
25827         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
25828         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
25829         in a couple of places, not guint.
25830
25831 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
25832
25833         * configure.in,po/et.po: added Estonian language file
25834
25835 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
25836
25837         * configure.in,po/da.po: added Danish file
25838
25839 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
25840
25841         * docs/gtkfaq.sgml: Minor FAQ Update
25842
25843 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
25844
25845         * docs/gtkfaq.sgml: FAQ update
25846
25847 1999-08-27  Tor Lillqvist  <tml@iki.fi>
25848
25849         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
25850         way to get window contents continually refreshed while resizing. I
25851         didn't like the effects myself, so it's not on by default.
25852
25853         * gdk/win32/gdkprivate.h: New flag variable
25854         gdk_event_func_from_window_proc, FALSE by default.
25855
25856         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
25857         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
25858         are passed --gdk-event-func-from-window-proc.
25859
25860         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
25861         and we have am event_func, call it instead of enqueing the event.
25862
25863 1999-08-23  Tor Lillqvist  <tml@iki.fi>
25864
25865         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
25866         Kelley: Set expose_count in GdkEventExposes correctly.
25867
25868         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
25869         MULTIPLE_WINDOW_CLASSES).
25870
25871         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
25872         for bug in NT, apparently NT *does* draw the end pixel, too, in
25873         LineTo with a one-pixel pen, so we don't have to do it ourselves.
25874
25875 1999-08-21  Tor Lillqvist  <tml@iki.fi>
25876
25877         Improvements by Hans Breuer: 
25878
25879         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
25880
25881         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
25882         CS_?REDRAW flags as they cause lots of (late) redraws when "show
25883         window contents while dragging" is turned on. Allocate at least
25884         one unique class for every GdkWindowType. If support for single
25885         window-specific icons is ever needed (eg. Dialog specific), every
25886         such window should get its own class.
25887
25888 1999-08-19  Tor Lillqvist  <tml@iki.fi>
25889
25890         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
25891         error that caused crashes.
25892
25893 1999-08-17  Tor Lillqvist  <tml@iki.fi>
25894
25895         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
25896         window, use ScrollWindowEx, and call UpdateWindow. This prevents
25897         bugs when for instance part of the window was outside the
25898         display. Thanks to Philippe Colantoni for finding and fixing this.
25899
25900 1999-08-16  Tor Lillqvist  <tml@iki.fi>
25901
25902         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
25903         endpoint calculations which were totally wrong. (A little RTFMing
25904         helps a lot ;-)
25905
25906         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
25907         from a separate directory, not from gettext, because of licensing
25908         issues (we want to use the LGPL version).
25909
25910         * README.win32: Mention the intl from glibc vs from gettext issue.
25911
25912 1999-08-13  Tor Lillqvist  <tml@iki.fi>
25913
25914         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
25915         in the key event handling: Now AltGr chars work again. Also,
25916         now Alt-digits are passed up as well as Control-digits.
25917         Pass keypad plus and minus as normal plus and minus.
25918
25919 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
25920
25921         * docs/gtkfaq.sgml: FAQ Update
25922
25923 1999-07-25  Tor Lillqvist  <tml@iki.fi>
25924
25925         * README.win32
25926         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
25927         the Wintab SDK.
25928
25929         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
25930         OK, but getting closer. Guard against bogus tilt data from Wacom
25931         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
25932         enable easier building without Wintab.
25933
25934         * gdk/win32/gdkinput.h
25935         * gdk/win32/gdkevents.c 
25936         * gdk/win32/gdkwindow.c: Minor changes related related to above.
25937         
25938         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
25939         code. As we have just one visual on Win32, no sense to have it in a
25940         table, and no need for the hash table.
25941
25942         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
25943         better on white background.
25944
25945 1999-07-21  Tor Lillqvist  <tml@iki.fi>
25946
25947         * README.win32: Update gcc build instructions. Mention gettext is
25948         GPL.
25949
25950         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
25951         supported cursor size with GetSystemMetrics.
25952
25953         * gdk/win32/gdkfont.c
25954         * gtk/gtkfontsel.c: Guard against some font weight and charset
25955         symbols being undefined (in mingw32 headers).
25956
25957         * gdk/win32/makefile.cygwin
25958         * gtk/makefile.cygwin
25959         * gtk/gtkthemes.c: No longer need to have differently named
25960         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
25961
25962 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
25963
25964         * docs/gtkfaq.sgml: Long awaited FAQ update.
25965
25966 1999-07-15  Tor Lillqvist  <tml@iki.fi>
25967
25968         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
25969         it. Obscure bit manipulation needed.
25970
25971         * gdk/win32/gdkevents.c: Logging.
25972         
25973         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
25974         style (file name include compiler name) for theme engines.
25975
25976 1999-07-13  Tor Lillqvist  <tml@iki.fi>
25977
25978         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
25979
25980         * gdk/win32/gdkevents.c: Fix long-standing bug in key
25981         events. The key.string wasn't zero-terminated, still we strdup'ed
25982         it in gdk_event_copy(). Synthesize crossing events for button
25983         events before possible propagation.
25984
25985         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
25986
25987         * gdk/win32/makefile.cygwin
25988         * gtk/makefile.cygwin: Use new DLL naming style for the
25989         GCC-compiled ones.
25990
25991         * gdk/win32/makefile.msc
25992         * gtk/makefile.msc: Cosmetics mostly.
25993
25994         * gtk/gtk.def: Add missing entry points.
25995
25996         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
25997
25998 1999-07-09  Tor Lillqvist  <tml@iki.fi>
25999
26000         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
26001         or height is zero. Don't print a warning if Pie or Arc fails, they
26002         always fail (?) for very narrow ellipses.
26003
26004         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
26005         the part or the destination window corresponding to source area
26006         outside of the source drawable's boundary.
26007
26008         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
26009         anything if less than two points.
26010
26011         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
26012         return NULL. Gtk cut-and-paste inside a single program works
26013         better this way. (It always gets the clipboard contents from
26014         Windows, not from its own copy, which is cleared anyway. I can't
26015         say I fully understand what happens... Emulating the X selection
26016         and property stuff is a bit of a mess.)
26017
26018         * gdk/win32/gdkevents.c
26019         * gdk/win32/gdkproperty.c: A bit more verbose logging.
26020
26021         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
26022         that never got deleted). Revamp gdk_region_shrink.
26023
26024         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
26025         after use.
26026
26027         * gtk/gtk.def: Add some missing entry points.
26028
26029         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
26030         component.
26031
26032 1999-07-04  Tor Lillqvist  <tml@iki.fi>
26033
26034         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
26035         Control-digits specially.
26036
26037 1999-07-03  Tor Lillqvist  <tml@iki.fi>
26038
26039         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
26040
26041 1999-06-28  Tor Lillqvist  <tml@iki.fi>
26042
26043         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
26044         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
26045         finding this.)
26046
26047 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
26048
26049         * gtk+.spec.in: Corrected some typos in files section.
26050         
26051 1999-06-15  Tor Lillqvist  <tml@iki.fi>
26052
26053         * README.win32: Mention using GNU gettext.
26054         * config.h.win32: Enable NLS stuff.
26055         * gtk/makefile.msc: Use GNU gettext.
26056         * gdk/win32/gdkdnd.c: Minor header reorg.
26057         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
26058         cosmetics.
26059         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
26060         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
26061
26062 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
26063
26064         * acinclude.m4
26065         * config.guess
26066         * config.status
26067         * ltconfig
26068         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
26069
26070 1999-05-30  Tor Lillqvist  <tml@iki.fi>
26071
26072         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
26073         SafeAdjustWindowRectEx. Don't override all calls to
26074         AdjustWindowRectEx by it, but use it only in two places: When
26075         creating a new top-level window and when moving a top-level
26076         window.
26077
26078         Use screen coordinate rectangle, not client rectangle, in
26079         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
26080         when we try to place a window so that the decoration (mainly,
26081         title bar) isn't visible.
26082
26083         These changes fix the bug that showed up for instance as the
26084         GIMP's saved top-level windows moving right and down (by an amount
26085         equal to the window decoration) for each session. This bug showed
26086         up also in testgtk's "Saved Position".
26087
26088         gdk_window_resize also redone a bit.
26089
26090 1999-05-25  Tor Lillqvist  <tml@iki.fi>
26091
26092         * gtk/testgtkrc: Add (commented out) Windows-style theme
26093         include line.
26094
26095         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
26096
26097 1999-05-18  Tor Lillqvist  <tml@iki.fi>
26098
26099         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
26100         gdkx.h to a gdk subdirectory, so that applications can include
26101         these with <gdk/*.h> without trouble.
26102
26103         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
26104         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
26105         have their bitmap destroyed.
26106
26107         * gdk/win32/gdk.def: Add gdk_root_parent.
26108
26109 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
26110
26111         * configure.in
26112           gtk-config.in
26113           ltconfig
26114           ltmain.sh     
26115           gtk/Makefile.am: changes to compile nicely (with xlib) 
26116           on BeOS
26117
26118 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
26119
26120         * acinclude.m4
26121         * config.guess
26122         * config.sub
26123         * ltconfig
26124         * ltmain.sh: upgrade to libtool 1.3
26125
26126 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
26127
26128         * gtk/gtkclist.c:
26129         * gtk/gtkctree.c: merges from gtk-1-2
26130
26131 1999-04-25  Tor Lillqvist  <tml@iki.fi>
26132
26133         Support added for building using a GNU toolchain on Win32,
26134         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
26135
26136         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
26137         * config.h.win32: Changes for gcc.
26138         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
26139         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
26140         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
26141         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
26142         Protect shl stuff unavaiilable with mingw32 headers.
26143         * gdk/win32/gdkevents.c: Fix typo.
26144         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
26145         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
26146         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
26147         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
26148         the mingw32 headers.
26149         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
26150         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
26151         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
26152         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
26153         Test for NATIVE_WIN32, not _MSC_VER.
26154         * gtk/gtkmain.c: No use warning about developer version on Win32,
26155         there aren't any non-developer versions anyhow.
26156         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
26157         * gtk/makefile.msc: Use pthread from another directory. Minor other
26158         changes. 
26159
26160 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
26161
26162         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
26163           default filter from the list
26164
26165 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
26166
26167         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
26168          when gtk_widget_grab_default() is called for a widget that
26169          is not within a GtkWindow.
26170
26171 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
26172
26173         * docs/gtk_tut.sgml, examples/clist.c: use a
26174           scrolled window in the clist example. Minor
26175           tutorial fixes.
26176
26177 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
26178
26179         * docs/gtk_tut.sgml: Style check from David King
26180           <dking@youvegotmail.net>
26181
26182 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
26183
26184         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
26185         compile with unknown value of GDK_WINDOWING
26186
26187 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
26188
26189         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
26190         after the rule is fired.
26191         (install-exec-local): Install gdkconfig.h only if the contents are
26192         different from the currently installed gdkconfig.h.
26193
26194 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
26195
26196         * gdk/Makefile.am (configexecincludedir): Rename from 
26197         configincludedir so that gdkconfig.h will be installed 
26198         as part of `make install-exec'. 
26199
26200 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
26201
26202         * acinclude.m4
26203         * config.guess
26204         * config.sub
26205         * ltconfig
26206         * ltmain.sh: upgrade to libtool 1.2f
26207
26208         * autogen.sh: libtool is not required to autogen gtk+
26209
26210         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
26211         needed)
26212
26213 1999-03-18  Tor Lillqvist  <tml@iki.fi>
26214
26215         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
26216         declaring gdk variables exported/imported from the DLL. New image
26217         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
26218         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
26219         GDK_DRAG_PROTO_OLE2.
26220
26221         * gdk/gdk.h: Merge in Win32 version: Two new functions,
26222         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
26223         declared only for the Win32 version, but could be in the X11
26224         version as well. (Needed for a Xlib-less gdk_imlib.)
26225         gdk_color_hash should have only one parameter. Declare
26226         gdk_threads_mutex with GDKVAR.
26227         
26228         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
26229         just one parameter.
26230
26231         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
26232         per pixel, not bits.
26233
26234         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
26235         Fetch bpp (which means bits-per-pixel here) from another place on
26236         Win32. Accept also depth==32 (which we might get on Win32) with
26237         bpp==32.
26238
26239         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
26240         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
26241         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
26242         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
26243         in the backend-dependent directory, not in the common gdk
26244         directory.
26245
26246         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
26247         headers.
26248
26249 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
26250
26251         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
26252         want to use the Gtk+ devel version (which is true, and yes - even i am
26253         currently working with the 1.2.x branch). so everyone reading this, you
26254         probably want to issue
26255         cvs checkout -r glib-1-2 glib
26256         and
26257         cvs checkout -r gtk-1-2 gtk+
26258         as your next two comands.
26259
26260 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
26261
26262         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
26263         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
26264
26265         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
26266         file. strongly deprecated the GTK_HAVE_* macros, we provide
26267         GTK_CHECK_VERSION() for people that need to check for certain
26268         Gtk+ versions.
26269
26270         * gtk/gtkcompat.h: removed this from CVS.
26271         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
26272         idea right from the start, it just didn't seem like that back then.
26273
26274 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
26275
26276         * merges from gtk-1-2:
26277
26278 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
26279
26280         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
26281         item factory class has been created.
26282         (gtk_item_factory_parse_rc): likewise.
26283
26284         * gtk/gtkmenu.c:
26285         keep proper references for old_active_menu_item.
26286         (gtk_menu_reparent): unset the usize of the new parent,
26287         so the menu can sanely be size requested and we don't get nasty screen
26288         artefacts upon next reparentation.
26289         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
26290         enter notify. only synthesize enter notifies if the pointer really is
26291         inside the event window.
26292         (gtk_menu_popdown): use gtk_menu_shell_deselect().
26293         (gtk_menu_popup): move the background setting stuff into
26294         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
26295
26296         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
26297         gtk_menu_shell_select_item() to select the new item.
26298         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
26299         do the right thing for deselection as well.
26300
26301 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
26302
26303         * gtk/gtkwidget.[hc]:
26304         (gtk_widget_accelerators_locked): return whether a widget's accelerators
26305         are locked.
26306
26307         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
26308         existing accelerators if the widget's accelerators are locked.
26309
26310 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
26311
26312         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
26313
26314         * gtk/gtkmenu.c: truely forward key press and key release events to
26315         the menu widget from the toplevel or tearoff window. we can't simply
26316         connect to that, we need to stop further processing of the events as
26317         well.
26318
26319 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
26320
26321         * gtk/gtkmenu.c:
26322         (gtk_menu_key_press): pass event->keyval, event->state to
26323         gtk_accelerator_valid, instead of event->keyval twice.
26324         refuse to install single letter accelerators for menus that use
26325         single letter shortcuts.
26326
26327         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
26328         gtk_menu_ensure_uline_accel_group().
26329
26330         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
26331         which will always return an uline accel group, made
26332         gtk_menu_get_uline_accel_group() return NULL if the group isn't
26333         yet created.
26334
26335 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
26336
26337         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
26338
26339         * gtk/gtkclist.c (gtk_clist_column_title_passive):
26340         Leave button sensitive, trap  button_press, button_release,
26341         motion_notify, enter_notify and leave_notify events instead.
26342         (gtk_clist_column_title_active): disconnect event handler.
26343         (gtk_clist_drag_data_get): fixed memory leak. Reported by
26344         Guillaume Laurent <glaurent@worldnet.fr>
26345
26346 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
26347
26348         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
26349         width/height mixups.
26350
26351         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
26352         if needed.
26353
26354 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
26355
26356         * gtk/testgtk.c (create_item_factory): unref the item factory after
26357         window's destruction.
26358
26359         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
26360         count on the menu shell around the menu item's activation, since the
26361         signal emission may cause menu shell destruction.
26362
26363         * gtk/gtkitemfactory.c:
26364         the previous code leaked one accel group per menu. we use
26365         gtk_menu_get_uline_accel_group() now to fix that, and with that
26366         also create the underline accelerator group of the menus only if
26367         required (i.e. an underline accelerator has been specified).
26368         (gtk_item_factory_construct):
26369         (gtk_item_factory_create_item): removed code that would create an
26370         extra accel group for the menu (and leak references).
26371         (gtk_item_factory_create_item): adapted the underline accelerator
26372         installation code to properly feature gtk_menu_get_uline_accel_group().
26373
26374         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
26375         menu->accel_group, this may return NULL if the accelerator group
26376         hasn't been set yet.
26377         added gtk_menu_get_uline_accel_group() to retrive the underline
26378         accelerator group of the menu, this will be created on demand
26379         and proper care is taken about its reference count.
26380
26381         * gtk/gtkitemfactory.h:
26382         * gtk/gtkitemfactory.c:
26383         dumped the approach of keeping a widgets by action list on the
26384         factory since the factory<->widget destroy negotiation didn't work
26385         and would be hard to get going at all. instead we keep a list of
26386         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
26387         persistant throughout a program's life time).
26388         also, i removed the static const gchar *key_* variables, and made
26389         them inline strings (they weren't actually used anyways).
26390         (gtk_item_factory_add_item): update ifactory->items.
26391         (gtk_item_factory_destroy): destroy ifactory->items (and remove
26392         the item factory pointer from the remaining ifactory widgets).
26393         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
26394         list to find the widget.
26395         (gtk_item_factory_get_item): new function that works around
26396         gtk_item_factory_get_widget() limitations, this function will only
26397         return menu items, even for <Branch> entries.
26398
26399 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
26400
26401         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
26402         font hash table, if we have a GdkFontPrivate entry for this font
26403         already, simply increment its reference count, provided by Olaf Dietsche
26404         <olaf.dietsche+list.gtk@netcologne.de>.
26405
26406         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
26407         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
26408
26409 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
26410
26411         * gtk/gtkcontainer.c:
26412         (gtk_container_add_with_args):
26413         (gtk_container_addv):
26414         (gtk_container_add): before adding a child to a conatiner, make sure
26415         it is (default) constructed, this is neccessary because under certain
26416         circumstances the child will get relized and mapped immediatedly, in
26417         which case it has to be constructed already.
26418
26419 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
26420
26421         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
26422         values > 1 as TRUE also.
26423
26424 1999-03-16  Tor Lillqvist  <tml@iki.fi>
26425
26426         * README.win32: New file.
26427                 
26428         * configure.in: Check for lstat.
26429
26430         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
26431         completeness.
26432
26433         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
26434
26435         * gtk/gtk.def: Removed CRs.
26436
26437         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
26438         ..\gdk\win32).
26439
26440         * gdk/win32/makefile.msc: Correct upwards relative paths.
26441         
26442 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
26443
26444         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
26445           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
26446           it was connecting a void function to expose_event and the int
26447           returning function to the draw signal
26448
26449 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
26450
26451         * configure.in:
26452         Use correct path to libgmodule.la when ref'ing uninstalled copy
26453         of glib.  (Already in stable branch, Bug #417)
26454
26455 1999-03-15  Tor Lillqvist  <tml@iki.fi>
26456
26457         Win32 merge and general portability stuff:
26458                 
26459         * acconfig.h,configure.in: Check for <sys/time.h>.
26460
26461         * gdk/win32: New directory (actually, been there for a while).
26462         
26463         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
26464         NATIVE_WIN32, and use these. Always case fold on Win32. No
26465         backslashed escapes on native Win32.
26466
26467         * gtk/{gtk.def,makefile.msc}: New files.
26468
26469         * gtk/Makefile.am: Add above new files.
26470         
26471         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
26472         instead of <strings.h>.
26473
26474         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
26475         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
26476         <unistd.h> appropriately.
26477
26478         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
26479         Use ABS() (from <glib.h>) instead of abs().
26480         
26481         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
26482         of gtk (and thus glib) headers, so that WIN32 will be
26483         defined. With MS C, include <direct.h> for mkdir prototype.
26484
26485         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
26486         some casts, needed by MS C.
26487
26488         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
26489         implemented).
26490
26491         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
26492         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
26493         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
26494
26495         * gtk/gtkmain.h: Mark variables for export/import on Win32.
26496                 
26497         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
26498         the event is not a hint, or its window is not the slider. Needed
26499         on Win32, at least.
26500
26501         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
26502         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
26503         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
26504         a subdirectory of the Windows directory as gtk system
26505         configuration directory.
26506
26507         * gtk/gtkselection.c: No chunks on Win32.
26508
26509         * gtk/gtksocket.c: Not implemented on Win32.
26510
26511         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
26512
26513         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
26514
26515         * gtk/maketypes.awk: Declare variables with a macro that expands to
26516         necessary export/import magic in the case of Win32.
26517                 
26518         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
26519
26520 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
26521
26522         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
26523         since those were meant only for gdki18n.h.  
26524         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
26525         for widechar tests.
26526         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
26527
26528 1999-03-13  Tor Lillqvist  <tml@iki.fi>
26529
26530         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
26531         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
26532
26533         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
26534         installed) to CFLAGS.
26535
26536         * gdk/Makefile.am: Add rules for gdkconfig.h.
26537
26538         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
26539         APIs.
26540
26541         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
26542         gdkx.h anyway when compiling for X11.
26543         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
26544         general): Merge in Win32 version.
26545         
26546         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
26547         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
26548         expansion (if we don't have HAVE_PWD_H), allow for drive
26549         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
26550         included code from Craig Setera's port to Win32 (the one that uses
26551         X11, and the cygwin dll), even if it probably will be abandoned.
26552
26553         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
26554         the user entered one herself.  This way one can complete *.h and
26555         don't get matches on any .help files, for instance.
26556         
26557 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
26558
26559         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
26560         font hash table, if we have a GdkFontPrivate entry for this font
26561         already, simply increment its reference count, provided by Olaf Dietsche
26562         <olaf.dietsche+list.gtk@netcologne.de>.
26563
26564         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
26565         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
26566
26567 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
26568
26569         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
26570         the number of calls to gdk_draw_point() (and thus to X) by
26571         clipping the points by hand.
26572
26573         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
26574         the clip parameter.
26575         (gtk_handle_box_paint): Only paint the handle if the expose area
26576         intersects it.
26577
26578 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
26579
26580         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
26581
26582 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
26583
26584         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
26585         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
26586
26587 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
26588
26589         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
26590          textmode (O_TEXT) for OS/2 version.
26591
26592 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
26593
26594         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
26595         GtkSpinButton, "input" and "output", to make the output more flexible.
26596         The user has to provide a mapping between adjustment->value and the
26597         output string (and vice versa, if the spin button is editable). 
26598         See testgtk for examples.
26599
26600 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
26601
26602         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
26603         new one.
26604         
26605         * configure.in: set gtk+ version to 1.3.0.
26606
26607         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,