1 Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
3 * gtk/gtklayout.c (gtk_layout_get_property):
4 * gtk/gtkspinbutton.c (gtk_spin_button_get_property):
5 * gtk/gtktreeview.c (gtk_tree_view_get_property):
6 * gtk/gtkwidget.c (gtk_widget_get_property):
7 * gtk/gtkfontsel.c (gtk_font_selection_get_property):
8 * gtk/gtkrange.c (gtk_range_get_property):
9 * gtk/gtkviewport.c (gtk_viewport_get_property):
10 * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
11 possible NULL pointer.
13 2002-01-08 Mike Kestner <mkestner@speakeasy.net>
15 * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
16 * gtk/gtktreednd.h : ditto.
17 * gtk/gtktreemodel.h : ditto.
18 * gtk/gtktreesortable.h : ditto.
19 * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
21 2002-01-08 Matthias Clasen <matthiasc@poet.de>
23 * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather
24 than XIDs in the docs.
26 * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
28 Tue Jan 8 18:39:23 2002 Jonathan Blandford <jrb@redhat.com>
30 * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
31 Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
33 Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
35 * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
36 Handle TOGGLE/RADIOBUTTON as well. (#68201,
39 * gtk/gtktoolbar.c (get_first_child): Fix stupid
42 Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
44 * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
45 translations, once and for all.
47 * gtk/gtktextbuffer.c (paste_from_buffer): Free
48 the ClipboardRequest structure. (#66198, HideToshi
51 2002-01-08 jacob berkman <jacob@ximian.com>
53 * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
54 the child rather than the layout. see bug #68263
56 Tue Jan 8 14:51:19 2002 Owen Taylor <otaylor@redhat.com>
58 * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
59 the handle if we aren't showing both children.
60 (#68135, Diego Gonzalez)
62 Tue Jan 8 14:45:43 2002 Owen Taylor <otaylor@redhat.com>
64 * gtk/gtkwidget.c (gtk_widget_add_events): Fix
65 leak of result of gtk_container_get_children().
67 Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
69 * gtk/gtktoolbar.c: Fix leaks of results of
70 gtk_container_get_children(). (#68199, Damon Chaplin)
72 Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
74 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
75 Fix problem where child->requisition was accessed
76 directly instead of calling get_child_requisition()
77 (#68199, Damon Chaplin)
79 2001-01-08 James Henstridge <james@daa.com.au>
81 * gtk/gtkstyle.c: add trailing */ on doc comment.
83 Mon Jan 7 22:19:32 2002 Owen Taylor <otaylor@redhat.com>
85 * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
86 problem where were the offset into the image was passed
87 into convert_to_format() wrong.
89 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
90 gdk_x11_drawable_update_picture_clip () before using
91 the picture; allow update_picture_clip() to take a NULL gc
94 2002-01-07 Matthias Clasen <matthiasc@poet.de>
96 * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
98 * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
100 * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
102 * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
104 * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
105 gtk/gtkwidget.c (gtk_widget_get_toplevel,
106 gtk_widget_push_composite_child), gtk/gtkdialog.c
107 (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
108 from messing up the indentation of inline examples.
110 * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
113 * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
114 gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
115 gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
117 * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
118 gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
121 2002-01-07 Anders Carlsson <andersca@gnu.org>
123 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
124 unused pixels and rowstride variables.
125 (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
127 Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
129 * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
130 the pointer by x/y_offset into the new window when we found
131 the drag destination.
133 * gtk/gtkaccelmap.c (internal_change_entry): fix return code
134 for simulation when the entry already contains the required
137 2002-01-06 Matthias Clasen <matthiasc@poet.de>
139 * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by
140 G_DISABLE_CAST_CHECKS.
142 * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
143 gtk_accel_group_query, gtk_accel_group_find,
144 gtk_accel_groups_from_object): Document.
146 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
148 2002-01-04 Hans Breuer <hans@breuer.org>
150 * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c :
151 need to cast image->mem away from void* to avoid
152 'error C2036: 'void *' : unknown size'. Doing pointer
153 arithmetics on void pointers is a GCCism afaik.
155 * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
158 * gdk/makefile.msc gdk/win32/makefile.msc
159 gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
161 * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
162 and take care of image->visual possibly NULL.
164 * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
165 _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
166 Again take care of image->visual possibly NULL.
168 * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
170 * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
171 instead of private field access
173 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
174 colormap setting to the gdk-X behaviour
176 2001-01-04 Matthias Clasen <matthiasc@poet.de>
178 * gtk/gtkwidget.c: Documentation additions.
180 2001-01-04 Matthias Clasen <matthiasc@poet.de>
182 * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
184 * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
186 2002-01-04 Havoc Pennington <hp@pobox.com>
188 * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
190 Fri Jan 4 13:05:15 2002 Owen Taylor <otaylor@redhat.com>
192 * gtk/gtkdnd.c (gtk_drag_find_widget): At least
193 don't infinite loop if the widget and window heirarchies
196 * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
197 in heirarchy in ::drag_motion, ::drag_drop callbacks
198 by referencing child widget lists. (Patch from Tim)
200 * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
201 with widgets where window.x != widget->allocation.x
203 Fri Jan 4 01:36:48 2002 Owen Taylor <otaylor@redhat.com>
205 * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
206 a little bit. (More for consistency than because it
207 makes much of a difference.)
209 Thu Jan 3 22:18:15 2002 Owen Taylor <otaylor@redhat.com>
211 * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
212 (_gdk_x11_have_render): Private function to tell if we have RENDER
215 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
216 None if we don't have RENDER extension.
218 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
219 use Xft unless we have render extension.
221 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
222 Handle missing render extension.
224 * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
225 gdk/gdkinternals.h: Add a private copy_to_image() virtual function
226 to the GdkDrawable vtable that extends get_image() to allow
227 copying onto existing images. Make the default implementation of
228 get_image() use this so that backends don't have to implement
229 both. Add private wrapper _gdk_drawable_copy_to_image().
231 * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
232 gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
233 copy_to_image() semantics, speed up by using ShmPixmaps and
234 XCopyArea when possible, XFlush() after ungrabbing the server,
235 generally redo the logic once again.
237 * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
238 _gdk_windowing_bits_per_depth(): Function to convert from depth to
239 bits-per-pixel. (We assume only one bpp per depth - X requires
242 * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
243 scratch image code into a generic _gdk_image_get_scratch() chunk
244 of code that we can use other places we need scratch images.
246 * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
247 Add _gdk_image_new_for_depth() as the backend
248 to _gdk_image_new() to allowing creating images with
249 a depth and no visual.
251 * gdk/gdkpixbuf-drawable.c: Fix so that getting
252 parts of images not at 0,0 actually works.
254 * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
255 gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c:
256 - Add a new GdkDrawableClass vfunc _draw_pixbuf, and
257 _gdk_draw_pixbuf() [ will be made public later ], to allow
258 backends to accelerate drawing pixbufs.
259 - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
260 to be the default implementation.
261 - Update docs for gdk_pixbuf_render_to_drawable_alpha().
262 - Optimize the default implementation by using
263 _gdk_image_copy_to_pixmap() and scratch shared images, and
264 special casing the compositing.
266 * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
267 with alpha using the RENDER extension.
269 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
270 Optimize by _gdk_image_copy_to_pixmap() and scratch images.
272 * tests/testrgb.c: Add test for speed of alpha composition,
273 reduce the number of iterations since alpha composition
276 * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap):
277 Private function to get a ShmPixmap for an image, if possible.
279 2002-01-04 Anders Carlsson <andersca@gnu.org>
281 * tests/testtreesort.c: Add my cool list of integers.
283 Thu Dec 27 18:12:55 2001 Owen Taylor <otaylor@redhat.com>
285 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
286 problem where retrieved atoms weren't properly returned.
288 2002-01-03 Anders Carlsson <andersca@gnu.org>
290 * gtk/gtktextview.c (gtk_text_view_key_press_event): When
291 tab is pressed and the text view isn't editable,
292 move the focus instead.
294 * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
297 * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
299 * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
301 * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
304 * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
305 _gtk_tree_view_queue_draw_node.
306 (gtk_tree_view_row_has_child_toggled): Only redraw one node.
308 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func):
309 sort_column_id can be 0.
311 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
312 Only redraw one the node being selected.
314 * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
316 Wed Jan 2 23:09:06 2002 Tim Janik <timj@gtk.org>
318 * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
319 realized but visible && !mapped resize containers (which is
320 possible with unset CHILD_VISIBLE now).
322 2002-01-02 jacob berkman <jacob@ximian.com>
324 * gtk/Makefile.am (LDFLAGS): automake still doesn't support
325 libsomething_la_LDFLAGS, so fix the build again
327 2002-01-01 Havoc Pennington <hp@pobox.com>
329 * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
330 exposes to no window children not in the buffer window.
331 (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
332 - is this the right way to do it?
333 (gtk_text_view_focus): add focus method, just chains up for now,
334 I'm not sure why the GtkContainer implementation doesn't work
336 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
337 in the text line for the child anchor segment
339 * tests/testtext.c (do_add_focus_children): add another test
340 example (to put focusable buttons into the widget)
342 2002-01-01 Havoc Pennington <hp@pobox.com>
344 * docs/README.linux-fb: note that this file is obsolete
346 * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
347 files that they should not be edited and look in the reference
348 manual instead. Probably these files should just be replaced by
349 the note, and their main contents deleted.
351 * gtk/gtktextview.c: docs
353 * gtk/gtktextmark.c: docs
355 * gtk/gtktextchild.c: docs
357 * gtk/gtktextbuffer.c: docs stuff
359 * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
360 give people more leads in sorting out PRIMARY vs. CLIPBOARD
362 2002-01-01 Tor Lillqvist <tml@iki.fi>
364 * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
365 ../gdk-pixbuf/gdk-pixbuf-csource.
367 2001-12-31 Tor Lillqvist <tml@iki.fi>
369 * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
371 (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
373 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
374 -Wall. Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
377 * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
380 * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
382 2002-01-01 Havoc Pennington <hp@pobox.com>
384 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc
387 2002-01-01 Havoc Pennington <hp@pobox.com>
389 * gtk/gtktextview.c (changed_handler): Replace call to
390 gtk_widget_size_request() that expected to actually compute the
391 request with a direct use of widget_class->size_request, so we get
392 our size request right; fixes remaining part of #63065 reported by
395 2001-12-31 Havoc Pennington <hp@pobox.com>
397 * tests/testtext.c (do_insert_and_scroll): remove backward_char
398 since we no longer have bogus newline
399 (dialog_response_callback): remove another backward_char horkage,
400 reported by Matthias Clasen #63065
402 2001-12-31 Havoc Pennington <hp@pobox.com>
404 * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
405 fix an incorrect assertion that the "valid" flag is always correct
406 in a node and add explanatory comment. This keeps me from
407 reproducing #59101, but I'm remembering that 59101 was actually
408 about incorrect pixel totals, so I'm not sure 59101 is actually
409 fixed. May just have stopped happening due to some change in
412 2001-12-31 Havoc Pennington <hp@pobox.com>
414 * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
415 selection if shift is down, bug #50939
416 (gtk_text_view_button_press_event): add double/triple click
417 selection to the current selection if shift is down
419 2001-12-31 Havoc Pennington <hp@pobox.com>
421 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
422 to use ensure_byte_offsets not ensure_char_offsets, patch
423 from Padraig O'Briain bug #67356
425 2001-12-30 Havoc Pennington <hp@pobox.com>
427 * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
428 the right values, reported by Jeff Franks
430 2001-12-30 Matthias Clasen <matthiasc@poet.de>
432 * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
434 2001-12-28 Matthias Clasen <matthiasc@poet.de>
436 * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c:
437 Minor documentation tweaks.
439 2001-12-28 Tor Lillqvist <tml@iki.fi>
441 * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
442 (unicode_classify): Don't return -1 on encountering an
443 unclassified character, but play it safe and return U_BASIC_LATIN.
445 Thu Dec 27 16:05:30 2001 Owen Taylor <otaylor@redhat.com>
447 * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
448 of misc->xpad/ypad consistent with GtkLabel. Do
449 directional flipping when interpreting misc->xalign/yalign.
450 Fix off-by-one error for negative x,y. (#67472, reported
453 Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
455 * gtk/gtkwidget.c (gtk_widget_set_style_internal):
456 Remove optimization that was causing problems because
457 we called gtk_widget_size_request() before we called
458 gtk_widget_queue_resize() so RESIZE_NEEDED was not
459 set. Optimization shouldn't mattter now that we
460 are smart about needlessly size requesting or allocating
461 widgets. (#67598, reported by Jacob Berkman)
463 Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
465 * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
466 Call gdk_window_get_pointer() on menu->bin_window not
467 menu->window, so we get the correct window for the
468 menu item. (#65213, Guillermo S. Romero)
470 Thu Dec 27 15:13:44 2001 Owen Taylor <otaylor@redhat.com>
472 * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
473 the title by setting to NULL. Move docs inline.
474 Update the title if the tearoff window already
475 exists. Code cleanup. (Fixes #65190, reported by
478 Thu Dec 27 14:04:22 2001 Owen Taylor <otaylor@redhat.com>
480 * gtk/gtksocket.c (gtk_socket_key_press_event):
481 gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
482 special handling of key presses unless we are doing
483 iter-app embedding. (Fixes #67590, Anders Carlsson)
485 Thu Dec 27 16:37:04 2001 Kristian Rietveld <kris@gtk.org>
487 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
488 (gtk_tree_model_sort_sort_level),
489 (gtk_tree_model_sort_insert_value): fix a few places where
490 I was confused between modelsort iters and other iters. This was
491 really going to happen someday ;)
493 Wed Dec 26 23:41:41 2001 Kristian Rietveld <kris@gtk.org>
495 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
496 we are unprelighted before reordering
498 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
499 need to break out of the for loop, not return (this fixed
500 the 'selection freeze' bug).
502 * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
503 be pretty stable now, though it still needs some more code
506 Wed Dec 26 12:32:31 2001 Owen Taylor <otaylor@redhat.com>
508 * docs/Changes-2.0.txt: Document the fact that
509 gtk_paned_set_handle_size() has been removed.
511 * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro,
512 since it pointed to gtk_paned_set_handle_size(), which
513 was removed. (#66760, Matt Wilson)
515 Wed Dec 26 12:28:24 2001 Owen Taylor <otaylor@redhat.com>
517 * gtk/gtkdnd.c (gtk_drag_highlight): Connect
518 gtk_drag_hightlight_expose _after_, so it works with
519 widgets that paint there entire background. (#66735)
521 Wed Dec 26 12:17:06 2001 Owen Taylor <otaylor@redhat.com>
523 * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
524 allocation to widget->allocation. (Fixes #67290,
527 Wed Dec 26 11:49:01 2001 Owen Taylor <otaylor@redhat.com>
529 (#67542, reported by Anders Carlsson)
531 * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
532 rc_style->font_desc with defaul style instead of replacing
535 * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
536 font descriptions in RC styles by calling
537 pango_font_description_merge().
539 2001-12-24 James Henstridge <james@daa.com.au>
541 * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
542 valid with both SGML and XML.
544 Sat Dec 22 12:38:03 2001 Owen Taylor <otaylor@redhat.com>
546 * configure.in: 1.3.12, interface, binary age 0.
548 * configure.in: Require new versions of Glib, Pango, ATK.
552 * configure.in: Make explicit what libtool we are executing.
555 * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
557 * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix
558 parameter names for docs.
560 Sat Dec 22 22:35:29 2001 Owen Taylor <otaylor@redhat.com>
562 * gtk/gtkwindow.c (gtk_window_realize)
563 gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
565 * gtk/gtkentry.c (gtk_entry_key_release)
566 gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
567 key release events to the input method.
569 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
570 Handle release of Control/Shift to end hex sequence.
572 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress):
573 Handle key releases as well as presses.
575 2001-12-21 Matthias Clasen <matthiasc@poet.de>
577 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
579 * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
580 gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
581 documentation about underscores and mnemonics. (#66380)
583 * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
584 cyclic reference in docs.
586 * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
587 of default value. (#65402)
589 * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale):
592 2001-12-20 Anders Carlsson <andersca@gnu.org>
594 * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
597 Tue Dec 18 16:15:55 2001 Owen Taylor <otaylor@redhat.com>
599 * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
600 (reported by Jeff Franks.)
602 Tue Dec 18 16:07:28 2001 Owen Taylor <otaylor@redhat.com>
604 * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix
605 prototype for direction_changed. (Reported by
608 2001-12-18 Padraig O'Briain <padraig.obriain@sun.com>
610 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
611 Fix typo (list->data becomes list->next)
613 2001-12-06 Havoc Pennington <hp@redhat.com>
615 Add Unicode control char menu, based on patch from Dov.
618 * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
620 (gtk_entry_enter_text): function to do "typing in text"
621 (popup_targets_received): add the Unicode menu items
623 * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
624 on Input Methods item, and add the unicode menu items.
626 * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
627 used in GtkEntry and GtkTextView - may become public later.
629 2001-12-16 Kjartan Maraas <kmaraas@gnome.org>
631 * gtk/gtkprogressbar.c: Fix a typo.
632 * gtk/gtkpaned.c: Fix a typo.
634 2001-12-15 Darin Adler <darin@bentspoon.com>
638 * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
639 g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
640 * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
641 * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
642 * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
643 * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
644 Restructure loop to get rid of uninitialized variable warning. Also
645 gives a tiny efficiency gain.
647 2001-12-15 Murray Cumming <murrayc@usa.net>
649 * Fixed first arg type of GtkScale's "format_value" signal's
652 2001-12-14 Vitaly Tishkov tvv@sparc.spb.su
653 docs/reference/gtk/tmpl/gtkcelleditable.sgml
654 gtkcelleditable -> GtkCellEditable
655 docs/reference/gtk/tmpl/gtktreesortable.sgml
656 gtktreesortable -> GtkTreeSortable
658 2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
660 * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
661 demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
662 and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
665 Thu Dec 13 22:02:41 2001 Kristian Rietveld <kris@gtk.org>
667 * gtk/gtktreeview.c (validate_visible_area): free path
670 2001-12-13 Matthias Clasen <matthiasc@poet.de>
672 * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
674 Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
676 * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
677 to find the clicked node in the tree when tree == NULL
679 2001-12-13 Anders Carlsson <andersca@gnu.org>
681 * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare
682 event->state with the default mod mask.
684 2001-12-12 jacob berkman <jacob@ximian.com>
686 * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
688 Wed Dec 12 17:22:45 2001 Owen Taylor <otaylor@redhat.com>
690 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
691 Reset the existing slave before removing it to give
692 it a chance to commit and emit "preedit_changed"
693 in case there was still a preedit string.
695 2001-12-12 Matthias Clasen <matthiasc@poet.de>
697 * gtk/gtktextlayout.c: Typo fixes
698 * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
700 * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel,
701 gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
703 * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
705 Wed Dec 12 16:43:10 2001 Jonathan Blandford <jrb@redhat.com>
707 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
708 validate_rows_timer in unrealize. Reported by Matthew Wilson.
710 Wed Dec 12 16:18:26 2001 Owen Taylor <otaylor@redhat.com>
712 * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
713 "prepainting" the menu before realizing other than
714 via gtk_style_set_background() - this was broken when
715 we added menu scroll support.
717 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
718 window in the expose event -- fixes problem with border
719 flashing during scrolling.
721 Wed Dec 12 15:11:49 2001 Owen Taylor <otaylor@redhat.com>
723 * gtk/gtksettings.c (gtk_settings_get_property): Support
724 using names/nicks for the gdk_settings values for enum valued
725 types. (#57678, reported by Anders Carlsson)
727 Wed Dec 12 15:01:33 2001 Jonathan Blandford <jrb@redhat.com>
729 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
730 with insert_page_menu. Code duplication is bad.
732 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
735 Wed Dec 12 14:27:30 2001 Owen Taylor <otaylor@redhat.com>
737 * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
740 2001-12-12 James Henstridge <james@daa.com.au>
742 * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
743 (menu_item)->accel_path first when looking up the accel path.
745 Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
747 * tests/testgtk.c (layout_expose_handler): Only draw
748 for events on the bin window.
750 Tue Dec 11 18:55:16 2001 Jonathan Blandford <jrb@redhat.com>
752 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
753 mnemonics work with notebooks.
755 Tue Dec 11 15:25:06 2001 Jonathan Blandford <jrb@redhat.com>
757 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
758 bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
759 Makes some flicker while scrolling go away.
761 2001-12-11 Michael Natterer <mitch@gimp.org>
763 * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
764 adds alpha to the pixbuf; re-load the saved pixbuf and
765 pixel-by-pixel compare it with the original one.
767 Tue Dec 11 15:39:08 2001 Soeren Sandmann <sandmann@daimi.au.dk>
769 * ChangeLog: Fix wrong ChangeLog entry
770 * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
773 2001-12-10 jacob berkman <jacob@ximian.com>
775 * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer):
776 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
777 (gdk_keyboard_grab): do not grab things if the nograb debug flag
780 * gdk/gdkinternals.h:
781 * gdk/gdk.c: add nograbs debug flag to disable grabs of the
784 Mon Dec 10 19:42:29 2001 Jonathan Blandford <jrb@redhat.com>
786 * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
787 didn't reset the timer.
789 2001-12-10 Matthias Clasen <matthiasc@poet.de>
791 * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
793 2001-12-09 Matthias Clasen <matthiasc@poet.de>
795 * gtk/gtkviewport.c: Add docs.
797 Mon Dec 10 16:21:38 2001 Jonathan Blandford <jrb@redhat.com>
799 * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
800 RBTree corruption bug--
802 2001-12-10 Anders Carlsson <andersca@gnu.org>
804 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
805 if edited_column is NULL, also grab focus before removing
808 Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
810 * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
811 denominator in the horizontal case just like we do in the vertical
812 case (why I didn't notice that there were two cases the first time
813 around is beyond me:). Also fix indentation in the vertical case.
815 2001-12-09 Anders Carlsson <andersca@gnu.org>
817 * gdk/x11/gdkevents-x11.c: Update xsettings name.
819 * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
820 gtk-dnd-drag-threshold GtkSetting.
822 * gtk/gtksettings.c (gtk_settings_class_init): Add
823 setting for dnd drag threshold.
825 2001-12-09 Matthias Clasen <matthiasc@poet.de>
827 * gtk/gtkcontainer.c: Add docs.
829 2001-12-08 Matthias Clasen <matthiasc@poet.de>
831 * gtk/gtkwidget.c: Doc markup fix.
833 * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
835 * gtk/gtktreestore.c: Typo fixes. (#66445)
837 * gtk/gtkaccelgroup.c: Misc doc markup. (#66425)
839 * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
840 to gtk_clipboard_set_with_owner(). (#66424)
842 Sat Dec 8 16:12:10 2001 Christopher Blizzard <blizzard@redhat.com>
844 * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
845 "<unknown>" if someone doesn't pass in a valid argc. (Patch from
846 Fabrice Bellet <fabrice@gnu.org>, #54127).
848 Sat Dec 8 10:04:54 2001 Jonathan Blandford <jrb@redhat.com>
850 * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
851 of places, so that people with crashy trees can just run their
852 program with GTK_DEBUG=TREE.
854 Sat Dec 8 20:57:24 2001 Kristian Rietveld <kristian@planet.nl>
856 * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
859 2001-12-08 Anders Carlsson <andersca@gnu.org>
861 * tests/testgtk.c (layout_expose_handler): Don't return TRUE
862 since then the default GtkLayout expose handler won't be called.
864 Fri Dec 7 23:42:50 2001 Jonathan Blandford <jrb@redhat.com>
866 * gtk/gtktreeview.c (validate_rows_handler): remove
869 * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
870 Singh <yosh@gimp.org> to fix bug when rendering Tree with an
873 Fri Dec 7 20:06:14 2001 Jonathan Blandford <jrb@redhat.com>
875 * gtk/gtktreeview.c (validate_visible_area): get logic right,
878 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
879 removing a node ended up with a corrupt tree. Really really nasty
881 (_gtk_rbtree_debug_spew): new debug helper function
882 (_fixup_validation): new inline function to clean up code
885 Fri Dec 7 19:34:51 2001 Owen Taylor <otaylor@redhat.com>
887 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
890 2001-12-07 Matthias Clasen <matthiasc@poet.de>
892 * gtk/gtkstyle.h: Typo fixes.
894 * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
896 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
898 Fri Dec 7 16:05:22 2001 Owen Taylor <otaylor@redhat.com>
900 * modules/input/gtkimcontextxim.c: Display the XIM
901 status callbacks with a popup window. (Patch from
902 HideToshi Tajima, #50628, somewhat modified.)
904 Fri Dec 7 12:07:15 2001 Tim Janik <timj@gtk.org>
906 * gtk/Makefile.am: each source generation rule needs to use its own
907 temporary file, to avoid clashes for parallel builds. fixed rules
908 for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
910 2001-12-07 Havoc Pennington <hp@pobox.com>
912 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
913 "cursors that are actually useful" in gdk_cursor_new() docs
915 Thu Dec 6 23:09:21 2001 Owen Taylor <otaylor@redhat.com>
917 * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
918 in computing the size of the second child.
920 Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com>
922 * gtk/gtkrange.c: Make button 1 clicks on the trough
923 do pages, button 3 steps. (Patch from Hans Breuer
926 2001-12-06 Matthias Clasen <matthiasc@poet.de>
928 * gtk/gtklabel.c: Fix docs. (#66383)
930 * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs.
933 * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
934 gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
936 * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
937 Don't emit a g_warning() about being deprecated. (#66208)
939 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
941 * gtk/gtkcontainer.c: Doc fixes.
943 * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
945 * gtk/gtkstyle.c (gtk_style_attach): Add docs.
947 2001-12-05 Sven Neumann <sven@gimp.org>
949 * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
951 * gtk/queryimmodules.c: g_dir_read_name() returns const.
953 Tue Dec 4 21:46:13 2001 HideToshi Tajima <hidetoshi.tajima@sun.com>
955 * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
958 2001-12-04 Manish Singh <yosh@gimp.org>
961 * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
964 * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
967 * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
969 2001-12-04 Havoc Pennington <hp@redhat.com>
971 * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
972 g_assert_not_reached() that was bogus, since we demand-create the
973 tag info. reported by Chris Phelps
975 Jump through assorted hoops to fix bug from Chris Phelps where
976 removing tags from the table resulted in btree trying to
979 * gtk/gtktextbuffer.c: set up mechanics of adding/removing
980 ourselves to the tag table
982 * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer)
983 (_gtk_text_tag_table_remove_buffer): private cruft to
984 let us notify buffer of disappearing tags
986 * gtk/gtktexttag.h: remove BTreeNode typedef from this public
987 header, put it in tagprivate
989 * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
990 tag_removed; it's emitted too late.
991 (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
994 Padding for ABI-compat expansion
996 * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
997 (struct _GtkTextAppearance): one pad in here too
999 * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
1001 * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
1002 since action signals etc. seem pretty likely
1004 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
1006 * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
1008 * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
1010 2001-12-04 Matthias Clasen <matthiasc@poet.de>
1012 * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
1014 * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
1016 * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
1018 Tue Dec 4 18:51:44 2001 Jonathan Blandford <jrb@redhat.com>
1020 * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
1023 Tue Dec 4 18:38:35 2001 Jonathan Blandford <jrb@redhat.com>
1025 * demos/gtk-demo/main.c: (create_tree): Minor fix.
1027 * docs/tree-column-sizing.txt: Update
1029 * gtk/gtkrbtree.[ch]: Massive work to support validation.
1031 * gtk/gtktreemodel.c: Doc fixes.
1033 * gtk/gtktreeview.c: Incremental reflow added.
1034 * gtk/gtktreeviewcolumn.c: ditto
1035 * gtk/gtktreeviewcolumn.h: ditto
1037 2001-12-04 Havoc Pennington <hp@redhat.com>
1039 * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
1040 "invisible" property, #65999
1042 2001-12-04 Matt Wilson <msw@redhat.com>
1044 * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
1046 Tue Dec 4 12:16:31 2001 Owen Taylor <otaylor@redhat.com>
1048 * gtk/gtksettings.c (gtk_settings_set_property_value):
1049 Simplify, make more efficient and fix memory leak
1050 when turning quark into a string. (#66103, HideToshi
1053 * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
1054 init() and unref priv->tooltips in destroy rather
1055 than calling gtk_object_destroy() which has no
1056 effect on memory management. (#66104, HideToshi
1059 * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
1060 so we free the when the object is freed. (Fixes memory
1061 leak, #66096, HideToshi Tajima)
1063 * gdk/gdkevents.c (gdk_synthesize_window_state): Use
1064 a full GdkEvent structure to avoid reads of uninitialized/
1065 invalid memory in gdk_event_put() (#65877, patch
1066 from Hidetoshi Tajima)
1068 Tue Dec 4 11:06:54 2001 Owen Taylor <otaylor@redhat.com>
1070 * gtk/gtkmenuitem.c: Revert my last mistaken change -
1071 toggle-size-request doesn't take a requisition.
1073 * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
1074 reference to marshaler that no longer exists.
1076 Mon Dec 3 16:39:17 2001 Owen Taylor <otaylor@redhat.com>
1078 Patch from Bill Haneman (with many modifications) to make
1079 the focus color work on dark themes and to make the
1080 focus line width configurable. (#61079, #63074)
1082 * gtk/gtkwidget.c: Add style properties,
1083 ::focus-widget, ::focus-line-width, and ::focus-padding.
1085 * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a
1086 state argument as well so we can use fg[STATE] to
1087 draw instead of always drawing with black.
1088 Cange paint_focus() to respect GtkWidget::focus-width
1089 and GtkWidget::focus-line-pattern. Fix continuity
1090 problem where the default 1-1 stipple had a blob
1091 in one corner and a gap in the other. Change the
1092 interpretation of x/y/width/height to be the bounding
1093 box of the focus rect instead of the rectangle
1094 passed to gdk_draw_rectangle.
1096 * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c
1097 gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c
1098 gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width
1099 and ::focus-line-padding.
1101 * gtk/gtkentry.c: Handle :;focus-width property; cleanup
1102 and remove duplicated code; fix drawing of focus rectangle
1103 when interior-focus = FALSE. (#63072, #63073)
1105 * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
1106 gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
1107 Range and TreeViewColumn will need more extensive fixing.
1109 * gtk/gtkcolorsel.c: Honor focus line attributes when
1110 drawing the focus on the color swatches. (#63071)
1112 * gtk/gtkhsv.c: Honor focus line attributes when
1113 drawing the focus for the ring and triangle.
1115 * docs/widget_geometry.txt: Start at documenting how
1116 various widgets are drawn.
1118 * gtk/gtkbutton.c (_gtk_button_paint): Export
1119 _gtk_button_paint() librarywide, so we don't have
1120 duplicate a bunch of code in gtktogglebutton.c.
1122 * gtk/gtktogglebutton.c: Use _gtk_button_paint().
1124 Mon Dec 3 21:04:13 2001 Jonathan Blandford <jrb@redhat.com>
1126 * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
1129 2001-12-03 Alex Larsson <alexl@redhat.com>
1131 * gtk/gtkaccellabel.c:
1133 * gtk/gtkcolorsel.c:
1134 * gtk/gtkcontainer.c:
1136 * gtk/gtktextview.c:
1137 * gtk/gtktogglebutton.c:
1138 * gtk/gtktreeview.c:
1140 Return FALSE from expose handlers.
1142 Mon Dec 3 21:15:59 2001 Kristian Rietveld <kris@gtk.org>
1144 * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
1145 we use pointers, we should free the previous pointer first (if
1146 it exists), before we set a new pointer. (#64726)
1148 * gtk/gtktreeprivate.h: get rid of cursor_drag
1150 * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check
1152 (gtk_tree_view_bin_expose): don't directly return in the while
1154 (gtk_tree_view_class_init): indentend expanders by default
1155 (gtk_tree_view_header_focus): only give the button focus
1156 if it's clickable, visible and the column is reorderable
1159 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
1160 create and free cursor
1162 Mon Dec 3 10:23:07 2001 Owen Taylor <otaylor@redhat.com>
1164 * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
1165 some bugs with size requisition. (From Bill Haneman)
1167 * gtk/gtkcalendar.c: Draw headers and selection in
1168 base/text[SELECTED] instead of fg/bg[SELECTED].
1170 * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
1171 code and formatting.
1173 2001-12-03 Havoc Pennington <hp@pobox.com>
1175 * gtk/gtktextview.c (set_window_height):
1176 (set_window_width): Hmm, setter functions normally assign the new
1177 value to the object field. Reported by Chris Phelps.
1179 2001-11-30 jacob berkman <jacob@ximian.com>
1181 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
1182 signal id to 0 after we disconnect from it
1184 2001-11-30 Matthias Clasen <matthiasc@poet.de>
1186 * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
1187 gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
1188 gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
1189 gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
1191 * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
1192 GTK_DISABLE_DEPRECATED.
1194 * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
1195 gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
1197 Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
1199 * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
1200 move/resize code, removing various bad, non-functional
1201 hacks. (Fixes #65048, reported by Damon Chaplin.)
1203 Fri Nov 30 16:12:21 2001 Owen Taylor <otaylor@redhat.com>
1205 * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix
1206 bad match error when target drawable is not the
1207 same depth as the root window. (#65841)
1211 2001-11-29 Matthias Clasen <matthiasc@poet.de>
1213 * gdk/gdkwindow.c: Typo fix.
1215 Thu Nov 29 21:35:56 2001 Kristian Rietveld <kristian@planet.nl>
1217 * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
1218 empty menu items to behave like insensitive items (#59456)
1220 * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
1221 next item if the first item in the menu is a tear off item
1222 (#59456-2, suggestion by Matthias Clasen)
1224 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1225 (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
1226 (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
1227 (gtk_real_menu_shell_activate_current): add check, so empty
1228 menu items behave like insensitive items (#59456)
1230 * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
1231 the checks more readable ...
1233 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1234 (gtk_menu_shell_button_release): causes the menu to dropdown if the
1235 caption is clicked again (#64977)
1237 2001-11-29 Havoc Pennington <hp@redhat.com>
1239 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1240 assertion here that we were at the end iterator was not correct;
1241 change code to move us to the end iterator. bug #65731
1243 Wed Nov 28 20:05:44 2001 Owen Taylor <otaylor@redhat.com>
1245 * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove
1246 improper use of g_locale_to_utf8() to convert from
1247 latin-1, and do it the easy way by building the string
1248 correctly in the first place.
1250 Wed Nov 28 19:34:15 2001 Owen Taylor <otaylor@redhat.com>
1252 * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get):
1253 Convert atoms to and from atoms for properties of type XA_ATOM.
1254 (#65555, patch from Hidetoshi Tajima)
1256 Wed Nov 28 18:37:04 2001 Owen Taylor <otaylor@redhat.com>
1258 * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter
1259 to avoid problems with Objective C.
1261 2001-11-28 Matthias Clasen <matthiasc@poet.de>
1263 * gtk/gtkaccelmap.c: Typo fixes. (#65607)
1265 * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
1268 * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
1270 Wed Nov 28 18:19:12 2001 Owen Taylor <otaylor@redhat.com>
1272 * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
1273 accounting of menu->tearoff_scrollbar width to here
1274 and make sure we have the correct requisition.
1276 * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
1277 by using gtk_window_move().
1279 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
1280 the requisition to be updated by calling
1281 gtk_widget_size_request() (#65440)
1283 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate):
1284 queue resize before calling gtk_menu_set_tearoff_state().
1286 Wed Nov 28 22:20:44 2001 Kristian Rietveld <kristian@planet.nl>
1288 * demos/gtk-demo/editable_cells.c: fix typo
1290 * demos/gtk-demo/list_store.c (add_columns): remove call to
1291 gtk_tree_view_column_set_clickable which didn't make sense
1293 2001-11-28 Havoc Pennington <hp@redhat.com>
1295 * gtk/gtktextview.c (gtk_text_view_paint): put the warning
1296 explaining the validation error in front of the G_BREAKPOINT
1298 * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
1299 process updates with include_children = FALSE instead of TRUE, so
1300 we redraw the range only, not the whole darn window. Making
1301 GtkRange a NO_WINDOW widget had weirdly caused the text widget
1302 Trace/breakpoint trap bug to become much easier to trigger.
1304 Wed Nov 28 14:12:03 2001 Owen Taylor <otaylor@redhat.com>
1306 * gdk/Makefile.am (gdk_public_h_sources): Remove reference
1309 2001-11-28 Matthias Clasen <matthiasc@poet.de>
1311 * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
1313 * gdk/gdkcursor.h: Directly include the contents
1314 of gdkcursors.h in the GdkCursorType enum.
1316 * gdk/gdkcursors.h: Deleted.
1318 * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add
1321 * gdk/Makefile.am: Remove the X-derived-headers rule.
1323 Tue Nov 27 20:17:55 2001 Owen Taylor <otaylor@redhat.com>
1325 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
1326 Notify on the ::active property _here_, not in
1327 gtk_check_menu_item_set_active.
1329 Mon Nov 26 19:11:18 2001 Jonathan Blandford <jrb@redhat.com>
1331 * gtk/gtkcellrendererpixbuf.c
1332 (gtk_cell_renderer_pixbuf_class_init): add 2 properties
1333 (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
1335 Sun Nov 25 21:19:02 2001 Owen Taylor <otaylor@redhat.com>
1337 * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
1338 comment about what is going on in this file.
1340 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
1343 Sun Nov 25 18:59:19 2001 Owen Taylor <otaylor@redhat.com>
1345 * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size):
1346 Calculate size based on the _child_ of the menu item,
1347 not the menuitem. (#65005, Damon Chaplin)
1349 * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
1350 some extra vertical padding to the label widget ... restores
1351 GTK+-1.2 spacing. (#65085, Damon Chaplin.)
1353 2001-11-26 Tor Lillqvist <tml@iki.fi>
1355 * demos/pixbuf-demo.c
1356 * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
1358 * demos/gtk-demo/main.c (read_line): No flockfile() or
1359 getc_unlocked() on Win32.
1361 2001-11-25 Tor Lillqvist <tml@iki.fi>
1364 * acconfig.h: As we now use GDir, no need to check for dirent.h.
1366 Sun Nov 25 23:18:39 2001 Kristian Rietveld <kristian@planet.nl>
1368 * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
1369 when finished (#65266)
1371 Sun Nov 25 23:16:29 2001 Kristian Rietveld <kristian@planet.nl>
1373 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
1374 data after we set the property. (#65264)
1376 Sun Nov 25 23:14:06 2001 Kristian Rietveld <kristian@planet.nl>
1378 * gtk/gtkbutton.c: add destroy method so label_text gets freed
1379 if it has been allocated (#65268)
1381 Sat Nov 24 13:39:51 2001 Manish Singh <yosh@gimp.org>
1383 * gdk/linux-fb/gdkdrawable-fb2.c
1384 * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
1386 * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
1388 * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
1391 * gdk/linux-fb/gdkfbswitch.c: minor cleanups
1393 Sat Nov 24 22:05:27 2001 Kristian Rietveld <kristian@planet.nl>
1395 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
1396 deactivate menu when menu_item isn't sensitive (#61389)
1398 Sat Nov 24 15:35:26 2001 Kristian Rietveld <kristian@planet.nl>
1400 * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
1401 we return (in case of a failure here)
1403 Fri Nov 23 19:22:50 2001 Owen Taylor <otaylor@redhat.com>
1405 * gtk/gtknotebook.c: Handle events in windows other
1406 than widget->event_window properly. (#65079, reported
1409 * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
1411 Fri Nov 23 18:57:46 2001 Owen Taylor <otaylor@redhat.com>
1413 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
1414 the image at the top. (#65020, request from Seth Nickell)
1416 Fri Nov 23 18:49:53 2001 Owen Taylor <otaylor@redhat.com>
1418 * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
1419 arithmetic that was resulting in rows being drawn too low.
1420 (#65001, reported by Damon Chaplin)
1422 Fri Nov 23 18:36:42 2001 Owen Taylor <otaylor@redhat.com>
1424 * gtk/gtkrange.c (gtk_range_button_press): Offset
1425 invalidated range correctly.
1427 * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling
1428 of title window. (#65001, reported by Damon Chaplin)
1430 * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
1431 horrible hack with use of ::event_after.
1433 Thu Nov 22 15:01:03 2001 Owen Taylor <otaylor@redhat.com>
1437 * configure.in (ATK_REQUIRED_VERSION): Require
1438 GLib-1.3.11, Pango-0.22, ATK-0.7.
1440 * tests/prop-editor.c (property_widget): Restore
1441 to working as well as it did before.
1443 * gtk/gtklistitem.h: Mark deprecated since it is
1444 an integral part of GtkList.
1446 * demos/gtk-demo/demo-common.h: New header file,
1447 for a common functions not important to the meat
1450 * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
1451 function to search for a file used by the demo.
1453 * demos/*.c: Use demo_find_file.
1455 2001-11-23 Matthias Clasen <matthiasc@poet.de>
1457 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
1458 gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo
1459 fixes already mentioned in ChangeLog entry on 2001-11-14.
1461 * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
1463 2001-11-23 Hans Breuer <hans@breuer.org>
1465 * gdk/win32/gdkfont-win32.c (gdk_font_from_description) :
1466 reflect Pango API change
1468 * gtk/gtk.def : updated externals
1470 * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use
1471 g_return_val_if_fail() to avoid 'function must return a value'
1473 * gtk/gtkrc.c : added spaces to fix small coding style issues
1474 * gtk/gtkwidget.c : ... and linebreaks. Also a static for
1475 'static correctness'
1477 * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
1478 because they only can be build on win32 after applying my patch
1480 Wed Nov 21 22:55:37 2001 Tim Janik <timj@gtk.org>
1482 * gtk/gtkbutton.c (gtk_button_map): raise event window afte
1483 children, in order for the input pnly window to stay *above*
1486 Wed Nov 21 22:44:27 2001 Tim Janik <timj@gtk.org>
1488 * tests/testtreeview.c: make hackery worse ;) by checking fundamental
1489 type walks againts G_TYPE_FUNDAMENTAL_MAX.
1491 * tests/prop-editor.c: disable type hackery.
1493 Wed Nov 21 17:41:39 2001 Owen Taylor <otaylor@redhat.com>
1495 * gdk/gdkimage.c (gdk_image_get): Fix problem with
1498 Wed Nov 21 17:01:25 2001 Owen Taylor <otaylor@redhat.com>
1500 * gtk/gtkcellrenderer.h gtk/gtktreemodel.h
1501 gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
1502 trailing commas in enum declarations.
1504 Wed Nov 21 15:21:26 2001 Owen Taylor <otaylor@redhat.com>
1506 * configure.in (GTK_MICRO_VERSION): Version 1.3.11,
1507 interface, binary age 0.
1511 * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
1514 * gtk/gtkmain.h: Remove unused and misnamespaced
1515 get_gtk_win32_directory() prototype.
1517 * gdk/gdkimage.c (gdk_image_get): Fix parameter names
1520 * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
1521 gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
1524 * gdk/gdkevents.c (gdk_event_get_coords)
1525 gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
1526 gtk/gtkdnd.c (gtk_drag_set_icon_stock):
1527 Fix parameter names in docs.
1529 * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
1530 (#64961, Akira Tagoh)
1532 Wed Nov 21 11:41:29 2001 Owen Taylor <otaylor@redhat.com>
1534 * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
1536 * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
1538 * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
1540 * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
1541 back to gtk_accel_groups_from_object(), change @acceleratable
1542 parameter to gtk_accel_groups_activate() accordingly.
1544 * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
1545 left-over comment about quark return.
1547 * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
1549 * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
1550 (Patch from Matt Wilson)
1552 * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
1553 object is finalized.
1555 Tue Nov 20 21:25:08 2001 Tim Janik <timj@gtk.org>
1557 * applied patch from owen to get rid of accel map notifiers.
1558 changed things to fix reentrancy and API as discussed on gtk-devel.
1560 * gtk/gtkaccelgroup.[hc]:
1561 (gtk_accel_group_finalize): unregister this accel group from all
1563 (accel_closure_invalidate): handle invalidation of closures by
1564 disconnecting their accelerators.
1565 (quick_accel_add): move closure connection and changed notification
1566 into this function to reduce code duplication. don't emit change
1567 notification on closurers without accelerators.
1568 (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
1569 for a GtkAccelGroupEntry.
1570 (gtk_accel_group_connect): get rid of the accel_path_quark argument.
1571 (gtk_accel_group_connect_by_path): new function to add accelerators
1573 (gtk_accel_group_disconnect_closure): new function, disconnect a
1574 closure from of an accel group.
1575 (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
1576 accel_mods pair and remove them.
1577 (_gtk_accel_group_reconnect): new function that basically does
1578 gtk_accel_group_disconnect_closure() and
1579 gtk_accel_group_connect_by_path() once an accel path changed.
1580 (gtk_accel_groups_disconnect_closure): remove this, there's
1581 gtk_accel_group_disconnect_closure().
1583 * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
1585 (_gtk_accel_path_is_valid): make this non-static for
1586 gtkwidget.c and gtkaccelgroup.c assertions.
1587 (gtk_accel_map_add_notifer): removed this function.
1588 (gtk_accel_map_remove_notifer): same.
1589 (_gtk_accel_map_add_group):
1590 (_gtk_accel_map_remove_group): (un-)register accel groups, with
1591 accel paths for correct propagation.
1592 (gtk_accel_map_add_entry): return void.
1593 (gtk_accel_map_lookup): return gboolean instead of GQuark.
1595 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
1596 set accel_path on widgets.
1598 * gtk/gtkwidget.[hc]:
1599 (accel_path_changed): got rid of this, changes are handled by
1600 accel maps internally now.
1601 (_gtk_widget_set_accel_path): get things to work without notifiers.
1602 (gtk_widget_list_accel_closures): list accel closures of a widget.
1604 * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
1606 2001-11-20 Matthias Clasen <matthiasc@poet.de>
1608 * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
1610 Tue Nov 20 23:01:01 2001 Kristian Rietveld <kristian@planet.nl>
1612 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
1613 replace gboolean free_last in the function parameters with
1614 gint depth. Changes to reflect new situation.
1616 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1617 replace gboolean free_last, with gint depth, add gint current_depth.
1618 Changes to reflect new situation.
1620 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
1621 to reflect new situation
1623 * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
1625 Tue Nov 20 12:37:10 2001 Owen Taylor <otaylor@redhat.com>
1627 * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
1628 where notebook gap was double shifted by allocation.x/y
1630 * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
1633 Tue Nov 20 14:49:59 2001 Tim Janik <timj@gtk.org>
1635 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
1636 allocation to be relative to paned->allocation, now
1637 that this is a NO_WINDOW widget.
1638 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
1640 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
1641 needs to be a boxed property.
1643 Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
1645 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
1646 Use the widget's state when drawing the indicator, as
1647 in GtkCheckButton. This gives us color changes for
1648 un-prelighted checkbuttons. (#63308, Matt Wilson)
1650 Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
1652 (Fixes related to #64428, Michael Meeks)
1654 * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
1655 widget, so it gets mapped again properly when we
1658 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1659 plug->socket_window.
1661 * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
1662 socket_window to NULL, not FALSE.
1664 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1665 socket->same_app to TRUE. (#64612)
1667 Mon Nov 19 15:50:41 2001 Owen Taylor <otaylor@redhat.com>
1669 * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add
1670 gtk_fixed_set/get_has_window() to remove criticism
1671 about GTK_WIDGET_SET_FLAGS() hacks.
1673 2001-11-19 Michael Natterer <mitch@gimp.org>
1675 * gtk/gtknotebook.c: show notebook->event_window with
1676 gdk_window_show_unraised(), so it doesn't catch the events which
1677 should go to the tab widgets first.
1679 Mon Nov 19 15:30:51 2001 Jonathan Blandford <jrb@redhat.com>
1681 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
1682 "resizable" property, to get rid of the
1683 GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
1684 (gtk_tree_view_column_set_resizable): New function to set resizable.
1685 (gtk_tree_view_column_set_resizable): getter.
1687 * tests/testtreecolumns.c (add_clicked): modify for above change.
1689 * Makefile.am (install-data-hook): remove old .pc files before
1690 installing the new one. We used to symlink this, and it will
1693 2001-11-19 Havoc Pennington <hp@pobox.com>
1695 * tests/testtext.c (fill_example_buffer): put in a test for
1696 negative indentation values
1698 Mon Nov 19 14:08:18 2001 Owen Taylor <otaylor@redhat.com>
1700 * gtk/gtklabel.c (gtk_label_init): Change default for
1701 justify to GTK_JUSTIFY_LEFT. Assuming that multiline
1702 labels are most often wrapped labels, this gives better
1703 compatibility with GTK+-1.2, where justification was
1704 ignored for wrapped labesl and is a more sensible
1705 default in any case. (#64489)
1707 * gtk/gtklabel.c (gtk_label_class_init): Fix default
1708 for wrap property to FALSE.
1710 2001-11-19 jacob berkman <jacob@ximian.com>
1712 * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
1714 Mon Nov 19 13:56:45 2001 Owen Taylor <otaylor@redhat.com>
1716 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
1717 RevertToParent, not RevertToNone. (#64613,
1720 Mon Nov 19 12:28:02 2001 Owen Taylor <otaylor@redhat.com>
1722 * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
1723 and label_yalign need to be float properties to
1724 correspond to GTK+-1.2, to gtk_frame_set_label_align,
1725 and to the types of the xalign and yalign properties of GtkMisc.
1726 (#63484, Vitaly Tishkov)
1728 Mon Nov 19 12:24:30 2001 Owen Taylor <otaylor@redhat.com>
1730 * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
1731 of plug_added vfunc. (#64408, Jeff Franks)
1733 Mon Nov 19 12:07:20 2001 Owen Taylor <otaylor@redhat.com>
1735 * configure.in (deps): Undef HAVE_STDLIB_H before
1736 checking for jpeg, because jconfig.h has this
1737 in it too (%#$@!). Fix from Matthias Clasen, #64500.
1739 Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
1741 * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
1742 memory leak when retrieving atom names. (Michael Meeks,
1745 2001-11-18 Alex Larsson <alexl@redhat.com>
1747 * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
1748 Update to new Pango API.
1750 Sun Nov 18 19:47:29 2001 Owen Taylor <otaylor@redhat.com>
1752 * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
1753 GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
1754 GTK_OBJECT_DESTROYED() check macro.
1756 * gtk/gtkbindings.c (gtk_bindings_activate): Remove
1757 instances of GTK_OBJECT_DESTROYED() that weren't
1760 * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
1761 for a connection to ::destroy.
1763 Sun Nov 18 18:18:11 2001 Owen Taylor <otaylor@redhat.com>
1765 * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
1766 have been since the beginning, but as special hack,
1767 allow clearing the NO_WINDOW flag to get a window widget.
1769 Sun Nov 18 22:01:36 Kristian Rietveld <kristian@planet.nl>
1771 * gtk/gtktreestore.c: return TRUE when value changed, so
1772 row_changed is being emitted
1774 2001-11-18 Hans Breuer <hans@breuer.org>
1776 * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
1777 no label without op, even if it's a no-op.
1780 * gtk/makefile.msc.in : reflect marshaler split, some clean-up
1782 * config.h.win32.in : remove definition of HAVE_DIRENT_H
1783 * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
1784 required anymore, replace it.
1785 * gtk/queryimmodules.c : DIR -> GDir replacement, also
1786 getcwd() -> g_get_current_dir()
1788 * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
1789 Even 'noisy laugh' scolling appears to work, though I still can't
1790 claim to have fully understood what it is supposed to do ...
1792 Sat Nov 17 21:07:46 2001 Owen Taylor <otaylor@redhat.com>
1794 * gtk/gtkenums.h: Include glib-object.h instead of
1797 * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
1798 x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
1799 argument to the window_at_pointer() field of
1800 GdkPointerHooks. (Patch from Erwann Chenede)
1802 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
1805 2001-11-17 Matt Wilson <msw@redhat.com>
1807 * gtk/gtkenums.h: must include glib-object.h only
1809 Sat Nov 17 19:26:20 2001 Owen Taylor <otaylor@redhat.com>
1811 * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
1812 key bindings in order of visibility - mnemonics, then
1813 accelerators, then send key to the focus widget, then
1814 bindings on the GtkWindow.
1816 * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c:
1817 Removed the xoffset, yoffset fields of GtkLayout which were
1818 identically zero for compat with 1.2, but were no longer
1819 compatible with all uses of these fields in 1.2.
1821 * gtk/gtkwindow.c (gtk_window_set_default): Remove
1824 Sat Nov 17 19:08:13 2001 Owen Taylor <otaylor@redhat.com>
1826 * tests/testtreeview.c (gtk_tree_model_types_get_type):
1827 We no longer need to create the signals here ... they
1828 come from the interface.
1830 * gtk/maketypes.awk: Use GType, not GtkType in output.
1832 * gtk/gtktypeutils.h: Mark virtually all of this
1835 * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
1836 the only use of this function is the GtkArg using
1837 GtkCallbackMarshal, since destroy notification is
1840 Sat Nov 17 18:26:45 2001 Owen Taylor <otaylor@redhat.com>
1842 * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
1843 gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
1844 only for compatibility with GTK+-1.2; and deprecate it;
1845 put all marshalers we actually use into gtkmarshalers.list
1846 and use the _gtk_marshal_ prefix for these marshalers.
1848 2001-11-17 Murray Cumming <murrayc@usa.net>
1850 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
1851 The first parameters of the signals are now registered as
1852 GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
1854 2001-11-17 Tor Lillqvist <tml@iki.fi>
1856 * gtk-zip.sh.in: Build separate runtime and developer
1859 * gtk/gtk.def: Reflect recent accelerator-related changes.
1861 Fri Nov 16 19:44:35 2001 Owen Taylor <otaylor@redhat.com>
1863 * gtk/gtkwindow.c (gtk_window_set_default): Move
1864 notification of "has_default" to here, so it
1865 is safe to call gtk_window_set_default() instead
1866 of gtk_widget_grab_default().
1868 * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
1869 gtk_widget_grab_focus(), which then calls
1870 _gtk_widget_internal_set_focus(). This makes
1871 gtk_window_set_focus() a safe way of both setting
1872 and unsetting the focus widget.
1874 * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
1875 gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
1876 to find the toplevel.
1878 * gtk/gtkwindow.h: Move gtk_window_set_focus/default
1879 from the "internal functions" section.
1881 2001-11-16 jacob berkman <jacob@ximian.com>
1883 * tests/testgtk.c (create_radio_buttons): add some no-indicator
1886 * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
1887 initially active, also initially be depressed
1888 (gtk_radio_button_clicked): also update our depressed state
1890 Thu Nov 15 12:54:36 2001 Owen Taylor <otaylor@redhat.com>
1892 * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
1893 key press events not just to focus/window but also to
1894 intermediate widgets.
1896 * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
1897 to switch pages. (Needs some work on handling focus
1898 when switching pages.)
1900 Fri Nov 16 14:06:31 2001 Owen Taylor <otaylor@redhat.com>
1902 * gtk/gtknotebook.c: Fix child allocations to be relative to
1903 widget position and some drawing bugs.
1905 * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
1906 with reading uninitialized variable.
1908 Fri Nov 16 00:16:40 2001 Owen Taylor <otaylor@redhat.com>
1910 * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
1911 gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
1914 * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
1917 * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
1918 we are drawing in a window when drawing the paned handle.
1920 2001-11-16 Sven Neumann <sven@gimp.org>
1922 * demos/gtk-demo/appwindow.c
1923 * demos/gtk-demo/menus.c: reduce compiler warnings
1925 Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
1927 * demos/gtk-demo/main.c (button_press_event_cb): Remove
1928 unused callback to make things compile with
1929 gtk_tree_view_path_at_pos_change().
1931 Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
1933 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
1935 2001-11-15 Matthias Clasen <matthiasc@poet.de>
1937 * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
1939 Thu Nov 15 16:24:55 2001 Jonathan Blandford <jrb@redhat.com>
1941 * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
1942 to get a GdkWindow to compare event->window to.
1944 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
1945 the signal for lateral motion too, #64361
1947 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
1948 arg as it is useless, #64137
1950 Thu Nov 15 16:07:42 2001 Owen Taylor <otaylor@redhat.com>
1952 * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
1954 Thu Nov 15 14:19:34 2001 Owen Taylor <otaylor@redhat.com>
1956 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
1957 gdk_window_invalidate_maybe_recurse() for recursion.
1960 * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
1962 * gtk/gtkcontainer.c (gtk_container_expose): Call
1963 gtk_container_forall() not _foreach() to propagate,
1964 since we need to propagate exposes to internal children
1967 * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events):
1968 Remove the restriction of only being able to call these
1969 on window widgets, since we have lots of NO_WINDOW widgets
1970 with windows now; for add events, recurse over the children
1971 of widget->window to find one owned by the widget.
1973 * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
1974 window to catch events.
1976 * gtk/gtktogglebutton.[ch]: Remove the code for switching
1977 between NO_WINDOW and WINDOW widgets based on the mode.
1979 * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
1980 gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
1982 * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
1984 * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
1987 * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
1989 * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
1991 Thu Nov 15 11:59:35 2001 Owen Taylor <otaylor@redhat.com>
1993 * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
1994 "message_type" and "buttons" CONSTRUCT properties. (#64069)
1996 * tests/testsocket.c: Expand tests to add a "local passive
1997 child" (Test case for #64428)
1999 2001-11-14 jacob berkman <jacob@ximian.com>
2001 * gtk/gtkgamma.c (button_clicked_callback): create the label with
2004 2001-11-15 Sven Neumann <sven@gimp.org>
2006 * tests/testgtk.c: make it compile without warnings.
2008 2001-11-14 Alex Larsson <alexl@redhat.com>
2011 Don't recalculate the layout on each gkt_label_ensure_layout () for
2014 Wed Nov 14 17:40:23 2001 Jonathan Blandford <jrb@redhat.com>
2016 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
2017 the currently selected column when we get the column, #64380
2019 * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
2020 to cancel CellRendererText editting, #63613
2022 * gtk/gtkcellrenderertext.c: ditto
2024 * gtk/gtkcellrenderertext.h: formatting changes
2026 2001-11-14 Matthias Clasen <matthiasc@poet.de>
2028 * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
2030 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
2032 * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
2034 * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
2036 * gtk/gtklabel.c: Documentation fixes (#64452)
2038 2001-11-14 Daniel Egger <degger@fhm.edu>
2040 * gdk-pixbuf/io-xpm.c:
2041 (xpm_skip_whitespaces): Remove unused static function.
2042 (xpm_skip_string): Dito.
2043 (xpm_extract_color): Declare const variable const to avoid warnings.
2045 * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
2047 * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
2049 * gtk/gtksocket.c: Change type of mask to g_message to %ld for
2052 Wed Nov 14 15:14:48 2001 Owen Taylor <otaylor@redhat.com>
2054 * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
2055 out accidental commit of debugging timing code.
2057 2001-11-14 Havoc Pennington <hp@redhat.com>
2059 * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
2060 it doesn't move to a new line each time you press it
2062 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
2063 return value, #62987
2065 2001-11-14 Havoc Pennington <hp@redhat.com>
2067 * tests/testtextbuffer.c (main): bulk of the tests were commented
2070 * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this
2071 function work, should resolve #63426
2072 (gtk_text_iter_ends_line): return TRUE for the end iterator
2074 * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
2075 a couple things that might get cached in here.
2077 Tue Nov 13 21:00:59 2001 Jonathan Blandford <jrb@redhat.com>
2079 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
2080 "model" construct property for language bindings.
2082 * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
2083 function to let you set the column types of a GtkTreeStore for
2086 * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
2088 2001-11-13 Havoc Pennington <hp@redhat.com>
2090 * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
2091 including reference to bugzilla bug about how we should have
2092 a better way of positioning children
2094 * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
2096 * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
2097 size to side rects if they don't exist, #63438
2099 2001-11-13 Havoc Pennington <hp@redhat.com>
2101 * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
2102 properly replace selection with Return or Tab
2104 * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
2105 that didn't locate the end of the line correctly, should fix #63800
2107 2001-11-13 Havoc Pennington <hp@redhat.com>
2109 * gtk/gtktextview.c (gtk_text_view_size_request): add border width
2110 to requisition, request non-anchored children
2111 (gtk_text_view_size_allocate): handle border width, allocate
2112 non-anchored children
2113 (text_view_child_new_window): set the child as object data
2114 (gtk_text_view_move_child): allow children at negative
2115 coordinates, no reason why not
2116 (gtk_text_view_forall): make it copy the list of children before
2117 walking it, to avoid reentrancy issues
2118 (gtk_text_view_move_child): short-circuit if position is unchanged
2119 (changed_handler): only queue_resize if requisition has changed
2120 (gtk_text_view_init): don't redraw_on_allocate, since we can do
2121 a better job of invalidation ourselves
2123 * tests/testtext.c: add tests for the fixed-position children
2125 Tue Nov 13 19:51:43 2001 Tim Janik <timj@gtk.org>
2127 * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
2128 with gdk threads macro.
2130 Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org>
2132 * gtk/maketypes.awk: fix type utils generation on unix.
2134 * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
2137 * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
2138 removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
2139 gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
2140 gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
2141 gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
2142 introduced ::accel_changed signal for change notification, and
2143 gtk_accel_group_connect/disconnect to connect closures to accel groups.
2144 made gtk_accel_group_attach/detach and gtk_accel_group_activate private
2146 deprecated gtk_accel_group_ref/unref.
2148 * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
2149 to accel group changed notification and basically operate on closures.
2150 removed gtk_accel_label_get_accel_object and
2151 gtk_accel_label_set_accel_object.
2152 introduced gtk_accel_label_set_accel_closure, and for convenience,
2153 gtk_accel_label_set_accel_widget.
2155 * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
2156 which mostly moved into gtkaccelmap.[hc].
2157 removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
2158 and gtk_item_factory_print_func.
2160 * gtk/gtkmain.c: call _gtk_accel_map_init().
2162 * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
2163 that associates an accelerator path with menu items, through which
2164 persistent accelerator settings on menu items are enabled.
2166 * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
2167 paths of menu item can be default constructed to allow installation
2168 of accelerators on menu items that don't come with an accelerator
2171 * gtk/gtksettings.c: fix STRING type rc settings by special casing
2172 them appropriately in the parser.
2174 * gtk/gtksignal.[hc]: allow a class function offset of 0 for
2177 * gtk/gtkwidget.[hc]: accelerator API revamp.
2178 removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
2179 gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
2180 gtk_widget_(un)lock_accelerators.
2181 accelerators maintained through gtk_widget_add/remove_accelerator()
2182 are not runtime changable now, the correct sequence to setup a
2183 widget for runtime changable accelerators is now:
2184 gtk_accel_map_add_entry(accel_path, key, mods);
2185 _gtk_widget_set_accel_path(widget, accel_path, accel_group);
2187 * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
2188 group changes (as well as mnemonic changes) through the new signal
2191 Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org>
2193 * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
2194 GString->string conversions.
2196 Mon Nov 12 19:33:52 2001 Owen Taylor <otaylor@redhat.com>
2198 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
2199 if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
2201 2001-11-12 Matthias Clasen <matthiasc@poet.de>
2203 * gtk/gtktreeview.c: Documentation fixes. (#64377)
2205 * gtk/gtktreestore.c: Documentation fixes. (#64376)
2207 2001-11-11 Matthias Clasen <matthiasc@poet.de>
2209 * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
2210 gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c,
2211 gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.
2212 (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
2214 2001-11-10 Hans Breuer <hans@breuer.org>
2216 * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
2217 we know what we are talking about when asked for MINMAXINFO.
2218 Also some cleaning for !HAVE_DIMM_H etc.
2220 2001-11-10 Matthias Clasen <matthiasc@poet.de>
2222 * gtk/gtktreeviewcolumn.c: Fix docs for
2223 gtk_tree_view_column_set_sort_order. (#62647)
2225 * gtk/gtkcontainer.c: Fix docs for
2226 gtk_container_set_border_width. (#64139)
2228 * gtk/gtkcolorsel.c: Documentation fixes.
2230 2001-11-10 Hans Breuer <hans@breuer.org>
2232 * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
2233 don't have strcasecmp()
2235 * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need
2236 to remove the idle funcs in gtk_text_view_destroy (). To reduce
2237 code duplication wrap it in its own function and use it in
2238 gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
2240 * gdk/win32/gdkdrawable-win32.c : implement the finalize
2241 method like the X11 version does, allow to set_colormap NULL
2242 * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
2243 set_colormap, also some adaption to X11 version :
2244 (gdk_window_hide) call _gdk_window_clear_update_area
2245 (gdk_window_reparent) call _gdk_window_init_position
2247 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) :
2248 call gdk_window_resize() after all hints are set, because the
2249 window resizing process (WM_GETMINMAXINFO) takes all of them into
2252 * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
2254 * gdk/win32/gdkvisual-win32.c : register GdkVisual with
2255 sizeof (GdkVisualPrivate)
2257 * gdk/gdk.def gtk/gtk.def : upated externals
2259 * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
2260 gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
2261 from now on use make.msc from $(TOP)/glib/build/win32
2263 * gtk/stock-icons/makefile.msc : add stock_missing_image
2265 2001-11-08 Tor Lillqvist <tml@iki.fi>
2267 * README.win32: Add headers. Add section about ActiveIMM.
2269 * configure.in: Add --with-ie55 flag to specify the location of
2270 the "IE55 libs and headers" package downloadable from Microsoft,
2271 which contains, among other things, the Active IMM header dimm.h
2272 and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
2273 Require GLib 1.3.10.
2275 * config.h.win32.in: New version, produced by merging two
2276 configure-generated ones (for gcc and MSVC). Hopefully #defines
2277 the same flags that the previous, hand-written one, did.
2280 * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
2282 * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
2283 stuff. Remove unused GdkIOClosure.
2285 * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
2288 * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
2289 for uuid.lib. (Does it really have to be this hard to use an
2290 existing library with libtool? Probably I am missing something.)
2292 2001-11-08 Darin Adler <darin@bentspoon.com>
2294 * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
2295 typo where it says LEFT instead of CENTER.
2297 2001-11-07 Darin Adler <darin@bentspoon.com>
2299 * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
2300 (gtk_dialog_set_default_response): Add g_return_if_fail.
2302 Mon Nov 5 22:34:29 2001 Owen Taylor <otaylor@redhat.com>
2304 * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface):
2305 Add row_draggable() vfunc, and wrapper function.
2307 * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
2308 row_drop_possible take a GtkSelectionData, rather than
2311 * gtk/gtktreestore.c gtk/gtkliststore.c: Update for
2314 * gtk/gtktreeview.[ch]: Remove the row_draggable_func
2315 location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
2316 and rename them to enable_model_drag_source/dest.
2318 * gtk/treeviewcolumn.c: Add DND of columns between rows.
2319 Still can't drop _to_ the left tree, but other places
2322 * gtk/gtktreeview.c (unset_reorderable): Unset the
2323 reorderable property if unset/enable_model_drag_source/dest
2324 are called manually.
2326 * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible):
2327 Correct for change in depth count handling.
2329 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
2330 Pass in a expose area to gtk_tree_view_column_cell_render()
2332 2001-11-06 Havoc Pennington <hp@redhat.com>
2334 * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
2336 Tue Nov 6 10:13:16 2001 Owen Taylor <otaylor@redhat.com>
2338 * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
2340 2001-11-05 Havoc Pennington <hp@redhat.com>
2342 * gtk/gtktextview.c (gtk_text_view_paint): expose the child
2344 (gtk_text_view_realize): set parent window of child widgets
2345 (gtk_text_view_size_request): use child req to decide whether
2346 to invalidate layout, not widget->requisition
2348 * gtk/gtktextdisplay.c (render_layout_line): set
2349 shaped_width_pixels for NULL shape objects, so that we properly
2350 draw the "missing pixbuf/widget" thing
2351 (render_layout_line): don't draw the widget here
2352 (gtk_text_layout_draw): pass out a list of widgets that need exposing
2354 * demos/gtk-demo/textview.c (insert_text): add demo of child
2357 * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
2359 * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
2361 * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
2363 (gtk_text_view_value_changed): poke new X and Y into child allocations
2365 2001-11-06 Tor Lillqvist <tml@iki.fi>
2367 * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
2368 -specific directory on Windows, too (#63759).
2370 Mon Nov 5 12:46:44 2001 Owen Taylor <otaylor@redhat.com>
2372 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
2373 gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
2374 gdk/x11/gdkwindow-x11.c: Redo Xft support to go
2375 directly to Picture objects instead of using XftDraw.
2376 This fixes the problem where we weren't able to
2377 properly destroy XftDraw objects before destroying
2378 the accompanying windows, and probably improves
2379 efficiency a bit too. (#50214)
2381 Mon Nov 5 10:01:49 2001 Owen Taylor <otaylor@redhat.com>
2383 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position):
2384 Clamp max window width/height to 32767, not 32768 since
2385 we have to be able to deal with a dx/y of -32768 without
2386 getting a width of 65536 when guffaw scrolling.
2388 * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
2389 for the guffaw scrolling case, fixing some problems with
2390 copy-area case as well. Fix BadValue bug with moving windows
2393 * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
2394 clip in window structue before calling gdk_window_invalidate_region
2395 since that trims new invalidations to the window's visible
2398 * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities):
2399 Really set the static window gravity on the children, not
2400 repeatedly on the window.
2402 * gtk/testgtk.c: Add a torture test for big windows and
2403 gdk_window_scroll().
2405 Sun Nov 4 17:36:08 2001 Manish Singh <yosh@gimp.org>
2407 * acconfig.h configure.in: sigsetjmp is macroized in some places,
2408 so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
2410 Sun Nov 4 19:16:23 2001 Owen Taylor <otaylor@redhat.com>
2412 * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
2413 in terms of pango_color_parse().
2415 * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
2416 gdk_color_parse() implementations.
2418 Sun Nov 4 18:39:43 2001 Owen Taylor <otaylor@redhat.com>
2420 * gtk/gtksizegroup.c (gtk_size_group_set_mode):
2421 queue_resize_on_group with both the old and new mode, not
2422 just the new mode. (#60171, Nicolas Setton). Also, notify
2423 the "mode" property.
2425 Sun Nov 4 16:02:08 2001 Owen Taylor <otaylor@redhat.com>
2427 * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse()
2428 for use in "shallow invalidation" of a widget. (Windows belonging
2429 to the widget, but not to the widget's children)
2431 * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
2432 flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED. These flags are set
2433 up on ancestors up to the resize container on queue_resize. Size
2434 requests only actually take place if GTK_REQUEST_NEEDED, size
2435 allocations only take place if GTK_ALLOC_NEEDED or the size
2438 * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
2439 container->resize_widgets and the RESIZE_NEEDED flag since the
2440 above flags are sufficient to figure out what needs to be
2441 resized/reallocated. Remove code manipulating
2442 container->resize_widget.
2444 * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
2445 allows widgets to turn off being automatically invalidated is when
2448 * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
2449 a widget is resized or moved is "shallow" as described above -
2450 only the windows that need to be invalidated are invalidated.
2452 * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt:
2453 Make these widget's init functions call
2454 gtk_widget_set_redraw_on_allocate(widget,FALSE).
2456 * gtk/gtkwindow.c (gtk_window_configure_event): Call
2457 _gtk_container_queue_resize(), since we don't want
2458 redrawing. (Probably could be done for other
2459 calls to gtk_widget_queue_resize() in gtkwindow.c,
2460 but this is the most important one.)
2462 * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
2463 gtk_widget_queue_draw() - size_allocate() handles
2464 that as appropriate.
2466 * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
2467 of queue_clear() to avoid invalidating children.
2469 2001-11-04 jacob berkman <jacob@ximian.com>
2471 * gtk/gtkmain.c (find_module): don't free the module name until
2472 after we load the module
2474 Sat Nov 3 13:57:21 2001 Owen Taylor <otaylor@redhat.com>
2476 * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
2477 derivation instead of boxed derivation.
2479 * gtk/gtkmarshal.list: Remove some now unused marshallers.
2481 2001-11-04 Tor Lillqvist <tml@iki.fi>
2483 * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
2484 include yesterday, without really thinking), as that defeats the
2485 working of correct_libdir_prefix() (it becomes a no-op.). Add
2486 comment mentioning that. Thanks to Hans Breuer for noticing.
2488 2001-11-03 Daniel Elstner <daniel.elstner@gmx.net>
2490 * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
2491 signal argument (was GtkWidget*).
2493 * gtk/gtkwindow.c (gtk_window_frame_event),
2494 gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
2495 Fixed argument types as above, removed GTK_WINDOW casts and
2496 added some GTK_WIDGET casts instead.
2498 2001-11-03 Hans Breuer <hans@breuer.org>
2500 * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
2501 finalize to parent class to get removed from the toplevel_list.
2502 Should fix 'random' crashes of #63474.
2504 * gtk/gtktreemodelsort.c : chain finalize() to parent class
2506 2001-11-03 Tor Lillqvist <tml@iki.fi>
2508 * modules/input/Makefile.am: Use -no-undefined on Windows. Look
2509 for .dll or .so as appropriate as module suffix.
2511 * gtk-zip.sh.in: Use correct import library names.
2513 * gtk/gtk.def: Add a couple of missing entry points. (#63585)
2515 * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
2516 Windows to turn build-time paths from a gtk.immodules distributed
2517 as part of a binary package into runtime ones in the
2518 end-user-chosen installation directory.
2519 (gtk_im_module_init): Use it for module path and domain
2522 2001-11-02 Tor Lillqvist <tml@iki.fi>
2524 * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
2525 comma. Include gtkprivate.h for GTK_LIBDIR etc definitions on
2528 2001-10-30 Tor Lillqvist <tml@iki.fi>
2530 * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
2531 files. Configure on Win32 (running on Cygwin) thinks symlinks
2532 exist, but pkg-config is not necesarily a Cygwin program, and
2533 doesn't understand them.
2535 Fri Nov 2 16:45:17 2001 Jonathan Blandford <jrb@redhat.com>
2537 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
2538 a bit. I don't think it's completely correct yet, but it's
2541 Fri Nov 2 16:14:15 2001 Owen Taylor <otaylor@redhat.com>
2543 * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
2544 random + 5 for width and height. If people want padding,
2545 they should add padding. (Note the +5 isn't padding
2546 that will always appear - it just appears in the case
2547 where the widget is allocated it's requisition.)
2548 (#51018, Janet Davis)
2550 Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
2552 * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
2553 the structure for future expansion.
2555 Fri Nov 2 15:30:34 2001 Owen Taylor <otaylor@redhat.com>
2557 Patch from HideToshi Tajima (#51922)
2559 * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
2561 * gtk/modules/input/gtkimcontextxim.[ch]: Implement
2564 * gtk/modules/input/gtkimcontextxim.[ch]: If we have
2565 to destroy the input context because we change the
2566 client window or use_preedit, make sure we empty
2569 Fri Nov 2 14:55:53 2001 Owen Taylor <otaylor@redhat.com>
2571 * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
2572 gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
2573 proposed ordering of buttons with [OK] in the lower
2574 right hand corner. Patch from Gregory Merchan,
2577 Fri Nov 2 11:51:49 2001 Jonathan Blandford <jrb@redhat.com>
2579 * gtk/gtklabel.c (gtk_label_select_region_index): remove
2580 extraneous gtk_label_clear_layout (label)
2582 2001-11-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
2584 * tests/makefile.msc, gtk/makefile.msc.in: Removed
2585 -DGTK_DISABLE_COMPAT_H.
2587 * docs/Changes-2.0.txt:
2588 s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
2590 * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
2592 Fri Nov 2 10:21:03 2001 Owen Taylor <otaylor@redhat.com>
2594 * examples/**/Makefile.am: Convert to use pkg-config
2595 rather than gtk-config. (#53375, Skip Montanaro)
2597 2001-11-02 Matt Wilson <msw@redhat.com>
2599 * gtk/gtkdialog.c (find_child_by_response_id): remove totally
2600 broken unused, non-compiling, static function.
2602 Fri Nov 2 08:17:06 2001 Owen Taylor <otaylor@redhat.com>
2604 * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive):
2605 Iterate through children of the action area, not of
2606 the vbox. (#58278, Sergey Kuzminov)
2608 2001-11-01 Havoc Pennington <hp@pobox.com>
2610 * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
2611 order to remove a workaround in Nautilus that forced
2614 * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
2616 Thu Nov 1 20:09:31 2001 Owen Taylor <otaylor@redhat.com>
2618 * gtk/gtkrange.c: Patch from George Lebl to
2619 fix division by zero for full scroll bars. (#62114)
2621 Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
2623 * gtk/gtkmain.c (gtk_main_do_event): ref/unref
2624 around gtk_widget_event() if we are going to
2625 set a flag afterwards. (#63464)
2627 Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
2629 * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:
2630 Actually add the missing/broken image icon as the
2631 image for the "missing image" stock icon.
2633 Thu Nov 1 19:18:34 2001 Owen Taylor <otaylor@redhat.com>
2635 * demos/gtk-demo/stock_browser.c (do_stock_browser):
2636 Set a reasonable default height for the window.
2638 * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
2639 bug where subsequent '-' weren't converted to '_'.
2640 (#59550, Matthias Clasen)
2642 * demos/gtk-demo/appwindow.c (menu_items): Don't right
2643 justify the Help menu - just include a comment on
2644 how to do it. (#63539, Marius Andreiana)
2646 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't
2647 list GTK_ICON_SIZE_INVALID.
2649 * demos/gtk-demo/stock_browser.c: Show the biggest available
2650 size, not a fixed size. (Often reported, including #63539,
2653 Thu Nov 1 19:11:35 2001 Jonathan Blandford <jrb@redhat.com>
2655 * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
2658 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
2661 Thu Nov 1 16:54:00 2001 Owen Taylor <otaylor@redhat.com>
2663 * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
2666 Thu Nov 1 16:20:56 2001 Owen Taylor <otaylor@redhat.com>
2668 * gtk/gtkimcontext.[ch]: Add:
2669 - A ::retrieve_surrounding signal that asks the widget for
2670 context around the insertion point.
2671 - A ::delete_surrounding signal that asks the widget to
2672 delete context aroudn the insertion point.
2673 - gtk_im_context_set_context() for widgets to set context
2674 around the insertion point in response to ::retrieve_context.
2675 - gtk_im_context_get_context() for context to get context
2676 around the insertion point
2678 * gtkmarshal.list: Add BOOL:INT,INT
2680 * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
2681 set_surrounding() methods, and the ::retrieve_surrounding /
2682 ::delete_surrounding signals.
2684 * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
2685 GtkIMContext::retrieve_surrounding / ::delete_surrounding
2688 Thu Nov 1 15:45:04 2001 Jonathan Blandford <jrb@redhat.com>
2690 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
2691 it's amazing how well things work sometimes, even when they're
2694 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2695 where you could try to collapse a node w/o it having children.
2697 (gtk_tree_view_class_init): remove Shift L<->R as they already
2698 existed for expand/collapse.
2700 Thu Nov 1 12:21:31 2001 Jonathan Blandford <jrb@redhat.com>
2702 * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
2703 found by Matt Wilson.
2705 Thu Nov 1 00:44:50 2001 Jonathan Blandford <jrb@redhat.com>
2707 * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
2708 Control, and Shift|Control L<->R, #63475
2710 Wed Oct 31 18:53:51 2001 Jonathan Blandford <jrb@redhat.com>
2712 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
2713 infinite loop noticed by yosh.
2715 2001-11-01 Michael Meeks <michael@ximian.com>
2717 * gtk/gtksocket.c (gtk_socket_unrealize): unset the
2718 GTK_REALIZED flag so we don't re-enter when we are
2719 destroyed from the plug side.
2721 Wed Oct 31 18:23:47 2001 Owen Taylor <otaylor@redhat.com>
2723 * gtk/gtkoptionmenu.c (gtk_option_menu_detacher):
2724 Add a "menu" property and notify on it. (#62798,
2727 * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
2728 gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}:
2729 Fix set_text to take a gchar, not a guchar, and to have
2732 Wed Oct 31 15:31:13 2001 Manish Singh <yosh@gimp.org>
2734 * gtk/gtkstock.c: fix typo to make it compile
2736 Wed Oct 31 17:27:20 2001 Jonathan Blandford <jrb@redhat.com>
2738 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
2739 the widget is insensitive, draw the text insensitively, #63306
2741 2001-10-31 Matthias Clasen <matthiasc@poet.de>
2743 * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
2745 Wed Oct 31 16:53:48 2001 Jonathan Blandford <jrb@redhat.com>
2747 * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
2748 gtk_selection_data_set_tree_row, #60218
2749 (gtk_tree_get_row_drag_data): rename
2750 gtk_selection_data_get_tree_row, #60218
2752 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
2753 get this right, after the third try, #63122.
2755 2001-10-31 jacob berkman <jacob@ximian.com>
2757 * gdk/gdkselection.h (GDK_TARGET_STRING):
2758 (GDK_SELECTION_TYPE_STRING): these should be 31, not 3. Hooray
2759 for Xatoms (and not using the XA_* macros)!
2761 Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
2763 * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
2764 gtk_window_get_focus() getter to determine the currently
2765 focused widget within the window. (#63145, request
2766 from Damian Ivereigh)
2768 Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
2770 * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
2772 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
2773 GTK_SELECTION_NONE enum.
2774 (_gtk_tree_selection_internal_select_node): ditto
2776 * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
2779 * gtk/gtkcellrenderertoggle.c: more yummy constness.
2781 * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
2782 if mode == GTK_SELECTION_NONE
2784 Wed Oct 31 14:05:17 2001 Jonathan Blandford <jrb@redhat.com>
2786 * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
2787 "cursor_changed" signal, #62850.
2789 2001-10-31 Matt Wilson <msw@redhat.com>
2791 * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
2792 allocating the treedatalist, zero it to make sure the values are
2793 cleared from any garbage that was in this chunk.
2795 2001-10-31 Murray Cumming <murrayc@usa.net>
2797 * gtk/cellrenderertext.h: "edited" default signal handler
2798 gchar* args are now const.
2799 gtk/cellrenderertoggle.h: "toggled" default signal handler
2800 gchar* arg is now const.
2801 Also changed other signal handlers for "edited" and "toggled" to
2802 have the same signature.
2804 Tue Oct 30 19:17:57 2001 Jonathan Blandford <jrb@redhat.com>
2806 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
2807 rewrite. Static models now totally work. I'm not 100% sure about
2808 row_inserted and row_changed, but I'll get those later.
2810 2001-10-30 Sven Neumann <sven@gimp.org>
2812 * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
2813 output for configure --help.
2815 2001-10-30 Havoc Pennington <hp@pobox.com>
2817 * gtk/gtktextview.c (changed_handler): Update the IM spot location
2818 here, if text was invalidated in the visible area, because the
2819 scroll offset doesn't normally change in that case, and the mark
2820 isn't set, just implicitly moved over as text is added/removed
2822 Mon Oct 29 19:18:35 2001 Jonathan Blandford <jrb@redhat.com>
2824 * gtk/gtkseparatormenuitem.c: Code cleanup.
2825 (gtk_separator_menu_item_class_init): Fix bugs in this code.
2827 2001-10-29 jacob berkman <jacob@ximian.com>
2829 * gdk/Makefile.am (LDFLAGS):
2830 * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
2831 LDFLAGS, so put win32 flags in here
2833 Mon Oct 29 15:41:58 2001 Jonathan Blandford <jrb@redhat.com>
2835 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
2836 I can't believe this took this long to fix.
2838 Mon Oct 29 13:54:49 2001 Jonathan Blandford <jrb@redhat.com>
2840 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
2843 Mon Oct 29 12:27:51 2001 Owen Taylor <otaylor@redhat.com>
2845 * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
2846 the focus to the fileop entry for create dir / rename
2849 Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
2851 * configure.in: Don't use AC_CHECK_FILE to check for a
2852 file since it always spits warnings about cross compilation,
2853 use -f instead. It's not like we cross compile properly
2856 * configure.in (gtktargetlib): Move call to AC_PROG_CC
2857 to suppress autoconf warning.
2859 * acconfig.h: Add some missing #undefs from recent
2862 Mon Oct 29 11:31:40 2001 Owen Taylor <otaylor@redhat.com>
2864 * m4macros/gtk-2.0.m4: Don't try to use pkg-config
2865 when we didn't find it. (#62944, Eric Lemings)
2867 * m4macros/gtk-2.0.m4: Fix problem with spaces around =
2868 sign in assignment. (#63209, Arkadiusz Miskiewicz)
2870 2001-10-29 Anders Carlsson <andersca@gnu.org>
2872 * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
2873 the buttons size request before using it. Fixes #61696.
2875 2001-10-29 Tor Lillqvist <tml@iki.fi>
2877 * README.win32: Updates.
2879 * gtk-zip.sh.in: New file, used to build distribution package for
2882 * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
2883 applicable with GDKVAR.
2885 * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
2888 * gdk/win32/gdkwin32.h
2889 * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
2890 X11 headers better, and to enable gdkwin32.h to be installed and
2891 included from applications, but not the *-win32.h headers.
2893 * gdk/win32/*.c: Corresponding small changes, simplifications of
2896 * gdk/win32/gdkregion-win32.c: Remove.
2898 * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
2900 * gdk/win32/gdkfont-win32.c
2901 * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
2903 * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
2904 GDK_NONE values into hash table.
2906 * gtk/gtk.def: Update.
2908 * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
2912 * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
2913 entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
2914 GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
2915 g_win32_get_package_installation_subdirectory() with the actual
2916 DLL name saved above. Redefine above directory name macros to call
2917 these functions. Remove some ifdefs.
2919 * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
2920 variable for export on Win32) also to the _vars file.
2922 Changes for autoconfiscated build on Win32, and addition of Win32
2923 backend to the related files:
2925 * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
2926 when forming DLL name in some files. Set MS_LIB_AVAILABLE is
2927 lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
2928 PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
2929 win32 target, using pangowin32. Don't use the
2930 -export-symbols-regex option on Win32, we use .def files to list
2931 exported symbols. Check <winsock.h> (for gethostname() in
2932 gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
2933 prevent premature m4 expansion.
2935 * acconfig.h: Add HAVE_WINTAB.
2937 * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
2938 macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
2939 MS_LIB_AVAILABLE, build MS import library. Install the import
2940 libraries. If HAVE_WINTAB, link with the Wintab library.
2942 * gdk/win32/Makefile.am: Actually enable building the win32
2943 objects here, not just list all files in EXTRA_DIST. Link in the
2944 compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
2945 copy the Wintab library into the .libs directory.
2947 * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
2948 name of the GDK DLL when fetching the icon. Use the HMODULE saved
2949 in gdk_dll_hinstance by DllMain.
2951 * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
2952 build/win32/lt-compile-resource script.
2954 * gdk/win32/rc/gdk.rc.in
2955 * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
2957 * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
2958 macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
2959 file. Install import libraries.
2961 2001-10-29 Anders Carlsson <andersca@gnu.org>
2963 * gtk/gtkiconfactory.c (get_default_icons): Fix build.
2965 2001-10-28 Hans Breuer <hans@breuer.org>
2967 * gdk/gdk.c gdk/gdkevents.c
2968 gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
2969 gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
2970 gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
2971 gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
2972 gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
2973 gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
2974 gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
2975 static correct-ness, underscore prefixing of library internal
2977 (applied the undisputed and the win32 part. Of the latter
2978 I'm probably the one who will change it back again, if Owen
2979 decides that the Gdk*Impl types should not be private to Gdk)
2981 * gdk/gdk.def : added the remaining exported functions
2983 2001-10-28 Matthias Clasen <matthiasc@poet.de>
2985 * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
2986 gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
2987 gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
2989 2001-10-28 jacob berkman <jacob@ximian.com>
2991 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
2992 gtk_settings_get_default() here as that requires an X connection
2993 (which breaks doc building with no X connection) and is not
2995 (gtk_color_selection_init): delay palette loading until realize
2997 (gtk_color_selection_realize): load the palette, and initialize
2998 the global palette if it hasn't been already
3000 * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
3001 visual/cmap fields of klass->info since they are gone
3002 (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
3003 (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
3004 (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
3006 * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
3008 (gtk_preview_get_visual):
3009 (gtk_preview_get_cmap): mark as deprecated
3011 * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
3014 Sun Oct 28 09:15:39 2001 Owen Taylor <otaylor@redhat.com>
3016 * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
3017 structure to have GObject not GtkObject as
3018 parent_instance. (Jeff Franks.)
3020 2001-10-27 Matthias Clasen <matthiasc@poet.de>
3022 * gdk/x11/gdkinput.c: Typo fix.
3024 2001-10-26 Havoc Pennington <hp@pobox.com>
3026 * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
3027 update_im_spot_location here explicitly
3028 (gtk_text_view_reset_im_context): don't update the spot location
3031 2001-10-27 Anders Carlsson <andersca@gnu.org>
3033 * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
3036 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range):
3037 Clarify that we're returning a spin button in the _new function.
3040 Fri Oct 26 20:55:57 2001 Owen Taylor <otaylor@redhat.com>
3042 * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST.
3043 Unfortunately, people apparently erroneously connect
3044 to ::clicked for GtkToggleButton and expect
3045 they know what happened in the default signal handler
3046 instead of appropriately connecting to notification
3047 signal ::toggled. When the revolution comes, such
3048 people will be first against the wall.
3050 We'll just have to go back to the old less-reliable
3051 set-it-back hacks for handling model-view check
3052 buttons and radio buttons. :-(.
3054 2001-10-27 Hans Breuer <hans@breuer.org>
3056 * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
3057 gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
3058 gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
3059 gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
3060 gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
3061 gtk/gtktreestore.c gtk/gtkvbbox.c :
3062 to simplify parsing for exported functions:
3063 - made implementation signature static, when the local
3064 prototype already was
3065 - put the functions return value on it's own line
3066 - added as space between the function name and the
3069 * gtk/gtk.def : added the remaining exported functions
3071 2001-10-27 Anders Carlsson <andersca@gnu.org>
3073 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
3074 Add note about width having to be greater than 0. This fixes
3077 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start):
3078 Fix docs to say previous instead of next.
3079 (gtk_text_iter_backward_word_start): Likewise.
3080 This fixes bug #62980.
3082 * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
3083 that the valid width is in range 0-65535 pixels. Fixes bug
3086 * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
3087 a dot in the documentation. Fixes bug #62632.
3089 * gdk/x11/gdkmain-x11.c: Replace int and guint with
3090 long and gulong in some places to make the code 64-bit
3092 (_gdk_windowing_init_check): Replace gint with gulong.
3093 This patch was made by George Lebl and fixes bug #62113.
3095 * tests/testgtk.c (create_range_controls): Don't set a
3096 fixed height on the hscale widget. This fixes "bug"
3098 (create_window_states): Set up destroy signals so that
3099 all windows will be destroyed when one is. This fixes
3102 2001-10-26 Anders Carlsson <andersca@gnu.org>
3104 * gtk/gtktreeview.c:
3105 (gtk_tree_view_class_init): Create new "indent_expander"
3108 (gtk_tree_view_get_arrow_xrange): Add a tree argument
3109 to the function since the xrange can change depending
3110 on where in the tree we are.
3112 (coords_are_over_arrow): Update function call to
3113 gtk_tree_view_get_arrow_xrange.
3114 (gtk_tree_view_draw_arrow): Likewise.
3116 (gtk_tree_view_real_expand_collapse_cursor_row):
3117 Call real_{expand|collapse}_row, so that we'll have an
3120 Fri Oct 26 20:13:36 2001 Kristian Rietveld <kristian@planet.nl>
3122 * tests/Makefile.am: fixed a small typo
3124 Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
3126 * demos/gtk-demo/list_store.c (create_model): Anders
3127 Carlsson suggested to use G_N_ELEMENTS here
3129 2001-10-26 Sven Neumann <sven@gimp.org>
3131 * gtk/gtkbutton.[ch]
3132 * gtk/gtkdnd.c: fixed inline comments
3134 * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
3136 2001-10-26 Hans Breuer <hans@breuer.org>
3138 * gdk-pixbuf/gdk_pixbuf.def :
3140 * gtk/gtk.def : updated externals
3142 * gdk/win32/gdkpixmap-win32.c : removed duplicate of
3143 gdk_window_lookup implementation. It already was in
3144 gdk/win32/gdkwindow-win32.c
3146 * gdk/win32/gdkproperty-win32.c : made it compile again
3147 after GdkAtom API change
3149 * gtk/gtk/makefile.msc.in : updated
3151 Wed Oct 24 11:36:33 2001 Owen Taylor <otaylor@redhat.com>
3153 * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
3154 require GLib 1.3.10.
3158 Thu Oct 25 16:27:29 2001 Jonathan Blandford <jrb@redhat.com>
3160 * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
3162 (_gtk_rbnode_rotate_right): Ditto.
3163 (_gtk_rbtree_node_mark_invalid): New function.
3164 (_gtk_rbtree_node_mark_valid): New function.
3166 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
3167 GObject, not a GtkObject.
3168 (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
3170 (gtk_tree_model_sort_row_deleted): ditto.
3171 (gtk_tree_model_sort_{un,}ref_node): Fix.
3173 * gtk/gtktreeview.c: Protean incremental reflow support (commented
3176 * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
3179 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3180 Important 1 line fix to fix a lot of refcounting woes.
3182 2001-10-25 Matt Wilson <msw@redhat.com>
3184 * gtk/gtktextview.c (gtk_text_view_destroy): call
3185 gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
3186 now invalidates) so that we remove our idle functions.
3187 (gtk_text_view_destroy_layout): remove the first_validate_idle as
3190 * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
3191 the 'indent' property is G_MININT to G_MAXINT. Don't use
3192 -G_MAXINT for the minimum of the 'rise' property, use G_MININT
3195 2001-10-24 Anders Carlsson <andersca@gnu.org>
3197 * gtk/gtktreeview.c:
3198 (gtk_tree_view_real_expand_row): add an animate argument
3199 (gtk_tree_view_real_collapse_row): likewise
3201 (gtk_tree_view_button_press), (gtk_tree_view_button_release),
3202 (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
3203 (gtk_tree_view_collapse_row): update functions that call
3204 real_{expand|collapse}_row to set the animate argument
3207 2001-10-24 Alex Larsson <alexl@redhat.com>
3209 * gdk/linux-fb/gdkfont-fb.c:
3210 Update to new Pango APIs
3212 * gdk/linux-fb/gdkproperty-fb.c:
3213 Update to new GdkAtom APIs
3215 * gdk/linux-fb/gdkwindow-fb.c:
3218 Mon Oct 22 20:07:21 2001 Jonathan Blandford <jrb@redhat.com>
3220 * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
3222 Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
3224 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
3225 s_path as a child path
3227 Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
3229 * gtk/gtktreemodelsort.c: more changes in an attempt to get
3230 it right. It's not yet ready for general consumption.
3232 * tests/treestoretest.c: add a button and entry for the new
3233 iter_change function
3234 (iter_change): new function, to test
3235 the row_changed signal implementation of the GtkTreeModelSort
3237 * tests/testtreesort.c: cleanups, changes to test more features
3238 of the GtkTreeModelSort at once
3240 2001-10-24 Havoc Pennington <hp@redhat.com>
3242 * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
3243 remove hack to strip off the bogus newline, since we killed the
3244 bogus newline; fixes #61779
3246 2001-10-24 Havoc Pennington <hp@redhat.com>
3248 * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
3249 create layout if we didn't have one
3250 (gtk_text_view_set_buffer): invalidate so we get the idle handlers
3251 as appropriate, avoids blanking the screen
3252 (gtk_text_view_invalidate): new function to do invalidation,
3253 containing old guts of invalidated_handler
3255 Wed Oct 24 10:29:47 2001 Owen Taylor <otaylor@redhat.com>
3257 * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
3260 Tue Oct 23 17:31:42 2001 Owen Taylor <otaylor@redhat.com>
3262 * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always
3263 set window->parent (except or the root window itself); if
3264 the window's parent is not a GdkWindow, or is a window of
3265 type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
3267 * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
3268 windows of type GDK_WINDOW_FOREIGN.
3270 2001-10-24 Havoc Pennington <hp@pobox.com>
3272 * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
3273 the front of a segment, use the "slow" technique for moving
3274 backward, so we don't mess up the any_segment field in the iter.
3277 * tests/testtextbuffer.c: add code to detect #57707, to avoid
3280 2001-10-23 Havoc Pennington <hp@redhat.com>
3282 * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
3283 if selection contains some editable text, #60975
3284 (gtk_text_view_scroll_to_iter): remove warning about scrolling
3285 prior to map; it should actually be OK to do so in many cases,
3286 it would be nice to warn about scrolling when many lines have
3287 height 0, but I don't know what to do about that. Perhaps
3288 move part of flush_scroll into this function? comment added
3291 2001-10-23 Havoc Pennington <hp@redhat.com>
3293 * gtk/gtktextview.c (changed_handler): Correctly keep the same
3294 text on the top of the screen, considering that the changed region
3295 may have overlapped the first paragraph. Should fix msw's "text
3296 widget scrolled to wrong place on map" bug, and probably some
3297 other scrolling cases as well.
3298 (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0,
3299 instead of some random value
3301 * gtk/gtktextview.c (gtk_text_view_class_init): actually override
3302 grab_focus, so #59708 is really fixed
3304 2001-10-24 Anders Carlsson <andersca@gnu.org>
3306 * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
3307 (popup_targets_received): Call append_action_signal with stock items
3309 * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
3310 (gtk_label_do_popup): Call append_action_signal with stock items
3312 * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
3313 (popup_targets_received): Call append_action_signal with stock items
3315 2001-10-23 Havoc Pennington <hp@redhat.com>
3317 * gtk/gtktextview.c (changed_handler): queue a resize here; will
3318 temporarily slow down the widget a lot, until we figure out how to
3319 optimize to avoid full redraw everytime we queue a resize.
3321 2001-10-23 Havoc Pennington <hp@redhat.com>
3323 * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
3324 0 and char_len == 0, bug #61729
3326 2001-10-23 Havoc Pennington <hp@redhat.com>
3328 * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
3329 return value, #61714 (Vitaly Tishkov)
3330 (gtk_text_iter_backward_sentence_starts): ditto
3331 (gtk_text_iter_backward_word_starts): ditto
3332 (gtk_text_iter_forward_word_ends): ditto
3333 (gtk_text_iter_forward_sentence_ends): ditto
3334 (gtk_text_iter_backward_cursor_positions): ditto
3336 2001-10-23 Havoc Pennington <hp@redhat.com>
3338 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
3339 fix from Dov Grobgeld, #61858
3341 2001-10-23 Havoc Pennington <hp@redhat.com>
3343 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
3344 Update IM spot location at appropriate times, #50626
3347 2001-10-23 Havoc Pennington <hp@redhat.com>
3349 * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
3350 on grab focus, unless it's caused by button click, #59708
3352 Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com>
3354 * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
3356 * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
3357 G_CONST_RETURN. (Murray Cumming)
3359 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
3360 Make G_CONST_RETURN.
3362 * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
3363 results of g_get_home_dir().
3365 * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
3366 copy. Storing the return from gtk_entry_get_text() is evil.
3368 * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
3369 gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
3370 gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
3371 gtk/gtksignal.c: Add const.
3373 * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
3375 * gtk/gtktreeview.c: Namespace object data keys to be safe, even
3376 if we are setting them on private widgets.
3378 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3379 Duplicate entry->text before setting it as object data.
3381 2001-10-22 Havoc Pennington <hp@redhat.com>
3383 * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
3384 up a char from the end iterator, fixes #61859 ("can't put cursor
3385 at the end of the buffer")
3387 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
3388 to work with delimiters other than newline.
3390 * tests/testtextbuffer.c: add some tests for get_chars_in_line,
3393 * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
3394 last line, since the newline is no longer counted.
3395 (gtk_text_iter_get_bytes_in_line): ditto
3397 2001-10-22 Havoc Pennington <hp@redhat.com>
3399 * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that
3400 #58290 would trigger if it reappeared, I think
3402 2001-10-22 Havoc Pennington <hp@redhat.com>
3404 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3405 add temporary code to dump btree contents on assertion failure
3408 * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
3409 assertions that we're getting the right end iter segment
3411 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3412 verify that we aren't on the end iterator after moving
3413 forward one segment - fixes return value in an obscure case.
3414 Also, some trivial code cleanup/rearranging.
3416 2001-10-22 Havoc Pennington <hp@redhat.com>
3418 * gtk/gtktextlayout.h: add a #error unless you define
3419 GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
3421 * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
3423 2001-10-22 Havoc Pennington <hp@redhat.com>
3425 * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
3428 2001-10-22 Havoc Pennington <hp@redhat.com>
3430 * gtk/gtktextview.c (gtk_text_view_get_window_type): fix
3433 2001-10-22 Havoc Pennington <hp@redhat.com>
3435 * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix
3438 Mon Oct 22 11:47:47 2001 Owen Taylor <otaylor@redhat.com>
3440 * gtk/gtklabel.c: Add cursor-position, selection-bound
3441 properties. (#62148, reported by Padraig O'Briain)
3443 * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
3444 to cursor_position. (1.3.x addition, text_position is an awful
3445 name.) Make cursor_position read-only to avoid sticky questions
3446 of interaction with selection_bound. (#62636, reported by
3449 Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com>
3451 Fixing popup menus to have "Paste" sensitized correctly. Original
3452 patches from Damian Ivereigh, much mangled.
3454 * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
3455 gtk_selection_data_targets_include_text(). (#60854)
3457 * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
3458 the clipboard has text" function gtk_clipboard_wait_is_text_available.
3461 * gtk/gtkentry.c: Only enable the paste item if the clipboard
3462 contains text. (#60973)
3464 * gtk/gtktextview.c: Only enable the paste item if the clipboard
3465 contains text. (#60975)
3467 2001-10-22 Havoc Pennington <hp@redhat.com>
3469 * gtk/gtktextview.c (gtk_text_view_class_init): rip out
3470 "height_lines" and "width_columns" properties, it doesn't make
3471 sense to set the size request on a text view really. #62103
3473 Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
3475 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
3476 g_node_depth is broken, and that it's not worth being consistent
3479 2001-10-22 Havoc Pennington <hp@redhat.com>
3481 * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
3483 (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
3484 change the two boolean args to a flags field, so we can extend
3485 to add case insensitive, regexp searches later. #61852
3487 Mon Oct 22 15:07:17 2001 Jonathan Blandford <jrb@redhat.com>
3489 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
3490 reflect reality, #62810
3492 Mon Oct 22 14:08:26 2001 Jonathan Blandford <jrb@redhat.com>
3494 * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
3496 * gtk/gtktreeview.c (size_allocate): Move to a different drawing
3497 system. Instead of having a window the size of the tree, we have
3498 a window the size of widget->allocation, and simply draw with the
3500 (coords_are_over_arrow): ditto. Move to window coordinates.
3501 (do_prelight): ditto
3502 (do_unprelight): ditto
3504 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3505 Minor fix from Kristian Rietveld to fix unsorted case.
3507 2001-10-22 jacob berkman <jacob@ximian.com>
3509 * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
3510 a PIXMAP cell (fixes crash when using PIXTEXT cells)
3512 Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
3514 * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
3515 (#58768, Vitaly Tishkov)
3517 * gtk/gtkobject.h: Deprecate with abandon.
3518 (#61942, Vitaly Tishkov, Matthias Clasen)
3520 * gtk/gtksignal.h: Deprecate everything.
3522 * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
3523 all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
3524 (#61942, Matthias Clasen)
3526 * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
3529 * gtk/gtkitemfactory.h: Deprecate compat functions
3530 for GtkMenuFactory code. (#62071)
3532 * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
3533 gdk_draw_text,gdk_draw_text_wc. (#62071)
3535 Mon Oct 22 10:12:08 2001 Owen Taylor <otaylor@redhat.com>
3537 * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
3538 g_thread_init(), we don't want to link to -lgthread if we don't
3541 Mon Oct 22 08:51:02 2001 Owen Taylor <otaylor@redhat.com>
3543 * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt:
3544 Add a function, gdk_threads_init() that must be explicitely
3545 called to enable the GDK thread mutex.
3547 2001-10-22 Jakub Steiner <jimmac@ximian.com>
3549 * gtk/stock-icons/stock_stop.png: no body parts
3551 Sun Oct 21 23:27:00 2001 Owen Taylor <otaylor@redhat.com>
3553 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
3554 problem with g_return_if_fail return value.
3556 * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
3557 virtual atom code from the gdk-multihead branch, removing the per-display
3558 part. Virtualizing atoms needs to be done now to prevent compat
3559 breakage in direct Xlib accessing code in the future. (#62208)
3561 * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
3562 gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
3564 * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
3565 an opaque pointer type so the compiler catches attempts
3566 to mingle it with X atoms.
3568 * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
3569 gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
3570 gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
3571 gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
3572 tests/testdnd.c,tests/testselection.c:
3573 Fix up for above atom changes.
3575 * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
3576 now have the ability to add custom predefines.
3578 * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
3579 Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
3580 to gtk_clipboard_get().
3582 * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
3583 for GdkAtom => pointer change.
3585 * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
3586 atoms, fix for GdkAtom => pointer change.
3588 Mon Oct 22 00:26:46 2001 Kristian Rietveld <kristian@planet.nl>
3590 * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
3591 new function spin_button_get_arrow_size() instead.
3593 * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
3594 arrow was hardcoded, it's now variable.
3598 Sat Oct 20 18:16:04 2001 Manish Singh <yosh@gimp.org>
3600 * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
3601 PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
3604 Sat Oct 20 19:38:16 2001 Owen Taylor <otaylor@redhat.com>
3606 * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
3607 in favor of g_signal_*, gtk_object_* in favor of
3610 Fri Oct 19 18:35:22 2001 Manish Singh <yosh@gimp.org>
3612 * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
3613 from GObject now, we have to use the g_object_* functions, not
3616 Fri Oct 19 22:46:54 2001 Kristian Rietveld <kristian@planet.nl>
3618 * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
3619 nailed down now (this code is not yet ready for general consumption)
3621 Fri Oct 19 13:44:51 2001 Manish Singh <yosh@gimp.org>
3623 * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
3626 Fri Oct 19 15:34:06 2001 Owen Taylor <otaylor@redhat.com>
3628 * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
3630 Fri Oct 19 15:08:30 2001 Owen Taylor <otaylor@redhat.com>
3632 * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
3633 modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
3634 imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
3635 GObject, not GtkObject. (#62621)
3637 Fri Oct 19 12:49:12 2001 Owen Taylor <otaylor@redhat.com>
3639 * tests/testsocket.c: Remove now useless include of unistd.h,
3640 fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
3642 Fri Oct 19 12:24:32 2001 Owen Taylor <otaylor@redhat.com>
3644 * gdk/linux-fb/gdkfont-fb.c: Fix up for change to
3645 Pango font API. #61933. (Untested, even for compilation.)
3647 Fri Oct 19 11:24:58 2001 Owen Taylor <otaylor@redhat.com>
3649 * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
3650 export gtk_disable_setlocale(). (Caught by Sven Neumann)
3652 2001-10-18 Havoc Pennington <hp@redhat.com>
3654 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
3656 2001-10-18 Havoc Pennington <hp@redhat.com>
3658 * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
3659 to GTK_RUN_LAST, #50239
3661 2001-10-18 HideToshi Tajima <hidetoshi.tajima@sun.com>
3663 * gtk/gtkimmodule.c (match_locale):
3664 Support "*" for all locales with least priority
3665 when to select default im module, #58201
3667 2001-10-18 Matthias Clasen <matthiasc@poet.de>
3669 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode):
3672 * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
3674 * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
3676 * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
3677 gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
3678 gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
3679 gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
3680 gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
3681 Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
3682 and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
3684 * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
3686 * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
3687 Don't restrict the width of the spinbutton entry field
3688 to 10 digits. (#58681)
3690 Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
3692 * tests/testtreeflow.c: new test program for the tree.
3694 Thu Oct 18 14:22:10 2001 Jonathan Blandford <jrb@redhat.com>
3696 * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
3697 reported by (Oleg Maiboroda), #62600
3699 2001-10-18 Michael Meeks <michael@ximian.com>
3701 * gtk/gtkentry.c (gtk_entry_set_property),
3702 (gtk_entry_get_property): impl 'text'
3703 (gtk_entry_class_init): add the 'text' prop.
3704 (gtk_entry_insert_text): notify 'text' changed.
3705 (gtk_entry_delete_text): ditto.
3707 2001-10-17 Matthias Clasen <matthiasc@poet.de>
3709 * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
3710 Documentation updates.
3712 Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
3714 * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
3715 in truncating length of text to MAX_SIZE. (Found by
3716 Padraig O'Briain, #62055)
3718 Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
3720 * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
3721 MNEMONIC_ACTIVATE; signal was changed a long time
3724 * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale):
3725 Fix wrong return statement. (Reported by HideToshi
3728 * gtk/gtklabel.h (struct _GtkLabelClass): Remove
3729 left over select_all vfunc.
3731 Tue Oct 16 15:50:03 2001 Owen Taylor <otaylor@redhat.com>
3733 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
3734 a utility function to translate coordinates relative to
3735 one widget's allocation to coordinates relative to another
3736 widget's allocation.
3738 * gtk/gtkradiobutton.c: Add a special ->focus() implementation
3740 - only accepts external focus if there is no active
3741 member of the group or the button is active.
3742 - makes arrow keys move the active button as well
3744 - make tab tab out directly.
3745 This makes a radio button group act as a single focus location.
3748 * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
3749 it was only a small optimization that didn't matter and made
3750 things more complicated.
3752 * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
3753 sorter for FOCUS_TAB as we did for the other focus directions,
3754 sort by center of widgets, not upper-left corner. (Shouldn't
3757 * gtk/gtkcontainer.c: Restructure code to remove duplicate code
3758 from the different types of focusing: encapsulate sorting the
3759 widgets for the focus direction into one routine
3760 (gtk_container_focus_sort()) and then share the work of moving the
3761 focus between the different focus directions.
3763 * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
3764 work correctly with focus chains containing non-immediate
3765 children. Sorting was being done using allocation coordinates for
3766 each widget in the focus chain, and if there were intermediate
3767 window-widgets, these allocations would not be in the same
3770 Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
3772 * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
3773 mnemonic_activate function to option menu.
3775 2001-10-15 Murray Cumming <murrayc@usa.net>
3777 * gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:
3778 Corrected the type names used in some calls to g_signal_new().
3780 Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org>
3782 * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
3783 specs, use g_pattern_spec_equal() instead of direct field accesses.
3784 upon compressing two equal paths of the same type, the resulting
3785 priority has to be the maximum.
3786 * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
3787 GtkPathPriorityType enum and make it a macro.
3789 2001-10-12 Matthias Clasen <matthiasc@poet.de>
3791 * gtk/gtkwidget.c: Fix some doc comments.
3793 Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
3795 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
3798 2001-10-11 Matthias Clasen <matthiasc@poet.de>
3800 * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
3801 Remove stale gdk backend includes.
3803 2001-10-10 Michael Meeks <michael@ximian.com>
3805 * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
3806 and value_in_list properties.
3807 (gtk_combo_set_value_in_list): notify change.
3808 (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
3810 2001-10-11 James Henstridge <james@daa.com.au>
3812 * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
3813 that gtk+ can be built with automake 1.5 while not breaking
3814 things for automake 1.4.
3816 Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com>
3818 * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
3821 * gtk/gtkmain.c (gtk_disable_setlocale): Add function
3822 to disable calling setlocale (LC_ALL, "").
3824 * gtk/gtkmain.c (gtk_set_locale): Indicate in the
3825 docs that this function is not typically useful.
3827 * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}:
3828 Automatically initialize GDK for the current locale
3829 on gdk_init(). Don't reset locale to C when
3830 XSupportsLocale() fails.
3832 * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
3833 useless checks for UTF-8 locale breakage that mattered
3836 * examples/calendar/calendar.c
3837 tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to
3840 * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
3841 gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
3843 Wed Oct 10 21:13:46 2001 Kristian Rietveld <kristian@planet.nl>
3845 * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
3849 Wed Oct 10 01:19:04 2001 Jonathan Blandford <jrb@redhat.com>
3851 * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
3852 new function, #61923
3853 (gtk_tree_selection_path_is_selected): Ditto
3855 Tue Oct 9 17:40:24 2001 Jonathan Blandford <jrb@redhat.com>
3857 * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
3858 not a GtkObject. Thanks andersca.
3860 * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
3862 Tue Oct 9 14:50:51 2001 Jonathan Blandford <jrb@redhat.com>
3864 * gtk/gtktreeviewcolumn.c
3865 (gtk_tree_view_model_sort_column_changed): fix broken code.
3867 2001-10-08 Matthias Clasen <matthiasc@poet.de>
3869 * gtk/gtkselection.c: s/succesfully/successfully/g
3871 2001-10-08 Havoc Pennington <hp@pobox.com>
3873 * demos/gtk-demo/stock_browser.c: remove unused enum
3875 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
3876 pass the current selection state of the node in to the user
3879 2001-10-06 Matthias Clasen <matthiasc@poet.de>
3881 * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to
3882 non-existent function gdk_x11_cursor_get_xid
3883 by gdk_x11_cursor_get_xcursor.
3885 Fri Oct 5 20:50:00 2001 Jonathan Blandford <jrb@redhat.com>
3887 * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
3890 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
3891 unref nodes, #okay61676
3893 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
3894 to the property; no need to clear the other columns. Also, we go
3895 to 'unsorted' if the model supports it.
3897 2001-10-05 Sven Neumann <sven@gimp.org>
3899 * demos/testpixbuf-save.c
3900 * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
3903 Fri Oct 5 19:06:07 2001 Kristian Rietveld <kristian@planet.nl>
3905 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
3906 destroy the search dialog
3908 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3909 added check to prevent creation of a search dialog if there's
3912 * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
3913 it instead of "search-dialog" (when getting/setting the search dialog
3916 2001-10-05 Jakub Steiner <jimmac@ximian.com>
3918 * gtk/stock-icons/stock_broken_image.png: broken images icon
3920 2001-10-04 Havoc Pennington <hp@pobox.com>
3924 * gtk/gtksettings.c (gtk_settings_class_init): move the F10
3925 accelerator setting here...
3927 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
3928 because we try to use it when a menu bar hasn't necessarily been
3931 2001-10-03 Havoc Pennington <hp@redhat.com>
3933 * tests/testtextbuffer.c (logical_motion_tests): fix test case,
3934 it previously verified incorrect behavior
3938 * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
3940 (_gtk_text_btree_get_iter_at_line_char): don't return lines off
3942 (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
3944 (gtk_text_iter_forward_lines): if on the last line, move to end of
3947 * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
3948 don't return a line off the end
3950 Wed Oct 3 23:47:25 Kristian Rietveld <kristian@planet.nl>
3952 * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
3953 functions to do_insert_text and do_delete_text, add signals
3954 insert_text, delete_text and changed
3956 * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
3957 and changed. Updates to match new situation.
3959 * gtk/gtkspinbutton.c: updates to match new situation
3961 * gtk/gtkoldeditable.h: remove signals changed, insert_text
3964 * gtk/gtkoldeditable.c: updates to match new situation
3966 * gtk/gtktext.c: updates to match new situation
3970 2001-10-03 Havoc Pennington <hp@redhat.com>
3972 * gtk/gtktextiter.c (test_log_attrs): allow testing the end
3975 * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
3978 * tests/testtextbuffer.c (logical_motion_tests): updates
3980 2001-10-03 jacob berkman <jacob@ximian.com>
3982 * gtk/gtkwidget.c (gtk_widget_style_get_property):
3983 * gtk/gtkstyle.c (_gtk_style_peek_property_value):
3984 * gtk/gtksettings.c (apply_queued_setting):
3985 * gtk/gtkmain.c (gtk_init_check):
3986 * gtk/gtkcontainer.c (gtk_container_child_get_property):
3989 Wed Oct 3 20:29:29 2001 Kristian Rietveld <kristian@planet.nl>
3991 * gtk/gtktreemodelsort.[ch]: preparation for surgery
3992 * tests/testtreesort.c: ditto
3994 2001-10-02 Havoc Pennington <hp@redhat.com>
3996 Throughout: assorted docs
3998 * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
3999 gdk_window_set_geometry_hints() should be used instead.
4001 * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
4004 * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
4005 seem to exist in any .c files
4007 * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs,
4008 g_return_if_fail (pixel < colormap->size).
4010 Wed Oct 3 10:42:54 2001 Owen Taylor <otaylor@redhat.com>
4012 * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
4013 NULL for @target_list to mean, use
4014 gtk_drag_dest_get_target_list (widget).
4016 * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
4017 drop could hang when calling gtk_drag_finish with
4018 success == FALSE and del == TRUE.
4020 * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
4021 drops without a matching target found would propagate
4022 to the parent widget rather than being rejected.
4024 * gtk/gtktextview.c (gtk_text_view_drag_data_received):
4025 Use text_view->dnd_mark instead of mark name to be
4026 consistent with the rest of the code.
4028 * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
4029 pendantically correct for a drop-only-in-some-places
4030 widget. (Check whether you can insert in drag_drop,
4031 not just in drag_motion ... matters in theory, and
4032 for Motif drag and drop in practice.)
4034 * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from
4035 Damian Ivereigh to not allow drops on non-editable
4038 * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
4039 text to be moved from a non-editable entry.
4041 2001-10-03 James Henstridge <james@daa.com.au>
4043 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
4044 s/width/fixed_width/ in order to get things to compile.
4046 Wed Oct 3 00:37:09 2001 Jonathan Blandford <jrb@redhat.com>
4048 * gtk/gtkcelleditable.c: docs
4050 * gtk/gtktreemodel.h: more docs.
4052 2001-10-02 Havoc Pennington <hp@redhat.com>
4054 * gdk/x11/gdkwindow-x11.c: docs
4056 * tests/testtextbuffer.c (logical_motion_tests): add sentence
4059 Tue Oct 2 20:18:32 2001 Kristian Rietveld <kristian@planet.nl>
4061 * demos/gtk-demo/Makefile.am: add editable_cells.c,
4062 list_store.c and tree_store.c
4064 * demos/gtk-demo/appwindow.c: remove tearoff item from
4065 File menu, put menubar and toolbar in handle boxes.
4067 * demos/gtk-demo/genincude.pl: various changes to support trees
4069 * demos/gtk-demo/main.c: various changes to support trees
4071 * demos/gtk-demo/stock_browser.c: changed name of demo
4072 to Stock Item and Icon Browser, so geninclude.pl doesn't see
4075 * demos/gtk-demo/editable_cells.c: new file/demo
4076 * demos/gtk-demo/list_store.c: new file/demo
4077 * demos/gtk-demo/tree_store.c: new file/demo
4079 Mon Oct 1 16:05:44 2001 Owen Taylor <otaylor@redhat.com>
4081 * gtk/gtkrc.c gtk/gtksettings.c:
4082 g_string_printfa => g_string_append_printf.
4084 Mon Oct 1 16:08:23 2001 Jonathan Blandford <jrb@redhat.com>
4086 * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
4087 and destroy handler.
4089 * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
4091 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
4092 'start_editing' flag to select_cursor_row. Bug spotted by Manish
4093 Singh <yosh@gimp.org>.
4095 2001-10-01 Matthias Clasen <matthiasc@poet.de>
4097 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
4098 g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
4100 * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
4102 Mon Oct 1 14:07:02 2001 Jonathan Blandford <jrb@redhat.com>
4104 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
4105 scroll_to_cell delayed code to happen in size_allocate.
4107 * gtk/gtkstyle.c (gtk_default_draw_expander): change
4108 prelight/normal arrow drawing.
4110 * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
4112 * gtk/gtktreestore.c: refactor.
4114 Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
4116 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
4117 patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
4118 centers the child in relation to the to indicator height.
4120 Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
4122 * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
4125 Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
4127 * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
4128 property code using g_param_spec_int and changed from
4129 g_value_get_enum to g_value_get_int instead. Probably a better way
4130 to fix the problem :-)
4132 Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
4134 * gtk/gtkcellrenderertext.c changed "weight" property type from
4135 g_param_spec_int to g_param_spec_enum.
4137 Sat Sep 29 12:25:26 2001 Manish Singh <yosh@gimp.org>
4139 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
4140 fix: s/Wether/Whether/ in reorderable property description
4142 Thu Sep 27 16:46:36 2001 Jonathan Blandford <jrb@redhat.com>
4144 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
4145 start editing when you select with a keyboard.
4147 (gtk_tree_view_button_press_event): much more graceful now.
4149 * gtk/gtkstyle.c: Draw togglebutton better.
4151 2001-09-26 Havoc Pennington <hp@redhat.com>
4153 * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
4154 of passing non-stock label in to gtk_dialog_new_with_buttons
4156 * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
4159 * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
4162 * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
4163 exist, fall back to mnemonic label, not plain label, bug #61184
4165 Wed Sep 26 19:48:01 2001 Jonathan Blandford <jrb@redhat.com>
4167 * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
4168 stupid and emitting the signal every time.
4170 * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
4172 Wed Sep 26 16:35:59 2001 Owen Taylor <otaylor@redhat.com>
4174 Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
4176 * contrib/gdk-pixbuf-xlib/Makefile.am: install
4177 gdk-pixbuf-xlib-2.0.pc.
4179 Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
4181 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
4182 problem where menmonic wasn't removed properly when
4183 setting a label when there already is a label.
4184 Also, handle setting the tab label back to the same
4185 value. (#61160, #61161)
4187 * gtk/gtkentry.c (paste_received): Patch from
4188 Damian Ivereigh to replace selection if there is
4191 2001-09-25 Darin Adler <darin@bentspoon.com>
4193 * tests/.cvsignore: Ignore new test program.
4195 2001-09-25 Havoc Pennington <hp@redhat.com>
4197 * gtk/gtktextview.c: fix for #50317
4199 2001-09-25 Havoc Pennington <hp@redhat.com>
4201 * gtk/gtktextview.c (gtk_text_view_key_press_event): use
4202 gtk_text_iter_can_insert
4204 * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
4206 * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
4207 (gtk_text_iter_can_insert): new function to fix #60282, should
4208 also fix msw's "can paste into empty buffer" bug.
4210 * gtk/gtktexttag.c (gtk_text_tag_event): change type check for
4211 "event object," #59091
4213 * gtk/gtktextbtree.c: indentation fixes
4215 * gtk/gtktextiter.c (find_by_log_attrs): fixes
4217 Tue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com>
4219 * configure.in: Version 1.3.9, interface age 0, binary age 0.
4221 * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
4225 Mon Sep 24 11:59:09 2001 Owen Taylor <otaylor@redhat.com>
4227 * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
4228 function for drawing cursors between gtkentry/gtklabel/gtktextview.
4229 Should this be public? It has a bit of an odd interface, but
4230 custom editing widgets probably should be using it.
4231 Function will draw with wider width for taller cursors, and
4232 draws a little indicator arrow to indicate directoin for split
4235 * gtk/gtktextview.c: Add a "cursor_color" property.
4237 * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
4238 gtk_text_layout_draw().
4240 * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
4241 _gtk_draw_insertion_cursor().
4243 Tue Sep 25 11:22:23 2001 Owen Taylor <otaylor@redhat.com>
4245 * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
4246 the behavior where you could turn family_set (etc) back on
4247 and get back the values you had before.
4249 * demos/gtk-demo/stock_browser.c (id_to_macro): Use
4250 g_string_ascii_up() rather than looping through the
4253 Tue Sep 25 15:32:44 2001 Jonathan Blandford <jrb@redhat.com>
4255 * gtk/gtktreeviewcolumn.c
4256 (gtk_tree_view_column_set_cell_renderer): Removed
4257 (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0); Fixes 61012.
4259 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
4260 Patch from Detlef Reichl
4262 2001-09-25 Havoc Pennington <hp@redhat.com>
4264 * tests/testtextbuffer.c (line_separator_tests): Add tests for
4265 line separators, addresses bug #57428
4267 Tue Sep 25 12:34:42 2001 Jonathan Blandford <jrb@redhat.com>
4269 * gtk/gtkentry.c: Make a GtkCellEditable
4270 (get_widget_window_size): Change to let it honor size_allocate
4271 when a CellEditable.
4273 * gtk/gtktreeview.c: M-x clean-line-ends. Lots of focus and
4275 (gtk_tree_view_set_cursor): Now you can set the cursor
4276 horizontally, as well as start editing.
4278 * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
4279 code to look more like the other check buttons.
4281 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
4282 Change the way we calculate cell size.
4284 * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
4286 * demos/gtk-demo/sizegroup.c: Add mnemonics.
4288 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
4291 * gtk/gtkcellrenderertext.c: Change to be editable.
4293 * gtk/gtkcellrenderertoggle.c: Change to be activatable.
4295 * test/testtreesort.c: Fix misspelling
4297 * test/testreecolumns.c: Add mnemonics.
4299 * test/testreeedit.c: New test program.
4301 2001-09-25 Havoc Pennington <hp@pobox.com>
4303 * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
4304 etc. docs about how these are not going to do what you want for
4305 the X/win32 ports. Futile attempt to avoid a FAQ...
4307 2001-09-24 James Henstridge <james@daa.com.au>
4309 * gtk/gtkmarshal.list (VOID): add marshal function types.
4311 * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
4312 GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
4314 (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
4315 with no-op copy/free functions.
4317 * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
4318 GtkCTreeNode get_type function.
4320 2001-09-24 Havoc Pennington <hp@redhat.com>
4322 * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
4324 Get rid of the newline-that-could-not-be-deleted; buffers may
4325 now be zero-length. Much easier to fix than expected, once
4326 I figured out the right way to do it. However, there are
4327 various subtle bugs introduced by this that will have to get
4328 sorted out. Please use bugzilla.
4330 Mon Sep 24 15:09:08 2001 Owen Taylor <otaylor@redhat.com>
4332 * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
4333 response back from the window manager if our size hasn't changed
4334 since we won't get a response back from the window manager;
4335 there was code in there to do this, but it was in the wrong
4336 place so if the hints change and the size didn't we'd expect
4339 Also, optimize the position-only-changed case by running
4340 the resize queue immediately, and clean up some comments
4343 Mon Sep 24 12:48:25 2001 Owen Taylor <otaylor@redhat.com>
4345 * gtk/gtknotebook.h: Add a compat macro that got lost.
4347 * gtk/gtktreestore.c: Doc fixes.
4349 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
4350 leak for windows that receive events after being destroyed.
4351 (#60863, Joshua N. Pritikin)
4353 * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
4354 rather than gtk_container_queue_resize().
4356 * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
4357 gtk_container_queue_resize, gtk_container_queue_resize_widgets,
4358 gtk_container_child_composite_name. (#60217.)
4360 2001-09-22 Hans Breuer <hans@breuer.org>
4362 * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
4364 Sat Sep 22 16:50:34 2001 Kristian Rietveld <kristian@planet.nl>
4366 * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
4367 weight value should be an int
4369 Sat Sep 22 15:17:41 2001 Kristian Rietveld <kristian@planet.nl>
4371 * gtk/gtkmenu.c (gtk_menu_select_item): move most code
4372 to gtk_menu_scroll_item_visible(). Only call
4373 gtk_menu_scroll_item_visible() if the menu widget has been
4374 realized. Fixes bug #55310.
4376 2001-09-21 Havoc Pennington <hp@redhat.com>
4378 * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
4379 key press to IM context if cursor isn't in an editable location;
4380 bug #58425, patch from Hidetoshi Tajima
4382 2001-09-21 Havoc Pennington <hp@redhat.com>
4386 * gtk/gtktextbtree.c (gtk_text_btree_node_destroy):
4387 (_gtk_text_btree_unref): fix up mark memory management
4389 * gtk/gtktextmark.c (mark_segment_delete_func): ditto
4391 2001-09-20 Havoc Pennington <hp@redhat.com>
4393 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
4394 try to handle alignment here, because it's done by PangoLayout
4395 after we set the layout width. Fix from Dov.
4397 2001-09-21 Hans Breuer <hans@breuer.org>
4400 * gtk/gtk.def : updated externals
4402 * gtk/gtkmain.h : define get_gtk_win32_directoty ()
4403 * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
4404 Also handle that Win32 pathes cann't be hard-coded
4406 * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
4407 module, themes etc directory calculations
4409 * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
4410 >16 bit right. The size limit within Win9x appears _not_ to be 32767
4411 but slightly smaller ...
4413 * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid
4414 >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
4416 * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
4418 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4419 handling. I'm not sure if it is better now, but at least not worse
4421 * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
4423 * gdk/win32/gdkwin32.h : reflect recent API restrictions
4425 2001-09-21 Matt Wilson <msw@redhat.com>
4427 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
4428 radio_menu_item->group to NULL after removing it from the list, as
4429 it is no longer in the group. (#60869)
4431 * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
4433 2001-09-20 Havoc Pennington <hp@pobox.com>
4435 * configure.in (PANGO_REQUIRED_VERSION)
4436 (ATK_REQUIRED_VERSION): add variables and checks for specific
4437 versions of dependencies. Previously we didn't verify the
4438 Pango or ATk versions.
4440 2001-09-09 Havoc Pennington <hp@pobox.com>
4442 * gtk/gtktextiter.c: fool with indentation
4443 (gtk_text_iter_in_range): add g_return_if_fail
4445 Thu Sep 20 17:45:54 2001 Joshua N Pritikin <vishnu@pobox.com>
4447 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
4448 ref count on new tag to be 1. Update doc. (#60836)
4450 Thu Sep 20 16:20:47 2001 Owen Taylor <otaylor@redhat.com>
4452 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
4453 call to gdk_image_new_bitmap(). (#59094, reported by
4456 Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
4458 * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
4459 day, as well as the current month and year.
4460 (#59047, reported by Vitaly Tishkov)
4462 Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
4464 * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
4465 set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
4467 Thu Sep 20 18:00:56 2001 Kristian Rietveld <kristian@planet.nl>
4469 * tests/testgtk.c (struct OptionMenuItem): get rid of it,
4471 (build_option_menu): add func argument, connect ::changed
4472 signal to option menu instead of connecting the ::activate
4473 signal to the menu items,
4475 (toplevel): get rid of RADIOMENUTOGGLED macro,
4477 (list_toggle_sel_mode), (clist_toggle_sel_mode),
4478 (ctree_toggle_line_style), (ctree_toggle_expander_style),
4479 (ctree_toggle_justify), (ctree_toggle_sel_mode),
4480 (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
4481 use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
4483 (notebook_type_changed): merged standard_notebook(),
4484 notabs_notebook(), scrollable_notebook() and borderless_notebook()
4485 into notebook_type_changed()
4487 (create_list), (create_ctree), (create_notebook),
4488 (create_progress_bar): changed OptionMenuItem arrays into
4489 gchar * arrays. Removed "Extended" item where used.
4493 2001-09-20 Sven Neumann <sven@gimp.org>
4498 * gtk/gtkselection.c
4500 * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
4502 Thu Sep 20 11:19:42 2001 Owen Taylor <otaylor@redhat.com>
4504 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
4505 a missing pango_layout_iter_free ().
4507 Thu Sep 20 11:03:51 2001 Owen Taylor <otaylor@redhat.com>
4509 * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
4510 gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
4512 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
4513 the function definition so we don't accidentally rely on
4514 the compat #define from gtk_radio_menu_item_group.
4515 (#60782, Jeff Franks)
4517 Thu Sep 20 16:51:02 2001 Kristian Rietveld <kristian@planet.nl>
4519 * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
4520 incorrect values for top, right and bottom due to cut-and-paste
4521 bug. Pointed out by Vitaly Tishkov, fixes bug #59008
4523 Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
4525 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
4526 _NET_WM_PID and WM_CLIENT_MACHINE properties on each
4527 window, not just on the client leader. (#58463)
4529 Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
4531 * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
4533 * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
4534 non-public _gtk_menu_item_set_placement.
4536 * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
4538 Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
4540 * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c
4541 gdk/linux-fb/gdkcolor-fb.c:
4542 Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
4545 Wed Sep 19 16:12:16 2001 Owen Taylor <otaylor@redhat.com>
4547 * gdk/gdkpixbuf-render.c: Allow -1 for width/height
4548 to mean "width/height of pixbuf" (Patch from Matthias Clasen,
4551 Wed Sep 19 16:01:27 2001 Owen Taylor <otaylor@redhat.com>
4553 Patch from Frank Belew #59037 for Solaris compilation.
4555 * gtk/maketypes.awk: Change syntax slightly for a call
4556 to sub(), apparently making awk on Solaris happier.
4558 * gtk/gtktreeview.c: Remove C++ comments.
4560 Wed Sep 19 15:46:29 2001 Owen Taylor <otaylor@redhat.com>
4562 * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
4563 to handle '99% of the time. (#60473, reported by Christian Rose)
4565 * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
4566 which no longer exists. (#60379, reported by Vitaly Tishkov)
4568 Wed Sep 19 11:06:24 2001 Tim Janik <timj@gtk.org>
4572 * gdk/Makefile.am: kill EXTRA_DIST clearing.
4574 Wed Sep 19 02:50:40 2001 Tim Janik <timj@gtk.org>
4576 * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
4577 as its broken in automake 1.4, add explicit object rule to
4580 * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
4581 get rid of uneccessary stamps, group stuff more logically, and build
4582 sources due to object rules. fix srcdir!=builddir.
4584 Tue Sep 18 20:47:16 2001 Owen Taylor <otaylor@redhat.com>
4586 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix
4587 incorrect parameter to compute_double_length
4588 (#58680, patch from Matthias Clasen)
4590 Fixes for compilation with Forte cc. (#59734, Derek Rafter)
4592 * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
4594 * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
4595 for GDK_RELEASE_MASK to avoid warnings with Forte.
4597 * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
4600 2001-09-18 Alex Larsson <alexl@redhat.com>
4602 * gtk/gtkcheckbutton.c:
4603 * gtk/gtkradiobutton.c:
4604 Don't draw with GTK_STATE_ACTIVE.
4608 Draw lines between rows with base_gc[GTK_STATE_NORMAL].
4610 * gtk/gtktextdisplay.c:
4611 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4612 unfocused with base_gc [GTK_STATE_ACTIVE].
4615 Add select all menu-item.
4616 Default cursor color is red.
4617 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4618 unfocused with base_gc [GTK_STATE_ACTIVE].
4620 * gtk/gtklabel.[ch]:
4621 Add keynav + menu to selectable lables.
4622 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4623 unfocused with base_gc [GTK_STATE_ACTIVE].
4626 Add drag and drop support.
4629 (This was checked in earlier)
4630 New default values for text/base SELECTED and ACTIVE
4632 Tue Sep 18 23:51:49 2001 Tim Janik <timj@gtk.org>
4634 * configure.in: up version to 1.3.8, interface age 0,
4635 binary age 0, depend on glib 1.3.8.
4637 * NEWS: 1.3.8 updates.
4639 Tue Sep 18 18:46:54 2001 Jonathan Blandford <jrb@redhat.com>
4641 * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
4644 * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
4645 reason to call it beyond emiting the two signals.
4647 * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
4650 Wed Sep 12 11:21:14 2001 Owen Taylor <otaylor@redhat.com>
4652 * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
4653 gtk/gtktextview.c tests/testgtk.c: Fix up for changes to
4654 PangoFontDescription.
4656 * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
4657 gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
4660 * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
4662 * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
4663 direct access to style->font. Deprecate gtk_style_ref/unref.
4665 * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
4666 Remove gtk_style_ref/unref with g_object_ref/unref.
4668 * gtk/gtkcalendar.c: Remove leftover macros accessing
4671 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
4674 * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of
4677 Tue Sep 18 13:51:35 2001 Jonathan Blandford <jrb@redhat.com>
4679 * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
4680 "can_activate" properties in favor of
4681 GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
4682 and GTK_CELL_RENDERER_MODE_EDITABLE
4684 Tue Sep 18 12:12:43 2001 Jonathan Blandford <jrb@redhat.com>
4686 * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
4687 editable widgets. This function is private, and should only be
4688 used by GtkTreeView.
4690 2001-09-18 Matt Wilson <msw@redhat.com>
4692 * docs/Makefile.am (EXTRA_DIST): don't use += before =
4694 * docs/faq/Makefile.am (EXTRA_DIST): likewise
4696 * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
4698 * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
4699 (EXTRA_HEADERS): likewise
4701 * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
4702 (EXTRA_HEADERS): likewise
4703 (EXTRA_DIST): likewise
4704 (CLEANFILES): likewise
4706 * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
4708 * tests/Makefile.am (EXTRA_DIST): likewise
4710 * Makefile.am (install-data-local): changed to use
4711 install-data-hook, which runs after install-pkgconfigDATA, so that
4712 the pkgconfigdir will have been created and populated first.
4714 Mon Sep 17 17:39:52 2001 Jonathan Blandford <jrb@redhat.com>
4716 * gtk/gtkcelleditable.[ch]: Add editable interface. This should
4717 be the last big GtkTreeView API change.
4719 * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
4720 replace with "activate" and "start_editing". Also, added a
4721 "can_activate" and "can_edit" property.
4723 * gtk/gtktreeviewcolumn.c: modify to use above.
4725 2001-09-16 Alexander Larsson <alla@lysator.liu.se>
4727 * gtk/gtkoptionmenu.c: Handle scroll wheel events.
4729 Fri Sep 14 22:31:25 2001 Matthias Clasen <matthiasc@poet.de>
4731 * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
4732 icon instead of one with ugly white background.
4734 Fri Sep 14 22:26:01 2001 Matthias Clasen <matthiasc@poet.de>
4736 * demos/gtk-demo/stock_browser.c (id_to_macro): make
4737 the uppercasing work. (#59550)
4739 2001-09-14 Jakub Steiner <jimmac@ximian.com>
4741 * gtk/stock-icons/dialog_error.png:
4742 * gtk/stock-icons/dialog_question.png: more road signs
4744 2001-09-13 Jakub Steiner <jimmac@ximian.com>
4746 * gtk/stock-icons/dialog_question.png:
4747 * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
4750 Wed Sep 12 19:01:05 2001 Jonathan Blandford <jrb@redhat.com>
4752 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
4753 signals to make them more clear. Also, change ::range_changed to
4755 * gtk/gtktreemodel.c: Adjust to interface change
4756 * gtk/gtktreemodel.h: ditto
4757 * gtk/gtktreemodelsort.c: ditto
4758 * gtk/gtktreestore.c: ditto
4759 * gtk/gtkliststore.c: ditto
4760 * gtk/gtktreeview.c: ditto
4761 * tests/testtreecolumns.c: ditto
4762 * gtk/gtkmarshal.list: Actually remove a marshaller!
4764 2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
4767 Add support for Ctrl+Up/Down arrow to move cursor to beginning
4768 of previous/next paragraph. If within a paragraph cursor moves to
4769 beginning of that paragraph.
4771 2001-09-12 Jakub Steiner <jimmac@ximian.com>
4773 * gtk/stock-icons/dialog_question.png: replacing the shaky
4774 question mark with a sans-serif one.
4775 * gtk/stock-icons/stock_top.png, stock_bottom.png,
4776 stock_first.png, stock_last.png: using the new style arrows
4777 * gtk/stock-icons/stock_font.png: simple one to replace the ugly
4779 * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
4781 * gtk/stock-icons/stock_zoom*: anti-aliased
4782 * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
4783 '-' with a '_', removed the wrong files
4785 Sat Sep 8 16:19:02 2001 Owen Taylor <otaylor@redhat.com>
4787 * gtk/gtkmain.c: Implement a search path for GTK+ modules.
4789 * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
4790 in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
4791 than in gtk-2.0/major.minor.micro/<type>/. This
4792 works better for a search path for modules.
4794 * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
4795 gtk_binary_version variable holding major.minor.(micro-binary_age).
4797 * modules/input/Makefile.am (moduledir): Fix installation
4798 directory to match change in lookup location.
4800 * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll
4801 suffixes. Needs to be handled in g_module_build_path().
4803 * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
4806 Tue Sep 11 13:59:12 2001 Owen Taylor <otaylor@redhat.com>
4808 * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
4809 causing RC properties not to work.
4811 2001-09-11 Jakub Steiner <jimmac@ximian.com>
4813 * gtk/stock-icons/dialog-error.png: less drastic
4814 * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
4815 "STOP" is international enough.
4816 * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
4817 * gtk/stock-icons/stock_menu_properties.png: 16x16 version
4819 Mon Sep 10 21:26:24 2001 Joshua N Pritikin <vishnu@pobox.com>
4821 * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
4822 (add|remove)_selection_clipboard symmetric. (bug #59836)
4824 * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree):
4825 Avoid SEGV for empty tree. (bug #60243)
4827 Mon Sep 10 20:47:22 2001 Tim Janik <timj@gtk.org>
4829 * tests/testgtk.c (create_idle_test): slight fix for
4830 g_object_set() not usable for nesting anymore.
4832 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
4833 * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
4834 properties, supply ::shadow_type properties instead as most
4837 2001-09-10 Alex Larsson <alexl@redhat.com>
4839 * demos/gtk-demo/stock_browser.c:
4844 * gdk/gdkrectangle.c:
4845 * gtk/gtktypeutils.c:
4846 Update to use the new g_boxed_type_register_static API.
4848 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
4850 * gtk/gtktreestore.c:
4851 Fix looping in gtk_tree_store_init() waiting for zero random int.
4853 Mon Sep 10 16:55:49 2001 Tim Janik <timj@gtk.org>
4855 * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
4856 behaviour which havoc broke. they have to default to 1.0 for
4859 * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
4861 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
4863 * gtk/gtkstyle.c (_gtk_style_peek_property_value)
4864 Amend previous change to avoid runtime error in g_param_spec_ref()
4866 Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
4868 * gtk/gtkrc.c (insert_rc_property): Fix blank line
4871 Mon Sep 10 06:50:39 2001 Owen Taylor <otaylor@redhat.com>
4873 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
4874 do a lookup immediately after creating style->property_cache,
4875 since bsearch crashes on zero length for Solaris.
4876 (Found by Padraig O'Briain.)
4878 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
4880 * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
4881 Really return NULL if not set.
4882 (gtk_widget_init): Remove unused varaible.
4884 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
4887 Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
4890 2001-09-08 Havoc Pennington <hp@pobox.com>
4892 * gtk/gtkaccelgroup.c: add docs to functions that I can imagine
4893 people might want to use
4895 2001-09-08 Havoc Pennington <hp@pobox.com>
4897 * gtk/gtkalignment.c (gtk_alignment_class_init): default
4898 xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
4900 * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
4902 * gtk/gtktextiter.c: fix docs
4903 (gtk_text_iter_spew): get rid of this
4905 * gtk/gtklayout.c: docs
4907 * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
4908 to center image and label together, instead of having image on
4909 left and label centered, patch/suggestion from Jacob
4911 * gtk/gtkdialog.c: docs
4913 Sat Sep 8 14:19:49 2001 Jonathan Blandford <jrb@redhat.com>
4915 * gtk/gtkliststore.c: Write documentation
4916 * gtk/gtktreestore.c: Write documentation
4918 Sat Sep 8 13:53:09 2001 Owen Taylor <otaylor@redhat.com>
4920 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
4921 with GArray and bsearch(), to remove dependency on a still
4922 evolving interface that we want to keep private to glib/gobject.
4924 2001-09-08 Havoc Pennington <hp@pobox.com>
4926 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
4929 * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
4931 * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
4933 * gtk/gtksocket.c (gtk_socket_steal): docs fixes
4935 * gtk/gtkscrolledwindow.h: docs fixes
4937 * gtk/gtkimage.c (gtk_image_new): docs fixes
4939 Sat Sep 8 01:49:22 2001 Owen Taylor <otaylor@redhat.com>
4941 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a
4942 false alarm constness warning with a cast.
4944 * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
4945 for the inside-gdk case.
4947 Sat Sep 8 01:44:18 2001 Jonathan Blandford <jrb@redhat.com>
4949 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
4952 * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
4953 change models, #59899
4955 2001-09-07 Havoc Pennington <hp@pobox.com>
4957 * gtk/gtkmain.c: move some docs inline
4959 2001-09-07 Havoc Pennington <hp@pobox.com>
4961 * gtk/gtk.h: tsk tsk, jrb broke the build
4963 Fri Sep 7 20:45:29 2001 Jonathan Blandford <jrb@redhat.com>
4965 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
4966 Removed 'fill' attribute. It was silly b/c that was a property of
4967 the cell renderer, anyway.
4968 (gtk_tree_view_column_render): Actually render the packed
4970 * doc/tree-column-sizing.txt: initial devel documentation.
4971 * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
4972 * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
4974 * tests/testtreefocus.c: fix up to reflect above changes.
4975 * tests/testtreeview.c: ditto
4976 * demos/gtk-demo/stock_browser.c: ditto
4978 2001-09-07 Alex Larsson <alexl@redhat.com>
4980 * gdk/linux-fb/gdkcolor-fb.c:
4981 Removed unused function.
4983 * gdk/linux-fb/gdkdrawable-fb2.c
4984 * gdk/linux-fb/gdkfont-fb.c:
4985 Use PangoLanguage functions.
4987 * gdk/linux-fb/gdkinput.c:
4988 * gdk/linux-fb/gdkselection-fb.c:
4991 * gdk/linux-fb/gdkwindow-fb.c:
4992 Fix warning. Implement gdk_window_set_icon_list() and
4993 gdk_window_get_frame_extents(). (No icon support yet though.)
4995 * gtk/gtkwindow.c (gtk_window_get_position):
4996 If window->frame is set get the extents of it instead.
4998 Fri Sep 7 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
5000 * gtk/gtkwidget.c (gtk_widget_get_default_colormap):
5001 Make the default default colormap the GdkRGB colormap,
5002 not the system colormap.
5004 * gtk/gtkinvisible.c (gtk_invisible_init)
5005 gtk/gtkwindow.c (gtk_window_init): Set the current
5006 colormap, as returned by _gtk_widget_peek_colormap()
5009 * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
5010 to GTK+. Make it return %NULL instead of the default
5011 colormap if no colormap has explicitely been pushed.
5013 * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
5014 colormaps on ancestral widgets before defaulting the
5015 the system default colormap.
5017 * docs/Changes-2.0.txt: explain colormap changes.
5019 2001-09-07 Havoc Pennington <hp@redhat.com>
5021 * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes
5024 Fri Sep 7 18:17:47 2001 Owen Taylor <otaylor@redhat.com>
5026 * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm,
5027 make gdk_set_use_xshm a noop. Remove --no-xshm command line
5028 option. If we aren't autodetecting properly, we need
5029 to fix the problem, or at least make it an environment
5030 variable setting, to avoid problems with propagating
5031 to embedded children, plugins, etc.
5033 * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
5035 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
5036 (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
5037 New function to render a pixmap and mask for a particular colormap.
5039 * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
5040 gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
5041 of internal implementation of the same.
5043 2001-09-07 Havoc Pennington <hp@redhat.com>
5045 * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
5046 debug code that seems to have caused a breakpoint in valid cases
5048 * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
5049 pointer on the first view when adding the second view, fixes
5050 crash when closing gtk-demo text test with active selection
5052 * gtk/gtktextbuffer.c
5053 (gtk_text_buffer_remove_selection_clipboard): don't leave dead
5054 clipboards in the list of clipboards - probably fixes #59836
5056 Fri Sep 7 11:51:44 2001 Owen Taylor <otaylor@redhat.com>
5058 Make gdkx.h the only installed header from gdk/x11.
5059 All structures in gdk/x11 are opaque.
5061 * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
5062 Don't install gdk{drawable,pixmap,window}-x11.h.
5064 * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
5065 Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
5066 GdkVisualClass into C files.
5068 * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
5070 * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
5071 gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
5072 Add public functions to replace previously exported direct
5074 gdk_x11_colormap_get_{xdisplay,xcolormap}
5075 gdk_x11_cursor_get_{xdisplay,xcursor},
5076 gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
5077 gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
5078 gdk_x11_gc_get_{xdisplay,ximage}
5080 * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
5081 GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
5083 Fix a number of variables and functions that were exported
5084 "accidentally" from GDK.
5086 * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
5087 gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit,
5088 gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
5089 gdk_event_notify, gdk_queued_events, gdk_queued_tail,
5090 gdk_event_new, gdk_events_queue, gdk_events_unqueue,
5091 gdk_event_queue_find_first, gdk_event_queue_remove_link,
5092 gdk_event_queue_append, gdk_event_button_generate,
5093 gdk_debug_flags, gdk_default_filters, gdk_parent_root.
5095 * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c,
5096 gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
5097 gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks,
5098 gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
5099 gdk_use_xshm, gdk_input_ignore_core.
5101 * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
5102 #defines to namespace functions into the private _gdk_
5105 * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
5106 to replace gdk_parent_root exported variable. Adjust and
5107 deprecate GDK_ROOT_PARENT().
5109 * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
5110 GDK_ROOT_PARENT usage, remove includes of port-specific
5113 * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for
5114 _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core,
5115 gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
5117 * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
5118 docs/Changes-2.0.txt: Remove gdk_wm_protocols,
5119 gdk_wm_delete_window functions, gdk_wm_take_focus,
5120 use gdk_atom_intern() instead.
5122 * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
5123 gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h}
5124 gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
5126 Unexport gdk_selection_property, just use
5127 gdk_atom_intern ("GDK_SELECTION").
5129 * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}:
5130 Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type,
5131 GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate,
5132 GdkVisualprivate, gdk_x11_gc_flush.
5134 Make a number of public exports of variables into functions
5135 to increase encapsulation.
5137 * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h
5138 gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer,
5139 move to gdkinternals.h. Add gdk_device_get_core_pointer ().
5141 * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
5142 docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code,
5145 * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
5146 docs/Changes-2.0.txt:
5147 s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
5148 s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
5149 Add gdk_x11_get_default_xdisplay().
5151 * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c
5152 win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c
5153 gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class,
5154 Don't export gdk_progclass, move --class command line
5155 option and handling to common portion of GDK.
5157 Miscellaneous fixes:
5159 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
5160 g_return_val_if_fail that should have been g_return_if_fail.
5162 * gdk/gdkinternals.h gdk/gdkprivate.h: Move
5163 gdk_synthesize_window_state() to the semi-public gdkprivate.h.
5165 * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
5168 * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO:
5169 Remove unused gdk_key_repeat_disable/restore.
5171 * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c
5172 x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
5173 Remove unused gdk_null_window_warnings variable.
5175 * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
5176 it can be retrieved from the repository; it is too far
5177 from functional to be worth having people check out;
5178 it would be easier to start from scratch, I suspect.
5180 * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
5182 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
5183 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
5184 Fix some accidentally global variables and unused global variables.
5186 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
5187 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
5188 Fix some accidentally global variables and unused global variables.
5190 Add some space for future expansion to multihead.
5192 * gdk/gdkdrawable.h: Add four reserved function pointers
5193 for future expansion of GdkDrawableClass.
5195 * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
5196 where we can put a GdkScreen * later.
5198 2001-09-07 Havoc Pennington <hp@redhat.com>
5200 * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
5201 adjustments after validating destination yrange; fixes #53918
5202 (This may cause other issues, but I hope it won't)
5204 2001-09-05 Havoc Pennington <hp@redhat.com>
5206 * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
5207 line into start line, update the character counts in parent nodes;
5208 caused a bug when end and start line had different parent nodes.
5210 2001-08-30 Havoc Pennington <hp@redhat.com>
5212 * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
5213 assertion that tag is in a table
5215 Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
5217 * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
5218 g_strcasecmp on NULL strings. (#59058)
5220 2001-09-06 Alex Larsson <alexl@redhat.com>
5224 * gtk/gtkspinbutton.c:
5225 * gtk/gtktipsquery.c:
5226 Use GtkType/GType instead of uint.
5228 Tue Sep 4 18:13:43 2001 Jonathan Blandford <jrb@redhat.com>
5230 * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
5233 * gtk/gtktreestore.c (gtk_list_store_init): ditto
5235 * gtk/gtktreesortable.c: add docs.
5237 Tue Sep 4 09:37:19 2001 Owen Taylor <otaylor@redhat.com>
5241 * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove
5244 * modules/input/Makefile.am (install-data-local): Don't
5245 run gtk-query-immodules if DESTDIR is set.
5247 * NEWS: Various additions.
5249 Tue Sep 4 03:12:25 2001 Tim Janik <timj@gtk.org>
5251 * NEWS: updates for 1.3.7 release.
5253 Mon Sep 3 18:03:56 2001 Jonathan Blandford <jrb@redhat.com>
5255 * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
5256 handle default sort feature
5258 * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
5259 new function to handle default sort.
5260 (gtk_tree_sortable_has_default_sort_func): check if default sort
5263 * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func):
5264 handle default sort feature
5266 Sun Sep 2 20:32:36 2001 Jonathan Blandford <jrb@redhat.com>
5268 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
5269 vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
5272 Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
5274 * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
5275 vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
5278 * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
5281 Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
5283 * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
5284 so that we don't eternally update the keymap after we
5285 get a change notification.
5287 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
5290 Sun Sep 2 23:27:16 2001 Kristian Rietveld <kristian@planet.nl>
5292 * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
5293 it working. It mostly works now, although there're still a few issues
5296 * tests/testtreesort.c (main): changes to have a better test
5297 application for the GtkTreeModelSort.
5299 Sun Sep 2 23:19:07 2001 Kristian Rietveld <kristian@planet.nl>
5301 * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
5304 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
5305 gpointer search_data argument to function definition and
5306 prototype, to match GtkTreeViewSearchEqualFunc typedef.
5308 Sat Sep 1 21:57:27 2001 Kristian Rietveld <kristian@planet.nl>
5310 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
5313 Fri Aug 31 20:01:23 2001 Jonathan Blandford <jrb@redhat.com>
5315 * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
5317 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
5319 Wed Aug 29 20:40:58 2001 Owen Taylor <otaylor@redhat.com>
5321 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard):
5322 Instead of always mirroring the selection to a single PRIMARY
5323 selection, allow it to be mirrored to any number of clipboards.
5325 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove,
5326 just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
5328 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
5329 GtkClipboard argument, and for paste_clipboard, the
5330 @override_location argument from @paste_primary.
5332 * gtk/gtktextview.c: Adapt to above change.
5334 2001-08-30 Havoc Pennington <hp@redhat.com>
5336 * gtk/gtktextview.c (invalidated_handler): put validate idle at
5337 resize - 2 just for flexibility
5339 2001-08-30 Havoc Pennington <hp@redhat.com>
5341 * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
5342 object from the empty-child-anchor case by drawing a little box.
5344 * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
5345 if the child anchor has no anchored widgets - fixes #59328.
5347 Also, remove bizarre deletion of preedit string that seems to have
5348 gotten in here somehow.
5350 2001-08-30 Havoc Pennington <hp@redhat.com>
5352 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
5353 to #58420 from Hidetoshi Tajima and Matthias Clasen
5355 Wed Aug 29 17:28:04 2001 Jonathan Blandford <jrb@redhat.com>
5357 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5358 change color when the GtkTreeView loses focus.
5360 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
5363 * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
5365 2001-08-28 Havoc Pennington <hp@pobox.com>
5367 * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
5369 2001-08-28 Havoc Pennington <hp@pobox.com>
5371 * demos/gtk-demo/main.c (setup_default_icon): add default icon
5373 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
5375 (gtk_radio_button_new_with_label): warning fix
5377 * gtk/gtkdnd.c: used some random GtkImage private structs,
5378 update to reflect GtkImage changes
5380 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
5381 whether the hint is supported, just always set the icon. A task
5382 list might want to use it even if the WM doesn't, and the WM may
5383 change over time. Also, XDeleteProperty() if list == NULL.
5385 * gtk/gtkwindow.c (gtk_window_set_icon_list)
5386 (gtk_window_get_icon_list)
5387 (gtk_window_set_icon)
5388 (gtk_window_get_icon)
5389 (gtk_window_set_default_icon_list)
5390 (gtk_window_get_default_icon_list):
5393 * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
5395 * gtk/gtkimage.c: Implement property support, bug #59408
5397 * gtk/gtkcontainer.c (gtk_container_add): make the warning message
5398 on reparent-without-removing-first a bit more helpful.
5399 Let's just destroy this FAQ.
5401 Tue Aug 28 21:37:11 2001 Matthias Clasen <matthiasc@poet.de>
5403 * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
5404 instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
5406 Tue Aug 28 21:00:44 2001 Matthias Clasen <matthiasc@poet.de>
5408 * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
5409 of use_text_format to the end of the function. (#56447)
5411 Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
5413 * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
5414 only in response to an area_prepared signal.
5416 2001-08-28 Alex Larsson <alexl@redhat.com>
5418 * gtk/gtkwidget.c (gtk_widget_class_init):
5419 Make unrealize GTK_RUN_LAST.
5421 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
5423 * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
5424 with_label and with_mnemonic should create radio buttons, not
5427 Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
5429 * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
5430 * tests/treestoretest.c (make_window): ditto
5431 * demos/gtk-demo/main.c (create_tree): ditto
5432 * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
5434 Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
5436 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
5437 GTK selection types rather than GtkTreeSelectionMode.
5439 * docs/Changes-2.0: Add comment about selection change.
5441 Mon Aug 27 14:21:30 2001 Jonathan Blandford <jrb@redhat.com>
5443 * gtk/gtkenums.h (GtkSelectionMode): deprecate
5444 GTK_SELECTION_EXTENDED.
5446 * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
5447 Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
5449 * gtk/gtkctree.c: ditto
5451 * gtk/gtklist.c: ditto
5453 * gtk/gtktree.c: ditto
5455 Mon Aug 27 14:18:12 2001 Owen Taylor <otaylor@redhat.com>
5457 * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
5458 of typos in compat macros. (#59624, Skip Montaro)
5460 Sun Aug 26 20:00:00 2001 Owen Taylor <otaylor@redhat.com>
5462 * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
5465 (patch from ERDI Gergo <cactus@cactus.rulez.org>, #58920)
5467 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
5468 interface to be a standard setter from gtk_menu_item_right_justify.
5469 (gtk_menu_item_get_right_justified): a getter to go with the setter
5471 * gtk/gtkmenuitem.h: Add a deprecated compat macro for
5472 gtk_menu_item_right_justify.
5474 * demos/gtk-demo/menus.c tests/testgtk.c: Switch to
5475 gtk_menu_item_set_right_justified.
5477 2001-08-27 Jens Finke <jens@gnome.org>
5479 * gtk+.spec.in: Updated to match gpp requirements, reworked the
5480 files section to make it work with 1.3.x releases.
5482 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
5484 * gtk/gtkbutton.[ch]:
5485 Add properties for labels, mnemonics and stock items.
5486 Added C accessor functions for the properties.
5487 Removed deprecated button->child.
5489 * gtk/gtkradiobutton.c:
5490 * gtk/gtktogglebutton.c:
5491 Update to use the functions in GtkButton.
5493 * gtk/gtkcheckbutton.c:
5494 Update to use the functions in GtkButton.
5495 Changed size allocation of child. Now only gets as much
5496 space as it requests.
5499 Don't use GtkButton->child
5504 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
5507 * tests/Makefile.am:
5508 Ressurect the properties test.
5509 I don't care if it is inferior, I just want to test my property code.
5511 2001-08-25 Chema Celorio <chema@celorio.com>
5513 * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
5514 gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
5515 and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
5517 2001-08-24 Havoc Pennington <hp@pobox.com>
5519 * gtk/gtkcompat.h: remove gtk_menu_* compat defines;
5520 these are already in gtkmenu.h, and the copies
5523 Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
5525 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
5526 special-case bitmaps to allow no colormap
5527 (bitmap1): implement no-colormap bitmap-getting
5528 (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
5531 (rgb1a, rgb1): change the way we read the data out of the image,
5532 old way didn't seem to work quite right.
5534 I'm pretty sure a lot of the rgbconvert code is still broken.
5536 * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
5537 above position constraint (I really intended to do this before,
5538 don't know what's up with that)
5539 (gtk_XParseGeometry): shut up gcc
5541 * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
5542 and "0" should have been. remove the attempted 4-bytes-at-once
5543 optimization, it was totally broken.
5545 Sat Aug 25 19:02:39 2001 Owen Taylor <otaylor@redhat.com>
5547 * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
5548 on push to buttons (based on patch from Soeren Sandmann, #54720)
5550 - Add child_displacement_x/y style properties to control how far the
5551 child moves when the button is depressed.
5553 - Add non-exported function _gtk_button_set_depressed to clean
5554 up the handling of the in/out shadow and separate it frmo
5557 - Lots of code cleanup and simplification of state handling
5558 for GtkButton/GtkToggleButton.
5560 * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
5561 of button movement. testgtk + testgtkrc == test ugly GTK+, as always.
5563 Fri Aug 24 23:09:05 2001 Owen Taylor <otaylor@redhat.com>
5565 * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility
5566 and make gtk_image_new() take no arguments. The compiler will
5567 catch it, and it is vastly more useful than having
5568 gtk_image_new() be a deprecated alias for gtk_image_new_from_image().
5570 * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
5571 to add tearoff-title property (#51319, Lee Mallabone)
5573 Fri Aug 24 22:12:32 2001 Owen Taylor <otaylor@redhat.com>
5575 * gtk/gtkmenuitem.[ch]: Remove unused and useless function
5576 gtk_menu_item_configure(). (#58925)
5578 Fri Aug 24 16:03:45 2001 Jonathan Blandford <jrb@redhat.com>
5580 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
5581 "use_align" to give people the option to just make a cell visible.
5583 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
5584 we were scrolling past the end of the tree.
5586 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
5587 rename gtk_tree_view_column_pack_start_cell_renderer to
5588 gtk_tree_view_column_pack_start. Same for pack_end, and clear.
5590 Fri Aug 24 12:02:08 2001 Owen Taylor <otaylor@redhat.com>
5592 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
5593 a stray g_object_ref() left over from gtk_object_ref/sink.
5594 (Pointed out by Josh Pritikin.)
5596 Thu Aug 23 19:33:54 2001 Owen Taylor <otaylor@redhat.com>
5598 * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
5599 to gtk_container_get_children. Added deprecated compatibility
5600 macro. (Suggested by Vitaly Tishkov, #59051)
5602 * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
5605 Thu Aug 23 19:10:01 2001 Owen Taylor <otaylor@redhat.com>
5607 * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate
5608 gtk_menu_bar_append/prepend/insert, forgot to do this
5609 when we deprecated gtk_menu_append/prepend/insert.
5611 * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
5614 * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
5615 renamed by compat macro.
5617 * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
5618 gtk_font_selection_dialog_get_font(). (Suggested by
5619 Vitaly Tishkov, #59383)
5621 Thu Aug 23 18:23:31 2001 Owen Taylor <otaylor@redhat.com>
5623 * gtk/gtktexttag.c (gtk_text_tag_table_get_size):
5624 Rename from gtk_text_tag_table_size(). (#59366)
5626 Thu Aug 23 20:01:41 2001 Kristian Rietveld <kristian@planet.nl>
5628 * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
5629 gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
5630 gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
5633 Thu Aug 23 16:26:47 2001 Tim Janik <timj@gtk.org>
5635 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize):
5636 * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
5637 handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
5639 Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com>
5641 [ Patch from Sebastian Wilhelmi, 52790 ]
5643 * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
5645 * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
5646 Move compatibility macros from g[dt]kcompat.h to within
5647 #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
5649 * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
5651 * demos/Makefile.am demos/gtk-demo/Makefile.am
5652 docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
5653 tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
5655 * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
5656 testpixbuf.c}: Fix usages of deprecated functions.
5658 Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
5660 * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
5661 when changing models.
5663 Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
5665 * gtk/gtktreeview.c: Fix selection. I think it's all dandy now.
5666 We check the current event for modifiers rather than try to trap
5669 2001-08-22 Anders Carlsson <andersca@gnu.org>
5671 * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
5672 It's LIST_STORE, not LISTSTORE.
5674 Tue Aug 21 12:43:29 2001 Owen Taylor <otaylor@redhat.com>
5676 * gtk/gtk.h: Remove commented out gtkpacker reference.
5678 2001-08-21 Matthias Clasen <matthiasc@waldgeist.poet.de>
5680 * configure.in (all_loaders): Add tga loader,
5681 patch by Nicola Girardi. (#56067)
5683 Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>
5685 * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
5686 a little. More needs to be done tomorrow.
5688 Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
5690 * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
5692 Mon Aug 20 23:48:18 2001 Jonathan Blandford <jrb@redhat.com>
5694 * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
5695 reported by Kristian Rietveld <kristian@planet.nl> to handle row
5697 (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
5698 <kristian@planet.nl> to change destroy order.
5700 Mon Aug 20 11:39:44 2001 Jonathan Blandford <jrb@redhat.com>
5702 * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
5705 Sun Aug 19 03:22:59 2001 Jonathan Blandford <jrb@redhat.com>
5707 * gtk/gtkliststore.c: Fix up warnings, #58928.
5709 * gtk/gtktreeselection.h: Change signal prototype, #58647
5711 * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
5714 * gtk/gtkstyle.c: Actually prelight arrow, #50981
5716 2001-08-18 Hans Breuer <hans@breuer.org>
5718 * gdk/gdk.def : updated externals
5720 * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
5721 is required to get (at least) visible in entry fields. Some selections
5722 are really handled now - even on win32 - but copying via middle
5723 mouse button into a different app needs to wait ...
5725 * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
5726 mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
5728 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
5729 handling. I'm not sure if it is better now, but at least not worse
5731 * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
5732 with SetWindowPos () which allows more fine-tuning backing-store wise
5734 * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
5735 Also changed move/resize to be more like the X version.
5737 * gtk/gtk.def : updated externals
5739 2001-08-19 Sven Neumann <sven@gimp.org>
5742 * tests/testtreesort.c
5743 * tests/treestoretest.c: inserted some casts to get rid of compiler
5746 Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>
5748 * gtk/gtktreeviewcolumn.c
5749 (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
5751 * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
5752 (_gtk_tree_view_find_node): If *node is NULL,
5753 *tree should be NULL too.
5755 * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
5757 * tests/testtreecolumns.c: ditto
5758 * tests/testtreefocus.c: ditto
5759 * tests/testtreesort.c: ditto
5760 * tests/testtreeview.c: ditto
5761 * tests/treestoretest.c: ditto
5763 Sat Aug 18 04:34:31 2001 Jonathan Blandford <jrb@redhat.com>
5765 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
5766 signals; is_expander/is_expanded.
5768 * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
5771 * gtk/gtktreeview.c: set above properties.
5773 Sat Aug 18 23:01:33 2001 Owen Taylor <otaylor@redhat.com>
5775 * gtk/gtkwidget.h: Really remove set_default_style().
5777 * docs/Changes-2.0.txt: added a note about
5778 gtk_widget_push/pop/set_default_style.
5780 2001-08-18 Havoc Pennington <hp@pobox.com>
5782 * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
5783 hints_changed in addition to the other cases.
5784 (gtk_window_move_resize): include last position from configure
5785 notify in debug spew
5787 2001-08-18 James Henstridge <james@daa.com.au>
5789 * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
5790 second argument to the weak ref notify, cleaning up some uglyness.
5791 (gtk_accel_group_attach): remove and add the weak notifier when
5792 changing the accel groups slist.
5793 (gtk_accel_group_detach): same here.
5795 2001-08-17 Darin Adler <darin@bentspoon.com>
5797 * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
5798 missing parameters to utf8 functions to make it compile.
5800 Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
5802 * gtk/gtktreeprivate.h:
5803 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
5804 (gtk_tree_view_init), (gtk_tree_view_set_property),
5805 (gtk_tree_view_get_property), (gtk_tree_view_destroy),
5806 (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
5807 (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
5808 (gtk_tree_view_set_destroy_count_func),
5809 (gtk_tree_view_set_enable_search),
5810 (gtk_tree_view_get_enable_search),
5811 (gtk_tree_view_get_search_column),
5812 (gtk_tree_view_set_search_column),
5813 (gtk_tree_view_get_search_equal_func),
5814 (gtk_tree_view_set_search_equal_func),
5815 (gtk_tree_view_search_dialog_destroy),
5816 (gtk_tree_view_search_position_func),
5817 (gtk_tree_view_interactive_search),
5818 (gtk_tree_view_search_delete_event),
5819 (gtk_tree_view_search_button_press_event),
5820 (gtk_tree_view_search_key_press_event),
5821 (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
5822 (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
5823 * gtk/gtktreeview.h:
5824 Add heavily modified patch from Kristian Rietveld to handle
5825 interactive searching.
5827 Fri Aug 17 17:30:34 2001 Tim Janik <timj@gtk.org>
5829 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
5832 * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
5833 GtkMenuShell::selection_done, now that we have it, instead of
5834 ::deactivate so we're not tearing the menu apart and notify
5835 the user prematurely.
5837 Thu Aug 16 05:22:01 2001 Tim Janik <timj@gtk.org>
5839 * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
5840 window, clear window->need_default_position to avoid infinite loops.
5841 some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
5843 Wed Aug 15 12:36:55 2001 Tim Janik <timj@gtk.org>
5845 * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
5846 code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
5847 (gtk_tree_view_set_property): don't cast possible NULL objects.
5848 (gtk_tree_view_destroy): reset the model to NULL.
5850 * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
5851 parent_class handler.
5853 2001-08-17 Matthias Clasen <matthiasc@waldgeist.poet.de>
5855 * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
5857 2001-08-17 Anders Carlsson <andersca@gnu.org>
5859 * gtk/gtkstyle.c (create_expander_affine): Divide with floating
5860 point numbers so that the result will be floating point.
5862 2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
5864 * tests/testgtk.c (create_handle_box):
5865 (create_toolbar): Replace gtk_window_set_policy calls by
5866 gtk_window_set_resizable.
5868 2001-08-16 Jakub Steiner <jimmac@ximian.com>
5870 * gtk/stock-icons/dialog_info.png: new style bulb
5871 * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
5872 * gtk/stock-icons/dialog_warning.png: need a hand?
5873 * gtk/stock-icons/stock_add.png, stock_remove.png: I hope
5874 the aa border gets chopped off ok
5875 * gtk/stock-icons/stock_colorselector.png: using the new hand
5876 * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what
5877 this one is for, but the old icon was butt ugly.
5878 * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
5879 * gtk/stock-icons/stock*_insert_object.png: "
5880 * gtk/stock-icons/stock_index.png: using new hand icon
5881 * gtk/stock-icons/stock*_new.png: the document template being used
5883 * gtk/stock-icons/stock*_print*.png: new print and print preview
5885 * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert
5886 icons based on Tuomas' floppy image.
5887 * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
5888 * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
5889 * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
5890 * gtk/stock-icons/stock*_undelete.png: "
5891 * gtk/stock-icons/stock_preferences.png: I have a version with a
5892 document base if the sliders are no good.
5893 * gtk/stock-icons/stock_properties.png: properties
5896 * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas'
5897 (tigert@ximian.com) clipboard icons
5898 * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
5899 * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
5900 * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
5903 2001-08-16 Sven Neumann <sven@gimp.org>
5905 * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
5907 2001-08-15 Padraig O'Briain <padraig.obriain@sun.com>
5909 * gtk/gtkcellrenderertext.c:
5910 Avoid warning when specifying NULL for "attributes" property
5912 2001-08-15 Matthias Clasen <matthiasc@waldgeist.poet.de>
5914 * docs/debugging.txt: Add a warning about --enable-debug=no,
5915 some editorial changes.
5917 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
5919 * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h,
5920 gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update
5921 debugging info, remove unused debug flags. (#58330)
5923 Mon Aug 13 13:17:32 2001 Jonathan Blandford <jrb@redhat.com>
5925 * gtk/gtktreeselection.c (gtk_tree_selection_select_all):
5926 (gtk_tree_selection_select_all): Remove strict checking for rows.
5928 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
5930 * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips):
5931 Don't remove the tooltip window when the tip text changes. (#15891)
5933 Sun Aug 12 12:02:09 2001 Owen Taylor <otaylor@redhat.com>
5935 * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
5938 Sun Aug 12 10:39:12 2001 Owen Taylor <otaylor@redhat.com>
5940 * Makefile.am (EXTRA_DIST): Fix problem with trying to
5941 dist files from intl/, which is no longer there.
5943 2001-08-11 Hans Breuer <hans@breuer.org>
5945 * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
5946 gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c,
5947 gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c,
5948 gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c,
5949 gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
5950 gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
5952 * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
5953 gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
5954 GDK_TYPE_EVENT signals
5956 * gtk/gtkalignment.c : removed 'direct allocation bug',
5957 which Tim discovered while reading the patch
5959 Sat Aug 11 14:32:14 2001 Owen Taylor <otaylor@redhat.com>
5961 * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
5962 compat macros for push/pop/set_visual that were supposed
5963 to be added a long time ago, but got dropped.
5965 Fri Aug 10 16:55:53 2001 Tim Janik <timj@gtk.org>
5967 * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
5970 2001-08-07 Havoc Pennington <hp@pobox.com>
5972 * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
5974 * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
5975 some fixage is needed here, but nothing simple. Owen understands
5978 * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
5979 sizing and positioning. Also, fix bug in compute_geometry_hints
5980 (width/height confusion for setting min size).
5981 (gtk_window_move): new function
5982 (gtk_window_resize): new function
5983 (gtk_window_get_size): new function
5984 (gtk_window_get_position): new function
5985 (gtk_window_parse_geometry): new function
5987 * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
5988 (gtk_widget_get_size_request): new function
5989 (gtk_widget_get_usize): delete, that was a short-lived function
5991 (gtk_widget_set_usize): deprecate
5992 (gtk_widget_set_uposition): deprecate, make it a trivial
5993 gtk_window_move() wrapper
5994 (gtk_widget_class_init): remove x/y/width/height properties,
5995 add width_request height_request
5997 * demos/*: update to avoid deprecated functions
5999 * gtk/gtklayout.c: add x/y child properties
6001 * gtk/gtkfixed.c: add x/y child properties, and get rid of
6004 * tests/testgtk.c (create_window_sizing): lots of tweaks to window
6007 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
6008 configure events on toplevel windows are always in root window
6009 coordinates, following ICCCM spec that all synthetic events
6010 are in root window coords already, while real events are
6011 in parent window coords. Previously the code assumed that
6012 coords of 0,0 were parent window coords, which was
6015 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
6018 * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
6019 and GDK_HINT_USER_SIZE so we can set USSize and USPosition
6020 hints in gtk_window_parse_geometry()
6022 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
6023 new USER_POS USER_SIZE hints
6025 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6027 * tests/prop-editor.c (properties_from_type): Use
6028 g_object_class_list_properties to get the param specs
6029 for a given type. (#58609)
6031 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6033 * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
6034 free the text_aa parts. (#57549)
6036 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6038 * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
6039 not the foreground color. (#57621)
6041 2001-08-09 Alexander Larsson <alexl@redhat.com>
6043 * gdk/win32/gdkfont-win32.c:
6044 Update to the new pango win32 api.
6046 2001-08-08 HideToshi Tajima <tajima@eng.sun.com>
6048 * gtk/gtkclipboard.c (request_text_received_func): ask apps for
6049 COMPOUND_TEXT instead of TEXT
6050 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
6051 interpret the return value of g_string_to_compound_text()
6054 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
6056 * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
6057 fail if iter is NULL. (#58347)
6059 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
6061 * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
6062 some off-by-one issues, fixing selection of line-ends. (#50323)
6064 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
6066 * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
6067 functions in order to make mouse operation work again in the
6068 color wheel. (#58604)
6070 2001-08-07 James Henstridge <james@daa.com.au>
6072 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
6073 the accelerator when the accel object is changed. Fixes bug
6076 2001-08-06 HideToshi Tajima <tajima@eng.sun.com>
6078 * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
6079 Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
6080 (gnome bugzilla #58202)
6082 2001-08-06 Havoc Pennington <hp@pobox.com>
6084 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole
6085 GDK_IS_WINDOW() branch of this was a bit screwed up, because
6086 it was expecting a GdkWindow, not a GdkWindowImplX11.
6088 Also, we were getting the window rect in screen coords
6089 and the screen rect in window coords then intersecting
6090 them; instead, get window rect in window coords.
6092 Finally, there were codepaths that resulted in a stuck server grab
6093 (when the window was fully onscreen, or on gdk_image_new()
6094 failure); make the server ungrab thing a bit more
6097 2001-08-06 Sven Neumann <sven@gimp.org>
6099 * gdk/gdkpango.c (gdk_pango_context_destroy):
6100 check if info->colormap != NULL before unref'ing it. It might have
6101 been set to NULL using gdk_pango_context_set_colormap().
6103 Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
6105 * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
6106 Fix conversion from float to int so that we don't get
6107 skew in the int => float => int roundtrip.
6108 (#58120, reported by Vitaly Tishkov). Also fix problem
6109 where if no alpha was set, the returned alpha
6110 from (say) set_current_alpha() was returned as 1, not 65535.
6112 Sun Aug 5 09:48:08 2001 Owen Taylor <otaylor@redhat.com>
6114 * gtk/gtklist.c (gtk_list_clear_items): Fix
6115 problem with selecting a new focus child.
6117 * gtk/gtklist.c (gtk_list_clear_items): Clear
6118 list->undo/list_focus_child after unparenting
6119 child, since unparenting the child can result
6120 in list->last_focus_child being set. (#58024)
6122 * Makefile.am (SUBDIRS): Add target specific pc
6123 files to DISTCLEANFILES.
6125 * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
6126 (58327, Matthias Clasen)
6128 Sat Aug 4 19:28:21 2001 Owen Taylor <otaylor@redhat.com>
6130 * tests/testgtk.c: Patch from Hans (with various modifications),
6131 to add the ability to use testgtk as a rough-and-ready
6132 benchmark. Try, 'testgtk --bench all:5' (if you want decent
6133 numbers, run without a window manager)
6135 2001-08-04 Alexander Larsson <alexl@redhat.com>
6137 * gdk/win32/gdkinput.c:
6138 Add #ifdef HAVE_WINTAB around wintab.h include.
6141 Removed marshals that have been moved to glib.
6142 Commented out plug and socket. They didn't compile for me
6145 2001-08-04 Hans Breuer <hans@breuer.org>
6147 * gtk/stocks-icons/makefile.msc : new file
6148 * gtk/makefile.msc.in : use it
6150 * gtk/gtkstyle.c : not all platforms do provide M_PI and
6151 friends, but luckily there is G_PI
6153 * gtk/gtk.def : updated
6155 * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP
6156 windows WS_POPUP, but only those without a parent. This fixes the
6157 mis-alignment between the selectable (temp, input only) window and
6158 the window text of GtkLabel.
6160 (gdk_window_show) : respect private->state when actually showing
6163 (gdk_window_set_transient_for) : Implementation from Wolfgang
6164 Sourdeau <wolfgang@contre.com> ported to 2.0 and added some
6165 error handling. Should fix #50586.
6167 * gdk/win32/gdkevents-win32.c : beautify log output
6169 2001-08-04 Michael Natterer <mitch@gimp.org>
6171 * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
6172 Need to show the image after adding it to the GtkImageMenuItem.
6173 This used to work without in testgtk because of the
6174 gtk_widget_show_all() at the end of the function.
6177 Tue Jul 31 22:59:33 2001 Tim Janik <timj@gtk.org>
6179 * gtk/gtknotebook.c (gtk_notebook_get_child_property):
6180 (gtk_notebook_set_child_property): fix finding of child's page,
6181 since we have to validly deal with labels and menus here as well.
6182 (gtk_notebook_get_child_property): fix warning.
6183 (gtk_notebook_class_init): property tab_pack is of type
6184 GTK_TYPE_PACK_TYPE (enum) not boolean.
6185 (gtk_notebook_find_child): don't always warn, we might be looking
6186 for a label or menu child.
6187 (gtk_notebook_map): fix mapping of panel.
6189 * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
6190 widget's mapped state, regardless of the value being set equals
6191 old settings, since things like REALIZED(parent) or MAPPED(parent)
6192 may have changed since the old value was set. make it an error to
6193 invoke this function on a toplevel widget.
6195 2001-07-31 Darin Adler <darin@bentspoon.com>
6199 Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
6201 * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
6204 Tue Jul 31 15:34:57 2001 Jonathan Blandford <jrb@redhat.com>
6206 * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops. Stupid
6207 scoping error pointed out by matthiasc@poet.de.
6209 2001-07-31 Sven Neumann <sven@gimp.org>
6211 * demos/gtk-demo/appwindow.c
6212 * demos/gtk-demo/item_factory.c
6213 * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
6215 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
6217 * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
6218 argument order for g_signal_has_handler_pending.
6220 Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
6222 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
6223 instead of long deprecated g_scanner_stat_mode().
6225 2001-07-29 Hans Breuer <hans@breuer.org>
6227 * gdk/makefile.msc : build in the backend dir after
6228 auto-generating files
6230 * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
6231 with code from win32-production-branch.
6233 * gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
6234 before calling DestroyWindow, which indirectly calls
6235 gdk_window_destroy_notify ()
6237 (performance patch merged from win32-production-branch)
6238 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments):
6239 Use PatBlt() instead of LineTo() when possible (solid single-pixel pen,
6240 R2_COPYPEN rop). It is claimed to be much faster.
6242 Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
6244 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
6245 add an "attributes" property to the text renderer for ATK.
6247 2001-07-26 Alex Larsson <alexl@redhat.com>
6249 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6250 Initialize image->bits_per_pixel from the drawable, not from
6253 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
6254 Fix cast. argument is an IMPL already.
6256 2001-07-15 James Henstridge <james@daa.com.au>
6258 * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
6259 (gtk_window_remove_accel_group): same here.
6260 (gtk_window_key_press_event): same here.
6262 * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
6263 (gtk_widget_remove_accelerator): same here.
6264 (gtk_widget_remove_accelerators): same here.
6266 * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
6268 * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
6269 instead of GtkObject.
6271 * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
6274 * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
6275 pass a GObject to gtk_accel_group_entries_from_object.
6276 (gtk_item_factory_create_item): s/accel_widget/accel_object/
6278 * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
6280 * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
6282 * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
6283 GObjects can have accelerators set now. Add compatibility
6286 * gtk/gtkmarshal.list: add missing marshallers.
6288 * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
6289 accelerators on plain GObjects. gtk_accel_group_object_destroy
6290 has been converted into a weak reference, and
6291 gtk_accel_group_delete_entries is now a destroy notify for that
6294 2001-07-23 Ron Steinke <rsteinke@w-link.net>
6296 * gdk/gdkdraw.c: Added a check on the colormap depth to
6297 gdk_drawable_set_colormap()
6298 * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
6299 patch to fix colorsel and my patch to fix gdk_drawable_get_image()
6300 for pixmaps without visuals (more specifically, bitmaps)
6301 * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
6302 doesn't set a colormap with the wrong depth
6305 2001-07-22 Anders Carlsson <andersca@gnome.org>
6307 * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
6308 expander_height and expander_width properties with a single
6309 property, expander_size.
6310 (gtk_tree_view_init): Set the tab_offset to expander_size
6312 (gtk_tree_view_unrealize): Remove the expand/collapse
6313 timeout if it exists.
6314 (coords_are_over_arrow): Fix a small bug.
6315 (gtk_tree_view_motion_draw_column_motion_arrow): Use
6317 (gtk_tree_view_draw_focus): Use "treeview" instead of
6318 "add-mode" as detail when drawing the focus.
6319 (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
6320 instead of "add-mode" as detail when drawing the focus.
6321 (gtk_tree_view_deleted): If we have a node currently being
6322 expanded or collapsed, remove the timeout and set the node
6324 (gtk_tree_view_queue_draw_arrow): New function that just
6325 redraws the arrow of a node.
6326 (gtk_tree_view_draw_arrow): Use expander_size instead of
6327 expander_width/expander_height, also pass a different
6328 expander_style to gtk_paint_expander depending on the
6329 state of the node being drawn.
6330 (expand_collapse_timeout): New function for expanding
6331 or collapsing a node depending on the previous state.
6332 (gtk_tree_view_real_expand_row): Add timeout and set
6333 correct state for node being expanded.
6334 (gtk_tree_view_real_collapse_row): Add timeout and set
6335 correct state for node being collapsed.
6337 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
6338 information about the node currently being expanded or
6339 collapsed, and also a timeout id.
6341 * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
6342 with expander_style for draw_expander.
6344 * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
6346 (create_expander_affine): New function for creating an
6348 (apply_affine_on_point): New function for applying an
6350 (gtk_default_draw_expander): Modified to take expander_style
6351 instead of is_open, and to draw the rectangle rotated differently
6352 depending on the expander style.
6353 (gtk_paint_expander): Replace is_open with expander_style.
6355 * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
6357 * gtk/gtkenums.h: Add expander style enum.
6359 2001-07-21 Jonas Borgström <jonas@codefactory.se>
6361 * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
6362 value from gtk_tree_model_get_iter, the model might be empty.
6364 2001-07-20 Hans Breuer <hans@breuer.org>
6366 * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
6367 gdk/gdkinput.c like the other backends
6369 * gdk/win32/gdkinput-win32.h :
6370 * gdk/win32/gdkinput.c :
6371 * gdk/win32/gdkvisual-win32.c :
6372 * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
6373 GdkVisual GObjectification. UNTESTED for pen-devices because
6377 * gtk/gtk.def : updated externals
6379 * gtk/gtkiconfactory.c :
6380 * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL)
6381 before passing &error to functions to avoid strange crashes
6383 * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
6385 * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
6387 * gtk/makefile.msc.in : updated
6389 Thu Jul 19 15:35:32 2001 Owen Taylor <otaylor@redhat.com>
6391 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
6392 Add property support. (#51858)
6394 Thu Jul 19 14:56:33 2001 Owen Taylor <otaylor@redhat.com>
6396 * gtk/gtkaccellabel.c (gtk_accel_label_class_init)
6397 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
6398 Use Shift/Ctrl instead of Shft/Ctl. (#53807)
6400 Thu Jul 19 11:41:00 2001 Owen Taylor <otaylor@redhat.com>
6402 * gtk/gtkcolorsel.c: Add propery support (roughly
6403 based on patch from Lee Mallabone, #51014)
6405 * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
6406 deprecated, since we already g_warning() on it.
6408 Thu Jul 19 14:24:34 2001 Owen Taylor <otaylor@redhat.com>
6410 * gtk/gtkentry.c (gtk_entry_set_positions): Fix
6411 typo that sometimes caused selection not to work properly.
6413 * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
6414 entry when tabbing in. (#57743)
6416 * gtk/gtkentry.c (gtk_entry_motion_notify): If the
6417 user drags up above or down below the entry, move
6418 to the end or the beginning of the entry. (Suggestion
6419 from Jay Cox, #50940)
6421 * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
6422 a current selection, then when moving by chars or
6423 words, move to the end of the selection rather than
6424 from entry->current_pos. (Suggestion from Jay Cox,
6427 Thu Jul 19 12:14:28 2001 Owen Taylor <otaylor@redhat.com>
6429 * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
6430 set window->decorated. (Patch from Hidetoshi Tajima,
6433 Sat Jul 7 02:50:14 2001 Owen Taylor <otaylor@redhat.com>
6435 * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
6436 the widget/child realization/mapping invariants.
6438 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
6439 gtk_widget_[get/set]_child_visible() to control
6440 whether visible children of a mapped window are
6443 * docs/widget_system.txt: Updated for changes in
6444 container contract, and addition of GTK_CHILD_VISIBLE.
6446 * gtk/gtkcontainer.c: Add generic map()/unmap()
6447 functions that work for almost all containers.
6449 * gtk/gtknotebook.c gtk/gtkpacker.c: Use
6450 gtk_widget_set_child_visible() where necessary.
6452 * gtk/*.c: Remove excess map(), unmap(), and
6453 realization/mapping invariant enforcing code
6454 from many containers.
6456 Wed Jul 18 19:51:45 2001 Owen Taylor <otaylor@redhat.com>
6458 * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style):
6459 Get the foreground color from 'text', nor 'fg'. (#57568)
6461 Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com>
6463 * gtk/*.c: Patch from Matthias Clasen to remove remove
6464 all instances of g_return_if_fail (foo != NULL); that are
6465 immediately before a g_return_if_fail (GTK_IS_FOO (foo));
6466 since the second check catches the NULL anyways.
6468 Wed Jul 18 18:23:05 2001 Owen Taylor <otaylor@redhat.com>
6470 * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
6471 gtktreeview.c: Fix idles and timeouts to be properly surrounded by
6472 GDK_THREADS_ENTER()/LEAVE() pairs.
6474 * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
6475 to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
6476 pairs. (Problem found by M. Meeks)
6478 2001-07-18 Darin Adler <darin@bentspoon.com>
6480 * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
6481 that we don't get a g_warning message every time we register a new
6484 * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
6485 using pixel variable of the correct type.
6487 Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
6489 * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
6490 so that using X functions on a GdkWindow is possible, if
6493 * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
6494 and ts_origin of a GC, so that external parties can offset/restore
6495 a GC, when using gdk_window_get_internal_paint_info().
6497 2001-07-17 Darin Adler <darin@bentspoon.com>
6499 * .cvsignore: Ignore the sgml directory made by gtkdoc.
6500 * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
6501 instead of the deprecated gtk_window_set_policy.
6502 * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
6503 * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
6504 function to get rid of warning and some code too.
6505 * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
6507 * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
6509 * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
6511 * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
6512 (gdk_utf8_to_compound_text): Add missing const.
6513 * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
6514 * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
6515 cast and get rid of an unnecessary one.
6516 * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
6517 * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
6519 * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
6520 Remove unused local.
6521 * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
6523 * tests/testsocket.c: (add_child): Add cast so the printf format
6524 doesn't make us implicitly depend on what integer type
6525 gtk_socket_get_id returns.
6526 * tests/testtextbuffer.c: Add missing const.
6527 * tests/testtreefocus.c: (main): Remove unused local.
6528 * tests/treestoretest.c: (iter_remove): Remove unused local.
6529 (uppercase_value): Remove unused function.
6530 (make_window): Add statement to quiet the compiler's uninitialized
6533 Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
6538 (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
6539 (gtk_range_calc_layout): compute the new layout based on an
6540 adjustment->value being passed in as argument.
6541 (gtk_range_button_press): for button2 slider warps, first recalc
6542 the layout, then adjust the value. also, use update_slider_position()
6543 for adjusting the value, so we keep pixel quantisation at which we
6544 usually operate (upon motion or button releases). the reason for this
6545 is that, we can't change the adjustment upon button2 presses to a non
6546 quantised value and upon button2 release re-quantise the value since
6547 that'd alter the value even if we didn't get any motion events (causing
6548 unexpected scroll area warps upon release and/or slider pixel-jitter).
6549 (gtk_range_motion_notify): update the slider position from queried
6550 coordinates, not event coordinates.
6552 Fri Jul 13 09:47:52 2001 Tim Janik <timj@gtk.org>
6554 * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
6555 the default gc values are: width=0, CapBut, JoinMiter.
6557 2001-07-13 Anders Carlsson <andersca@codefactory.se>
6559 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
6560 into account the xpad and ypad when calculating the width and the
6561 height of the pixbuf cel.
6563 Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
6565 * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
6566 Rename to gtk_radio_menu_item_get_group(), add deprecated
6569 * gtk/gtkfilesel.c: Indentation fix.
6571 Thu Jul 12 17:33:00 2001 Owen Taylor <otaylor@redhat.com>
6573 * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias
6574 Hasselmann to fix warnings in compat macros.
6577 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix
6578 stupid wrong cast added in last patch.
6580 Thu Jul 12 16:51:34 2001 Owen Taylor <otaylor@redhat.com>
6582 * gtk/gtkwidget.c: Replace a couple of inappropriate calls to
6583 GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
6585 Thu Jul 12 14:06:19 2001 Owen Taylor <otaylor@redhat.com>
6587 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
6590 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
6591 NULL/FALSE return value confusion.
6593 * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
6594 problem when scrollbar completely fills range. (Patch
6595 from Matthias Clasen, #57047)
6597 Thu Jul 12 13:53:28 2001 Owen Taylor <otaylor@redhat.com>
6599 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
6600 clean up when handling events for move-resize emulation.
6601 (Problem traced down by Matthias Clasen, #57271)
6603 Thu Jul 12 13:43:27 2001 Owen Taylor <otaylor@redhat.com>
6605 * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
6606 gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
6607 gtk/gtkfontsel.c gtk/gtkhandlebox.c
6608 gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
6609 gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
6610 gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
6611 gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
6612 Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
6614 2001-07-09 Peter Williams <peterw@ximian.com>
6616 * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
6617 for when srcdir != builddir
6619 Mon Jul 9 12:50:51 2001 Jonathan Blandford <jrb@redhat.com>
6621 * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
6622 gtk_tree_model_get_iter_root.
6624 * gtk/gtkliststore.c: Add a bunch of g_return statements.
6625 (gtk_list_store_iter_n_children): Fix up.
6627 * gtk/gtktreestore.c: Add a bunch of g_return statements.
6629 Fri Jul 6 15:38:33 2001 Owen Taylor <otaylor@redhat.com>
6631 * gtk/gtkwidget.c (gtk_widget_class_init):
6632 G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
6633 restore some workingness.
6635 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix
6636 handle of window type for input-only windows.
6638 Thu Jul 5 21:53:46 2001 Owen Taylor <otaylor@redhat.com>
6640 * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
6641 Patch from Gregory Merchan to add
6642 gtk_button_box_set_secondary(), which separates
6643 the child into a separate group from the normal
6646 * gtk/gtkdialog.c: Make help buttons secondary by
6649 * gtk/gtkbbox.c: Added a child property "secondary".
6651 * gtk/testgtk.c: Turn on the help button for the
6652 color selector to check that it properly appears
6655 Mon Jul 2 01:09:37 2001 Owen Taylor <otaylor@redhat.com>
6657 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
6658 gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
6659 Add gdk_set_pointer_hooks() to allow pointer-querying to
6660 be hooked by an event record/playback system like GERD.
6663 Thu Jul 5 08:57:07 2001 Owen Taylor <otaylor@redhat.com>
6665 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
6666 in the right value of initial_emission to
6667 gtk_widget_set_style_internal (#57091)
6669 Wed Jul 4 23:17:04 2001 Owen Taylor <otaylor@redhat.com>
6671 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
6674 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
6675 with calling gtk_widget_set_style_internal() with
6676 the old style, not the new style. (#56989)
6678 Wed Jul 4 22:35:40 2001 Owen Taylor <otaylor@redhat.com>
6680 * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
6682 Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
6683 not GTK_WIDGET_GET_ANCESTOR ... see
6684 http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
6685 Indicate the best practice in the docs for gtk_widget_get_toplevel().
6687 * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
6688 so GtkPlug can give the correct signals when transforming
6689 from a child to a toplevel.
6691 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
6692 reparentation correctly.
6694 * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
6695 Propagate the previous_toplevel argument down properly.
6697 * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
6700 * gtk/gtkplug.[ch]: Add an "embedded" signal.
6702 * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
6705 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add
6706 functions gtk_plug_get_id(), gtk_socket_get_id(),
6707 to avoid the user having to worry about realization,
6710 * tests/testsocket.c: Extend to try out the new signals
6711 and gtk_plug/socket_get_id().
6713 * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
6714 setting of underline attributes.
6716 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
6717 DestroyNotify events from SubstructureNotifyMask
6719 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
6720 Switch GDK_WINDOW_TYPE (window) as needed.
6722 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
6723 allow creation of toplevel windows as children of
6726 * gtk/gtkplug.c: Remove hacks involving changing private
6727 fields of GdkWindow.
6729 * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make
6730 exactly the same signals and notification
6731 be emitted for local embedding as for inter-process
6734 2001-07-04 James Henstridge <james@daa.com.au>
6736 * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
6738 Mon Jul 2 16:53:25 2001 Owen Taylor <otaylor@redhat.com>
6740 * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
6741 XEMBED embedding add a _XEMBED_INFO property to the
6742 client with version number and a "mapped" flags.
6743 Use the mapped flag instead of the racy MapRequestEvent
6745 * gtk/gtksocket.c: Clean up the gtk_socket_steal()
6746 code to reliably set things (when the child is a passive
6747 embedder participating in the XEMBED protocol) intead
6748 of just being a hack for embedding non-participating
6749 programs. Fix various bugs and race conditions.
6751 * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
6752 work by simply making the GtkSocket the gtk parent
6753 of the GtkPlug. Set a flag in this case and make
6754 the GtkPlug work like a normal container by overriding
6755 methods such as check_resize and "chaining past" GtkWindow
6758 * gtk/gtkentry.c (gtk_entry_real_activate)
6759 gtk/gtkmain.c (gtk_propagate_event):
6760 Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
6762 * gtk/gtkwidget.c (gtk_widget_get_toplevel,
6763 gtk_widget_get_ancestor):
6764 Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
6765 might not give the expected result and recommend
6768 * tests/testsocket.c tests/testsocket_child.c
6769 tests/testsocket_common.c tests/Makefile.am: Extended
6770 to test different type of adding plugs to sockets
6771 (local,active,passive), and to test mapping/unmapping
6774 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
6775 mark the window as destroyed until after we
6776 called _gdk_windowing_window_destroy().
6777 (_gdk_windowing_window_destroy() may use GDK functions
6780 * gdk/x11/gdkinput.c: Remove the check for finalization -
6781 devices can be finalized under some circumnstances.
6783 * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix
6784 small problem with GDK_TYPE_DEVICE.
6786 2001-07-02 Havoc Pennington <hp@pobox.com>
6788 * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
6789 use constants not atoms.
6791 2001-07-02 James Henstridge <james@daa.com.au>
6793 * gtk/gtktextview.c (gtk_text_view_class_init): same here for
6794 PANGO_TYPE_TAB_ARRAY.
6796 * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
6797 for PANGO_TYPE_TAB_ARRAY.
6799 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
6800 s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
6802 * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
6803 the file. Remove Pango types from defs -- they are now defined in
6806 Mon Jul 2 06:35:10 2001 Tim Janik <timj@gtk.org>
6808 * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
6810 * gtk/gtkobject.c (gtk_object_destroy): invoke
6811 g_object_run_dispose().
6816 * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
6819 Sat Jun 30 20:44:48 2001 Owen Taylor <otaylor@redhat.com>
6821 * gtk/gtktypeutils.c (gtk_type_class): Remove
6822 change check for GTK_TYPE_OBJECT derivation to
6823 G_TYPE_OBJECTS - it's Tim-approved to use this
6824 for arbitary objects.
6826 * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
6827 prefix gtk_container_dequeue_resize_handler().
6829 * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
6830 to the hierarachy_changed signal, since you otherwise
6831 have to always keep that around.
6833 * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
6834 for extra argument to hierarchy_changed.
6836 Tue Jun 26 19:39:03 2001 Owen Taylor <otaylor@redhat.com>
6838 * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
6839 for style to mean "revert to default style"
6841 * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
6842 gtk_widget_restore_default_style): Make this functions
6843 deprecated aliases for gtk_widget_set_style (widget, NULL).
6845 * gtk/gtkwidget.[ch]: Remove:
6846 gtk_widget_set_default_style ()
6847 gtk_widget_push_style ()
6848 gtk_widget_pop_style ()
6849 These functions interact are overriden by RC files, and
6850 thus virtually useless, and complicated.
6852 Fri Jun 22 18:49:48 2001 Owen Taylor <otaylor@redhat.com>
6854 * gtk/gtkrc.c: Add a GtkRcContext structure to hold
6855 most of the previous global variables in gtkrc.c. This is
6856 in preparation for multi-head, since each screen can
6857 have different GtkSettings and RC information.
6861 * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
6862 GtkSettings parameter to GtkRcStyle::parse.
6864 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c:
6865 Add two new settings gtk-theme-name, gtk-key-theme-name,
6866 for RC files that are loaded by name after reading
6867 the default RC files.
6869 * gtk/gtkrc.c: Allow priorities for styles, as wll as
6872 * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
6873 and use it by default for RC files loaded via
6874 gtk-theme-name, gtk-key-theme-name.
6876 * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
6877 gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string)
6878 tests/testgtkrc: Require pathnames to be absolute.
6880 * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
6881 the source when parsing, since the operation of looking up a
6882 pixmap from an RC file depends on the parsing context.
6884 * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
6885 reset RC styles on all widgets when files are reparsed.
6887 * tests/testgtk.c (create_rc_file)
6888 gtk/gtkwindow.c (gtk_window_read_rcfiles):
6889 Simplify, now that gtk_rc_reparse_all() resets styles on
6892 * gtk/gtkmain.c (gtk_get_default_language): Fix broken
6895 * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
6896 GtkSettings argument.
6898 * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
6899 gtk_settings_get_global().
6901 * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
6902 to get the appropriate GtkSettings for a widget. (For now,
6903 just gets the default GtkSetttings.)
6905 * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
6906 gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
6909 * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
6910 getting a style for a path without actually having a widget.
6911 (Allows using a style for a subpart of a widget, for
6914 * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
6915 the RC files to be reloaded for just one GtkSettings
6916 (not sure how useful this really is.)
6918 * gtk/gtkrc.h: Deprecate
6919 gtk_rc_add_widget_name/widget_class/class_style
6921 2001-06-30 Alex Larsson <alexl@redhat.com>
6923 * gdk/linux-fb/gdkinput-none.c:
6924 * gdk/linux-fb/gdkinput.c:
6925 * gdk/linux-fb/gdkinputprivate.h:
6926 Convert GdkDevice to a GObject.
6928 * linux-fb/gdkprivate-fb.h:
6929 * linux-fb/gdkvisual-fb.c:
6930 Convert GdkVisual to a GObject.
6932 2001-06-29 Alex Larsson <alexl@redhat.com>
6937 * gdk/x11/gdkvisual-x11.c:
6938 Convert GdkVisual to a GObject.
6942 * gdk/x11/gdkinputprivate.h:
6943 * gdk/x11/gdkinput-gxi.c:
6944 * gdk/x11/gdkinput-none.c:
6945 * gdk/x11/gdkinput-x11.c:
6946 * gdk/x11/gdkinput-xfree.c:
6947 * gdk/x11/gdkinput.c:
6948 Convert GdkDevice to a GObject.
6950 Fri Jun 29 22:13:28 2001 Jonathan Blandford <jrb@redhat.com>
6952 * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
6953 to just plain new, fixing the number of columns, and column types
6956 * gtk/gtkliststore.c (gtk_list_store_new): ditto.
6958 * gtk/gtkcellrenderertext.c
6959 (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
6960 height to a specific font.
6962 * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
6964 * tests/*c: change to work with new store models.
6966 2001-06-29 Havoc Pennington <hp@redhat.com>
6968 * Throughout: fixes to compile with G_DISABLE_COMPAT
6969 (s/g_signal_connectc/g_signal_connect/,
6970 s/g_signal_newc/g_signal_new/,
6971 s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
6973 Fri Jun 29 03:14:16 2001 Jonathan Blandford <jrb@redhat.com>
6975 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
6976 add path argument to selection callbacks.
6978 Fri Jun 29 00:13:34 2001 Jonathan Blandford <jrb@redhat.com>
6980 * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
6981 walk through a model in a depth first manner, with the option to
6984 Fri Jun 8 18:52:10 2001 Jonathan Blandford <jrb@redhat.com>
6986 * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
6987 <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
6988 column and follow it when draged, rather than a location in the
6989 view. "expander_column" property and drawing functions changed
6990 accordingly. Fixes bug #55942.
6992 (gtk_tree_view_{set,get}_expander_column): Now works with a
6993 GtkTreeViewColumn* instead of int.
6995 Thu Jun 28 22:53:18 2001 Owen Taylor <otaylor@redhat.com>
6997 * gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init().
6999 2001-06-28 Havoc Pennington <hp@pobox.com>
7001 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
7002 image data to the screen, using a server grab to avoid race
7005 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
7006 check for NULL return from gtk_image_new_from_stock(), it never
7008 (gtk_item_factory_create_item): fix bug where we parsed the stock
7009 ID as an inline pixbuf
7011 * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
7013 * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
7014 support (should be using binding set here)
7016 * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
7017 support (should be using binding set here)
7019 * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
7022 * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
7024 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
7026 * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
7028 * gtk/gtkimcontextsimple.c
7029 (gtk_im_context_simple_filter_keypress): keypad
7031 * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
7033 * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
7035 * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
7037 * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
7038 should be binding-setted)
7040 * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
7042 * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
7044 * gtk/gtkcalendar.c: numeric keypad fixes
7046 * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
7049 * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
7052 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7053 clip the render area to the drawable's clip region in advance,
7054 so we don't get data from the server that we don't need.
7056 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7057 check return value of gdk_pixbuf_get_from_drawable(), fall back
7058 to bilevel alpha if we can't get the pixbuf to composite against.
7060 * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
7062 * gdk/gdkimage.c (gdk_image_get_colormap): add
7063 gdk_image_set_colormap, gdk_image_get_colormap
7065 * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
7066 take a region of the image, instead of converting the entire
7069 * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
7070 keybinding signal. Add default bindings for it. Add default
7071 handler for show_help that shows the tooltip for the widget.
7073 * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
7074 "close" keybinding signal, remove key press handler.
7076 * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
7077 it's not our usual practice to leave a deprecated function around
7078 with a runtime warning, plus we don't want it to appear in docs,
7079 plus if we make them yellow no one will want to change them
7082 Thu Jun 28 23:53:31 2001 Tim Janik <timj@gtk.org>
7084 * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
7085 GTK_WIDGET_REALIZE() for resize queueing.
7087 * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
7088 GTK_WIDGET_REALIZE() for post event delivery destruction upon
7091 * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
7092 sompensate for former (pre-2.0) connect_after() facility.
7093 (gtk_widget_send_expose):
7094 (gtk_widget_event): assert the widget is realized, since event delivery
7095 to non-realized widgets is essentially a bug. event handlers should
7096 be able to unconditionally rely on widget->window (unless they
7097 emit events on their own which can trigger widget destruction).
7098 (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
7099 logic. event delivery happens as follows:
7100 a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
7101 b) if !was_handled in (a) and the widget is still realized, emit event-
7102 specific signal (RUN_LAST handler). returns was_handled.
7103 c) emission of GtkWidget::event-after for notification if the widget is
7104 still realized (regardless of was_handled from previous stages, no
7105 class handler). no return value.
7106 d) was_handled gets passed on to caller, to determine further
7107 propagation. if the widget got unrealized meanwhile, was_handled
7108 is returned as TRUE.
7110 * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
7111 gdk_event_get_coords().
7113 Thu Jun 28 17:18:41 2001 Tim Janik <timj@gtk.org>
7115 * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
7116 age 0, binary age 0. depend on glib 1.3.7.
7118 * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
7120 * gtk/gtkmenubar.c: same here.
7122 * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
7124 * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
7126 * gtk/gtkentry.c (gtk_entry_focus_in): same here.
7128 * gtk/gtkmenubar.c (add_to_window): likewise.
7130 * gtk/gtktextbtree.c: and here...
7132 * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
7134 * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
7136 * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
7138 * gtk/gtktreeviewcolumn.c:
7139 (_gtk_tree_view_column_set_tree_view): yet again.
7141 * demos/gtk-demo/images.c (progressive_timeout): demonstrate
7142 signal connections without g_signal_connect_data().
7144 * demos/gtk-demo/stock_browser.c (do_stock_browser): second
7147 * demos/testpixbuf.c (main): running out of equality phrases for the
7148 ChangeLog, but had to adapt connections here as well.
7150 * demos/testanimation.c (progressive_timeout): and for the fun of it,
7151 tackled this the same way.
7153 * tests/testtext.c (create_view): ok, it's becoming a pain at this
7154 point, but had enough enery for one more fix.
7156 * tests/testtreecolumns.c (main): stand up man, do your work!
7158 * tests/testtreeview.c (set_columns_type): ok, this is the last file i
7159 fix, either that's been all of it or CVS gtk is broken yet again.
7161 2001-06-29 James Henstridge <james@daa.com.au>
7163 The following changes correspond to bug #56812
7165 * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
7168 * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
7171 2001-06-19 Havoc Pennington <hp@pobox.com>
7173 * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
7174 for mapping a window without fooling with stacking order, but
7175 updating the "withdrawn" flag
7177 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
7178 filtering as soon as possible, moving move resize and wmspec_check
7179 handling after the event filter. Make default filter apply to all
7180 events, not just those with no GdkWindow wrapped around the X
7181 window. Fix a FIXME about how the window could be a pixmap using
7182 RTTI; this of course assumes GDK_IS_WINDOW() is optimized.
7184 Also, be robust against events not on a known GdkWindow.
7186 * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
7187 gdk_x11_ungrab_server): export reference-counted server grabs, so
7188 other people can grab server over a GDK function that also does
7191 Wed Jun 27 19:40:31 2001 Jonathan Blandford <jrb@redhat.com>
7193 * gtk/gtktreeviewcolumn.c
7194 (gtk_tree_view_column_pack_start_cell_renderer): New function to
7195 reflect that you can (hypothetically) pack cell renderers into a
7197 (gtk_tree_view_column_pack_end_cell_renderer): ditto.
7198 (gtk_tree_view_column_cell_is_visible): Move more functionality to
7200 (gtk_tree_view_column_cell_can_focus): Move more functionality to
7203 * gtk/gtktreeview.c: Move to use new column-packing code.
7204 (gtk_tree_view_real_expand_row): remove totally braindead code.
7205 (gtk_tree_view_real_collapse_row): ditto.
7207 2001-06-27 Kjartan Maraas <kmaraas@gnome.org>
7209 * gtk/gtktreeviewcolumn.c: Fix a typo.
7211 2001-06-26 Joel Becker <jlbec@evilplan.org>
7213 * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
7214 at the end of the file
7216 2001-06-26 Havoc Pennington <hp@redhat.com>
7218 * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
7220 2001-06-26 Havoc Pennington <hp@redhat.com>
7222 * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
7225 Tue Jun 26 12:59:28 2001 Jonathan Blandford <jrb@redhat.com>
7227 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
7228 stupid missing statement
7230 * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
7231 private function for ATK. It notifies you of how many _visible_
7232 children are deleted when a node is deleted. Should be used by
7235 Tue Jun 26 11:06:34 2001 Owen Taylor <otaylor@redhat.com>
7237 * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
7238 Use new pango_context_get_metrics() to fix problems
7239 with font lists in descriptions. (#56184, reported by
7242 Tue Jun 26 10:04:30 2001 Tim Janik <timj@gtk.org>
7244 * gtk/gtkiconfactory.c:
7245 * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
7246 item factory so inlined pixbufs actually work.
7248 2001-06-25 Havoc Pennington <hp@redhat.com>
7250 * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
7251 s/RESIZEABLE/RESIZABLE/
7253 * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
7255 2001-06-25 Alexander Larsson <alexl@redhat.com>
7258 Added --enable-fbmanager. This is some experimental code
7259 that lets several GtkFB apps coordinate their access to the
7263 Added ENABLE_FB_MANAGER.
7265 * gdk/linux-fb/Makefile.am:
7266 Added gdkfbmanager and gdkfbswitch.
7268 * gdk/linux-fb/gdkkeyboard-fb.c:
7269 * gdk/linux-fb/gdkmouse-fb.c:
7270 * gdk/linux-fb/gdkprivate-fb.h:
7271 Split device init and open so that
7272 they can be opened and closed while switched
7275 * gdk/linux-fb/gdkmain-fb.c:
7276 Add the basic manager communication.
7278 * gdk/linux-fb/gdkrender-fb.c:
7279 Don't update to the shadow fb if we're
7280 blocked by the fb manager.
7282 Sun Jun 24 22:15:16 2001 Owen Taylor <otaylor@redhat.com>
7284 * docs/Changes-2.0.txt: Add note about child property
7287 Sun Jun 24 21:34:32 2001 Owen Taylor <otaylor@redhat.com>
7289 * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
7290 drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
7292 * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
7293 with un'reffing wrong list reported by Jeff Franks.
7295 * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
7297 * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
7298 for the default icon. Remove inline XPM.
7300 * gtk/gtkstock.h gtk/gtkiconfactory.c:
7301 Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
7302 is used for GTK_STOCK_DND, but it is a bit too small.)
7304 * gtk/stock-icons/stock_dnd_multiple.png
7305 gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
7307 * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
7308 TRUE when starting a drag. In other cases, we are
7309 just observing. (#52995)
7311 * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add
7312 function to set the icon for a drag from a GdkPixbuf
7315 * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}):
7316 Likewise, for drag sources.
7318 * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
7319 (Now should be done using the stock system.)
7321 Sun Jun 24 12:06:47 2001 Owen Taylor <otaylor@redhat.com>
7323 * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size):
7324 Removed - didn't work and not particularly useful anyways
7327 Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com>
7329 * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
7330 introduced last night that was making things decidedly not work.
7332 * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
7333 so that we have getter/setter pairing everywhere it makes
7336 * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
7337 Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
7338 deprecated compat macro. (#55516)
7340 * gtk/gtklabel.[ch]: Add functions
7341 gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
7342 gtk_label_set_label(), which mirror the property API for GtkLabel.
7343 Make gtk_label_get_attributes() only reflect the attributes
7344 set by gtk_label_set_attributes.
7346 * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
7347 from gtk_notebook_set_page().
7349 Sat Jun 23 18:02:46 2001 Owen Taylor <otaylor@redhat.com>
7351 * configure.in: Fix tests for XShm.h.
7353 * gdk/x11/gdkimage-x11.c: Cleanup error handling in
7354 gdk_image_new() by use of goto, properly use g_object_unref().
7356 Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
7358 * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
7359 calls, as GdkImage is an object. these should be g_obejct_unref()
7360 instead but that won't work because of the g_error() statement
7361 in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
7362 to spot these places.
7364 Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
7366 * modules/input/gtkimcontextxim.c: Fixup some problems with
7367 text length handling in error cases.
7369 * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
7370 a bit to make test actually warn on attempt to allocation
7371 a negative size. (#56101, Matthias Clasen)
7373 Fri Jun 22 14:06:08 2001 Jonathan Blandford <jrb@redhat.com>
7375 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7376 noticed by Brian Cameron.
7377 (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
7380 2001-06-22 Hans Breuer <hans@breuer.org>
7382 * gdk/gdk.def : updated externals
7384 * gdk/win32/gdkdrawable-win32.c : corrected some casts
7387 * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
7388 to translate coordinates to the internal > 16 bit system
7389 Try to handle WM_WINDOWPOSCHANGED to get better performance for
7390 when moving/resizing
7392 * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
7393 and gdk_keymap_get_direction (). The latter is untested for
7396 * gtk/gtk.def : updated externals
7398 * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
7399 from pango_language_from_string (), not an already freed pointer
7401 * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be
7402 binary (-kb) to be useable on windoze
7404 2001-06-21 Alexander Larsson <alexl@redhat.com>
7406 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
7407 Update to new PangoLanguage changes.
7409 * gtk/gtkwindow-decorate.c:
7410 * gtk/gtkwindow.[ch]:
7411 Added setting argument to gtk_window_set_has_frame ()
7413 Thu Jun 21 13:42:01 2001 Owen Taylor <otaylor@redhat.com>
7415 * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
7416 the case without XKB properly.
7418 * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
7419 unused gtk_rc_auto_parse variable.
7421 * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
7422 Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
7423 longer needed with GdkPixbuf.
7425 * gtk/gtkrc.c (_gtk_rc_init): Make private.
7427 Fri Jun 15 16:26:12 2001 Owen Taylor <otaylor@redhat.com>
7429 * gtk/gtkentry.h: Mark deprecated functions with
7430 GTK_DISABLE_DEPRECATED.
7432 Mon Jun 11 18:15:16 2001 Owen Taylor <otaylor@redhat.com>
7434 * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
7436 * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
7438 * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
7439 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
7440 gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
7441 gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
7442 to recent changes in Pango.
7444 * tests/testgtk.c: Set language tags with gtk_label_set_markup()
7445 to test whether the basic engine honors them.
7447 Thu Jun 21 02:13:40 2001 Tim Janik <timj@gtk.org>
7449 * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
7450 gtk_container_child_get_property().
7452 Wed Jun 20 19:19:15 2001 Jonathan Blandford <jrb@redhat.com>
7454 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
7455 (gtk_tree_view_move_cursor_page_up_down): implement.
7457 Wed Jun 20 05:32:05 2001 Tim Janik <timj@gtk.org>
7459 * gtk/gtkspinbutton.c: make maximum digits compile time configurable
7460 via MAX_DIGITS and up to 20. 5 was just ridiculously small.
7461 don't use automatic fixed size buffer for printf-ing floats, doubles
7462 can expand to really _huge_ strings, use g_strdup_printf() instead.
7464 Wed Jun 20 04:28:24 2001 Tim Janik <timj@gtk.org>
7466 * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
7467 construct property in 1.2 and still needs to be.
7469 * gtk/gtkwidget.c: "composite_child" is not a settable property.
7471 Tue Jun 19 19:13:19 2001 Jonathan Blandford <jrb@redhat.com>
7473 * gtk/gtkliststore.c (gtk_list_store_clear):
7474 * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
7477 Mon Jun 18 02:00:49 2001 Tim Janik <timj@gtk.org>
7479 * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
7482 * gtk/gtk.h: disabled GtkPacker compilation.
7484 * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
7486 * gtk/gtknotebook.c:
7488 * gtk/gtkbox.c: ported this over to child properties.
7490 * gtk/gtksettings.c: fetch class properties via
7491 g_object_class_list_properties().
7493 * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
7494 child arg interface. use gobjectnotifyqueue.c for child property
7497 * gtk/gtkwidget.[hc]: provide necessary means for container child
7498 properties, i.e. ::child_notify signal,
7499 gtk_widget_freeze_child_notify(),
7500 gtk_widget_child_notify(),
7501 gtk_widget_thaw_child_notify().
7503 * tests/testgtk.c: removed inferior property handling code, for
7504 property editing, a generic module should be used, and GLE
7505 coincidentally fullfills that purpose.
7507 * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
7508 needs to be adapted to g_object_class_list_properties() before this
7511 Mon Jun 18 20:06:10 2001 Jonathan Blandford <jrb@redhat.com>
7513 * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
7514 test if a node is expanded.
7516 Mon Jun 18 19:41:38 2001 Jonathan Blandford <jrb@redhat.com>
7518 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7519 where collapsing a selected row would result in the cursor/anchor
7522 Fri Jun 15 18:53:48 2001 Jonathan Blandford <jrb@redhat.com>
7524 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
7525 gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.
7526 * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
7527 Now I can really reorder/sort all Store widgets. treesorttest
7528 seems to just work now.
7529 * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
7530 testtreesort worked through a big coincidence all this time.
7531 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
7533 * tests/testtreecolumns.c: Big 'ol warning at the top letting
7534 people know that this code should never ever ever be copied.
7536 2001-06-15 Jonas Borgström <jonas@codefactory.se>
7538 * gtk/gtkwindow.h: Fixed a small typo, it should be
7539 GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
7542 2001-06-14 Havoc Pennington <hp@redhat.com>
7546 * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
7547 GTK_DISABLE_DEPRECATED
7549 Thu Jun 14 19:21:27 2001 Jonathan Blandford <jrb@redhat.com>
7551 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops. Forgot
7552 this a couple months ago. Now GtkTreeStore sort of sorts. I'll
7553 finish it off tonight, though it basically works now when it's a
7554 list. Also, I have a sinking feeling neither GtkTreeStore or
7555 GtkListStore actually resort when adding a new item. I'll look
7558 2001-06-14 Havoc Pennington <hp@redhat.com>
7560 * demos/gtk-demo/main.c (load_file): fix bug identified by
7561 warnings I just added to gtktextbuffer
7563 2001-06-14 Havoc Pennington <hp@redhat.com>
7565 * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
7567 * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
7569 * gtk/gtktextbtree.c: don't leak node data all over the place.
7571 * demos/gtk-demo/main.c (main): create fontify tags for the right
7574 * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
7575 to mention tags in the same table can't have the same name,
7576 suggested by Skip Montanaro
7578 2001-06-11 Havoc Pennington <hp@redhat.com>
7580 * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning
7581 for trying to add two tags with same name to the tag table
7583 * demos/gtk-demo/main.c (main): fix colors ;-)
7585 `Fri Jun 8 17:56:52 2001 Owen Taylor <otaylor@redhat.com>
7587 * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
7588 that allows grouping together multiple windows so that grabs
7589 within that set of windows only affect those windows.
7591 * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
7592 signal for notification when a widget becomes shadowed
7593 by a grab or is no longer shadowed by a grab.
7595 * gtk/gtkwidget.c (gtk_widget_propagate_state)
7596 gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
7597 insenstive widgets to maintain a grab.
7599 2001-06-14 Alexander Larsson <alexl@redhat.com>
7601 * docs/README.linux-fb:
7602 Add some example config files that can be used with the URW fonts.
7604 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
7605 Set up the color ramps for DirectColor mode.
7607 2001-06-11 Havoc Pennington <hp@redhat.com>
7611 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
7613 * gdk/linux-fb/gdkwindow-fb.c:
7614 Unify shaped window code and make it repaint the area that used
7615 to be part of the shape, but isn't anymore.
7617 2001-06-11 Havoc Pennington <hp@redhat.com>
7621 * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
7623 * gtk/Makefile.am: glib_genmarshal already contains top_builddir
7625 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
7627 * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
7628 Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
7629 passes zero instead, so do we.
7631 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
7633 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
7634 Deep copy dash_list too.
7635 (_gdk_fb_gc_new): Set default cap_style before
7638 2001-06-12 Alexander Larsson <alla@lysator.liu.se>
7640 * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
7641 gdk_keymap_get_direction): New functions.
7643 Tue Jun 12 12:41:27 2001 Jonathan Blandford <jrb@redhat.com>
7645 * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
7646 gtk_tree_model_get_flags by adding a second flag for atk.
7648 * gtk/gtktreemodel.c: make cursor behavior interact better with
7651 Mon Jun 11 12:43:08 2001 Jonathan Blandford <jrb@redhat.com>
7653 * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
7654 expand_row/collapse_row to be 2 signals each -- test_expand_row
7655 and row_expanded as well as test_collapse_row and row_collapsed.
7657 2001-06-10 Anders Carlsson <andersca@codefactory.se>
7659 * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
7660 signal name to be changed instead of selection_changed.
7662 2001-06-08 Havoc Pennington <hp@redhat.com>
7664 * gtk/gtkentry.c (gtk_entry_class_init): add read-only
7665 "scroll_offset" property for notification when the layout offsets
7667 (gtk_entry_adjust_scroll): add notify for scroll_offset
7668 (gtk_entry_layout_index_to_text_index): function to compensate for
7669 preedit string when doing coordinate stuff on the entry's layout
7670 (gtk_entry_text_index_to_layout_index): inverse function
7671 (gtk_entry_get_layout_offsets): hook to get current position of
7673 (gtk_entry_get_layout): hook to get the layout itself.
7675 * gtk/gtklabel.c (gtk_label_get_layout): new function
7677 Fri Jun 8 19:49:29 2001 Jonathan Blandford <jrb@redhat.com>
7679 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
7681 (gtk_tree_view_focus): Fix merge conflict.
7683 Fri Jun 8 18:41:30 2001 Jonathan Blandford <jrb@redhat.com>
7685 * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
7686 clean up cursor handling.
7688 2001-06-08 Havoc Pennington <hp@redhat.com>
7690 * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
7693 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
7696 2001-06-08 Alex Larsson <alexl@redhat.com>
7698 * gtk/gtkcompat.h.in:
7699 Added compat macros for all old GTK_TYPE_GDK_xxx types.
7702 2001-06-08 Havoc Pennington <hp@redhat.com>
7704 * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
7707 2001-06-08 Havoc Pennington <hp@redhat.com>
7709 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
7710 don't call g_list funcs on GSList
7712 * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
7713 gtk_container_focus(), since some widgets have focusable locations
7714 which are not other widgets. These widgets should not have to be
7715 containers just to manage the focus. For example, GtkHSV is
7716 currently a container for no good reason. Also, this cleans
7717 up the "if (is_container && is_sensitive && is_drawable)
7718 container_focus ()" mess in widget implementations.
7720 * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
7721 function, and have it just call gtk_widget_child_focus().
7723 * gtk/gtkhsv.c: derive from widget not container
7725 Throughout: fix to reflect GtkContainer::focus change
7727 Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
7729 * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
7730 range. Fix bug #55921
7732 * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
7735 Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
7737 * gdk/gdkkeys.[ch]: Add a direction-changed signal,
7738 and gdk_keymap_get_current_direction().
7740 * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
7741 gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
7742 the current locked group, use it to set the keymap
7745 * gtk/gtksettings.c: Add a new gtk-split-cursor setting
7746 to determine whether we draw a split cursor or use
7747 a jumping cursor based on the current direction.
7749 * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
7750 Obey the split cursor setting.
7752 Fri Jun 8 11:57:50 2001 Owen Taylor <otaylor@redhat.com>
7754 * gtk/gtkimmulticontext.c (activate_cb): Only activate
7755 when toggling on, not when toggling off... (#55906)
7757 Wed Jun 6 10:37:07 2001 Owen Taylor <otaylor@redhat.com>
7759 * gtk/gtkwidget.c (gtk_widget_set_double_buffered):
7760 s/gdk_window_begin_paint/gdk_window_begin_paint_region/
7761 in docs. (#55812, Vitaly Tishkov)
7763 2001-06-08 Anders Carlsson <andersca@codefactory.se>
7765 * demos/gtk-demo/main.c (create_tree): Changed signal name from
7766 selection_changed to changed in signal connection to GtkTreeSelection,
7767 also used g_signal_connectc since GtkTreeSelection is now a GObject.
7769 Thu Jun 7 18:25:42 2001 Jonathan Blandford <jrb@redhat.com>
7771 * gtk/gtktreeselection.c: Now it's a GObject instead of a
7772 GtkObject. The GtkTreeSelection::selection_changed signal is now
7773 the GtkTreeSelection::changed signal.
7775 * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
7778 * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
7781 2001-06-07 Havoc Pennington <hp@redhat.com>
7783 * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
7785 2001-06-07 Havoc Pennington <hp@redhat.com>
7787 * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
7788 (not tested yet because with absolute path to srcdir I can't build
7789 atk, but it was broken anyway so this may help)
7791 2001-06-07 Havoc Pennington <hp@redhat.com>
7793 * configure.in: output m4macros/Makefile
7795 Wed Jun 6 21:59:16 2001 Jonathan Blandford <jrb@redhat.com>
7797 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
7798 buttons. Fixes #55460 reported by matthiasc@poet.de.
7800 Wed Jun 6 21:18:54 2001 Jonathan Blandford <jrb@redhat.com>
7802 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
7803 expansion/collapsing so it only happens in one place.
7804 (gtk_tree_view_real_expand_row): ditto.
7806 2001-06-07 Havoc Pennington <hp@redhat.com>
7808 * tests/Makefile.am: add missing -I flag
7810 * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
7812 * configure.in: use pkg-config to see if GModule is
7813 supported; fix to properly turn on included loaders
7814 when GModule isn't supported; don't use AC_CHECK_LIB
7815 when libs are not installed yet
7817 * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
7819 * Makefile.am (SUBDIRS): add m4macros subdir
7821 * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
7824 Wed Jun 6 19:31:11 2001 Jonathan Blandford <jrb@redhat.com>
7826 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
7827 reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
7829 Wed Jun 6 20:01:38 2001 Jonathan Blandford <jrb@redhat.com>
7832 (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
7833 bindings to expand and collapse rows.
7834 (gtk_tree_view_real_select_cursor_parent): New key binding.
7835 (gtk_tree_view_real_toggle_cursor_row): New key binding.
7837 * gtk/gtkmarshal.list: new
7838 marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
7840 2001-06-06 Havoc Pennington <hp@redhat.com>
7842 * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
7844 * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
7845 Down to move visually rather than logically, since it confuses
7846 people. Add -/+ and Ctrl--/+ bindings for logical movement.
7848 2001-06-06 Alex Larsson <alexl@redhat.com>
7850 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
7851 Fix up error messages.
7853 Wed Jun 6 10:34:42 2001 Owen Taylor <otaylor@redhat.com>
7855 * gtk/gtktooltips.h: Include gtkwidget.h
7856 (#55798, Karl Nelson)
7858 * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
7859 a valid latin-1 character. (Marc Lehmann, #35467)
7861 * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment.
7862 (Marc Lehmann, #35467)
7864 2001-06-05 Alex Larsson <alexl@redhat.com>
7866 * demos/gtk-demo/appwindow.c (do_appwindow):
7867 Don't swap the order of the args to gtk_widget_destroyed.
7869 * tests/testgtk.c (destroy_properties):
7870 Don't crash when the properties window is destroyed.
7872 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
7873 Use with_mnemonics to handle the case of stock items with
7874 underscores in them.
7876 2001-06-05 Havoc Pennington <hp@redhat.com>
7878 * gtk/gtktextiter.c (gtk_text_iter_order): rename from
7879 gtk_text_iter_reorder
7881 2001-06-05 Havoc Pennington <hp@redhat.com>
7883 * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
7885 2001-06-05 Havoc Pennington <hp@redhat.com>
7887 * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value
7888 to the range that was set
7890 * gtk/gtkrange.c: add value_changed signal, primarily
7891 intended for use with GtkScale
7892 (gtk_range_set_increments): new function
7893 (gtk_range_set_range): new function with weird name
7894 (gtk_range_set_value): new function
7895 (gtk_range_get_value): new function
7897 * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename
7898 from gtk_spin_button_get_value_as_float(). Compat #define
7899 added for get_value_as_float.
7901 * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
7903 * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
7905 Tue Jun 5 14:57:18 2001 Jonathan Blandford <jrb@redhat.com>
7907 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
7909 Mon Jun 4 12:41:25 2001 Owen Taylor <otaylor@redhat.com>
7911 * gtk/gtkwidget.h: Deprecate gtk_widget_set().
7913 * tests/testgtk.c (create_tooltips): Remove usage of
7916 2001-06-05 Havoc Pennington <hp@redhat.com>
7918 * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
7920 Applying patch from Jeff Franks, with function docs added.
7922 * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
7923 remove call to set_mnemonic_widget, change docs a bit.
7925 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
7928 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
7931 * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
7933 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
7935 (gtk_radio_button_new_with_mnemonic_from_widget): new function
7937 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
7940 * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
7943 * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on
7944 auto-selection of mnemonic widget.
7946 Mon Jun 4 15:05:24 2001 Jonathan Blandford <jrb@redhat.com>
7948 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
7949 Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
7950 (gtk_tree_view_column_set_min_width): ditto.
7952 Tue Jun 5 11:04:06 2001 Owen Taylor <otaylor@redhat.com>
7954 * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS):
7955 s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
7957 Mon Jun 4 12:50:11 2001 Owen Taylor <otaylor@redhat.com>
7959 * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
7962 2001-06-04 Havoc Pennington <hp@pobox.com>
7964 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
7965 r eleases for buttons 6, 7
7967 2001-06-04 Havoc Pennington <hp@redhat.com>
7969 * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
7970 (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
7973 2001-06-04 Havoc Pennington <hp@redhat.com>
7975 * gtk/gtktextview.c (gtk_text_view_size_request): handle case
7976 where text_view->layout == NULL by assuming its size is 0,
7977 i.e. same as if we haven't done any reflow. Reported by
7978 Hidetoshi Tajima #55448
7980 2001-06-04 Havoc Pennington <hp@redhat.com>
7982 * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
7983 and 7 for scroll left/right, from Thomas Broyer
7985 2001-05-10 Havoc Pennington <hp@redhat.com>
7987 * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
7988 we need to parse the xsetting as if it were an RC file string.
7990 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
7991 value of palette from settings, not from static variable
7993 * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
7994 xsettings translation table
7996 * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because
7997 hardcoding the toolbar style conflicts with new customizable
7998 toolbar style philosophy
7999 (gtk_toolbar_class_init): add settings for default toolbar style;
8000 these are used unless the app specifically forces a toolbar style
8002 * gtk/gtksettings.c (settings_install_property_parser): only
8003 return at the start if we warn and parser == NULL
8005 * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
8006 palette changed handler so we don't notify dead color selections
8008 * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
8009 xthickness/ythickness of 0 or 1 properly
8010 (gtk_default_draw_resize_grip): clear the background behind the
8011 resize grips, and align to bottom right if we square the
8014 * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on
8015 statusbar label to 1, so it doesn't make toplevels resize oddly
8016 (gtk_statusbar_size_request): add grip size to request
8017 (gtk_statusbar_size_allocate): hack so the hbox still works with
8018 the grip size in the request
8020 * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix
8021 bug where showing all on a toplevel makes the toolbar
8022 button text appear despite the toolbar mode
8024 * gtk/gtkmenubar.c: add internal padding style property
8026 * gtk/gtktoolbar.c: Add internal padding style property; add
8027 shadow type style property
8029 * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
8030 state; and put Container::border_width outside the frame
8032 * gtk/gtktextview.c: don't draw focus rectangle if we're in
8033 interior focus mode, we just use blinking cursor
8035 2001-06-04 Havoc Pennington <hp@redhat.com>
8037 * configure.in: Make gdk-pixbuf have same version number as GTK
8039 2001-06-04 Havoc Pennington <hp@redhat.com>
8041 * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on
8042 digits greater than 6. If there actually are limits (which there
8043 likely aren't), should clamp to them not warn.
8044 (gtk_spin_button_new_with_range): don't take log of 0
8045 (gtk_spin_button_size_request): use digits to compute size
8046 request, rather than step increment.
8048 * tests/testgtk.c (create_spins): test larger values of digits
8050 * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
8051 font on map not expose, so we don't get weirdness during scrolling
8053 2001-06-04 Havoc Pennington <hp@redhat.com>
8055 * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
8056 Sam Solon, bug #54577, update value even if not drawable.
8058 2001-06-04 Havoc Pennington <hp@redhat.com>
8060 * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
8061 SCROLL_LEFT, reported by Thomas Broyer.
8063 2001-06-04 Havoc Pennington <hp@redhat.com>
8065 * gtk/gtkrange.c (gtk_range_adjustment_value_changed):
8066 Process updates immediately, to prevent funny lag effect
8067 when scrolling, at some mild potential efficiency cost.
8069 2001-06-04 Havoc Pennington <hp@redhat.com>
8071 * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
8072 slider on the click.
8074 2001-06-03 Havoc Pennington <hp@pobox.com>
8076 * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
8077 hscale/vscale details, so we can use it for scrollbar as well.
8079 * tests/testgtk.c (reformat_value): honor digits from GtkScale
8081 * gtk/gtkenums.h (GtkTroughType): Remove this enum
8082 (GtkScrollType): add START and END from GtkTroughType
8084 * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
8087 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
8088 gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
8089 gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
8090 gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
8091 gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
8093 Notable changes in the process:
8095 - stepper_size style property is the height for vertical
8096 ranges, width for horizontal; the other dimension matches
8098 - add ability to do NeXT-style steppers (and several other styles
8099 that don't make any sense)
8100 - added min_slider_length, fixed_slider_length properties to
8102 - cleaned some private (or at least useless) functions out of
8104 - moved bindings to GtkScale from subclasses, even arrow keys,
8105 since blind users don't know scale orientation.
8106 - change move_slider action signal to use new GtkScrollType,
8107 remove GtkTroughType argument
8108 - digits rounds the values a range will input to the given
8109 number of decimals, but will not try to force adjustment
8110 values set by other controllers. That is, we no longer
8111 modify adjustment->value inside a value_changed handler.
8112 - added getters for GtkScale setters
8113 - middle-click begins a slider drag
8115 Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com>
8117 * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
8118 getting the focus code to work.
8119 (gtk_tree_view_class_init): Add a bunch of keybindings.
8121 * gtk/gtktreeviewcolumn.c
8122 (gtk_tree_view_column_set_cell_data_func):
8123 s/GtkCellDataFunc/GtkTreeCellDataFunc.
8124 (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
8125 of "properties_changed" to help justify the death of the latter
8128 * tests/testtreefocus.c (main): Let some columns be focussable to
8131 2001-06-01 Havoc Pennington <hp@redhat.com>
8133 * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
8135 * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
8136 overwrite in overwrite mode if we already deleted the selection
8137 and replaced it with new text.
8139 * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
8140 selection to an empty range, clear the clipboard if we owned it.
8141 (gtk_label_set_selectable): give up selection if we become
8143 (gtk_label_state_changed): override state changed to unselect text
8145 (get_text_callback): add paranoia check that indexes aren't
8146 outside of label->text
8147 (gtk_label_select_region): make -1 for start_offset mean "end of
8148 label," for consistency with GtkEditable
8150 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
8151 GTK_DIALOG_NO_SEPARATOR flag
8153 Fri Jun 1 11:47:11 2001 Owen Taylor <otaylor@redhat.com>
8155 * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix
8156 notifications on non-existant "enable_arrow_keys".
8157 (#53753, Skip Montanaro)
8159 Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
8161 * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
8164 * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
8165 of allocation argument be GDK_TYPE_RECTANGLE.
8167 Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
8169 * gtk/gtkoptionmenu.c: Account for the fact that the border
8170 width is _outside_ the window. (Fixes #54585, bug found
8173 Wed May 30 15:56:30 2001 Owen Taylor <otaylor@redhat.com>
8175 * gtk/gtksettings.c (gtk_settings_get_property): Validate
8176 value from GDK settings against parameter spec.
8178 * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
8179 to temporary values and use g_value_transform(), since
8180 thinking that GValue was going to be easy or efficient
8181 to use was, of course, a mistake.
8183 * gtk/gtksettings.c: Add cursor blink setting.
8185 * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
8187 * gtk/gtkentry.c: Add cursor blinking.
8189 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
8190 cursor blink global settings.
8192 * gtk/gtkentry.c (gtk_entry_button_press): Add notification
8193 for :text_position in places where it is missing.
8195 Tue May 29 18:17:11 2001 Owen Taylor <otaylor@redhat.com>
8197 * autogen.sh (have_libtool): Fix GNU sedism (#55430)
8199 Tue May 29 17:40:29 2001 Owen Taylor <otaylor@redhat.com>
8201 * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
8202 not pkg-config. (#51032)
8204 * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
8205 (fixes #51952, James Henstridge)
8207 2001-05-27 Alexander Larsson <alla@lysator.liu.se>
8209 * gtk/gtkstock.h (GTK_STOCK_GO_UP):
8210 Rename to the more correct gtk-go-up.
8212 * gtk/stock-icons/stock_menu_sort_ascending.png:
8215 * gtk/stock-icons/stock_menu_sort_descending.png:
8216 Changed to show descending instead of ascending.
8218 * gtk/gtkiconfactory.c:
8219 Added menu size icon to sort ascending.
8221 * gtk/stock-icons/Makefile.am:
8222 Added stock_menu_sort_ascending.png.
8224 * gtk/gtkseparatormenuitem.c:
8225 Use correct typenames.
8227 Sun May 20 20:07:35 2001 Tim Janik <timj@gtk.org>
8229 * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
8230 gulong as in GSignal.
8232 Fri May 25 19:04:17 2001 Jonathan Blandford <jrb@redhat.com>
8234 * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
8235 instances of GtkCellRenderer in code (all but dnd icon code).
8236 Virtualized in GtkTreeViewColumn. Now I need to move focus in
8237 there, and I can do multiple Cells per column.
8239 * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
8241 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
8242 when model was unreffed prior to removing the row reference.
8244 2001-05-25 Havoc Pennington <hp@redhat.com>
8246 * gtk/gtkiconfactory.c: fix so that default icons are created if
8247 you call gtk_stock_list_ids()
8249 * demos/gtk-demo/stock_browser.c (create_model): sort stock items
8252 2001-05-25 Havoc Pennington <hp@redhat.com>
8254 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
8255 set can render without falling back to missing image icon
8257 * gtk/gtktextview.c (gtk_text_view_size_request): request full
8258 size of text, instead of random values
8260 * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
8261 size of tree view, instead of random values
8263 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
8264 image in an appropriate size
8266 * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
8267 etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
8269 Throughout: fix GTK_STOCK_BUTTON_ instances
8271 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
8272 gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
8273 Add a bunch of new stock items/icons
8275 * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
8276 new function, convenience for inserting columns with a data func
8278 * gtk/gtkiconfactory.c: keep a list of all existing icon factories
8279 (_gtk_icon_factory_list_ids): use list of all factories to
8280 generate a list of all known IDs
8282 * gtk/gtkstock.c (gtk_stock_list_ids): replace
8283 gtk_stock_list_items() with a function that returns all IDs known
8284 including those for GtkIconFactory.
8286 2001-05-25 Hans Breuer <hans@breuer.org>
8288 * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
8289 work -> check boxes and radio buttons are drawn now, even on win9x.
8290 Improved line settings a bit, still no clue how to get really dotted
8291 lines on win9x, on NT it's PS_ALTERNATE.
8293 * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for
8294 GDK_HINT_MIN_SIZE as well
8296 * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
8298 * gtk/gtk.def : updated
8300 * gtk/gtktreeprivate.h : change column_drop_func to be a function
8301 pointer not a function pointer pointer
8303 * tests/testdnd.c : include <stdlib.h> for putenv prototype
8305 * tests/testsocket.c : made it compile on win32 again
8307 * tests/makefile.msc : one more test-app uses prop-editor.obj
8309 2001-05-22 Havoc Pennington <hp@pobox.com>
8311 * gtk/gtkbin.c (gtk_bin_get_child): New function
8313 Wed May 23 20:07:53 2001 Owen Taylor <otaylor@redhat.com>
8315 * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
8316 to ignore when doing compose processing.
8318 2001-05-22 Joe Shaw <joe@ximian.com>
8320 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle):
8321 Simplify as suggested by Havoc. Just get the last iter and work
8322 backward to the tag instead of getting a line and working back from
8323 there. Fixes passing in an invalid offset to
8324 iter_init_from_byte_offset().
8326 Tue May 22 16:25:27 2001 Jonathan Blandford <jrb@redhat.com>
8328 * gtk/gtktreeview*.h:
8331 Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
8332 macros to all objects.
8334 Tue May 22 15:13:52 2001 Jonathan Blandford <jrb@redhat.com>
8336 * gtk/gtkcellrenderertext.c
8337 (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
8338 with very large (TM) amounts of text. May be moved to
8339 GtkCellRenderer in the future, though I'm not sure it wants to be
8342 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
8343 More sanity brought to this class. I like it.
8345 * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
8346 case. Kids, don't try this at home.
8348 * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
8349 convenience function.
8351 * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
8353 2001-05-21 Alexander Larsson <alexl@redhat.com>
8356 Added properties. Based on patch by Lee Mallabone.
8362 * gtk/gtktextview.c:
8363 Converted GtkArg to GParam. Based on patches by John Margaglione.
8365 * tests/Makefile.am:
8367 Add a property editor to testtext.
8369 Mon May 21 11:29:21 2001 Owen Taylor <otaylor@redhat.com>
8371 * gtk/gtk{h,v,}paned.c: Only show the separator if
8373 * configure.in: Fixed reversed conditional causing all image
8374 libraries to be linked in.
8376 2001-05-21 Joe Shaw <joe@ximian.com>
8378 * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
8379 that top_y needs to be >= 0.
8381 2001-05-11 Havoc Pennington <hp@pobox.com>
8383 * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
8384 losing connection to the X server.
8386 Sun May 20 13:59:20 2001 Owen Taylor <otaylor@redhat.com>
8388 * configure.in: Start checks for X from pangox/pangoxft
8389 CFLAGS to avoid duplicate libraries.
8391 * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
8393 * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
8396 2001-05-18 Alexander Larsson <alexl@redhat.com>
8398 * gtk/gtkspinbutton.c:
8399 Convert GtkArgs to GParams. Based on patch by John Margaglione.
8400 Also do size request reasonable for MAXDOUBLE. Previously it printed
8401 the limits to a buffer and overran it. Instead do it using log10() and
8402 limit the width to 10 digits.
8404 * gtk/gtkwidget.c (gtk_widget_get_property):
8405 Correctly handle setting the parent property to NULL.
8407 Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
8409 * gtk/gtktextview.c (gtk_text_view_style_set): Reset
8410 style attributes even if the widget isn't realized.
8412 * demos/gtk-demo/main.c: Use a slightly smaller font.
8414 Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
8416 * gtk/gtkcontainer.c: Remove reallocate-redraws property.
8417 This is something that only a widget writer would ever want
8420 * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
8421 gtk_signal_emit_by_name().
8423 * gtk/gtkviewport.c: Fix some warnings.
8425 * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
8426 allowing the requisitions of multiple widgets to be grouped
8429 * tests/testgtk.c: Add GtkSizeGroup test
8431 * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
8433 * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
8436 * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
8438 2001-04-28 Martin Baulig <baulig@suse.de>
8440 * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
8441 to gtk_image_menu_item_set_icon() and made it work if there's already
8443 (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
8444 (gtk_image_menu_item_new_with_label): New function.
8446 Thu May 17 16:20:04 2001 Jonathan Blandford <jrb@redhat.com>
8448 * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
8449 highlighting code!!!! The result is okay so long as you don't try
8450 to stress it. It also highlights a bug in the TextView so it's in
8451 an unproportional font right now until it's fixed.
8453 *demos/gtk-demo/*.c: Clean up code a bit to make it
8454 ugly-parser(TM) friendly. (-:
8456 2001-05-17 Joe Shaw <joe@ximian.com>
8458 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
8459 that x_offset and y_offset must be >= 0. Clip the cursor being drawn
8460 if it is only partially onscreen.
8462 Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
8464 * gtk/gtkentry.c: Make logical motion and deletion by graphemes,
8467 * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
8468 are not zero or one; that is, when graphemes of multiple characters
8471 * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
8474 2001-05-17 Alexander Larsson <alla@lysator.liu.se>
8477 Add properties, based on patch by Lee Mallabone.
8479 * gtk/gtknotebook.c:
8481 Convert from GtkArg to GParam, based on patch by John Margaglione.
8485 * gtk/gtkhscrollbar.c:
8486 * gtk/gtkvscrollbar.c:
8488 Move adjustment property to GtkRange.
8491 Setup mnemonics on property changes
8493 * gtk/gtkwidget.c (gtk_widget_get_property):
8494 GdkExtensionMode is an enum, not a flag. Set it with
8495 g_value_set_enum ().
8497 * tests/prop-editor.c:
8498 Better propery editor.
8501 Add new property test. Pass zero to the property editor to
8502 get properties from all derived types.
8504 Sun May 13 12:01:12 2001 Owen Taylor <otaylor@redhat.com>
8506 * autogen.sh (have_automake): Require libtool-1.4,
8509 * acinclude.m4: Remove libtool macros.
8511 * gdk-pixbuf/Makefile.am: Add dependencies to loade
8514 * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
8517 * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
8518 libgdk.la for libgtk.
8520 * modules/input/Makefile.am: Make modules have full
8523 Wed May 16 14:06:01 2001 Jonathan Blandford <jrb@redhat.com>
8525 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
8526 #54699 where paths weren't being checked for correctness.
8528 Tue May 15 20:13:24 2001 Jonathan Blandford <jrb@redhat.com>
8530 * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
8531 in any order you wan, whether or not the column is added to the
8532 tree, or the tree is realized. Yay!
8534 * gtk/gtktreeviewcolumn.c
8535 (gtk_tree_view_column_setup_sort_column_id_callback): handle
8536 sorting columns a lot saner
8538 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
8539 new function to actually set wether or not a column is
8542 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
8545 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
8546 Fix nasty bug where we were showing the button just before
8547 realizing it. As a result, the parent window was
8548 tree_view->window instead of tree_view->priv->header_window.
8550 * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
8551 to let you easily reorder a list or tree.
8553 2001-05-15 Alexander Larsson <alla@lysator.liu.se>
8555 * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
8556 from args to properties.
8558 Tue May 15 10:11:59 2001 Owen Taylor <otaylor@redhat.com>
8560 * gtk/gtkpreview.c: Apply patch from John Margaglione converting
8561 from args to properties. (#51957)
8563 * gtk/gtkscale.c (gtk_scale_class_init): Move install property
8564 calls to after ->set_property call.
8566 Mon May 14 14:56:21 2001 Owen Taylor <otaylor@redhat.com>
8568 * tests/prop-editor.c: Block against redundant changes.
8570 * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
8573 Sun May 13 18:40:04 2001 Owen Taylor <otaylor@redhat.com>
8575 * gdk/gdkpixmap.h: Remove creative formatting.
8577 Thu May 10 19:22:28 2001 Owen Taylor <otaylor@redhat.com>
8579 * gtk/gtktogglebutton.c: Patch from John Margaglione converting to
8580 property API. (#51669)
8582 * gtk/gtkscale.c: Patch from John Margaglione converting to
8583 property API. (#51891)
8585 * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
8586 to property API. (#50985)
8588 Fri May 11 20:13:44 2001 Tim Janik <timj@gtk.org>
8590 * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
8591 buffering state across expose event, so we still call end_paint().
8593 2001-05-11 Alexander Larsson <alexl@redhat.com>
8595 * gtk/gtkhsv.c (paint_triangle):
8596 Expose the ring in the triangle at the correct place when
8597 exposing just a part of the triangle.
8599 * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
8600 Return FALSE, or window focusing will not work.
8602 2001-05-11 Havoc Pennington <hp@pobox.com>
8604 * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
8607 * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
8610 Fri May 11 02:53:57 2001 Tim Janik <timj@gtk.org>
8612 * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
8613 propagate exposes to NULL child.
8615 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
8616 against not having one of the scrollbars.
8618 * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
8619 we don't keep a mnemonic window if we have no mnemonic installed.
8621 Fri May 11 01:05:00 2001 Tim Janik <timj@gtk.org>
8623 * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
8624 it has the _important_ side effect of initializing a class.
8626 2001-05-10 Alexander Larsson <alexl@redhat.com>
8628 * gdk/linux-fb/gdkprivate-fb.h:
8629 Make sure you can compile out the implementation/wrapper assert
8632 * gdk/linux-fb/gdkdrawable-fb2.c:
8633 Check implementation/wrappers, initialize type for pixmap dummys.
8635 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8636 Hide the cursor if reading from the screen.
8638 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8639 Fix sign bug in tiling code.
8641 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
8642 Handle background pixmaps.
8644 Wed May 9 15:27:22 2001 Jonathan Blandford <jrb@redhat.com>
8646 * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
8647 function to let user control where columns are dragged.
8649 * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
8652 Wed May 9 09:08:44 2001 Jonathan Blandford <jrb@redhat.com>
8654 * gtk/gtktreeview.c (gtk_tree_view_class_init): New
8655 "columns_changed" signal.
8656 (gtk_tree_view_motion_draw_column_motion_arrow): Change column
8657 motion code to draw arrows to the side if indicator is outside the
8659 (gtk_tree_view_map_expanded_rows): Implement.
8661 2001-05-07 Alexander Larsson <alexl@redhat.com>
8663 * demos/testpixbuf-save.c:
8664 * demos/testpixbuf-drawable.c:
8665 Include gdkfb.h on linux-fb.
8667 2001-05-07 Alexander Larsson <alexl@redhat.com>
8669 * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
8670 New function for getting toplevel window at position.
8671 (gdk_drag_find_window): Use get_toplevel_window () instead
8672 of gdk_window_get_pointer(). (gdk_drag_status): Use
8673 correct context for getting window.
8675 * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
8676 g_strdup the atom name.
8678 * gdk/linux-fb/gdkwindow-fb.c:
8681 * gtk/gtkdnd.c (gtk_drag_source_handle_event):
8682 Add code for changing cursor on linux-fb backend (same as
8685 2001-05-07 Federico Mena Quintero <federico@ximian.com>
8687 * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
8688 present before doing anything with it. Patch from Håvard Kvålen
8689 <havardk@netcom.no>. Fixes Ximian bugzilla #2492 (OK, the bug
8690 report was not for the development branch of GTK+, but it applies
8693 2001-05-04 Havoc Pennington <hp@redhat.com>
8695 * configure.in: fix some shell typos
8697 * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
8699 * gtk/gtkimage.c: handle animations
8701 * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
8702 border_width * 2, not just border_width
8704 * gtk/gtkscale.c: add "format_value" signal to allow people
8705 to override the way values are drawn.
8706 (gtk_scale_get_value_size): fix width/height mistake,
8707 and compute size from actual displayed text, not
8710 * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in
8713 * tests/testtext.c: Add "Remove all tags" menu item for testing
8715 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
8717 * demos/gtk-demo/main.c (main): add hack so we can find modules
8718 without installing gtk
8720 * demos/gtk-demo/textview.c (insert_text): demo font scaling
8722 * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
8724 (gtk_cell_renderer_text_set_property): remove some bogus
8727 * gtk/gtktexttag.c: add "scale" property which is a font scaling
8730 * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
8733 * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
8734 gtk_text_iter_is_first
8736 2001-01-06 Hans Breuer <hans@breuer.org>
8738 * gdk/gdk.def : updated exports
8740 * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
8741 gdk won't compile anymore
8743 * gdk/win32/gdkevents-win32.c : initialize ret_val when
8744 processing GDK_FILTER functions, initialize event.key->hardware_keycode.
8745 Improved gdk_flush () to not only do pending drawing operations
8746 but also process all currently pending events. This should make
8747 the behaviour more similar to the X11 version.
8749 * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
8750 option needs to be set even if there is no GDK_GC_BACKGROUND.
8751 (gdk_win32_hdc_get) : use predraw_set_background () independent
8752 of value_mask. This allows to draw dashed lines leaving the original
8755 * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
8756 after processing, because we can't reuse it as the X11 version does.
8758 * gtk/gtk.def : updated exports
8760 * gtk/makefile.msc.in : added ATK, removed all test apps. (I
8761 would like to get rid of this file again, and use straight
8762 makefile.msc again, as the other Gtk+ subdirs do)
8764 * test/makefile.msc (new file) : build the test apps here
8766 2001-05-05 ERDI Gergo <cactus@cactus.rulez.org>
8768 * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
8769 strike-through setting
8770 (gdk_draw_layout_line_with_colors): Render strike-through
8772 Sat May 5 10:06:24 2001 Owen Taylor <otaylor@redhat.com>
8776 * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
8780 * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
8783 Sat May 5 09:18:30 2001 Owen Taylor <otaylor@redhat.com>
8785 * demos/gtk-demo/images.c (progressive_timeout): Fix
8788 * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
8789 out FIXME warning; just too annoying.
8791 2001-05-04 Alex Larsson <alla@lysator.liu.se>
8793 * gdk/linux-fb/gdkcolor-fb.c:
8794 Better error messages.
8796 * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
8797 Initialize abs_x and abs_y.
8799 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8800 Correct handling of stipple offset.
8802 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
8803 Treat directcolor framebuffers as truecolor.
8805 Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
8807 * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
8808 dependency on Atk for accessibility support.
8810 * configure.in **/Makefile.am: Major reworking of substituted
8811 variables for CFLAGS/LIBS to make a lot more sane and
8812 keep the the compile/link lines a bit shorter.
8814 * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
8816 Thu May 3 08:10:54 2001 Owen Taylor <otaylor@redhat.com>
8818 * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
8819 value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
8820 use _gtk_boolean_handled_accumulator.
8822 Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
8824 * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
8825 to fix things so clicking inside selection leaves cursor
8826 at point where clicked. (#50324)
8828 * gtk/gtksettings.c (gtk_settings_class_init): Restore
8829 sane value for default double click time.
8831 * tests/testtext.c (test_init): Really path to input modules.
8833 2001-05-03 Sven Neumann <sven@convergence.de>
8835 * demos/testpixbuf-save.c: include target-specific headers as
8836 done in testpixbuf-drawable.c
8838 Wed May 2 20:36:38 2001 Owen Taylor <otaylor@redhat.com>
8840 * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
8841 new_text_length appropriately when we run into the
8842 size limit for the entry. (#53445, reported by Jeff Franks)
8844 * tests/testgtk.c (create_entry): Remove most of the
8845 property toggle buttons. Replace with a "Props" button
8846 that brings up a property editor.
8848 * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
8849 Split the property editor code out for reuse, improve.
8851 Wed May 2 17:26:22 2001 Owen Taylor <otaylor@redhat.com>
8853 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
8854 trap errors around calls to XSetInputFocus since we have
8855 no way of knowing reliably whether we are viewable or
8858 Tue May 1 09:21:23 2001 Jonathan Blandford <jrb@redhat.com>
8860 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8861 fix bug in dropping columns. Moving columns now basically works
8862 modula some fine tuning.
8864 Tue May 1 19:09:21 2001 Jonathan Blandford <jrb@redhat.com>
8866 * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
8867 autoscroll support. It mostly works, but could use some fine
8869 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8870 Actually move the column.
8872 Mon Apr 30 20:29:27 2001 Owen Taylor <otaylor@redhat.com>
8874 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c
8875 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
8876 New default theme! A slighly improved version of the 2.0 Raleigh
8877 theme, with Windows-esque focus/drawing default.
8878 (GtkWidget::interior_focus defaults to TRUE.)
8880 * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
8882 2001-04-30 Havoc Pennington <hp@pobox.com>
8884 * tests/testtext.c (line_numbers_expose): fix to work with
8885 gtk_paint_layout change
8887 Mon Apr 30 19:18:07 2001 Owen Taylor <otaylor@redhat.com>
8889 * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
8890 gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
8891 gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
8892 use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
8894 * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
8895 with GtkWidget::interior_focus = TRUE better.
8897 * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
8898 ::default_outside_border for more flexibility.
8900 * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove
8901 G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
8902 change that had to be made with g_object_get.
8904 Sun Apr 29 20:13:40 2001 Jonathan Blandford <jrb@redhat.com>
8906 * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
8907 (gtk_tree_view_move_column_after): Clean up interface.
8909 Sun Apr 29 03:02:02 2001 Tim Janik <timj@gtk.org>
8912 * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
8915 * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
8919 (gtk.defs): generate enum portions with glib-mkenums.
8920 (gtktypebuiltins_evals.c): generate this with glib-mkenums.
8921 got rid of makeenums.pl and makeenums.awk in distributed tarballs.
8923 * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
8926 * docs/Changes-2.0.txt: keep a note on signal handlers now
8927 not getting emitted during the emission they were connected within.
8929 2001-04-28 Havoc Pennington <hp@pobox.com>
8931 * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
8933 2001-04-24 Havoc Pennington <hp@redhat.com>
8935 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line):
8936 (gtk_text_layout_move_iter_to_next_line): fix these two for
8937 invisible text, lots of other stuff still hosed.
8939 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
8940 new function, replaces the get/set palette stuff. This function
8941 is intended for use by libgnomeui which should set the hook to a
8942 thing which sets the palette in GConf, and we need the
8943 GConf-to-xsettings proxy which will result in the change being
8944 propagated back to the GTK app.
8946 * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning
8947 about unusable signals that it may be because the signal has
8950 * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
8951 style, otherwise gtkrc.c won't know to create a new GtkStyle for
8953 (gtk_widget_modify_color_component): call
8954 gtk_widget_modify_style() so the rc style will get copied.
8955 (gtk_widget_modify_font): ditto
8957 * gtk/gtkrc.c: make a couple variables static
8959 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
8960 help button by default, since it does nothing
8962 * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
8965 * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
8966 so we can have tooltips
8968 * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
8971 * gdk/gdkimage.h: mark gdk_image_new_bitmap with
8972 GDK_ENABLE_BROKEN, because its memory behavior is completely
8975 * gtk/gtknotebook.c: remove key press handler, replace with
8976 binding set, add numeric keypad support
8978 * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
8980 * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
8982 * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
8983 addition to plain Delete
8985 * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
8986 GDK_KP_Enter in addition to GDK_Return
8988 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
8989 activate on entry instead of key press
8990 (gtk_font_selection_on_clist_key_press): get
8991 rid of this signal handler, not needed with new font sel.
8993 * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
8994 no-longer-needed emit_stop_by_name(), just return TRUE
8996 * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
8997 cruft, this widget is no longer focusable.
8999 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
9000 gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
9001 move_slider action signal, add binding set for vscale/hscale, in
9002 the process support numeric keypad
9004 * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings;
9005 make GDK_Return and GDK_KP_Enter activate the entry via
9006 binding set, instead of hardcoded.
9008 Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
9010 * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
9011 code. Some documentation added.
9013 2001-04-27 Havoc Pennington <hp@redhat.com>
9015 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
9017 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
9019 * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
9020 line/para separators
9021 (gtk_entry_create_layout): set single paragraph mode on the layout
9023 * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
9024 spacing between the image and label; instead, inside a button box
9025 the button will get extra space that will go there, but if people
9026 configure button box for 0 chubbiness, then there's no spacing.
9028 * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
9029 and min/max size style properties, so people can tune their
9032 * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
9035 * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
9036 space_style, and button_relief into style properties, remove
9037 functions for setting them
9039 * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop
9042 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
9043 types from gtk_widget_style_get
9045 * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
9046 with a style property.
9048 * gdk/x11/gdkevents-x11.c: namespace the settings
9050 * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
9052 * gtk/gtksettings.c (gtk_settings_class_init): remove code with
9053 side effects from inside g_assert(), so that G_DISABLE_ASSERT can
9054 be used. Also, translate doc strings for settings. Also, namespace
9055 the double-click-time property. Also, remove bell properties crap.
9057 2001-04-27 Sven Neumann <sven@gimp.org>
9059 * Makefile.am: before creating links, check if pkg-config files
9060 exist for the default target. Otherwise link to the pkg-config files
9061 that got installed with this build.
9063 Thu Apr 26 19:11:46 2001 Jonathan Blandford <jrb@redhat.com>
9065 * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
9066 dragging code. Revealed some (potential) GdkWindow bugs.
9068 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
9069 _gdk_window_init_position to the end of reparent to fix the case
9070 of reparenting when new_x != old_x and new_y != old_y.
9072 Thu Apr 26 10:54:50 2001 Owen Taylor <otaylor@redhat.com>
9074 * gtk/gtkentry.c (strstr_len): Fix optimization that
9075 was correct for the use here, but completely incorrect
9078 Thu Apr 26 10:40:41 2001 Owen Taylor <otaylor@redhat.com>
9080 * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
9081 until patch adding gtk_window_set_size() is recommitted.
9083 * **Makefile.am configure.in gdk/x11/gdkim-11.c
9084 gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
9085 gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
9088 Wed Apr 25 12:16:36 2001 Owen Taylor <otaylor@redhat.com>
9090 * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for
9091 window == NULL in a number of cases.
9093 * tests/testdnd.c: Set module path for gdk-pixbuf.
9095 Thu Apr 19 16:11:07 2001 Owen Taylor <otaylor@redhat.com>
9097 * gtk/Makefile.am xembed.h: File containing #defines
9098 for XEMBED protocol.
9100 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]:
9102 - Change protocol from old plug/socket specific protocol
9104 - Various fixes to work with GTK+-2.0
9106 Still quite a bit of work to do here to handle initiation
9107 from the socket side (as specified by XEMBED), to handle
9108 the more advanced features of XEMBED, and to figure out
9109 a good way to handle same-app embedding with less overhead
9110 than using full XEMBED.
9112 Wed Apr 18 16:04:28 2001 Owen Taylor <otaylor@redhat.com>
9114 * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
9115 track of whether the toplevel has the focus; only send
9116 focus-in events to the focus widget when the window
9117 actually has the focus.
9119 2001-04-25 Havoc Pennington <hp@pobox.com>
9121 * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
9122 were still in the header
9124 2001-04-24 Alexander Larsson <alexl@redhat.com>
9126 * gtk/gtkclist.[ch]:
9128 When there is a row highlighted for D'n'D it must alse
9129 be painted hightlighted on exposes. Otherwise exposes from
9130 the icon being dragged will mess up the hightlight.
9133 Don't recenter selected font when exposing the font family
9134 clist. This means you can now actually scroll the font family
9137 * gtk/gtknotebook.c:
9138 Fix focus movement on scrolling tabs that are placed on the left
9141 2001-04-21 Havoc Pennington <hp@pobox.com>
9143 * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
9144 empty/invisible lines.
9146 * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
9147 (gtk_text_iter_set_visible_line_index): new functions to set
9148 indexes excluding invisible text
9150 * gtk/gtktextlayout.c (line_display_iter_to_index): get visible
9153 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
9154 (gtk_text_iter_get_visible_line_offset): new functions to
9155 get indexes excluding invisible text
9157 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
9158 bunch of extra padding that served no purpose
9160 * gtk/gtkdialog.c: Make all the spacings configurable via style
9161 properties, for chubbiness configuration in themes
9163 * tests/testtext.c: fix path to the immodules.
9165 Mon Apr 23 18:57:03 2001 Jonathan Blandford <jrb@redhat.com>
9167 * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
9168 got munched by #endif.
9170 * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
9172 * gtk/gtktreeview.c: Refactored code to clean up a number of
9175 * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
9176 values to make consistent with other functions. Spotted by Jeff
9177 Franks <jcf@tpg.com.au>.
9179 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
9180 declaration spotted by Jeff Franks <jcf@tpg.com.au>.
9182 2001-04-23 Sven Neumann <sven@gimp.org>
9186 * gtk/gtksocket.c: on request of Owen, reverted my last change
9187 and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
9189 2001-04-23 Sven Neumann <sven@gimp.org>
9191 * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
9192 compile for non-X11 targets again
9194 2001-04-20 Alexander Larsson <alexl@redhat.com>
9196 * gtk/gtkcolorsel.[ch]:
9197 API Change. Take GdkColor arguments instead of gdouble *.
9198 Leave the old gtk_color_selection_set_color for compatibility,
9199 but marked deprecated.
9200 Do correct rounding when converting RGB <-> HSV.
9202 * gtk/gtkcolorseldialog.c:
9204 Use new GtkColorSelection API.
9207 Fix problem selecting colors in triangle when Hue is 330.
9208 Fix some black dots around the HSB triangle.
9211 return FALSE from the focus_in_event handler to fix focus problems.
9213 2001-04-18 Havoc Pennington <hp@redhat.com>
9215 * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
9216 set, so keybindings are configurable
9217 (gtk_window_activate_default): Change to activate the focus widget
9218 instead if there's a focus widget, to be consistent with the
9219 behavior that previously existed in key_press_event
9221 2001-04-18 Havoc Pennington <hp@redhat.com>
9223 * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
9225 2001-04-18 Havoc Pennington <hp@redhat.com>
9229 * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
9232 * gtk/gtktext.c: Use base/text instead of bg/fg throughout
9234 * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
9236 * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
9238 * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
9239 to blue for base, in addition to bg
9241 2001-04-18 Havoc Pennington <hp@redhat.com>
9243 * tests/testgtk.c (create_image): allow shrinking the image window
9244 to test that we clip to allocation.
9246 * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
9249 * gtk/gtkenums.h: move GtkWrapMode in here, #50472
9251 Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
9253 * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
9254 mode on shm segments to 0600. We'll see who complains.
9256 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
9257 _gdk_windowing_window_destroy() AFTER recursing through
9260 * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
9261 testsocket_child on X.
9263 * tests/testsocket[_child].c: Fix uses of
9264 gtk_window_get_default_accel_group().
9266 [ Merge patch from Ramiro Estrugo <ramiro@eazel.com> from gtk-1-2 ]
9268 * gdk/gdkimage.c: (gdk_image_get):
9269 Deal with the possibility that XGetImage() might return NULL.
9270 Allocate the GdkImagePrivate structure only after XGetImage()
9271 succeeds in order not to dereference a NULL ximage pointer. This
9272 prevents a core dump when XGetImage() fails - which is unlikely,
9273 but can happen due to race conditions accessing the geometries of
9274 drawables. An x error will still be triggered, but the gdk image
9275 wrapper at least wont seg fault.
9277 2001-04-18 Havoc Pennington <hp@redhat.com>
9279 * gtk/gtkimage.c: fix to properly queue resizes when the image is
9282 * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
9283 if the insertion point isn't editable
9285 * demos/gtk-demo/images.c: Added a GtkImage demo
9287 * demos/gtk-demo/drawingarea.c: drawing area demo
9289 * demos/gtk-demo/menus.c (create_menu): cleanups
9291 Wed Apr 18 12:15:52 2001 Owen Taylor <otaylor@redhat.com>
9293 * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h
9294 gdk/x11/gdkevents-x11.c: Introduce an extra child
9295 of toplevel windows that serves to hold the focus to
9296 avoid events being delivered to embedded windows.
9298 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
9299 some extra variables to clean up code and reduce the
9302 * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
9303 guint for 1 bit bit fields, not gboolean.
9305 Wed Apr 18 10:04:23 2001 Owen Taylor <otaylor@redhat.com>
9307 * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
9308 not TRUE. (Fixes #52925)
9310 Tue Apr 17 18:05:34 2001 Owen Taylor <otaylor@redhat.com>
9316 * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
9319 Tue Apr 17 13:47:12 2001 Owen Taylor <otaylor@redhat.com>
9321 * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9323 * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
9324 names to compatibility #defines so docs work.
9326 * gtk/gtkenums.h: Remove GtkMenuFactoryType
9328 * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
9330 * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9332 * tests/testgtkrc: No magenta cursors, please.
9334 * README.in INSTALL.in HACKING README.cvs-commits: Updated.
9336 * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
9338 Mon Apr 16 14:38:41 2001 Owen Taylor <otaylor@redhat.com>
9340 * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
9341 grabs, since they are no longer necessary.
9343 * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
9344 by signal_connect() and call gtk_button_pressed() rather
9345 than signal_connect_after().
9347 * tests/testgtk.c: Restore radio menu items to combos
9348 since they'll look OK with Raleigh, and it is easier
9349 than finishing the process of removing them that was
9352 2001-04-16 Hans Breuer <hans@breuer.org>
9355 * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
9357 * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
9358 we are interested in the functions return value not the function address
9359 * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
9361 * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
9363 2001-04-14 Hans Breuer <hans@breuer.org>
9366 * gdk/makefile.msc : updated
9368 * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is
9369 "fill with tile" do so with new helper function gdk_win32_draw_tiles
9370 (the testgtk::text backgound pixmap is drawn again)
9371 Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect
9373 * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
9375 * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
9376 Not sure if the returned settings have the right unit, because I couldn't
9377 find any docs for the X version ...
9380 * gtk/makefile.msc.in : updated
9382 Thu Apr 12 17:41:17 2001 Owen Taylor <otaylor@redhat.com>
9384 * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
9385 wording problems. (Compared to version from Johannes Stezenbach to
9388 Thu Apr 12 21:04:26 2001 Tim Janik <timj@gtk.org>
9390 * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
9393 2001-04-12 Anders Carlsson <andersca@codefactory.se>
9395 * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
9398 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
9400 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
9401 are unsigned insts, therefore use g_value_set_uint.
9402 (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
9404 Sun Apr 8 05:36:06 2001 Jonathan Blandford <jrb@redhat.com>
9406 * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
9408 * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
9411 * gtk/gtktreeview.c: New functions to allow initial column
9414 * gtk/gtktreeviewcolumn.c: Initial column dragging support.
9416 * tests/testtreefocus.c: give dave some love.
9418 * tests/testtreesort.c: Modify test to check really long samples.
9420 2001-04-11 Alexander Larsson <alexl@redhat.com>
9422 * gtk-2.0.m4: Pass pkg-config options
9423 before the other args so it works even if
9424 POSIXLY_CORRECT is set.
9426 Mon Apr 9 19:02:07 2001 Tim Janik <timj@gtk.org>
9428 * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
9431 2001-04-04 Denis Oliver Kropp <dok@convergence.de>
9433 * gtk/gtkcalendar.c (gtk_calendar_button_press):
9434 check for action_func != NULL
9436 2001-04-04 Sven Neumann <sven@gimp.org>
9438 * tests/testgtk.c (test_init): corrected path to gtk.immodules
9440 Wed Apr 4 09:18:18 2001 Tim Janik <timj@gtk.org>
9442 * Released Gtk+-1.3.3.
9444 Wed Apr 4 07:42:23 2001 Tim Janik <timj@gtk.org>
9446 * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
9448 Wed Apr 4 04:13:18 2001 Tim Janik <timj@gtk.org>
9450 * gtk/stock-icons/Makefile.am: stay in builddir and read/write
9451 files to/from source dir. (if we don't stay in builddir, we
9452 can't reach make-inline-pixbuf.
9454 * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
9457 * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
9460 Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
9462 * gtk/gtktreemodelsort.h: removed set_sort_column, as it was
9463 moved to the GtkTreeSortable interface.
9465 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
9466 Make more efficient (fixes #50262).
9468 Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
9472 * configure.in: Remove support for uninstalled glib.
9474 * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
9475 so as not to stop emission.
9477 * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
9478 is no longer supported.
9480 * Makefile.am gtk/Makefile.am tests/*: Moved all tests
9481 into tests, change build order to build modules before
9484 * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
9487 Tue Apr 3 13:52:57 2001 Tim Janik <timj@gtk.org>
9489 * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
9490 and gtk_item_factory_dump_rc() GtkPatternSpec argument to
9491 GPatternSpec. this is actually unlikely to cause breakage in
9492 third-party apps since except for gle, pretty much ever caller
9495 * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
9497 * *.c: use g_pattern_*() API.
9499 * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
9501 * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
9502 directions aren't passed in.
9504 * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
9505 functionality to be usable from gtkstyle.c as well, give precedence
9506 for conversion to user-supplied parsers.
9507 s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
9509 * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
9510 _gtk_settings_parse_convert() for rcporperty value conversion.
9512 2001-04-03 Alexander Larsson <alexl@redhat.com>
9514 * gdk/linux-fb/gdkevents-fb.c:
9515 Add empty gdk_setting_get().
9517 Tue Apr 3 05:09:07 2001 Tim Janik <timj@gtk.org>
9519 * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
9522 * gtk/makeenums.pl: touch this so enum files get remade.
9524 Mon Apr 2 19:36:57 2001 Jonathan Blandford <jrb@redhat.com>
9526 * gtk/gtktreestore.c (gtk_tree_store_init): Bug fix to make trees
9527 work again when not sorted.
9529 * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
9530 and "expand_row" signal, closing bug 52578.
9532 * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
9535 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
9538 Mon Apr 2 18:18:07 2001 Owen Taylor <otaylor@redhat.com>
9540 * gdk/gdkevents.h: Add GdkEventSetting event for notification
9541 of changes to system settings, gdk_setting_get() to retrieve
9542 a single system setting.
9544 * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
9545 to the draft XSETTINGS mechanism.
9547 * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
9550 * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
9551 of GDK settings changes to the GtkSettings object.
9553 * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
9554 double-click-timeout property to GDK.
9556 * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
9557 Define GDK boxed types here.
9559 * gdk/Makefile.am gdk/makeenums.pl: Generate source files
9560 gdk/gdkenumtypes.[ch] for enum definitions.
9562 * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
9563 * gtk/gtk-boxed.defs: Comment out GDK types
9564 * gtk/gtktypeutils.h: Remove GDK types
9565 * gtk/Makefile.am: No longer scan GDK headers for enumerataions
9567 Mon Apr 2 16:41:08 2001 Owen Taylor <otaylor@redhat.com>
9569 * Applied patch from Ron Steinke to add signal accumulators
9570 so that signals with the convention 'TRUE return means
9571 handled' stop emission on a TRUE return.
9573 * gtk/gtkmain.[ch]: Add private accumulator
9574 _gtk_boolean_handled_accumulator, used throughout GTK+.
9576 * gtk/gtkspinbutton.c: Add accumulator for ::output.
9578 * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
9580 * gtk/gtkwidget.c: Add accumulators for event signals,
9581 ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
9582 for ::mnemonic-activate.
9584 * gtk/gtkwindow.c: Add accumulator for ::frame_event
9586 Mon Apr 2 16:24:21 2001 Owen Taylor <otaylor@redhat.com>
9588 * gtk/gtkwidget.c: Add missing include.
9590 Mon Apr 2 16:56:15 2001 Jonathan Blandford <jrb@redhat.com>
9592 * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
9595 * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
9596 "changed" signal to "range_changed".
9598 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
9599 removing a tree from one model would remove all trees from that
9601 * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
9602 changed signal instead.
9604 Mon Apr 2 16:13:58 2001 Owen Taylor <otaylor@redhat.com>
9606 * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
9607 chaining up to parent impl, since we have a INPUT_ONLY
9610 * gtk/gtkentry.[ch]: Add a cursor_color property to set the
9611 foreground color for the cursor.
9613 Mon Apr 2 15:06:13 2001 Owen Taylor <otaylor@redhat.com>
9615 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference
9616 param spec when caching property values, since we unref it
9617 later when we free the style.
9619 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
9620 values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
9622 Mon Apr 2 10:47:57 2001 Owen Taylor <otaylor@redhat.com>
9624 * gtk/gtkwidget.c (gtk_widget_class_init): Fix
9625 G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
9628 Mon Apr 2 00:51:11 2001 Owen Taylor <otaylor@redhat.com>
9630 [ First pass at adding style properties. Still needs some definite
9633 * gtk/gtkbutton.c: Add ::default_spacing style property.
9635 * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
9636 ::indicator_spacing style properties.
9638 * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
9641 * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
9642 rather than a normal property.
9644 * gtk/gtkwidget.c: Add an ::interior_focus style property to
9645 draw focus inside buttons, in the Windows/Java Metal/etc. style.
9647 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
9648 Honor ::interior_focus.
9650 * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is
9653 * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
9654 Add ::slider_width, ::trough_border, ::stepper_size,
9655 ::stepper_spacing style properties.
9657 * gtk/gtkscale.[ch] Add ::slider-length style property.
9659 2001-04-02 Alexander Larsson <alexl@redhat.com>
9661 * gdk/linux-fb/gdkwindow-fb.c:
9662 Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
9663 warnings that were spewed on startup.
9665 * gtk/gtkwindow-decorate.c:
9666 gtk_window_reposition -> _gtk_window_reposition
9668 Sun Apr 1 21:37:22 2001 Owen Taylor <otaylor@redhat.com>
9670 * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9671 Add boxed type for GtkRequistion. Use it for ::size-request.
9673 * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9674 Add a new GtkBorder structure useful for geometry properties
9675 for widgets. Add corresponding GTK_TYPE_BORDER.
9677 * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
9678 Support automatic parser selection like
9679 gtk_settings_install_property_parser().
9681 * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
9682 functionality for use by gtk_widget_class_install_style_property.
9683 Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
9685 Sun Apr 1 20:48:59 2001 Owen Taylor <otaylor@redhat.com>
9687 * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
9688 g_param_spec_unichar().
9690 Sun Apr 1 23:41:37 2001 Tim Janik <timj@gtk.org>
9692 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
9693 _NET window managers.
9695 * gtk/gtkmenufactory.[hc]: cvs removed those files now.
9697 Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
9699 * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
9700 bad needs to be nuked, not just deprecated.
9702 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
9705 * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
9707 * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
9710 * docs/Changes-2.0.txt: updates.
9712 Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
9714 * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
9715 for (i = 0; i < 100; i ++)
9716 g_print ("I will confirm it compile before committing\n");
9718 Sun Apr 1 00:52:06 2001 Jonathan Blandford <jrb@redhat.com>
9720 * gtk/gtktreestore.c: Initial work on implementing the
9721 GtkTreeSortable interface. Basicaly a big cut'n'paste job.
9723 Sun Apr 1 03:28:14 2001 Tim Janik <timj@gtk.org>
9725 * gtk/gtkwidget.c: fixed a bunch of notifications, added
9726 reference counts around emissions where the widget is used afterwards.
9727 added freeze/thaws around multiple properties being notified.
9728 (_gtk_widget_get_aux_info): cleanups.
9730 * gtk/gtksettings.c (gtk_settings_install_property): provide
9731 default parsing functions for gdkcolor, enums and flags.
9733 * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
9735 backed out gtk_window_get_location(), gtk_window_set_location(),
9736 gtk_window_get_size() and gtk_window_set_size(), these
9737 have to be sorted out wrg x/y/width/height/default_with/default_height
9739 kept a flag in GtkWindowGeometryInfo to handle user
9740 resetting default sizes.
9741 cleaned up ZVT comments.
9742 bunch of assorted bug fixes, notification fixes.
9743 (_gtk_window_reposition): make this a really internal function.
9745 * gtk/testgtk.c: fixups.
9747 2001-03-31 Hans Breuer <hans@breuer.org>
9749 * config.h.win32.in : disable USE_MMX for msvc build cause
9750 the assembler doesn't fit and is out of my scope. Disable
9751 USE_GMODULE for msvc build as wel. The right way to share
9752 binaries on win32 would be to use libtiff.dll etc. To reduce
9753 installation hassles IMO it's better to include all fileformats
9754 builtin to gdk-pixbuf
9756 * gdk-pixbuf/makefile.msc : new file
9758 * gdk/gdk.def : updated
9760 * gdk/win32/gdkevents-win32.c : don't erase the background if
9761 .no_bg is set. It improves the scrolling (e.g. of testgtk main
9763 * gdk/win32/gdkgeometry-win32.c : added comment about the above
9765 * gdk/win32/gdkwindow-win32.c : added three new functions like
9766 the X version. Only one is implemented, because the other two
9767 "gdk_window_begin_(resize|move)_drag" got no docs and appear to
9768 be default behaviour on win32 anyway ...
9770 * gtk/gtk.def : updated
9772 * gtk/makefile.msc.in : update for new files, use glib-genmarshal
9773 from where it was built and add an additional rule to automagically
9774 build gtkmarshal.[hc]
9776 * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
9777 before array access for the current entry isn't finished
9779 * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
9780 use g_return_val_if_fail
9782 * gtk/testgtk.c (window_controls) : don't use the *wrong* size
9783 for the static array, but let the compiler calculate it. It
9784 makes me wonder if gcc isn't capable to catch bugs like this ...
9786 2001-03-31 James Henstridge <james@daa.com.au>
9788 * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
9789 constant "-1" in the aux info structure.
9791 2001-03-30 Alexander Larsson <alexl@redhat.com>
9793 * gtk/gtkbutton.c (gtk_button_get_property):
9797 * gtk/gtkcontainer.c:
9799 * gtk/gtkhscrollbar.c:
9802 * gtk/gtkprogress.c:
9803 * gtk/gtkprogressbar.c:
9806 * gtk/gtkviewport.c:
9808 * gtk/gtkvscrollbar.c:
9810 Property patches, based on patches from John Margaglione and Lee Mallabone.
9812 Thu Mar 29 21:20:38 2001 Mike Kestner <mkestner@ameritech.net>
9814 * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
9815 adjustment. Cleaned redundant preconditions (spin != NULL). Added
9816 inline API function docs.
9817 (gtk_spin_button_new_with_range): New convenience constructor.
9818 (gtk_spin_button_set_increments): New adjustment helper.
9819 (gtk_spin_button_set_range): New adjustment helper.
9821 * gtk/testgtk.c : added test of the new convenince constructor and
9822 value_changed signals.
9824 Thu Mar 29 20:20:38 2001 Jonathan Blandford <jrb@redhat.com>
9826 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
9827 listen to the reorder signal.
9829 Wed Mar 28 20:30:26 2001 Owen Taylor <otaylor@redhat.com>
9831 * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
9832 to get the aux info structure fo the widget.
9834 * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
9837 [ Patch from Havoc Pennington <hp@redhat.com> ]
9839 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
9840 to get the size of the window manager frame, basically the same
9841 code that gdk_window_get_root_origin() had
9842 (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
9844 * gtk/gtkwindow.c (gtk_window_set_default_size): use
9845 gdk_window_resize() if the window is realized and resizeable
9847 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
9848 typo so that setting gravity works
9850 * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
9851 allocation if auto_shrink is on, even if the default size
9854 * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
9857 Thu Mar 29 16:29:12 2001 Jonathan Blandford <jrb@redhat.com>
9859 * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
9860 reordering/sorting work. Now pretty much works.
9862 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
9863 reorder mostly work. Still need to get the parity correct.
9865 * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
9866 signal, so I can listen for the sort_column_changed signal so I
9867 can change my "sort_indicator" property. Cool.
9869 Wed Mar 28 00:03:10 2001 Owen Taylor <otaylor@redhat.com>
9871 [ Patch from Havoc Pennington, hp@redhat.com ]
9873 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
9874 Add functions gdk_window_begin_resize_drag/begin_move_drag
9875 to start resizing or moving a toplevel window. This
9876 is done either using the _NET_WM_MOVERESIZE protocol,
9877 or, if that isn't present, by emulation.
9879 * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
9880 to export the above to GTK+-land.
9882 * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
9884 * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
9885 Move this function into gdkwindow, since we need it
9886 when implementing fallback resizing.
9888 * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
9889 Fix typo when setting gravity.
9891 * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
9892 Add an optional (but on by default) resize grip for resizing
9895 01-03-29 Alexander Larsson <alexl@redhat.com>
9897 * gtk/gtktooltips.c (gtk_tooltips_event_handler):
9898 Don't return TRUE from the event handler, that blocks all
9899 event signals on the tooltip widget. Now you can press buttons
9902 Wed Mar 28 19:20:43 2001 Owen Taylor <otaylor@redhat.com>
9904 * gtk/testtext.c (create_buffer): Add missing NULL on
9907 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
9908 c-n-p problem with INCONSISTENT property.
9910 [ Patch from Havoc Pennington <hp@redhat.com> ]
9912 * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
9915 * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
9916 signal as a hook for extending the default popup menu
9918 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
9919 use radio menu items for the input method menuitems
9921 * gtk/gtkimcontextsimple.c (check_hex): do better validation of
9922 inserted unicode from Ctrl-Shift-hex input method
9924 * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
9925 validatation here, already done at GtkTextBuffer level.
9927 * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
9928 popup_menu run action signal and Shift+F10 and Menu keybindings.
9930 * gtk/gtkentry.c: implement a default handler for popup_menu
9932 * gtk/gtktextview.c: implement a default handler for popup_menu
9934 * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
9937 * gtk/gtklabel.c: remove "trailer" cruft
9939 Wed Mar 28 17:27:12 2001 Jonathan Blandford <jrb@redhat.com>
9941 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
9942 handle reordering of trees. Seems to mostly work w/ the exception
9945 * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
9948 Wed Mar 28 21:12:37 2001 Tim Janik <timj@gtk.org>
9950 * gtk/gtkwidget.h: c++ fixes.
9952 Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
9954 * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
9957 Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
9959 * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
9960 Nils Barth fixing event return values. (#51041)
9962 * gtk/gtkwidget.c: Fix some return values for default
9965 * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
9966 return values for trough_keys functions.
9968 * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
9969 value for add_accelerator (shoudl have been a void
9972 * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
9973 Fix return type of EVENT.
9975 * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
9976 signal return a boolean.
9978 Tue Mar 27 22:07:44 2001 Jonathan Blandford <jrb@redhat.com>
9980 * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
9983 * tests/testtreesort.c (main): fix spelling.
9985 Tue Mar 27 20:55:29 2001 Jonathan Blandford <jrb@redhat.com>
9987 * gtk/gtkliststore.c: More work on implementing sortable
9990 Mon Mar 26 15:48:45 2001 Owen Taylor <otaylor@redhat.com>
9992 * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
9993 reference the widgets in the resulting list. (#11821)
9994 This makes this consistent with gtk_container_children.
9996 * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
9997 uses of gtk_window_list_toplevels.
9999 Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
10001 * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
10002 a virtual function to set whether the IM context should use
10003 the preedit string. (#51922)
10005 Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
10007 * gdk/gdkpango.h: Remove stale FIXME comment.
10009 2001-03-26 Alexander Larsson <alla@lysator.liu.se>
10011 * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
10012 Fixed bug that returned NULL if a filename was selected.
10014 2001-03-24 Havoc Pennington <hp@pobox.com>
10016 * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
10017 to contain the word "theme"
10019 2001-03-24 Havoc Pennington <hp@pobox.com>
10021 * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
10022 slower but finer-grained
10023 (gtk_hsv_focus): get initial focus on the ring or triangle
10024 according to tab direction
10026 * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
10028 2001-03-23 Havoc Pennington <hp@pobox.com>
10030 * gtk/gtkhsv.c: make this somewhat key-navigable
10032 * gtk/gtkfontsel.c: mnemonics
10034 * gtk/gtkgamma.c: mnemonics
10036 * gtk/gtkcolorsel.c: add mnemonics to labels
10038 2001-03-22 Havoc Pennington <hp@pobox.com>
10040 Applied big patch from Seth Lytle to fix event handler return
10041 values, slightly modified.
10043 * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
10045 (gtk_calendar_key_press): return TRUE for GDK_space triggers
10048 * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
10049 (gtk_clist_button_release): return TRUE if handled
10051 * gtk/gtkcolorsel.c (mouse_release):
10052 (palette_activate):
10056 (get_screen_color):
10057 fixed return type (void to gboolean), return TRUE,
10058 added GTK_SIGNAL_FUNC cast
10060 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
10061 (void to gboolean), and return TRUE
10062 (gtk_combo_button_release): changed return value to TRUE after
10063 gtk_grab_add on combo->popwin
10065 * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
10068 * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
10071 * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
10072 press/release and motion that trigger act
10074 * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
10076 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
10079 * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
10080 (gtk_list_button_release): return TRUE if selection
10082 * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
10085 * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
10086 (gtk_menu_shell_button_release): chain parent_menu_shell retval
10088 * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
10090 (gtk_notebook_button_release): return TRUE if we do anything
10092 * gtk/gtkspinbutton.c (gtk_spin_button_button_press):
10093 (gtk_spin_button_button_release): return TRUE or chained retval
10095 * gtk/gtktext.c (gtk_text_button_press):
10096 (gtk_text_button_release): return TRUE
10097 (gtk_text_key_press): remove redundant retval code
10099 * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
10101 (gtk_tree_item_subtree_button_click): changed type to gint, and return
10104 * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
10107 2001-03-23 Havoc Pennington <hp@redhat.com>
10109 * gtk/testgtk.c: fix warnings
10111 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
10113 * gtk/gtktextview.c: fix warnings
10115 * gtk/gtktext.c (find_cursor_at_line): fix warning
10117 * gtk/gtkselection.c (gtk_selection_notify): fix warning
10119 * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
10122 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10125 * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
10127 * gtk/gtkfontsel.c: fix warning
10129 * gtk/gtkcolorsel.c: fix warnings
10131 2001-03-23 Havoc Pennington <hp@redhat.com>
10133 * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
10135 * gtk/gtkbox.c: Apply property patch from Lee Mallabone
10137 * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
10138 and deprecated gtk_check_menu_item_set_show_toggle().
10140 * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
10142 * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
10144 * gtk/gtkframe.c: Apply property patch from Lee Mallabone
10146 2001-03-23 Havoc Pennington <hp@redhat.com>
10148 * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
10151 Fri Mar 23 16:13:43 2001 Jonathan Blandford <jrb@redhat.com>
10153 * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
10156 * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
10157 set_cell to set_value
10159 * gtk/gtkliststore.c (gtk_list_store_set_value): change from
10160 set_cell to set_value
10162 Thu Mar 22 19:27:34 2001 Jonathan Blandford <jrb@redhat.com>
10164 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10166 * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
10169 * gtk/gtktreeview.c: Addition of initial sortable support.
10171 * gtk/gtktreestore.c: Addition of initial sortable support.
10173 * gtk/gtkliststore.c: Addition of initial sortable support.
10175 * gtk/gtkmarshal.list: yet another marshaller.
10177 * gtk/gtktreedatallist.[ch]: shared code between the store models
10178 for handling sorting headers.
10180 2001-03-22 Havoc Pennington <hp@redhat.com>
10182 * gtk/gtkcontainer.c (gtk_container_set_focus_chain):
10183 (gtk_container_unset_focus_chain): Add ability to override the
10184 focus chain for a container explicitly
10186 Thu Mar 22 13:01:44 2001 Tim Janik <timj@gtk.org>
10188 * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
10189 added PROP_MNEMONIC_WIDGET.
10191 * gtk/gtkwindow.c (gtk_window_activate_mnemonic):
10192 (gtk_window_remove_mnemonic):
10193 (gtk_window_add_mnemonic): fixed assertions.
10194 (gtk_window_activate_mnemonic): constrain modifier checks to those
10195 permitted by gtk_accelerator_get_default_mod_mask().
10196 got rid of gtk_window_get_default_accel_group().
10198 * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
10199 activatable widgets either by focussing or a warning.
10200 added a signal accumulator to ::activate_mnemonic which stops the
10201 emission once a handler returned TRUE.
10203 2001-03-22 Havoc Pennington <hp@pobox.com>
10205 * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
10206 the stock item label
10208 * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
10210 * gtk/gtkstock.c (builtin_items): add mnemonics where missing
10212 * demos/gtk-demo/*.c: Add mnemonics all over the place
10214 * gtk/gtklabel.h: mark parse_uline deprecated
10216 2001-03-21 Alexander Larsson <alexl@redhat.com>
10218 * gtk/gtkitemfactory.[ch]:
10219 Add support for stock and normal imagemenuitems.
10222 Add some tests for mnemonics, stock toolbars, stock
10223 and image menuitems in itemfactory and gdk_window_scroll.
10225 2001-03-21 Alexander Larsson <alexl@redhat.com>
10227 * gtk/gtkbutton.[ch]:
10229 Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
10230 removed accel_group argument. Renamed gtk_button_new_accel() to
10231 gtk_button_new_with_mnemonic() and removed accel_group argument.
10233 * gtk/gtkcheckbutton.[ch]:
10234 New function gtk_check_button_new_with_mnemonic().
10237 Override activate_mnemonic and just grab focus.
10239 * gtk/gtkitemfactory.c:
10240 Don't add menu uline accel group, instead use mnemonics support.
10242 * gtk/gtklabel.[ch]:
10243 New support for mnemonics.
10245 * gtk/gtkmarshal.list:
10246 Needed BOOLEAN:BOOLEAN for activate_mnemonic.
10250 Use mnemonics instead of accel groups for uline
10251 support in menu items.
10252 Removed gtk_menu_get_uline_accel_group() and
10253 gtk_menu_ensure_uline_accel_group().
10255 * gtk/gtkmenuitem.c:
10256 Override activate_mnemonic to handle switching between
10257 menu items if there are collisions.
10259 * gtk/gtknotebook.c:
10260 Connect to activate_mnemonic on the tab_label, so that
10261 activating it switches to that notebook page.
10263 * gtk/gtkwidget.[ch]:
10264 Add activate_mnemonic signal. New function
10265 gtk_widget_activate_mnemonic() to emit it.
10266 Default implementation does activate/grab_focus.
10268 * gtk/gtkwindow.[ch]:
10269 Add support for mnemonics in windows.
10271 gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
10272 gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
10275 Update to function name changes.
10277 2001-03-21 Alexander Larsson <alexl@redhat.com>
10279 * gtk/gtkimagemenuitem.[c]:
10280 Add gtk_image_menu_item_new_from_stock()
10282 Tue Mar 20 15:00:43 2001 Jonathan Blandford <jrb@redhat.com>
10284 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10285 Fix buglet in meeting.
10287 2001-03-19 Havoc Pennington <hp@redhat.com>
10289 * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
10290 add a bunch of accessor functions. This is because we have
10291 reasonable expectations of extending what fields it contains in
10294 * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
10297 * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
10300 Mon Mar 19 15:53:36 2001 Owen Taylor <otaylor@redhat.com>
10302 * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
10303 handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
10305 * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
10306 gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
10307 gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
10308 gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
10309 Change float to double everywhere with the exception of 0<->1.0 alignment
10312 2001-03-19 Tor Lillqvist <tml@iki.fi>
10314 * gdk/win32/gdkdrawable-win32.c
10315 * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
10318 * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
10321 2001-03-18 Tor Lillqvist <tml@iki.fi>
10323 * gdk/win32/gdkevents-win32.c (print_window_state): New function.
10324 print_event_state, print_event): Use preprocessor macro to make
10325 code more compact. Print also GDK_WINDOW_STATE events.
10326 (synthesize_crossing_events): Remove the old #ifdeffed-out code.
10329 * gtk/makefile.mingw.in: Update.
10331 * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
10332 to catch also Cygwin.
10334 Sun Mar 18 01:15:30 2001 Tim Janik <timj@gtk.org>
10336 * gtk/gtkspinbutton.[hc]: added rc-style argument
10337 GtkSpinButton::shadow_type.
10338 removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
10339 and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
10342 * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
10344 * gtk/gtkwidget.c: quark cleanups.
10346 * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
10347 scanner with appropriate configuration, renamed GtkRcStyleClass.clone
10348 to create_rc_style() (we don't do cloning in standard OO sense).
10349 added per rc style properties.
10351 * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
10352 property values and for caching those. some cleanups.
10354 * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
10356 * gtk/gtksettings.[hc]: new file for global rc-file properties
10357 (at least currently, should get extended to support X properties
10358 and other communication mechanisms).
10360 * gtk/gtkwidget.[hc]: added style property support:
10361 (gtk_widget_class_install_style_property_parser): install style
10362 property pspec with parser function for rc-file values other
10363 than LONG, DOUBLE or STRING.
10364 (gtk_widget_class_install_style_property): same as above without
10365 parser (parsers are going to be needed quite infrequently).
10366 (gtk_widget_style_get_property): retrive style property value.
10367 (gtk_widget_style_get_valist): same as above with varargs support,
10368 has NOCOPY semantics.
10369 (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
10371 Fri Mar 16 18:24:53 2001 Jonathan Blandford <jrb@redhat.com>
10373 * demos/gtk-demo/main.c (row_activated_cb): modified to use
10374 "row_activated" signal.
10376 * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
10377 stupidity. Lets actually pass in the row with this signal...
10379 Fri Mar 16 18:01:17 2001 Jonathan Blandford <jrb@redhat.com>
10381 * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
10383 * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
10385 * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
10386 everything into the ::destroy function, and freed a lot more.
10388 2001-03-16 Havoc Pennington <hp@redhat.com>
10390 * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
10391 instead of gint16, to avoid overflow issues, since sizes > 16-bit
10394 2001-03-16 Havoc Pennington <hp@redhat.com>
10396 * Applied patch from Nils Barth (bug # 51041) to
10397 replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
10400 2001-03-15 Havoc Pennington <hp@redhat.com>
10402 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs
10403 for properties to set on the tag.
10405 * gtk/testtext.c: fixups to reflect create_tag change
10407 * gtk/gtktexttag.c (gtk_text_tag_set_property):
10408 background/foreground stipple are objects, not boxed.
10410 * demos/gtk-demo/textview.c: intellihancing
10412 Fri Mar 16 11:38:42 2001 Jonathan Blandford <jrb@redhat.com>
10414 * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
10415 braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
10417 2001-03-16 Alexander Larsson <alexl@redhat.com>
10419 * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
10420 Fix sign error with queued region translations.
10422 2001-03-15 HideToshi Tajima <tajima@happy>
10424 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
10425 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
10426 * gtk/gtkentry.c (update_im_cursor_location):
10427 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
10428 * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
10429 set_cursor_pos to set_cursor_location in GtkInputContext class
10431 Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
10433 * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
10434 the location of the cell relative to its area.
10435 * gtk/gtkcell*: modified for above change
10436 * gtk/gtktreeview.c: modified for above change.
10438 Wed Mar 14 13:58:32 2001 Jonathan Blandford <jrb@redhat.com>
10440 * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
10441 (gtk_tree_view_finalize): actually unref the model. Thanks to
10442 Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
10444 2001-03-14 Havoc Pennington <hp@redhat.com>
10446 * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
10448 * gtk/gtk.h: remove gtkdata.h
10450 * gtk/Makefile.am: remove gtkdata
10452 * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
10453 not "disconnect" on the adjustments.
10455 * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
10458 * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
10461 * configure.in: handle case where X render exists, but Pango lacks
10464 2001-03-15 Alexander Larsson <alexl@redhat.com>
10466 * gtk/gtktoolbar.[ch]:
10467 New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
10468 to add stock items to toolbars.
10471 Remove ../gdk/gdkim.h from gdk_headers.
10473 2001-03-15 Sven Neumann <sven@gimp.org>
10475 * gdk/gdkim.h: removed
10478 * gdk/x11/gdkim-x11.c: do not include gdkim.h
10480 2001-03-14 HideToshi Tajima <tajima@happy.sunsoft.eng.sun.com>
10482 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
10483 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
10484 * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
10485 set_cursor_pos() virtual method
10487 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
10488 (gtk_im_context_xim_set_cursor_pos): add implementation for
10489 set_cursor_pos() method
10491 * gtk/gtkentry.c (recompute_idle_func): set current cursor
10492 position to input methods
10494 Mon Mar 12 21:02:08 2001 Jonathan Blandford <jrb@redhat.com>
10496 * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
10499 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
10501 (_gtk_tree_data_list_alloc): use g_mem_chunk.
10502 (_gtk_tree_data_list_node_to_value): Fix to switch on
10503 G_TYPE_FUNDAMENTAL.
10504 (_gtk_tree_data_list_value_to_node): Fix to switch on
10505 G_TYPE_FUNDAMENTAL.
10506 (_gtk_tree_data_list_node_copy): Fix to switch on
10507 G_TYPE_FUNDAMENTAL.
10509 2001-03-12 Havoc Pennington <hp@redhat.com>
10511 * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione
10512 to convert to new property API. Also, change default_width and
10513 default_height get_property to return 0 as the flag value for
10514 "unset"; -1 is not a valid value for these fields.
10516 2001-03-12 Havoc Pennington <hp@redhat.com>
10518 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
10519 enum with registration for icon sizes, instead of strings.
10521 * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h,
10522 gtkwidget.c: Fix to reflect GtkIconSize
10524 2001-03-12 Alexander Larsson <alexl@redhat.com>
10526 Make GtkFB compile and link.
10528 * gdk/linux-fb/gdkdrawable-fb2.c:
10529 window->mapped to GDK_WINDOW_IS_MAPPED().
10531 * gdk/linux-fb/gdkwindow-fb.c:
10532 window->mapped to GDK_WINDOW_IS_MAPPED().
10533 Added gdk_window_shape_combine_region.
10534 Added assorted placeholders for unimplemented new GdkWindow API calls.
10536 2001-03-12 Alexander Larsson <alexl@redhat.com>
10538 * gtk/gtkfilesel.c:
10539 Add more test when converting filenames from/to utf-8.
10540 Don't allow entering text in the filename entry which isn't allowed in
10541 a filename. Just beep instead.
10543 2001-03-12 Alexander Larsson <alexl@redhat.com>
10546 Scroll using gdk_window_scroll(). Don't wait for exposes.
10547 Move the column headers in an order that makes them flash less.
10549 2001-03-10 Hans Breuer <hans@breuer.org>
10551 * gdk/gdk.def : updated
10553 * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
10554 to offseting the clip_mask at the right place
10556 * gdk/win32/gdkwindow-win32.c : don't create background brushes
10557 for all the gdkClasses, especially not for the input_only case.
10558 Otherwise flickering wont be avoidable, because we don't get
10559 WM_ERASEBKGND message for these windows.
10561 * gdk/win32/gdkevents-win32.c : initialize event->expose.region
10562 and fixed massive redraw problems apparently triggered by Alexanders
10563 recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
10564 but it seems to work quite well :-)
10566 * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
10569 Sat Mar 10 12:15:31 2001 Jonathan Blandford <jrb@redhat.com>
10571 * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
10572 (gtk_list_store_set_cell): Fix a stupid typo.
10574 Fri Mar 9 20:36:21 2001 Jonathan Blandford <jrb@redhat.com>
10576 * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
10577 select_all not work if you're in SINGLE mode (it doesn't make that
10578 much sense, anyway.)
10580 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
10581 handle types more sanely.
10582 (_gtk_tree_data_list_value_to_node): handle types more sanely.
10583 (_gtk_tree_data_list_node_copy): handle types more sanely.
10585 * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
10586 GValue better. Converts the type as well.
10588 * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
10589 GValue better. Converts the type as well.
10591 Wed Mar 7 20:47:41 2001 Owen Taylor <otaylor@redhat.com>
10593 * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
10594 gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c
10595 gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
10596 gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
10598 * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
10601 2001-03-09 Hans Breuer <hans@breuer.org>
10603 * gdk/gdk.def : updated
10605 * gdk/win32/gdkevents-win32.c : don't ask input_only windows
10608 * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
10611 * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
10612 removing and implemented Havoc's GdkWindow state functions;
10613 stick/unstick only as no-op, cause I don't know how to emulate
10616 * gtk/gtk.def : updated
10618 * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
10620 * gtk/gtktypeutils.c : #include <string.h>
10622 * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
10624 Fri Mar 9 09:31:55 2001 Tim Janik <timj@gtk.org>
10626 * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
10627 GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
10630 2001-03-09 Alexander Larsson <alexl@redhat.com>
10632 * docs/Changes-2.0.txt:
10633 Document expose event->region change and that gtk_widget_event
10634 doesn't allow passing expose events.
10637 Add region to expose event.
10640 Handle event->region in gdk_event_copy() and gdk_event_free().
10642 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
10643 Generate expose_event->region when creating expose events.
10645 * gdk/x11/gdkevents-x11.c:
10646 Generate expose events with regions when translating X events.
10648 * gtk/gtkcontainer.[ch]:
10649 Default expose handler that propagates expose events to NO_WINDOW
10650 children. New function gtk_container_propagate_expose()
10652 * gtk/gtkwidget.[ch]:
10653 Moved gtk_widget_event implementation to gtk_widget_event_internal.
10654 gtk_widget_event calls gtk_widget_event_internal but doesn't allow
10655 expose events. New function gtk_widget_send_expose() to send expose
10656 events. New function gtk_widget_region_intersect() to calculate
10657 window/region intersections.
10659 * gtk/gtkmain.c (gtk_main_do_event):
10660 Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
10661 Use gtk_widget_send_expose() to send expose events.
10666 * gtk/gtkimagemenuitem.c:
10671 Remove expose handler, using the default container implementation
10675 * gtk/gtkcheckbutton.c:
10676 * gtk/gtkeventbox.c:
10678 * gtk/gtkhandlebox.c:
10680 * gtk/gtklistitem.c:
10682 * gtk/gtkmenubar.c:
10683 * gtk/gtkmenuitem.c:
10684 * gtk/gtknotebook.c:
10685 * gtk/gtkoptionmenu.c:
10687 * gtk/gtkscrolledwindow.c:
10688 * gtk/gtktogglebutton.c:
10689 * gtk/gtktoolbar.c:
10690 * gtk/gtktreeitem.c:
10691 * gtk/gtkviewport.c:
10692 Chain expose handler to parent class handler. Use
10693 gtk_container_propagate_expose() to propagate exposes.
10695 * gtk/gtkclist.c (check_exposures):
10696 * gtk/gtktext.c (process_exposes):
10697 Use gtk_widget_send_expose instead of gtk_widget_event.
10699 Thu Mar 8 19:40:28 2001 Jonathan Blandford <jrb@redhat.com>
10701 * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
10703 Thu Mar 8 19:18:27 2001 Jonathan Blandford <jrb@redhat.com>
10705 * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
10706 unref the nodes. Fixes bug #50058.
10708 * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
10709 "::ref_iter" to "::ref_node".
10710 (gtk_tree_model_unref_node): change "::unref_iter" to
10711 "::unref_node". Fixes bug #50064.
10713 Thu Mar 8 17:40:09 2001 Jonathan Blandford <jrb@redhat.com>
10715 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
10716 support for invisible cells.
10717 (gtk_tree_view_bin_expose): ditto
10719 Thu Mar 8 16:36:00 2001 Jonathan Blandford <jrb@redhat.com>
10721 * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
10724 * tests/testtreefocus.c (main): New test file.
10726 * tests/testtreeview.c: update to latest glib changes.
10728 * tests/testtreecolumns.c: update to latest glib changes.
10730 Thu Mar 8 18:13:20 2001 Tim Janik <timj@gtk.org>
10732 * gtk/testgtk.c: re-enabled event watcher emission hooks.
10734 Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org>
10736 * *.c: added accumulator data argument to g_signal_newc()
10739 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model):
10740 * gtk/gtktreeview.c (gtk_tree_view_setup_model):
10741 * gtk/treestoretest.c (make_window):
10742 s/g_signal_connect/g_signal_connectc/.
10744 * gtk/gtktextbuffer.c: completed signal arg fixups,
10745 they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
10747 Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com>
10749 * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
10752 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a
10753 ::hierarchy-changed signal when a widget changes
10754 from anchored to unanchored or vice versa.
10756 gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
10757 Use a private flag to keep track of this efficiently.
10759 2001-03-07 Havoc Pennington <hp@redhat.com>
10761 * gtk/testgtk.c (create_spins): uglify so that size request gets
10764 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
10765 request on values for upper/lower, completes #6152
10767 Wed Mar 7 20:07:22 2001 Owen Taylor <otaylor@redhat.com>
10769 * Makefile.am: Remove gtk-config-2.0 again.
10770 (Grrrr, pkg-config. And stops make loops.)
10772 Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
10774 * gtk/gtksignal.[hc]: removed old emission hook API.
10776 * docs/Changes-2.0.txt: fixed sections.
10778 * gtk/gtktextbuffer.c: signal arg fixups.
10780 2001-03-07 Havoc Pennington <hp@redhat.com>
10782 * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
10784 * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
10785 here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
10786 of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
10787 validation and the redraw which is higher priority than the
10790 2001-03-07 Havoc Pennington <hp@redhat.com>
10792 * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
10793 (gtk_entry_set_property): remove trailer
10795 * gtk/gtkentry.c (gtk_entry_set_width_chars):
10796 (gtk_entry_get_width_chars): new functions, to set size request to
10797 a given number of characters
10799 * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
10801 * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
10802 (gtk_dialog_get_has_separator): new function
10803 (run_delete_handler): fix to not emit "response" signal
10804 because we already did in the delete event handler installed
10805 at dialog creation time.
10807 * gtk/gtkdialog.h: add a has_separator property,
10808 add GTK_DIALOG_NO_SEPARATOR flag
10810 2001-03-07 Havoc Pennington <hp@redhat.com>
10812 * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
10813 off decorations for a window.
10815 * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
10818 * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function
10819 to get location of PangoLayout inside the label, closes #51198
10821 * gtk/testgtk.c (create_bbox): fix up button box usage
10823 * gtk/testcalendar.c (create_calendar): fix up button box usage
10825 * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
10827 * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
10829 * gtk/gtkhbbox.h: deprecations
10831 * gtk/gtkvbbox.h: deprecations
10833 * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
10834 emulate deprecated gtk_button_box_get_spacing
10836 * gtk/gtkbbox.h: deprecate some useless functions, remove entirely
10837 the "set global default" functions
10838 (struct _GtkButtonBox): remove "spacing" field, use the one from
10841 * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
10843 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
10844 render the icon, return the missing image icon.
10846 * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
10847 image icon if the load fails.
10849 * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
10850 when no image is found; should be the Netscape "missing image"
10851 icon eventually but for now is a random image
10853 * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the
10854 role for the session manager
10856 * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
10858 * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
10859 GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
10861 * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
10863 Wed Mar 7 13:24:57 2001 Tim Janik <timj@gtk.org>
10865 * gtk/*.c: marshaller fixes.
10867 * gtk/gtkmarshal.list: extreme cleanup.
10869 * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
10870 param spec for now.
10872 * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
10875 * gtk/gtktypeutils.[hc]: updates to GLib API changes.
10876 special cased autogenerated boxed types from gtktypebuiltins_ids.c
10877 which are not reference counted:
10878 GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
10879 PangoFontDescription, GtkTreeIter and GtkTreePath.
10881 Thu Mar 1 03:58:56 2001 Tim Janik <timj@gtk.org>
10883 * gtk/gtktreeselection.h:
10884 * gtk/gtktreemodel.c:
10885 * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
10886 file should be included directly, and gobject/gmarshal.h
10887 as well as gtk/gtkmarshal.h even can't be included directly.
10889 * Makefile.am: grr, install gtk-config-2.0.
10894 * gtk/gtkitemfactory.c: use g_object_connect() instead of
10895 passing "*signal*::*" args to gtk_widget_set().
10897 * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
10899 * gtk/*.c: removed trailer arg from property setters and getters.
10902 2001-03-07 Alexander Larsson <alexl@redhat.com>
10904 * gtk/gtklabel.c (set_markup): Removed warning
10906 Tue Mar 6 19:59:12 2001 Jonathan Blandford <jrb@redhat.com>
10908 * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
10909 field to allow you to hide cell renderers.
10911 * gtk/gtkcellrenderer.c: Add support for invisible cells.
10913 * gtk/gtktreeview.c: Add support for invisible cells.
10915 Tue Mar 6 17:25:07 2001 Jonathan Blandford <jrb@redhat.com>
10917 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
10918 Add "clicked" signal back to columns.
10920 * ChangeLog: remove conflict markers.
10922 Tue Mar 6 10:45:45 2001 Owen Taylor <otaylor@redhat.com>
10924 * gtk/gtkbutton.c: Add animation of activation by, on
10925 activate, pressing the button, and adding a timeout that
10926 releases the button after 250ms or on key release and
10927 emits ::clicked. (#51501)
10929 * gtk/gtkdialog.c: Bit of a hack - for buttons in the
10930 action area, we connect to ::clicked instead of ::activate
10931 so the dialog stays up through the animation.
10933 Mon Mar 5 16:38:15 2001 Owen Taylor <otaylor@redhat.com>
10935 * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
10936 check the ignore_enter flag for the menu shell that
10937 the item is actually a child of, not for attached
10940 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
10942 * gtk/gtkmain.c (gtk_propagate_event): Only do special
10943 special key-press grab handling for widgets within
10944 GtkWindows. Otherwise, fall through to normal case.
10946 This prevents key events being sent twice to GtkInvisible
10947 widgets, which can cause all sorts of mischief.
10949 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
10951 * gtk/gtkmain.c (gtk_propagate_event): When a grab
10952 widget is in effect, give the grab widget a first
10953 crack at KEY_PRESS/RELEASE events. (#424)
10955 2001-03-06 James Henstridge <james@daa.com.au>
10957 * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
10958 offset for the window_state_event to point at window_state_event
10959 rather than no_expose_event.
10961 Mon Mar 5 19:10:15 2001 Jonathan Blandford <jrb@redhat.com>
10963 * gtk/gtkimmodule.h: fix busted /* comment */
10965 Mon Mar 5 15:07:05 2001 Jonathan Blandford <jrb@redhat.com>
10967 * gtk/gtktreeview.c: Apply patch from John Margaglione to add
10970 Mon Mar 5 14:55:19 2001 Jonathan Blandford <jrb@redhat.com>
10972 * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
10973 add object properties.
10975 * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
10976 to add object properties.
10978 * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
10981 * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
10982 add object properties.
10984 * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
10987 Mon Mar 5 14:38:54 2001 Jonathan Blandford <jrb@redhat.com>
10989 * gtk/gtktreemodel.c: renamed "child_toggled" to
10990 "has_child_toggled".
10992 * gtk/gtktreeview.c: Handle removing columns better. Updated to
10993 handle new signal name.
10995 * gtk/gtktreestore.c: Updated to handle new signal name.
10996 * gtk/gtklisttore.c: Updated to handle new signal name.
10997 * gtk/gtktreemodelsort.c: Updated to handle new signal name.
10999 2001-03-05 Alexander Larsson <alexl@redhat.com>
11001 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
11002 Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
11004 2001-03-05 Michael Natterer <mitch@gimp.org>
11006 * gtk/gtklabel.c: Made the "parent_class" pointer static. The
11007 pixbuf-engine coincidentially also failed to make one of it's
11008 parent_class pointers static, causing overwriting of GtkLabel's
11009 parent_class pointer in pixbuf_style_class_init().
11010 (Will commit the fix to the pixbuf-engine too).
11012 2001-03-05 Alexander Larsson <alexl@redhat.com>
11015 Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
11016 New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
11017 gdk_window_set_icon_list for net wmspec functionality.
11019 * gdk/x11/gdkwindow-x11.c:
11020 Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
11021 Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
11022 gdk_window_set_icon_list.
11023 Added gdk_wmspec_change_state helper function and used it in the code.
11024 Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
11026 * gtk/gtkdialog.c (gtk_dialog_init):
11027 Set GDK_WINDOW_TYPE_HINT_DIALOG.
11029 * gtk/gtkhandlebox.c (gtk_handle_box_realize):
11030 Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
11033 new function gtk_window_set_type_hint.
11034 On realize, set type hint and modal hint.
11037 Added type_hint field and gtk_window_set_type_hint.
11039 2001-03-05 Alexander Larsson <alexl@redhat.com>
11041 * gtk/gtklabel.[ch]:
11042 Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
11043 New function gtk_label_get_accel_keyval () to get the underline accelerator
11044 of the label. Setting the label pattern overrides other attributes.
11046 Mon Mar 5 14:51:10 MET 2001 Sven Neumann <sven@gimp.org>
11048 * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
11049 Added missing initializers to gtk_rc_style_init().
11051 Sun Mar 04 07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
11053 * gtk/gtktextview.c: fixed bug #51097 about setting
11054 gtk_text_view_set_border_window_size() if the widget is
11057 Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
11059 * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
11061 * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
11062 comment. Won't do to have duplicated doc comments between
11063 the platform subdirs.
11065 Sat Mar 3 16:26:33 2001 Owen Taylor <otaylor@redhat.com>
11067 * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c
11068 gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
11070 Detectable auto-repeat - make a repeating key generate
11071 press/press/press/release instead of press/release pairs.
11073 If we have Xkb and XkbSetDectableAutoRepeat supports
11074 that, we do it that way. Otherwise, when we get
11075 a release event, we check ahead with XPending to see
11076 if the next key is a KeyPress with the same keycode
11077 and timestamp. (Not 100% reliable, but pretty close.)
11079 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
11081 * gtk/gtkmain.c (gtk_propagate_event): Only do special
11082 special key-press grab handling for widgets within
11083 GtkWindows. Otherwise, fall through to normal case.
11085 This prevents key events being sent twice to GtkInvisible
11086 widgets, which can cause all sorts of mischief.
11088 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
11090 * gtk/gtkmain.c (gtk_propagate_event): When a grab
11091 widget is in effect, give the grab widget a first
11092 crack at KEY_PRESS/RELEASE events. (#424)
11094 Sat Mar 3 15:39:49 2001 Owen Taylor <otaylor@redhat.com>
11096 * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
11097 to extend the selection. (Roughly based on patch
11098 from Jay Cox, #50939)
11100 * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
11101 to properly handle previous GDK_BUTTON_PRESS.
11102 (Patch from Jay Cox, #50938)
11104 * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
11105 '\0' back along with the deleted text. (#51148)
11107 Mon Jan 22 14:31:29 2001 Owen Taylor <otaylor@redhat.com>
11109 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
11110 the group when extracting it from the X keyboard event.
11112 * modules/input/Makefile.am modules/input/imipa.c:
11113 Simple module for entering IPA. (Do we need a
11114 gtk-stupid-input-tricks CVS module?)
11116 Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
11118 * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
11121 * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
11123 * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
11124 is no focus widget for the dialog currently, grab the focus as well
11127 * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
11128 the action area's children to iterate through, not the
11131 Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
11133 * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
11134 Add plug-socket tests. (Won't work worth a darn until I commit
11135 the rest of the plug-socket changes, but no reason these
11136 can't go into CVS now.)
11138 2001-03-02 Havoc Pennington <hp@redhat.com>
11140 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
11141 _gdk_region_get_xrectangles()
11143 * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
11145 * gtk/testgtk.c (create_shapes): add test for shape_combine_region
11147 * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
11148 function, contributed by Ron Steinke
11150 * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
11151 gdk_net_wm_supports
11153 * gdk/gdkregion-generic.c (gdk_region_get_rectangles):
11154 New function, contributed by Ron Steinke
11156 * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function,
11157 used to line up the text in the entry when using the entry for
11158 editable sheet cell hacks
11160 * gtk/testgtk.c (create_entry): test the activate_default setting
11163 * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to
11164 cause the entry to activate the default button for a dialog when
11166 (gtk_entry_get_activates_default): new function
11168 Wed Feb 28 19:10:43 2001 Owen Taylor <otaylor@redhat.com>
11170 * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
11171 Hwang to move call to sync_selection() up a few lines
11172 to before the row list is modified, to fix crash when
11173 removing rows in the undo_selection list.
11175 (Test case provided by Daniel Elstner:
11177 http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
11179 Fri Feb 23 15:06:48 2001 Owen Taylor <otaylor@redhat.com>
11181 * gtk/gtktree.c (gtk_tree_class_init): Do the setting
11182 of tree->root_tree in parent_set rather than _map(),
11183 fixing #50892 in a bit better manner.
11185 Thu Feb 22 17:07:58 2001 Owen Taylor <otaylor@redhat.com>
11187 * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
11189 Tue Feb 2 11:22:33 2001 Jody Goldberg <jgoldberg@home.com>
11191 * gtk/gtkstyle.c : Remove duplicate fwd decl for
11192 gtk_default_draw_shadow.
11194 ue Feb 20 11:40:58 2001 Owen Taylor <otaylor@redhat.com>
11196 * gdk/gdkimage.c (gdk_image_new): Remove excess
11197 warning, make warnings more verbose, treat a error
11198 in shmat as permanent, and don't try again.
11199 (#51163, Ed Randall.)
11201 Mon Feb 19 20:15:28 2001 Owen Taylor <otaylor@redhat.com>
11203 * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
11204 delay for the first click before starting to scroll.
11205 (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
11207 * gtk/gtktext.c: GtkText should have I-beam cursor.
11208 (based on gtk-enf-990513-1.patch, Eric Fisher.)
11210 Mon Feb 19 16:42:19 2001 Owen Taylor <otaylor@redhat.com>
11212 * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
11213 cleanup to remove some references to unused
11214 ->xoffset, ->yoffset.
11216 Mon Feb 19 14:20:36 2001 Owen Taylor <otaylor@redhat.com>
11218 * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
11219 mask. (#51039, fix from Martin Maierhofer)
11221 Fri Feb 16 20:09:42 2001 Owen Taylor <otaylor@redhat.com>
11223 * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
11224 for unshifted + and shifted = for non-us keyboards.
11225 Make <Control>+ and <Control>- work as well as
11226 <Control>KP_Plus, <Control>KP_Minus for recursive
11227 open/close. (#2682, René Seindal)
11229 Fri Feb 16 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
11231 * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
11232 the active menu item before deactivating the menu,
11233 so gtk_menu_popdown doesn't change the history. (#50964)
11235 Fri Feb 16 15:55:22 2001 Owen Taylor <otaylor@redhat.com>
11237 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
11238 draw lines with text_gc rather than black_gc.
11239 (Patch from Vlad Harchev <hvv hippo ru>, #50926)
11241 Thu Mar 1 19:50:56 2001 Jonathan Blandford <jrb@redhat.com>
11243 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
11244 Move handling of buttons fully in gtktreeviewcolumn. This code is
11245 less interrelated then it was, but it still requires the
11246 GtkTreeView to map it.
11248 * test/testtreecolumn.c: Now I can add a column to one view,
11249 remove it, add it to the another view, remove it, then re-add it
11250 to the first. Nifty.
11252 Thu Mar 1 13:14:27 GMT 2001 Tony Gale <gale@gtk.org>
11254 * docs/tutorial/gtk-tut.sgml: Minor corrections
11256 Wed Feb 28 16:36:46 2001 Jonathan Blandford <jrb@redhat.com>
11258 * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
11261 2001-02-28 Havoc Pennington <hp@redhat.com>
11263 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
11265 (gtk_widget_draw_focus): remove this function; we could instead
11266 make it just gtk_widget_draw(), but in most cases I think the
11267 result would be broken user code, so think it's better to have
11268 that code not compile and get fixed
11269 (gtk_widget_draw_default): ditto
11271 * gtk/gtkwidget.c: Add default handlers for focus_in_event and
11272 focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
11274 * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
11275 widgets lose/get the default, instead of calling draw_default
11277 * docs/Changes-2.0.txt: note about all this
11279 Then fixed every widget in GTK, I won't list all the filenames.
11281 Tue Feb 27 19:32:53 2001 Jonathan Blandford <jrb@redhat.com>
11283 * gtk/gtktreemodel.c (deleted_callback): Proxy out to
11284 _gtk_tree_row_reference_deleted.
11285 (inserted_callback): Proxy out to
11286 _gtk_tree_row_reference_inserted.
11287 (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
11288 get around signal emission ordering problem.
11290 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11291 fix to work with SINGLE
11292 (_gtk_tree_selection_internal_select_node): Major sanitization on
11293 selections. SINGLE now seems to work.
11295 * tests/Makefile.am: add testtreecolumn.c:
11297 * tests/testtreecolumn.c: New test. Mostly points out selection
11298 bugs currently, but will test columns later.
11300 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
11301 selection bug. I hate touching this code -- it's scary.
11303 2001-02-26 Havoc Pennington <hp@redhat.com>
11305 * gtk/testgtk.c: test the window state stuff
11307 * gtk/gtkwindow.c (gtk_window_present): new function, makes a
11308 window come to the user's attention as if it were just created
11309 (gtk_window_iconify): new function
11310 (gtk_window_deiconify): new function
11311 (gtk_window_stick): new function
11312 (gtk_window_unstick): new function
11313 (gtk_window_maximize): new function
11314 (gtk_window_unmaximize): new function
11316 * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
11318 * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
11320 * gdk/x11/gdkevents-x11.c: create window state events when
11322 (gdk_wmspec_supported): new function
11324 * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
11325 iconification before showing the window
11326 (gdk_window_deiconify): new function
11327 (gdk_window_stick): new function
11328 (gdk_window_unstick): new function
11329 (gdk_window_maximize): new function
11330 (gdk_window_unmaximize): new function
11332 * gdk/gdkwindow.c: store the window state in the window;
11333 change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
11335 (gdk_window_get_state): return the current window state
11337 * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
11338 (gdk_event_get_state): handle GDK_WINDOW_STATE
11339 (gdk_synthesize_window_state): function to create the window state
11342 * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
11343 event, for changes to "window state" such as maximized, sticky,
11346 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
11349 * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function,
11350 finds out if we support a given WM spec hint
11352 Tue Feb 27 13:37:38 GMT 2001 Tony Gale <gale@gtk.org>
11354 * docs/faq/gtk-faq.sgml: New question re memory leaks.
11356 2001-02-25 Hans Breuer <hans@breuer.org>
11358 * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
11359 cause we want to loose those prototypes only in the latter case
11361 * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
11362 GdkPixmapImplWin32 because it itsn't derived from it. Use the
11363 impl member variable instead
11365 * gtk/gtk.def : updated
11368 * gtk/gtkmenus.c : include <string.h> for memset ()
11370 * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
11371 for everthing built here, but for gtk-x.x.dll only. This solves
11372 problem of indifferent gtk type definitions
11374 Sat Feb 24 20:11:39 2001 Jonathan Blandford <jrb@redhat.com>
11376 * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
11378 Fri Feb 23 17:50:13 2001 Jonathan Blandford <jrb@redhat.com>
11380 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
11381 column that is exposed.
11383 (_gtk_tree_view_update_size): Changed name from set_size, and
11384 changed function to do more work, and not force people calling it
11385 to figure out the size. Simplifies a lot of code elsewhere.
11387 2001-02-23 Alexander Larsson <alexl@redhat.com>
11389 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
11390 return solid masks for xpms that have no transparent color.
11391 This makes the ..._create_from_xpm... API backwards
11394 2001-02-23 Tor Lillqvist <tml@iki.fi>
11396 * README.win32: Update. Mention the gtk-1-3-win32-production
11399 * gdk/win32/bdfcursor.c: New file. A program that generates
11400 xcursors.h. Thanks to Stefan Ondrejicka.
11402 * gdk/win32/xcursors.h: New file, contains the X cursor font in a
11405 * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
11407 * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
11408 function, uses xcursors.h.
11409 (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
11410 cursor from inline data instead of using LoadCursor() to generate
11411 it from a resource.
11413 * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
11414 event, must check the Windows message for mouse button state, as
11415 the GDK event state might not have been built if it is
11416 undelivered. Remove one goto.
11418 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
11419 SetCursor() if the current cursor as returned by GetCursor() is
11420 the window's previous cursor. The ChildWindowFromPoint() test
11421 apparently didn't work correctly.
11423 * gdk/win32/rc/*.cur: Remove.
11425 * gdk/win32/rc/gdk.rc.in: Remove cursors.
11427 * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
11429 * gtk/makefile.{mingw,msc}.in: Updates.
11431 Wed Feb 21 20:56:50 2001 Jonathan Blandford <jrb@redhat.com>
11433 * gtk/gtktreemodel.h: add functions for signal emission.
11435 * gtk/gtktreestore.c: move to use above functions instead of
11438 * gtk/gtkliststore.c: ditto
11440 Wed Feb 21 15:41:34 2001 Jonathan Blandford <jrb@redhat.com>
11442 * gtk/gtktreestore.c: removed signals. Moved to inherit from
11443 GObject instead of GtkObject.
11445 * gtk/gtkliststore.c: ditto.
11447 * gtk/gtktreemodelsort.c: ditto.
11449 * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
11450 GtkTreeModelIface, instead of in each model.
11452 2001-02-21 Havoc Pennington <hp@redhat.com>
11454 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
11455 unbreak this function
11457 * gtk/gtkentry.c: apply patch from Lee Mallabone to add object
11460 * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
11463 * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object
11466 * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
11467 mean unset the max length
11469 Wed Feb 21 14:23:05 2001 Jonathan Blandford <jrb@redhat.com>
11471 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
11472 Changed name to be set_cell_data_func to make it clear what
11473 the functino does. Close bug #51069.
11475 Tue Feb 20 16:49:00 2001 Jonathan Blandford <jrb@redhat.com>
11477 * gtk/testgtk.c (main): Remove turning on of profiling malloc,
11478 have memory actually freed. Keeps box running longer.
11480 2001-02-21 Alexander Larsson <alexl@redhat.com>
11482 * gtk/gtkseparatormenuitem.[ch]:
11483 Added new menu separator item. The drawing and size handling
11484 is still done in GtkMenuItem, but the API is a bit more sane.
11487 Add gtkseparatormenuitem.[ch].
11490 Add gtkseparatormenuitem.h.
11493 * gtk/gtkmenufactory.c:
11494 * gtk/gtktextview.c:
11495 Use the new API for menu separators.
11497 * demos/gtk-demo/menus.c (create_menu):
11498 Add some GtkSeparatorMenuItem demo code.
11500 2001-02-20 Havoc Pennington <hp@redhat.com>
11502 * gtk/gtkaspectframe.c: Convert to new property API, patch from
11505 * gtk/gtkarrow.c: Convert to new property API, patch from
11508 Tue Feb 20 14:26:41 2001 Jonathan Blandford <jrb@redhat.com>
11510 * tests/testtreeview.c (toggled_callback): fix to reflect change
11511 in GtkTreeModelStore.
11513 Tue Feb 20 12:16:12 2001 Jonathan Blandford <jrb@redhat.com>
11515 * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
11516 function to create an icon set from a pixbuf.
11518 2001-02-20 Alexander Larsson <alexl@redhat.com>
11520 * gtk/gtkcellrenderertext.[ch]:
11521 Add a "markup" property.
11523 * gtk/treestoretest.c:
11524 Use the markup property, remove some leftover stuff from
11525 GtkTreeModelMapping.
11527 2001-02-20 Alexander Larsson <alexl@redhat.com>
11529 * gtk/gtklabel.c (gtk_label_set_selectable):
11530 Queue a redraw if the selectable setting was changed.
11532 2001-02-20 Alexander Larsson <alexl@redhat.com>
11534 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
11535 Actually copy the whole gc, not just the public parts.
11537 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
11538 GDK_WINDOW_TEMP are not toplevel. Fixes selectable
11541 2001-02-19 Havoc Pennington <hp@pobox.com>
11543 * gdk/gdkwindow.c: docs
11545 * gdk/gdkrgb.c: docs
11547 * gdk/gdkregion-generic.c: docs
11549 * gdk/gdkgc.c (gdk_gc_set_values): docs
11551 * gdk/gdkdraw.c: docs
11553 * gdk/gdkdrawable.h: deprecate drawable get/set data
11555 Mon Feb 19 20:37:35 2001 Jonathan Blandford <jrb@redhat.com>
11557 * demos/gtk-demo/dialog.c: Add simple new demo.
11559 2001-02-19 Havoc Pennington <hp@redhat.com>
11561 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
11562 insert_child_anchor signal, bug #50245
11564 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
11565 from create_child_anchor, so the anchor is passed in
11567 * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
11568 (_gtk_widget_segment_new): have the child anchor object passed in,
11569 instead of creating it.
11571 * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
11572 to gtk_text_buffer_get_modified
11574 2001-02-19 Havoc Pennington <hp@redhat.com>
11576 * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
11577 changed GLib without fixing GTK
11579 * gtk/gtkrange.h: Rename all the stupid implementation detail
11580 functions to have an underscore in front. Most of them should
11581 probably just go away, but for starters don't export them.
11584 2001-02-19 Havoc Pennington <hp@redhat.com>
11586 * gdk/gdkcolor.h: test was backward, so deprecated functions were
11587 excluded by default
11589 * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
11590 clean up the old code a bit
11592 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
11595 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
11596 draw inconsistent state
11598 * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
11599 (create_menu): add inconsistent test
11601 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
11603 (gtk_check_menu_item_get_inconsistent): new function
11604 (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
11605 state (using etched in for now)
11607 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
11608 draw inconsistent state
11610 * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
11611 function, used when the user has selected a range of stuff in
11613 (gtk_toggle_button_get_inconsistent): accessor for that
11614 (gtk_toggle_button_paint): draw inconsistent state (etched in?
11615 don't know what else to do)
11617 2001-02-19 Hans Breuer <hans@breuer.org>
11619 * gtk/gtk.def : updated exported symbols
11621 * gtk/makefile.msc.in : updated
11623 * gtk/gtkstyle.c (gtk_style_realize) : gets called without
11624 a colormap, when invoked from testgtk::entry. I'm not sure where
11625 the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
11626 avoids immediate crashing ...
11628 * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
11631 * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
11632 0 parameter. At least msvc doesn't like macros with var args.
11633 I simply removed the extra 0, was it a feature or a typo ?
11635 * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
11636 removed the extra indirection from the GtkTreeViewColumnFunc parameter,
11637 because the value assignment to the internal struct wasn't working.
11638 I'm not absolutely sure. The problem could have been resolved by
11639 changing the "func" declartion in the struct, but was the pointer
11640 to the function pointer intended ?
11642 * gtk+/gtk/gtktreedatalist.c : include gboxed.h
11644 * gdk/gdk.def : updated exported symbols
11646 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
11647 only use SetDIBitsToDevice if there is a palette at the drawable
11648 and the image is GDK_VISUAL_PSEUDO_COLOR
11650 * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
11652 * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
11654 * gdk/*/makefile.msc : updated
11656 2001-02-19 Havoc Pennington <hp@redhat.com>
11658 * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
11659 GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
11661 * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
11662 (gdk_key_repeat_restore): nuke
11664 * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
11665 (gdk_init_check): no atexit func
11667 * gdk/gdkrgb.h: mark some stuff deprecated
11669 * gdk/gdkcolor.h: mark some stuff deprecated
11671 * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
11673 * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
11675 2001-02-16 Havoc Pennington <hp@redhat.com>
11677 * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
11680 * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
11681 steps, and add Ctrl-arrow shortcuts for paging visually as with
11682 HScale, since Page Up and Page Down move logically.
11684 * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
11685 GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
11687 * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
11689 (gtk_range_scroll): handle the visual steps
11691 * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
11694 * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
11695 steps, not the logical ones.
11697 * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
11698 (scroll_vertical): handle up/down steps
11700 2001-02-19 Alexander Larsson <alexl@redhat.com>
11702 * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
11703 Copy data and free data with free().
11705 * gdk-pixbuf/gdk-pixbuf.c:
11706 * gdk-pixbuf/io-jpeg.c:
11707 * gdk-pixbuf/io-png.c:
11708 Use g_try_malloc/g_free instead malloc/free.
11710 * gdk-pixbuf/test-gdk-pixbuf.c:
11711 Must... initialize... gobject...
11713 * gdk-pixbuf/pixops/timescale.c:
11714 * gtk/gtkcalendar.c:
11715 Use g_malloc instead of malloc.
11717 2001-02-19 Alexander Larsson <alla@lysator.liu.se>
11720 Comment out property assignments, these don't work yet.
11722 2001-02-17 Havoc Pennington <hp@pobox.com>
11724 * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
11727 2001-02-17 Havoc Pennington <hp@pobox.com>
11729 * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
11730 shadowed variables that had broken size request in some cases,
11731 leading to bogus tooltips (#50996)
11733 2001-02-06 Jon K Hellan <hellan@acm.org>
11735 Implement fast browsing of tooltips, bug #50619
11737 * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
11740 * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
11741 use_sticky_delay and last_popdown.
11742 (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
11744 (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
11746 (gtk_tooltips_recently_shown): New static function. Return true
11747 if < sticky_delay has elapsed since last popdown.
11748 (gtk_tooltips_event_handler): Display window after sticky_delay
11749 (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
11750 since last popdown.
11752 2001-02-17 Havoc Pennington <hp@pobox.com>
11754 * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
11755 instead of (). #6394
11757 * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
11758 G_CONST_RETURN, make it return by reference, #50473
11760 Sat Feb 17 06:47:27 2001 Tim Janik <timj@gtk.org>
11762 * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
11763 generated ENTER_NOTIFY event with 0, otherwise not explicitely
11764 setup fields contain garbage (e.g. subwindow, breaking
11765 gdk_drawable_ref() upon event copy).
11766 (gtk_menu_stop_navigating_submenu_cb): same here.
11768 * gtk/gtklist.c (gtk_list_vertical_timeout):
11769 * gtk/gtklist.c (gtk_list_horizontal_timeout):
11770 * gtk/gtkclist.c (vertical_timeout):
11771 * gtk/gtkclist.c (horizontal_timeout): change direct assignment
11772 default-zero-intialization for unions to memset(,0,), as unions are
11773 not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
11774 has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
11776 * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
11777 g_closure_sink() warning.
11779 * gtk/gtktreemodel.c (gtk_tree_model_get_valist):
11780 * gtk/gtktreestore.c (gtk_tree_store_set_valist):
11781 * gtk/gtkliststore.c (gtk_list_store_set_valist):
11782 fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
11784 Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com>
11786 * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
11787 gtk_*_store_get, and moved to GtkTreeModel.
11789 * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
11791 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
11793 * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
11795 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
11798 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
11799 freeze/thaw notify between setting all the properties for a cell.
11801 * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
11803 2001-02-15 Havoc Pennington <hp@redhat.com>
11805 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
11806 the X coordinates so they're with respect to the line, rather than
11807 with respect to the layout.
11809 * gtk/gtkalignment.c: Convert to new property API, patch from Lee
11812 * gtk/testgtk.c (create_range_controls): add vscale tests,
11815 * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix
11818 * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
11820 * gtk/gtktextiter.h (gtk_text_iter_is_last): rename
11821 gtk_text_iter_is_end
11823 * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
11824 rename gtk_text_buffer_get_end_iter
11826 * gtk/testgtk.c (create_labels): Add test for selectable
11828 * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
11829 the selection stuff. This code is kind of broken since it doesn't
11830 use the theme engine.
11832 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
11833 fix infinite loop and y offset problem
11834 (gdk_draw_layout_line_with_colors): fix foreground color handling
11836 * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag
11837 that makes the label selectable.
11839 * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
11840 layout when the style is set, since fonts etc. could have changed.
11842 Fri Feb 16 14:22:05 2001 Jonathan Blandford <jrb@redhat.com>
11844 * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
11846 * gtk/gtktreemodelsimple.[ch]: removed.
11848 2001-02-16 Alexander Larsson <alexl@redhat.com>
11850 * gtk/gtktreemodelmapping.[ch]:
11851 New files. Implement GtkTreeModelMapping.
11854 Add gtktreemodelmapping.[ch].
11857 Add gtktreemodelmapping.h
11859 * gtk/treestoretest.c:
11860 Test the GtkTreeModelMapping
11862 Tue Feb 13 13:16:09 2001 Jonathan Blandford <jrb@redhat.com>
11864 * demos/gtk-demo/panes.c (create_pane_options): If we're going to
11865 have a demo, we might as well pass in real values. Thanks to
11866 clahey for pointing this out.
11868 2001-02-14 Havoc Pennington <hp@pobox.com>
11870 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
11871 "static" to a private function
11872 (gtk_image_menu_item_class_init): remove destroy handler,
11873 add "image" object property
11875 2001-02-13 Alexander Larsson <alla@lysator.liu.se>
11877 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
11878 Add a shortcut if the window and the current clip_region doesn't
11879 overlap. This is needed when there are a lot of windows in a
11880 window. The layout test in testgtk is a good test.
11882 * gdk/linux-fb/gdkwindow-fb.c:
11885 2001-02-13 Sven Neumann <sven@convergence.de>
11887 * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
11889 2001-02-13 Alexander Larsson <alexl@redhat.com>
11891 * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
11892 Don't reference last_cursor if it is null. Fixes crash when rotating
11893 the screen before having moved the mouse.
11895 * gdk/linux-fb/gdkcc-fb.c: Zapp!
11897 * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
11899 * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw
11900 when using 90 or 270 degrees rotation.
11902 2001-02-12 Havoc Pennington <hp@pobox.com>
11904 * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where
11905 it always set the foreground, even if we were only using
11907 (gdk_draw_layout_line_with_colors): new function, allow
11909 (gdk_draw_layout_with_colors): new function, allow override
11911 (gdk_pango_layout_line_get_clip_region): function to get the clip
11912 region for a logical text range
11913 (gdk_pango_layout_get_clip_region): get the clip region for a
11916 * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
11917 (gdk_colormap_new): fix call to gdk_colormap_sync() so it has
11918 the right number of arguments.
11920 * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
11921 enhance the function to check that node data corresponds to a
11922 view still belonging to the tree.
11924 * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the
11926 (gtk_tree_view_inserted): ditto
11927 (gtk_tree_view_child_toggled): ditto
11929 * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
11930 simplify this code.
11932 * gtk/gtkcellrenderertext.c (get_layout): fix leak of
11935 * demos/gtk-demo/main.c (load_file): Fix leak of a GString
11937 * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
11939 * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
11940 size in the size request
11941 (gtk_menu_bar_size_allocate): consider toggle size here
11943 * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
11944 that displays a widget in the toggle slot
11946 * gtk/testgtk.c: test GtkImageMenuItem
11948 * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
11950 * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
11951 request and allocation
11953 * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
11955 * gtk/gtkcheckmenuitem.c
11956 (gtk_check_menu_item_toggle_size_request): ditto
11958 Mon Feb 12 23:43:30 2001 Owen Taylor <otaylor@redhat.com>
11960 * gtk/Makefile.am (gdk_headers): Remove gdkcc.h
11963 * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
11964 and refuse to initialize GTK+ if they fail.
11966 Mon Feb 12 15:02:07 2001 Owen Taylor <otaylor@redhat.com>
11968 * configure.in: Add check for gtk-doc version.
11970 Thu Feb 8 17:18:26 2001 Owen Taylor <otaylor@redhat.com>
11972 * gtk/gtklabel.c (gtk_label_size_request): Fix bug
11973 where the xpad/ypad was only being used on one side!
11975 2001-02-11 Tor Lillqvist <tml@iki.fi>
11977 * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
11978 function, copied from X11 version.
11980 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
11981 DestroyCursor failures. The reason for the problem (despite the
11982 inconsistent messages from GetLastError()) was that
11983 DestroyCursor() cannot be called while a cursor is set in a
11984 window. Set the new cursor first and then destroy the old one.
11985 Thanks to jpe@archaeopteryx.com.
11987 * gdk/win32/gdkcc-win32.c: Remove.
11989 * gdk/win32/Makefile.am: Remove from here, too.
11992 * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
11995 * gtk/makefile.mingw.in: Updates.
11997 2001-02-08 Havoc Pennington <hp@redhat.com>
11999 * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
12000 add a widget to a bin that already has a child.
12002 * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
12004 * docs/Changes-2.0.txt: note that GdkColorContext is gone.
12006 * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
12008 * gdk/gdk.h: remove gdkcc.h
12010 * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
12012 * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
12013 GdkPixbuf, since the previous implementation was GdkColorContext
12016 * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
12018 Thu Feb 8 19:00:00 2001 Jonathan Blandford <jrb@redhat.com>
12020 * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
12023 2001-02-08 Havoc Pennington <hp@redhat.com>
12025 * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
12028 2001-02-08 Havoc Pennington <hp@redhat.com>
12030 * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
12033 * demos/gtk-demo/main.c (create_tree): adjust to changes in text
12036 * demos/pixbuf-demo.c (timeout): remove deprecated
12039 * demos/testpixbuf-save.c (main): remove deprecated
12040 gtk_drawing_area_size
12042 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
12043 buttons even if the model isn't setup. gtk_tree_view_check_dirty()
12044 at the start of the allocation.
12045 (gtk_tree_view_check_dirty): handle column->button == NULL, handle
12046 unsetup or NULL model.
12048 * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
12049 even/odd/sorted cells in the tree view.
12051 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12054 * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
12055 backgrounds with draw_flat_box using different detail for even/odd
12058 * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
12059 row, so we can draw the alternating colors thing
12061 * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
12062 property from a synonym property, notify for the synonym.
12063 Also, nuke the background_gdk_set and foreground_gdk_set synonyms
12064 (gtk_text_tag_get_property): Always return the font, even if
12065 all its fields aren't set
12067 * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
12068 store the attr list; it leaves us with no way to change attributes
12069 in _render according to the render flags, and no way to implement
12070 get_property. Instead store all the specific text attributes.
12071 Separate whether an attribute is enabled from its value. Sync all
12072 properties with GtkTextTag, make them all consistent, etc.
12074 * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
12075 renderers can highlight the sort row/column
12077 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
12078 accessor functions to get values; this has the side effect of
12079 showing up which accessor functions were missing. Added those.
12081 * gtk/gtktreeviewcolumn.h: Replace set_justification with
12082 set_alignment, to be consistent with GtkLabel, GtkMisc
12084 * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
12087 * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
12089 * gtk/gtktreesortable.h: updates in here
12091 2001-02-07 Sven Neumann <sven@convergence.de>
12093 * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
12094 pango dimensions after painting the background. We used to draw
12095 gigantic flat boxes here.
12097 Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
12099 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
12100 error introduced with earlier commit) (pointed out by
12103 Mon Feb 5 12:25:06 2001 Owen Taylor <otaylor@redhat.com>
12105 * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
12106 which are no longer necessary.
12108 Mon Feb 5 13:22:54 GMT 2001 Tony Gale <gale@gtk.org>
12110 * docs/faq/gtk-faq.sgml: s/MISK/MISC/
12112 2001-02-04 Tor Lillqvist <tml@iki.fi>
12115 * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
12116 Provide dummy implementations.
12118 Sun Feb 4 07:55:17 2001 Tim Janik <timj@gtk.org>
12120 * gtk/gtksignal.h: removed gtk_signal_init() compat define.
12122 * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
12123 GTypeDebugFlags debug_flags and pass it on to g_type_init ();
12124 deprecated this function.
12126 * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
12129 Sun Feb 4 07:45:45 2001 Tim Janik <timj@gtk.org>
12131 * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
12133 2001-02-03 Havoc Pennington <hp@pobox.com>
12135 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
12136 Mikael Hermansson with patch from Mikael (if there was a toggle
12137 start one after the first character in the range, this function
12138 was broken). Bug #50380
12140 Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
12142 * configure.in: Remove confusing comment about X11.
12144 Fri Feb 2 19:21:23 2001 Owen Taylor <otaylor@redhat.com>
12146 * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
12147 regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
12149 Fri Feb 2 18:31:54 2001 Owen Taylor <otaylor@redhat.com>
12151 * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
12152 it breaks things on BSD. If you want to compile GTK+ with
12153 -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE
12154 when configuring, since GTK+ simply can't be "pure ANSI"
12155 in the header files it uses. (#8170, Greg Hudson)
12157 2001-02-02 Havoc Pennington <hp@redhat.com>
12159 * gtk/gtkwindow.c: docs
12161 * gtk/gtkwidget.c: docs
12162 (gtk_widget_set_colormap): add a reference to the colormap
12163 (gtk_widget_get_default_colormap): add a reference to the colormap
12165 * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
12167 * gtk/gtktextiter.c: docs
12169 * gtk/gtkmain.c (gtk_propagate_event): docs
12171 * gtk/gtkpaned.c (gtk_paned_get_position): docs
12172 (gtk_paned_set_position): docs
12174 * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
12175 sort interface, no implementation yet.
12177 * demos/testpixbuf.c (new_testrgb_window): replace
12178 gtk_drawing_area_size() with gtk_widget_set_usize()
12180 * demos/testpixbuf-drawable.c (main): ditto
12182 * gtk/testgtk.c: remove use of GtkStatusbarMsg
12184 * gtk/gtktextbuffer.c: docs
12186 * gtk/gtkstock.c: docs
12188 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
12190 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
12192 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
12194 * gtk/gtkimage.c: add some docs in here
12195 (gtk_image_size_request): change name of
12196 gtk_widget_render_stock_icon
12197 (gtk_image_get_icon_set): don't dup returned string
12198 (gtk_image_get_icon_set): don't dup returned string
12200 * gtk/gtkwidget.c (gtk_widget_render_icon): rename from
12201 gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
12202 and gtkiconfactory.h functions
12204 * gtk/gtkiconfactory.c: add some docs in here
12206 * gtk/gtkmain.c (gtk_get_default_language): document
12207 (gtk_get_current_event): document
12208 (gtk_get_current_event_state): document
12209 (gtk_get_event_widget): document
12211 * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
12213 * gtk/gtkcontainer.c: Add some documentation
12214 (gtk_container_add): give a more explanatory warning on adding an
12215 already-parented widget, this is kind of a FAQ and also a common
12216 typo that's easier to debug with a nice warning
12218 * gtk/gtkcellrenderertoggle.c
12219 (gtk_cell_renderer_toggle_get_active): remove, I was on crack
12220 adding this, it's useless
12221 (gtk_cell_renderer_toggle_set_active): remove
12222 (gtk_cell_renderer_toggle_get_radio): add
12224 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
12225 the NULL cell renderer, that doesn't make any sense to me.
12227 * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
12228 demo code should never use deprecated features.
12230 * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
12231 code should never use deprecated features.
12233 * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
12234 gtk_widget_queue_clear_area deprecated
12236 * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
12239 * gtk/gtklabel.h: mark gtk_label_get() deprecated
12241 * gtk/gtkimage.h: mark the legacy GtkImage functions that took
12242 a GdkImage deprecated, replaced by new consistently-named
12245 * gtk/gtkmain.h: Mark gtk_exit() deprecated
12247 * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
12249 * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string
12252 * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file,
12253 so it won't appear in docs and confuse people.
12255 * gtk/gtkprogressbar.h: Mark all the old methods deprecated
12257 * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
12258 macros deprecated. (can't mark the type itself deprecated, since
12259 GtkProgressBar is not deprecated and we need the type decl to use
12262 * gtk/gtkpixmap.h: Mark deprecated
12264 * gtk/gtkoldeditable.h: Mark deprecated
12266 * gtk/gtklist.h: Mark deprecated
12268 * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used
12269 for anything anymore.
12271 * gtk/gtkctree.h: Mark deprecated
12273 * gtk/gtkclist.h: Mark deprecated
12275 * gtk/gtkpreview.h: Mark deprecated
12277 * gtk/gtkpacker.h: Mark deprecated
12279 * gtk/gtktipsquery.h: Mark deprecated
12281 * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
12283 * gtk/gtkvruler.h: Add comment that it will move out of GTK
12285 * gtk/gtkhruler.h: Add comment that it will move out of GTK
12287 * gtk/gtkruler.h: Add comment that it will move out of GTK
12289 * gtk/gtkgamma.h: Add comment that it will move out of GTK
12291 * gtk/gtkcurve.h: Add comment that it will move out of GTK
12293 Fri Feb 2 17:16:09 2001 Owen Taylor <otaylor@redhat.com>
12295 * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
12296 gdk_colormap_sync private since it was never exported
12299 * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
12300 colormap->colors[] for StaticGray, StaticColor colormaps.
12302 * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
12303 was being used as if it was image->bits_per_pixel.
12305 * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
12306 for the image in the GdkImage structure since it isn't
12307 reconstructable, and we need it to handle packed types
12309 * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
12310 the assumption that on Win32 image->bits_per_pixel == image->depth,
12313 * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
12315 * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
12316 warning message if no converter can be found.
12318 Fri Feb 2 15:09:51 2001 Owen Taylor <otaylor@redhat.com>
12320 * gtk/fnmatch.c (FOLD): Fix problem with passing signed
12321 chars to isupper() / tolower(). (#567)
12323 * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
12324 to clear up 64-bit warnings. (#567)
12326 Fri Feb 2 12:26:50 2001 Owen Taylor <otaylor@redhat.com>
12328 * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
12329 a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
12331 * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
12332 since some people set $(libdir) separately. (#1290, David Kaelbling)
12334 Thu Feb 1 18:25:46 2001 Owen Taylor <otaylor@redhat.com>
12336 * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
12337 defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
12338 MAXPATHLEN, but the code here depends on a fixed value.)
12341 Wed Jan 31 22:01:04 2001 Owen Taylor <otaylor@redhat.com>
12343 * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
12344 where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
12346 Wed Jan 31 21:20:39 2001 Owen Taylor <otaylor@redhat.com>
12348 * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
12349 viewable there is no way that moving the node will cause the
12350 focus row to become not viewable, so omit check on the visibility
12351 of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
12353 Wed Jan 31 20:38:17 2001 Owen Taylor <otaylor@redhat.com>
12355 * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
12356 selection before inserting new text.
12358 Wed Jan 31 18:49:33 2001 Owen Taylor <otaylor@redhat.com>
12360 * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
12361 Make the sensitivity of the reparented child track that of
12362 the original parent menu item. (#34218, David Hodson)
12364 * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
12365 the case where the current item is destroyed properly.
12367 * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
12368 some edge cases with child-less menuitems.
12370 Wed Jan 31 17:16:13 2001 Owen Taylor <otaylor@redhat.com>
12372 * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
12373 key pop down window. (#12074, Jon K Hellan)
12375 Wed Jan 31 16:21:42 2001 Owen Taylor <otaylor@redhat.com>
12377 * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
12378 toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan)
12379 The solution here isn't perfect - you get an extraneous
12380 emission of "toggle", which could conceivably confuse an app,
12381 but better than the current situation. LXR search seems to
12382 indicate that no apps in GNOME CVS connect to "toggle".
12384 Wed Jan 31 15:46:13 2001 Owen Taylor <otaylor@redhat.com>
12386 * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
12387 gtk_public_h_sources to directly here to avoid warning when
12388 building srcdir != builddir. (#9656)
12390 Tue Jan 30 19:49:02 2001 Owen Taylor <otaylor@redhat.com>
12392 * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
12393 handlers in gtkrange.c return the proper values (TRUE == handled)
12396 This is just the tip of the iceberg, but gtkrange.c is the
12397 most common place where the propagation is problematical,
12398 and also a place where it is almost certainly safe to change
12399 this in the stable branch.
12401 (You don't want right click popups on a range control or anything...)
12403 Tue Jan 30 18:57:59 2001 Owen Taylor <otaylor@redhat.com>
12405 * gtk/gtktext.c (clear_focus_area): We need to clear the focus
12406 area on focus out, even if a background pixmap isn't set.
12409 Tue Jan 30 18:24:10 2001 Owen Taylor <otaylor@redhat.com>
12411 * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
12412 to deal with setting the shape properly when scrolling arrows are
12413 turned on, but not visible because there is sufficient space.
12416 Tue Jan 30 16:39:25 2001 Owen Taylor <otaylor@redhat.com>
12418 * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
12419 items with submenus, destroy the item along with the submenu.
12420 (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...'
12423 * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
12426 Tue Jan 30 15:51:25 2001 Owen Taylor <otaylor@redhat.com>
12428 * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
12429 the focus widget sometimes wasn't drawn with the default if there
12430 was no default widget.
12432 * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
12433 unreference pixmaps.
12435 * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
12436 for some extra safety.
12438 Mon Jan 29 19:00:01 2001 Owen Taylor <otaylor@redhat.com>
12440 * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
12441 the text of a cell to the old pointer value better, by
12442 copying the new text before freeing the old text. Some code
12443 cleanup. (#8079, Karl Nelson)
12445 Mon Jan 29 16:50:19 2001 Owen Taylor <otaylor@redhat.com>
12447 * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
12448 gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
12450 Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
12452 * gtk/gtkmenu.c (gtk_menu_remove): When removing an
12453 item from a menu, check to see if it matches
12454 menu->old_active_menu_item, and if so, unref and clear
12455 old_active_menu_item (Patch from Pavel Cisler)
12457 * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset
12458 menu_shell->active_menu_item, if it is the child being
12459 removed. (Patch based on that of Gene Ragan, #50337)
12461 2001-01-31 Alexander Larsson <alla@lysator.liu.se>
12463 * gdk/linux-fb/gdkselection-fb.c:
12464 * gdk/linux-fb/gdkcolor-fb.c:
12465 * gdk/linux-fb/gdkdrawable-fb2.c:
12466 * gdk/linux-fb/gdkfont-fb.c:
12467 * gdk/linux-fb/gdkim-fb.c:
12468 * gdk/linux-fb/gdkinput.c:
12469 * gdk/linux-fb/gdkkeyboard-fb.c:
12470 * gdk/linux-fb/gdkmain-fb.c:
12471 * gdk/linux-fb/gdkrender-fb.c:
12472 A bunch of whitespace cleanup.
12474 2001-01-30 Havoc Pennington <hp@pobox.com>
12476 * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in
12477 #ifdef GTK_ENABLE_BROKEN.
12479 * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
12480 GTK_ENABLE_BROKEN just before including the broken headers.
12482 * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
12483 deprecated types registered.
12485 * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
12486 we have to test the broken stuff.
12488 * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
12490 2001-01-30 Havoc Pennington <hp@redhat.com>
12492 * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
12493 here where prev pointer was set to the wrong thing
12495 * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
12496 (gtk_tree_path_is_descendant): new function
12498 * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
12500 (gtk_list_store_get_iter): don't modify iter if we can't get the
12503 * gtk/gtkliststore.h (struct _GtkListStore): cache the length
12505 * gtk/gtktreednd.h: add virtual function row_drop_possible() to
12508 * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
12509 was causing segfault
12511 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
12514 * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
12516 * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
12518 (gtk_list_store_iter_children): ditto
12519 (gtk_list_store_iter_nth_child): ditto
12520 (gtk_list_store_iter_nth_child): ditto
12521 (gtk_list_store_iter_parent): ditto
12523 * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
12524 on iter->user_data != NULL instead of silently accepting it.
12525 (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
12526 we are returning TRUE.
12527 (gtk_tree_store_iter_children): ditto
12528 (gtk_tree_store_iter_nth_child): ditto
12529 (gtk_tree_store_iter_parent): ditto
12530 (gtk_tree_store_insert): remove handling of parent->user_data ==
12531 NULL, replace with parent == NULL
12533 * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
12534 and a comment explaining things
12536 * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
12537 interface support to GtkTreeStore.
12539 * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
12540 FALSE if no prev, fix
12542 * gtk/gtktreeview.c (set_source_row): use a row reference
12543 (set_dest_row): use a row reference
12545 Sat Jan 27 15:52:02 2001 Jonathan Blandford <jrb@redhat.com>
12547 * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
12548 stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
12549 (gtk_tree_selection_select_iter): The same as above.
12551 2001-01-26 Havoc Pennington <hp@redhat.com>
12553 * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
12554 which holds a handle to a specific row (particular set of values
12555 in the model, i.e. pointer-identity row).
12557 * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
12558 use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
12559 Still need to use it for the src/dest row saved on the drag context.
12561 2001-01-26 Havoc Pennington <hp@redhat.com>
12563 * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
12565 * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
12566 not offset by TREE_VIEW_HEADER_HEIGHT
12567 (gtk_tree_view_tree_to_widget_coords): fix to not offset by
12568 TREE_VIEW_HEADER_HEIGHT
12570 * configure.in (included_loaders): for me, --with-included-loaders
12571 generates the error "the specified loader yes does not exist",
12572 i.e. the arg defaults to "yes", so change test for value ""
12573 to test for value "yes", and include all loaders in that case.
12575 * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
12577 * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
12578 handle TREE_VIEW_VERTICAL_SEPARATOR
12579 (gtk_tree_view_bin_expose): fix to consider the row offset as
12580 pointing halfway into vertical separator.
12581 (gtk_tree_view_draw_node_focus_rect): ditto
12583 * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
12584 --gtk-debug=updates, which causes gdk_window_set_debug_updates
12585 (TRUE) to be called.
12587 * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
12588 debug mode where the invalid region is colored in on invalidate,
12589 so you can see the flicker and know whether your redraw code is
12592 * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
12593 tree window coordinates (clip rect is in tree window coords)
12595 * gtk/Makefile.am: add gtktreednd.[hc]
12597 * gtk/gtkliststore.c: implement gtktreednd interfaces.
12599 * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
12600 drag-and-drop data operations on a model (so we can set up tree
12601 drag-and-drop automatically)
12603 * gtk/testgtk.c: Add a window to change sensitivity in the
12604 GtkLabel test; add a way to change the entry frame in GtkEntry
12607 * gtk/gtkentry.c (gtk_entry_set_has_frame):
12608 (gtk_entry_get_has_frame): new functions to remove the frame
12610 (gtk_entry_size_request): shrink requisition if no frame
12611 (gtk_entry_draw_focus): don't draw frame if no frame
12613 * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
12614 checks inside a cell renderer
12615 (gtk_default_draw_option): ditto for options
12617 * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
12618 children from the alignment, not the button
12619 (gtk_tree_view_column_init): ref/sink the column, to emulate
12620 GObject refcounting.
12622 * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
12624 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12625 Use theme functions to draw the toggles
12627 * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
12629 * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
12630 GdkPangoAttrEmbossed to use in rendering insensitive text
12632 * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
12634 * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
12635 using new GDK features
12637 2001-01-24 Alexander Larsson <alexl@redhat.com>
12640 Splitted gtk_image_clear into gtk_image_clear() and
12641 gtk_image_reset(). Call gtk_image_clear() in ::destroy
12644 * gtk/gtklabel.c (set_markup):
12647 * gtk/gtktextlayout.c:
12648 Always free display->shaped_objects.
12650 * gtk/testgtk.c (create_clist):
12651 Don't leak custom style.
12653 2001-01-23 Alexander Larsson <alexl@redhat.com>
12655 * gtk/gtkcolorsel.c (grab_color_at_mouse):
12656 Don't leak image. Simplify using gdk_colormap_query_color().
12657 (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
12659 * linux-fb/gdkcolor-fb.c:
12660 Implemented gdk_colormap_query_color.
12662 2001-01-23 Alexander Larsson <alexl@redhat.com>
12664 * linux-fb/gdkcursor-fb.c:
12665 Don't leak built-in cursors.
12667 * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
12668 Don't leak tmp_points.
12670 * linux-fb/gdkfont-fb.c (gdk_font_from_description):
12671 Don't modify desc. Don't leak font if the PangoFont
12674 * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
12677 * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
12680 2001-01-20 Havoc Pennington <hp@pobox.com>
12682 * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
12683 from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to
12686 2001-01-22 Havoc Pennington <hp@redhat.com>
12688 * demos/testanimation.c: fix to reflect gdk-pixbuf changes
12690 * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
12692 * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
12693 Remove, move back to gdk-pixbuf
12695 * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
12696 to all the word functions
12698 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
12699 before doing anything on NULL layout or if we don't have the focus
12701 * gtk/testtext.c (fill_example_buffer): "justification"
12703 * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
12704 to be called "justification" not "justify"
12706 * demos/gtk-demo/textview.c (create_tags): "justification"
12708 * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
12710 2001-01-22 Alexander Larsson <alexl@redhat.com>
12712 * gdk/gdkwindow.c (gdk_window_invalidate_region):
12713 Don't leak visible_region. Use visible_region instead of region.
12715 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12716 Don't do extra gdk_drawable_ref(). This is not X.
12717 (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
12718 gdk_fb_focused_window is ref:ed.
12719 (gdk_fb_window_send_crossing_events): Watch out for destroyed
12722 2001-01-22 Alexander Larsson <alexl@redhat.com>
12724 * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
12725 Don't leak the PangoFontDescriptor.
12727 Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
12729 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
12731 (gtk_tree_view_scroll_to_cell): Make work when not realized.
12732 (gtk_tree_view_realize): add scroll_to support
12733 (gtk_tree_view_finalize): add a finalize method. Populate.
12734 (gtk_tree_view_insert_column): ref and sink the column.
12735 (gtk_tree_view_append_column): ref and sink the column.
12736 (gtk_tree_view_queue_draw_node): New function to handle redrawing
12737 individual nodes. Should make the code much more efficient, if
12740 2001-01-19 Havoc Pennington <hp@redhat.com>
12742 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12743 byte_offset variable was being used to mean both "offset into
12744 layout" and "offset into buffer line" which was no longer true
12745 with addition of preedit string; fix
12747 2001-01-19 Havoc Pennington <hp@redhat.com>
12749 * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
12751 * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
12754 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
12757 * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
12758 scroll_to_cell, matches TextView scroll functions better
12759 (gtk_tree_view_tree_to_widget_coords): new function
12760 (gtk_tree_view_widget_to_tree_coords): new function
12761 (gtk_tree_view_get_visible_rect): new function
12762 (gtk_tree_view_get_path_at_pos): accept negative coordinates
12763 (gtk_tree_view_draw_node_focus_rect): new function moved from
12764 draw_focus, also, use width of bin_window as width of the focus
12766 (gtk_tree_view_expand_row): fix bug where it didn't recognize
12767 already-expanded rows
12768 (gtk_tree_view_get_cell_rect): new function
12769 (gtk_tree_view_get_path_at_pos): return the click position
12770 relative to the passed-in cell
12771 (gtk_tree_view_set_expander_column): new function
12773 * configure.in: remove gtk-config-2.0 chmod
12775 * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
12776 and properly handle drags with targets we don't understand
12777 (gtk_text_view_drag_end): don't stop scrolling, the source isn't
12779 (gtk_text_view_drag_drop): stop scrolling here though, and set the
12782 * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
12784 (gtk_drag_dest_get_target_list): new function
12785 (gtk_drag_dest_set_target_list): new function
12787 * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
12789 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
12790 related to drag-and-drop
12792 2001-01-19 Alexander Larsson <alexl@redhat.com>
12794 * gdk/linux-fb/gdkprivate-fb.h:
12795 Define EMULATE_GDKFONT.
12796 Add extra pango_font stuff to GfkFontPrivate.
12798 * gdk/linux-fb/gdkdrawable-fb2.c:
12799 * gdk/linux-fb/gdkfont-fb.c:
12800 If EMULATE_GDKFONT defined, implement a slow lame GdkFont
12801 emulation using PangoFont.
12803 2001-01-17 Havoc Pennington <hp@pobox.com>
12805 * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
12806 all the non-deprecated set_foo functions. Added missing object
12807 properties, and added g_object_notify() to setters.
12810 2001-01-18 Tor Lillqvist <tml@iki.fi>
12813 * gtk/gtkrc.c: (Win32) Use the new
12814 g_win32_get_package_installation_(sub)directory() functions.
12816 * config.h.win32.in: New file.
12818 * config.h.win32: Removed.
12820 * configure.in: Output config.h.win32.
12822 * Makefile.am: Add it to EXTRA_DIST.
12824 * gtk/gtk.def: Update.
12826 Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
12828 * gtk/gtklabel.c (gtk_label_size_request): Set the
12829 attributes onto the PangoLayout even if they are newly
12830 created from label->pattern.
12832 Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
12834 * gdk/x11/gdkdnd-x11.c: Remove unused variable.
12836 * gtk/gtkdnd.c: Encapsulate storing and retrieving info
12837 structures in functions. Fixes bug where gtk_dataset_*
12838 was accidentally still being used in one place, causing
12839 every dest side event to be treated independently.
12841 * gtk/gtkdnd.c: Remove last vestages of handling
12842 ::draw (fixes warning)
12844 * gtk/gtkentry.[ch]: Add drag and drop support.
12846 * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
12847 new function gtk_check_drag_threshhold() for checking
12848 to check if (dx,dy) has exceeded the threshhold for starting
12849 a drag and use it everywhere.
12851 Mon Jan 8 11:58:05 2001 Owen Taylor <otaylor@redhat.com>
12853 * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
12854 add -I{includedir}/gtk-2.0.
12856 * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
12857 gdk/gdk-pixbuf.h: Doc fixups.
12859 * gtk/gtkobject.h: Remove trailing , from enum
12861 2001-01-17 Alexander Larsson <alexl@redhat.com>
12863 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
12864 Doh! Mixed up x and y.
12866 * gdk/linux-fb/gdkglobals-fb.c:
12867 Removed gdk_fb_pointer_grab_window_events,
12868 added _gdk_fb_pointer_grab_owner_events and
12869 _gdk_fb_keyboard_grab_owner_events.
12871 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
12872 Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
12873 crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
12874 (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
12875 Send crossing events after ungrab finished.
12876 (gdk_keyboard_grab): Set ..._owner_events
12877 (type_masks): Move out of function.
12878 (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
12879 gdk_fb_keyboard_event_window): New functions, return the
12880 window an event should be targeted at. Handles grabs and
12881 event propagation. Can return NULL.
12882 (gdk_event_make): Remove event_mask checking. Now always
12885 * gdk/linux-fb/gdkkeyboard-fb.c:
12886 * gdk/linux-fb/gdkproperty-fb.c:
12887 * gdk/linux-fb/gdkselection-fb.c:
12888 Use new event_window/gdk_event_make() behaviour.
12890 * gdk/linux-fb/gdkmouse-fb.c:
12891 Use new event_window/gdk_event_make() behaviour.
12892 Only send motion events if in the same window.
12893 If grabbed, use cursor from window if sibling of grabbed
12894 window, and cursor from grabbed window otherwise.
12896 * gdk/linux-fb/gdkprivate-fb.h:
12897 Update gdk_fb_window_send_crossing_events, gdk_event_make
12898 and grab varaible declarations. Add gdk_fb_*_event_window().
12900 * gdk/linux-fb/gdkwindow-fb.c:
12901 Use new event_window/gdk_event_make() behaviour.
12902 Keep correct track of focus window.
12903 (gdk_window_set_events): Set all specific button motion masks
12904 if GDK_BUTTON_MOTION_MASK set.
12906 * gtk/gtkdnd.c (gtk_drag_update):
12907 Free info->last_event if gdk_drag_motion returned FALSE.
12909 2001-01-16 Tor Lillqvist <tml@iki.fi>
12911 * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
12912 Eliminate redraws when input-only windows are shown or
12913 hidden. Thanks to jpe@archaeopteryx.com.
12915 Tue Jan 16 13:13:13 GMT 2001 Tony Gale <gale@gtk.org>
12917 * docs/faq/gtk-faq.sgml: FAQ update:
12918 - Update to bugzilla
12919 - Add GTK+ and security/SUID/SGID
12922 2001-01-16 Alexander Larsson <alla@lysator.liu.se>
12924 * gdk/linux-fb/gdkdnd-fb.c:
12927 2001-01-15 Havoc Pennington <hp@pobox.com>
12929 * tests/testtreeview.c: add test stuff for CellRendererToggle
12931 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
12934 * gtk/gtkcellrenderertoggle.c: distinguish different event types,
12935 only toggle on button press (would do release like GtkButton, but
12936 we'd need implicit grab code for treeview cells)
12938 2001-01-16 Tor Lillqvist <tml@iki.fi>
12940 * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
12942 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
12943 GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
12945 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
12946 to g_{locale,filename}_{to,from}_utf8 to match current API.
12948 * gtk/makefile.msc.in (gtk_OBJECTS)
12949 * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
12951 * gtk/gtk.def: Update.
12953 2001-01-15 Tor Lillqvist <tml@iki.fi>
12955 * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
12956 implementaion that more closely mimics the events that an X server
12957 would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
12958 GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
12959 with nested preview widgets, for instance, more responsive when
12960 you move the mouse quickly into them.
12961 (find_window_for_pointer_event): Make it actually compile.
12962 (gdk_event_translate): Set send_event to the value of
12963 InSendMessage (). This doesn't really mean the same as X11's
12964 send_event flag, but is close enough, says jpe@archaeopteryx.com
12966 2001-01-15 Alexander Larsson <alexl@redhat.com>
12968 * gdk/linux-fb/gdkdnd-fb.c:
12969 Implemented drag and drop.
12970 Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
12971 when it tries to free and then copy the same event (info->last_event).
12972 I am not sure about why this happens, but will continue looking.
12974 2001-01-15 Alexander Larsson <alexl@redhat.com>
12976 * gdk/linux-fb/gdkwindow-fb.c:
12977 Use gdk_window_invalidate_rect instead of
12978 gdk_window_invalidate_rect_clear to minimise flashing.
12979 When hiding windows you need to clear the root window though.
12981 2001-01-15 Alexander Larsson <alexl@redhat.com>
12983 * gdk/linux-fb/gdkdrawable-fb2.c:
12984 For optization, add an full_shapes argument to gdk_fb_clip_region.
12985 If this is false, only the cliprects of the shapes are used.
12987 * gdk/linux-fb/gdkprivate-fb.h:
12988 Export gdk_fb_window_peek_shape.
12989 Add full_shapes to gdk_fb_clip_region.
12991 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
12992 When moving a window, don't clear everything under the it, just the
12993 root window. Makes stuff faster and flash less.
12994 (gdk_window_get_pointer): Correctly handle offseted shapes, due to
12995 USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
12996 offset of the shape.
12999 2001-01-12 Havoc Pennington <hp@redhat.com>
13001 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the
13002 current invalid region, fixes redraw bug while scrolling the
13005 * gtk/gtktextview.c, gtk/gtktextview.h:
13006 Rearrange the scrolling/validation/etc. code in a major way,
13007 so it seems to make sense to me. Probably isn't genuinely that
13008 much better, but...
13010 * gtk/gtktexttag.c (set_fg_color): fix name of property used for
13013 * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
13015 2001-01-12 Alexander Larsson <alla@lysator.liu.se>
13017 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
13018 Hide mouse pointer while rotation. Show it afterwards.
13020 2001-01-12 Alexander Larsson <alexl@redhat.com>
13022 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
13023 windows in consideration when generating clip region.
13025 * gdk/linux-fb/gdkfb.h:
13026 Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
13028 * gdk/linux-fb/gdkprivate-fb.h:
13029 Add shape to GdkWindowFBDatat.
13030 exported gdk_fb_window_get_abs_shape().
13031 removed gdk_fb_draw_lines declaration.
13033 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
13034 Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
13035 send focus changes when there is a grabbed window.
13036 (gdk_window_get_pointer): Handle shaped windows.
13037 (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
13038 (gdk_fb_window_peek_shape): Returns the shape for a window,
13039 handles GDK_FB_USE_CHILD_SHAPE.
13040 (gdk_fb_window_get_abs_shape): Returns the shape of the window,
13041 offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
13042 (gdk_window_shape_combine_mask): Implement.
13044 * gtk/gtkwindow-decorate.c:
13045 HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
13046 setting the shape of a window makes the window transparent.
13048 2001-01-11 Havoc Pennington <hp@redhat.com>
13050 * gtk/gtktreemodelsimple.h: Oops, broke some macros
13052 2001-01-10 Havoc Pennington <hp@redhat.com>
13054 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
13055 add this function, bug 40251
13057 * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
13060 2001-01-11 Alexander Larsson <alexl@redhat.com>
13063 Added ENABLE_SHADOW_FB
13066 Added --disable-shadowfb
13068 * gdk/linux-fb/gdkcursor-fb.c:
13069 Update shadowfb when updating cursor
13071 * gdk/linux-fb/gdkdrawable-fb2.c:
13072 Added wrappers for shadowfb that calls the normal drawable
13073 methods, but calls gdk_shadow_fb_update(bounding box) when
13074 GdkWindows are drawed to.
13075 Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
13076 which also returns the bounding box.
13078 * gdk/linux-fb/gdkfb.h:
13079 Added GdkFBAngle type and gdk_fb_set_rotation declaration.
13081 * gdk/linux-fb/gdkgeometry-fb.c:
13082 Update shadowfb when scrolling window.
13084 * gdk/linux-fb/gdkglobals-fb.c:
13085 Add _gdk_fb_screen_angle.
13087 * gdk/linux-fb/gdkkeyboard-fb.c:
13088 Test code for screen rotation. Shift-F2 in the xlate driver
13089 rotates the screen.
13091 * gdk/linux-fb/gdkmain-fb.c:
13092 Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
13094 * gdk/linux-fb/gdkmouse-fb.c:
13095 Use fb_width/height instead of modeinfo.xres/yres.
13097 * gdk/linux-fb/gdkprivate-fb.h:
13098 Added fb_men, fb_width, fb_height & fb_stride. When using
13099 shadow fb these can differ from the framebuffer stuff.
13100 Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
13101 gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
13102 _gdk_fb_screen_angle. Removed CM, RP.
13104 * gdk/linux-fb/gdkrender-fb.c:
13105 Added code for shadowfb handling and screen rotation using
13108 * gdk/linux-fb/gdkwindow-fb.c:
13109 Use fb_mem, fb_stride, fb_width, fb_height.
13110 Added recompute_rowstride to reset the rowstride of all windows.
13111 Added gdk_fb_recompute_all() which recomputes rootwindow size,
13112 window abs positions and window rowstrides. Usefull when the
13113 rotation has changed.
13115 Thu Jan 11 13:16:50 GMT 2001 Tony Gale <gale@gtk.org>
13117 * docs/faq/gtk-faq.sgml: update to make web site updating easier
13119 2001-01-10 Havoc Pennington <hp@redhat.com>
13121 * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
13122 where sibling == iter
13123 (gtk_tree_store_insert_after): handle sibling == iter
13124 (gtk_tree_store_prepend): remove stamp checks
13125 (gtk_tree_store_insert_before): ditto
13126 (gtk_tree_store_append): ditto
13127 (gtk_tree_store_get_path): ditto
13128 (gtk_tree_store_get_value): ditto
13129 (gtk_tree_store_iter_has_child): ditto
13130 (gtk_tree_store_iter_n_children): ditto
13131 (gtk_tree_store_iter_nth_child): ditto
13132 (gtk_tree_store_insert_after): ditto
13133 (gtk_tree_store_is_ancestor): ditto
13134 (gtk_tree_store_iter_depth): ditto
13135 (gtk_tree_store_insert_before): assert that sibling's parent is
13136 the same as the passed-in parent
13137 (gtk_tree_store_insert_after): assert that sibling's parent is
13138 the same as the passed-in parent
13141 * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience
13142 function to get the first iterator in a model
13144 * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
13145 conventionally the "root" in this sense is just NULL afaict.
13147 * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
13148 where sibling == iter
13149 (gtk_list_store_insert_after): handle case where sibling == iter
13151 * tests/testtreeview.c (run_automated_tests): fairly lame basic
13152 automated tests for ListStore, TreeStore
13154 * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
13155 (gtk_list_store_insert): update tail pointer, and fix it to work
13156 (gtk_list_store_insert_before): update tail pointer, and fix it to work
13157 (gtk_list_store_append): use tail to be faster
13158 (gtk_list_store_prepend): fix it, update tail pointer
13159 (gtk_list_store_insert_after): fix it, update tail pointer
13161 * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for
13164 2001-01-09 Havoc Pennington <hp@redhat.com>
13166 * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
13167 is NULL due to a pending resize
13169 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
13170 column width to values less than 1
13172 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
13173 width to be between min/max width, and still set the width
13174 even if autosize is turned on, so the tree view can use this
13175 function in order to autosize.
13176 (gtk_tree_view_column_init): set initial width to 1 not 0
13178 * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
13179 setter function to modify column width, so we get notification
13180 (gtk_tree_view_insert_iter_height): ditto
13181 (gtk_tree_view_calc_size): ditto
13182 (gtk_tree_view_check_dirty): ditto
13184 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
13185 properties to change all the interesting attributes of the tree
13187 (gtk_tree_view_column_set_header_clickable): rename set_clickable
13188 (gtk_tree_view_column_get_clickable): add
13189 (gtk_tree_view_column_set_cell_renderer): don't unset the current
13190 attributes; assume a cell renderer with equivalent object
13191 properties has been swapped in. Do g_object_notify().
13192 (gtk_tree_view_column_set_visible): g_object_notify
13193 (gtk_tree_view_column_get_sizing): rename from get_col_type
13194 (gtk_tree_view_column_set_sizing): g_object_notify
13195 (gtk_tree_view_column_set_width): add g_object_notify
13196 (gtk_tree_view_column_set_min_width): ditto
13197 (gtk_tree_view_column_set_max_width): ditto
13198 (gtk_tree_view_column_set_title): ditto
13199 (gtk_tree_view_column_set_clickable): ditto
13200 (gtk_tree_view_column_set_widget): ditto
13201 (gtk_tree_view_column_set_justification): ditto
13203 2001-01-09 Havoc Pennington <hp@redhat.com>
13205 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
13206 there are no rows in the model
13208 * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
13209 NULL, then return the start of the list
13211 * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
13212 if we can't get any rows from an empty model
13214 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
13215 extraneous * after function pointer typedef usage
13217 * Makefile.am: don't specify full path to cp and rm
13219 * gtk/gtkcellrenderertextpixbuf.c
13220 (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
13221 NULL before dereferencing, fixes a segfault that happened from
13224 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
13225 use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
13226 and reindent the function
13227 (gtk_cell_renderer_pixbuf_get_size): indentation
13229 * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
13231 (gtk_dialog_add_buttons_valist): add g_return_if_fail
13232 (gtk_dialog_set_default_response): New function, to set default
13234 (gtk_dialog_set_response_sensitive): New function, to set
13235 sensitivity of buttons
13237 * gtk/gtkcellrendererpixbuf.c
13238 (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
13239 (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
13241 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
13242 handle any G_TYPE_OBJECT subclass, not just the base class, and
13244 (_gtk_tree_data_list_value_to_node): ditto
13246 * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if
13249 * gtk/gtkmain.c: add GTK_DEBUG_TREE
13251 * gtk/gtkdebug.h: add GTK_DEBUG_TREE
13253 2001-01-09 Tor Lillqvist <tml@iki.fi>
13255 * gdk/win32/gdkevents-win32.c: Implement better mouse
13256 capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
13257 (find_window_for_pointer_event): New function.
13258 (gdk_event_translate): Use it when handling mouse events.
13260 2001-01-09 Alexander Larsson <alla@lysator.liu.se>
13263 Added --with-included-loaders option
13265 * gdk-pixbuf/Makefile.am:
13266 * gdk-pixbuf/gdk-pixbuf-io.c:
13267 Add support for including selected gdk-pixbuf loaders only.
13269 * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
13270 gtk_window_set_has_frame):
13271 Added inline documentation.
13273 * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
13274 * docs/reference/gdk/tmpl/windows.sgml:
13275 Added inline documentation.
13277 Mon Jan 8 14:42:06 2001 Jonathan Blandford <jrb@redhat.com>
13279 * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
13280 realizing buttons that have already been realized.
13282 Mon Jan 8 14:06:29 2001 Jonathan Blandford <jrb@redhat.com>
13284 * tests/testtreeview.c (main): Show menu items before adding to
13287 * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
13288 around if we kill them.
13290 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13291 Return if we pass in a NULL model.
13293 2001-01-08 Havoc Pennington <hp@redhat.com>
13295 * tests/testtreeview.c: hack on this some
13297 * gtk/gtktreestore.c (gtk_tree_store_setv): rename
13298 gtk_tree_store_set_valist, v is for arrays, valist for varargs
13300 (gtk_tree_store_getv): rename gtk_tree_store_get_valist
13302 * gtk/gtkliststore.h: Add varargs set() and get() convenience
13305 2001-01-08 Alexander Larsson <alexl@redhat.com>
13307 * gtk/gtkwindow-decorate.[hc]:
13309 New files. Contains an implementation of a minimal WM for
13313 Add the possibility for GtkWindows to specify a frame. This
13314 is used for the window decoration code, but could concievably
13315 be used for X programs too (xmms style windows).
13316 GtkWindow->frame is the toplevel window if the window is framed.
13317 The signal frame_event gets all events that are targeted to
13319 (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
13322 Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
13323 Call out to gtkwindow-decorate.c for WM support in linx-fb.
13325 2001-01-08 Alexander Larsson <alexl@redhat.com>
13327 * docs/README.linux-fb:
13328 Correct filename ~/.pangoft2_aliases
13331 Added new function gdk_window_get_decorations.
13333 * gdk/linux-fb/gdkfb.h:
13334 Removed _gdk_window_get_decorations declaration.
13335 Renamed _gdk_window_set_child_handler to
13336 gdk_fb_window_set_child_handler.
13338 * gdk/linux-fb/gdkwindow-fb.c:
13339 Renamed _gdk_window_set_child_handler to
13340 gdk_fb_window_set_child_handler.
13342 * gdk/x11/gdkwindow-x11.c:
13343 New function gdk_window_get_mwm_hints().
13344 Implemented gdk_window_get_decorations.
13346 * docs/reference/gdk/tmpl/windows.sgml:
13347 * docs/reference/gdk/gdk-sections.txt:
13348 Added gdk_window_get_decorations docs.
13350 2001-01-08 Alexander Larsson <alla@lysator.liu.se>
13352 * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
13353 gdk_fb_window_find_focus, gdk_fb_send_focus_change,
13354 gdk_fb_window_send_crossing_events):
13355 Possibly send focus events when the mouse moves from one
13358 2001-01-07 Tor Lillqvist <tml@iki.fi>
13360 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
13361 gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
13362 to match current API.
13364 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
13365 environment variable is set, don't call g_error when on a
13366 palettized (PseudoColor) display. Some people want to use GTK+
13367 in 256-colour mode even though works only partially.
13371 * gtk/makefile.mingw.in: Update.
13373 2001-01-05 Havoc Pennington <hp@redhat.com>
13375 * tests/testtreeview.c: hack on this a bit
13377 * gtk/gtktextlayout.c (gtk_text_layout_class_init):
13378 s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
13380 * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS):
13381 was spelled incorrectly
13382 (GTK_IS_TREE_MODEL_SIMPLE): ditto
13384 * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
13385 from gtk_tree_view_set_headers_active
13387 * gtk/gtktexttag.c:
13388 (gtk_text_tag_get_property): handle PROP_DIRECTION
13389 (gtk_text_tag_set_property): g_object_notify when we toggle the _set
13390 properties, bug 40235
13392 * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
13393 forward_to_line_end
13395 Fri Jan 5 16:16:29 2001 Owen Taylor <otaylor@redhat.com>
13397 * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
13398 modules/input/gtkimcontextxim.c: Adapt to new prototypes
13399 for unicode,locale,filename conversion functions.
13401 2001-01-05 Havoc Pennington <hp@redhat.com>
13403 * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
13404 broken if called on the first position in the buffer.
13406 * gtk/gtktextlayout.c (line_display_index_to_iter): fix
13407 forward_to_delimiters to be called only if we aren't already at
13410 2001-01-05 Havoc Pennington <hp@redhat.com>
13412 * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
13414 2001-01-05 Alexander Larsson <alexl@redhat.com>
13416 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
13417 colormap in here. Sync from X port.
13418 (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
13420 (gdk_fb_clip_region): Comment out g_warning about empty clip region.
13421 This happens now and then, and i don't think it is a bug.
13422 (gdk_fb_draw_polygon): Correctly add extra point if startpoint
13424 (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
13427 * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
13428 some of the fields filled in at least.
13430 * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
13431 miLineArcD is no more, remove it from the function definition.
13433 2001-01-04 Havoc Pennington <hp@redhat.com>
13435 * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
13438 * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
13439 user_data instead of tree_node
13441 * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
13442 TREE_VIEW_COLUMN_SIZE
13444 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
13445 "size" field to "width" finishes bug 40061
13447 * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
13448 for bitfields, bug 40268
13450 2001-01-04 Havoc Pennington <hp@redhat.com>
13454 s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
13456 s/GtkModelSimple/GtkTreeModelSimple/g;
13457 s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
13458 s/gtk_model_simple/gtk_tree_model_simple/g;
13459 s/gtkmodelsimple/gtktreemodelsimple/g;
13461 s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
13463 s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
13464 s/column_set_col_type/column_set_sizing/g;
13466 s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
13467 s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
13469 s/GtkCellRendererType/GtkCellRendererState/g;
13471 * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
13472 (gtk_cell_renderer_toggle_class_init): change "state" property to
13473 "active", to match GtkToggleButton
13474 (gtk_cell_renderer_toggle_get_active): new function, bug
13476 (gtk_cell_renderer_toggle_set_active): new function
13477 (gtk_cell_renderer_toggle_set_property): route changes to toggle
13478 state through gtk_cell_renderer_set_active
13480 Thu Jan 4 15:46:18 2001 Jonathan Blandford <jrb@redhat.com>
13482 * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
13483 temporarily until they work again. Brought up to date with
13484 changes in the model.
13485 * gtk/gtkmodelsimple.h: Brought up to date with changes in the
13488 2001-01-04 Havoc Pennington <hp@redhat.com>
13490 * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
13491 equal to the line length, then position iterator before paragraph
13492 separators. Fixes crash reported by Mikael Hermansson when
13493 pressing left arrow from the start of a line.
13495 * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
13496 about byte indexes off the end
13497 (iter_set_from_char_offset): add g_error about char offsets
13500 2001-01-03 Havoc Pennington <hp@redhat.com>
13502 * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
13504 * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use
13505 of private functions; remove inclusion of private headers.
13507 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this
13508 function, so we don't need private functions in gtktextdisplay.c
13510 * gtk/gtktextiterprivate.h: underscore-ification
13512 * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
13513 to instead say "only useful to implement widgets"
13515 * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
13516 GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
13517 GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
13519 * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
13520 This function was completely broken
13522 * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
13524 * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
13526 * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
13528 * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
13530 * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
13532 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
13534 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
13537 * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
13540 * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
13541 Progress on bug 40103. Add draw_layout to draw a PangoLayout.
13542 (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
13543 which were not implemented.
13545 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
13546 insert_pixbuf signal. Rename delete_text to delete_range since it
13547 also deletes pixbufs and child anchors. This almost closes bug
13548 40245 (still need to deal with child anchors)
13550 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
13551 insert_pixbuf, change signal names as appropriate, change types of
13552 signals taking marks/tags to have the specific type, not just
13555 * gtk/gtkmain.c (gtk_get_current_event_state): Add this function;
13558 * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
13559 unnecessary remove_contents() call
13560 (gtk_option_menu_class_init): add a "changed" signal, closes
13562 (gtk_option_menu_update_contents): emit "changed" if the
13563 active menu item changes
13565 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
13566 cast to GtkObject, reported by Jonas Borgstrom
13567 (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
13568 we can't do stuff with side effects in finalize. Instead, spew a
13569 warning if the loader isn't closed.
13571 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
13572 colormap in here, non-X ports probably need to sync to this change
13574 * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove
13575 assertion that colormap != NULL, you can set the colormap to NULL
13578 * Makefile.am: remove gtk-config-2.0
13580 * configure.in: Use pkg-config to locate GLib. Remove
13581 separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
13582 and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
13583 Use pkg-config to locate Pango. Output correct Pango libs to
13584 gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
13586 * Makefile.am (pkgconfig_DATA): install only target-specific pc
13588 (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
13591 * gtk+-2.0.pc.in (Requires): require the GDK for the current target
13594 2001-01-03 Alexander Larsson <alla@lysator.liu.se>
13597 Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
13599 Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
13601 * gtk/gtktextlayout.c
13602 (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
13603 variable when moving back onto a single line.
13605 2001-01-01 Havoc Pennington <hp@redhat.com>
13607 * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13609 * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13611 * configure.in (LIBTOOL_EXPORT_OPTIONS): define
13612 LIBTOOL_EXPORT_OPTIONS with options to control symbol export
13614 2001-01-01 Havoc Pennington <hp@redhat.com>
13616 * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
13618 * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for
13621 * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug
13623 (gtk_text_attributes_copy_values): rename from
13624 gtk_text_attributes_copy
13625 (gtk_text_attributes_copy): a more standard GTK copy function,
13626 which returns a new object
13628 2001-01-01 Havoc Pennington <hp@redhat.com>
13630 * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
13632 * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
13633 don't fill in tree_view->priv->selection, kind of an unexpected
13636 * gtk/gtkcellrenderertext.c: Remove definition of _ and include
13639 * gtk/gtkcellrenderer.c: Remove definition of _ and include
13641 (gtk_cell_renderer_get_property): remove calls to g_value_init
13643 * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
13646 * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
13647 and include gtkintl.h
13648 (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
13651 * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
13653 (_gtk_tree_selection_new_from_with_view): rename, return
13655 (_gtk_tree_selection_set_tree_view): rename with uscore
13656 (gtk_tree_selection_get_selected): fill in the "model" out param
13657 first, so it gets filled in even if we return at the top of the
13659 (gtk_tree_selection_real_select_all): add a comment and an else{}
13660 to clarify this a bit
13661 (gtk_tree_selection_real_unselect_all): add the same else{}
13663 * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
13664 set_tree_view to have underscore prefixes, move them to the
13665 private header, fix return type of new_with_tree_view
13666 (struct _GtkTreeSelection): mark struct
13669 * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
13670 GtkTreeModelFlags, not a guint
13671 (gtk_tree_path_prev): return gboolean not gint
13672 (gtk_tree_path_up): return gboolean not gint
13674 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
13675 return GtkTreeModelFlags, not a guint
13677 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
13678 that child model is non-null before unrefing it
13679 (g_value_int_compare_func): make this a qsort compare func, not
13680 a boolean predicate
13682 * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
13683 (add -umn to the end), and mark it unimplemented
13684 (gtk_tree_model_sort_resort): remove, this wasn't implemented, and
13685 I don't see what it's for - doesn't the model always sort itself?
13686 (gtk_tree_model_sort_set_compare): this had the wrong signature
13688 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
13689 Fix the docs to say that it destructively replaces existing
13690 attributes (previously said that it added attributes).
13691 (gtk_tree_view_column_set_visible): canonicalize bool before
13692 equality testing. Also, check for realization before
13693 hiding/showing the tree_column->window; if this window could exist
13694 before realization, then it's busted and needs fixing, we can't
13695 create GDK resources pre-realization. Also, remove
13696 superfluous queue_resize(), since set_size() does that for us.
13697 (gtk_tree_view_column_set_col_type): check realization before
13698 using tree_column->window
13700 * gtk/gtktreedatalist.c: fix filename in copyright notice
13702 2000-12-31 Havoc Pennington <hp@pobox.com>
13704 * gtk/gtktextview.c: Rearrange all the
13705 scroll-while-dragging-or-selecting code to be different, not
13706 necessarily better. ;-)
13707 (gtk_text_view_scroll_to_mark): Change this
13708 function to take within_margin as a fraction instead of a pixel
13709 value, and to take alignment arguments (indicating where to align
13710 the mark inside the visible area)
13712 * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
13715 * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
13716 behavior so that offsets past the end of the line are not
13717 allowed, and an offset equal to the line length moves the iterator
13719 (gtk_text_iter_set_line_index): make parallel change
13720 (gtk_text_iter_get_bytes_in_line): add this function
13722 * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
13723 of byte indexes off the end of the line; byte index at the end of
13724 the line now returns FALSE and doesn't fill in the requested
13725 values, byte index past the end of the line is an error. Also,
13726 don't allow -1 offset anymore, since its meaning is unclear.
13728 This change exposes some bug in visual cursor motion, where we
13729 end up with a huge invalid byte index; needs fixing. Symptom of
13730 bug is a crash when you hit up arrow.
13732 (_gtk_text_line_char_locate): match the change to byte_locate
13734 * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
13735 from start of line properly. fixes bug reported by Mikael
13736 Hermansson where backspace would delete all text before the
13739 2000-12-30 Tor Lillqvist <tml@iki.fi>
13741 * gdk/win32/gdkwindow-win32.c
13742 (gdk_window_impl_win32_get_visible_region): New function, as in
13744 (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
13745 instead of duplicating the same code here.
13747 * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
13748 GDK_COLORMAP macro.
13750 * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
13752 (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
13755 * gtk/gtk.def: Update.
13757 * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
13759 2000-12-30 Havoc Pennington <hp@pobox.com>
13761 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
13762 colormap on input only windows, to avoid special cases all over
13763 the code for these windows.
13765 2000-12-26 Tor Lillqvist <tml@iki.fi>
13767 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
13768 we are on a palettized display ("PseudoColor" in X11), as the code
13769 for that doesn't work anyway, and never has.
13771 2000-12-22 Alexander Larsson <alexl@redhat.com>
13773 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
13774 Don't use isprint() for chars > 255.
13776 2000-12-21 Havoc Pennington <hp@redhat.com>
13778 * tests/testtreeview.c: more work
13780 2000-12-21 Alexander Larsson <alexl@redhat.com>
13782 * docs/README.linux-fb:
13783 Update the docs to the new pangoft2 way.
13785 2000-12-21 Alexander Larsson <alexl@redhat.com>
13788 For linux-fb get the pangoft2 cflags and libs. This needs a recent
13790 Remove modules/linux-fb/Makefile.
13792 * gdk/linux-fb/gdkdrawable-fb2.c:
13793 Render glyphs using freetype.
13795 * gdk/linux-fb/gdkfb.h:
13796 Add new fb-specific functions needed for managing windows.
13798 * gdk/linux-fb/gdkmain-fb.c:
13799 Remove gdk_font_init/fini() calls.
13801 * gdk/linux-fb/gdkpango-fb.c:
13802 Remove old implementation. Use pangoft2 instead.
13804 * gdk/linux-fb/gdkprivate-fb.h:
13805 Remove PangoFBFont and related stuff.
13807 * gdk/linux-fb/gdkwindow-fb.c:
13808 Implement drawable->get_visible_region.
13809 Implement support for _gdk_window_set_child_handler () and
13810 _gdk_window_get_decorations().
13812 * modules/Makefile.am:
13813 Remove linux-fb subdir.
13815 * modules/linux-fb/*:
13818 2000-12-20 Jonathan Blandford <jrb@redhat.com>
13820 * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
13821 calls, as they are no longer needed.
13823 * gtk/gtktreemodelsort.c: Fix up the comparison code.
13825 * gtk/gtktreemodel.h: Start work on ::reordered signal. Need to
13826 figure out how to emit a signal on an interface.
13828 2000-12-20 Havoc Pennington <hp@redhat.com>
13830 * tests: new directory to contain tests, gtk/test* should move
13831 here sometime (with appropriate on-cvs-server hackery)
13833 * tests/testtreeview.c, tests/Makefile.am: a test
13835 * configure.in (AC_OUTPUT): add tests/Makefile
13837 * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
13838 and "invisible_set" which were missing
13840 * gtk/gtkrbtree.h: some cheesy indentation fix
13842 2000-12-20 Alexander Larsson <alexl@redhat.com>
13844 * gtk/gtkinvisible.c (gtk_invisible_realize):
13845 Attach the style to the window so that the style it is not
13846 leaked when unrealizing the window.
13848 2000-12-18 Havoc Pennington <hp@redhat.com>
13850 * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
13851 begin/end user action where appropriate
13852 (gtk_text_view_commit_handler): add begin/end user action
13854 * gtk/gtktextbuffer.c: add begin/end user action signals, and
13855 bracket interactive operations with begin/end user action pair.
13857 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
13858 "interactive" arg from insert_text and delete_text signals.
13859 Add begin_user_action, end_user_action signals
13860 (gtk_text_buffer_begin_user_action):
13861 (gtk_text_buffer_end_user_action): New functions to delimit
13862 a user-visible action
13864 * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
13867 2000-12-18 Havoc Pennington <hp@redhat.com>
13869 * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
13870 was pretty non-working.
13872 * gtk/testtext.c (fill_file_buffer): make this a bit more robust
13873 by passing the length to g_utf8_validate().
13875 2000-12-16 Havoc Pennington <hp@pobox.com>
13877 * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c:
13878 Port to GObject, can go back in gdk-pixbuf after setting up
13879 a gdk-pixbuf-marshal.h header over there.
13881 * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
13882 (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
13884 (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
13886 (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
13887 here, do it when we create the buttons later
13888 (gtk_tree_view_realize_buttons): add some g_return_if_fail
13889 (gtk_tree_view_map): paranoia checks that column->button is shown
13891 (gtk_tree_view_size_request): only request visible children.
13892 Move header size calculation in here, for cleanliness, and
13893 to maintain invariants for child widgets if we eventually
13894 let users set different children inside the buttons
13895 (gtk_tree_view_map_buttons): factor out code to map buttons,
13896 since it was being called several times
13897 (gtk_tree_view_size_allocate_buttons): move_resize the drag
13898 windows instead of just moving them; their height may change
13899 if we allow random widgets in there, or the theme changes.
13900 (gtk_tree_view_size_allocate): move button size allocation
13901 above emitting the scroll signals, to ensure a sane state when we
13903 (gtk_tree_view_button_release): remove queue_resize after
13904 tree_view_set_size(), set_size() will handle any resize queuing
13906 (gtk_tree_view_focus_in): just queue a draw, don't fool with
13908 (gtk_tree_view_focus): use gtk_get_current_event() and
13909 gdk_event_get_state()
13910 (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
13911 (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
13913 (gtk_tree_view_create_button): show the button here
13914 (gtk_tree_view_button_clicked): actually emit the clicked signal
13916 (_gtk_tree_view_set_size): return right away if the size is
13917 unchanged, as a cheesy optimization
13918 (gtk_tree_view_setup_model): rename set_model_realized to
13919 setup_model to match the flag that indicates whether we've
13921 (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
13922 exist, because set_scroll_adjustment does that and it shouldn't
13923 matter what order you call these in
13924 (gtk_tree_view_get_vadjustment): ditto
13925 (gtk_tree_view_set_headers_visible): canonicalize the bool,
13927 (gtk_tree_view_set_headers_visible): call
13928 gtk_tree_view_map_buttons() instead of using cut-and-paste code
13929 (gtk_tree_view_append_column): clarify whether the return value
13930 is the count of columns before or after, and do the increment
13931 separately from the return statement so you can tell from the code.
13932 (gtk_tree_view_remove_column): ditto
13933 (gtk_tree_view_insert_column): ditto
13934 (gtk_tree_view_get_column): remove g_return_if_fail for columns
13935 outside the existing range, the docs say that outside-range
13936 columns are allowed, so we handle them as documented. (Presumably
13937 this allows a nice loop with column != NULL as test.)
13938 (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments
13939 mean (left/right/center etc.).
13940 (gtk_tree_view_collapse_all): only queue a draw if we're mapped
13941 (gtk_tree_view_expand_row): add docs
13942 (gtk_tree_view_collapse_row): add docs
13944 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
13945 function to emit the clicked signal on a column
13947 * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
13949 (gdk_event_get_time): don't treat GDK_SCROLL
13950 as a button event, remove default case from switch so gcc
13951 will whine if we don't explicitly handle all event types
13953 * gtk/gtktreeselection.h: added some FIXME
13955 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
13956 "columns" to "n_columns" and "column" to "columns" for clarity
13958 2000-12-16 Havoc Pennington <hp@pobox.com>
13960 * gtk/gtktextiter.c: General cleanup of the log attr iteration
13961 stuff. This should make e.g. the delete key work again in the
13963 (gtk_text_iter_forward_cursor_positions): handle negative count
13964 (gtk_text_iter_backward_cursor_positions): handle negative count
13965 (gtk_text_iter_forward_word_ends): handle negative count
13966 (gtk_text_iter_backward_word_starts): handle negative count
13968 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
13969 gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
13970 gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
13971 GObject. No doubt will cause breakage.
13973 * demos/gtk-demo/textview.c: remove hacks around
13974 non-GObject-ification of the text objects
13976 * demos/gtk-demo/main.c (main): use g_object_set() to manipulate
13979 2000-12-14 Havoc Pennington <hp@pobox.com>
13981 * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
13982 that we have Xrender
13984 Thu Dec 14 20:22:31 2000 Owen Taylor <otaylor@redhat.com>
13986 * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
13987 Add two virtualized functions gdk_drawable_get_clip_region - to
13988 get the clip region when drawing.
13990 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
13991 use invalidate_region.
13993 * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
13996 * acconfig.h configure.in: Check for Xft. For now, assume
13997 that if Xft is found, Pango was compiled with Xft support
14000 * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add
14001 gdk_colormap_query_color().
14003 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
14004 with Xft if appropriate.
14006 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
14007 a pangoxft context if we have XFT and the environment
14008 variable GD_USE_XFT is set.
14010 * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
14011 and also possibly an XftDraw structure.
14013 * gtk/gtkfontsel.c: Handle the case where the font from the
14014 style doesn't match any of the fonts a bit better.
14016 * gtk/testgtk.c: Add tabs between directional segments for
14017 hebrew/arabic test. (Not really necessary, just a little
14020 2000-12-14 Havoc Pennington <hp@redhat.com>
14022 * gtk/testtext.c (fill_file_buffer): fix unicode validation when
14025 2000-12-14 Havoc Pennington <hp@redhat.com>
14027 * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
14028 unused call to get_last_line()
14030 * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
14031 here until boxed is working (and maybe after that - we should
14032 really not gratuitously break old code)
14034 * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
14035 specific types for font_desc and tabs args, move them to
14036 GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
14037 fixed. Move GdkColor args to GTK_TYPE_POINTER also.
14039 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
14040 use GTK_TYPE_POINTER for signal signatures as a hack-around
14042 * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
14045 * gtk/gtktextlayout.c (line_display_iter_to_index):
14047 (line_display_index_to_iter): make static
14049 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14050 to marshal a string not a boxed
14052 * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
14054 * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
14055 since the UTF-8 isn't validated yet
14057 * gtk/gtktextsegment.c (char_segment_check_func): don't require
14058 lines to end in '\n'
14060 * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
14061 forward_to_delimiters, and grapheme boundaries
14062 (gtk_text_view_delete_from_cursor): properly handle non-newline
14063 delimiters, and grapheme boundaries
14065 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
14066 to gtk_text_iter_forward_to_delimiters, and make it work properly
14067 if empty lines end with a character other than '\n'
14069 * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
14072 2000-12-15 Tor Lillqvist <tml@iki.fi>
14074 * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
14077 * gdk/gdk.def: Update.
14079 * gdk/win32/gdkmain-win32.c
14080 * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
14081 gdkmain-win32.c here.
14083 * gdk/win32/makefile.mingw.in (all): No need to make
14084 gdk-win32res.o here, the makefile one step up will call us to make
14087 * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
14090 * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
14092 * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
14093 call to g_source_add().
14095 * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
14096 leak. Thanks to Andreas Kemnade.
14098 2000-12-13 Havoc Pennington <hp@pobox.com>
14100 * gtk/gtktextbtree.h: Remove double _ in front of some functions
14102 * gtk/gtktext*.[hc]: update accordingly
14104 2000-12-13 Havoc Pennington <hp@pobox.com>
14106 * gtk/gtktextbtree.h: Put _ in front of every function in this
14109 * gtk/gtktext*.[hc]: update to reflect renamed btree functions
14111 2000-12-13 Alex Larsson <alexl@redhat.com>
14113 * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
14114 Add support for ps2 intellimouse.
14116 * gdkkeyboard-fb.c:
14117 Move shift-F1 repaint handling to xlate handler only.
14119 * docs/README.linux-fb:
14121 Document the new refresh keys.
14123 Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
14125 * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
14127 * gtk/gtkbox.c: change property types from (u)long to (u)int for
14128 ::position and ::padding.
14130 * gtk/gtkcontainer.c: make ::border_width an INT property.
14132 * gtk/gtkpacker.c: make ::position an INT property.
14134 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
14135 guard against NULL h/v scrollbars, since this is used at construction
14138 * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
14139 internal gtk_clist_constructor().
14141 * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
14142 gtk_ctree_constructor().
14144 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
14145 ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
14147 * docs/reference/Makefile.am: fun stuff, disabled docs generation
14148 again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
14150 * gtk/gtkwidget.[hc]:
14151 removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
14152 and gtk_widget_get().
14153 (gtk_widget_new): use g_object_new_valist().
14154 (gtk_widget_set): use g_object_set_valist().
14156 * gtk/gtkobject.[hc]:
14157 removed gtk_object_arg_get_info(), gtk_object_getv(),
14158 gtk_object_query_args(), gtk_object_newv(),
14159 gtk_object_class_add_signals(),
14160 gtk_object_class_user_signal_new(),
14161 gtk_object_class_user_signal_newv(),
14162 gtk_object_arg_set(), gtk_object_arg_get(),
14163 gtk_object_args_collect(),
14164 gtk_object_default_construct(),
14165 gtk_object_constructed(),
14166 GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
14167 removed nsignals, signals and n_args members from GtkObjectClass.
14168 (gtk_object_new): use g_object_new_valist().
14169 (gtk_object_set): use g_object_set_valist().
14170 (gtk_object_get): use g_object_get_valist().
14172 * gtk/gtkcompat.h: define gtk_object_default_construct().
14174 * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
14177 * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
14178 fucntions, cleaned up method assignments (make sure your structures
14179 are setup properly before calling out). removed all GTK_CONSTRUCTED
14182 Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
14184 * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
14185 off-by-one error in checks. (Dave Lambert)
14187 2000-12-12 Alexander Larsson <alexl@redhat.com>
14189 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
14190 Don't free gdk_fb_keyboard twice.
14192 Tue Dec 12 08:24:42 2000 Tim Janik <timj@gtk.org>
14196 (create_statusbar): get rid of object_signal:: GtkObject argument uses,
14197 use GObject swapped_signal:: properties instead.
14199 * gtk/gtkcellrenderertoggle.c:
14200 * gtk/gtkcellrenderertextpixbuf.c:
14201 * gtk/gtkcellrenderertext.c:
14202 * gtk/gtkcellrendererpixbuf.c:
14203 * gtk/gtkcellrenderer.c:
14204 * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
14205 missing warnings for invalid property ids, install properties
14206 with g_object_class_install_property() now.
14209 (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
14211 Wed Oct 25 14:17:43 2000 Owen Taylor <otaylor@redhat.com>
14213 * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
14214 to determine if a window is the focus widget within
14217 * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
14220 * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling
14221 of the case where the container CAN_FOCUS to here instead
14222 of having it in each individual move-the-focus place.
14224 * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
14225 focusing to be geometric in a much more obvious sense. Arrowing
14226 around is still non-intuitive because it isn't perfect and
14227 because entries, etc, grab the arrow keys, but it at least
14228 usually will do what you expect now.
14230 * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
14233 * gtk/gtknotebook.c: Change tabs to be a single item in
14234 the focus chain. Make movement of focus on tabs with arrow
14237 * gtk/gtknotebook.c (gtk_notebook_find_child): Add
14238 CHECK_FIND_CHILD macro to give informative error messages
14239 instead of silent returns.
14241 * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT
14242 flag since we handle GdkReturn on the tabs.
14244 * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
14245 windows rather than sending expose events directly.
14247 * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure
14248 definition for GtkNotebookPage into .c file, since it is private.
14250 * gtk/testgtk.c (create_notebook): Add option for
14251 testing borderless notebook.
14253 * gtk/testgtk.c (page_switch): Removed egregious poking
14254 around in GTK+ internals.
14256 * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
14258 * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
14259 properly through gtk_clist_focus. Make the title headers a
14260 single item in the tab-focus chain, and make left-right wrap
14263 * gtk/gtkwindow.c (gtk_window_focus): Add a custom
14264 focus method so that wrapping around works properly.
14266 * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() -
14267 that is handled for the widget now.
14269 Mon Dec 11 11:41:12 2000 Owen Taylor <otaylor@redhat.com>
14271 * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
14272 widgets as TOPLEVEL.
14274 * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
14275 TOPLEVEL widgets are containers.
14277 * gtk/gtkinvisible.h: Remove useless include.
14279 2000-12-11 Havoc Pennington <hp@redhat.com>
14281 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
14282 Handle chopping off \r\n and 0x2029 in addition to \n before
14283 passing to PangoLayout
14285 * gtk/gtkimcontextsimple.c
14286 (gtk_im_context_simple_get_preedit_string):
14287 return an empty string if no match is pending
14289 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
14290 assertion that the returned preedit string was sane
14292 * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
14293 s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
14294 s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
14296 Mon Dec 11 10:02:26 2000 Owen Taylor <otaylor@redhat.com>
14298 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize):
14299 Fix up finalizer to chain to its parent.
14301 2000-12-11 Alexander Larsson <alexl@redhat.com>
14303 * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
14304 Clearified the difference between the keyboard types. Wrote a note
14305 about the magic sysrq key to get out of raw mode.
14307 2000-12-09 James Henstridge <james@daa.com.au>
14309 * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
14310 member to hold masks for detecting the start of a protocol packet.
14311 (mouse_devs): add packet start masks for ps2 and ms device types.
14312 Left the mask for fidmour blank, as I have no idea what it should
14314 (handle_mouse_io): skip bytes until we get to the start of a
14315 packet. My Logitech mouse seems to be passing an extra NULL pad
14316 byte, and GPM does a similar thing here.
14317 (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
14318 this is the ms mouse driver.
14319 (gdk_fb_mouse_ms_packet): fix up button handling, which was
14320 completely broken except for button1. It was checking the wrong
14321 bit in the packet for the status of the right mouse button, and
14322 wrongly assuming right == button2 rather than 3. I fixed that and
14323 also added support for middle button (button2).
14325 2000-12-08 Havoc Pennington <hp@redhat.com>
14327 * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
14328 that cause a segfault on text insertion
14330 * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix
14333 * gtk/gtktextiter.c (test_log_attrs): use
14334 _gtk_text_buffer_get_line_log_attrs to speed things up a bit
14336 * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs):
14337 Get log attrs for a line, using a cache stored on the buffer
14339 * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
14340 reported by Jeff Franks
14342 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14344 * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
14345 /dev/ttyS0 -> /dev/mouse
14347 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14349 * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
14350 Added dummy gdk_fontset_load.
14352 2000-12-08 Alexander Larsson <alexl@redhat.com>
14354 * docs/README.linux-fb:
14355 * docs/Makefile.am:
14356 Initial GtkFB docs.
14358 * gdk/linux-fb/Makefile.am:
14359 Define GDK_DATA_PREFIX.
14361 * gdk/linux-fb/gdkmain-fb.c:
14363 Change default display to /dev/fb0.
14365 * gdk/linux-fb/gdkpango-fb.c:
14366 Add $(prefix)/share/fonts/ to font path.
14368 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14370 * gdk/linux-fb/gdkkeyboard-fb.c:
14371 New file containing the abstracted keyboard driver. Most code
14372 taken from gdkinput-ps2.c
14374 * gdk/linux-fb/gdkinput-ps2.c:
14377 * gdk/linux-fb/Makefile.am:
14378 Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
14380 * gdk/linux-fb/gdkcolor-fb.c:
14381 display->fb was renamed to display->fb_fd.
14383 * gdk/linux-fb/gdkcursor-fb.c:
14384 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14386 * gdk/linux-fb/gdkinput.c:
14387 Moved gdk_input_init here from gdkinput-ps2.c
14389 * gdk/linux-fb/gdkmain-fb.c:
14390 display->fb was renamed to display->fb_fd.
14391 Now the tty and the console is opened here instead
14392 of in the keyboard driver. Also check GDK_VT to see what
14394 Move gdk_beep () here from gdkinput-ps2.c
14395 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14397 * gdk/linux-fb/gdkmouse-fb.c:
14399 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14400 Return correct keyboard modifiers.
14401 GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
14403 * gdk/linux-fb/gdkprivate-fb.h:
14404 Add tty and vt info to display.
14405 Add orignal modeinfo storage to display
14406 Update global functions
14408 * gdk/linux-fb/gdkwindow-fb.c:
14409 Added gdk_fb_window_find_focus().
14410 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14412 2000-12-07 Havoc Pennington <hp@pobox.com>
14414 * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of
14415 function, noticed by Alex
14417 2000-12-06 Elliot Lee <sopwith@redhat.com>
14419 * configure.in: Detect freetype properly
14421 * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
14424 2000-12-06 Alexander Larsson <alexl@redhat.com>
14426 * gdk/linux-fb/Makefile.am:
14429 * gdk/linux-fb/gdkmouse-fb.c:
14430 New file. Abstracted the mouse drivers a bit.
14432 * gdk/linux-fb/gdkcursor-fb.c:
14433 The cursor hide/show functions was moved here from gdkinput-ps2.c.
14435 * gdk/linux-fb/gdkinput-ps2.c:
14436 Removed old mouse handling code. Moved cursor handling code
14437 to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
14438 gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
14439 gdk_mouse_get_info.
14441 * gdk/linux-fb/gdkmain-fb.c:
14442 Pass NULL pointers for x,y in gdk_mouse_get_info call.
14444 * gdk/linux-fb/gdkprivate-fb.h:
14445 Removed public gdk_fb_find_common_ancestor, added and renamed
14446 functions for the new mouse handling code.
14448 * gdk/linux-fb/gdkwindow-fb.c:
14449 Moved gdk_fb_window_send_crossing_events here. added global
14450 variable gdk_fb_window_containing_pointer. made
14451 gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
14452 renamed to gdk_mouse_get_info.
14454 2000-12-06 Alexander Larsson <alexl@redhat.com>
14456 * gdk/linux-fb/gdkevents-fb.c:
14457 Update to match latest gmain/gsource changes.
14459 * gdk/linux-fb/gdkinput-ps2.c:
14460 Bogus gdk_keymap_get_entries_for_keycode implementation so that
14461 it links. Will be implemented later.
14463 2000-12-03 Havoc Pennington <hp@pobox.com>
14465 * gdk/Makefile.am: add gdkkeys.[hc]
14467 * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
14468 files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
14470 * acconfig.h, configure.in: add checks and command line options
14473 * gdk/x11/gdkkeys-x11.c: Implement the above functions
14475 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
14476 and group in the key event
14478 * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
14479 field with the low-level hardware key code, and a group
14480 field with the keyboard group
14482 * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
14483 and declare a couple globals used for keymap handling
14485 * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
14486 hold down Shift-Control and type a hex number to get a Unicode
14487 character corresponding to the hex number
14488 (gtk_im_context_simple_get_preedit_string): Fix cursor position
14489 (return bytes not chars)
14491 2000-12-05 Elliot Lee <sopwith@redhat.com>
14493 * gdk/gdkcolor.h: Make GdkColor specify element sizes
14494 to avoid waste on 64-bit platforms.
14496 Tue Dec 5 15:49:31 2000 Owen Taylor <otaylor@redhat.com>
14498 * INSTALL: Fix link to PNG home, remove reference
14501 * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
14503 * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
14506 * gtk/gtkcheckmenuitem.c: Permanently turn on
14507 always_show_toggle.
14509 * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to
14510 be NULL. (Vladimir Klebanov, #26545)
14512 * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
14513 some signed/unsigned comparison problems. (#6510,
14516 * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
14517 return type to boolean (Oskar Liljeblad, #18648)
14519 2000-12-05 Alexander Larsson <alexl@redhat.com>
14521 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
14522 Remove bogus colormap setting.
14524 2000-12-05 Alexander Larsson <alexl@redhat.com>
14526 * gdk/linux-fb/gdkcolor-fb.c:
14527 More complete colormap handling. Now GdkRGB work in 8 bpp modes.
14529 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
14532 Tue Dec 5 13:17:53 GMT 2000 Tony Gale <gale@gtk.org>
14534 * docs/tutorial/gtk-tut.sgml: DND updates
14536 2000-12-05 Alexander Larsson <alla@lysator.liu.se>
14538 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14539 Remove old debug g_warning().
14540 (gdk_fb_draw_drawable): The src argument can be either a wrapper
14541 or an implementation, just pass the implementation to draw_drawable_2.
14543 * gdk/linux-fb/gdkprivate-fb.h:
14544 Added GDK_IS_DRAWABLE_IMPL_FBDATA()
14546 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14547 clear and invalidate area when window is destroyed.
14548 (send_map_events): Remove old commented out code.
14550 2000-12-05 Alexander Larsson <alexl@redhat.com>
14552 * gdk/linux-fb/gdkpango-fb.c:
14553 Use italic instead of oblique in font aliases.
14555 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
14556 _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
14557 other unsupported functions.
14559 2000-12-04 Havoc Pennington <hp@redhat.com>
14561 * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
14563 * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
14565 * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
14567 * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary
14568 hack to avoid infinite loops (synthetic expose event) -
14569 Owen has more appropriate fixes in a branch he'll check in later.
14571 * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
14572 separator, CR, and CRLF as line ends
14574 * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
14575 into lines using pango_find_paragraph_boundary(); other bits of
14576 the widget are still going to be broken if the boundary isn't '\n'
14579 2000-12-04 Alexander Larsson <alexl@redhat.com>
14581 * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
14584 * gdk/linux-fb/gdkpango-fb.c:
14585 Copied some 26.6 scaling macros from pango to clean up the rounding.
14586 (pango_fb_font_get_glyph_info): Correct sign on x value.
14588 * gdk/linux-fb/gdkprivate-fb.h:
14589 Removed unreferenced external functions.
14591 * modules/linux-fb/Makefile.am: Use ` instead of '.
14593 * modules/linux-fb/basic.c:
14594 Remove dead code. In particular the dummy lang engine which broke all
14595 pango layouts in GtkFB. Don't include tables-big.i anymore.
14597 * modules/linux-fb/tables-big.i:
14598 Upgrade to latest version from pango. Left for reference, basic_ranges
14601 2000-12-04 Havoc Pennington <hp@redhat.com>
14603 Fix bugs Alex found:
14605 * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
14608 * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
14610 * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
14612 * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw()
14613 implementation in here, apparently the expose() implementation was
14616 2000-12-04 Alexander Larsson <alexl@redhat.com>
14618 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14619 Return positive descent.
14621 2000-12-02 Havoc Pennington <hp@pobox.com>
14623 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
14626 * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
14627 calls gdk_window_process_updates() to push the exposes through
14628 (gtk_widget_class_init): No more draw signal, no
14629 gtk_widget_real_draw()
14631 * gtk/gtkbin.c (gtk_bin_draw): remove
14633 * gtk/gtkbox.c (gtk_box_draw): remove
14635 * gtk/gtkbutton.c (gtk_button_draw): remove
14637 * gtk/gtkcalendar.c (gtk_calendar_draw): remove
14639 * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
14641 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
14643 * gtk/gtkclist.c (gtk_clist_draw): remove
14645 * gtk/gtkentry.c (gtk_entry_draw): remove
14647 * gtk/gtkeventbox.c (gtk_event_box_draw): remove
14649 * gtk/gtkfixed.c (gtk_fixed_draw): remove
14651 * gtk/gtkframe.c (gtk_frame_draw): remove
14653 * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
14655 * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
14657 * gtk/gtklayout.c (gtk_layout_draw): remove
14659 * gtk/gtklist.c (gtk_list_draw): remove
14661 * gtk/gtklistitem.c (gtk_list_item_draw): remove
14663 * gtk/gtkmenu.c (gtk_menu_draw): remove
14665 * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
14667 * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
14669 * gtk/gtknotebook.c (gtk_notebook_draw): remove
14671 * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
14673 * gtk/gtkpacker.c (gtk_packer_draw): remove
14675 * gtk/gtkrange.c (gtk_range_draw): remove
14677 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
14679 * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
14681 * gtk/gtktable.c (gtk_table_draw): remove
14683 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
14685 * gtk/gtktext.c (gtk_text_draw): remove
14687 * gtk/gtktextview.c (gtk_text_view_draw): remove
14689 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
14691 * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
14693 * gtk/gtktree.c (gtk_tree_draw): remove
14695 * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
14697 * gtk/gtktreeview.c (gtk_tree_view_draw): remove
14699 * gtk/gtkviewport.c (gtk_viewport_draw): remove
14701 * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
14703 * gtk/gtkvscale.c (gtk_vscale_draw): remove
14705 * gtk/gtkwindow.c (gtk_window_draw): remove
14707 2000-20-01 Anders Carlsson <andersca@gnu.org>
14709 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
14710 a GtkToggleButton is both insensitive and active, it was being
14711 drawn by the GtkButton draw handler which doesn't check the
14712 state. Now it's calling gtk_toggle_button_paint instead.
14714 2000-12-01 Havoc Pennington <hp@redhat.com>
14716 * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
14717 dangling pointers to the appearance attributes from the
14720 * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
14721 width/height to mean "full width/height of drawable"
14723 * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
14724 click to select word/line
14726 * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
14727 when getting log attrs. Get a slice, so that pixmaps and stuff
14728 are properly handled.
14730 * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
14731 paste into the selection (replaces selection now, previously
14732 crashed or added to selection). Reveals longstanding btree bug -
14733 select multiple lines, middle-click on the selection, boom. This
14734 isn't related to my changes though.
14736 * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
14737 PangoLogAttrs changes
14738 (gtk_entry_move_backward_word): ditto
14740 * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
14741 functions return bool whether the iter moved onto a
14742 dereferenceable position.
14744 * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
14745 functions for motion in terms of display lines.
14747 * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
14748 get the buffer a mark is inside
14750 2000-12-01 Alexander Larsson <alexl@redhat.com>
14752 * gdk/linux-fb/Makefile.am:
14753 * modules/linux-fb/Makefile.am:
14754 Freetype 2 final uses freetype-config
14756 * gdk/linux-fb/gdkpango-fb.c:
14757 Upgrade to use Freetype 2 final.
14758 More flexible support for font aliases, this also fixes a bug with
14759 GtkFontSelector, as the aliases must be visible in the font/family list,
14760 or GtkFontSelector reads uninitialized memory.
14762 2000-11-30 Hidetoshi Tajima <tajima@eng.sun.com>
14764 * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
14765 XGetIMValues to properly terminate variable argument list, and do
14766 NULL return check for ic_values and xim_styles.
14768 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
14769 Restore preedit state after XmbResetIC().
14771 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
14772 XvaCreateNestedList() should take XvaNestedList, but not
14775 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
14776 preedit_draw_callback, preedit_caret_callback): Match
14777 "preedit-changed" signal name to "preedit_changed" to be
14778 consistent to the spec.
14780 * gtk/gtkimcontextsimple.c (check_table):
14781 Match "preedit-changed" to "preedit_changed" to be consistent
14784 Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
14786 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
14787 gc->clip_region == NULL>
14789 2000-11-30 Tor Lillqvist <tml@iki.fi>
14791 Changes by Hans Breuer:
14793 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
14794 Dont't use negative width and height as max_hints. This fixes
14795 Owen's recent testgtk changes for win32.
14797 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
14798 gdk_win32_hdc_release): These are exported and may be called with
14799 other drawable types than our GdkDrawableImplWin32 (?).
14801 * gdk/gdkwindow.c: Backing store appears to work on Windows now,
14802 so always #define USE_BACKING_STORE.
14804 * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
14805 of printf for debugging output.
14807 * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
14809 * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
14811 * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
14814 * gtk/gtktexttypes.h: Ditto.
14816 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
14817 (GDK_VoidSymbol) also if in case of arg check failure.
14819 * gtk/gtkimcontextsimple.c
14820 (gtk_im_context_simple_get_preedit_string): Don't assign cursor
14821 position to the pointer, but to the variable it points to.
14823 * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
14825 * gtk/gtk.def: Updates.
14827 2000-11-29 Elliot Lee <sopwith@redhat.com>
14829 * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
14830 GTK_TYPE_TREE_MODEL.
14832 2000-11-29 Alexander Larsson <alexl@redhat.com>
14834 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
14835 Set the size of the font from the description.
14836 (gdk_text_width): Gross hack that calculates the width
14837 of text by text_length * size/2. This is necessary because
14838 GtkLabel does some ugly gtk_string_width call to calculate
14840 (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
14842 Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
14844 * docs/tutorial/gtk-tut.sgml: DND updates
14846 2000-11-29 Alexander Larsson <alexl@redhat.com>
14848 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
14849 If you pass width or height == 0 to gdk_window_clear_area they
14850 should be calculated from the window size.
14852 2000-11-29 Alexander Larsson <alexl@redhat.com>
14854 * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
14855 a grab, but no grab-cursor, use the cursor from the grabbed
14856 window. (gdk_fb_window_send_crossing_events): Send normal
14857 enter/leave notifications if grab and owner_events == TRUE.
14859 2000-11-29 Alexander Larsson <alexl@redhat.com>
14861 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14862 Do implicit button grabs, even if the window doesn't
14864 (gdk_fb_window_send_crossing_events): If there is a
14865 grab, only the grabbed window gets normal enter/leave
14866 notifications. On ungrab go from grabbed window to current.
14867 Don't send any notification to b when propagating from c -> b.
14868 If setting a grab on window, don't set prev_window.
14869 (handle_mouse_input): Send enter/leave events to the window the
14870 mouse is over, not the grabbed one.
14872 2000-11-28 Elliot Lee <sopwith@redhat.com>
14874 * gdk/gdkregion-generic.c: Zap warning.
14875 * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
14876 * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
14878 2000-11-28 Alexander Larsson <alla@lysator.liu.se>
14880 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
14881 The cursor should be hidden if it is part of either the
14882 source or destination region. Not only if it is in both.
14883 (gdk_window_set_transient_for): Silence warnings.
14885 2000-11-28 Alexander Larsson <alexl@redhat.com>
14887 * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
14888 The default mode in X is Pie Arcs, therefore that is
14891 2000-11-28 Alexander Larsson <alexl@redhat.com>
14893 * gdk/linux-fb/gdkinput-ps2.c:
14894 Implement correct EnterNotify/LeaveNotify:
14895 (gdk_fb_window_send_crossing_events): New function that sends
14896 all GdkCrossingEvents from the last mouse-window to the specified
14898 (gdk_fb_window_visibility_crossing): Removed function.
14899 (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
14900 (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
14901 instead of gdk_window_get_pointer() for better readability.
14903 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
14904 gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
14906 * gdk/linux-fb/gdkprivate-fb.h:
14907 removed gdk_fb_window_visibility_crossing, added
14908 gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
14910 gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
14911 New function that finds the least common ancestor of two windows.
14912 (gdk_window_show, gdk_window_hide):
14913 Use gdk_fb_window_send_crossing_events.
14914 (gdk_fb_window_move_resize): Send configure events to toplevel
14915 windows. Use gdk_fb_window_send_crossing_events.
14917 2000-11-27 Havoc Pennington <hp@redhat.com>
14919 * gtk/gtkprivate.h (enum): Remove a trailing comma
14921 2000-11-27 Federico Mena Quintero <federico@helixcode.com>
14923 * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
14924 the "changed" callback of the adjustment. We need to redraw the
14925 spin button's arrows when the adjustment's range changes.
14926 (adjustment_changed_cb): Draw the arrows.
14927 (gtk_spin_button_value_changed): Draw the arrows.
14929 2000-11-23 Alexander Larsson <alexl@redhat.com>
14931 * gdk/linux-fb/gdkselection-fb.c:
14932 Initial selection implementation.
14934 * gtk/gtkselection.c:
14935 if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
14936 requestor in gtk_selection_request.
14938 * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
14939 Added gdk_selection_property atom.
14941 * gdk/linux-fb/gdkprivate-fb.h:
14942 Export _gdk_selection_window_destroyed.
14943 Removed mask_off_x/y from GdkCursorPrivateFB.
14944 Removed hbearing, added top, left to PangoFBGlyphInfo.
14946 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14947 Call _gdk_selection_window_destroyed
14948 (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
14949 the root window has been created.
14950 (static_dx_hack, static_dy_hack, compare_draw_rects,
14951 gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
14952 in region. They are already sorted. Instead just traverse them in
14953 reverse if draw_direction < 0.
14955 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14956 Double-clicks must be sent after the normal button_press.
14957 (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
14959 * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
14960 Pass _gdk_fb_screen_gc instead of NULL.
14962 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
14963 Initialize gdk_selection_property.
14964 (gdk_event_make): Remove unused code.
14966 * gdk/linux-fb/gdkcursor-fb.c:
14967 Make the pixmap for the cursor the same size as the mask. Also remove
14968 the mask_off_x/y fields in GdkCursorPrivateFB and combine
14969 _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
14970 Now the whole cursor is visible.
14972 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14973 Fix bug where xdest+height instead of ydest+height was used
14974 to calculate if the source and dest overlapped. This fixes the
14975 redraw bug when the main window in testgtk was scrolled when
14976 partially covered by a tall window.
14977 Copy rectangles in region in order depending on draw_direction.
14978 Also moved the draw_direction flipping of start_y and end_y into
14979 the gc functions, as this might not be what all of them want.
14980 (gdk_fb_draw_lines): Support dashed lines.
14981 (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
14982 so that the text is positioned correctly (was 1 pixel high).
14984 gdk/linux-fb/gdkgc-fb.c:
14985 Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
14986 all lines were drawn a pixel to short. Also checked the default of
14987 the rest of the values, and they're the same as X now.
14989 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
14990 Clean up pixel positioning of the glyphs. Just use bgy->top and
14991 bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
14992 to all divisions to get correct rounding behaviour.
14994 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
14995 gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
14996 Moved start_y/end_y flip into draw_drawable implementations.
14997 Flip also x rendering when draw_direction < 0.
14998 Remove unneccesary multiply with draw_direction.
15000 Wed Nov 22 14:11:19 GMT 2000 Tony Gale <gale@gtk.org>
15002 * docs/tutorial/gtk-tut.sgml:
15003 - get rid of gtk_toggle_button_toggled FUD
15004 - start DND section - needs work - based on:
15005 http://wolfpack.twu.net/docs/gtkdnd/
15007 2000-11-22 Alexander Larsson <alexl@redhat.com>
15009 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15010 Correct calculation of font metrics. Now GtkEntrys have sane
15013 2000-11-22 Alexander Larsson <alexl@redhat.com>
15016 Add new type GdkSpan
15018 * docs/reference/gdk/gdk-sections.txt,
15019 docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
15021 Implement and document gdk_region_spans_intersect_foreach.
15023 * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
15024 Add new file gdkrender-fb.c which contains all core
15026 Add gdk_fb_fill_rectangle_generic (old rectangle code) and
15027 gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
15028 (optimized rectangle fillers).
15030 * gdk/linux-fb/gdkdrawable-fb2.c:
15031 Move all rendering code to gdkrender-fb.c.
15032 Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
15033 Use the new span intersection functions in gdk_fb_fill_spans.
15034 gdk_fb_draw_rectangle() clips filled rectangles and calls
15035 gc->fill_rectangle with the result.
15036 gdk_fb_fill_spans() gets extra argument "sorted".
15038 * gdk/linux-fb/gdkevents-fb.c:
15039 Remove unused includes and defines.
15040 New function gdk_fb_get_time() to get correct time for events.
15042 * gdk/linux-fb/gdkinput-ps2.c:
15043 Use gdk method of generating multiple-clicks (gdk_event_button_generate)
15044 Make sure to set the time of all events.
15046 * gdk/linux-fb/gdkmain-fb.c:
15047 Use gdk_fb_get_time ().
15049 * gdk/linux-fb/gdkprivate-fb.h:
15050 New virtual GC calls: fill_span & fill_rectangle.
15051 Export gdk_fb_get_time().
15052 gdk_fb_fill_spans() gets extra argument "sorted".
15054 * gdk/linux-fb/mi*.c:
15055 Use GdkSpan instead of GdkRectangle.
15056 Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
15057 from XFree 4 source)
15059 2000-11-22 <jrb@redhat.com>
15061 * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
15062 reversing the order in an if statement will do. Doing so managed
15063 to make the treemodelsort half work. Other half will follow after
15064 I get the insert function fully fixed.
15066 2000-11-21 Elliot Lee <sopwith@redhat.com>
15067 * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
15068 more than 2 bits. Besides, I need to implement an evil hack. :)
15070 Tue Nov 21 14:17:51 GMT 2000 Tony Gale <gale@gtk.org>
15072 * docs/tutorial/gtk-tut.sgml: minor corrections
15074 2000-11-20 Jonathan Blandford <jrb@redhat.com>
15075 * gtk/gtktreemodelsort.h: Add convertion functions to let you
15076 convert to and from relative path's and iters.
15078 * gtk/treestoretest.c: move to having a sorted/unsorted view. Start
15079 testing sorting functions a bit better. Currently broken -- will
15082 2000-11-20 Havoc Pennington <hp@redhat.com>
15084 * gtk/gtkwidget.c: Documented a bunch of functions in here
15085 (gtk_widget_realize): Warn if you try to realize
15086 a widget with no parent that isn't a toplevel
15087 (gtk_widget_intersect): return a gboolean
15089 2000-11-20 Havoc Pennington <hp@redhat.com>
15091 * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
15092 gtk/testtext.c: Semi-finish widget embedding. Need guffaw
15093 scrolling to be implemented in GDK to finish. Also, right now
15094 we just size_allocate all children on every layout change,
15095 which is pretty lame. Test commented out of testtext.c,
15096 until it works better.
15098 2000-11-20 Alexander Larsson <alla@lysator.liu.se>
15100 * gdk/linux-fb/gdkdrawable-fb2.c:
15101 Removed unused arguments from gdk_fb_drawable_get_pixel().
15103 * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
15104 Renamed fidur specific mouse packet data in MouseDevice to
15105 generic. Used it in ps2 mouse handling code to avoid blocking
15108 Sat Nov 18 18:00:17 2000 Jonathan Blandford <jrb@redhat.com>
15110 * demos/gtk-demo/main.c: Changed to have the list become
15111 non-italic when the demo window is destroyed through an external
15112 event (like a close button). Doing so found three bugs in the
15115 * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
15117 * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
15118 we actually set the cell.
15120 * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
15122 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
15123 free a leaked path. Thanks memprof.
15125 Sat Nov 18 11:58:17 2000 Owen Taylor <otaylor@redhat.com>
15127 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix
15128 off-by-one error when destroying allocated segments
15129 on failure. (Elliot)
15131 Sat Nov 18 11:45:09 2000 Owen Taylor <otaylor@redhat.com>
15133 * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
15134 memleaks found by Evan Martin.
15136 Fri Nov 17 20:14:20 2000 Owen Taylor <otaylor@redhat.com>
15140 * NEWS: Updates for 1.3.2
15142 2000-11-17 Tor Lillqvist <tml@iki.fi>
15144 * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
15145 but in general for window system specific events.
15148 * gtk/makefile.mingw.in
15149 * gtk/makefile.msc.in: Update.
15151 * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
15153 Thu Nov 16 16:11:39 2000 Owen Taylor <otaylor@redhat.com>
15155 * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
15156 distribute gtk.immodules.
15158 * gtk/Makefile.am (install-data-local): Don't install the
15159 gtk.immodules file created for the uninstalled modules;
15160 instead run gtk-query-immodules after install
15162 Wed Nov 15 21:51:31 2000 Owen Taylor <otaylor@redhat.com>
15164 * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
15165 -rpath to the right install location.
15167 * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
15170 * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
15173 2000-11-15 Havoc Pennington <hp@pobox.com>
15175 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
15176 patch from Mikael Hermansson to temporarily stop blinking while
15177 the user is using the keyboard to type or navigate.
15179 Also, when blinking, stay on for longer than we stay off. Also,
15180 return from start_cursor_blink if !cursor_visible, to save
15181 checking that flag all over the place before we call
15182 start_cursor_blink.
15184 Thu Nov 16 01:25:51 2000 Robert Brady <robert@suse.co.uk>
15186 * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
15187 only contain a "fontset" line, which is now ignored.
15189 * gtk/gtkentry.c (gtk_entry_button_release): Make
15190 double-click-to-select-word work.
15192 Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
15194 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
15195 Don't move back one char when we are actually at the end of the
15198 2000-11-15 Robert Brady <robert@suse.co.uk>
15200 * modules/input/iminuktitut.c (inuktitut_compose_seqs):
15203 * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
15204 bind_textdomain_codeset.
15206 (gtk_init_check): Make the warning about translating default:LTR
15209 Wed Nov 15 18:39:40 2000 Owen Taylor <otaylor@redhat.com>
15211 * **/Makefile.am : remove unecessary rules for win32-specific
15212 config-substituted targets. If you want these rules, use
15213 --enable-maintainer-mode (called automatically by autogen.sh).
15214 Stops a lot of unneccessary make-time warnings.
15216 * gtk/gtktext{layout,display}.c: Factor in total width as
15217 well as screen when figuring alignment for word-wrap as well as
15218 no wrap; this is necessary to handle lines that cannot be wrapped
15221 2000-11-15 Havoc Pennington <hp@redhat.com>
15223 * gtk/testtext.c: Implement essential color cycling feature
15225 2000-11-15 Havoc Pennington <hp@redhat.com>
15227 * gtk/gtktextview.c (changed_handler): Invalidate the side windows
15228 when we invalidate the main window.
15230 * gtk/testtext.c (create_view): Get rid of text_changed_callback,
15231 GtkTextView will now invalidate the side windows for us when text
15234 Wed Nov 15 16:02:20 2000 Owen Taylor <otaylor@redhat.com>
15236 * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
15237 unconditionally, since we may need to update the horizontal
15238 scrollbars even if the height didn't change.
15240 * gtk/gtktextlayout.c (add_preedit_attrs): Always get
15241 the extra attrs, since some of them affect size.
15243 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
15244 x_offset correctly.
15246 2000-11-15 Havoc Pennington <hp@redhat.com>
15248 * gtk/gtktextlayout.c (set_para_values): If indent is negative,
15249 don't move the first line out into the margin, instead move the
15250 whole paragraph in order to make space for the first line within
15253 2000-11-15 Havoc Pennington <hp@redhat.com>
15255 * gtk/gtktextview.c (changed_handler): offset redraw rect by
15256 xoffset in addition to yoffset, so horizontal scrolling doesn't
15259 2000-11-15 Havoc Pennington <hp@redhat.com>
15261 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
15263 (render_layout_line): fix reversed test that caused weird
15264 underlines to get drawn
15266 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
15268 * gdk/linux-fb/gdkprivate-fb.h:
15271 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
15273 * gdk/linux-fb/gdkprivate-fb.h:
15274 Added virtual functions set_pixel, get_color,
15275 fill_span and draw_drawable to the GC.
15276 Added global _gdk_fb_screen_gc to use instead of
15277 NULL when drawing to the screen.
15278 Added _gdk_fb_gc_calc_state() prototype.
15280 * gdk/linux-fb/gdkgc-fb.c:
15281 Call _gdk_fb_gc_calc_state() on any gc state change.
15283 * gdk/linux-fb/gdkglobals-fb.c:
15284 Add _gdk_fb_screen_gc
15286 * gdk/linux-fb/gdkdrawable-fb2.c:
15287 _gdk_fb_gc_calc_state() calculates best functions
15288 for the GC state and depth.
15289 Moved bpp specialized code to separate functions.
15290 Added optimized 24 bpp AA draw_drawable.
15292 * gdk/linux-fb/gdkevents-fb.c:
15293 Silence gcc warning.
15295 * gdk/linux-fb/gdkimage-fb.c:
15296 Use _gdk_fb_screen_gc
15298 * gdk/linux-fb/gdkwindow-fb.c:
15299 Init and use _gdk_fb_screen_gc
15301 * gdk/linux-fb/mitypes.h:
15302 Remove unused types.
15304 2000-11-14 Havoc Pennington <hp@pobox.com>
15306 * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
15309 2000-11-14 Havoc Pennington <hp@pobox.com>
15311 * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
15313 * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
15314 unknown char, no real reason we were using a variable.
15315 Remove gtk_text_unknown_char variable. Fix all the text widget
15318 * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC,
15319 since the Unicode spec seems to prefer that character for our
15322 Wed Nov 15 02:18:01 2000 Robert Brady <robert@suse.co.uk>
15324 * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return
15325 value of g_getenv() isn't freeable, so g_strdup it.
15327 * modules/input/inuktitut.c: Inuktitut input method.
15329 * modules/input/Makefile.am: Build this.
15331 2000-11-14 Elliot Lee <sopwith@redhat.com>
15333 * gtk/Makefile.am: Install gtk.immodules, needed for operation
15336 Tue Nov 14 20:13:06 2000 Owen Taylor <otaylor@redhat.com>
15338 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
15339 reversed > that was causing Home to go to end of previous line.
15341 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
15342 modified-keypresses (leave for bindings.)
15344 * modules/input/Makefile.am: Remove useless -export-dynamic
15345 from module LDFLAGS.
15347 2000-11-14 Havoc Pennington <hp@redhat.com>
15349 * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
15352 * gtk/gtktextdisplay.c (render_layout_line): Take rise into
15353 account. Also, render rise, underline, background, etc. for
15354 pixbufs as well as text. Also, draw underlines one pixel higher.
15356 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
15357 PangoAttribute for the rise, so it gets drawn properly. Also,
15358 add the GtkTextAppearance attribute for pixbuf/widget segments
15359 as well; we should go ahead and have rise, underline, background,
15360 stipple work for those
15362 * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
15365 2000-11-15 Tor Lillqvist <tml@iki.fi>
15367 * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
15369 * gtk/gtk.def: Update.
15371 * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
15373 (gtk_rc_get_im_module_file): Use run-time installation directory
15376 * gdk/win32/rc/gdk.rc: Remove.
15377 * gdk/win32/rc/gdk.rc.in: New file.
15378 * gdk/win32/rc/Makefile.am: New file
15379 * gdk/win32/Makefile.am: Corresponding changes.
15381 * gtk/gtk.rc: Remove.
15382 * gtk/gtk-win32.rc.in: New file.
15383 * gtk/Makefile.am: Corresponding changes.
15385 * configure.in: Corresponding changes.
15387 * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
15388 has a built gtkcompat.h. Developers using CVS code on Win32 can
15389 hand-edit it from gtkcompat.h.in.
15391 * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
15392 gtkcompat.h from gtkcompat.h.win32.
15394 2000-11-14 Havoc Pennington <hp@redhat.com>
15396 * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
15397 to default to GDK_ACTION_MOVE if the drag is within a single
15398 widget. Defaults to GDK_ACTION_COPY between widgets.
15400 Mon Nov 13 14:43:48 2000 Owen Taylor <otaylor@redhat.com>
15402 * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
15404 * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
15406 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
15409 * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
15411 * configure.in (GTK_VERSION): Up to 1.3.2
15413 * modules/input/Makefile.am (im_xim_la_SOURCES): Add
15416 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
15417 missing doc comment.
15419 2000-11-14 Alexander Larsson <alexl@redhat.com>
15421 * modules/linux-fb/basic.c:
15422 Use the glib iconv wrappers.
15424 2000-11-13 Havoc Pennington <hp@pobox.com>
15426 * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
15429 * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
15430 scroll the GdkWindows before realization.
15432 2000-11-13 Havoc Pennington <hp@redhat.com>
15434 * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
15435 where GC didn't always get updated properly
15437 * demos/gtk-demo/textview.c (create_tags): Use subattributes
15438 of fonts instead of setting the entire font
15440 * gtk/testtext.c (fill_example_buffer): Use "size" instead of
15441 setting entire font
15443 * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
15445 * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
15446 a bunch of individually-settable font attributes. You can still
15447 use the "font" and "font_desc" args, they just set all the font
15448 attributes at once.
15450 2000-11-13 Elliot Lee <sopwith@redhat.com>
15452 * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
15454 Mon Nov 13 14:29:32 2000 Jonathan Blandford <jrb@redhat.com>
15456 * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
15457 * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
15459 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
15462 2000-11-13 Havoc Pennington <hp@redhat.com>
15464 * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of
15467 * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
15470 * gtk/testtext.c: Test pixels above/below/inside paragraphs
15473 * gtk/gtktextview.c: Implement object args and setters/getters for
15474 all the aspects of the GtkTextAttributes that are not set from
15475 GtkWidget attributes. This is spacing, justification, margins,
15478 (gtk_text_view_set_arg)
15479 (gtk_text_view_get_arg): implement get/set for editable, wrap mode
15481 (gtk_text_view_class_init): Add args for justify, left_margin,
15482 right_margin, indent, and tabs
15485 * gtk/gtktextlayout.c (set_para_values): fix to display indent
15488 * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute,
15489 replace with indent attribute
15491 * gtk/gtktextlayout.c (set_para_values): multiply indent by
15494 * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
15495 rearranging code to do that
15496 (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
15497 i.e. don't subtract the top_margin first, just to keep
15498 all margin-futzing in one place.
15500 * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
15502 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
15503 special case of last line, Pango now handles this itself.
15504 (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the
15506 (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
15507 (find_display_line_above): wasn't moving the byte index as it
15508 iterated over lines, so always returned byte 0. Also, port to use
15510 (find_display_line_below): same problem as
15511 find_display_line_above. Also, port to use PangoLayoutIter.
15513 2000-11-13 Alexander Larsson <alexl@redhat.com>
15515 * gdk/linux-fb/*.[ch]:
15516 Massive reindent to gtk+ standard. My hands hurt.
15518 * gdk/linux-fb/gdkcolor-fb.c:
15519 Move GdkColorPrivateFB from inherited to windowing_data
15521 * gdk/linux-fb/gdkcursor-fb.c:
15522 _gdk_cursor_new_from_pixmap made static
15524 * gdk/linux-fb/gdkdnd-fb.c:
15525 GdkDragContextPrivate moved to windowing_data
15527 * gdk/linux-fb/gdkdrawable-fb2.c:
15528 Removed endian.h, use glib endianness macros instead
15529 Some cleanups in the usage of GDK_DRAWABLE_FBDATA
15530 and GDK_DRAWABLE_IMPL_FBDATA
15532 * gdk/linux-fb/gdkfont-fb.c:
15533 Add empty gdk_font_load(). Needed for linking of Gtk+.
15535 * gdk/linux-fb/gdkimage-fb.c:
15536 Removed endian.h, use glib endianness macros instead
15537 Moved GdkImagePrivateFB to windowing_data
15538 gdk_image_new_bitmap didn't always allocate enough
15541 * gdk/linux-fb/gdkinput-ps2.c:
15542 Added semi-working support for MS serial mice.
15544 * gdk/linux-fb/gdkprivate-fb.h:
15545 s/GdkWindowPrivate/GdkWindowObject/
15546 Removed GdkWindowPrivate typedef
15547 s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
15548 Removed GDK_DRAWABLE_P
15549 Move GdkColorPrivateFB from inherited to windowing_data
15550 Moved GdkImagePrivateFB to windowing_data
15552 * gdk/linux-fb/gdkvisual-fb.c:
15553 Removed some unused debug code.
15555 * gdk/linux-fb/gdkwindow-fb.c:
15556 Use stock cursors instead of including X headers.
15557 s/GdkWindowPrivate/GdkWindowObject/
15559 * gdk/linux-fb/mitypes.h:
15560 Removed unused types.
15562 * modules/linux-fb/basic.c:
15563 Use the pango fribidi wrappers.
15565 2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
15567 * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
15568 gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
15569 gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
15570 gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
15571 GEqualFunc where applicable.
15573 * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
15574 pango_font_description_equal as changed in pango.
15576 * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
15578 * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
15580 * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
15582 * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
15584 * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
15586 * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
15588 * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
15589 gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
15591 * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
15592 gtk_rc_styles_compare -> gtk_rc_styles_equal.
15594 2000-11-12 Havoc Pennington <hp@pobox.com>
15596 * demos/gtk-demo/Makefile.am (democodedir): change demo install
15597 dir to datadir/gtk+-2.0/demo
15599 * demos/gtk-demo/textview.c: Text widget demo; reveals all
15600 sorts of text widget and Pango font bugs. Urgh.
15602 * demos/gtk-demo/Makefile.am (demos): Add textview.c
15604 * demos/gtk-demo/main.c (create_tree): Add instructions at top of
15605 tree that you should double click to see the demo. Fix
15606 types of variables to reflect changed return values from
15607 GtkTreeStore and GtkTreeViewColumn constructors.
15609 * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
15610 newly-created buffer to prepare for GObject semantics
15612 * gtk/testtext.c: don't leak the buffer with GObject semantics
15614 * gtk/testtextbuffer.c: ditto
15616 2000-11-12 Havoc Pennington <hp@pobox.com>
15618 Rename this testgtk to gtk-demo to avoid confusion, and
15619 install it so people can use it as a supplement to
15622 * demos/gtk-demo: Moved from demos/testgtk
15624 * demos/testgtk: Removed
15626 * configure.in: make Makefile in gtk-demo
15628 * demos/gtk-demo/Makefile.am: Install sample source to
15629 datadir/gtk-demo (maybe there's a better place?), and
15630 rename the binary to gtk-demo
15632 * demos/gtk-demo/main.c (load_file): Load installed sample
15633 source if source isn't found in pwd.
15635 2000-11-09 Havoc Pennington <hp@pobox.com>
15637 * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char"
15638 argument to set the char displayed when visibility == FALSE
15639 (gtk_entry_create_layout): If !entry->visible, replace
15640 all chars with the "invisible char"
15642 * gtk/testgtk.c: Test the invisible_char deal
15644 Mon Nov 13 02:16:33 2000 Robert Brady <robert@suse.co.uk>
15646 * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
15647 can't get a native font in the right encoding.
15649 Mon Nov 13 00:09:29 2000 Robert Brady <robert@suse.co.uk>
15651 * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
15654 Sun Nov 12 19:11:42 2000 Owen Taylor <otaylor@redhat.com>
15656 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
15657 Fix warning when moving between paragraphs.
15659 * gtk/gtkentry.[ch]: Change move => move_cursor,
15660 delete => delete_from_cursor, insert => insert_at_cursor
15662 Sun Nov 12 22:52:51 2000 Robert Brady <robert@suse.co.uk>
15664 * modules/input/imviqr.c: A vietnamese VIQR-based input method.
15666 * modules/input/imthai-broken.c: A Thai input method for use if
15667 Thai keys are really generating Latin1 keysyms.
15669 * modules/input/Makefile.am: Build these.
15671 Sun Nov 12 22:15:35 2000 Robert Brady <robert@suse.co.uk>
15673 * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
15674 g_filename_{to,from}_utf8 now takes an extra parameter.
15676 * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
15677 strftime into UTF-8.
15679 (column_from_x, gtk_calendar_paint_day_names): Support RTL
15682 (gtk_calendar_paint_day_names): Draw day names in the right
15685 Sun Nov 12 14:10:09 2000 Owen Taylor <otaylor@redhat.com>
15687 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
15688 problem with using result of g_get_charset() backwards -
15689 pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
15691 * gtk/gtkwindow.c (gtk_window_compute_hints): Support
15692 negative min_width/height and max_width/height to
15693 mean "requisition"; this allows setting a window
15694 to be user-resizable in only one direction easily.
15696 * gtk/testgtk.c (create_main_window): Remove hard-coded
15697 usize - set a default size in the vertical direction.
15699 Sun Nov 12 13:33:01 2000 Owen Taylor <otaylor@redhat.com>
15701 * gtk/gtkrange.c: Add some missing casts. Support
15702 2 and 3 button clicks on the arrows to mean
15703 "move by pages" and "jump to end". (Like gtkspinbutton)
15705 2000-11-12 Hans Breuer <Hans@Breuer.Org>
15707 * gdk/win32/makefile.msc : reflect build module changes
15709 * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
15710 from GdkPixmap*, cast implementation member instead.
15712 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
15713 passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src
15714 maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
15715 more Gdi functions return value checking.
15716 (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
15717 GdkImagePrivateWin32 *.
15719 * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
15720 menus useable again. Add #pragma message to keep reminded on this issue.
15721 (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
15722 windows. This allows to enable backing store on Win32!
15724 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
15725 in drawable is of impl type. Correct specific type checks appropriate.
15727 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check
15728 GDK_WINDOW_DESTROYED before allocating new resources.
15730 * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
15732 * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
15733 (gdk_window_foreign_new) initialize parent handle.
15734 (gdk_window_destroy_notify) add GDK_IS_WINDOW check
15736 * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
15737 Let the GDI invalidate the window on MoveWindow call to fix scrolling
15738 problems (e.g. main buttons in testgtk).
15740 Sat Nov 11 23:07:30 2000 Owen Taylor <otaylor@redhat.com>
15742 * gtk/gtkentry.c (gtk_entry_key_press): Call
15743 gtk_widget_activate for GDK_Return.
15745 * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
15746 of preedit cursor position.
15748 Sun Nov 5 04:24:53 2000 Owen Taylor <otaylor@redhat.com>
15750 * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
15753 Tue Sep 19 10:54:22 2000 Owen Taylor <otaylor@redhat.com>
15755 * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
15756 out support for multiple locales; that simple doesn't
15757 work reliably with current Xlib
15759 * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
15760 gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
15761 Add support for positioning the cursor within the preedit string.
15763 Mon Sep 18 23:56:32 2000 Owen Taylor <otaylor@redhat.com>
15765 * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
15766 at XIM input method module.
15768 * gtk/gtktextview.c: Check for bindings after passing
15769 events to im context filter.
15771 Mon Sep 18 11:50:51 2000 Owen Taylor <otaylor@redhat.com>
15773 * gtk/gtktextlayout.c (add_preedit_attrs): Handle
15774 empty attribute lists properly.
15776 Sun Sep 17 10:08:16 2000 Owen Taylor <otaylor@redhat.com>
15778 * gtk/queryimmodules.c (main): Return non-zero exit
15779 status if errors were encountered querying any
15782 * modules/input/Makefile.am (moduledir): remove
15783 leftover bin program target.
15785 * docs/make-todo: Fix typo in error message.
15787 Sat Sep 16 14:04:30 2000 Owen Taylor <otaylor@redhat.com>
15789 * configure.in: Add modules/input/Makefile
15791 Sat Sep 16 14:01:52 2000 Owen Taylor <otaylor@redhat.com>
15793 * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
15794 don't include gtkthemes.h.
15796 * gtk/testgtk.c gtk/testtext.c: Set environment variables
15799 * gtk/Makefile.am: Add new .c and .h files, build
15800 gtk-query-immodules and use it to create a gtk.immodules
15801 file for use of test programs.
15803 * gtk/gtkpreview.c: remove extra blank line.
15805 Sat Sep 16 13:21:04 2000 Owen Taylor <otaylor@redhat.com>
15807 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
15808 Add the ability to add extra tables beyond the default
15809 one, and also the ability to have compose sequences
15810 that are prefixes of other compose sequences.
15812 * gtk/gtkimcontextsimple.c: Export a preedit string which
15813 consists of possible candidates for keystrokes that have
15814 been entered but not yet committed.
15816 * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
15817 gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
15819 * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
15820 Add a function to add input-method switching menu items
15823 * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
15824 when switching input methods.
15826 * gtk/gtkimcontextsimple.[ch]: Change the format of
15827 the compose table to allow compose tables of different
15828 lengths / sequence.
15830 Sat Sep 16 13:05:48 2000 Owen Taylor <otaylor@redhat.com>
15832 * gtk/gtkimmodule.[ch]: Support routines for loading
15833 GtkIMContext implementations dynamically at runtime.
15835 * modules/input/imcyrillic-translit.c: A sample input
15836 method (based on GtkIMContextSimple with an extra table),
15837 which demonstrates preedit strings and the module
15838 system for input modules
15840 * gtk/queryimmodules.c: Program to query the available
15841 input modules and write the results into a file.
15843 * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
15844 extra config options "im_module_file" (cache file for
15845 input method modules), and "im_module_path" - path
15846 to look for modules when generating cache file.
15848 This doesn't scale.
15850 Sat Sep 16 13:09:06 2000 Owen Taylor <otaylor@redhat.com>
15852 * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
15853 generic code from gtkthemes into a new abstraction
15854 GtkModule which has the logic for implementing
15855 a loadable module which implements a number of
15858 Sat Sep 16 13:07:13 2000 Owen Taylor <otaylor@redhat.com>
15860 * gtk/gtkeditable.[ch]: Convert GtkEditable from
15861 a class into an interface
15863 * gtk/gtkoldeditable.[ch]: Move the old editable
15864 implementation into here, so legacy widgets can
15865 still rely on the implemenation. GtkOldEditable
15866 exports GtkEditable. Make selection handling
15867 code use new text conversion functions (and
15868 handle UTF-8 as a side-effect). Use GtkClipboard
15871 * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
15872 Adopt to match above changes.
15874 * gtk/gtkentry.[ch]: Implement GtkEditable directly,
15875 avoid GtkOldEditable implementation. Restructure
15876 to reduce number of places that modify state directly.
15877 Move to GtkBindingSet. Display the preedit string.
15878 Queue recomputation of PangoLayout and scroll position
15879 to improve effiency of doing complex changes naively.
15880 Add a menu with cut/copy/paste and input method selection.
15882 Thu Sep 14 22:11:05 2000 Owen Taylor <otaylor@redhat.com>
15884 * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
15885 to set preedit string and attributes; display preedit string by
15886 inserting string and attributes at cursor when creating the
15887 GtkTextLineDisplay.
15889 * gtk/gtktextlayout.c: Move all conversions between byte
15890 positions in PangoLayout and GtkTextIter into new functions
15891 line_display_iter_to_index/index_to_iter that properly
15892 handle the preedit string.
15894 * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
15895 it to return const char * (eventually will end up
15896 as GCONST char *, most likely.)
15898 * gtk/gtktextview.[ch]: Handle the preedit string, call
15899 gtk_im_context_reset() as necessary, add a menu to switch
15902 * gtk/gtktextlayout.[ch]: Remove useless
15903 gtk_text_layout_get_log_attrs() function.
15905 2000-11-11 Tor Lillqvist <tml@iki.fi>
15908 * gtk/gtk.def: Update.
15910 * gdk/win32/*.c: Add last argument to g_type_register_static()
15913 * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
15915 * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
15916 generated by older wheel mouse drivers. Get the correct y
15917 coordinate from WM_MOUSEWHEEL messages.
15919 * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
15920 gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
15921 gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
15922 Debugging functions.
15924 * gdk/win32/gdkprivate-win32.h: Declare them.
15926 * gdk/win32/gdkinput-win32.h: Add declaration for
15927 gdk_input_window_destroy().
15929 * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
15931 Fri Nov 10 19:06:41 2000 Jonathan Blandford <jrb@redhat.com>
15933 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
15934 function to help handle keeping things in sync.
15936 Fri Nov 10 12:10:34 2000 Jonathan Blandford <jrb@redhat.com>
15938 * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
15941 * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
15942 (gtk_list_store_class_init): use the new BOXED marshallers.
15944 * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
15945 new_with_values to new_with_types.
15946 (gtk_tree_store_get_column_type): add this.
15947 (gtk_tree_store_class_init): use the new BOXED marshallers.
15949 * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
15950 mirror some POINTER marshallers.
15952 Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com>
15954 * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
15955 allow more interesting iterators. Also, made the lifecycle of
15956 iterators more explicit.
15958 * gtk/gtktreemodelsort.[ch]: New model for sorting.
15960 * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
15963 2000-11-09 Alexander Larsson <alexl@redhat.com>
15965 * demos/testgtk/menus.c:
15966 Changes to make the new testgtk compile after
15967 gtk_menu_append was removed.
15969 * gdk/linux-fb/gdkdrawable-fb2.c
15970 (gdk_fb_get_depth, gdk_fb_get_visual,
15971 gdk_drawable_impl_fb_class_init): Implement
15972 these drawable functions. Now GtkImages work again.
15974 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
15976 * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
15978 * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
15979 gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
15980 Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
15981 GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
15983 2000-11-08 Havoc Pennington <hp@pobox.com>
15985 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
15986 visible_set args, don't know where these had gone, I thought they
15989 * gtk/testtext.c: Add a menu item to apply invisibility tag;
15990 now we can test the feature and see that it's totally broken.
15992 2000-11-08 Havoc Pennington <hp@pobox.com>
15994 Make DND copy pixbufs and tags when source and target share a
15997 * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
15998 in-process GTK_TEXT_BUFFER_CONTENTS target
15999 (gtk_text_view_drag_data_received): Paste from
16000 GTK_TEXT_BUFFER_CONTENTS if we receive it.
16002 2000-11-08 Alexander Larsson <alexl@redhat.com>
16004 * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
16007 * gtk/gtkmenu.c: Add support for scrolling menus.
16008 Remove gtk_menu_append/prepend/insert, these have been moved to
16009 gtkcompat.h as #defines.
16011 * gtk/gtkcompat.h.in:
16012 Add compatibility #defines for gtk_menu_append/prepend/insert
16014 * gtk/gtkmenu.h: Add data needed for scrolling menus.
16015 GtkMenuPositionFunc gets an extra argument push_in.
16016 gtk_menu_append/prepend/insert removed.
16018 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
16019 positioning behaviour to fit to scrolling menus.
16021 * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
16022 into menuitem->submeny. That is wrong, and broke torn
16023 off submenus of torn off menus, since they were unrealized
16024 when the first menu was unrealized.
16026 * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
16027 gtk_menu_shell_select_item() since these need to be overridden in
16030 * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
16031 positioning behaviour to fit to scrolling menus.
16032 (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
16033 the current item so that it is prelighted when the menu pops up.
16034 This is a workaround to the fact that the menu doesn't get the
16035 initial enter event (due to grabs).
16037 * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
16038 s/gtk_menu_append/gtk_menu_shell_append/
16040 * gtk/gtknotebook.c:
16041 s/gtk_menu_insert/gtk_menu_shell_insert/
16043 * gtk/testgtk.c (create_menu, create_menus):
16044 Create the first menu with 50 items so that menu scrolling
16048 Patch from Jonathan Blandford <jrb@redhat.com>
16050 * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
16051 system to handle size requests. First, we ask what the size of
16052 the toggle is. Then, when allocating the size, we allocate the
16053 toggle_size first. This way we can have multiple menu-item
16054 classes w/o needing a seperate class for each.
16056 * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
16057 * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
16059 * gtk/gtkcheckmenuitem.c
16060 (gtk_check_menu_item_toggle_size_request): New function to handle
16061 the toggle size-request.
16063 2000-11-07 Havoc Pennington <hp@redhat.com>
16065 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
16066 Half-ass somewhat fix this function, so that scrolling to the
16067 insertion point works. Pango hacking is in the future to really
16070 * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
16071 length of data, no longer used.
16073 * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
16074 method contents in here, get rid of destroy method
16075 (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
16076 that were backward. Remove debug spew.
16077 (cut_or_copy): Make the clipboard work with insert_range to
16078 preserve tags and pixbufs, not just the primary selection.
16080 2000-11-07 Havoc Pennington <hp@redhat.com>
16082 * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename
16083 to gtk_text_mark_get_visible
16085 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
16086 bug that was generating an invalid iterator
16088 * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
16089 ensure_char_offsets() in front of code placing the iter in an
16092 * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
16093 make override_location arg const
16094 (paste): Replace the selection if we paste into the
16097 * gtk/gtkselection.h: Remove "GtkSelectioData"
16098 (struct _GtkSelectionData): move the definition here.
16100 * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
16101 Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
16103 * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
16105 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
16106 (gtk_text_buffer_insert_range_interactive): implement
16107 (gtk_text_buffer_get_tags): Remove, replaced by
16108 gtk_text_iter_get_tags()
16110 * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
16111 limit parameter, to avoid infinite linear scan.
16112 (gtk_text_iter_backward_search): Add search limit
16113 (gtk_text_iter_forward_find_char): Add search limit
16114 (gtk_text_iter_backward_find_char): Add search limit
16116 2000-11-07 Alexander Larsson <alla@lysator.liu.se>
16118 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16119 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
16120 gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
16121 gdk/linux-fb/gdkwindow-fb.c:
16122 use g_object_new() instead of g_type_create_instance() which
16123 is a private function for fundamental type implementations.
16125 * gdk/linux-fb/gdkinput-ps2.c:
16126 Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
16127 instead just store the current modifier state. Add a (somewhat broken)
16128 keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
16129 Rename exported function gdk_input_ps2_get_mouseinfo to
16130 gdk_input_get_mouseinfo.
16132 * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
16133 gdk/linux-fb/gdkwindow-fb.c:
16134 gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
16137 2000-11-02 Havoc Pennington <hp@redhat.com>
16139 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
16140 use stock buttons. Should be 100% source compatible, appropriate
16141 filesel fields now point to dialog->vbox and dialog->action_area.
16142 On the bizarre side, dialog->action_area and filesel->action_area
16143 are not the same widget.
16144 (gtk_file_selection_init): Put some padding around the selection
16145 entry, so it isn't touching the GtkDialog separator.
16147 * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
16148 use stock buttons, etc. Should also be source compatible.
16149 Set the dialog default title in _init not _new().
16151 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
16152 Use stock buttons; don't put a button box inside the existing
16153 dialog button box. Don't bother with push/pop colormap anymore.
16155 * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
16156 specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
16157 for message dialog, and necessary for the font selection and color
16158 selection with help and apply buttons.
16160 * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
16161 to the created button widget. Set GTK_CAN_DEFAULT on the button.
16162 (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
16163 between buttons, put less padding around the action area.
16164 (gtk_dialog_run): Exit on unmap rather than on destroy.
16165 This will also exit the loop if the widget is hidden.
16166 (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
16167 instead of GTK_RESPONSE_NONE; since we're already adding a bunch
16168 of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
16169 special-case delete event.
16171 * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
16174 Sun Nov 5 05:32:39 2000 Tim Janik <timj@gtk.org>
16176 * gtk/testgtk.c (uposition_stop_configure): provide a toggle
16177 button to temporarily disable position recording in the
16178 "saved position" test.
16180 Sat Nov 4 05:37:17 2000 Tim Janik <timj@gtk.org>
16182 * gtk/gtkthemes.c: added compat code that temporarily implements
16183 GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
16184 going to be revamped by owen's upcoming GtkModule patches, but
16185 untill then people want gtk to build, right? ;)
16187 2000-11-04 Havoc Pennington <hp@pobox.com>
16189 * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
16192 * docs/Changes-2.0.txt: Add note about
16193 gtk_container_get_toplevels()
16195 * gtk/gtktextview.h: formatting
16197 * gtk/gtktextview.c: don't start descriptions with "Returns",
16200 Sat Nov 4 10:12:27 2000 Owen Taylor <otaylor@redhat.com>
16202 * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
16203 look for glib-2.0.m4 not glib.m4. (Ali Abdin)
16205 2000-11-03 Havoc Pennington <hp@redhat.com>
16207 * gtk/gtktexttagtable.c: Docs
16208 (gtk_text_tag_table_size): return a signed int
16210 * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
16211 (gtk_text_tag_event): make the event_object a GObject
16213 * gtk/gtktextview.c: Write API docs for all functions.
16215 * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
16216 for gtk_text_view_get_window_type() called on one of the private
16219 * gtk/gtktextview.c: Instead of accessing text_view->buffer
16220 directly, call get_buffer() which demand-creates a default
16221 buffer. So gtk_text_view_new() can be used to create a view with a
16222 default buffer in it, if you just want an empty text box users can
16223 put data in. Useful for GUI builders also.
16225 2000-11-03 Pablo Saratxaga <pablo@mandrakesoft.com>
16227 * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
16228 the charset encodign portion MUST be in lowercase.
16229 * gtk/gtkrc.az: added file for Azeri language
16231 2000-11-03 Havoc Pennington <hp@redhat.com>
16233 Get widgets working on the btree/buffer side. Display of them
16234 still doesn't work.
16236 * gtk/gtktextview.c: start implementing child widget stuff
16238 * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
16240 * gtk/gtktextlayout.c: handle embedded widgets
16242 * gtk/gtktextdisplay.c: handle embedded widgets
16244 * gtk/gtktextchild.c: Implement all the child anchor goo
16246 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
16249 * gtk/gtktextbtree.c: Add child anchor table to the btree struct
16250 (insert_pixbuf_or_widget_segment): abstract out common portions of
16251 creating a child anchor or a pixbuf segment.
16252 (gtk_text_btree_create_child_anchor): new function
16253 (gtk_text_btree_unregister_child_anchor): new function
16255 * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
16256 allocate_child signal on GtkTextLayout
16258 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
16260 (gtk_text_iter_get_child_anchor): new function
16262 * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
16263 default handler for the changed signal, which calls
16264 gtk_text_buffer_set_modified(), instead of just always emitting
16265 changed then calling set_modified() manually. I guess this is
16266 maybe more flexible. It seems logical.
16268 Fri Nov 3 08:58:38 2000 Tim Janik <timj@gtk.org>
16270 * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
16273 * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
16275 Thu Nov 2 14:10:51 2000 Owen Taylor <otaylor@redhat.com>
16277 * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
16278 been marked static.
16280 2000-11-02 Havoc Pennington <hp@redhat.com>
16282 * gtk/testgtk.c (create_labels): had a test backward
16284 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
16285 fields, so the dest GC ends up with the correct clip origin,
16286 etc. Fixes a bug where colored labels didn't redraw
16289 2000-11-02 Alexander Larsson <alexl@redhat.com>
16291 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16292 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
16293 gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
16294 Add last argument to t_type_register_static call.
16296 * gdk/linux-fb/gdkdrawable-fb2.c:
16297 Add last argument to t_type_register_static call.
16298 export the get_image drawable virtual function.
16300 * gdk/linux-fb/gdkimage-fb.c:
16301 Add last argument to t_type_register_static call.
16302 rename gtk_image_get to _gdk_fb_get_image and
16303 export it for use by gdkdrawable-fb2.
16305 * gdk/linux-fb/gdkprivate-fb.h:
16306 export _gdk_fb_get_image.
16308 * gdk/linux-fb/gdkselection-fb.c:
16309 Add new api call stubs.
16312 Missing ( in linux-fb part.
16314 * modules/linux-fb/Makefile.am:
16315 Must link with gdk_pixbuf or get unresolved symbol.
16317 2000-11-01 Havoc Pennington <hp@pobox.com>
16319 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use
16320 GTK_TYPE_TEXT_ITER and BOXED marshallers
16322 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
16324 * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
16326 * gtk/gtk-boxed.defs: add GtkTextIter
16328 * gtk/gtkmarshal.list: Add marshallers for text widget that
16329 properly use OBJECT and BOXED
16331 2000-11-01 Havoc Pennington <hp@redhat.com>
16333 * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
16335 * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
16336 before returning it.
16338 2000-11-01 Havoc Pennington <hp@redhat.com>
16340 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16341 Clip the rectangle to be rendered to the drawable, since
16342 get_from_drawable() requires a region within the drawable
16344 2000-11-01 Havoc Pennington <hp@redhat.com>
16346 * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
16349 Wed Oct 25 20:10:57 2000 Owen Taylor <otaylor@redhat.com>
16351 * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
16354 2000-11-01 Havoc Pennington <hp@pobox.com>
16356 * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
16358 (gtk_label_finalize): unref the attr list if any.
16360 * gtk/testgtk.c (create_get_image): close test on second click
16361 (make_message_dialog): close dialog if it exists
16363 * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
16365 * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
16368 * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
16369 from Pango markup format
16370 (gtk_label_set_markup_with_accel): ditto but with accelerator
16373 * gtk/gtkimage.c (gtk_image_expose): reformatting.
16375 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
16376 reflect current state of GDK - use gdk_drawable_get_colormap, etc.
16377 Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to
16378 call gdk_window_get_origin().
16380 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16381 implement GDK_PIXBUF_ALPHA_FULL
16383 Wed Nov 1 03:43:42 2000 Tim Janik <timj@gtk.org>
16385 * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
16386 g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
16387 g_signal_handlers_disconnect_matched to block/unblock and disconnect
16388 multiple handlers respectively, instead of only treating the
16389 first handler found (bug reported by owen).
16391 Mon Oct 30 19:23:50 2000 Jonathan Blandford <jrb@redhat.com>
16393 * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
16395 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
16397 * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
16398 gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
16399 gtk/gtktreeviewcolumn.h: Fixed inline docs.
16401 * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
16402 widget. Needs writing someday.
16404 * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
16407 2000-10-30 Havoc Pennington <hp@redhat.com>
16409 * gtk/gtktextview.h, gtk/gtktextview.c:
16410 Rename delete_at_cursor delete_from_cursor, and
16411 move to move_cursor.
16413 2000-10-30 Havoc Pennington <hp@redhat.com>
16415 * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
16416 gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
16417 gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
16418 gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
16419 gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
16420 gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
16421 gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
16422 gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
16423 gtktexttypes.h, gtktextview.c, gtktextview.h:
16425 Massive reindentation and reformatting. Arg alignment and comments
16426 still need fixing in various places.
16428 2000-10-30 Havoc Pennington <hp@redhat.com>
16430 * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
16431 to be named insert_at_cursor and delete_at_cursor so C++ can
16434 2000-10-28 Tor Lillqvist <tml@iki.fi>
16436 * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
16437 to get a double directory separator in case the home directory
16438 ends with one. This would cause trouble especially on Windows,
16439 where the path will be confused with the syntax for an an UNC
16440 (network share) path \\server\share\path.
16441 (gtk_rc_add_initial_default_files): Ditto.
16443 Sat Oct 28 02:33:09 2000 Robert Brady <robert@suse.co.uk>
16445 * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
16447 * gtk/gtktextview.c: Use correct marshallers.
16449 Fri Oct 27 17:56:26 2000 Jonathan Blandford <jrb@redhat.com>
16451 * gtk/gtkliststore.c: Not sure how this ever worked. Fixed it to
16452 use new iter stuff, and added all the appropriate signals et al.
16454 * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
16455 code is internal to gtk only.
16457 2000-10-28 Tor Lillqvist <tml@iki.fi>
16460 * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
16461 glib-genmarshal etc.
16463 Fri Oct 27 20:15:00 2000 Tim Janik <timj@gtk.org>
16465 * gtk/Makefile.am: added dependancies for testtextbuffer which broke
16468 Fri Oct 27 18:51:44 2000 Tim Janik <timj@gtk.org>
16470 * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
16472 2000-10-27 Robert Brady <robert@suse.co.uk>
16474 * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic),
16475 en_GB (British), ia (Interlingua).
16477 2000-10-26 Havoc Pennington <hp@redhat.com>
16479 * gtk/gtktextiter.c (my_strrstr): fix constness warning
16482 nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
16484 * gtk/gtktextsegment.c (char_segment_new): rename
16485 (_char_segment_new_from_two_strings): rename
16486 (_toggle_segment_new): rename
16488 * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
16489 (make_clipboard_widget): make it static
16490 (text_get_func): static
16491 (text_clear_func): static
16493 * gtk/gtkcolorsel.c (adjustment_changed): make this function
16495 (hex_changed): make it static
16496 (hsv_changed): make it static
16497 (opacity_entry_changed): make it static
16499 * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
16500 (toggle_segment_check_func): rename with _gtk
16502 * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
16503 (_widget_segment_new): rename
16504 (_widget_segment_add): rename
16505 (_widget_segment_remove): rename
16506 (_widget_segment_ref): rename
16507 (_widget_segment_unref): rename
16509 * gtk/gtktextmark.c (_mark_segment_new): Rename
16510 _gtk_mark_segment_new
16512 2000-10-26 Havoc Pennington <hp@redhat.com>
16514 * gtk/gtkmarshal.list: add new marshallers used by the text widget
16515 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
16518 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
16521 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
16522 gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
16523 license on these files.
16525 * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
16528 * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to
16529 runtime random number different for each tree, instead of
16530 a constant I made up.
16532 Thu Oct 26 07:36:16 2000 Tim Janik <timj@gtk.org>
16534 * gtk/Makefile.am: buncha cleanups, kludged build sources
16535 dependencies with a Makefile: oldest-source-stamp dependancy
16536 for the moment. automake is really fighting us here, with
16537 intentionally not allowing user-defined rules or dependancies
16538 prior to it's -include $(DEP_FILES) statement. sucks rocks!
16540 * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
16541 to public headers. tehy have a comment stating that they are
16542 "semi-public" aren't included by gtk.h and if enums popup there,
16543 they can be /*< skip >*/-ed.
16545 * gtk/gtktextlayout.h:
16546 * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
16547 added LGPL... <SIGH>
16549 Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com>
16551 * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
16552 GtkTreeIter. Added iterators everywhere.
16554 * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
16556 * gtk/gtktreeviewselection.c: Changed to use the iterators.
16558 * gtk/gtktreestore.c: Changed to use the iterators.
16560 * gtk/gtkliststore.c: Commented out the code. Will convert to
16561 iterators tomorrow.
16563 * gtk/gtkmodelsimple.c: Commented out the code. Will convert to
16564 iterators tomorrow.
16566 * gtk/treestoretest.c: Changed to use iterators.
16568 * demos/testgtk/main.c: Moved to use the new iterator system.
16570 Thu Oct 26 02:10:32 2000 Tim Janik <timj@gtk.org>
16572 * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
16573 localization misbehaviour.
16575 * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
16576 a useless type without copy/free.
16578 * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
16579 of GTK_TYPE_CTREE_NODE.
16581 Thu Oct 26 00:51:52 2000 Tim Janik <timj@gtk.org>
16584 (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
16587 * gtk/gtk-boxed.defs (GtkSelectionData): specify
16588 gtk_selection_data_copy and gtk_selection_data_free
16589 do GtkSelectionData work as params in signals.
16591 Wed Oct 25 20:47:41 2000 Tim Janik <timj@gtk.org>
16593 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
16594 implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
16595 couldn't they at least give it a non-standard name?
16597 * gtk/gtktextlayout.c: arg! yet another implementation of
16598 gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
16600 * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
16601 gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
16602 home. now i know this _is_ a conspiracy.
16604 * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
16607 * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
16608 (gtk_accel_group_create_add): marshaller signature fixups.
16610 * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
16611 pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
16613 * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
16616 Tue Oct 24 23:59:21 2000 Tim Janik <timj@gtk.org>
16618 * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
16619 due to the signal system changes, it wouldn't build currently. to
16622 * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
16624 * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
16625 so it needs gtk_marshal_VOID__ENUM() instead of
16626 gtk_marshal_NONE__UINT().
16628 * gdk/gdk*.c: adapted type registration functions.
16630 * gtk/gtkbindings.c:
16631 * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
16634 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
16637 (gtk_object_destroy):
16638 (gtk_object_shutdown): fixed recursion guards. basically we have to
16639 catch the case where any of GObject.shutdown() or gtk_object_destroy()
16640 is called during ::destroy, and avoid recursion there.
16642 * gtk/gtktypeutils.c:
16643 * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
16644 boxed_copy/boxed_free. this needs a more general solution based on a
16645 publically installed code-generator utility.
16647 * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
16648 glib's gobject has support for that now.
16649 define GtkSignalMarshaller in terms of GSignalCMarshaller.
16651 Mon Oct 23 09:36:42 2000 Tim Janik <timj@gtk.org>
16653 * gtk/gtksignal.[hc]:
16654 * gtk/gtkmarshal.[hc]:
16655 * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
16656 compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
16657 removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
16660 * *.c: marshaller name fixups.
16662 * gtk/gtkmarshal.list: added a comment briefing the format.
16664 Sun Oct 22 23:14:39 2000 Tim Janik <timj@gtk.org>
16666 * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
16667 compatibility macros here now. more specifically, most of
16668 the API is preserved (yes, _most_, nonwithstanding the
16669 following exceptions listed, the API is stil lHUGE ;)
16670 things that got removed completely:
16671 GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
16672 gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
16673 gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
16674 gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
16675 gtk_signal_remove_emission_hook().
16676 non-functional functions variants:
16677 gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
16678 the GtkCallbackMarshal argument to gtk_signal_connect_full() is
16679 not supported anymore.
16680 (gtk_signal_compat_matched): new internal function to aid
16681 implementation of the compatibility macros, it provides
16682 functionality to block/unblock/disconnect handlers based
16685 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
16687 * *.c: adaptions to new type registration API signatures.
16689 Fri Oct 20 15:26:33 2000 Tim Janik <timj@gtk.org>
16691 * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
16693 2000-10-25 Robert Brady <robert@suse.co.uk>
16695 * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
16696 gdk_property_delete): If window == NULL, assume the root window.
16697 (restoring the behaviour that was in 1.2).
16699 * gtk/testtext.c (save_buffer): Allow creation of new files when
16702 (fill_file_buffer): Don't die if a UTF-8 sequence is split across
16705 2000-10-25 Tor Lillqvist <tml@iki.fi>
16707 * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
16709 * gdk/win32/gdkdrawable-win32.c
16710 * gdk/win32/gdkimage-win32.c
16711 * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
16714 * gdk/win32/gdkcc-win32.c
16715 * gdk/win32/gdkcolor-win32.c
16716 * gdk/win32/gdkfont-win32.c
16717 * gdk/win32/gdkinput-win32.c
16718 * gdk/win32/gdkmain-win32.c
16719 * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
16721 2000-10-24 Havoc Pennington <hp@redhat.com>
16723 * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
16724 it a static function
16726 * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
16727 redraw text when a tag is applied to it.
16729 * gtk/gtktexttag.c (gtk_text_tag_affects_size)
16730 (gtk_text_tag_affects_nonsize_appearance): private functions to
16731 see if a tag requires various kinds of redraw/layout to be queued
16734 * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
16736 * gtk/testtext.c (fill_example_buffer): Put the cursor
16737 at the start of the buffer, so search works by default
16739 * gtk/gtktextiter.c (lines_match): init match_start always
16741 * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
16742 function, get iter at a line + a byte index
16744 * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
16745 to set byte position within a line
16746 (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
16748 2000-10-23 Havoc Pennington <hp@redhat.com>
16750 * gtk/testtext.c: Re-enable the "find" dialog
16752 * gtk/testgtk.c: Add test for gdk_drawable_get_image
16754 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
16755 the arguments to gdk_draw_drawable were in the wrong order
16756 (gdk_window_paint_init_bg): This function was ignoring the
16757 init_region, instead of clipping to it, so the entire backing
16758 pixmap was cleared on every begin_paint()
16759 (gdk_window_begin_paint_region): Hmm, the same list-walking bug
16760 was in here again, the loop kept using the same GtkWindowPaint
16762 (gdk_window_begin_paint_region): Fix a bug where we had two
16763 x_offset instead of x_offset and y_offset
16765 * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
16766 before we get the image.
16767 (gdk_draw_drawable): get the composite before we draw the drawable.
16768 (gdk_drawable_real_get_composite_drawable): default
16769 get_composite_drawable implementation that returns the drawable
16772 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
16773 get_composite_drawable virtual function
16775 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
16778 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
16779 make this work if the source drawable is a GdkDrawableImplX11
16780 instead of a public drawable type. This is really broken; the
16781 problem is that GdkDrawable needs a virtual method get_xid(), but
16782 of course that doesn't work in practice. Enter RTTI.
16784 Also, improve mismatched depth message.
16786 * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
16789 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
16790 install _gdk_x11_get_image as our implementation of get_image
16792 * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
16793 _gdk_x11_get_image and export for use in gdkdrawable-x11.c
16795 * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
16796 gdk_drawable_get_image
16798 * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
16800 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
16803 * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
16804 trailing semicolon after for loop
16806 Mon Oct 23 12:07:57 2000 Owen Taylor <otaylor@redhat.com>
16808 * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
16809 where font_desc for widget's context lagged widget's font_desc by
16812 2000-10-22 Tor Lillqvist <tml@iki.fi>
16814 * gdk/win32/gdkgc-win32.c
16815 * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
16817 * gtk/makefile.mingw.in
16818 * gtk/gtk.def: Updates.
16820 * gtk/testgtk.c: sleep() is called _sleep in MS's C
16823 * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
16825 * gtk/makefile.msc: Remove
16827 * gtk/makefile.msc.in: New file, like makefile.mingw.in.
16829 * gtk/Makefile.am: Add it.
16831 * configure.in: Generate it.
16833 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
16834 * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
16835 something even if not implemented, to satisfy picky MSVC.
16837 Patches by Hans Breuer:
16839 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
16840 SetBkMode() and SetTextAlign() before calling
16841 pango_win32_render().
16843 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
16844 Set hcliprgn to NULL after destroying it.
16845 (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
16847 * gdk/win32/gdkgeometry-win32.c
16848 (_gdk_windowing_window_queue_antiexpose): More effective
16851 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
16852 depth as default, not the visual's.
16854 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
16855 against empty title.
16857 * gdk/win32/gdkprivate-win32.h: Define a helper macro,
16858 IMAGE_PRIVATE_DATA.
16860 * gdk/win32/gdkimage-win32.c: Use it.
16862 2000-10-22 Robert Brady <robert@suse.co.uk>
16864 * configure.in: Check for bind_textdomain_codeset
16866 * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset
16867 present, make use of it.
16869 Add a translatable string "default:LTR" which, if translated
16870 to "default:RTL", will cause the default direction to be
16873 * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget
16874 direction if marked as flippable.
16876 * gtk/gtkhscale.c: Mark widget as flippable.
16878 2000-10-04 Havoc Pennington <hp@redhat.com>
16880 * gtk/testgtk.c (create_buttons): create some stock buttons
16881 with the default accel group
16882 (create_image): test some new GtkImage features
16883 (make_message_dialog): test GtkMessageDialog
16884 (create_modal_window): fix someone's bizzarro indentation
16886 * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement
16887 GTK_WIN_POS_CENTER_ON_PARENT.
16888 Add "destroy with parent" setting, which means the window goes
16889 away with its transient parent.
16890 (gtk_window_get_default_accel_group): get the default accel group
16892 (gtk_window_set_destroy_with_parent): set/unset destroy with
16894 (gtk_window_read_rcfiles): invalidate icon set caches
16895 after reloading rcfiles
16897 * gtk/gtkenums.h (GtkWindowPosition): add
16898 GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog
16899 on its parent window when the dialog is mapped for the first time.
16901 * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add
16902 a simple message dialog class
16904 * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event
16905 handler to emit response signal, and maybe later it would
16906 honor a hide_on_delete flag - though that isn't there yet.
16907 Set border width on the vbox to 2, so we get some padding.
16908 Use a button box for the action area.
16909 (gtk_dialog_key_press): synthesize a delete event if Esc
16910 is pressed and the GtkWidget key press handler didn't
16911 handle the escape key.
16912 (gtk_dialog_new_with_buttons): new function creates a dialog
16913 with some default buttons in it.
16914 (gtk_dialog_add_action_widget): add an activatable widget
16915 as a button in the dialog - you can also add a non-activatable
16916 widget by accessing the action area directly.
16917 (gtk_dialog_add_button): add a simple button - stock ID or
16918 label - to the action area
16919 (gtk_dialog_response): emit response signal
16920 (gtk_dialog_run): block waiting for the dialog, return
16921 the response. Override normal delete_event behavior, so that
16922 delete_event does nothing inside gtk_dialog_run().
16924 * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
16925 emitted when an action widget is clicked or the dialog gets
16928 * gtk/gtk.h: add gtkmessagedialog.h
16930 * gtk/Makefile.am: add gtkmessagedialog.[hc]
16932 2000-10-18 Havoc Pennington <hp@redhat.com>
16934 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
16935 where any number of empty lines would get skipped
16937 * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
16940 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
16941 warning about invalid iterators (explain more thoroughly)
16942 (gtk_text_iter_in_region): rename gtk_text_iter_in_range
16944 * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
16947 * demos/*.c: Add error handling
16949 * gtk/gtktextbuffer.c: don't modify const iterators
16951 * gtk/gdk-pixbuf-loader.c: Add full error handling here
16953 * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
16956 * gtk/gtkiconfactory.c: Update to reflect addition of error
16957 handling to gdk-pixbuf loaders
16959 Wed Oct 18 11:14:05 2000 Owen Taylor <otaylor@redhat.com>
16961 * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
16962 move to new modularized testgtk.
16964 2000-10-17 Jonathan Blandford <jrb@redhat.com>
16966 * gtk/gtktreeview.c: Draw the arrows correctly.
16968 * gtk/gtktreemodel.c: Added user docs.
16970 * gtk/gtk.h: remove gtktreedatalist.h.
16972 * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
16973 parent when generating my type.
16975 * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
16976 POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
16978 2000-10-16 Jonathan Blandford <jrb@redhat.com>
16980 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
16981 GtkTreeModel from object to interface.
16983 2000-10-16 Havoc Pennington <hp@redhat.com>
16985 * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing
16988 2000-10-16 Jonathan Blandford <jrb@redhat.com>
16990 * gtk/gtktreeselection.c: Add API documentation to all public
16993 * gtk/gtktreeviewcolumn.c: Added API documentation to all public
16996 2000-10-15 Jonathan Blandford <jrb@redhat.com>
16998 * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
16999 proposed by Guy Harris <gharris@flashcom.net>. Also, added API
17000 docs to all public functions.
17002 * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
17003 gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
17004 gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
17005 gtk/gtktreemodel.h, gtk/gtktreeselection.c,
17006 gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
17009 2000-10-14 Robert Brady <robert@suse.co.uk>
17011 * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
17013 2000-10-12 Jonathan Blandford <jrb@redhat.com>
17015 * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
17016 values other then G_TYPE_STRING.
17017 * gtk/gtktreeselection.c: Minor commenting updates.
17018 * gtk/gtktreeview.c: Format updates.
17020 2000-10-09 Tor Lillqvist <tml@iki.fi>
17022 * README.win32: Update.
17024 * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
17025 lines that had been deleted by mistake (?).
17027 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
17028 also the case fg==white and bg==black (but still not randomly
17029 coloured cursors). Thanks to Wolfgang Sourdeau.
17031 * gdk/win32/*.c: Silence gcc -Wall.
17033 * gtk/gtk.def: Add missing entry points.
17035 Fixes by Hans Breuer:
17038 * gdk/win32/makefile.msc: Update.
17040 * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
17041 some MSVC thing, presumably), cause breakpoint on failures. Add
17042 GDK_NOR case. Call g_log_set_always_fatal.
17044 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
17045 should be pased by reference.
17047 * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
17049 * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
17051 * gdk/win32/gdkevents-win32.c
17052 * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
17054 * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
17055 implementation object.
17057 * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
17060 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
17061 Use the wrapper object.
17063 2000-10-06 Havoc Pennington <hp@redhat.com>
17065 * Makefile.am (SRC_SUBDIRS): contrib subdir
17067 * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
17068 so it can be used in Xlib version
17070 * demos/testpixbuf.c (update_timeout): error checking from 1.0
17073 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
17074 change from 1.0 tree that returns first frame of animation
17075 if the loaded file is an animation.
17077 * contrib: add new directory to hold stuff that comes with GTK+
17078 but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
17080 * configure.in: add contrib/*
17082 2000-10-05 Havoc Pennington <hp@redhat.com>
17084 * demos/testpixbuf-save.c: add pixbuf save test
17086 * demos/Makefile.am: add testpixbuf-save.c
17088 2000-10-05 Jonathan Blandford <jrb@redhat.com>
17090 * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
17091 GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
17092 * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
17093 * gtk/gtktreeselection.[ch]: Replaced
17094 "node_selected"/"node_unselected" signal with "selection_changed"
17097 2000-10-04 Jonathan Blandford <jrb@redhat.com>
17099 * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
17102 2000-10-04 Jonathan Blandford <jrb@redhat.com>
17104 * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
17107 Wed Oct 4 15:52:15 2000 Owen Taylor <otaylor@redhat.com>
17109 * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
17110 Move list pointer forwards before removing item from
17111 list. (Crash reported by Salmaso Raffaele)
17113 * gdk/gdkwindow.h: Remove spurious trailing ,
17115 * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
17116 dependencies on uninstalled libraries, sorry folks.
17118 2000-10-04 Havoc Pennington <hp@redhat.com>
17120 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
17121 gtk/gtkiconfactory.c: Fix copyrights
17123 * demos/testpixbuf.c: add inline pixbuf test
17125 Mon Sep 25 15:05:17 2000 Owen Taylor <otaylor@redhat.com>
17127 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
17128 Add gdk_window_iconify.
17130 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
17131 (gdk_window_set_geometry_hints): Add win_gravity
17132 to geometry structure.
17134 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
17135 Implement _NET_WM_PING.
17137 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
17138 Set _NET_WM_PID on the client leader.
17140 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
17141 Handle UTF-8 better.
17143 * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
17144 UTF-8 better, set _NET_WM_NAME as well. Only set
17145 icon name if it hasn't previously been explicitely
17148 2000-10-03 Havoc Pennington <hp@redhat.com>
17150 * gtk/testtextbuffer.c: clean up trailing whitespace,
17151 add extensive tests for tag toggle iteration.
17153 * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
17156 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
17157 optimize case where the tag root is on level 1
17158 (gtk_text_line_previous_could_contain_tag): attempt to implement
17159 (gtk_text_line_next_could_contain_tag): Abstract out node_compare
17162 * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
17163 Implement this, though not very efficiently.
17165 * gtk/gtktextiterprivate.h: reformat
17167 * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
17170 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
17171 this to properly revalidate the iterators.
17173 * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
17174 properly at the end of the line (and therefore on empty lines)
17176 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
17177 maybe we should return a value...
17179 2000-10-03 Tor Lillqvist <tml@iki.fi>
17181 * config.h.win32: Guard definition of alloca(). glib.h now handles
17185 * gtk/gtk.def: Add new entry points.
17187 Changes just to make GTK+ build without errors on Win32. No hope
17188 of it working in its current state, though...:
17190 * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings. Add
17191 some functions from the X11 backend, just to make GTK+ build.
17193 * gdk/makefile.mingw.in
17194 * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
17195 number. Add new object files.
17197 * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
17198 GetMessageTime to get timestamp (where on X11 uses
17199 gdk_x11_get_server_time()).
17201 2000-10-02 Havoc Pennington <hp@pobox.com>
17203 * gtk/gtktextview.c: text_window_* weren't static and should have
17205 Start work on child widgets; not yet complete, syncing to
17208 * gtk/gtktextchild.h: change this to contain a public interface,
17209 starting work on child interfaces.
17210 * gtk/gtktextchildprivate.h: move private interfaces here
17212 * gtk/Makefile.am: update to reflect gtktextchildprivate.h
17214 * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
17215 gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c,
17216 gtk/gtktextmark.c: copyright notices
17218 * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
17221 * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
17224 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
17227 2000-09-30 Havoc Pennington <hp@pobox.com>
17229 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
17230 NULL start/end pointers
17232 * gtk/gtktextbuffer.c: Write some docs
17233 (gtk_text_buffer_get_selection_bounds): Allow start/end to be
17234 NULL, so you can just check whether there's a selection.
17236 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to
17237 cleanup_line or segments_changed ourselves, it gets done
17240 * gtk/gtktextmark.h:
17241 s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
17243 * gtk/gtktextsegment.h: Clean up some indentation and naming mess
17245 * gtk/gtktextmark.c: delete some more old Tk cruft
17247 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
17248 mark before removing it, so we can emit MARK_DELETED with a valid
17250 (gtk_text_buffer_mark_set): hold ref across signal emission
17252 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
17253 whining about attempts to delete special marks
17255 * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
17256 underscore, since it's internal.
17258 * gtk/gtktextbuffer.h: Remove find_string prototype, this is
17259 now implemented in terms of iterators in gtktextiter.h
17261 * gtk/gtktextbuffer.c (gtk_text_buffer_set_text):
17262 New function, destructively sets contents of buffer. Also
17263 a convenient way to clear the buffer by setting text to ""
17265 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
17266 multiline string literal
17268 * gtk/testtext.c (text_changed_callback): Redraw line numbers if
17271 * gtk/gtktextiter.c (forward_char): Return FALSE if new location
17272 is not dereferenceable
17273 (gtk_text_iter_forward_lines): fix return value
17275 2000-09-29 Havoc Pennington <hp@redhat.com>
17277 * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
17279 * gtk/gtktextview.c: Implement drag thresholding; change functions
17280 that set border window size to have nicer name
17281 (gtk_text_view_mark_set_handler): Fix this to have the
17284 * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
17286 * gtk/testtext.c: Update with API changes, put line numbers on
17289 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
17292 * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
17293 pixbuf; delete a big block of #if 0 Tk code
17295 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
17296 insert_pixmap with insert_pixbuf
17298 2000-09-29 Martin Baulig <baulig@suse.de>
17300 * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
17301 confusion with the GdkPixbuf of the GNOME 1.x platform.
17303 2000-09-29 Havoc Pennington <hp@pobox.com>
17305 * gtk/gtktextview.c: Implement the side windows.
17307 * gtk/testtext.c: Implement simple line numbering in the
17308 left side window; seems to make scrolling sloooow. Oops.
17309 Also, cursor blink is for some reason causing redraws
17310 of the line numbers. Should investigate...
17312 2000-09-28 Havoc Pennington <hp@redhat.com>
17314 * gtk/gtktextview.c: Set up infrastructure to deal with lots of
17315 scrolling child windows, and draw focus rectangle properly.
17317 (gtk_text_view_buffer_to_window_coords):
17318 Coordinate transformation to deal with all these freaking windows
17320 (gtk_text_view_window_to_buffer_coords): transform the other way
17322 * gtk/testtext.c (create_buffer): Update to match Pango API change
17324 * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
17326 (foreach_unref): don't emit remove signal from finalize, just
17327 set tag's parent to NULL
17329 2000-09-26 Havoc Pennington <hp@redhat.com>
17331 * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
17334 2000-09-26 Havoc Pennington <hp@redhat.com>
17336 * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
17337 headers into the private header list
17339 * Makefile.am (pkgconfig_DATA): install pkg-config files
17341 * configure.in: add pkg-config files
17343 * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
17345 * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
17346 outstanding icon caches on theme change.
17348 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
17351 (GtkIconSource): Specification for creating a pixbuf
17352 appropriate for a direction/state/size triplet from
17353 a source pixbuf or filename
17355 (GtkIconSet): List of GtkIconSource objects that are used to
17356 create the "same" icon (e.g. an OK button icon), and cache for
17359 (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
17360 up the icon set for a given stock ID. GTK maintains a stack of
17361 GtkIconFactory to search, and applications or libraries can add
17362 additional icon factories on top of the stack
17364 * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
17365 the set of GtkIconSource specified for a given stock ID into
17366 a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
17367 RcStyle, under the specified stock ID.
17369 * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
17370 render_icon used to derive a GdkPixbuf from a GtkIconSource.
17371 This allows people to theme how prelight, insensitive, etc. are
17374 (gtk_style_lookup_icon_set): Look up a stock ID in the list of
17375 icon factories for a style, and return the resulting
17378 (gtk_style_render_icon): Render an icon using the render_icon
17379 method in the GtkStyleClass.
17381 * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
17382 Use the style for a given widget to look up a stock ID, get the
17383 icon set, and render an icon using the render_icon method
17386 * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
17387 (contains information about a stock item), the built-in stock item
17388 IDs, and functions to add/lookup stock items.
17390 * gtk/stock-icons/*: Stock icons that come with GTK
17392 * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
17393 a button based on a GtkStockItem
17394 (gtk_button_new_accel): Takes a uline string and accel group, and
17395 installs the accelerator.
17397 * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
17398 image-display widget.
17400 2000-09-25 Havoc Pennington <hp@redhat.com>
17402 * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
17404 * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data):
17405 Fix a bug when removing node data, we didn't properly
17406 re-splice the linked list after removing the data.
17408 * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through
17409 GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
17411 * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
17413 * gtk/gtktextlayout.c (set_para_values): Set tab array
17414 for the layout from the GtkTextTag.
17416 * gtk/gtktexttypes.h: delete tab and search cruft,
17417 remove g_convert() in favor of GLib version
17419 * gtk/gtktexttypes.c: remove tab implementation from here,
17422 * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement
17423 tab stuff using new PangoTabArray from Pango
17425 * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
17426 unused border_width stuff
17428 Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
17430 * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
17431 glib) and now useless utf_to_latin1() latin1_to_utf()
17433 * gtk/gtktextview.[ch]: Change ::move_insert and
17434 ::delete_text action signals to ::move and ::delete;
17435 create the signals with the right enumeration type,
17436 not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
17437 C-v bindings, change Home, End to move to beginning/end
17438 of line, Add C-Home C-End to move to beginning/end
17439 of buffer. Change ::cut_text to ::cut_clipboard, etc;
17440 combine ::scroll_text into ::move; use new GtkSelectionData
17441 functions to simplify DND text handling.
17443 * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
17444 deletion enumerations here, rename enumeration values to
17445 be consistently plural.
17447 * gtk/gtktextbuffer.c: Use new clipboard interfaces
17448 for cut/copy/paste and primary selection.
17450 * gtk/gtktextbuffer.[ch]: Remove excess time and
17451 'interactive' arguments from cut/copy/paste;
17452 rename cut to cut_clipboard, etc; remove
17453 gtk_text_buffer_get_clipboard_contents().
17455 * gtk/gtktextlayout.[ch]: Add
17456 gtk_text_layout_move_iter_to_line_end() to move the iter to
17459 * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
17460 Functions to set or get a UTF-8 string on the selection
17463 * gtk/gtkclipboard.[ch]: New, simplified selection handling
17466 * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
17467 created widgets - one of these is useless if we don't.
17469 * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
17470 a public function clear all targets registered for the
17473 * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
17474 Never call gtk_widget_realize() - that was just asking
17475 for bizarre side-effects.
17477 * gtk/gtkselection.c (gtk_selection_owner_set): Call
17478 gdk_selection_owner_set even if the widget is the
17479 same so that we reliably update the timestamp on
17482 * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
17483 gdk_x11_get_server_time() function.
17485 * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
17486 gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
17487 Add some tricky filtering on serial numbers for
17488 selection clear events to fix up long-standard
17489 race condition FIXME's in gtkselection.c.
17491 * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
17492 routines to convert from utf8 to compound text or
17493 STRING and from a text property to UTF-8.
17495 * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
17496 a convenience function gdk_get_current_event_time().
17498 * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
17499 and free selection_data->data properly
17501 Sat Sep 9 10:23:53 2000 Owen Taylor <otaylor@redhat.com>
17503 * gtk/gtkthemes.c: Remove some unecessary includes.
17505 2000-09-08 Jonathan Blandford <jrb@redhat.com>
17507 * gtk/gtktextdisplay.c
17508 * gtk/gtktextlayout.c
17511 * gtk/testtext.c: Change the overstrike property to strikethrough,
17512 to closer match pango.
17514 Fri Sep 8 14:28:00 2000 Owen Taylor <otaylor@redhat.com>
17516 * gtk/gtktextview.c: Fix up visibility so that focus,
17517 cursor_visible and blink interact properly. Reenable cursor blink
17518 which had been roughly disabled. Make blink and focus
17521 * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
17522 Add a flag for whether to display insertion cursor and
17523 a function to set the flag.
17525 * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
17526 get_line_y() to get_line_yrange(), to be a bit more generally
17529 Thu Sep 07 20:54:33 2000 George Lebl <jirka@5z.com>
17531 * gtk/gtkmenu.c: in gtk_menu_set_submenu_navigation_region
17532 do stop_navigating_submenu, to clear last timeout properly.
17533 Also in gtk_menu_motion_notify move ignore_enter above
17534 the conditional to make it always happen as suggested by Owen
17536 2000-09-07 Tor Lillqvist <tml@iki.fi>
17538 * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
17540 * gdk/win32/gdkwin32.h: Add more definitions missing from the free
17543 * gdk/win32/gdkprivate-win32.h: Add a couple of missing
17546 * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
17547 (gdk_win32_get_colormap): A line had been deleted by mistake.
17549 * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
17550 (gdk_event_translate): Handle more virtual keycodes to be able to
17551 generate GDK events for Control-comma, Control-period, etc.
17553 * gtk/gtk.def: Add some missing entry points.
17555 Thu Sep 7 11:47:02 2000 Owen Taylor <otaylor@redhat.com>
17557 * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
17558 Doc comment fixing. (Mostly non-matching parameter names.)
17560 * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
17561 comments a little to avoid looking like a doc comment.
17563 * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
17564 GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
17565 conversions be changed to GError?)
17567 * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT):
17568 Move private #defines into .c file.
17570 * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
17571 order of argument addition, remove duplicates.
17573 * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
17574 parent class is FrameClass, not BinClass.
17576 * gtk/gtk.h: Add gtkinvisible, which was missing.
17577 (It's occasionalyl useful for client apps, if seldom.)
17579 * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
17582 Wed Sep 6 09:53:15 2000 Owen Taylor <otaylor@redhat.com>
17584 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
17585 coordinates when creating window, instead of GDK-space
17586 coordinates. (Avoid BadValue on too large windows.)
17588 2000-09-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
17590 * configure.in (use_mmx_asm): Remove conftest* after use along the
17591 lines of AC_TRY_COMPILE.
17593 * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
17594 of g_dirname, which is deprecated.
17595 (gtk_rc_parse_any): Removed calls to
17596 g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
17598 * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
17599 Removed calls to g_hash_table_{freeze,thaw}, as they are
17602 * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
17603 instead of g_basename.
17605 2000-09-04 Elliot Lee <sopwith@redhat.com>
17607 * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
17610 Sun Sep 03 00:47:08 2000 George Lebl <jirka@5z.com>
17612 * gtk/gtkwidget.h: Add some documenting comments about
17613 GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
17614 just as owen said on irc.
17616 * gtk/gtkwindow.c (gtk_window_set_default): Don't blindly
17617 set HAS_DEFAULT. Only set it if there isn't another window
17618 holding it (a focus window which RECEIVES_DEFAULT) and only unset
17619 it if the widget is not the focused window with RECEIVES_DEFAULT.
17620 This fixes weird double default bugs in dialogs which has things
17621 call gtk_window_set_default at times.
17623 Fri Sep 1 22:39:07 2000 Owen Taylor <otaylor@redhat.com>
17625 * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
17626 Nils Barth and David Santiago to improve submenu
17627 navigation. The patch does this by creating a triangular
17628 region from the point where the pointer leaves the
17629 menu to the submenu. While the pointer is in
17630 that region and a timeout has not expired, events
17631 that would cause the active submenu to change are
17634 Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
17636 * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
17637 moving a toplevel window immediately after sizing it would
17638 result in it being sized back to the old size since
17639 impl->width, impl->height aren't updated until we hear
17640 back from the server. There is still a (longstanding) bug
17641 here that gdk_window_get_size() will give the wrong size
17642 until we do hear back.
17644 2000-08-31 Havoc Pennington <hp@redhat.com>
17646 * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
17647 gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c,
17648 gtk/gtktexttagprivate.h, gtk/gtktextview.c:
17649 Rename GtkTextStyleValues to GtkTextAttributes
17651 2000-08-31 Havoc Pennington <hp@pobox.com>
17653 * gtk/gtktextbtree.c (GtkTextBTree): cache end line,
17654 for rapid testing whether an iterator is the end iterator
17655 (gtk_text_btree_new): init end line cache
17656 (gtk_text_line_is_last): use fast cached line to
17657 see if we're the last line.
17658 (get_last_line): use cached line here too, should
17659 speed up some random unrelated code.
17661 2000-08-30 Havoc Pennington <hp@pobox.com>
17663 * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
17666 * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
17667 delete_text signals. This allows the signals to be used for
17670 * gtk/gtktextbuffer.c: Change signal handler signatures;
17671 provide "interactive" argument when emitting insert_text or
17672 delete_text signal.
17674 2000-08-30 Havoc Pennington <hp@pobox.com>
17676 * gtk/gtktextbuffer.c: Docs
17678 Fri Aug 25 12:16:15 2000 Owen Taylor <otaylor@redhat.com>
17680 * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
17681 from switch statements, since Tor removed the enumeration
17684 * gdk/x11/gdkimage-x11.c (gdk_image_get):
17685 s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
17687 2000-08-29 Elliot Lee <sopwith@redhat.com>
17688 * */*.h: Use G_GNUC_CONST.
17690 2000-08-27 Havoc Pennington <hp@pobox.com>
17692 * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
17693 minor indentation fixes, inserted some FIXME about stuff I
17694 realized was broken while documenting it.
17695 (gtk_text_iter_get_pixmap): allow out params to be NULL, following
17698 Tue Aug 22 12:33:24 2000 Owen Taylor <otaylor@redhat.com>
17700 * gtk/testgtk.c (create_styles): Fix double free of
17703 Mon Aug 21 22:39:18 2000 Owen Taylor <otaylor@redhat.com>
17705 * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
17707 * gtk/testgtk.c (create_styles): Add a test for modifying
17708 the style through gtk_widget_modify_*.
17710 * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
17711 a function to get the current modifier style.
17713 * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
17714 of the passed in GtkRcStyle instead of ref'ing it.
17716 * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
17718 2000-08-20 Tor Lillqvist <tml@iki.fi>
17721 * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
17722 shared memory image+pixmap GdkImage type, or
17723 gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
17724 I am dropping that.
17726 * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
17727 actually call gtk_init_abi_check(), passing also
17728 sizeof(GtkWindow). Ditto for gtk_init_check().
17731 * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
17732 New functions, used to check that the GTK+-using code has been
17733 compiled using the correct compiler and switches. In particular,
17734 with gcc one has to use the -fnative-struct switch as GTK+ is
17735 compiled with that.
17737 Fri Aug 18 17:27:46 2000 Owen Taylor <otaylor@redhat.com>
17739 * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
17740 ->prev fields when merging lists. (Found simultaneously
17741 by Pawel Salek and Jakub Jelinek)
17743 2000-08-12 Tor Lillqvist <tml@iki.fi>
17746 * gtk/gtk.def: Add missing entries.
17748 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
17749 OUT_TT_ONLY_PRECIS, try to get a TrueType font.
17751 * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
17752 function. Dummy implementation at this point.
17754 * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
17755 rules. Undefine GTK_COMPILATION when compiling the test programs.
17757 * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
17759 2000-08-11 Tor Lillqvist <tml@iki.fi>
17761 * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
17762 to convert back and forth from UTF-8 and the "system" (or "current
17763 locale") charset when necessary. Indentation/spacing cleanup.
17765 2000-08-10 Havoc Pennington <hp@redhat.com>
17767 * Makefile.am (snapshot): Change the format of the snapshot
17768 version to match glib
17770 * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
17771 from EXTRA_DIST since it doesn't seem to exist
17773 2000-08-10 Tor Lillqvist <tml@iki.fi>
17775 * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
17776 version of the directory name (not the UTF-8 one) when building
17777 the path name to stat().
17779 2000-08-03 Elliot Lee <sopwith@redhat.com>
17781 * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
17782 PANGO_ATTR_SHAPE set.
17784 Thu Aug 3 09:17:06 2000 Owen Taylor <otaylor@redhat.com>
17786 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
17787 Peter Osterlund to simplify the code while keeping the
17788 functionality the same.
17790 Wed Aug 2 14:57:38 2000 Owen Taylor <otaylor@redhat.com>
17792 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
17793 is_viewable() test further inside the function, since removing the
17794 window from the redraw list without clearing ->update_area
17795 was also very broken.
17797 2000-08-02 Tor Lillqvist <tml@iki.fi>
17799 * configure.in: Check for <unistd.h>.
17801 2000-08-01 Martin Baulig <baulig@suse.de>
17803 * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
17804 to display the message that this is a development version of GTK+.
17806 Mon Jul 31 18:37:36 2000 Owen Taylor <otaylor@redhat.com>
17808 * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
17809 was depending on widget->allocation instead of the width of text_area,
17810 which was incorrect for subclasses like GtkSpinButton.
17812 * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
17813 with width == 1 tests that should be width == -1.
17815 Mon Jul 31 16:45:48 2000 Owen Taylor <otaylor@redhat.com>
17817 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken,
17818 (broken, Elliot, every single window blank on X) custom code with call
17819 to gdk_window_is_viewable() which a) prevents code duplicate and
17822 2000-07-31 Elliot Lee <sopwith@redhat.com>
17824 * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
17825 to get the GDK_PARENT_ROOT() macro to work.
17826 * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
17827 * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
17828 of, windows that aren't shown.
17829 * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
17830 pointer grab stuff.
17832 Mon Jul 31 13:53:16 BST 2000 Tony Gale <gale@gtk.org>
17834 * docs/gtkfaq.sgml docs/gtk-faq.sgml:
17835 s/gtk_main_iteration/g_main_iteration/
17837 Did this already in change:
17838 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
17839 don't know how it got reverted.
17841 2000-07-31 Stanislav Brabec <utx@penguin.cz>
17843 * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
17844 gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
17846 * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
17849 2000-07-30 Pablo Saratxaga <pablo@mandrakesoft.com>
17851 * configure.in,po/{sp,sr}.po: Added Serbian files
17853 2000-07-30 Tor Lillqvist <tml@iki.fi>
17855 * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
17857 * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
17858 Remove the g_pipe_readable_msg stuff. Not needed with new GLib
17859 GIOChannel implementation.
17861 * gdk/win32/gdkinput.c
17862 * gdk/win32/gdkpango-win32.c: Update license name here, too.
17864 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
17865 definition to match prototype.
17867 * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
17869 2000-07-27 Elliot Lee <sopwith@redhat.com>
17871 * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
17872 function, to allow handling image formats that cannot be detected
17873 by looking at content alone.
17875 Thu Jul 27 13:13:21 BST 2000 Tony Gale <gale@gtk.org>
17877 * docs/tutorial/*.gif *.jpg *.eps
17878 Update these to the same look-n-feel.
17879 Why does including images in DocBook suck so badly?
17881 Thu Jul 27 05:06:29 2000 Tim Janik <timj@gtk.org>
17883 * gtk/gtktable.c: applied patch from Phil Thompson
17884 <phil@river-bank.demon.co.uk> that enables space settings for
17885 the last row/columns as well.
17887 Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org>
17889 * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
17890 updates the license headers to the GNU Lesser General Public License,
17891 as well as updating the copyright year to 2000.
17893 2000-07-26 Robert Brady <rwb197@zepler.org>
17895 * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
17896 and po/Makefile, was installing and looking for them under gtk20
17897 and gtk2 respectively.
17899 2000-07-25 Havoc Pennington <hp@redhat.com>
17901 * gtk/testtext.c: Comment out some stuff that depends on the rest
17904 2000-07-25 Havoc Pennington <hp@redhat.com>
17906 * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
17909 2000-07-25 Havoc Pennington <hp@redhat.com>
17911 * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
17914 * gtk/gtktextview.h: To be consistent with usage of "line"
17915 throughout the API to mean "newline-terminated thingy", change
17916 MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
17919 (GtkTextView): Add flags for default editability, and whether to
17920 show the cursor. Add functions to get/set that. Add
17922 (gtk_text_view_get_iter_location): new function
17924 * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
17926 (g_convert): Add g_convert temporarily, will go in glib in a bit
17928 * gtk/gtktexttagtable.h: include gtktexttag.h, and define
17929 GtkTextTagTableForeach instead of brokenly using GHFunc.
17930 Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
17932 * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
17933 moved to public header.
17935 * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
17936 "invisible", since "elide" was a bad name.
17937 (gtk_text_tag_get_priority): Added
17939 (GtkTextStyleValues): put this in public header, along with
17940 functions to use it.
17942 * gtk/gtktextmarkprivate.h: Include more headers, since we no
17943 longer include gtktextbtree.h.
17945 * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
17946 gtk_text_mark_deleted
17948 * gtk/gtktextlayout.h: Don't include the "really private" headers,
17949 only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
17950 to make this possible. Now we only need to install
17951 gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
17952 (However the Makefile.am isn't changed yet because of the
17953 logistics of merging gtk-hp-patches piecemeal)
17955 * gtk/gtktextiterprivate.h: include btree header, so it compiles;
17956 rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
17957 gtk_text_iter_get_line is now used in the public API for a
17960 * gtk/gtktextiter.h: Clean up function names to be more
17961 consistent. Always call char offset "offset" and byte index
17962 "index". A "line" is always a line number.
17964 (gtk_text_iter_is_last): new function, more efficient than
17965 the existing way to check
17966 (gtk_text_iter_is_first): new function, also more efficient
17968 (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
17970 (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from
17971 gtk_text_iter_forward_char, etc.
17973 (gtk_text_iter_forward_to_tag_toggle): Renamed from
17974 forward_find_tag_toggle, since this isn't a linear search
17976 (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
17978 (gtk_text_iter_forward_search, gtk_text_iter_backward_search):
17979 New functions, search for a buffer substring.
17981 * gtk/gtktextbuffer.h: Add fields to store whether a paste is
17982 interactive and default editable (since we need to store that info
17983 until we receive the selection data).
17985 Remove all the _at_char and at_line etc. versions of functions;
17986 only have iterator versions.
17988 Add _interactive() versions of functions, that consider the
17989 editability of text. (FIXME add interactive flag to the
17990 insert/delete signals per Darin's suggestion)
17992 (gtk_text_buffer_get_tag_table): new function, demand-creates the
17993 tag table if necessary
17995 Remove declaration of gtk_text_buffer_get_iter_from_string
17997 (_gtk_text_buffer_get_btree): private/internal function, added.
18000 * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
18001 (gtk_text_line_is_last): new function
18003 2000-07-25 Havoc Pennington <hp@redhat.com>
18005 * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
18006 using GtkProgressBar. See Changes-2.0.txt for details.
18008 * gtk/gtkprogressbar.c: Add object arguments "fraction" and
18009 "pulse_step" which are the equivalent of
18010 gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
18013 * gtk/gtkprogress.h (struct _GtkProgress): Add a field
18014 (use_text_format) to mark whether text set on the progress bar is
18015 a format string. Deprecate entire GtkProgress interface.
18017 * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
18018 (gtk_progress_build_string): make this a no-op if use_text_format
18021 * docs/Changes-2.0.txt: Describe progress bar changes.
18023 2000-07-25 Tor Lillqvist <tml@iki.fi>
18025 * Makefile.am: Include the build directory.
18027 * configure.in: Generate build/Makefile, build/win32/Makefile,
18028 gdk/, gdk/win32/, and gtk/makefile.mingw.
18030 * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
18031 Add GETTEXT_PACKAGE.
18034 * gtk/gtk.def: Updates.
18037 * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
18038 need them any longer.
18040 * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
18042 * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
18043 PANGOWIN32_LIBS and gdk_pixbuf.
18045 * gdk/win32: Compiles, but no doubt doesn't work at all.
18047 * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
18049 * gdk/win32/gdkinput.c: New file, temporarily.
18051 * gdk/win32/gdkinput-win32.h: New file
18053 * gdk/win32/gdkinputprivate.h: Remove.
18055 * gdk/win32/gdkpango-win32.c: New file.
18057 * gtk/makefile.mingw.in: New file
18059 * gtk/makefile.cygwin: Removed
18061 * gtk/Makefile.am: Update accordingly.
18063 * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
18064 made externally visible.
18066 * gtk/gtkmain.c: Use it.
18068 * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
18071 * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
18073 2000-07-24 Elliot Lee <sopwith@redhat.com>
18074 * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
18075 individual backends already.
18076 * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
18077 again. Yes, there really is a good reason for this, if you are using the gdkregion
18078 internals, and if you're not, why do you care?
18079 * gdk/gdkwindow.c: Fix inverted condition
18080 * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
18081 * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
18082 * gtk/gtkrange.c: Redraw trough when moving.
18083 * gtk/gtktypeutils.c: Fix warning by adding const cast.
18084 * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
18086 2000-07-23 Tor Lillqvist <tml@iki.fi>
18088 * configure.in: Check for mkstemp and sigsetjmp. Output
18089 gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
18091 More work on GDK for Win32. Still in an intermediate state.
18093 * gdk/makefile.cygwin
18094 * gdk/win32/makefile.cygwin: Removed.
18096 * gdk/makefile.mingw.in
18097 * gdk/win32/makefile.mingw.in: New files.
18100 * gdk/win32/Makefile.am: Generate and distribute them.
18102 * gdk/win32/gdkwindow-win32.h
18103 * gdk/win32/gdkdrawable-win32.h
18104 * gdk/win32/gdkpixmap-win32.h: New files.
18106 * gdk/win32/gdkcolor-win32.c
18107 * gdk/win32/gdkcursor-win32.c
18108 * gdk/win32/gdkdrawable-win32.c
18109 * gdk/win32/gdkgc-win32.c
18110 * gdk/win32/gdkimage-win32.c
18111 * gdk/win32/gdkprivate-win32.h
18112 * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
18113 Rename fields and variables called xcursor, xid, etc (these names
18114 were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
18116 Sat Jul 22 17:41:26 2000 Owen Taylor <otaylor@redhat.com>
18118 * gtk/gtkentry.[ch]: Fix some problems with vertical
18121 * gtk/gtkentry.c (gtk_entry_find_position): Fix
18122 char/byte confusion.
18124 Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
18126 * gtk/gtktextview.c (changed_handler): Fix bug where
18127 redraw wasn't being done properly when height of
18128 dirty region changed.
18130 * demos/Makefile.am: Remove various references to
18133 Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
18135 * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
18136 PangoAttrShape to reserve space for pixmaps, add
18137 GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
18138 in the display functions.
18140 * gtk/testgtk.c (create_layout): Set some more exotic
18141 scrolled window options
18143 * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
18144 Add function to set the shadow type of a window, to allow
18145 putting a shadow around widgets such as GtkLayout or GnomeCanvas
18146 which don't draw their own frame.
18148 Fri Jul 21 16:34:42 BST 2000 Tony Gale <gale@gtk.org>
18150 * docs/tutorial/package-db-tutorial.sh: New file for
18151 packaging DocBook format tutorial
18153 Fri Jul 21 14:23:51 BST 2000 Tony Gale <gale@gtk.org>
18155 * docs/tutorial/gtk-tut.sgml: Minor updates
18157 * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
18159 2000-07-19 Tor Lillqvist <tml@iki.fi>
18161 * gtk/gtksignal.c: Fix C++ comment.
18163 * gtk/gtkimmulticontext.c
18164 * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
18165 don't return value from void functions.
18167 * gtk/gtk.def: Add gtk_rc_style_unref.
18169 2000-07-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
18171 * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
18172 gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
18173 gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
18174 gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
18175 gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
18176 gtk/gtktypeutils.h: Include files outside of the extern "C"
18177 block. Makes some C++ compiler happy. Reported by Denis Vakatov
18178 <vakatov@peony.nlm.nih.gov>.
18180 Wed Jul 19 14:07:57 BST 2000 Tony Gale <gale@gtk.org>
18182 * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
18183 Completes first pass. Hurrah!
18185 Tue Jul 18 17:17:55 BST 2000 Tony Gale <gale@gtk.org>
18187 * docs/tutorial/gtk-tut.sgml: More clean ups.
18189 Mon Jul 17 18:52:38 2000 Owen Taylor <otaylor@redhat.com>
18191 * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
18192 paint the background of the text area which was accidentally
18193 removed at some point.
18195 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]:
18197 - Move most of the functionality from the theme vtable
18198 into GtkRcStyleClass and GtkStyleClass. The moved
18199 vtable functions were changed a bit in the move to
18200 work better in their new home.
18202 - Get rid of the engine and engine_data fields from
18203 GtkRcStyle and GtkStyle; instead the theme
18204 engine derives theme-specific subclasses of GtkRcStyle
18207 - Add extra dlsym() found entry point to themes,
18208 theme_create_rc_style().
18210 * gtk/gtkstyle.c: Copy xthickness, ythickness fields
18211 in gtk_style_real_copy.
18213 * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
18214 to register a type associated with an engine. (The engine
18215 won't be unloaded as there is an instance of the type.)
18218 Mon Jul 17 18:19:06 BST 2000 Tony Gale <gale@gtk.org>
18220 * docs/tutorial/gtk-tut.sgml: Clean ups.
18222 Mon Jul 17 13:59:29 BST 2000 Tony Gale <gale@gtk.org>
18224 * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
18225 of cleaning up to do.
18227 2000-07-15 Tor Lillqvist <tml@iki.fi>
18229 * gdk/testgdk.c: New file, quick hack to test backends for
18230 pixel-by-pixel correctness of the most simple graphic operations.
18232 Fri Jul 14 20:30:25 2000 Owen Taylor <otaylor@redhat.com>
18234 * Really release 1.3.1
18236 * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
18239 Fri Jul 14 18:40:39 2000 Owen Taylor <otaylor@redhat.com>
18243 Fri Jul 14 16:21:26 2000 Owen Taylor <otaylor@redhat.com>
18245 * gtk/gtktextlayout.c: use FALSE for size_only most
18246 of the time when calling gtk_text_layout_get_line_display()
18247 to avoid causing double reshapes when a redraw follows
18250 Tue Jul 11 11:13:40 2000 Owen Taylor <otaylor@redhat.com>
18252 * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
18253 appropriate region and gdk_window_process_updates() so trough
18254 updating doesn't lag behind the window being scrolled.
18256 * gdk/gdkgc.c: Make parent_class pointer static.
18258 Sun Jul 9 21:31:23 2000 Owen Taylor <otaylor@redhat.com>
18260 * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
18261 include <string.h>.
18263 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
18264 cut-and-paste error in computing memory offset for 4 channels.
18266 Fri Jul 14 14:05:02 2000 Owen Taylor <otaylor@redhat.com>
18268 * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
18269 gtk_rc_append_default_pixmap_path(), since it wasn't
18270 adding an interesting path and we don't have a meaningful
18271 default for this value.
18273 Fri Jul 14 12:22:49 2000 Owen Taylor <otaylor@redhat.com>
18275 * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
18276 gtk-config to gtk-config-2.0 move gtk_.m4 to
18279 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
18280 gdk/Makefile.am demos/Makefile.am: Change
18281 library names to libgtk-1.3.la, etc, so that we
18282 can distinguish gtk-1.2 and gtk-2.0 on the linkline.
18284 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
18285 gdk/Makefile.am gdk/x11/Makfile.am
18286 Move include files into /usr/include/gtk-2.0,
18287 /usr/lib/gtk-2.0/include/
18289 * autogen.sh acconfig.h configure.in gtk/gtkmain.c
18290 gtk/gtkintl.h: Change package for gettext from
18291 gtk+ to gtk20. Put hack in autogen.sh to modify
18292 po/Makefile.in.in after gettextize to make this
18295 * gtk+.spec: Some updates, not tested.
18297 * gdk-pixbuf/Makefile.am: Move loaders into
18298 $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
18300 * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
18301 $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
18302 to THEMENAME/gtk-2.0/. Move engine directory to
18303 $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
18305 2000-07-12 Tor Lillqvist <tml@iki.fi>
18307 Win32 changes, still doesn't build though.
18309 * gdk/makefile.cygwin
18310 * gdk/win32/makefile.cygwin
18311 * gtk/makefile.cygwin: Updates.
18313 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
18314 default values for fg and bg pixel as X11 does (0 and 1), not
18315 black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
18316 Use 0 for pen width by default (treated as 1 anyway later, but for
18317 apps that might check the value in the GdkGC).
18318 (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
18319 interface to gdk_gc_predraw and _postdraw.
18321 * gdk/win32/gdkwin32.h
18322 * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
18324 * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
18325 extraneous semicolon.
18327 * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
18329 * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
18330 not the Win32 bitspixel value.
18332 * gdk/win32/gdkcc-win32.c:
18333 * gdk/win32/gdkcolor-win32.c
18334 * gdk/win32/gdkprivate-win32.h
18335 * gdk/win32/gdkwin32.h: Changes to make compilable, with new
18336 GDK object structure.
18338 Tue Jul 11 20:59:35 2000 Tim Janik <timj@gtk.org>
18340 * docs/tutorial/gtk_tut_12.es.sgml (name):
18341 * docs/tutorial/gtk_tut_it.sgml (name):
18342 * docs/tutorial/gtk_tut_fr.sgml (name):
18343 * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
18344 outdated email adress: s/timj@psynet.net/timj@gtk.org/.
18346 Tue Jul 11 13:10:57 BST 2000 Tony Gale <gale@gtk.org>
18348 * docs/faq/gtk-faq.sgml: Cleanup indenting and various
18351 Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org>
18353 * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
18354 a bug here, never been here and never fixed anything ;(
18355 (don't segfault if tree->root_tree is NULL, which happens prior
18356 to widget realization, but puke instead).
18358 Tue Jul 11 06:38:42 2000 Tim Janik <timj@gtk.org>
18360 * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
18361 add the necessary tokens.
18363 * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
18364 (gtk_rc_style_to_style): copy thicknesses.
18365 (gtk_rc_init_style): apply thicknesses.
18366 (gtk_rc_parse_style): parse xthickness and ythickness.
18368 * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
18370 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new):
18372 (_gdk_windowing_window_init):
18373 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new):
18374 (gdk_pixmap_create_from_data):
18375 (gdk_bitmap_create_from_data):
18377 * gdk/x11/gdkimage-x11.c (gdk_image_get):
18379 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new):
18380 * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new):
18381 * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
18382 (gdk_colormap_get_system):
18383 (gdk_colormap_new):
18384 * gdk/gdkwindow.c (gdk_window_init):
18385 * gtk/gtkstyle.c (gtk_style_new):
18386 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
18387 * gdk/gdkpixmap.c (gdk_pixmap_init):
18388 * gtk/gtkrc.c (gtk_rc_style_new):
18389 use g_object_new() instead of g_type_create_instance() which
18390 is a private function for fundamental type implementations.
18392 Thu Jul 6 16:12:14 2000 Owen Taylor <otaylor@redhat.com>
18394 * configure.in: Add check for db2html
18396 Thu Jul 6 14:53:05 2000 Owen Taylor <otaylor@redhat.com>
18398 * gtk/gtktypeutils.c (gtk_type_init): Add a temporary
18399 hack to set glib_debug_objects based on gtk_debug_flags.
18401 Thu Jul 6 14:12:13 2000 Owen Taylor <otaylor@redhat.com>
18403 * INSTALL.in: Update the Prerequisites section.
18405 * Makefile.am demos/Makefile.am docs/Makefile.am
18406 docs/tutorial/Makefile.am gdk/x11/Makefile.am
18407 gdk/linux-fb/Makefile.am: Dist fixes
18409 Thu Jul 6 12:26:03 2000 Owen Taylor <otaylor@redhat.com>
18411 * NEWS: 10,000 foot view of 1.3.1 changes.
18413 Thu Jul 6 11:54:03 2000 Owen Taylor <otaylor@redhat.com>
18415 * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
18416 gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
18417 gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
18418 gdk/x11/gdkmain-x11.c:
18420 Patch from George Lebl to add a GdkGrabStatus enumeration to use
18421 as a return value of gdk_*_grab(). Previously, we just
18422 returned the X11 values directly.
18424 Thu Jul 6 11:27:44 2000 Owen Taylor <otaylor@redhat.com>
18426 * gdk/x11/Makefile.am: Patch from George Lebl to
18427 install all the headers in the right place.
18429 Tue Jul 4 13:13:01 BST 2000 Tony Gale <gale@gtk.org>
18431 * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
18432 initial conversion to DocBook.
18434 2000-07-04 Tor Lillqvist <tml@iki.fi>
18436 * README.win32: Improve a bit.
18438 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
18439 WM_SYSCHAR, and other changes to get handling of Alt+nnn or
18440 Alt+0nnn on the numpad (used to enter characters by numeric code
18441 from current DOS or ANSI codepage) working correctly, as in other
18444 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
18445 same argument validity tests as in X11 version.
18446 (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
18448 * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
18449 definitions in case missing from headers.
18451 * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
18452 destroy the window-specific cursor.
18453 (RegisterGdkClass): Use the global gdk_ProgInstance instead of
18454 calling GetModuleHandle(NULL).
18455 (gdk_window_set_cursor): Reworked to always copy the passed cursor
18456 with CopyCursor before setting it as the window-specific
18457 cursor. It is OK for the caller to destroy the GdkCursor (and thus
18458 also its Windows cursor) after calling this function. Destroy any
18459 previous window-specific cursor.
18461 Mon Jul 3 17:54:49 2000 Owen Taylor <otaylor@redhat.com>
18463 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
18464 font charset is iso8859-1, not iso-8859-1.
18466 Mon Jul 3 17:08:14 2000 Owen Taylor <otaylor@redhat.com>
18468 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
18469 Use g_get_charset() instead of g_get_codeset().
18471 * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h:
18472 Comment out some strdup'ing functions to keep timj
18473 happy until we finish fighting this out.
18475 Mon Jul 3 14:24:16 2000 Owen Taylor <otaylor@redhat.com>
18477 * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
18478 <= width or height.
18480 * gtk/gtktable.c (gtk_table_attach): Fix missed merge
18481 from 1.2 for parent/child states.
18483 * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
18486 * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
18487 event structures, replace with a generic axes field. Replace
18488 deviceid/sourec with GdkDevice *device.
18490 * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
18491 to extract particular axis use value from event. (Also
18492 can be used for normal X/Y.)
18494 * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
18495 allow for arbitrary number of axes, namespace everything
18496 as gdk_device_*. Replace guint32 deviceid with GdkDevice *
18499 * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}:
18500 Get rid of the gdk_input_vtable setup if favor of simply
18501 defining the functions in gdkinput-none/gxi/xfree.c in
18502 a similar fashion to the way that the port structure is
18505 * gtk/gtkdnd.c: Fix fields of synthesized button press event
18506 for new event structures.
18508 * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
18509 new device interfaces.
18511 Sun Jul 2 18:19:50 2000 Owen Taylor <otaylor@redhat.com>
18513 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
18514 set the initial text.
18516 * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
18517 gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
18518 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
18519 gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
18521 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18522 pango_layout_set_font_description to simplify.
18524 Sun Jul 2 17:43:41 2000 Owen Taylor <otaylor@redhat.com>
18526 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18527 pango_layout_set_font_description to simplify.
18529 Sun Jul 2 17:06:40 2000 Owen Taylor <otaylor@redhat.com>
18531 * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
18532 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
18533 pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
18535 * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
18536 PANGO_PIXELS() macro.
18538 Sun Jul 2 15:24:41 2000 Owen Taylor <otaylor@redhat.com>
18540 * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
18541 that returns a PangoContext owned by the widget and updated to
18542 match future changes in the widget. Also, make
18543 gtk_widget_create_pango_layout() use this context. If we ever
18544 add a ::changed signal to PangoContext, this will make things
18545 much more convenient.
18547 * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
18548 in the appropriate places instead of destroying the layouts and
18551 * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
18552 in a few strategic places.
18554 Sun Jul 2 14:37:58 2000 Owen Taylor <otaylor@redhat.com>
18556 * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call
18557 gtk_widget_size_request() on reparented child, if one. Otherwise,
18558 queue_resize() on the child never results in it getting size-requested
18561 * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
18562 in option menus, so that (with luck) people won't copy it into
18563 their apps in the future.
18565 * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
18566 to gtk_option_menu_calc_size. This isn't perfect, but should fix
18567 a lot of problems with changing the size of the menu's menu
18568 items after adding it to the option menu.
18570 * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
18572 * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
18573 the text direction for a widget changes.
18575 * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
18576 ::direction_changed to get rid of various hacks.
18578 Sun Jul 2 13:19:12 2000 Owen Taylor <otaylor@redhat.com>
18580 * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
18583 Sun Jul 2 13:06:26 2000 Owen Taylor <otaylor@redhat.com>
18585 * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
18586 flag to the structure. Do not call XFreePixmap on pixmaps created
18587 by gdk_pixmap_foreign_new().
18589 Sun Jul 2 12:45:50 2000 Owen Taylor <otaylor@redhat.com>
18591 * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
18592 value using GdkRGB functionality given GdkColormap and GdkColor.
18593 (name not final, waiting for inspiration.)
18595 * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
18596 set the foreground/background of a GC using the GC's colormap
18597 and GdkRGB. (name not final, waiting for inspiration.)
18599 * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
18600 gdk_rgb_get_cmap(), put #define in gdkcompat.h.
18602 * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
18603 gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
18604 purely a function of the corresponding colormap. Make
18605 gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
18607 * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
18608 gdk_pixbuf_*create_from_xpm_* in terms of
18609 gdk_pixbuf_new_from_xpm_data(), move into platform independent
18612 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
18613 advantage of the new draw_rgb_32_image_dithalign.
18615 * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
18617 * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
18618 on each created GC.
18620 * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
18622 * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
18623 which we initialize from the drawable when the GC is created,
18624 if the drawable has a colormap.
18626 * gdk/x11/gdkgc-x11.c: include string.h for memset.
18628 * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
18630 * gtk/gtklayout.[ch]: Remove unsed configure serial member.
18632 Sat Jul 1 16:28:32 2000 Owen Taylor <otaylor@redhat.com>
18634 * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
18635 actually returning expose events, make sure to set
18636 the count field properly.
18638 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
18639 accidentally reintroced bug which always cleared
18640 the graphics_exposures value.
18642 Wed Jun 28 18:03:09 BST 2000 Tony Gale <gale@gtk.org>
18644 * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
18646 Wed Jun 28 17:49:05 BST 2000 Tony Gale <gale@gtk.org>
18648 * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
18650 Wed Jun 28 13:31:55 BST 2000 Tony Gale <gale@gtk.org>
18652 * docs/faq/gtk-faq.sgml: Start of Section 6.
18654 Mon Jun 26 19:37:04 2000 Owen Taylor <otaylor@redhat.com>
18656 * configure.in: Put 1.3.1 in warning message, not 1.3.0.
18658 (Fixes problem with drawing childless frames. Pointed out
18659 by and a first patch from Anders)
18661 * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
18662 compute a child_allocation, even if we don't have a child.
18664 * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
18665 Always chain to the parent's impl, even if we don't have a child.
18667 Mon Jun 26 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
18669 * gdk/gdkrgb.c: If possible, create only a single shm segment and
18670 use multiple parts of it instead of creating a bunch of separate
18671 segments, since the maximum number of segments per system is not
18672 large. (This might be worth backporting to GTK+-1.2.x if we make a
18675 * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
18676 structure in preparation for per-colormap GdkRGB.
18678 * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
18679 to False when we get EINVAL from shmget so that the caller of
18680 gdk_image_new can retry with a smaller segment size.
18682 Mon Jun 26 13:01:16 BST 2000 Tony Gale <gale@gtk.org>
18684 * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
18686 Fri Jun 23 17:54:23 2000 Tim Janik <timj@gtk.org>
18688 * configure.in: make the current version number 1.3.1 (binary age 0,
18691 * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
18692 gtkcompat.h is all we want.
18694 * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
18695 GLib primitive types. fixed g_type_register_fundamental() argument
18698 * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
18701 * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
18702 object code cleanup, comment trigraph fixes, etc...
18704 2000-06-23 Havoc Pennington <hp@redhat.com>
18706 * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark
18707 instead of making up a bogus name for first_para_mark
18709 * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow
18712 Thu Jun 22 17:43:51 BST 2000 Tony Gale <gale@gtk.org>
18714 * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
18716 2000-06-21 Havoc Pennington <hp@pobox.com>
18718 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
18719 we didn't check window->bg_pixmap != GDK_NO_BG.
18721 * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
18724 Thu Jun 22 14:02:19 BST 2000 Tony Gale <gale@gtk.org>
18726 * docs/faq/gtk-faq.sgm: Move file to here.
18727 TODO: Update Makfile.am
18729 Thu Jun 22 13:41:09 BST 2000 Tony Gale <gale@gtk.org>
18731 * docs/gtk-faq.sgm: Add Section 2
18733 Thu Jun 22 08:43:45 BST 2000 Tony Gale <gale@gtk.org>
18735 * docs/gtk-faq.sgm: New file. Start of DocBook
18736 version of the FAQ.
18738 Wed Jun 21 23:04:17 2000 Owen Taylor <otaylor@redhat.com>
18740 * configure.in (GDK_PIXBUF_MAJOR): Define version
18741 numbers for GDK_PIXBUF_*, as they get substituted
18742 into a header file. Need to consider versioning
18743 for gdk-pixbuf more carefully later.
18745 2000-06-21 Raja R Harinath <harinath@cs.umn.edu>
18747 Work with srcdir != builddir.
18748 * demos/testanimation.c: Don't include "gdk-pixbuf.h". Use
18749 <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
18750 * demos/testpixbuf.c: Likewise.
18751 * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
18752 * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h". Use
18754 * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h". Don't include
18756 * demos/Makefile.am (INCLUDES): Remove unneeded directories.
18758 Wed Jun 21 19:45:02 2000 Owen Taylor <otaylor@redhat.com>
18760 * TODO.xml: Change 1.4 version numbers to 2.0.
18762 Wed Jun 21 19:29:08 2000 Owen Taylor <otaylor@redhat.com>
18764 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
18765 fixups to GTK+ standard.
18767 Wed Jun 21 16:38:13 2000 Owen Taylor <otaylor@redhat.com>
18769 * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
18772 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
18773 fixups for GObject.
18775 * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
18776 gdk-pixbuf with GDK dependencies moved into GDK.
18778 * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
18779 move gdk-pixbuf-loader here until GObject has signals.
18781 * demos/: New directory of demos. Move demos from
18784 * demos/pixbuf-init.c: Small bit of code to check for
18785 loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
18786 set GDK_PIXBUF_MODULEDIR appropriately.
18788 * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
18789 define which no longer makes sense.
18791 2000-06-21 Havoc Pennington <hp@redhat.com>
18793 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
18794 gtk_get_default_language
18796 * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language):
18797 new function to get the default language
18799 * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c:
18800 s/gtk_text_view_style_values/gtk_text_style_values/
18802 * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
18803 Add a "language" field to tags.
18805 (gtk_text_tag_set_arg): Fix bug in setting
18806 "bg_full_height_set" tag.
18808 2000-06-21 Havoc Pennington <hp@redhat.com>
18810 * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
18813 * gtk/gtktexttypes.c: Remove UTF functions, use glib
18814 stuff instead when possible.
18816 * gtk/gtktexttypes.h: Delete some unused constants
18818 * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
18819 testtextbuffer.c: use glib instead of custom unicode routines
18821 Wed Jun 21 12:50:58 2000 Owen Taylor <otaylor@redhat.com>
18823 * docs/es/: Removed mistakenly added generated sgml
18825 * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
18826 Remove outdated info files.
18828 * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
18829 Moved tutorial files into subdir
18831 * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
18834 * docs/man/gtk_button.pod: Remove. (contents will be
18835 integrated into gtk-reference button page.)
18837 * configure.in docs/Makefile.am docs/tutorial/Makefile.am
18838 docs/faq/Makefile.am: Adjust for new organization
18840 2000-06-21 Christopher Blizzard <blizzard@redhat.com>
18842 * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
18843 not $(MKINSTALLDIRS)
18845 Wed Jun 21 12:24:28 2000 Owen Taylor <otaylor@redhat.com>
18847 * gtk/testgtk.c (create_text): Finish the job Elliot started
18848 of removing font setting test for text widget. (Since text widget
18849 and GdkFont are not deprecated, and cause portability problems.)
18851 Wed Jun 21 11:41:43 2000 Owen Taylor <otaylor@redhat.com>
18853 * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
18854 gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
18855 Remove use of libunicode in favor of new GLib functions.
18857 * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
18858 nano-x, framebuffer. The X11 include is just a hack until we get
18859 the necessary functions in gdkcolor.h, so there is no reason to
18860 add other includes of platforms.
18862 * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert
18863 window bigger than the screen change.
18865 * gtk/testgtk.c: Revert some random changes from Elliot
18866 that had no particular point and were causing testgtkrc
18867 not to function correctly.
18869 * gdk/gdkregion-generic.h: Revert change from Elliot. Just
18870 because GdkSegment and GdkRegionBox have the same fields,
18871 it doesn't mean that 'typedef GdkSegment GdkRegionBox'
18872 results in clearer code.
18874 * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
18875 gdk_input_translate_coordinates): Fix missed GdkObjectification
18877 2000-06-18 Elliot Lee <sopwith@redhat.com>
18879 * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
18880 * gtk/gtk{plug,socket}.h: Missed commits from previous.
18882 2000-06-20 Havoc Pennington <hp@redhat.com>
18884 * modules/linux-fb/Makefile.am: Make this compile
18885 without framebuffer enabled
18887 * gdk/linux-fb/Makefile.am: Add conditional to not build
18888 framebuffer unless specified in configure
18890 * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
18891 the size of the target instead of source if -1 was passed for
18894 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
18895 width/height confusion.
18897 2000-06-19 Havoc Pennington <hp@redhat.com>
18899 * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
18900 GDK_DRAWABLE_XID. In the future, we probably want to make it
18901 faster with G_DISABLE_CHECKS turned on.
18903 2000-06-14 Havoc Pennington <hp@redhat.com>
18905 * gdk/Makefile.am: add gdkpixmap.c
18907 * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
18908 s/gdk_image_init/_gdk_windowing_image_init
18910 * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
18913 * gdk/gdkcolor.h: make GdkColormap a GObject subclass
18915 * gdk/gdkcompat.h: remove GdkWindowType compat, since
18916 GdkWindowType is now non-deprecated;
18917 change gdk_window_get_type() compat to be
18918 gdk_window_get_window_type().
18920 * gdk/gdkdnd.h: make GdkDragContext a GObject.
18922 * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
18923 virtual GObject. Make all functions call into the vtable.
18924 Move gdk_image_put() guts in here. Remove GdkDrawableType
18925 and gdk_drawable_get_type(), these are now GdkWindow-specific.
18926 draw_image, get_depth, get_size, set_colormap, get_colormap,
18927 get_visual added to the vtable.
18929 * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
18930 GObject. Virtualize everything.
18931 (gdk_gc_new_with_values): remove check for destroyed window,
18932 because now GdkWindow::create_gc will check this.
18933 (gdk_gc_set_values): New function to set GC values, this
18934 was already implemented but wasn't in the header
18936 * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
18938 * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
18939 _gdk_window_draw_image(), remove _gdk_windowing_window_class,
18940 remove _gdk_window_class; add _gdk_window_impl_get_type() and
18941 _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
18942 _gdk_windowing_window_init, rename gdk_image_init to
18943 _gdk_windowing_image_init.
18945 * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
18946 (gdk_draw_layout): Remove check for destroyed window,
18947 because all the drawable methods already check it.
18949 * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
18950 Add gdkpixmap.c which contains implementation of GdkDrawable
18951 virtual table (by chaining to a platform-specific implementation
18954 * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
18955 GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
18956 GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
18957 GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
18958 GdkColormapPrivate.
18960 * gdk/gdktypes.h: #include <glib-object.h>
18962 * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
18963 Move most functionality to platform-specific implementation
18964 object. GdkWindow itself now handles the backing store, then
18965 chains to the platform-specific implementation.
18966 (gdk_window_get_window_type): return GdkWindowType of the window.
18967 (gdk_window_peek_children): New routine, returns the children of
18969 (gdk_window_get_children): Was in X11-specific code and did
18970 XQueryTree. Changed to simply return a copy of window->children;
18971 so it can go in cross-platform code.
18973 * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
18975 * gdk/x11/gdkcolor-x11.c: implement X-specific parts of
18976 GdkColormap; just changed to use the new private data instead
18977 of casting to GdkColormapPrivate.
18979 * gdk/x11/gdkcursor-x11.c: added a couple typechecks to
18982 * gdk/x11/gdkdnd-x11.c: Change the way we access private fields
18983 (private data member in the GObject).
18984 (xdnd_manager_source_filter): Function had broken
18985 error handling, fix it (use gdk_error_trap_push).
18987 * gdk/x11/gdkdrawable-x11.c: This file now implements
18988 a base class for GdkWindowImplX11/GdkPixmapImplX11. This
18989 base class is purely for the convenience of the X port,
18990 and not part of the interface to cross-platform GDK.
18992 * gdk/x11/gdkevents-x11.c: Reflect various renamings.
18994 * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
18995 specific to X, and returned by the create_gc virtual method
18996 of GdkDrawableImplX11.
18997 (gdk_x11_gc_set_dashes): Change this to take an array of gint8
18998 rather than gchar, this was also changed in the GdkGC vtable.
18999 (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
19000 mask is 0, return immediately, instead of checking every flag.
19001 This is faster, and keeps us from segfaulting if values is NULL
19002 and the mask contains some nonzero flags.
19004 * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
19007 * gdk/x11/gdkglobals-x11.c: change type of grab window, since
19008 GdkWindowPrivate is gone.
19010 * gdk/x11/gdkim-x11.c: rename things that got renamed.
19012 * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
19013 remove the image_put stuff that got transferred to GdkDrawable.
19015 * gdk/x11/gdkinput.c: renamings
19017 * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
19019 * gdk/x11/gdkpixmap-x11.c: GObject conversion
19021 * gdk/x11/gdkprivate-x11.h: indentation fixes
19023 * gdk/x11/gdkproperty-x11.c: renamings
19025 * gdk/x11/gdkselection-x11.c: renamings
19027 * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
19028 implements the platform-specific "impl" object.
19029 Moved gdk_window_get_children to gdk/gdkwindow.c
19031 * gdk/x11/gdkx.h: Remove all the private structs and private datas
19032 that no longer exist. Add declaration of GdkGCX11 object here.
19033 Fix all the macros to still work.
19035 * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
19036 GdkDragContext from the boxed types since they are now GObjects.
19038 * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
19039 moved xthickness/ythickness into the instance. GtkStyleClass
19040 functions are now in the standard vtable for GtkStyle, so you have
19041 to create a GObject subclass to write a theme engine.
19042 (gtk_style_copy): fixed a leaked PangoFontDescription
19043 (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
19044 can be the standard GObject function.
19047 s/style->klass->[xy]thickness/style->[xy]thickness
19048 s/pango_layout_unref/g_object_unref/
19050 * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
19052 * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
19053 accessing GDK internals.
19055 * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
19056 accessing GDK internals.
19058 2000-06-18 Elliot Lee <sopwith@redhat.com>
19060 * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
19062 * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
19063 problem by calculating event position relative to the trough
19064 rather than the slider.
19065 * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
19067 * gdk/gdkgc.h: Add GDK_NOR.
19069 * configure.in, Makefile.am: Add modules top level dir
19070 * configure.in: Only use pangox library if building x11 target.
19071 * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
19073 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
19075 * gtk/gtkcolorsel.c: Change private class member to be named
19076 private_data throughout the file.
19078 * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
19079 private_data to avoid clashing with keyword.
19081 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
19083 * gdk/gdkdnd.h: Add comment to remove warning.
19085 Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
19087 * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
19088 Byelorussian language; changed the Makefile and file names
19091 Mon Jun 12 16:58:40 2000 Owen Taylor <otaylor@redhat.com>
19093 * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
19094 rather than gdk_window_hide; this makes things work
19095 correctly if the window is programmatically hidden while
19098 Sun Jun 11 12:46:19 2000 Owen Taylor <otaylor@redhat.com>
19100 * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
19101 cut and paste typo where wrong pixmap was being
19102 unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
19104 Sun Jun 11 10:22:36 2000 Owen Taylor <otaylor@redhat.com>
19106 * gtk/gtkselection.c (gtk_selection_bytes_per_item):
19107 Add helper function to compute format / bytes
19108 relationship. Use in a couple places to fix up
19109 errors which assume 8 * format.
19111 * gtk/gtkselection.c (gtk_selection_request): Use 32
19112 rather than 8 * sizeof (GdkAtom), to work correctly
19115 Thu Jun 8 21:54:51 2000 Christopher Blizzard <blizzard@redhat.com>
19117 * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
19119 (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
19122 * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
19123 checking macros return NULL since the function has a return value.
19125 Wed Jun 7 15:44:42 2000 Owen Taylor <otaylor@redhat.com>
19127 * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
19128 GTK+ from building at all.
19130 * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
19132 Mon Jun 5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
19134 * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
19135 gtk/Makefile.am: make it possible to configure gtk for different
19136 targets on the same platform. The library name is now
19137 libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
19138 flag. Only the x11 target compiles right now.
19139 * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
19140 gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
19141 * gdk/nanox/gdk*generic*: delete generic region code.
19142 * gdk/linux-fb/gdk*generic*: delete generic region code.
19143 * README.nanox: update information.
19145 Tue Jun 6 10:53:59 2000 Owen Taylor <otaylor@redhat.com>
19147 * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
19148 prepend not append. (Pointed out by Brett Hall.)
19150 Tue Jun 6 01:59:57 2000 Owen Taylor <otaylor@redhat.com>
19152 * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
19154 Mon Jun 5 16:00:09 2000 Owen Taylor <otaylor@redhat.com>
19156 * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
19157 need this later, and this makes sure that the atexit for
19158 glib gets called after that for GDK, so atexits are
19159 properly ordered for object leak checking.
19161 * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
19163 * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call
19164 pango_x_shutdown_display()
19166 * gtk/simple.c (main): Close window on destroy.
19168 Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
19170 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
19171 to treat initial creation different from setting with
19172 regards to the graphics-exposures parameter, so add a parameter
19173 indicating whether this is initial or not.
19175 Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
19177 * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
19178 to sort of work by adding an extra return_exposes arg
19179 to gdk_event_translate() - it might be better to simply
19180 deprecate the function altogether and force people to rewrite
19181 without it. gdk_window_scroll() handles most of it, and where
19182 gdk_window_scroll() doesn't work, simply redrawing more does.
19184 * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
19187 * gtk-config.in: Include PANGO_CFLAGS/LIBS.
19189 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
19190 bunch of pretty much useless /* Print debugging info */ comments
19191 which had drifted away from the code they were commenting.
19193 2000-06-02 Havoc Pennington <hp@pobox.com>
19195 * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
19196 is in working order.
19198 * gtk/testtext.c: Change to reflect anonymous mark API
19200 * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
19202 * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
19203 field, which was unused.
19205 * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
19208 * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*
19210 * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
19211 flag on the insertion point and selection bound
19213 Throughout, use GtkTextMark instead of GtkTextLineSegment, and
19214 make mark-manipulation functions take a GtkTextMark* instead of a
19217 * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to
19218 GtkTextMarkBody; will be used to detect attempts to delete
19219 the permanent marks (insert and selection bound)
19221 * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer
19223 Fri Jun 2 12:56:01 2000 Owen Taylor <otaylor@redhat.com>
19225 * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
19228 * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event):
19229 Honor DOUBLE_BUFFRED_FLAG
19231 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
19232 function to set the DOUBLE_BUFFERED flag.
19234 * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
19235 or not exposes done on the widget should be double-buffered.
19237 * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
19238 to be what would be expected. (Fixes problem with a
19239 g_return_if_fail() validating a TextDirection enumeration)
19241 Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
19243 * gtk/gtkwidget.c: Remove all references to
19244 offscreen flag which was no longer used.
19246 * gtk/gtkprivate.h (enum): Remove unused flags and compress.
19248 * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
19249 for non-null label_widget->parent.
19251 * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
19252 which no longer was used.
19254 * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
19256 * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
19257 for null arguments.
19259 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
19260 check for destroyed windows.
19262 Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
19264 * gtk/gtkimmulticontext.c: Add a finalize method and unref
19265 the slave context there.
19267 * gtk/gtkinvisible.[ch]: Make reference counting behavior
19268 identical to GtkWindow.
19270 Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
19272 * Makefile.am gdk/gdkpango.c: Copy the layout render function from
19273 pangox to here, so we can write them independent of rendering
19274 system, using GDK primitives.
19276 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
19277 gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
19278 since we have a rendering-system independent implementation in
19279 terms of draw_glyphs().
19281 * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
19282 function to render a single line.
19284 * gdk/x11/gdkpango.c: Move the guts of this file mostly
19285 into ../gdkpango.c, which simplifies things, since we
19286 don't have to deal with raw X gc's.
19288 Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
19290 * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
19291 get the logical attributes for a given GtkTextLine.
19293 Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
19295 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
19296 g_locale_get_codeset() to g_get_codeset() change.
19298 Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
19300 * gtk/testcalendar.c (calendar_font_selection_ok): Use font
19303 * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
19306 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
19307 redoing (vastly simplifying) for Pango. Still needs quite
19308 a bit of work. (Size selection is currently poor. List of
19309 predefined sizes is not a good idea, since all of these
19310 sizes won't necessarily be distinct.)
19312 Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
19314 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
19315 CODESET results for LANG=C.
19317 Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
19319 * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
19320 which takes a stringized pango font description;
19321 ignore the older 'font' and 'fontset' declarations.
19323 * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
19324 field with a GdkFont derived via gdk_font_from_description(),
19325 for compatibility. (Should we just remove it entirely?
19326 Probably too much compatibility breakage, but people
19327 should be migrating to the new Pango stuff as quickly
19330 Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
19332 * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
19334 Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
19336 * gtk/gtkcalender.c: Roughly pango-ized. Really needs
19337 redoing; there are some bugs in size allocation right
19338 now, the semi-existant distinction between header / day
19339 fonts was removed, but, with Pango, could actually
19340 be made functional in a nice way.
19342 * gtk/testcalender: Move calender from examples into this
19343 directory as a test program. (We really need to restrcture
19344 testgtk into a whole directory full of tests for every
19345 widget or functionality group, separated into multiple .c
19348 Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
19350 * gtk/testgtk.c (file_exists): Fix stupid typo that
19351 was keeping RC file from being loaded.
19353 * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
19356 Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
19358 * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
19359 Add function to load a GdkFont from a PangoFontDescription.
19361 2000-05-29 Tor Lillqvist <tml@iki.fi>
19363 * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
19364 variable should be of type GdkEventPrivate.
19366 Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
19368 * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
19369 to have any widget for the label, use a GtkLabel widget
19370 to display the text. (Based partially on a patch from
19373 (Quite a bit of code reorganization - strip 90% of the
19374 guts out of gtkaspectframe and add a single virtual
19375 func to GtkFrameClass - compute_child_allocation.)
19377 Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
19379 * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
19380 (Removed clist->row_center_offset field because caching
19381 it wasn't saving time or code, added private function
19382 _gtk_clist_create_cell_layout()).
19384 Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
19386 * gtk/gtkaccellabel.c: Pangoized.
19388 * gtk/[hv]ruler.c: Pangoized
19390 Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
19392 * gtk/gtkfilesel.c (gtk_file_selection_init):
19393 Use gtk_clist_set_column_auto_resize() to remove need
19394 need for manual column width computations.
19396 Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
19398 * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
19399 ensuring Pango correctness, and considerably simplifying the
19402 * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
19404 * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
19405 getting of numbers of lines.
19407 * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
19408 to the actual requested width of the lable, not to the wrap
19411 * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
19413 * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
19414 gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
19416 * gtk/gtktextview.c: Fix structure inheritance.
19418 * gtk/gtkprogressbar.c: Pangoize.
19420 Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
19422 * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
19425 * gtk/gtktextlayout.c (find_display_line_above): Fixed
19426 bug with computing line tops.
19428 * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
19430 Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
19432 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
19433 and y_offset coordinates to do what we need now. (The offset between
19434 buffer and layout coordinates has been reintroduced, but is a
19435 bit different than before.)
19437 * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
19438 handle the adjustments ourselves, and scroll as necessary using
19439 the new gdk_window_scroll().
19441 The advantage of this is that when we are incrementally revalidating,
19442 we are essentially rearranging things around the visible portion
19443 of the screen. With the old setup, the visible portion of the
19444 screen was moved around in the layout, so scrolling and redrawing
19445 to track that caused jumping of the display. Since we now
19446 control the scrolling ourselves, we can suppress this and
19447 only redraw when things actually change.
19449 Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
19451 * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
19452 the region not just redisplay it after-all, since we store the
19453 cursors in the LineDisplay. (Ugly interactions here between
19454 GtkLayout and GtkTextBTree here.)
19456 * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
19458 Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
19460 * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
19461 Added function to scroll contents of a window while keeping the
19462 window constant. Works by XCopyArea or guffaw-scrolling depending
19463 on the details of how the window is set up. (guffaw-scrolling
19464 still needs to be filled in.)
19466 Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
19468 * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
19469 move the debugging that was tied to a global variable
19472 * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
19474 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
19475 validated flag, in line data instead of setting height/width to
19476 -1. This allows us to perform operations with partially invalid
19477 buffer (using the old size for invalid lines) and thus to do
19478 incremental vaidation. Keep height/width aggregates up to date
19479 when deleting text and rebalancing the tree.
19481 * gtk/gtktextbtree.[ch]: Add functions validate a line
19482 (gtk_text_btree_validate_line), and to validate up
19483 to a number of pixels (gtk_text_btree_validate).
19485 * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
19486 that indicates that something is changed and a revalidation
19487 pass is needed. Change ::need_repaint to ::changed, and
19488 make it take old and new yranges instead of a rectangle.
19490 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
19491 the line_data_destroy() function from
19492 gtk_text_btree_add_view() to a virtual function in
19495 * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
19496 since we are handling partial repaints in a different fashion
19499 * gtk/gtktextbtree.[ch]: Only repaint the changed portion
19500 of the selection instead of queueing a repaint on the
19503 * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
19504 get_selection_bounds() down to btree, make the function
19505 in buffer a wrapper around the btree function.
19507 * gtk/gtktextlayout.[ch]: Add functions to check if the
19508 layout is valid and to recompute either a range of pixels
19509 aroudn a line or a certain total number of pixels.
19511 * gtk/gtktextlayout.[ch]: Cache a single line display;
19512 now that we only redraw the needed portions, the hit rate
19513 for this cache is quite high.
19515 * gtk/gtktextview.[ch]: Keep track of the first paragraph
19516 on the screen so that when re-laying-out the buffer, we can
19517 keep the same place. This requires connecting to ::value_changed
19520 * gtk/gtktextview.[ch]: Add idle functions to revalidate
19521 the buffer after we receive an ::invalidated signal.
19523 Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
19525 * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
19526 to max of allocation and layout size, not just to the
19529 * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
19530 Invalidate window so it gets redrawn properly.
19532 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
19533 to mean the entire window.
19535 * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
19536 into public header.
19538 Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
19540 * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
19541 to get the name of a mark.
19543 * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
19544 to find the paragraph from a y position.
19546 Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
19548 * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
19549 nodes have width/height >= 0, not > 0.
19551 Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
19553 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
19554 Add a size_only flag, so when we only need the size, we don't create
19555 useless appearance attributes.
19557 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
19558 duplicate setting of font description.
19560 * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
19562 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
19564 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
19565 EXTRA_DIST. It does not work well when the file that
19566 everything depends on is not in the tarball.
19568 Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
19570 * gtk/testgtk.c: Some hacks and fixes so that it basically
19571 works when not sitting in the GTK+ build tree.
19573 2000-05-03 Havoc Pennington <hp@redhat.com>
19575 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
19576 Properly determine the ordering of the tag root and the current
19577 line within the tree. Previous algorithm only worked if the tag
19578 root's immediate parent was the common root of both the current
19579 line and the tag root.
19581 Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
19583 * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
19586 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
19587 the widget text directional dynamically.
19589 * gtk/gtktextview.[ch]: Added functions to get and set default
19592 Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
19594 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
19595 in cursor location computation.
19597 Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
19599 * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
19600 vadjusment values properly when layout gets smaller.
19602 * gtk/gtktextview.c (need_repaint_handler): Areas being
19603 passed in are far completely inaccurate, and sometimes
19604 too small, so, for now, just queue a redraw on the
19605 whole visible region.
19607 2000-04-25 Havoc Pennington <hp@redhat.com>
19609 * gtk/gtktextbtree.c (summary_destroy): new function to
19610 destroy tag summary nodes
19611 (gtk_text_line_next_could_contain_tag): this function was
19612 totally broken if the line passed in wasn't below the tag
19614 (gtk_text_btree_first_could_contain_tag): In the tag == NULL
19615 "wildcard" case, we have to do a linear scan. Blah.
19616 (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
19617 we have to do the linear scan
19618 (tag_removed_cb): When a tag is removed from the tag table,
19619 remove the GtkTextTagInfo node from the btree.
19620 (gtk_text_btree_spew): Implement the spew function, for
19621 our debugging pleasure.
19623 Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
19625 * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
19626 a problem with referring to the wrong buffer.
19628 * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
19630 * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
19631 font description to gtk_style_new() - otherwise things
19632 don't work without a .gtkrc file.
19634 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
19635 tags table if we create it ourself, too.
19637 * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
19638 it was conflicting with XKB modifiers.
19640 * gtk/gtktextview.[ch]: Add simple support for
19643 Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
19645 * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
19646 with deletion from last commit.
19648 Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
19650 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
19651 in the context from the current locale.
19653 * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
19654 context, not hardcoded value.
19656 * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
19659 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
19661 * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
19662 attributes - that doesn't handle partial-glyph selection
19663 properly. Instead use new pango_layout_line_get_x_ranges()
19664 functionality to draw the selection.
19666 * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
19667 now properly handles out-of-range coordinates.
19669 * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
19671 * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
19674 * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
19675 for paragraphs opposite to the base direction of the widget.
19677 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
19679 * gtk/gtktextlayout.c: Don't split segments on marks, since that
19680 causes Arabic words to reshape as you cursor through.
19682 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
19683 cursor position when moving vertically with the arrow keys and
19684 scrolling with page-up/page-down. (Arrow keys save only the X,
19685 scrolling saves both X and Y.)
19687 This means you can line-up / line-down or page-up / page-down
19688 without losing your place, and also that moving vertically
19689 with the cursor keys keeps the same X position, not the same
19692 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
19693 arrow keys move by display lines, not paragraphs.
19695 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
19697 * gtk/gtklayout.c: Make sure that the bin window is at least
19698 as big as the allocation. (Should we also make sure that the
19699 bin window is big enough to completely cover widget->window?)
19701 * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
19702 function to get the onscreen rectangle.
19704 * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
19705 for offsets in window coordinates.
19707 Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
19709 * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
19712 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
19713 from the widget direction.
19715 * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
19716 Add a "direction" attribute.
19718 * gtk/gtktextview.c: global s/tkxt/text_view/.
19720 * gtk/testtext.c: Added long block of text in Arabic, to test out
19721 the direction attributes. (Some problems with the shaping system
19722 for arabic become obvious - like the fact the cursor splits words
19723 into unjoined pieces.)
19725 Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
19727 * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
19729 * gtk/gtktextlayout.c: Fix up alignment.
19731 * gtk/testtext.c: Add some tests for centering, wrapping.
19733 Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
19735 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19736 Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
19737 If we wrote GTK+-specific layout-render function this could just replace
19738 the draw_layout() operation in the vtable.
19740 * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
19741 pango_layout_get_cursor_pos() and use that function.
19743 * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
19744 is a non-static symbol.
19746 * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
19747 with gtk_text_btree_find_line_by_y()
19749 * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
19750 renderer that handles GtkTextAppearance attributes.
19752 * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
19754 - Move the values in the style that don't affect geometry into a
19755 GtkTextAppearance structure.
19756 - Change underline to take a PangoUnderline and "font" a string
19757 representation of a font description
19758 - Add a "font_desc" attribute which takes a FontDescription structure.
19760 * gtk/gtktextlayout.[ch]:
19762 - Get rid of the display-line list per each line. Instead, we
19763 generate, on demand, a GtkTextLineDisplay structure which]
19764 contains a PangoLayout * and other necesary information
19765 (offsets, cursor locations) for displaying a paragraph.
19766 - Get rid of the code to wrap lines, create display chunks,
19767 etc. Instead, we just go through a paragraph and convert
19768 it into the necessary inputs to a PangoLayout.
19769 - Implement a new attribute type, GtkTextAttrAppearance. This
19770 holds a GtkTextAppearance, and is used to pass colors,
19771 stipple, etc, through from the layout to the display without
19772 having to use lots and lots of individual attributes.
19773 - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
19774 in terms of PangoLayout functions.
19776 * gtk/gtktextview.c:
19778 - Handle passing the necessary PangoContext to the layout
19779 - Some fixups in painting to deal with the automatic backing store
19780 and offsetting of GTK+-1.4
19781 - Add a style_set handler so that the default style reacts
19782 properly to theme changes.
19784 * gtk/gtktext?*.[ch]: Random code-style fixes.
19786 * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
19788 Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
19790 * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
19791 in original form preparatory to Pango-ization and gdkimcontext-ization.
19793 Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
19795 * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
19796 so that we can derive from gtkimcontext in language bindings properly.
19798 Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
19800 * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
19801 Add a compose table including (almost) all the compose combinations
19802 from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
19803 data in the XIM implementation.
19805 * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
19806 Moved functions to convert keyvalues from and to unicode here from
19807 the win32 port and made them public.
19809 Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
19811 * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
19813 Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
19815 * gtk/gtkimcontext.[ch]: Base class for new input context system
19817 * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
19818 the real input context implementation to be loaded from modules
19819 and switched on the fly.
19821 * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
19822 context that just does direct keysymbol => unicode translation.
19824 * gtk/gtkentry.[ch]: Start switching editing over to using
19825 GtkInputContext. (No handling of preedit yet.)
19827 Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
19829 * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
19830 many substitutions. (klass should not be subsituted.)
19832 Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
19834 * configure.in: Add checks for Pango
19836 * configure.in docs/Makefile.am: Add test for sgml2html
19837 and allow 'make dist' without building html, but print out
19838 warnings in that case. (For making snapshots)
19840 * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
19841 Add Pango libraries and C flags
19843 * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19844 Add function (gdk_draw_layout) to draw a pango layout.
19846 * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
19847 for getting Pango contexts for GDK.
19849 * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
19851 * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
19854 * gtk/gtkentry.c: Hack in simple Hebrew input with direct
19855 keysym => unicode translations. More languages can be added
19856 here, but real input-method support is needed.
19858 * docs/Changes-1.4.txt: Added note about entry behavior.
19860 * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
19861 to set the reading direction for a widget and the global direction.
19862 Add test which allows toggling the global direction. Two private
19863 flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
19865 * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
19866 gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
19868 * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
19870 * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
19871 underlining now handled by Pango.
19873 * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
19874 to RCStyle and Style. (Having both this and the old font name and GdkFont
19877 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
19878 convenience functions for creating contexts and layouts for widgets.
19880 * gtk/testgtk.c: Enhance label tests with multilingual labels.
19882 2000-05-29 Jonathan Blandford <jrb@redhat.com>
19884 * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
19885 titles to be active, even if they aren't visible.
19886 (gtk_clist_column_titles_passive): Ditto.
19888 2000-05-21 Nils Barth <nils_barth@post.harvard.edu>
19892 * gtktypeutils.h: Spelling/grammar fixes in comments.
19894 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
19896 * gdk/nanox/*.h: add missing header files.
19898 Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
19900 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
19901 send_event to TRUE.
19902 (gtk_drawing_area_size): queue a resize.
19904 Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
19906 * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
19907 the handlers, also invalidate them. bug nailed down by Karl Nelson
19908 <kenelson@ece.ucdavis.edu>.
19910 Fri May 19 06:49:23 2000 Tim Janik <timj@gtk.org>
19912 * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
19913 "(nil)" foundries, patch from Grigorios Magklis.
19915 * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
19916 on non-available fonts, based on a patch by Grigorios Magklis
19917 <maglis@cs.rochester.edu>.
19919 2000-05-18 Elliot Lee <sopwith@redhat.com>
19921 * gdk/x11/gdkregion-generic.c: If a region does not have any
19922 rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
19923 instead of GDK_OVERLAP_RECTANGLE_IN.
19925 2000-05-17 Jonathan Blandford <jrb@redhat.com>
19927 * gtk/gtklayout.c (gtk_layout_map): Remove references to
19928 OFFSCREEN, as it is no longer necessary.
19930 Wed May 17 10:52:12 2000 Owen Taylor <otaylor@redhat.com>
19932 * gtk/gtkcolorsel.c: Patch from David Santiago
19933 <mrcooger@cyberverse.com> to change things so that the
19934 indicator of the active palette entry is done independently,
19935 not via the focus, since it should always be visible.
19937 2000-05-17 Tor Lillqvist <tml@iki.fi>
19939 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
19940 refcount leaks as in the X11 backend.
19942 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
19945 * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
19946 backend. Add _gdk_windowing_window_destroy().
19948 * gtk/gtkcolorsel.c: Include correct backend-specific header.
19949 Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
19950 either, but these probably do exist on nanox?)
19952 * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
19953 which isn't necessarily defined by <math.h>.
19955 * gtk/gtkobject.c (gtk_object_init): Don't go up the class
19956 ancestry past GtkObject.
19958 * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
19961 * gtk/gtk.def: Update corresponding to recent changes.
19963 * gtk/makefile.{cygwin,msc}: Updates.
19965 Fri May 12 18:46:51 2000 Owen Taylor <otaylor@redhat.com>
19967 * docs/Changes-1.4.txt: A bit of editing.
19969 * gdk/gdkwindow.c (_gdk_window_clear_update_area)
19970 * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
19971 to clear the update area for the window, and clear it
19972 when hiding a window.
19974 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
19975 if window destroyed.
19977 * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
19979 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
19980 gdk_window_destroy() to the generic code, since there was a lot of
19981 window-system-independent logic it in. Add a function:
19983 _gdk_window_destroy()
19985 to the internal API to destroy a window without unreferencing it.
19988 _gdk_windowing_window_destroy()
19990 That does the windowing-system-dependent part of destroying
19993 Fri May 12 11:07:41 2000 Owen Taylor <otaylor@redhat.com>
19995 * gtk/testgtk.c: Fix various memory leaks of pixmaps.
19997 Fri May 12 11:06:10 2000 Owen Taylor <otaylor@redhat.com>
19999 * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
20000 Make gtk_widget_shape_combine_mask() keep a reference count on
20001 the pixmap since it keeps it around.
20003 Fri May 12 10:53:29 2000 Owen Taylor <otaylor@redhat.com>
20005 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
20008 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
20009 leak with event filters.
20011 Thu May 11 14:29:44 2000 Owen Taylor <otaylor@redhat.com>
20013 * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
20014 signal handlers with the right data arguments. (Fixes
20015 some warnings when a widget was repeatedly set as a drag
20018 * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
20019 window so we can avoid avoid setting the DND properties on the
20020 toplevel window repeatedly.
20022 2000-05-13 Tor Lillqvist <tml@iki.fi>
20024 * gdk/win32/gdkwin32.h: Define more message types missing from
20027 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
20028 call gdk_window_destroy_notify(). It was never called. This
20029 probably meant that the GdkWindow was never freed. Thanks Owen for
20032 * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
20033 window as destroyed before calling DestroyWindow(). DestroyWindow()
20034 causes a call to the window procedure (gdk_WindowProc), which
20035 calls gdk_event_translate(), which calls
20036 gdk_window_destroy_notify(), which gets confused unless the window
20037 is set as destroyed.
20039 * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
20040 this function to indicate it's win32 only. Put inside #ifdef
20043 * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
20044 debugging function. (gdk_event_translate:) Add a default branch
20045 that uses the above function to print debug messages with all
20046 Windows messages symbolically.
20048 * gdk/win32/gdkprivate-win32.h: Declare it, and
20049 gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
20051 Fri May 12 20:07:32 2000 Tim Janik <timj@gtk.org>
20053 * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
20054 public header file.
20056 Fri May 12 17:13:32 2000 Tim Janik <timj@gtk.org>
20058 * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
20060 * gtk/gtktext.c: made the adjustments no-construct args, simply
20061 provide default adjustments.
20062 (gtk_text_destroy): release adjustments.
20064 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
20065 adjustment argument non-construct.
20067 * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
20068 instead of in finalize.
20069 (gtk_progress_get_text_from_value):
20070 (gtk_progress_get_current_text):
20071 (gtk_progress_set_value):
20072 (gtk_progress_get_percentage_from_value):
20073 (gtk_progress_get_current_percentage):
20074 (gtk_progress_set_percentage):
20075 (gtk_progress_configure): ensure an adjustment is present.
20077 Thu May 11 01:24:08 2000 Tim Janik <timj@gtk.org>
20079 * gtk/gtkcolorsel.[hc]:
20080 * gtk/gtkcolorseldialog.[hc]:
20081 * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
20082 their parent implementation, use bit fields for boolean values, don't
20083 create unused widgets, usage of glib types, braces go on their own
20084 lines, function argument alignment, #include directives etc. etc. etc..
20086 * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
20088 Wed May 10 23:29:52 2000 Tim Janik <timj@gtk.org>
20090 * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
20092 * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
20095 * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
20097 (gtk_combo_destroy): don't keep a pointer to a destroyed window.
20099 * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
20100 to NULL when the toplevel is getting destroyed.
20101 (gtk_menu_set_tearoff_state): same here for the tearoff_window.
20102 (gtk_menu_destroy):
20103 (gtk_menu_init): store the information of whether we have to
20104 readd the initial child ref_count during destruction in a new
20105 GtkMenu field needs_destruction_ref_count.
20107 * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
20108 here, those reading: learn from my mistake! ;)
20109 in order for set_?adjustment to support a default adjustemnt if
20110 invoked with an adjustment pointer of NULL, the code read (pseudo):
20111 if (v->adjustment) unref (v->adjustment);
20112 if (!adjustment) adjustment = adjustment_new ();
20113 if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
20114 now imagine the first unref to actually free the old adjustment and
20115 adjustment_new() creating a new adjustment from the very same memory
20116 portion. here, the latter comparision will unintendedly fail, and
20117 all hell breaks loose.
20118 (gtk_viewport_set_hadjustment):
20119 (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
20120 after unreferencing it.
20122 * gtk/gtkcontainer.[hc]: removed toplevel registration
20123 functions: gtk_container_register_toplevel(),
20124 gtk_container_unregister_toplevel() and
20125 gtk_container_get_toplevels() which had wrong semantics
20126 anyways: it didn't reference and copy the list.
20128 * gtk/gtkwindow.c: we take over the container toplevel registration
20129 bussiness now. windows are registered across multiple destructions,
20130 untill they are finalized. the initial implicit reference count
20131 users are holding on windows is removed with the first destruction
20133 (gtk_window_init): ref & sink and set has_user_ref_count, got
20134 rid of gtk_container_register_toplevel() call. add window to
20136 (gtk_window_destroy): unref the window if has_user_ref_count
20137 is still set, got rid of call to
20138 gtk_container_unregister_toplevel().
20139 (gtk_window_finalize): remove window from toplevel list.
20140 (gtk_window_list_toplevels): new function to return a newly
20141 created list with referenced toplevels.
20142 (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
20144 * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
20145 adjustment a non-construct arg.
20146 * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
20147 * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
20148 * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
20150 * gtk/gtkrange.c: added some realized checks.
20151 (gtk_range_destroy): get rid of the h/v adjustments in the
20152 destroy handler instead of finalize. remove timer.
20153 (gtk_range_get_adjustment): demand create adjustment.
20155 * gtk/gtkviewport.c: made h/v adjustment non-construct args.
20156 we simply create them on demand now and get rid of them in
20157 the destroy handler.
20158 (gtk_viewport_destroy): get rid of the h/v adjustments in the
20159 destroy handler instead of finalize.
20160 (gtk_viewport_get_hadjustment):
20161 (gtk_viewport_get_vadjustment):
20162 (gtk_viewport_size_allocate): demand create h/v adjustment
20165 * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
20166 gtk_widget_real_destroy () functionality.
20167 (gtk_widget_real_destroy): reinitialize with a new style, instead
20168 of setting widget->style to NULL.
20170 Fri May 5 13:02:09 2000 Tim Janik <timj@gtk.org>
20172 * gtk/gtkcalendar.c:
20173 * gtk/gtkbutton.c: ported _get_type() implementation over to
20174 GType, either to preserve memchunks allocation facilities,
20175 or because Gtk+ 1.0 GtkTypeInfo was still being used.
20177 * gtk/gtkobject.[hc]: derive from GObject. ported various functions
20178 over. prepare for ::destroy to be emitted multiple times.
20179 removed reference tracer magic. chain into GObjectClass.shutdown()
20180 to emit ::destroy signal.
20182 * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
20185 * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
20192 * gtk/gtkargcollector.c:
20193 * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
20194 not being a fundamental anymore, and to work with the new
20195 type system (nuked fundamental type varargs clutter).
20197 * gtk/*.c: install finalize handlers in the GObjectClass
20198 part of the class structure.
20199 changed direct GTK_OBJECT()->klass accesses to
20201 changed direct object_class->type accesses to GTK_CLASS_TYPE().
20203 * gtktypeutils.[hc]: use the reserved fundamental ids provided by
20204 GType. made most of the GTK_*() type macros and Gtk* typedefs
20205 simple wrappers around macros and types provided by GType.
20206 most notably, a significant portion of the old API vanished:
20209 GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
20210 GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
20213 GTK_TYPE_C_CALLBACK,
20217 gtk_type_set_varargs_type(),
20218 gtk_type_get_varargs_type(),
20219 gtk_type_check_object_cast(),
20220 gtk_type_check_class_cast(),
20221 gtk_type_describe_tree(),
20222 gtk_type_describe_heritage(),
20224 gtk_type_children_types(),
20225 gtk_type_set_chunk_alloc(),
20226 gtk_type_register_enum(),
20227 gtk_type_register_flags(),
20228 gtk_type_parent_class().
20229 replacements, where available are described in ../docs/Changes-1.4.txt.
20230 implemented compatibility functions for the remaining API.
20232 * configure.in: depend on glib 1.3.1, use gobject module.
20234 Thu May 11 12:39:50 2000 Owen Taylor <otaylor@redhat.com>
20236 * TODO.xml: Various updates to current status.
20238 Wed May 10 20:25:04 2000 Owen Taylor <otaylor@redhat.com>
20240 * gtk.m4: Print out version when test succeeds.
20242 Wed May 10 16:38:17 2000 Owen Taylor <otaylor@redhat.com>
20244 * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
20245 gtk/gtkhsv.[ch]: Color selection dialog rewrite.
20247 (Original triangle color selector from Simon Budig
20248 <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
20249 from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
20250 Santiago <mrcooger@cyberverse.com>)
20252 * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
20253 out into a separate widget.
20255 * gtk/testgtk.c: Add some checkbuttons for toggling palette
20256 and opacity controls.
20258 Wed May 10 16:08:09 2000 Owen Taylor <otaylor@redhat.com>
20260 * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that
20261 snuck in prematurely.
20263 2000-05-07 Tor Lillqvist <tml@iki.fi>
20265 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
20266 had deleted a ! operator by mistake, which caused
20267 GDK_SELECTION_CLEAR events never to be generated, which caused
20268 only the first copy to the clipboard from an gtkeditable to
20269 actually cause a copy to the Windows clipboard.
20271 2000-05-06 Tor Lillqvist <tml@iki.fi>
20273 * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
20274 compilation, too. Current mingw gcc distributions include the
20275 necessary headers. Also the necessary IIDs are now in mingw
20276 headers/libraries, and own definitions unnecessary.
20278 More hacking on OLE2 DND, still doesn't work though, and thus
20281 * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
20284 Sat, 6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
20286 * gdk/nanox/*: nano-X port work in progress.
20287 * gdk/simple.c: simple test for Gdk.
20288 * README.nanox: notes about the port: read this first!
20289 * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
20292 Fri May 5 11:18:47 2000 Owen Taylor <otaylor@redhat.com>
20294 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
20295 gdk_window_clear() into common code, implement in terms of
20296 gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
20297 not redirected to the backing rectangle.
20299 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
20301 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
20302 EXTRA_DIST. It does not work well when the file that
20303 everything depends on is not in the tarball.
20305 Tue Apr 25 22:20:41 2000 Owen Taylor <otaylor@redhat.com>
20307 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
20308 with recursion where process_updates() is called from
20309 an expose handler. (GtkTextView is highly broken in
20310 doing this, but it should work, so it is a nice test
20313 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
20315 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
20316 handle the case where updates are queued during processing of
20319 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
20321 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
20322 window is on gdk_display - use that instead of segfaulting.
20324 Thu May 4 02:04:46 2000 Tim Janik <timj@gtk.org>
20326 * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
20327 broken and require an empty arg, give it to them.
20329 Fri Apr 28 19:34:32 2000 Tim Janik <timj@gtk.org>
20331 * gtk/gtklabel.h: indentation fixes.
20333 2000-05-02 Tor Lillqvist <tml@iki.fi>
20335 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
20336 draw too narrow or too low arcs, they seem to fail, at least with
20337 some display drivers.
20339 * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
20341 Large changes to the Win32 backend, partially made necessary by
20342 the changes to the backend-independent internal
20343 structures. Attempts to implement similar backing store stuff as
20344 on X11. The current (CVS) version of the Win32 backend is *not* as
20345 stable as it was before the no-flicker branch was merged. A
20346 zipfile with that version is available from
20347 http://www.gimp.org/win32/. That should be use by "production"
20348 code until this CVS version is usable. (But note, the Win32
20349 backend has never been claimed to be "production quality".)
20351 * README.win32: Add the above comment about versions.
20353 * gdk/gdkwindow.c: Don't use backing store for now on Win32.
20355 * gdk/gdk.def: Update.
20357 * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
20358 presumably be replaced by some more better mechanism as 1.4 gets
20359 closer to release shape.
20361 * gdk/makefile.{cygwin,msc}: Update.
20363 * gdk/win32/*.c: Correct inclusions of the backend-specific and
20364 internal headers. Change code according to changes in these. Use
20365 gdk_drawable_*, not gdk_window_* where necessary.
20367 * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
20370 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
20371 to interpret single characters as UTF-8. Thanks to Hans Breuer.
20372 Use correct function name in warning messages.
20374 * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
20375 GSourceFuncs gdk_event_prepare and gdk_event_check.
20376 (gdk_event_get_graphics_expose): Do implement, use
20377 PeekMessage. Thanks to Hans Breuer.
20378 (event_mask_string): Debugging function to print an GdkEventMask.
20379 (gdk_pointer_grab): Use it.
20381 * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
20382 (old) book I used claimed was Hangul actually is CJK Unified
20383 Ideographs Extension A. Also, Hangul Syllables were missing.
20386 * gdk/win32/gdkgc-win32.c: Largish changes.
20388 * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
20389 g_win32_getlocale() from GLib, and not setlocale() to get current
20392 * gdk/win32/gdkprivate-win32.h
20393 * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
20394 gdkwin32.h, similarily as in the X11 backend.
20396 * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
20397 assignment was used instead of equals in if test. Thanks to Hans
20400 * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
20403 * gdk/win32/makefile.{cygwin,msc}
20404 * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
20405 path to the Win32 headers that works also with the mingw compiler.
20407 * gtk/gtkstyle.c: Include <string.h>.
20409 2000-04-26 Havoc Pennington <hp@redhat.com>
20411 * gtk/gtklabel.c (gtk_label_get_text): Add this function,
20412 replacing the broken gtk_label_get ()
20414 2000-04-15 Havoc Pennington <hp@pobox.com>
20416 * gdk/gdkdnd.h: clean up enum format, remove extra comma,
20417 this keeps scanner scripts from getting confused.
20419 * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
20420 data, rather than void
20422 2000-04-15 Tor Lillqvist <tml@iki.fi>
20424 * gtk/gtkclist.c (gtk_clist_motion)
20425 * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
20426 with is_hint FALSE, get x and y from the event. They used to be
20427 used uninitialised. The Win32 backend never sends motion events
20428 marked as hints. This for instance fixes the annoying file and
20429 font selector behaviour in the Win32 version.
20431 2000-04-14 Tor Lillqvist <tml@iki.fi>
20433 * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
20434 gtk_private_n_signals variables, they are used by some software,
20437 * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
20438 installation directory from the Registry, where the installer
20439 should have put it.
20441 Fri Apr 7 17:19:27 2000 Owen Taylor <otaylor@redhat.com>
20443 * gdk/x11/Makefile.am: Fix problem with installation directory for
20446 * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
20447 <mrcooger@cyberverse.com> so that when selecting menus with the
20448 mouse, the first item will not be selected, but when selecting
20449 with an accelerator, or navigating left-right on a menubar with
20450 the menus popped up, the first item will be selected.
20452 2000-04-05 Dan Damian <dand@dnttm.ro>
20454 * configure.in: Added "ro" to ALL_LINGUAS.
20456 Wed Apr 5 00:08:36 2000 Owen Taylor <otaylor@redhat.com>
20458 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
20461 * Makefile.am (EXTRA_DIST): Fix typo.
20463 * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
20464 to catch gdkconfig.h
20466 * gtk/gtkitemfactory.c: Added FIXME.
20468 2000-03-30 Jonathan Blandford <jrb@redhat.com>
20470 * gtk/gtkpaned.c (gtk_paned_get_position): oops.
20471 s/return_if_fail/return_val_if_fail/g and add a return value.
20473 Mon Mar 27 20:56:14 2000 Owen Taylor <otaylor@redhat.com>
20475 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up
20478 * gdk/gdkinput.h: Fix missing line from merge.
20480 Mon Mar 27 20:39:49 2000 Owen Taylor <otaylor@redhat.com>
20482 * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
20483 instead of gdkprivate.h.
20485 Sun Mar 12 15:19:24 2000 Owen Taylor <otaylor@redhat.com>
20487 * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
20488 parent class to correctly be GtkDialogClass.
20490 Thu Feb 24 23:58:21 2000 Owen Taylor <otaylor@redhat.com>
20492 * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
20493 toplevel windows and their immediate children by their parents,
20494 since the size of toplevel windows is out of our immediate
20495 control and we don't get any real benefit from trying to track
20496 this size for clipping.
20498 * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
20499 for input_only windows.
20501 * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
20502 to fix some hacks and make sure that we don't try to set the
20503 background of input only windows.
20505 Thu Feb 24 18:11:46 2000 Owen Taylor <otaylor@redhat.com>
20507 * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
20508 the _really_ internal stuff, and leave gdkprivate.h for the fake private
20509 stuff that we've traditionally exposed.
20511 * gdk/**.c: Use gdkinternals.h where appropriate.
20513 * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
20514 not include gdkprivate-x11.h, move all stuff of conceivable public
20515 interest into gdkx.h; keep all really private stuff in
20516 uninstalled header gdkprivate-x11.h.
20518 * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
20519 image->image_put on windows through a new function _gdk_window_draw_image()
20520 to allow us to do backing store for images. (Sort of ugly)
20522 * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
20523 contexts locally so that we can offset them properly when drawing
20524 onto backing pixmaps.
20526 * gdk/gdkinput.h: Reindented
20528 * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
20529 pixmap or color for the window, so we can properly initialize
20530 our double-buffer pixmaps, and also so that we temporarily set
20531 a background of None while scrolling.
20533 * gdk/gdkregion.h: Revise region boolean operators to have an
20534 interface that is actually convenient - switch from creating new
20535 regions on every op, to "methods" that modify existing regions
20536 (A = A OP B). 3 argument forms which allow dest == src, would also
20537 be possible, but the current interfaces seem to map nicely
20538 onto what needs to be done. (There is quite a lot of region
20541 * gdk/gdkregion.h: Add constructor from rectangle and a copy
20544 * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
20545 gdkpoly-generic.h: Copy region code from Xlib, switch it over
20546 to 32 bit coordinates, modify it to be mostly GTK+ style
20547 and to have interfaces that match gdkregion.h.
20549 * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
20550 double-buffered drawing. gdk_window_begin_paint_{rect,region}()
20551 create a backing pixmap and redirect all drawing to
20552 that backing pixmap until a matching gdk_window_end_paint().
20554 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
20555 Create a special drawable class for GtkWindow's that
20556 redirects the drawing to the backing pixmap as necessary
20557 and then calls the real operations in _gdk_windowing_window_class.
20559 * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
20560 Store invalid region for each window. Generate expose events for invalid
20561 region in an idle. This replaces both the expose compression
20562 and the redrawing queuing in GTK+. It is both more efficient and
20563 simpler than either one individually and far more so then the
20566 * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
20567 Emulate 32 bit coordinates for windows with 16 bit coordinates
20568 by offsetting drawing, guffaw scrolling techniques and
20569 mapping/unmapping child windows as necessary.
20571 * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
20572 where, when invalid regions are processed, the region is stored,
20573 and if expose events come in that are detectably duplicate
20574 the processed exposes (by comparison of event serial numbers),
20575 the stored region is subtracted out of those exposes.
20577 * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
20578 regions newly exposed when scrolling or resizing windows.
20579 This, combined with forcing processesing of queued invalidated
20580 regions, gives nice flicker-free scrolling.
20582 * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
20583 invalidated regions after every scroll.
20585 * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
20586 emulation in GDK. Its, for all practical purposes just a
20587 GtkViewport/GtkFixed hybrid now.
20589 * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
20590 (16-bit) structures as necessary instead of just casting.
20592 * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
20593 in terms of the structures from gdkregion-generic.c, using appropriate
20594 offsets from GDK to X11 coordinates. Cache clip mask and
20595 origin and ts origin locally and only flush to the server
20596 when drawing, to avoid constantly setting and resetting these
20597 values when offsetting GC's for scrolling and backing pixmaps.
20599 * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
20601 * gtk/gtkcontainer.c: Call process_all_updates at end
20602 of resizing to reduce flicker. (Avoids having redraw
20603 lag arbitrarily behind resize under some circumstances)
20605 * gtk/gtkentry.c: Remove old backing store code, and simply take
20606 advantage of the new backing store capabilities of GDK.
20608 * gtk/gtkmain.c: Simple implementation of widget backing
20609 store - simply push a paint while handling each expose.
20610 (Should really be configurable widget for widget.)
20612 * gtk/gtkwidget.c: Remove all the old complicated redraw
20613 code, and simply invalidate the GDK windows from
20614 gdk_window_queue_clear(), etc. (Sigh, so much carefully
20615 debugged complexity ... gone to the winds.)
20617 Remove all the code for suppressing expose events while
20618 resizes are pending; this isn't needed since the invalid
20619 areas won't be processed until after the resizes are
20620 processed, since they are in a lower priority idle.
20622 Thu Feb 24 15:37:41 2000 Owen Taylor <otaylor@redhat.com>
20624 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
20625 and height of dest rectangle for non-intersecting rectangles.
20627 Sun Feb 20 16:47:31 2000 Owen Taylor <otaylor@redhat.com>
20629 * gtk/gtkwidget.h: Make GtkAllocation just a typedef
20632 Sun Feb 20 11:27:00 2000 Owen Taylor <otaylor@redhat.com>
20634 * gdk/gdk{events,image,private,types,window}.h
20635 gdk/x11/gdkinputprivate.h: Change all coordinates
20636 from int16 to int. Also, Change width and height from
20637 unsigned to signed to avoid all the stupid C
20640 Sat Feb 19 12:01:53 2000 Owen Taylor <otaylor@redhat.com>
20642 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
20643 Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
20644 Add some more detailed checking.
20646 * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
20647 New function to retrieve the depth of a drawable.
20649 * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
20650 field, reorder fields to save memory.
20652 Mon Dec 13 14:06:03 1999 Owen Taylor <otaylor@redhat.com>
20654 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
20655 of the background image instead of scaling the background down to
20658 * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
20659 which temporarily set slider to wrong size.
20661 * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
20664 Wed Nov 17 18:36:05 1999 Owen Taylor <otaylor@redhat.com>
20666 2000-03-23 Jonathan Blandford <jrb@redhat.com>
20668 * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
20670 2000-03-17 Tor Lillqvist <tml@iki.fi>
20672 * gdk/win32/gdkevents-win32.c: Remove the #ifndef
20673 USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
20675 * gdk/win32/gdkfont-win32.c
20676 * gdk/win32/gdkproperty-win32.c
20677 * gdk/win32/gdkselection-win32.c
20678 * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
20681 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
20683 * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
20685 Mon Mar 13 18:37:55 2000 Owen Taylor <otaylor@redhat.com>
20687 * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
20688 is called without trapping X errors.
20690 Fri Feb 25 10:48:53 2000 Owen Taylor <otaylor@redhat.com>
20692 * gtk/gtkrc.*: Fix problem where stray '"' characters found their
20693 way into the fontset lists.
20695 Tue Feb 22 08:52:52 2000 Tim Janik <timj@gtk.org>
20697 * gtk/gtkthemes.h: add extern "C" scope.
20699 Mon Feb 21 20:16:42 2000 Lars Hamann <lars@gtk.org>
20701 * gtk/gtkclist.c: applied patch from Guy Harris <guy@netapp.com>
20702 to make appends to the list constant. (gtk-guy-990901-0.patch)
20704 Mon Feb 14 22:50:10 2000 Tim Janik <timj@gtk.org>
20706 * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
20707 for the typename hash table.
20709 Mon Feb 14 15:01:23 2000 Owen Taylor <otaylor@redhat.com>
20711 * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
20712 to make sure we never divide by zero.
20713 (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
20715 Mon Feb 14 12:29:38 2000 Owen Taylor <otaylor@redhat.com>
20717 * gtk/gtkfontsel.c: Apply patch from
20718 SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
20719 better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
20721 Also, some cleanups in atom handling.
20723 Sun Feb 13 08:02:21 2000 Tim Janik <timj@gtk.org>
20725 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
20728 Fri Feb 11 02:19:32 2000 Tim Janik <timj@gtk.org>
20730 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate):
20731 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate):
20732 * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
20733 more guint wrap-around bugs before going to bed.
20735 Thu Feb 10 16:16:35 2000 Tim Janik <timj@gtk.org>
20737 * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
20738 guint wrap arounds in allocation.width.
20740 * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
20741 process untill we fit the allocation given.
20743 Tue Feb 8 09:38:29 2000 Tim Janik <timj@gtk.org>
20746 (gtk_widget_unrealize): guard widget access with ref/unref
20747 around signal emission.
20748 (gtk_widget_hide): same here, but also check its destroyed
20749 state before queueing a resize.
20751 Tue Feb 8 03:05:55 2000 Tim Janik <timj@gtk.org>
20753 * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
20754 of gtk_default_insensitive_bg as insensitive base color.
20756 * gtk/gtktext.c (gtk_text_style_set): set the background color according
20757 to the widget's state.
20758 (gtk_text_realize): same here.
20759 (gtk_text_state_changed): same here.
20760 (draw_bg_rect): compare background color against base[] from
20761 GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
20763 Mon Feb 7 04:01:55 2000 Tim Janik <timj@gtk.org>
20765 * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
20766 grabs are active, unless a delete event is send to the toplevel
20767 of the currently grab holding widget.
20769 Sun Feb 6 10:13:15 2000 Owen Taylor <otaylor@redhat.com>
20771 * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
20772 debugging g_print's.
20774 Fri Feb 4 15:54:54 2000 Owen Taylor <otaylor@redhat.com>
20776 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
20777 ever make the scrolled-window requisition ever depend on the
20778 visibility state of the scrollbars for the AUTOMATIC policy.
20779 This breaks the GTK+ requisition model, and causes loops.
20781 Fri Feb 4 15:09:12 2000 Owen Taylor <otaylor@redhat.com>
20783 * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
20784 the default font to avoid problems with XFree86-4.0 where the
20785 default charset is iso10646-1, not iso8859-1.
20787 Thu Feb 3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
20793 * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
20795 * gtk/Makefile.am: minor cosmetic consistency tweak
20797 Thu Feb 3 14:46:01 2000 Owen Taylor <otaylor@redhat.com>
20799 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
20800 the activate_time to 0, so that we handle a quick
20801 press/release press/release properly and don't suppress
20802 the second release. (Red Hat bug #7545)
20804 Wed Feb 2 22:25:17 2000 Tim Janik <timj@gtk.org>
20806 * gtk/gtkctree.c (row_delete):
20807 (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
20808 bugs with destruction notifier, *always* update internal
20809 structures *before* calling user code.
20811 Sun Jan 30 20:10:52 2000 Lars Hamann <lars@gtk.org>
20813 A few more fixes for bug #5487, #2051, #2677.
20815 (gtk_clist_button_press): Reset clist->anchor to -1 if event->type is
20816 not GDK_BUTTON_PRESS.
20817 (resync_selection): resync only if selection_mode is
20818 GTK_SELECTION_EXTENDED
20819 * gtk/gtkctree.c (resync_selection): same here
20821 Sun Jan 30 12:29:20 2000 Owen Taylor <otaylor@redhat.com>
20823 * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
20824 gdk_drag_get_selection() and gtk_menu_detach().
20826 [ From Jeroen Ruigrok/Asmodai ]
20828 Sat Jan 29 10:11:56 2000 Owen Taylor <otaylor@redhat.com>
20830 * gtk/gtknotebook.c (gtk_notebook_size_request):
20831 page->tab_label can be NULL.
20833 2000-01-25 Havoc Pennington <hp@pobox.com>
20835 * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
20838 * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
20840 * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
20842 * gdk/gdkproperty.c (gdk_property_get): return boolean
20844 * gdk/gdkinput.c (gdk_input_set_mode): return boolean
20846 * gdk/gdkim.c (gdk_im_ready): return boolean
20848 * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
20850 * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
20851 glib clash, should fix glib)
20853 * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
20854 (gdk_get_show_events): return gboolean, and canonicalize
20857 * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
20858 colormap is private
20859 (gdk_colors_alloc): gboolean whether to be contiguous
20860 (gdk_color_equal): return gboolean since we are a predicate
20861 and not a qsort() (this looks semi-wrong due to glib breakage,
20862 IMO glib should be fixed)
20864 * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
20865 (gdk_get_use_xshm): return gboolean
20866 (gdk_pointer_is_grabbed): return gboolean
20868 * gdk/gdk.h: Change prototypes to match all the above changes,
20869 and re-run egtk-format-protos as required.
20871 Fri Jan 28 12:28:17 2000 Owen Taylor <otaylor@redhat.com>
20873 * gtk/gtkctree.c (resync_selection):
20874 * gtk/gtkclist.c (resync_selection):
20876 Return immediately if clist->drag_pos < 0. This is a workaround
20877 for the corrupt state that the clist gets into when a
20878 GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
20880 Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
20882 * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
20883 variable from recent commit.
20885 Thu Jan 27 15:22:09 2000 Owen Taylor <otaylor@redhat.com>
20887 * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
20889 Thu Jan 27 18:00:55 2000 Tim Janik <timj@gtk.org>
20891 * gtk/Makefile.am: prefix all autogenerated source that get build in
20892 $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
20893 in builddir. since we subsequently cd into srcdir for autogeneration,
20894 the paths have to be stripped from the target file names, thusly we
20895 use $(@F) as target names now.
20896 put a comment about configure.in's --disable-rebuilds option,
20897 which can be used for non-writable source directories, for development
20898 setups though, srcdir has to be *writable*.
20900 hu Jan 27 00:15:03 2000 Owen Taylor <otaylor@redhat.com>
20902 * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
20903 Finish the job of allowing event to be NULL.
20904 (Fixes bug #4283, reported by Chris Blizzard)
20906 * gtk/gtkentry.c (entry_adjust_scroll): When calculating
20907 things so that the cursor appears on screen, properly
20908 take into account INNER_BORDER.
20909 (Fixes bug #4754, reported by Antonio Campos)
20911 Wed Jan 26 23:12:28 2000 Owen Taylor <otaylor@redhat.com>
20913 * gtk/gtknotebook.c (gtk_notebook_map): Don't
20914 show the tab_label unless it itself is visible.
20916 gtk/gtknotebook.c (gtk_notebook_size_request):
20917 Do a better job of making sure that the visibility
20918 of the tab label corresponds to whether it should
20921 Wed Jan 26 21:17:03 2000 Owen Taylor <otaylor@redhat.com>
20923 * gtk/gtkoptionmenu.c (gtk_option_menu_position):
20924 Use the requisition, not the allocation, since the
20925 allocation has not necessarily been computed yet.
20926 (Pointed out by Eugene Osintsev)
20928 Wed Jan 26 19:44:25 2000 Owen Taylor <otaylor@redhat.com>
20930 * gtk/gtkstyle.c (gtk_style_new): Dont' set
20931 style/base[GTK_STATE_INSENSITIVE] both to
20932 gtk_default_insensitive_bg!
20933 (Bug #2187, reported by Jonathan Blandford)
20935 * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
20936 Add Alt_L, Alt_R to list of invalid accelerators.
20937 (Bug #3736, reported by Vlad Harchev)
20939 Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
20941 * gtk/gtkfilesel.c (open_ref_dir): Fix several
20942 bugs which occured after an attempt to open
20943 invalid home directory left cmpl_state->reference_dir == NULL.
20945 - completion on files in home directory didn't work
20946 - completion on an empty string caused segfault
20948 (Bug #3678, reported by Steve Ratcliffe)
20950 * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
20951 cut and paste error that was causing scales to
20952 be incorrectly positioned.
20954 patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
20956 2000-01-27 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
20958 * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
20959 when checking for dcgettext, if we've found we needed
20962 Wed Jan 26 18:06:07 2000 Owen Taylor <otaylor@redhat.com>
20964 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
20965 queue_clear on NO_WINDOW widgets during a reparent,
20966 since at that point the window and widget heirarchies
20967 are out of sync. This stops crashing in some cases
20968 (the scrolled window reparent test, for instance), and
20969 _probably_ won't cause drawing errors.
20971 * gtk/testgtk.c: Make the reparenting-a-scrolled-window
20972 test do what it was supposed to do and be robust against
20973 window closings, etc. (Bug #2443)
20975 Wed Jan 26 16:56:54 2000 Owen Taylor <otaylor@redhat.com>
20977 * gtk/gtkentry.c: Fix return values on mouse events.
20978 (Bug #2686, Sky <seb_sky@yahoo.com>)
20980 * gtk/genmarshal.pl: Fix up handling of FOREIGN.
20981 (pointed out by George Lebl)
20983 * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
20984 (From Ettore Perazzoli <ettore@helixcode.com>)
20986 Mon Jan 24 10:44:48 2000 Owen Taylor <otaylor@redhat.com>
20988 * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
20989 clicks between rows or outside calender area correctly.
20990 (Patch from Damon Chaplin)
20992 * gtk/gtkclist.c (gtk_clist_set_row_data_full):
20993 * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full):
20994 Call destroy function when overwriting existing data.
20995 (Pointed out by Damon Chaplin)
20997 Tue Jan 25 09:55:41 2000 Owen Taylor <otaylor@redhat.com>
20999 * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
21000 which was causing problems on various systems with Xmu.
21001 This hasn't been needed for a very long time.
21004 Sun Jan 23 22:27:36 2000 Owen Taylor <otaylor@redhat.com>
21006 * gdk/gdki18n.h: Include <ctype.h> when defining
21007 gdk_isw* in terms of is* as a fallback.
21008 (Bug #4106 - Dan Winship <danw@MIT.EDU>)
21010 Sun Jan 23 22:12:36 2000 Owen Taylor <otaylor@redhat.com>
21012 * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
21013 realize the widget when it is size allocated!
21016 * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
21017 Removed unused call to gdk_window_get_size() that
21018 showed up when the above was fixed.
21020 Sat Jan 22 15:44:30 2000 Owen Taylor <otaylor@redhat.com>
21022 * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
21023 fix up widget->window when the widget is a
21024 NO_WINDOW container widget.
21026 Sat Jan 22 12:40:48 2000 Owen Taylor <otaylor@redhat.com>
21028 * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
21029 to account for the fact that feof() does _not_
21030 return TRUE on errors, and thus avoid infinite loops
21031 when trying to use gdk_pixmap_create_from_xpm()
21032 on unreadable values.
21034 Fri Jan 21 18:32:43 2000 Owen Taylor <otaylor@redhat.com>
21036 * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
21038 Fri Jan 21 16:24:08 2000 Owen Taylor <otaylor@redhat.com>
21040 * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
21041 gdk_gc_set_dashes to take gint8 instead of gchar to
21042 make it clearer that it is _not_ a NULL terminated string.
21044 * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
21045 gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
21046 gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
21049 Thu Dec 30 04:51:05 1999 Tim Janik <timj@gtk.org>
21051 * gtk/gtkvscale.c (gtk_vscale_pos_background):
21052 * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
21053 background size relative to our allocation, guard against small
21054 allocations, we may have not yet been size allocated.
21056 Thu Dec 2 10:59:14 1999 Owen Taylor <otaylor@redhat.com>
21058 * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
21059 not just version == 3. We implement all 3 + most of 4 -
21060 (we don't support matching text/plain;charset=iso-8859-1
21061 to a dest that expects text/plain). We'll still advertise
21062 3 to be safe, but any client implementing version >= 3
21063 must interoperate with 3.
21065 Tue Mar 14 11:53:31 2000 Owen Taylor <otaylor@redhat.com>
21067 * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
21068 background and gc members, add a warning in gtk_tooltips_set_color()
21069 indicating that this function is deprecated.
21071 Thu Mar 9 22:10:56 GMT 2000 Tony Gale <gale@gtk.org>
21073 * docs/gtkfaq.sgml: FAQ Update:
21074 - Minor cleanups (Emmanuel, me)
21076 I need to add a new signal to a GTK+ widget. Any idea? (timj)
21077 How can I retrieve the text from a GtkMenuItem? (timj)
21078 How do I validate/limit/filter the input to a GtkEntry? (me)
21079 Memory does not seem to be released when I free the list
21080 nodes I've allocated (timj)
21082 2000-03-07 Tor Lillqvist <tml@iki.fi>
21084 * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
21085 (gdk_win32_gdi_failed) New function for reporting errors from GDI,
21086 for which it is no use to call GetLastError onWin9x.
21087 (gdk_other_api_failed) New function, for general error
21088 reporting without calling GetLastError.
21089 (gdk_win32_api_failed) OTOH, this function always calls
21090 GetLastError. (gdk_win32_last_error_string) Remove this function,
21091 GLib has the equivalent now.
21093 * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
21094 call them with function name, file name and line number in the
21097 * gdk/win32/*.c: Use the new macros for reporting errors from GDI
21100 * gtk/gtk.def: Add some missing entry points.
21102 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21103 gtk_paned_set_gutter_size, which don't exist any longer, as void.
21105 Fixes by Hans Breuer:
21107 * gdk/makefile.msc: Update for debugging.
21109 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
21110 implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
21111 PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
21114 * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
21117 * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
21119 * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
21121 2000-03-04 Tor Lillqvist <tml@iki.fi>
21123 * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
21124 just pixel value of background colour.
21126 * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
21127 containing code snippet previously duplicated in a couple of
21130 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
21131 gdk_colormap_color.
21133 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
21134 GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
21135 events for autorepeated Shift, Control and Alt keys. Use
21136 gdk_colormap_color.
21138 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
21139 pointer is inside the window the cursor of which we are setting,
21140 call SetCursor immediately.
21142 * gdk/win32/makefile.cygwin
21143 * gtk/makefile.cygwin: If we don't have the build number stamp
21146 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21147 gtk_paned_set_gutter_size as empty.
21149 * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
21151 Tue Feb 29 13:10:00 GMT 2000 Tony Gale <gale@gtk.org>
21153 * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
21154 gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
21155 docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
21156 docs/gtk_tut.sgml docs/gtk.texi TODO:
21158 Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
21160 Sat Feb 26 11:46:25 GMT 2000 Tony Gale <gale@gtk.org>
21162 * gtk/gtkcalendar.c: Implement num_marked_dates,
21163 and don't emit mutiple day_selected signals on
21166 2000-02-25 Jonathan Blandford <jrb@redhat.com>
21168 * docs/make-todo (lineno): let title and logo be configurable so
21169 that GNOME can use this script too.
21171 * TODO.xml: added logourl and a title
21173 Fri Feb 25 11:12:00 2000 Owen Taylor <otaylor@redhat.com>
21175 * TODO.xml: Added some UI items, and an explanatory
21176 comment at the top of the file.
21178 Thu Feb 24 09:07:28 2000 Tim Janik <timj@gtk.org>
21180 * TODO.xml: some updates, added abunch of new entries.
21181 a note for those fiddeling with this file, when done
21183 $ ./docs/make-todo TODO.xml >/dev/null
21184 and correct output errors before comitting changes.
21186 Wed Feb 23 22:59:50 2000 Owen Taylor <otaylor@redhat.com>
21188 * TODO.xml: Added XML-structured TODO file.
21189 * docs/make-todo: python script to turn TODO.xml into
21192 2000-02-23 Jonathan Blandford <jrb@redhat.com>
21194 * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
21195 the function to let it draw the seven dots, instead of the old,
21196 much maligned, method.
21197 (draw_dot): New function to draw a dot.
21199 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
21200 to draw the handle inside the border width as opposed to outside.
21201 Use paint function instead of gdk_draw_point.
21203 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
21204 to draw the handle inside the border width as opposed to outside.
21205 Use paint function instead of gdk_draw_point.
21207 * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
21208 Change indenting to be more GTK like.
21210 Wed Feb 23 10:54:14 GMT 2000 Tony Gale <gale@gtk.org>
21212 * docs/gtk_tut.sgml: New section on GtkCalendar
21213 * examples/calendar: Update example code
21215 Tue Feb 22 13:54:12 GMT 2000 Tony Gale <gale@gtk.org>
21217 * docs/gtkfaq.sgml: FAQ Update
21219 2000-02-19 Anders Carlsson <andersca@gnu.org>
21221 * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
21222 to prevent the scroll event to be propagated upwards.
21224 Fri Feb 18 14:37:29 2000 Owen Taylor <otaylor@redhat.com>
21226 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
21227 OwnerGrabButtonMask from button entries for
21228 GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
21230 * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
21231 to the event mask (which will result in button/press release
21232 being added to the event mask on Unix) so scrolling works
21233 for layouts in scroll windows.
21235 * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
21237 Patch from Anders Carlsson <andersca@gnu.org> to add
21240 * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
21241 scrolling to the "Test Scrolling" part of testgtk.
21243 * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
21245 * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
21246 it against GDK_SCROLL.
21248 * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
21249 way of mouse wheel scrolling.
21251 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
21253 * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
21255 * gtk/gtkmain.c: Removed previous mouse wheel hack.
21257 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
21258 gdk_event_mask_table.
21260 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added
21261 GdkEventScroll handler.
21263 * gdk/gdkevents.h: Added GdkEventScroll structure.
21265 Thu Feb 17 17:10:12 2000 Owen Taylor <otaylor@redhat.com>
21267 * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
21268 and Anders Carlsson to change the Paned widgets so that they
21269 can be dragged from anywhere along the length. Also change
21270 the way that this is drawn to make this apparent.
21272 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
21273 from George Lebl to check that option_menu->menu is present
21274 before getting history.
21276 2000-02-14 Tor Lillqvist <tml@iki.fi>
21278 * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
21279 before the assertion for non-NULL segment list.
21281 * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
21282 Seems that pattern brushes *must* be 8x8 pixels! At least on my
21283 machine, but it might be display driver dependent. Sigh, so make
21284 sure the stipple is that size. Does Windows suck or what?
21286 * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
21289 2000-02-13 Havoc Pennington <hp@pobox.com>
21291 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
21293 (gdk_cursor_new): init refcount to 1
21295 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
21297 2000-02-13 Tor Lillqvist <tml@iki.fi>
21299 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
21300 so that we don't have to do unnecessary settings to the HDC.
21302 * gdk/win32/gdkdrawable-win32.c
21303 * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
21306 * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
21307 the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
21308 GDI paths, call WidenPath to get the outline of the stroken path,
21309 and then fill the outline (with the brush that was built from the
21312 * gdk/win32/gdkgc-win32.c: Factor out common code from
21313 _gdk_win32_gc_new and gdk_win32_gc_set_values into
21314 gdk_win32_gc_values_to_win32values. Use correct colour for
21315 SetBkColor() (Until now the code actually used a random colour in
21316 the call to SetBkColor()... but that didn't show up as not many
21317 GDI APIs use the background colour. Pattern (opaque stippled)
21320 * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
21321 gdk_win32_api_failed): New functions for error logging.
21323 * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
21324 WIN32_API_FAILED to call them, passing function or file name and
21327 * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
21329 * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
21330 GdkColor for foreground and background in GdkGCWin32Data.
21332 * gdk/makefile.cygwin: Link in the resource object separately.
21334 * gdk/win32/rc/gdk.rc
21335 * gtk/gtk.rc (New file)
21336 * gdk/win32/makefile.cygwin
21337 * gtk/makefile.cygwin: Update build number in DLLs automatically,
21340 Sun Feb 13 08:54:45 2000 Tim Janik <timj@gtk.org>
21342 * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
21343 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
21344 * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
21345 * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
21346 parameters given and cursor->ref_count. coding style fixups.
21348 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21351 * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
21352 fix up widget macros and add _GET_CLASS() variant.
21354 * gtk/*.c: some GtkType fixups.
21356 2000-02-09 Tor Lillqvist <tml@iki.fi>
21358 * gdk/win32/gdkproperty-win32.c
21359 * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
21362 2000-02-04 Tor Lillqvist <tml@iki.fi>
21364 * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
21365 g_filename_to_utf8 to convert the font names Windows gives us from
21366 whatever is the default codepage to UTF-8.
21367 (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
21368 in the other direction.
21370 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
21371 error in debugging output.
21373 2000-02-02 Tor Lillqvist <tml@iki.fi>
21375 * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
21376 and height parameters to gdk_window_clear_area(). Not minus one.
21378 Wed Feb 2 11:58:05 2000 Owen Taylor <otaylor@redhat.com>
21380 * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
21381 checks if the widget passed to gtk_drag_get_data() was not the
21384 2000-02-01 Tor Lillqvist <tml@iki.fi>
21386 * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
21387 g_filename_from_utf8 functions (which were added a moment ago to
21388 GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
21391 gtk_file_selection_get_filename returns the filename in the C
21392 runtime encoding. It calls g_filename_from_utf8, but copies the
21393 returned string to a static buffer, which is returned. I think
21394 this is better than returning the result from g_filename_from_utf8
21395 directly, which would mean all apps that use it would have to free
21396 the return value. Or should this function care about this issue at
21397 all? Maybe a new function with clearly defined semantics.
21399 * gtk/gtkfilesel.h: Add comment about
21400 gtk_file_selection_get_filename returning the filename in the C
21401 runtime's encoding.
21405 * gdk/makefile.{cygwin,msc}
21406 * gtk/gtk.def: Updates.
21408 * gdk/gdkcursor-win32.c: Initialise refcount.
21410 2000-01-31 Yuan-Chung Cheng <platin@linux.org.tw>
21412 * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
21414 2000-01-30 Havoc Pennington <hp@pobox.com>
21416 * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
21419 * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
21421 * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
21422 implemented in platform-specific code
21424 * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
21426 * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
21427 underscore in front
21429 * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
21430 put an underscore in front
21432 * gdk/gdkcursor.c: new file, implements
21433 gdk_cursor_ref/gdk_cursor_unref
21435 * gdk/gdkcursor.h: Refcount GdkCursor
21437 * gdk/gdkcompat.h (gdk_cursor_destroy): compat
21439 2000-01-29 Tor Lillqvist <tml@iki.fi>
21442 * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
21444 Tue Jan 25 11:43:21 2000 Owen Taylor <otaylor@redhat.com>
21446 * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
21447 structures to properly inherit from GtkWidget not GtkBin.
21449 Sun Jan 23 20:28:24 2000 Owen Taylor <otaylor@redhat.com>
21451 * gtk+.spec.in: Added lib/gtk+/include/* to %files
21452 (bug #5178 - Peter Wainright)
21454 * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
21455 so that it will be installed.
21456 (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
21458 Fri Jan 21 16:29:28 2000 Owen Taylor <otaylor@redhat.com>
21460 * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
21461 for the GtkStyleClass vtable const.
21463 * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
21464 take a const string argument like GtkTranslateFunc. This will
21465 require changes in use code.
21467 2000-01-19 Tor Lillqvist <tml@iki.fi>
21469 * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
21470 semantics (to mimic the X11 backend, which just calls XClearArea)
21471 is to check for zero width (and height), and in that case use the
21472 window's width minus x (height minus y). This fixes for instance
21473 some redraw problems with gtkclist, which were easily noticeable
21474 in the gtk file selection widget.
21476 (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
21479 2000-01-13 Tor Lillqvist <tml@iki.fi>
21483 * gdk/x11/Makefile.am
21484 * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
21486 * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
21489 2000-01-09 Tor Lillqvist <tml@iki.fi>
21491 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
21492 WM_MOVE for iconified or invisible windows. This fixes various
21493 problems when minimising windows. Thanks to Bernd Herd.
21495 2000-01-05 Tor Lillqvist <tml@iki.fi>
21497 * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
21498 backend's draw_lines method, not draw_points.
21500 2000-01-02 Tor Lillqvist <tml@iki.fi>
21502 * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
21503 before Owen's reorganisation: Don't have queued_events and
21504 queued_tail statics in this file, but use gdk_queued_events and
21505 gdk_queued_tail. This makes exposure event compression work again.
21507 (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
21510 1999-12-30 Tor Lillqvist <tml@iki.fi>
21512 * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
21513 gdkkeysyms.h to get the GDK_* keysym constants that are needed by
21514 gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
21515 doesn't do anything.
21517 * gdk/gdk.def: Add gdk_xid_table_insert.
21519 * gdk/win32/gdkprivate-win32.h
21520 * gdk/win32/gdkevents-win32.c
21521 * gdk/win32/gdkinput-win32.c
21523 * gdk/win32/gdkwindow-win32.c: Remove the superfluous
21524 extension_events field in the GdkWindowWin32Data struct. Use only
21525 the extension_events field in GdkWindowPrivate. Previously one was
21526 set, and the other one tested, which broke tablet
21527 functionality. Thanks to Keishi Suenaga for pointing this out.
21529 1999-12-18 Tor Lillqvist <tml@iki.fi>
21531 * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
21532 When handling a single character (text length == 1), don't handle
21533 it as if it was UTF-8.
21535 1999-12-11 Tor Lillqvist <tml@iki.fi>
21537 * Makefile.am: Distribute README.win32.
21540 * gdk/win32/Makefile.am: Distribute Win32 files.
21542 * gdk/makefile.msc: New file.
21544 * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
21547 * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
21548 gdk_error_code as GDKVAR, as they are referred outside GDK.
21550 * gdk/win32/makefile.msc: Update.
21552 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
21553 tweaks. Check only if at least one of those Unicode subrange bits
21554 we care for is set. If no code page bits are set, guess (wildly)
21555 based on the charset.
21557 * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
21559 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
21565 * gtk/gtkselection.c
21567 * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
21568 appropriate. There must be a cleaner way to handle this?
21570 * gtk/gtkrc.c: Must include windows.h on Win32.
21572 * gtk/testgtk.c: No need to include gdkx.h.
21574 * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
21576 1999-12-07 Tor Lillqvist <tml@iki.fi>
21578 * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
21579 the rbearing is set to the same as the width, but this should be
21582 1999-12-06 Tor Lillqvist <tml@iki.fi>
21584 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
21585 function. If Windows doesn't tell us what Unicode subranges a font
21586 covers, guesstimate based on the codepages it covers. This will
21587 hopefully help those Windows versions or fonts that don't give us
21588 any useful Unicode subrange information with GetTextCharsetInfo.
21589 Call this function in gdk_font_load_internal.
21591 * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
21594 Fri Dec 3 14:09:50 1999 Owen Taylor <otaylor@redhat.com>
21596 * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
21597 New function, long needed.
21599 Wed Dec 1 22:35:43 1999 Owen Taylor <otaylor@redhat.com>
21601 * gdk/gdkproperty.h x11/gdkproperty.c: Change
21602 only_if_exists argument of gdk_atom_intern to
21605 1999-11-25 Tor Lillqvist <tml@iki.fi>
21607 * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin):
21608 Fix two copy&paste errors.
21610 * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
21613 * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
21614 GdkWin32SingleFont struct.
21616 * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
21617 subranges of loaded fonts. Clear font signature first, in case
21618 GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
21619 ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
21621 * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
21622 Unoffset clip region.
21624 1999-11-23 Tor Lillqvist <tml@iki.fi>
21626 * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
21627 event->any.window before calling filter functions.
21629 Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
21631 * gtk/gtkgamma.h: Adapt cast macros to standard.
21633 [ Merges from 1.2 ]
21635 Tue Nov 16 10:15:54 1999 Owen Taylor <otaylor@redhat.com>
21637 * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
21638 If translation does not include a '/', use entire
21639 translation instead of crashing.
21641 Sun Oct 31 22:21:11 1999 Tim Janik <timj@gtk.org>
21643 * docs/gtk_tut.sgml:
21644 s/gtk_accel_group_attach/gtk_window_add_accel_group/.
21646 Sat Oct 30 09:09:09 1999 Owen Taylor <otaylor@redhat.com>
21648 * gtk/gtkselection.c (gtk_target_list_remove): Use
21649 g_list_remove_link, not g_list_remove.
21651 [ From Geert Bevin <gbevin@thunderstorms.org> ]
21653 Sun Oct 24 07:41:40 1999 Tim Janik <timj@gtk.org>
21655 * gtk/gtkclist.c (real_undo_selection): commented out g_print()
21656 statement upon unselection (how the heck did that slip in?).
21658 Sat Oct 23 03:03:08 1999 Tim Janik <timj@gtk.org>
21660 * gtk/gtktext.c (gtk_text_freeze):
21661 (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
21662 in frozen state (and aparently crashes). patch provided by Anders
21663 Melchiorsen <and@kampsax.dtu.dk>.
21665 Sat Oct 23 02:53:20 1999 Tim Janik <timj@gtk.org>
21667 * fix insensitive default/focus widget activation,
21668 reported by Matt Goodall <mgg@isotek.co.uk>.
21670 * gtk/gtkwindow.c (gtk_window_key_press_event):
21671 (gtk_window_activate_default):
21672 (gtk_window_activate_focus):
21673 return handled=FALSE for actiavtion of insensitive default
21674 widgets. return handled=TRUE for activation of insensitive
21675 focus widgets. don't activate in either case.
21677 Tue Oct 19 09:55:08 1999 Owen Taylor <otaylor@redhat.com>
21679 * gtk-config.in (lib_gtk): Switch order of @x_cflags@
21680 and $glib_cflags to match library order and in the
21681 theory that an old version of GLib is more likely to
21682 be in the include directory for X then vice-versa.
21685 Tue Oct 19 09:46:49 1999 Owen Taylor <otaylor@redhat.com>
21687 * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE
21688 to determine the locale for fontsets, not LC_MESSAGES;
21689 the user may want English messages with a handling
21690 for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
21691 will still be broken) (Bug #2891)
21693 Tue Oct 19 20:36:42 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
21695 * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
21697 Tue Oct 19 12:15:13 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
21699 * gtk/gtkrc.ko: Changed the Korean default fontset.
21701 Fri Oct 8 02:32:47 1999 Owen Taylor <otaylor@redhat.com>
21703 * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
21704 where when scrolling to the left or top double exposes
21705 were done, causing major slowdowns.
21707 Thu Oct 7 18:31:55 1999 Owen Taylor <otaylor@redhat.com>
21709 * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
21710 names to lowercase and alphanumeric, before looking
21713 * gtk/Makefile.am: Install codeset variant gtkrc files
21714 with normalized names.
21716 Thu Oct 7 22:52:42 1999 Tim Janik <timj@gtk.org>
21718 * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
21719 popup menus when the menu is already visible, but its parent
21720 is still hidden, (happens after tornoff window got hidden).
21722 Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
21724 * gtk/Makefile.am (install-data-local): Fix
21725 a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
21726 deleted, causing error messages on install.
21728 Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
21730 * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
21731 the handle as well, since we now sometimes ignore
21732 exposes on the handle while resizing.
21734 Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
21736 * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
21737 extra g_free introduced in one of the last one or two
21740 Wed Oct 6 16:38:36 1999 Owen Taylor <otaylor@redhat.com>
21742 * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
21743 consistent, put each style that a gtkrc.* file creates
21744 in a unique namespace, remove old files before installing.
21746 Wed Oct 6 14:31:16 1999 Owen Taylor <otaylor@redhat.com>
21748 * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
21749 gtk_rc_init is called multiple times. (Yes, people who
21750 do that have bugs in their code.)
21752 Tue Oct 5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
21754 * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
21755 Remove it since it's generated by the Makefile anyway
21757 Tue Oct 5 02:43:41 1999 Owen Taylor <otaylor@redhat.com>
21759 * gdk/gdkinputcommon.h (gdk_input_device_new): Free
21760 device->info.axes for core pointer.
21762 Thu Sep 30 13:55:25 1999 Owen Taylor <otaylor@redhat.com>
21764 * gtk/testgtk.c (destroy_idle_test): Rename idle to
21765 idle_id, to deal with obsolete, broken C libraries.
21767 Mon Sep 27 02:50:15 1999 Owen Taylor <otaylor@redhat.com>
21769 * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
21770 allocation->x/y twice!
21772 * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
21773 consistent with gtk_vscale_pos_trough().
21775 Sun Sep 26 19:44:34 1999 Owen Taylor <otaylor@redhat.com>
21777 * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
21778 be queueing a resize on a toplevel container between
21779 the time we show it and when we map it. So, we need
21780 to test GTK_WIDGET_VISIBLE() for toplevels, and only
21781 use GTK_WIDGET_DRAWABLE() for child windows.
21783 Thu Sep 23 16:41:03 1999 Owen Taylor <otaylor@redhat.com>
21785 * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS
21788 Fri Sep 24 00:51:45 1999 Tim Janik <timj@gtk.org>
21790 * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
21791 container DRAWABLE (instead of VISIBLE), so we don't queue
21792 resizes on non-toplevel containers.
21794 Sun Sep 19 18:13:31 1999 Owen Taylor <otaylor@redhat.com>
21796 * gtk/gtkselection.[ch]: Make the data argument
21799 Sat Sep 18 21:27:40 1999 Owen Taylor <otaylor@redhat.com>
21801 * gtk/gtkwindow.c: Try to behave sensibly if
21802 the focus widget is the window itself. (Should
21803 we allow this at all?)
21805 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
21807 * gtk/gtkwidget.c (gtk_widget_set_sensitive):
21808 * gtk/gtknotebook.c (gtk_notebook_set_scrollable):
21809 * gtk/gtknotebook.c (gtk_notebook_set_show_border):
21810 * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
21811 in prototypes and implementations consistent (Tomas Ogren).
21813 * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
21814 before the widget is unparented (reported by damon).
21816 * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
21817 since we provide unsigned data anyways.
21819 Thu Sep 16 21:32:01 1999 Owen Taylor <otaylor@redhat.com>
21821 * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
21822 the call to gtk_tooltips_layout_text() until later.
21824 * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
21825 Call gtk_widget_ensure_style() before using the style.
21827 Wed Sep 15 02:52:19 1999 Owen Taylor <otaylor@redhat.com>
21829 * gtk/gtkwidget.c (gtk_widget_event): Added workaround
21830 for old widgets that don't propagate draws to all
21831 children. (Namely gnome-dock for gnome-libs <= 1.0.16)
21833 Tue Sep 14 19:22:19 1999 Tim Janik <timj@gtk.org>
21835 * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
21836 for a redraw but just the widget that requested the resize.
21838 Tue Sep 14 18:29:47 1999 Tim Janik <timj@gtk.org>
21840 * gtk/gtkcontainer.c: added new widget level method
21841 gtk_container_set_reallocate_redraws() and a GtkContainer flag
21842 reallocate_redraws : 1 to reflect the setting, exported this through
21843 the argument system as a boolean ::reallocate_redraws.
21845 * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
21846 on the widget because the allocation changes, do so as well for
21847 widget->parent if the parent has reallocate_redraws set to TRUE.
21848 with that containers requesting reallocation redraws get automatically
21849 redrawn if their children changed allocation (this unfortunately
21850 affects also other children that didn't change allocation, but we
21851 cannot work around that before 1.3).
21853 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
21855 * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
21856 _and_ height are >0 (not _or_).
21858 * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
21859 instead of gtk_container_queue_resize(), which is a core gtk internal
21860 function (must have been on crack when i queued that).
21862 * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
21863 we can check more reliably if we want to discard expose events.
21864 * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
21867 * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
21868 we simply trust these events. for deciding whether to discard exposes,
21869 check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
21871 Mon Sep 13 15:01:21 1999 Owen Taylor <otaylor@redhat.com>
21873 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21874 queues of areas that are completely off screen.
21876 * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
21877 logic for handleboxes.
21879 * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
21880 check on width/height.
21882 Mon Sep 13 02:22:47 1999 Tim Janik <timj@gtk.org>
21884 * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
21885 we are fine with using $@ the way we do (if we actually encounter
21886 brokeness with $@ in VPATH builds because of additional path prefixes,
21887 we need to use $(@F) actually).
21889 Mon Sep 13 01:34:53 1999 Tim Janik <timj@gtk.org>
21891 * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
21892 short lived bugs, that would allow language bindings to do surgeries
21895 Fri Sep 10 15:22:50 1999 Owen Taylor <otaylor@redhat.com>
21897 * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
21898 where comparison was being done against an uninitialized
21899 value causing intermittant results depending on
21900 compiler flags. Also make it clearer that we aren't
21901 ever initializing the child as 0x0 (though this will
21902 be caught in gtk_widget_size_allocate())
21904 Fri Sep 10 10:06:56 1999 Owen Taylor <otaylor@redhat.com>
21906 * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
21907 gtk_window_unset_transient_for() call after we do checks
21908 involving the old transient parent.
21909 [ From Lance Capser <lmc@cyberhighway.net> ]
21911 1999-09-07 Raja R Harinath <harinath@cs.umn.edu>
21913 * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
21916 Mon Sep 6 00:11:56 1999 Lars Hamann <lars@gtk.org>
21918 * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
21919 no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
21921 1999-09-03 Raja R Harinath <harinath@cs.umn.edu>
21923 * gtk/Makefile.am (gen_sources): Improve VPATH builds.
21924 `$@' is valid only in the build dir, not after we've done
21925 `cd $srcdir'. Also use `test -f' instead of less portable
21928 Fri Sep 3 15:59:56 1999 Owen Taylor <otaylor@redhat.com>
21930 * gtk/gtktext.c (correct_cache_insert): Rewrite
21931 for simplicity, and hopefully correctness.
21932 (Fixes bug #1322, which was a segfault when
21933 on some insertions with the properties around
21934 the insertion set up just wrong.)
21936 * gtk/gtktext.c (gtk_text_adjustment): When we receive
21937 a "changed" signal, clamp the new value to the adjustment
21938 bounds to avoid segfaulting if someone tries to change
21939 the adjustment to a bogus value. (Bug #1795)
21941 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
21943 * gtk/gtkmain.c: Ignore unexpected destroy notifies
21944 for children, for toplevel windows handle them
21947 * gtk/gtkplug.c: Add an unrealize handler so that
21948 we unref plug->socket_window when we are done
21951 Fri Sep 3 14:52:54 1999 Owen Taylor <otaylor@redhat.com>
21953 * gtk/gtktext.c (clear_area): Fix stupid signedness
21954 problem that was causing background to sometimes
21957 Fri Sep 3 12:26:33 1999 Owen Taylor <otaylor@redhat.com>
21959 [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
21961 * gtk/gtkmenu.c (gtk_menu_position): Make
21962 sure we never position menus with negative x, y,
21963 since gtk_widget_set_uposition() can't handle that.
21965 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
21966 Modify the positioning code a bit so that we always
21967 put the top-left corner onscreen. (This is for
21968 UI reasons, gtk_menu_position() now takes care of
21969 gtk_widet_set_uposition() brokeness.)
21971 Fri Sep 3 03:06:30 1999 Tim Janik <timj@gtk.org>
21973 * gtk/Makefile.am: fixed up things for -jx, x > 1.
21975 Sun Sep 5 08:48:51 1999 Owen Taylor <otaylor@redhat.com>
21977 * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
21978 RC style that is passed in. The lack of the ref
21979 before was a bug. If people worked around this
21980 bug, this will introduce a slight memory leak
21981 in their code. The code should typically look like:
21983 rc_style = gtk_rc_style_new ();
21985 gtk_widget_modify_style (widget, rc_style);
21986 gtk_rc_style_unref (rc_style);
21988 * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
21989 the style if it was already set.
21991 * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
21992 style if it was set before.
21994 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
21996 * gtk/testgtk.c (main): Add a check to see if we
21997 are being run from the correct directory and
21998 to quit nicely if we are not.
22000 * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
22003 Thu Sep 2 23:00:03 1999 Tim Janik <timj@gtk.org>
22005 * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
22008 queue resizes unconditionally (gtk_widget_queue_resize will figure
22009 what to do if the window is not realized).
22010 (gtk_window_move_resize): only recenter the window
22011 for GTK_WIN_POS_CENTER_ALWAYS.
22012 (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
22013 the same way as GTK_WIN_POS_CENTER.
22015 Thu Sep 2 22:39:27 1999 Tim Janik <timj@gtk.org>
22017 * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
22018 with (!(info->last_flags & GDK_HINT_POS)) instead of
22019 (!info->last_flags & GDK_HINT_POS).
22021 * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
22022 new_height unconditionally, because we use these values even if
22023 !default_size_changed && !hints_changed.
22024 comented the (default_size_changed || hints_changed) case with
22025 respect to resize rejects from the window manager.
22027 * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
22028 in the zvt condition hack, since this includes the window hints, set
22029 the hints after the handling_resize case.
22031 * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
22032 window is initially shown with to the geometry.
22034 Thu Sep 2 07:38:56 1999 Tim Janik <timj@gtk.org>
22036 * gtk/gtkwindow.c (gtk_window_move_resize):
22037 s/size_changed/default_size_changed/g so i know what's
22038 really going on (frying brain on smaller flame now).
22040 Thu Sep 2 05:47:47 1999 Tim Janik <timj@gtk.org>
22042 * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
22043 we have size_changed upon handling_resize. this is a gross
22044 workaround for the broken zvt widget and should be removed in
22045 1.3 again (search for FIXME).
22046 Owen provided an accurate comment for this:
22048 /* We could be here for two reasons
22049 * 1) We coincidentally got a resize while handling
22051 * 2) Our computation of size_changed was completely
22052 * screwed up, probably because one of our children
22053 * is broken. It's probably a zvt widget.
22055 * For 1), we could just go ahead and ask for the
22056 * new size right now, but doing that for 2)
22057 * might well be fighting the user (and can even
22058 * trigger a loop). Since we really don't want to
22059 * do that, we requeue a resize in hopes that
22060 * by the time it gets handled, the child has seen
22061 * the light and is willing to go along with the
22062 * new size. (this happens for the zvt widget, since
22063 * the size_allocate() above will have stored the
22064 * requisition corresponding to the new size in the
22067 * This doesn't buy us anything for 1), but it shouldn't
22068 * hurt us too badly, since it is what would have
22069 * happened if we had gotten the configure event before
22070 * the new size had been set.
22073 Wed Sep 1 20:46:11 1999 Owen Taylor <otaylor@redhat.com>
22075 * gtk/gtkrc.c: deal properly with the fact that RC
22076 style lists may include rc styles more than once.
22078 * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
22079 unused static function.
22081 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
22082 stack of directories of RC files currently being
22083 parsed and implicitely add them to pixmap path.
22085 This fixes a bug where the directory would get
22086 appended then overwritten by pixmap_path declarations.
22088 (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
22090 * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
22091 theme's exit function. (Patch from Peter Wainwright,
22094 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
22095 Add a destroy() handler to take care of removing
22096 group for menu item. (Fixes bug #1197)
22098 * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
22099 in warning message.
22101 Wed Sep 1 21:27:42 1999 Tim Janik <timj@gtk.org>
22103 * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
22104 roundtrip to figure window's width and height, since we know that
22105 anyways from widget->allocation.
22107 Wed Sep 1 12:37:44 1999 Owen Taylor <otaylor@redhat.com>
22109 * gtk/gtkwindow.c (gtk_window_move_resize): Compute
22110 the hints after we request the new size.
22112 Wed Sep 1 10:38:37 1999 Owen Taylor <otaylor@redhat.com>
22114 * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
22115 GTK_WIDGET_REALIZED() assertion - we can compute the
22116 hints before we are realized.
22118 * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
22119 hint changing so that we have a value of hints_changed
22120 when we decide whether to constrain the window size.
22122 * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
22124 * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
22125 change back to G_MAXINT.
22127 Wed Sep 1 06:54:59 1999 Tim Janik <timj@gtk.org>
22129 * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
22130 new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
22131 contain uncluttered values.
22132 (gtk_window_compute_hints): simply assert that window is realized
22133 and that geometry_info is valid, since we rely on this anyways.
22134 (gtk_window_constrain_size): major cleanups to the code.
22135 if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
22136 for the base size, instead of the minimums. use 32767 as max width
22137 and height (like in gtkwindow.c) instead of G_MAXINT.
22139 Wed Sep 1 04:41:25 1999 Tim Janik <timj@gtk.org>
22141 * cleaned up the GtkContainer.need_resize flag handling mess, we
22142 only need to force resize requests when we were prematurely
22143 realized, or our widget tree was modified when we were temporarily
22144 hidden. handling these cases directly upon showing the window (i.e.
22145 while the GdkWindow is still unmapped) avoids the need to wait for
22146 a configure event response and therefore makes the GUI more snappier
22147 and avoids blank windows during the roundtrip.
22151 (gtk_widget_show): don't queue resizes on toplevels, they know how
22152 to deal with matters.
22154 * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
22155 flag directly for not visible resize containers and spare us unecessary
22159 (gtk_window_realize): if we need to enforce premature size allocation,
22160 queue a container resize so we are correctly resized later on.
22162 (gtk_window_size_request):
22163 don't freak around with the ->need_resize flag,
22164 gtk_container_queue_resize() will care about that.
22166 handle initial resizing issues here, we can handle matters better in
22167 this place, especially since we know that our GdkWindow is still
22169 (gtk_window_move_resize):
22170 don't care about ->need_resize at all.
22171 handle size changes properly that occoured while we waited for a
22174 Tue Aug 31 15:58:46 1999 Owen Taylor <otaylor@redhat.com>
22176 * gtk/gtkwidget.c (gtk_widget_set_uposition):
22177 * gtk/gtkwindow.[hc] (gtk_window_reposition):
22178 Move the hint setting code from gtk_widget_set_uposition
22179 to here; set the hints so that we respect any previously
22180 set geometry hints.
22182 * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
22183 change the window hints here or move the window here,
22184 let that happen in gtk_window_move_resize().
22186 Tue Aug 31 06:58:52 1999 Tim Janik <timj@gtk.org>
22188 * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
22189 to already queued resizes (and therefore redraws) on a widget, check
22190 its anchestry as well.
22192 * gtk/gtkcontainer.c:
22193 (gtk_container_queue_resize): clear resize widgets for resize
22194 containers before aborting prematurely. this is especially important
22195 for toplevels which may need imemdiate processing or their resize
22196 handler to be queued.
22197 (gtk_container_dequeue_resize_handler): added new internal function for
22200 * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
22201 configure event, take possible changes in window position into account
22203 if we request a new window size, queue up a resize handler that will
22204 last until the configure event response arrives.
22205 combined the ->need_resize case (initial show) with the general size
22206 (hints) changed case and added even more comments.
22207 if !auto_shrink, only revert to the old allocation if the new size
22208 is smaller than the current allocation.
22210 Tue Aug 31 11:55:20 1999 Owen Taylor <otaylor@redhat.com>
22212 * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
22213 gtk_window_set_geometry_hints
22214 gtk_window_set_default_size):
22215 When hints are set, queue a resize so that the hints will
22216 be eventually reset on the toplevel.
22218 * gtk/gtkwindow.c (gtk_window_show): Use
22219 gtk_window_compute_default_size(). Clear the need_resize flag
22220 on the initail map so that we don't unnecessarily trigger the
22223 * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
22224 into separate functions. Compare the hints we are setting
22225 with what we set last time so that we can accurately
22226 tell when we need to reset the hints.
22228 * gtk/gtkwindow.c (gtk_window_compute_default_size): New
22229 function to figure out the size from requisition
22232 * gtk/gtkwindow.c (gtk_window_constrain_size): Function
22233 from fvwm to constrain a size to the geometry hints.
22235 * gtk/gtkwindow.c (gtk_window_compare_hints): New function
22236 to compare two sets of geometry hints.
22238 * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
22239 from gtk_window_set_hints(), just compute the hints,
22242 * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
22243 code from gtk_window_move_resize() to separate function,
22246 Tue Aug 31 13:05:03 1999 Owen Taylor <otaylor@redhat.com>
22248 * gtkrc.h: Move the ref_count member out of the GtkRcStyle
22249 structure into a new private structure.
22251 * gtkrc.c: Split GtkRcStyle into public/private.
22252 In the private part, add a list of pointers to the
22253 RcStyle lists this RcStyle participates in.
22255 * gtkrc.c: When a RcStyle is free, remove all
22256 lists referencing it from the
22257 realized_style_ht hash, and free those lists.
22259 * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
22260 gtk_rc_init(), since that adds the default styles
22261 to the list of parsed RC files again.
22263 * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
22265 Thu Aug 26 14:14:42 1999 Tim Janik <timj@gtk.org>
22267 * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
22268 checks that ensure that a widget's allocation is at least 1 in width
22269 and height. (GNOME note: this doesn't affect old panel code anymore,
22270 because GtkSocket will request width and height of at least 1 since
22273 * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
22274 allocated yet (happens if the user realizes the window prematurely),
22275 size request and allocate it.
22276 (gtk_window_size_allocate): guard against guint underflows.
22278 Wed Aug 25 19:01:36 1999 Lars Hamann <lars@gtk.org>
22280 * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
22281 in gtk_built_sources, so gtk.defs gets built prior to all other
22284 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
22287 invoke indent on gtkmarshal.*.
22288 rewrote source generation rules, use COPYING as oldest source tag for
22289 a piggyback rule to generate all sources from (don't touch it ;).
22290 major cleanups, strip spaces on build rules for GNU Make.
22292 * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
22293 source and target files from commandline arguments. don't invoke indent.
22295 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
22297 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
22298 notebook after switch to avoid drawing problems.
22299 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
22301 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
22303 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
22305 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
22307 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
22308 notebook after switch to avoid drawing problems.
22309 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
22311 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
22313 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
22315 Wed Aug 18 09:20:10 1999 Tim Janik <timj@gtk.org>
22318 we use window->need_resize from configure_event now, to indicate that
22319 the gtkwindow should keep its allocation (e.g. because the user resized
22320 the window through window manager handles). resize_count is now reliably
22321 used to figure whether we got the allocation we requested from the
22323 configure events get queued as resizes now, the real stuff (size
22324 computation and allocation) now only goes on in gtk_window_move_resize().
22325 GtkWindow's requisition now contains its *real* requisition (like all
22326 other widgets), *not* taking usize into account.
22327 geometry_info->last_{width|height} is now updated from set_hints() only
22328 so it always contains the last hints we set for the window manager.
22329 made some event handlers return TRUE instead of FALSE.
22330 the overall code should be much more straight forward now, and the
22331 significant code portions are accompanied by comments now.
22332 (gtk_window_set_hints):
22333 removed requisition argument and made it
22334 fetch the requisition through gtk_widget_get_child_requisition.
22335 we also don't move the gdkwindow here anymore, gtk_window_move_resize()
22338 ensure that the widget is realized before calling
22339 gtk_container_check_resize() (and thus gtk_window_move_resize()), also
22340 ensure that we got properly size requested and allocated before
22342 (gtk_window_configure_event):
22343 ignore plain window moves, or reallocate the widget tree through the
22344 resize queue otherwise.
22345 (gtk_window_move_resize):
22346 mostly rewrote this function to figure window manager hints more
22347 reliably, coalesce window moves and resizes to reduce configure events
22348 and do actuall size allocations.
22350 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
22352 * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
22353 that have a resize pending, because a redraw is already queued for them.
22355 * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
22356 hack to clear resize_widgets.
22358 * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
22359 for resize containers prior to size allocation. (this is also a bit
22360 ugly, but avoids side effects for stopped emissions and is thus more
22362 (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
22364 * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
22365 function from gtk_tooltips_expose, as we connect to ::expose_event
22368 1999-08-18 Federico Mena Quintero <federico@redhat.com>
22370 * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
22372 (gtk_target_list_unref): Likewise.
22374 * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
22376 Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com>
22378 * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
22379 guard against division by zero. (Fixes bug #1339)
22381 Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com>
22383 * gtk/gtkentry.c (gtk_move_{forward,backward}_word):
22384 Prevent the trivial leak of information of allowing
22385 word motion when the entry is not visible.
22387 Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com>
22389 * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
22390 modality to error dialog as well as confirmation dialogs.
22391 (Bug #1803, reported by Rosanna Wing Sze Yuen)
22393 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
22395 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
22397 (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
22399 * gtk/Makefile.am (install-data-local): Solaris apparently
22400 has various troubles with ln -f; use rm first instead.
22401 (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
22403 1999-07-30 Raja R Harinath <harinath@cs.umn.edu>
22405 * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
22406 use `cp' followed by `rm' (the `rm' was already there).
22408 July 30, 1999 Elliot Lee <sopwith@redhat.com>
22410 * configure.in: Fix autoconf warnings about cross compilation by
22411 trying to provide sane defaults for AC_TRY_RUN.
22412 * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
22413 put them into $(srcdir) when generated. Also add a dependency of
22414 gtksignal.h on gtkmarshal.h for -j builds.
22415 * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
22417 Wed Jul 28 09:29:19 1999 Owen Taylor <otaylor@redhat.com>
22419 * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
22420 GDK_THREADS_{LEAVE,ENTER} pair.
22421 (From Paul Fisher <pnfisher@redhat.com>)
22423 Fri Jul 23 01:00:15 1999 Tim Janik <timj@gtk.org>
22425 * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
22426 width and height are always >0 (owen).
22428 Fri Jul 23 00:00:47 1999 Tim Janik <timj@gtk.org>
22430 * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
22431 change that assured that a widget's allocated with and height are
22432 always >1, since this breaks *buggy* panel code. unfortunately this
22433 back-breaks the gimp's color selector.
22435 * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
22436 allocation is always >0 in width and height, before sending the
22437 configure event; this is a *gross* hack to get the gimp back to work.
22439 * marked both cases with TODO-1.3
22441 Wed Jul 21 15:47:39 1999 Owen Taylor <otaylor@redhat.com>
22443 * gtk/gtktext.c: Don't display wrap indicators when
22444 text is not editable and word wrap is on.
22446 Wed Jul 21 08:21:40 1999 Tim Janik <timj@gtk.org>
22448 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
22449 option menus here as they are not derived from menu shell, assure that
22450 the option menu has a menu we can add items to.
22452 Tue Jul 20 23:29:48 1999 Tim Janik <timj@gtk.org>
22454 * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
22455 width/height to (gint) before calculations and check against < 0 to
22456 avoid guint wraparounds.
22458 Sun Jul 18 00:35:49 1999 Tim Janik <timj@gtk.org>
22460 * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
22461 width and height is never zero. sanity check both dimensions against
22462 32767 and issue a warning if the allocation is greater than that.
22464 Wed Jul 7 15:03:30 1999 Owen Taylor <otaylor@redhat.com>
22466 * gtk/gtkmain.c (gtk_events_pending): Unlock around call
22467 to g_main_pending() as well.
22469 Wed Jul 7 14:59:01 1999 Owen Taylor <otaylor@redhat.com>
22471 * gtk/gtkmain.c (gtk_main_iteration): Unlock around
22472 call to g_main_iteration() - since that will regrab
22473 GTK+ lock to process events.
22475 Thu Jul 1 15:01:55 1999 Owen Taylor <otaylor@redhat.com>
22478 - Regularize with the rest of GTK+ by making widget->requisition
22479 not reflect the set_usize()
22480 - Always recompute geometry hints, then check if they
22481 changed before sending them to the X server. The
22482 previous checks for changes would fail in a number
22485 Thu Jul 1 11:55:59 1999 Owen Taylor <otaylor@redhat.com>
22487 * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
22489 Wed Jun 30 19:26:36 1999 Owen Taylor <otaylor@redhat.com>
22493 - Instantaneously update on modifier key presses
22494 - Allow cancellation of the drag with Escape.
22496 Tue Jun 29 17:04:09 1999 Owen Taylor <otaylor@redhat.com>
22498 * gtk/testgtk.c (create_handle_box): Set the policy
22499 to auto_shrink - otherwise the appearance is rather
22500 strange when flipping between horizontal and vertical.
22502 Mon Jun 28 09:29:52 1999 Tim Janik <timj@gtk.org>
22504 * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
22505 (gtk_window_set_default_size): don't change a value if it's < 0.
22508 Sun Jun 27 11:00:33 1999 Tim Janik <timj@gtk.org>
22510 * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
22512 Mon Jun 28 12:08:25 1999 Owen Taylor <otaylor@redhat.com>
22514 * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
22515 add an extra "/" when concating "/" + filename.
22516 (From Matt Grossman <mattg@oz.net>)
22518 Mon Jun 28 10:57:12 1999 Owen Taylor <otaylor@redhat.com>
22520 * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
22521 for fg_gc if we set it for drawing pixmap.
22523 Tue Jun 15 12:45:12 1999 Owen Taylor <otaylor@redhat.com>
22525 Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
22527 * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
22528 already set, call old engine's destroy function and
22529 unref the old engine.
22531 Thu Jun 10 17:59:38 1999 Tim Janik <timj@gtk.org>
22533 * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
22535 Wed Jun 9 15:13:16 1999 Tim Janik <timj@gtk.org>
22537 * gtk/gtkaccelgroup.h: mark certain functions as internal.
22539 Wed Jun 9 13:48:28 1999 Tim Janik <timj@gtk.org>
22541 * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
22542 expand behaviour changed.
22544 * gtk/gtklabel.c (gtk_label_set_pattern):
22545 (gtk_label_set_justify):
22546 (gtk_label_set_line_wrap):
22547 don't bother invoking queue_clear, the reallocation does
22548 that for us, always free_words so the upcoming resize will
22549 relayout the label's contents.
22551 Wed Jun 9 12:50:48 1999 Tim Janik <timj@gtk.org>
22553 * applied argument implementation patches from Elena Devdariani
22556 * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
22557 ::space_style, ::relief
22558 * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
22559 * gtk/gtkpreview.c: ::expand
22560 * gtk/gtkpaned.c: ::handle_size, ::gutter_size
22561 * gtk/gtknotebook.c: ::homogeneous
22562 * gtk/gtklabel.c: ::wrap
22563 * gtk/gtklist.c: ::selection_mode
22564 * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
22565 * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
22566 * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
22567 * gtk/gtkclist.c: ::sort_type
22568 * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
22569 * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
22571 Tue Jun 1 23:38:38 1999 Owen Taylor <otaylor@redhat.com>
22573 * gtk/gtkstyle.c: Removed ill-thought-out part of last
22576 Tue Jun 1 23:30:09 1999 Owen Taylor <otaylor@redhat.com>
22578 * gtk/gtkstyle.c (gtk_style_attach): Get the reference
22579 counting right when we have to attach a new style
22580 for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
22582 * gtk/gtkstyle.c: Documented the refcounting
22583 peculularities of gtk_style_attach.
22585 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
22587 * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
22590 * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
22591 of GTK_TOPLEVEL for creating the window.
22593 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
22595 * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
22596 the last argument (reported by Per Winkvist).
22598 Tue May 25 13:13:12 1999 Owen Taylor <otaylor@redhat.com>
22600 Fixes for invisible XOR lines (Frank Loemker
22601 <floemker@TechFak.Uni-Bielefeld.DE>)
22603 * gtk/gtkclist.c (gtk_clist_realize): Always use
22604 a non-zero pixel for GDK_XOR.
22606 * gtk/gtkvpaned.c gtk/gtkhpaned.c:
22607 Use GDK_INVERT instead of GDK_XOR.
22609 Wed May 12 21:56:40 1999 Lars Hamann <lars@gtk.org>
22611 * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
22612 signals if h/voffsets differ from adjustment values.
22613 Reportet by Jerome Bolliet <bolliet@in2p3.fr>
22615 Mon May 10 04:20:41 1999 Tim Janik <timj@gtk.org>
22617 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
22618 ::selection-done emissions up to the topmost menu shell.
22620 Fri May 7 10:15:14 1999 Owen Taylor <otaylor@redhat.com>
22622 * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
22623 the user data on the window before destroying it.
22625 * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
22626 unrealize handler to take care of destroying
22627 notebook->panel properly.
22628 (Bug #1198 - Morten Welinder <terra@diku.dk>)
22630 * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
22631 of g_new and g_realloc to stop memory leak. (Actually,
22632 we could just use g_realloc(), but I'm not 100% sure
22634 (Bug #1196 - Morten Welinder <terra@diku.dk>)
22636 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
22638 * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
22640 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
22643 * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
22644 with bin/button confusion.
22646 Thu May 6 04:53:26 1999 Tim Janik <timj@gtk.org>
22648 * gtk/testgtk.c: in the ItemFactory test, link radio items together,
22649 and show how preselection of radio items is done.
22651 Sun May 2 13:31:14 1999 Tim Janik <timj@gtk.org>
22653 * gtk/gtktreeitem.c (gtk_tree_item_set_subtree):
22654 * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
22655 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
22656 * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
22657 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add):
22658 * gtk/gtktable.c (gtk_table_attach):
22659 * gtk/gtklist.c (gtk_list_insert_items):
22660 * gtk/gtkmenushell.c (gtk_menu_shell_insert):
22661 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu):
22662 * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add):
22663 * gtk/gtkbin.c (gtk_bin_add):
22664 * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end):
22665 * gtk/gtkfixed.c (gtk_fixed_put):
22666 * gtk/gtklayout.c (gtk_layout_put):
22667 general fixups to container_add logic. always realize child if
22668 child->parent is realized, only map the child and queue a resize
22669 if child and child->parent are both visible.
22671 Fri Apr 30 09:02:28 1999 Tim Janik <timj@gtk.org>
22673 * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
22674 instead of gtk_container_foreach to walk and unrealize children, so
22675 composite children get also unrealized.
22676 (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
22677 (gtk_widget_map): assert that the widget is visible (basic constrain).
22678 (gtk_widget_real_map): assert that the widget is realized (basic
22681 Fri Apr 29 00:53:20 1999 Tim Janik <timj@gtk.org>
22683 * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
22685 Tue May 4 09:32:08 1999 Owen Taylor <otaylor@redhat.com>
22687 * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
22688 file for iso-8859-2 locales.
22690 * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
22692 Tue Apr 27 16:38:32 1999 Owen Taylor <otaylor@redhat.com>
22694 * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
22695 (Pointed out by andy@rz.uni-karlsruhe.de and others).
22696 Remove some suspicious and useless lines.
22698 Tue May 4 08:44:08 1999 Owen Taylor <otaylor@redhat.com>
22700 * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use
22701 width,height = 0, 0 to mean - here to edge of window,
22702 instead of -1, -1, since the former is all we support.
22704 Tue May 4 08:34:43 1999 Owen Taylor <otaylor@redhat.com>
22706 * gtk/gtkmain.c (gtk_main): Correctly free list nodes
22707 when removing from quit_functions list.
22709 Tue Apr 27 14:17:16 1999 Tim Janik <timj@gtk.org>
22711 * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
22713 Tue Apr 27 18:23:35 1999 Owen Taylor <otaylor@redhat.com>
22715 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
22716 When redrawing characters on non-visible entry, use appropriate
22717 '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
22719 Tue Apr 27 01:31:40 1999 Lars Hamann <lars@gtk.org>
22721 * gtk/gtkclist.c (drag_dest_cell): compute destination cell
22722 from drag coordinates.
22723 (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
22724 use drag_dest_cell.
22726 * gtk/gtktree (drag_dest_cell)
22727 (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
22730 Wed Apr 21 21:26:11 1999 Tim Janik <timj@gtk.org>
22732 * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
22733 translate_* fields.
22734 (gtk_item_factory_finalize): invoke translate_notify independant from
22736 (gtk_item_factory_set_translate_func): likewise.
22737 (gtk_item_factory_destroy): only remove ifactory pointer from those
22738 widgets that belong to us (stupid me).
22740 Mon Apr 19 12:05:31 1999 Owen Taylor <otaylor@redhat.com>
22742 * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
22743 rc_style list when lookup succeeeds.
22745 Thu Apr 15 01:11:24 1999 Lars Hamann <lars@gtk.org>
22747 * gtk/gtkctree.c (resync_selection):
22748 * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
22749 * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
22752 Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
22754 * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
22755 Add some missing GDK_THREADS_ENTER()/LEAVE around
22756 timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
22758 Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
22760 * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
22761 rather than emit_by_name.
22763 * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
22764 on the widget across multiple signal emissions.
22765 (gtk_editable_delete_text): same here.
22766 (gtk_editable_class_init): set widget_class->activate_signal after
22767 editable_signals[ACTIVATE] has been created.
22769 Wed Apr 7 22:59:47 1999 Owen Taylor <otaylor@redhat.com>
22771 * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
22772 position here prematurely -- we might not have the
22773 right ->min_position and ->max_position yet.
22775 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
22777 * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
22778 Add error traps so if the other end of the connection
22781 * gtk/gtkselection.c (gtk_selection_notify): Clean
22782 up properly when selection property retrieval fails.
22784 * gtk/gtkselection.c (gtk_selection_request): Correctly
22785 reject SelectionRequest notifies where the handler
22788 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
22790 * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
22791 when we've previously highlighted.
22793 * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
22794 emit two "drag_leave" signals for Motif drops.
22796 * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
22797 back the correct status messages when dropping from
22798 Motif onto a proxy window that is rejecting the
22801 Sat Mar 27 23:32:13 1999 Tim Janik <timj@gtk.org>
22803 * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
22804 the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
22805 to compare two argument values. added gtk_arg_to_valueloc() to set a
22806 variable from an arg through its location (pointer).
22808 * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
22809 gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
22810 as gfloat*, uchars are collected as guchar*, ints are collected as
22813 Mon Mar 29 17:45:47 1999 Owen Taylor <otaylor@redhat.com>
22815 * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
22816 Include <string.h> instead of <strings.h>.
22818 * gtk/gtkstyle.c: Fix double include of gtkthemes.h
22819 (actually, a lot more duplicate includes occur if
22820 you trace through the sequence of #include's)
22821 gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
22823 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
22825 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
22826 gtk-a-higuti-990322-[0-3]
22828 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
22829 that was causing -DX_LOCALE not to work.
22831 * gtk/gtkrc.c (gtk_rc_init):
22832 X_LOCALE will never have LC_MESSAGES defined
22834 Thu Mar 25 12:38:31 1999 Tim Janik <timj@gtk.org>
22836 * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
22837 g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
22839 * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
22840 left/right as well (gtk-michael-980726-0.patch.gz).
22842 * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
22843 for pointer values, use gchar instead of char. fixed uline allocation
22844 leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
22845 chunks instead of G_ALLOC_ONLY.
22846 (gtk_label_size_request): always alter requisition as passed and leave
22847 widget->requisition alone.
22848 (gtk_label_set_text): allow NULL strings.
22849 (gtk_label_new): likewise.
22851 Wed Mar 24 09:24:03 1999 Tim Janik <timj@gtk.org>
22853 * gtk/gtkdrawingarea.[hc]: type/macro fixups.
22855 Mon Mar 22 05:51:34 1999 Tim Janik <timj@gtk.org>
22857 * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
22858 *and* mapped (i.e. drawable).
22859 (gtk_bin_expose): only send exposes to drawable children.
22861 * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
22862 (gtk_box_expose): only send exposes to drawable children.
22864 * gtk/gtkhscale.c (gtk_hscale_draw):
22865 * gtk/gtkvscale.c (gtk_vscale_draw):
22866 hm, this is an ugly one. we first compute the size of our trough area
22867 here (window relative) and then check intersection with the draw_area
22868 which is parent relative because we're a NO_WINDOW widget, so we need
22869 to offset the trough area by allocation.x and allocation.y before the
22870 check. (this must not be done for the background area though, since
22871 that's already computed parent relative).
22873 Mon Mar 22 00:41:39 1999 Lars Hamann <lars@gtk.org>
22875 * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
22876 unrealize title buttons.
22878 Fri Mar 19 00:00:22 1999 Lars Hamann <lars@gtk.org>
22880 * gtk/gtkclist.c (gtk_clist_column_title_passive)
22881 (gtk_clist_column_title_active):
22882 only connect/disconnect to GtkWidgetClass::event to block mouse events.
22884 * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout):
22885 zero initialize event, removed superfluous gdk_window_get_pointer call
22887 * gtk/gtklist.c (gtk_list_vertical_timeout)
22888 (gtk_list_horizontal_timeout): removed superfluous
22889 gdk_window_get_pointer call
22891 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
22893 * plugging problems reported by "Bruce Mitchener, Jr."
22894 <bruce@puremagic.com> due to a purify session.
22898 (gtk_style_unref): assert ref_count to be > 0.
22900 * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
22902 (gtk_clist_set_shift): likewise.
22904 * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
22907 * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
22908 event before sending it and set send_event to TRUE (which needs to
22909 be done for *all* synthesized events).
22910 (gtk_list_vertical_timeout): likewise.
22912 * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
22915 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
22916 to TRUE when synthesizing events.
22918 [ *** end of merges from 1.2 *** ]
22920 1999-11-21 Tor Lillqvist <tml@iki.fi>
22922 * gdk/gdkconfig.h: Remove, as this is a file generated by configure
22923 (or copied from gdkconfig.h.win32 on Win32, sigh).
22925 * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
22927 * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
22929 * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
22931 * gdk/gdkconfig.h.win32: New file.
22933 * gdk/win32/makefile.cygwin: Build just a static archive here.
22935 * gdk/makefile.cygwin: New file. Get the win32-specific stuff
22936 for the DLL from the static archive built above.
22938 * gdk/gdk.def: Moved here from the win32 subdirectory.
22940 * gdk/win32/*: Adapt for the changed private struct organisation.
22942 * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
22944 Sun Nov 21 16:44:35 1999 Stefan Jeske <stefan@gtk.org>
22946 * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support
22947 for wheel mice (buttons 4 and 5).
22949 1999-11-18 Tor Lillqvist <tml@iki.fi>
22951 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
22952 drawables use just the pixel field in the foreground and
22953 background GdkColor of the GdkGC.
22955 gdk_gc_set_{fore,back}ground() are called in the GIMP with
22956 GdkColors containing uninitialized (red,green,blue) fields, and
22957 just the pixel field filled in, and furthermore in the
22958 visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
22959 It thus turns out that we really don't need to have the full
22960 GdkColor for fg and bg in GdkGCWin32Data after all. Will change
22961 it later to have just the pixel values.
22963 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
22965 * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
22967 Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
22969 * docs/gtkfaq.sgml: threads example from Erik Mouw.
22970 New question on GtkLabel background colors.
22972 * docs/gtk_tut.sgml:
22973 - Correct the example code callback
22974 function definitions.
22975 - Update the gtkdial example code, from Frans van Schaik.
22976 - Update setselection.c to current API.
22978 * examples/Makefile examples/*/*.c: Update to code
22979 listed in tutorial.
22981 1999-11-10 Tor Lillqvist <tml@iki.fi>
22983 * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
22984 subrange table (from the "Developing International Software for
22985 WIndows 95 and Windows NT" book) was missing the Hangul syllable
22986 block... Get the loaded font's charset correctly.
22988 (Note that this, and the other *-win32.c files, still really are
22989 the old ones, the win32 subdirectory is not ready for compilation
22990 yet after the reorg.)
22992 Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
22994 * gtk/gtkclist.c: Fix off-by-one bug in parameter
22997 Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
22999 * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
23000 on results of XQueryDeviceState().
23002 Mon Nov 8 16:40:43 1999 Owen Taylor <otaylor@redhat.com>
23004 * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
23005 we need to accesss only ->children. We need an accessor
23008 * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
23009 DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
23010 to get rid of gdkx.h include.
23012 * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
23013 and random references to 'None'.
23015 * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
23016 Get rid of unused #include <gdk/gdkx.h>
23018 * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
23019 gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
23022 1999-11-08 Tor Lillqvist <tml@iki.fi>
23024 * gdk/win32/gdkdraw.c
23025 * gdk/win32/gdkfont.c
23026 * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
23027 following yesterday's changes. (Unrelated to Owen's reorg.)
23029 Mon Nov 8 16:18:25 1999 Owen Taylor <otaylor@redhat.com>
23031 * gdk/x11/gdkinput-gxi.c: Add missing include,
23032 fix GdkWindowPrivate => GdkDrawablePrivate.
23034 * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
23036 * gdk/x11/Makefile.am (xinput_sources): Add missing
23037 backslash to fix building with --with-xinput=none
23039 Mon Nov 8 14:47:04 1999 Owen Taylor <otaylor@redhat.com>
23041 Move all X specific code into the x11/ directory.
23042 Aside from shuffling things around, did the following:
23044 * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
23045 gdk_arg_context_* - a simple argument parsing system
23046 in the style of popt.
23048 * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
23049 gdk/x11/gdkprivate-x11.h:
23050 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
23051 add ->klass and ->klass_data fields. The klass_data
23052 field points to an auxilliary structure that is
23053 windowing system dependent.
23055 * gdk/gdkfont.c: Make most of the measurement functions
23056 simply wrappers around gdk_text_extents().
23058 * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
23059 _gdk_font_strlen() function that hides the weird
23060 behavior in gtk+-1.[02] where a string is interpreted
23061 differently for 8-bit and 16-bit fonts.
23063 * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
23064 to store common code for synthesizing double/triple
23067 * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
23068 Make all the function that modify an existing GC
23069 simply wrappers around gdk_gc_set_values().
23071 * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
23072 for throwing out later.
23074 * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
23075 GdkImagePrivate and GdkColormapPrivate to have a
23076 windowing system dependent part (GdkFontPrivateX etc.)
23077 that "derives" from the system-independent part.
23079 * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
23080 Got rid of the included-source-files for XInput in
23081 favor of automake conditionals. (Which didn't exist
23082 when XInput support was originally added.)
23084 * gdk/gdkrgb.c: Remove the visual id from the debugging
23085 statements since that is X11 specific; print out
23086 type/depth info instead.
23089 Wed Nov 3 18:14:49 1999 Owen Taylor <otaylor@redhat.com>
23091 * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
23092 loading duplicates of hashed fonts.
23094 * gdk/gdk.c (gdk_keysym_convert_case): rename
23095 gdk_XConvertCase to gdk_keysym_convert_case, allow
23096 results to be NULL in the GTK+ style.
23098 * gdk/gdkcompat.h: Started compatibility header
23101 1999-11-07 Tor Lillqvist <tml@iki.fi>
23103 * gdk/win32/gdkprivate.h: New font private structures, related to
23106 * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
23107 gdk_font_list_free(). On X11, will just be wrappers to
23108 XListFonts() and XFreeFontNames(). On Win32, the code previously
23109 in gtkfontsel.c is now here.
23111 New function gdk_font_xlfd_create(). On X11 will get the FONT
23112 property of the font (for GDK_FONT_FONTs), or call
23113 XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
23114 builds a XLFD style name from the font information in the LOGFONT
23117 New function gdk_font_xlfd_free(), which correspondingly frees the
23118 string returned by gdk_font_xlfd_create().
23120 Implement fontsets on Win32. Add a function that iterates over a
23121 wide char string and calls a callback function for each substring
23122 of wide chars from the same Unicode subrange (and thus probably
23123 available in the same real font).
23125 Improve the XLFD emulation a bit.
23127 * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
23129 * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
23130 Beta3, WM_IME_CHAR messages don't seem to contain the composed
23131 multi-byte char as with the Active IMM on Win9x. Oh well, handle
23132 WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
23133 ImmGetCompositionStringW() to get the composed Unicode chars.
23135 * gdk/win32/gdkgc.c
23136 * gdk/win32/gdkdraw.c: Changes needed because of the font private
23139 * gdk/win32/gdk.def: Add the new functions.
23141 1999-11-04 Tor Lillqvist <tml@iki.fi>
23143 * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
23144 get the Platform SDK to get <dimm.h>.
23146 * gdk/win32/gdkevents.c: More event handling fixes and
23147 simplification. Never generate motion events with is_hint true. We
23148 used to do that on bogus grounds earlier. Windows sends
23149 WM_MOUSEMOVE messages on button events even if the mouse hasn't
23150 moved, ignore these.
23152 * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
23154 * gdk/win32/gdkglobals.c
23155 * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
23156 the TrackMouseEvent function, and use it.
23158 * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
23159 char before calling WideCharToMultiByte in order to get a string
23160 for the window title.
23162 * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
23164 * gdk/win32/gdk.def: Remove obsolete functions.
23166 * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
23167 /nodefaultlib and /defaultlib switches.
23169 * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
23171 1999-10-31 Tor Lillqvist <tml@iki.fi>
23173 * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
23176 * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
23177 same type as GdkWChar, especially on Win32.
23179 * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
23181 * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
23182 before passing to Windows GDI for drawing etc. Convert to the
23183 system default codepage before passing to Windows as window
23186 * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
23187 support changing input locale on the fly.
23189 * gdk/win32/gdkevent.c: Support input language (keyboard locale)
23190 on-the-fly changes. Convert incoming characters from the current
23191 codepage to Unicode (and then to a UTF-8 multi-byte string) based
23192 on the current input language. Use keysym<->Unicode mapping tables
23193 and functions borrowed from xterm sources.
23195 Support IMEs (Input Method Editors) for CJK languages. On non-CJK
23196 editions of Win9x, use the ActiveX-based Active IMM (Input Method
23197 Manager) if available. IMEs and the Active IMM are available under
23198 the disguise of Chinese, Korean and Japanese support for IE and
23199 Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
23200 support is present in all editions (as long as you install it).
23202 Call DispatchMessage from gdk_events_queue() (and thus
23203 gdk_WindowProc()), instead of duplicating the code in
23206 Reworked the grab handling and propagation code, factored out
23207 duplicated code snippets into separate functions. Other cleanups,
23210 * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
23211 the <dimm.h> header describing the Active IMM.
23213 * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
23214 just do the same as for "single" fonts.
23216 * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
23217 gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
23218 the new keysyms from gdkkeysyms.h.
23220 * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
23221 fontset, so that gtkentry uses wide characters.
23223 * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
23224 GTk+'s system directory "gtk+", not "gtk".
23226 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
23228 * docs/gtkfaq.sgml: FAQ update
23230 1999-10-21 Tor Lillqvist <tml@iki.fi>
23232 * gdk/win32/gdkprivate.h: Add more font private data.
23234 * gdk/win32/gdkfont.c
23235 * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
23236 fonts and strings. Now works much better. You still have to
23237 have a correct font selected, though. No fontset emulation yet.
23239 1999-10-19 Tor Lillqvist <tml@iki.fi>
23241 * gtk/maketypes.awk: Use G_OS_WIN32.
23243 * gtk/gtk.def: Add some missing entry points. Also some non-public
23244 ones, but PyGTK porter claims to need them.
23246 * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
23247 built-in type generation.
23249 1999-10-14 Tor Lillqvist <tml@iki.fi>
23251 * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
23252 GDK_FONT_FONT fonts (which is all we have for now, we don't
23253 emulate fontsets). The X11 version uses plain XDrawString in that
23254 case, too. The string passed to gdk_draw_text_wc seems to be in
23255 fact (at least, when used by gtkentry and gtktext) either in a
23256 single-byte charset, or a DBCS. Not Unicode.
23258 This fixes the problem in gtkfontsel, where even if you had
23259 selected a font with a non-Latin1 charset (windows-greek, for
23260 instance), the preview still used Latin-1 glyphs.
23262 * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
23263 use GetTextExtentPoint32W, use GetTextExtentPoint32A.
23264 (gdk_font_load): Recognize the demibold etc weights, even if we
23265 don't have the corresponding constants in the headers.
23266 (gdk_font_hash_insert): Use same hash mechanism as in the X11
23267 version. Should save font resources a bit, when we don't have
23268 multiple HFONTs for the same font.
23270 * gdk/win32/gdkprivate.h: Add the names field as in the X11
23273 1999-10-11 ERDI Gergo <cactus@cactus.rulez.org>
23275 * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
23278 1999-10-09 ERDI Gergo <cactus@cactus.rulez.org>
23280 * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
23281 layout support (as mentioned on
23282 http://www.jcinteractive.com/gnome-ui/software/widgets/)
23284 Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
23287 * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
23289 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
23291 * configure.in (ALL_LINGUAS): Added Galician (gl)
23293 1999-10-05 Tor Lillqvist <tml@iki.fi>
23295 * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
23297 * gdk/win32/gdkcompat.c: New file, actually provide an
23298 implementation for the deprecated functions. (Just temporarily.)
23300 * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
23302 * gtk/makefile.{cygwin,msc}: Update gdk_headers.
23304 * gdk/win32/gdk.def gtk/gtk.def: Updates.
23306 1999-10-05 Kjartan Maraas <kmaraas@online.no>
23308 * configure.in: Added "uk" to ALL_LINGUAS.
23310 Mon Oct 4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
23312 * configure.in: correct checking for BeOS check
23317 * gtk/gtkitemfactory.c
23319 * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
23321 Mon Oct 4 16:16:53 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23323 * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
23324 encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
23325 languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
23328 Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com>
23330 * gtk/gtkwidget.c (gtk_reset_shapes_recurse):
23331 Fix a reference to window_private->destroyed.
23333 * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
23334 (ugly) setting of an internal GdkWindow member to use
23335 a _slightly_ cleaner macro.
23337 * gdk/gdkprivate.h: Split GdkWindowPrivate into
23338 GdkDrawablePrivate and GdkWindowPrivate.
23339 Add extra macros for accessing GDK_DRAWABLE_ components.
23341 * *.[ch]: Massive adjustments for the above, use the
23342 new macros in a lot of places.
23344 Sun Oct 3 15:16:24 1999 Owen Taylor <otaylor@redhat.com>
23346 * gdk/gdktypes.h: Make GdkDrawable the base type,
23349 Sun Oct 3 15:08:44 1999 Owen Taylor <otaylor@redhat.com>
23351 * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
23353 Sun Oct 3 14:26:15 1999 Owen Taylor <otaylor@redhat.com>
23355 * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
23357 Sun Oct 3 14:16:23 1999 Owen Taylor <otaylor@redhat.com>
23359 * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
23360 gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
23362 * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
23364 * docs/gtk-config.1: Now autogenerated.
23365 * docs/Changes-1.4.txt: started
23367 1999-10-03 Tor Lillqvist <tml@iki.fi>
23369 * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
23370 to #ifdef also here.
23372 * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
23373 Owen did to the X11 backend.
23375 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
23376 ScrollWindowEx when blitting inside a window, it can't be correct
23377 in the general case.
23379 * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
23380 WM_GETMINMAXINFO is easier.
23382 * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
23383 depth equal to the bitspixel value, not the visual's depth.
23385 * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
23386 to 24 even if the bitspixel value is 32.
23388 * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
23389 need to check for depth==32 when bpp==32, depth will always be 24.
23391 Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com>
23393 * docs/Changes-1.4.txt: Started
23395 * gtk/Makefile.am (gdk_headers): Include all the new headers.
23397 * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
23399 * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
23402 * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
23403 header to gdkinputprivate.h.
23405 * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
23406 unused since before 1.2.
23408 1999-09-30 Tor Lillqvist <tml@iki.fi>
23410 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
23411 expand possible hex escapes in the font family (put there by
23412 logfont_to_xlfd if the font name isn't a legal XLFD font family,
23413 mainly if it contains slashes). (gtk_font_selection_create_xlfd):
23414 On Win32, add hex escapes here, too.
23416 Wed Sep 29 19:55:35 1999 Owen Taylor <otaylor@redhat.com>
23418 * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
23419 to #ifdef GDK_WINDOWING_X11.
23421 [ Merges from gtk-1-2 ]
23423 Wed Sep 8 07:13:29 1999 Tim Janik <timj@gtk.org>
23425 * configure.in: fixed "GNU Make" check to pass with new make version
23428 Fri Sep 3 16:04:41 1999 Tim Janik <timj@gtk.org>
23430 * gtk-config.in (--version): don't echo @GTK_VERSION@, but
23431 @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
23432 AM_PATH_GTK() macros don't get confused by the -pre1.
23434 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
23436 * configure.in (REBUILD): Change check for perl5
23437 to check explicitely for v >= 5.002. (5.001
23438 does not work with our scripts.)
23440 Wed Aug 25 15:45:46 1999 Tim Janik <timj@gtk.org>
23442 * configure.in: evaluate $PERL for the perl version check. added
23443 --disable-rebuilds to give the user an option to completely disable
23444 any source autogeneration rules.
23446 Mon Aug 23 23:16:14 1999 Tim Janik <timj@gtk.org>
23448 * configure.in: evaluate $ac_make when checking for GNU Make.
23450 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
23452 * docs/Makefile.am: added generation.txt.
23454 * Makefile.am: require automake 1.4, build README from README.in and
23455 INSTALL from INSTALL.in in dist-hook.
23458 * INSTALL.in: new files to autogenerate README and INSTALL from.
23460 * configure.in: figure whether we have GNU Make
23462 * docs/generation.txt: minor additions/corrections.
23464 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
23466 * docs/gtkfaq.sgml: FAQ Update
23468 July 30, 1999 Elliot Lee <sopwith@redhat.com>
23470 * configure.in: Fix autoconf warnings about cross compilation by
23471 trying to provide sane defaults for AC_TRY_RUN.
23473 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
23476 * ltmain.sh: upgrade to libtool 1.3.3
23478 Thu Jul 8 11:30:18 1999 Owen Taylor <otaylor@redhat.com>
23480 * INSTALL: Indicate that the --with-glib= configure
23481 time flag is unsupported.
23483 Mon Jul 5 20:36:03 1999 Owen Taylor <otaylor@redhat.com>
23485 * docs/generation.txt: Added a file that gives
23486 documenation about the autogeneration process for
23487 various autogenerated files.
23489 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
23491 * configure.in (LIBS): Look for libgmodule in the
23494 Thu Jun 17 13:57:31 1999 Owen Taylor <otaylor@redhat.com>
23496 * docs/gtk_tut.sgml: Removed references to
23497 code examples in my directory on gtk.org as
23498 they should all be in the tutorial now.
23500 * docs/gtk_tut.sgml: Added sources for dial-test
23501 and scribble-xinput programs that were previously
23504 Fri Jun 4 00:08:59 1999 Owen Taylor <otaylor@redhat.com>
23506 * TODO: Added entry about menu keyboard navigation, removed
23507 some finished items.
23509 Mon May 31 00:11:24 1999 Owen Taylor <otaylor@redhat.com>
23511 * acinclude.m4: Standardize on func_dgettext
23512 not func_gettext, so that the checks for dgettext
23513 actually are paid attention to.
23515 Wed May 5 10:47:54 1999 Owen Taylor <otaylor@redhat.com>
23517 * configure.in (LIBS): Add $INTLLIBS into $LIBS
23518 directly, rather than repeating the checks for
23521 * INSTALL: Added information about gettext and
23524 * acinclude.m4 (LIBM): Check for dgettext, not
23525 just gettext. This should hopefully fix things wrt
23526 systems with old versions of GNU gettext installed.
23528 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
23530 * configure.in (LIBS): Look for libgmodule in the
23533 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23535 * autogen.sh: add --enable-maintainer-mode
23537 * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
23539 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
23541 * docs/gtk-config.1.in:
23543 configure.in: gtk-config is now generated.
23545 * docs/gtk-config.1: Removed, now generated.
23547 Thu Sep 23 17:59:59 1999 Tim Janik <timj@gtk.org>
23549 * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
23550 handle CreateNotify itself, still put out a debuging message for
23551 --gdk-debug=events. made the ReparentNotify debugging message more
23553 wrap xcoords translation for ConfigureEvents into an error trap,
23554 a destroy event may already be pending, and in that case, the
23555 actuall coordinate values are not at all critical.
23557 Sat Sep 18 22:24:15 1999 Owen Taylor <otaylor@redhat.com>
23559 * gdk/gdkcc.c: Stop leaking the color_hash all over
23560 the place. Simplify and improve the logic.
23562 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
23564 * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
23565 for prototypes and function implementations consistent (reported
23568 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
23570 * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
23571 send_event set in debugging output.
23572 (gdk_compress_exposures): default initialize the event so we don't
23573 operate on bogus values (namely send_event).
23575 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
23577 * gdk/gdkwindow.c: When we receive an unexpected
23578 destroy notify on one of our windows, don't just
23579 warn about it, also mark our windows as destroyed.
23581 Sun Sep 5 08:10:53 1999 Owen Taylor <otaylor@redhat.com>
23583 * gdk/gdkfont.c (gdk_font_hash_insert): Add
23584 name => font and name => fontset hashes. The
23585 name => fontset hash is a _big_ win since we
23586 weren't previously caching fontsets at all and loading
23587 fontsets is expensive. The name => font hash
23588 is less of a win, but it does save us from doing
23589 repeated XQueryFont calls on the same font.
23591 * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
23592 list so we can remove font/fontset from hash.
23594 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
23596 * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
23597 and slightly confusing test. [ XInternAtom (,,TRUE)
23598 will never return None ].
23600 Sat Sep 4 08:39:26 1999 Owen Taylor <otaylor@redhat.com>
23602 * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
23603 gdk/gdkwindow.c (gdk_window_set_hints):
23605 Don't omit setting the properties if flags == 0 -
23606 there may be an existing set of properties there
23607 already. (Very old bug. Would it be better to
23608 delete the property instead?)
23610 * gdk/gdkselection.c (gdk_selection_property_get): Fix
23611 spelling error in comment.
23613 Wed Sep 1 14:05:30 1999 Owen Taylor <otaylor@redhat.com>
23615 * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
23616 to avoid stomping over gdk_error_warnings.
23618 * gdk/gdkimage.c (gdk_image_new): compute image->bpp
23619 as (bits_per_pixel + 7) / 8. This gives the same
23620 result as before for multiples of 8, but actually
23621 a "reasonable" value for 1bit or 4bit displays.
23623 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
23625 * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
23628 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
23630 * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
23631 discarding configure events.
23633 1999-08-18 Federico Mena Quintero <federico@redhat.com>
23635 * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
23636 refcount is greater than zero.
23638 * gdk/gdkwindow.c (gdk_window_unref): Likewise.
23640 * gdk/gdkfont.c (gdk_font_unref): Likewise.
23642 * gdk/gdkgc.c (gdk_gc_unref): Likewise.
23644 * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
23646 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
23648 * gdk/gdkproperty.c (gdk_property_get): Fix assumption
23649 that format 32 => sizeof(item) == 4. It really is
23652 Tue Jun 29 23:02:42 1999 Owen Taylor <otaylor@redhat.com>
23654 * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
23655 core dump at all on X IO errors, only core dump
23656 if --enable-debug for X errors.
23658 Thu Jun 24 17:06:23 1999 Tim Janik <timj@gtk.org>
23660 * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
23661 unknown window:" message. disabled ConfigureNotify discarding code,
23662 because it led to events being processed out of order.
23664 Thu Jun 24 12:22:02 1999 Tim Janik <timj@gtk.org>
23666 * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
23668 * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
23669 we export this function, supress error warnings and don't reset the
23670 error code in the first half of this function.
23672 * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
23673 code (instead of just -1) so gdk_error_trap_pop() reveals something
23674 actually informative about the error that happened.
23677 don't rely on gdk_error_code being -1 if an error occoured, but just
23678 gdk_error_code != 0.
23680 Thu Jun 24 11:50:07 1999 Tim Janik <timj@gtk.org>
23682 * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
23683 pointer *before* invoking the filter function, so we at least don't
23684 crash if a filter is removed that is currently executed. window filters
23685 *really* need to be made truely reentrant at some point.
23687 Mon Jun 14 11:10:15 1999 Tim Janik <timj@gtk.org>
23689 * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
23690 PropertyNotify debug messages.
23692 Wed May 5 22:51:06 1999 Owen Taylor <otaylor@redhat.com>
23694 Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
23696 * gdk/gdkim.c: Fix cut-and-paste errors for
23697 x/y and PreeditAttributes/StatusAttributes.
23699 Wed May 5 22:24:21 1999 Owen Taylor <otaylor@redhat.com>
23701 * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
23702 G_MAXINT to 2^16 to alleviate overflow problems in
23703 various window managers.
23705 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
23707 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
23710 Wed May 5 12:42:01 1999 Owen Taylor <otaylor@redhat.com>
23712 * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
23713 Initialize size_hints.x and size_hints.y because kwm
23714 brokenly pays attention to them.
23715 (Bug #1181 - Lars Heete <hel@admin.de>)
23717 Wed May 5 11:38:56 1999 Owen Taylor <otaylor@redhat.com>
23719 * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
23720 return value of gdk_list_visuals().
23721 (Bug #1193 - Morten Welinder <terra@diku.dk>)
23723 Tue May 4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
23725 * gdk/gdkim.c (gdk_im_real_open): cast the return value of
23726 XSetIMValues to (void *) when comparing to NULL, to workaround
23727 the problem of some compilers barfing since older X headers don't
23728 have the prototype for it.
23730 Mon Apr 19 10:11:12 1999 Owen Taylor <otaylor@redhat.com>
23732 * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
23733 for pseudocolor where colormap->colors was double
23736 * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
23737 color value in the hash table with the pixel filled
23738 in so when we do later hash table lookups, the color
23741 Sun May 2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
23743 * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
23746 Tue Apr 27 11:17:35 1999 Owen Taylor <otaylor@redhat.com>
23748 * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
23749 pointed out by Morten Welinder <terra@diku.dk>.
23751 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
23753 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23754 default filter from the list
23756 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
23758 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23759 default filter from the list
23761 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
23763 * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
23765 * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
23766 g_strdup_printf instead of calcing the length separately
23768 Tue Apr 13 02:49:33 1999 Owen Taylor <otaylor@redhat.com>
23770 * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
23771 that we don't do in many other places. (Fixing duplicate
23772 #include of config.h)
23774 * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
23775 Otherwise, #ifndef XINPUT_NONE check in the latter
23776 doesn't work. (Bug #546)
23778 Sun Apr 11 14:38:03 1999 Tim Janik <timj@gtk.org>
23780 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
23781 "None" case insensitive.
23783 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
23785 * gdk/gdkselection.c:
23786 Add error traps so if the other end of the connection
23789 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
23791 * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
23792 dest_xid field into two fields - one for the window
23793 to send in messages, one to indicate the last looked
23794 up window for caching purposes. This is needed, so
23795 that Leave messages get the correct window.
23797 Mon Apr 5 13:21:30 1999 Owen Taylor <otaylor@redhat.com>
23799 * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
23800 Fix warning created by people mucking around
23801 with the gsource API.
23803 * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
23804 Change mapping between GIOCondition and GdkInputCondition
23805 to match the way the Linux kernel does it. This should
23806 fix problems where closed pipes were no longer signalling
23807 GDK_INPUT_READ on systems with a native poll().
23809 Mon Apr 5 17:11:57 1999 Owen Taylor <otaylor@redhat.com>
23811 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
23812 explicitly for the string "None" - it is in the XPM
23813 spec and some servers treat unknown colors in odd ways
23814 (like asking the user!)
23816 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23818 * gdk/gdkevents.c: made "->" into a "." of previous change so
23821 Thu Apr 1 18:41:25 1999 Owen Taylor <otaylor@redhat.com>
23823 * gdk/gdkevents.c (gdk_compress_exposures): Set the
23824 window field of the event structure before calling
23827 1999-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
23829 * gdk/gdk.c (gdk_init_check): Use False as the last argument to
23830 XInternAtom() here. This is a particularly Old And Nasty(tm) bug.
23832 Mon Mar 29 17:31:52 1999 Owen Taylor <otaylor@redhat.com>
23834 * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
23835 intermediate text property - prevents major memory
23836 leak when gdk_use_mb.
23837 gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
23839 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
23841 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23842 gtk-a-higuti-990322-[0-3]
23844 * gdk/gdkfont.c (gdk_text_extents_wc): Make work when
23845 sizeof(wchar_t) != sizeof (GdkWChar)
23847 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23848 that was causing -DX_LOCALE not to work.
23850 * gtk/gtkrc.c (gtk_rc_init):
23851 X_LOCALE will never have LC_MESSAGES defined
23853 * gdk/gdk.c (gdk_init_check):
23854 Remove --xim-preedit and --xim-status from argv properly.
23856 * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
23857 that the client window is present on the X server
23858 before we pass it to the input method.
23860 Tue Mar 9 10:46:49 1999 Owen Taylor <otaylor@redhat.com>
23862 * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
23863 if --display is specified on the command line, than
23864 the drag window will not be created on that display.
23866 Tue Mar 9 10:38:24 1999 Owen Taylor <otaylor@redhat.com>
23868 * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
23869 lookups with only_if_exists == TRUE were inserting
23870 bogus values into the atom cache.
23872 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
23874 * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
23875 then reset it to NULL.
23879 (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
23880 key for g_hash_table_remove() in both functions, this prevents us
23881 from accessing possibly uninitialized portions of a GdkColor structure
23882 where we are only interested in its pixel value.
23884 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
23886 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
23887 font hash table, if we have a GdkFontPrivate entry for this font
23888 already, simply increment its reference count, provided by Olaf Dietsche
23889 <olaf.dietsche+list.gtk@netcologne.de>.
23891 1999-09-21 Tor Lillqvist <tml@iki.fi>
23893 * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
23896 * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
23897 unused variables, leftovers from the X11 version.
23899 * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
23901 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
23902 downcase fields on X11.
23904 Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23906 * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
23907 Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
23909 1999-09-17 Tor Lillqvist <tml@iki.fi>
23911 * gdk/win32/gdk.def: Add gdk_threads_mutex.
23913 * gtk/makefile.msc: Correct path to libintl.
23915 Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
23916 use of gint vs. int, and gint vs. gboolean in headers and
23917 definitions. Use GtkType for the *_get_type functions. Note that
23918 these changes preserve binary compatibility.
23922 * gdk/gdk.h: Fix inconsistencies: gint vs int.
23926 * gtk/gtkmenufactory.c
23927 * gtk/gtknotebook.c
23928 * gtk/gtkwidget.c: Fix inconsistencies, also gint
23931 * gtk/gtkcolorsel.[ch]
23932 * gtk/gtkcombo.[ch]
23933 * gtk/gtkdrawingarea.[ch]
23934 * gtk/gtkgamma.[ch]
23935 * gtk/gtkhandlebox.[ch]
23936 * gtk/gtkhpaned.[ch]
23937 * gtk/gtkhruler.[ch]
23939 * gtk/gtkpreview.[ch]
23940 * gtk/gtkruler.[ch]
23941 * gtk/gtksocket.[ch]
23942 * gtk/gtkstatusbar.[ch]
23943 * gtk/gtktoolbar.[ch]
23944 * gtk/gtkvbbox.[ch]
23945 * gtk/gtkvpaned.[ch]
23946 * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
23949 * gtk/gtkgamma.h: Fix bug, missing () in call of
23950 gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
23952 1999-09-14 Tor Lillqvist <tml@iki.fi>
23954 * gdk/gdkcolor.c (gdk_colormap_new)
23955 * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
23956 colormap->colors was allocated twice.
23958 * gdk/win32/gdk.c: Remove some unused stuff.
23960 * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
23963 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
23964 * gtk/gtklabel.h (gtk_label_get_type)
23965 * gtk/gtktipsquery.c (gtk_tips_query_get_type)
23966 * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
23967 in a couple of places, not guint.
23969 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23971 * configure.in,po/et.po: added Estonian language file
23973 Wed Sep 1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23975 * configure.in,po/da.po: added Danish file
23977 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
23979 * docs/gtkfaq.sgml: Minor FAQ Update
23981 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
23983 * docs/gtkfaq.sgml: FAQ update
23985 1999-08-27 Tor Lillqvist <tml@iki.fi>
23987 Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
23988 way to get window contents continually refreshed while resizing. I
23989 didn't like the effects myself, so it's not on by default.
23991 * gdk/win32/gdkprivate.h: New flag variable
23992 gdk_event_func_from_window_proc, FALSE by default.
23994 * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
23995 environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
23996 are passed --gdk-event-func-from-window-proc.
23998 * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
23999 and we have am event_func, call it instead of enqueing the event.
24001 1999-08-23 Tor Lillqvist <tml@iki.fi>
24003 * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
24004 Kelley: Set expose_count in GdkEventExposes correctly.
24006 * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
24007 MULTIPLE_WINDOW_CLASSES).
24009 * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
24010 for bug in NT, apparently NT *does* draw the end pixel, too, in
24011 LineTo with a one-pixel pen, so we don't have to do it ourselves.
24013 1999-08-21 Tor Lillqvist <tml@iki.fi>
24015 Improvements by Hans Breuer:
24017 * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
24019 * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
24020 CS_?REDRAW flags as they cause lots of (late) redraws when "show
24021 window contents while dragging" is turned on. Allocate at least
24022 one unique class for every GdkWindowType. If support for single
24023 window-specific icons is ever needed (eg. Dialog specific), every
24024 such window should get its own class.
24026 1999-08-19 Tor Lillqvist <tml@iki.fi>
24028 * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
24029 error that caused crashes.
24031 1999-08-17 Tor Lillqvist <tml@iki.fi>
24033 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
24034 window, use ScrollWindowEx, and call UpdateWindow. This prevents
24035 bugs when for instance part of the window was outside the
24036 display. Thanks to Philippe Colantoni for finding and fixing this.
24038 1999-08-16 Tor Lillqvist <tml@iki.fi>
24040 * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
24041 endpoint calculations which were totally wrong. (A little RTFMing
24044 * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
24045 from a separate directory, not from gettext, because of licensing
24046 issues (we want to use the LGPL version).
24048 * README.win32: Mention the intl from glibc vs from gettext issue.
24050 1999-08-13 Tor Lillqvist <tml@iki.fi>
24052 * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
24053 in the key event handling: Now AltGr chars work again. Also,
24054 now Alt-digits are passed up as well as Control-digits.
24055 Pass keypad plus and minus as normal plus and minus.
24057 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
24059 * docs/gtkfaq.sgml: FAQ Update
24061 1999-07-25 Tor Lillqvist <tml@iki.fi>
24064 * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
24067 * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
24068 OK, but getting closer. Guard against bogus tilt data from Wacom
24069 ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
24070 enable easier building without Wintab.
24072 * gdk/win32/gdkinput.h
24073 * gdk/win32/gdkevents.c
24074 * gdk/win32/gdkwindow.c: Minor changes related related to above.
24076 * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
24077 code. As we have just one visual on Win32, no sense to have it in a
24078 table, and no need for the hash table.
24080 * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
24081 better on white background.
24083 1999-07-21 Tor Lillqvist <tml@iki.fi>
24085 * README.win32: Update gcc build instructions. Mention gettext is
24088 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
24089 supported cursor size with GetSystemMetrics.
24091 * gdk/win32/gdkfont.c
24092 * gtk/gtkfontsel.c: Guard against some font weight and charset
24093 symbols being undefined (in mingw32 headers).
24095 * gdk/win32/makefile.cygwin
24096 * gtk/makefile.cygwin
24097 * gtk/gtkthemes.c: No longer need to have differently named
24098 gcc-built DLLs when using gcc-2.95 and -fnative-struct.
24100 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
24102 * docs/gtkfaq.sgml: Long awaited FAQ update.
24104 1999-07-15 Tor Lillqvist <tml@iki.fi>
24106 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
24107 it. Obscure bit manipulation needed.
24109 * gdk/win32/gdkevents.c: Logging.
24111 * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
24112 style (file name include compiler name) for theme engines.
24114 1999-07-13 Tor Lillqvist <tml@iki.fi>
24116 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
24118 * gdk/win32/gdkevents.c: Fix long-standing bug in key
24119 events. The key.string wasn't zero-terminated, still we strdup'ed
24120 it in gdk_event_copy(). Synthesize crossing events for button
24121 events before possible propagation.
24123 * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
24125 * gdk/win32/makefile.cygwin
24126 * gtk/makefile.cygwin: Use new DLL naming style for the
24129 * gdk/win32/makefile.msc
24130 * gtk/makefile.msc: Cosmetics mostly.
24132 * gtk/gtk.def: Add missing entry points.
24134 * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
24136 1999-07-09 Tor Lillqvist <tml@iki.fi>
24138 * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
24139 or height is zero. Don't print a warning if Pie or Arc fails, they
24140 always fail (?) for very narrow ellipses.
24142 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
24143 the part or the destination window corresponding to source area
24144 outside of the source drawable's boundary.
24146 * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
24147 anything if less than two points.
24149 * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
24150 return NULL. Gtk cut-and-paste inside a single program works
24151 better this way. (It always gets the clipboard contents from
24152 Windows, not from its own copy, which is cleared anyway. I can't
24153 say I fully understand what happens... Emulating the X selection
24154 and property stuff is a bit of a mess.)
24156 * gdk/win32/gdkevents.c
24157 * gdk/win32/gdkproperty.c: A bit more verbose logging.
24159 * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
24160 that never got deleted). Revamp gdk_region_shrink.
24162 * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
24165 * gtk/gtk.def: Add some missing entry points.
24167 * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
24170 1999-07-04 Tor Lillqvist <tml@iki.fi>
24172 * gdk/win32/gdkevents.c (gdk_event_translate): Handle
24173 Control-digits specially.
24175 1999-07-03 Tor Lillqvist <tml@iki.fi>
24177 * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
24179 1999-06-28 Tor Lillqvist <tml@iki.fi>
24181 * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
24182 bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
24185 1999-06-01 Jose H Mercado <jmercado@mit.edu>
24187 * gtk+.spec.in: Corrected some typos in files section.
24189 1999-06-15 Tor Lillqvist <tml@iki.fi>
24191 * README.win32: Mention using GNU gettext.
24192 * config.h.win32: Enable NLS stuff.
24193 * gtk/makefile.msc: Use GNU gettext.
24194 * gdk/win32/gdkdnd.c: Minor header reorg.
24195 * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
24197 * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
24198 * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
24200 Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
24206 * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
24208 1999-05-30 Tor Lillqvist <tml@iki.fi>
24210 * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
24211 SafeAdjustWindowRectEx. Don't override all calls to
24212 AdjustWindowRectEx by it, but use it only in two places: When
24213 creating a new top-level window and when moving a top-level
24216 Use screen coordinate rectangle, not client rectangle, in
24217 gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
24218 when we try to place a window so that the decoration (mainly,
24219 title bar) isn't visible.
24221 These changes fix the bug that showed up for instance as the
24222 GIMP's saved top-level windows moving right and down (by an amount
24223 equal to the window decoration) for each session. This bug showed
24224 up also in testgtk's "Saved Position".
24226 gdk_window_resize also redone a bit.
24228 1999-05-25 Tor Lillqvist <tml@iki.fi>
24230 * gtk/testgtkrc: Add (commented out) Windows-style theme
24233 * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
24235 1999-05-18 Tor Lillqvist <tml@iki.fi>
24237 * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
24238 gdkx.h to a gdk subdirectory, so that applications can include
24239 these with <gdk/*.h> without trouble.
24241 * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
24242 (gdk_image_destroy): Plug resource leak, some GdkImages didn't
24243 have their bitmap destroyed.
24245 * gdk/win32/gdk.def: Add gdk_root_parent.
24247 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
24253 gtk/Makefile.am: changes to compile nicely (with xlib)
24256 Sat May 1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
24262 * ltmain.sh: upgrade to libtool 1.3
24264 Fri Apr 30 13:38:16 1999 Lars Hamann <lars@gtk.org>
24267 * gtk/gtkctree.c: merges from gtk-1-2
24269 1999-04-25 Tor Lillqvist <tml@iki.fi>
24271 Support added for building using a GNU toolchain on Win32,
24272 gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
24274 * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
24275 * config.h.win32: Changes for gcc.
24276 * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
24277 * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
24278 * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
24279 * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
24280 Protect shl stuff unavaiilable with mingw32 headers.
24281 * gdk/win32/gdkevents.c: Fix typo.
24282 * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
24283 * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
24284 * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
24285 * gdk/win32/gdkprivate.h: Make up for some stuff missing from
24286 the mingw32 headers.
24287 * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
24288 * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
24289 definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
24290 * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
24291 Test for NATIVE_WIN32, not _MSC_VER.
24292 * gtk/gtkmain.c: No use warning about developer version on Win32,
24293 there aren't any non-developer versions anyhow.
24294 * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
24295 * gtk/makefile.msc: Use pthread from another directory. Minor other
24298 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
24300 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24301 default filter from the list
24303 Mon Mar 8 12:52:53 1999 Owen Taylor <otaylor@redhat.com>
24305 * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
24306 when gtk_widget_grab_default() is called for a widget that
24307 is not within a GtkWindow.
24309 Sat Apr 10 13:52:54 BST 1999 Tony Gale <gale@gtk.org>
24311 * docs/gtk_tut.sgml, examples/clist.c: use a
24312 scrolled window in the clist example. Minor
24315 Fri Apr 2 09:19:20 BST 1999 Tony Gale <gale@gtk.org>
24317 * docs/gtk_tut.sgml: Style check from David King
24318 <dking@youvegotmail.net>
24320 1999-03-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
24322 * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
24323 compile with unknown value of GDK_WINDOWING
24325 1999-03-28 Raja R Harinath <harinath@cs.umn.edu>
24327 * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
24328 after the rule is fired.
24329 (install-exec-local): Install gdkconfig.h only if the contents are
24330 different from the currently installed gdkconfig.h.
24332 1999-03-26 Raja R Harinath <harinath@cs.umn.edu>
24334 * gdk/Makefile.am (configexecincludedir): Rename from
24335 configincludedir so that gdkconfig.h will be installed
24336 as part of `make install-exec'.
24338 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
24344 * ltmain.sh: upgrade to libtool 1.2f
24346 * autogen.sh: libtool is not required to autogen gtk+
24348 * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
24351 1999-03-18 Tor Lillqvist <tml@iki.fi>
24353 * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
24354 declaring gdk variables exported/imported from the DLL. New image
24355 type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
24356 drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
24357 GDK_DRAG_PROTO_OLE2.
24359 * gdk/gdk.h: Merge in Win32 version: Two new functions,
24360 gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
24361 declared only for the Win32 version, but could be in the X11
24362 version as well. (Needed for a Xlib-less gdk_imlib.)
24363 gdk_color_hash should have only one parameter. Declare
24364 gdk_threads_mutex with GDKVAR.
24366 * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
24367 just one parameter.
24369 * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
24370 per pixel, not bits.
24372 * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
24373 Fetch bpp (which means bits-per-pixel here) from another place on
24374 Win32. Accept also depth==32 (which we might get on Win32) with
24377 * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
24378 gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
24379 gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
24380 Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
24381 in the backend-dependent directory, not in the common gdk
24384 * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
24387 Wed Mar 17 05:06:49 1999 Tim Janik <timj@gtk.org>
24389 * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
24390 want to use the Gtk+ devel version (which is true, and yes - even i am
24391 currently working with the 1.2.x branch). so everyone reading this, you
24392 probably want to issue
24393 cvs checkout -r glib-1-2 glib
24395 cvs checkout -r gtk-1-2 gtk+
24396 as your next two comands.
24398 Wed Mar 17 02:49:32 1999 Tim Janik <timj@gtk.org>
24400 * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
24401 gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
24403 * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
24404 file. strongly deprecated the GTK_HAVE_* macros, we provide
24405 GTK_CHECK_VERSION() for people that need to check for certain
24408 * gtk/gtkcompat.h: removed this from CVS.
24409 * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
24410 idea right from the start, it just didn't seem like that back then.
24412 Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
24414 * merges from gtk-1-2:
24416 Tue Mar 16 17:43:33 1999 Tim Janik <timj@gtk.org>
24418 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
24419 item factory class has been created.
24420 (gtk_item_factory_parse_rc): likewise.
24423 keep proper references for old_active_menu_item.
24424 (gtk_menu_reparent): unset the usize of the new parent,
24425 so the menu can sanely be size requested and we don't get nasty screen
24426 artefacts upon next reparentation.
24427 (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
24428 enter notify. only synthesize enter notifies if the pointer really is
24429 inside the event window.
24430 (gtk_menu_popdown): use gtk_menu_shell_deselect().
24431 (gtk_menu_popup): move the background setting stuff into
24432 gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
24434 * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
24435 gtk_menu_shell_select_item() to select the new item.
24436 (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
24437 do the right thing for deselection as well.
24439 Sat Mar 15 20:10:33 1999 Tim Janik <timj@gtk.org>
24441 * gtk/gtkwidget.[hc]:
24442 (gtk_widget_accelerators_locked): return whether a widget's accelerators
24445 * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
24446 existing accelerators if the widget's accelerators are locked.
24448 Sat Mar 14 19:44:05 1999 Tim Janik <timj@gtk.org>
24450 * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
24452 * gtk/gtkmenu.c: truely forward key press and key release events to
24453 the menu widget from the toplevel or tearoff window. we can't simply
24454 connect to that, we need to stop further processing of the events as
24457 Sat Mar 13 13:14:17 1999 Tim Janik <timj@gtk.org>
24460 (gtk_menu_key_press): pass event->keyval, event->state to
24461 gtk_accelerator_valid, instead of event->keyval twice.
24462 refuse to install single letter accelerators for menus that use
24463 single letter shortcuts.
24465 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
24466 gtk_menu_ensure_uline_accel_group().
24468 * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
24469 which will always return an uline accel group, made
24470 gtk_menu_get_uline_accel_group() return NULL if the group isn't
24473 Mon Mar 15 01:03:27 1999 Lars Hamann <lars@gtk.org>
24475 * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
24477 * gtk/gtkclist.c (gtk_clist_column_title_passive):
24478 Leave button sensitive, trap button_press, button_release,
24479 motion_notify, enter_notify and leave_notify events instead.
24480 (gtk_clist_column_title_active): disconnect event handler.
24481 (gtk_clist_drag_data_get): fixed memory leak. Reported by
24482 Guillaume Laurent <glaurent@worldnet.fr>
24484 Wed Mar 10 23:49:55 1999 Lars Hamann <lars@gtk.org>
24486 * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
24487 width/height mixups.
24489 * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
24492 Wed Mar 10 00:11:32 1999 Tim Janik <timj@gtk.org>
24494 * gtk/testgtk.c (create_item_factory): unref the item factory after
24495 window's destruction.
24497 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
24498 count on the menu shell around the menu item's activation, since the
24499 signal emission may cause menu shell destruction.
24501 * gtk/gtkitemfactory.c:
24502 the previous code leaked one accel group per menu. we use
24503 gtk_menu_get_uline_accel_group() now to fix that, and with that
24504 also create the underline accelerator group of the menus only if
24505 required (i.e. an underline accelerator has been specified).
24506 (gtk_item_factory_construct):
24507 (gtk_item_factory_create_item): removed code that would create an
24508 extra accel group for the menu (and leak references).
24509 (gtk_item_factory_create_item): adapted the underline accelerator
24510 installation code to properly feature gtk_menu_get_uline_accel_group().
24512 * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
24513 menu->accel_group, this may return NULL if the accelerator group
24514 hasn't been set yet.
24515 added gtk_menu_get_uline_accel_group() to retrive the underline
24516 accelerator group of the menu, this will be created on demand
24517 and proper care is taken about its reference count.
24519 * gtk/gtkitemfactory.h:
24520 * gtk/gtkitemfactory.c:
24521 dumped the approach of keeping a widgets by action list on the
24522 factory since the factory<->widget destroy negotiation didn't work
24523 and would be hard to get going at all. instead we keep a list of
24524 GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
24525 persistant throughout a program's life time).
24526 also, i removed the static const gchar *key_* variables, and made
24527 them inline strings (they weren't actually used anyways).
24528 (gtk_item_factory_add_item): update ifactory->items.
24529 (gtk_item_factory_destroy): destroy ifactory->items (and remove
24530 the item factory pointer from the remaining ifactory widgets).
24531 (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
24532 list to find the widget.
24533 (gtk_item_factory_get_item): new function that works around
24534 gtk_item_factory_get_widget() limitations, this function will only
24535 return menu items, even for <Branch> entries.
24537 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
24539 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24540 font hash table, if we have a GdkFontPrivate entry for this font
24541 already, simply increment its reference count, provided by Olaf Dietsche
24542 <olaf.dietsche+list.gtk@netcologne.de>.
24544 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24545 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24547 Sun Mar 7 06:13:29 1999 Tim Janik <timj@gtk.org>
24549 * gtk/gtkcontainer.c:
24550 (gtk_container_add_with_args):
24551 (gtk_container_addv):
24552 (gtk_container_add): before adding a child to a conatiner, make sure
24553 it is (default) constructed, this is neccessary because under certain
24554 circumstances the child will get relized and mapped immediatedly, in
24555 which case it has to be constructed already.
24557 Mon Mar 1 17:58:21 1999 Tim Janik <timj@gtk.org>
24559 * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
24560 values > 1 as TRUE also.
24562 1999-03-16 Tor Lillqvist <tml@iki.fi>
24564 * README.win32: New file.
24566 * configure.in: Check for lstat.
24568 * config.h.win32: Add non-definition of HAVE_LSTAT, just for
24571 * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
24573 * gtk/gtk.def: Removed CRs.
24575 * gtk/makefile.msc: Correct include path to Win32 GDK version (in
24578 * gdk/win32/makefile.msc: Correct upwards relative paths.
24580 Mon Mar 15 03:38:34 1999 George Lebl <jirka@5z.com>
24582 * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
24583 gtk_drag_highlight_expose and gtk_drag_highlight_paint since
24584 it was connecting a void function to expose_event and the int
24585 returning function to the draw signal
24587 1999-03-14 Jeff Garzik <jgarzik@pobox.com>
24590 Use correct path to libgmodule.la when ref'ing uninstalled copy
24591 of glib. (Already in stable branch, Bug #417)
24593 1999-03-15 Tor Lillqvist <tml@iki.fi>
24595 Win32 merge and general portability stuff:
24597 * acconfig.h,configure.in: Check for <sys/time.h>.
24599 * gdk/win32: New directory (actually, been there for a while).
24601 * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
24602 NATIVE_WIN32, and use these. Always case fold on Win32. No
24603 backslashed escapes on native Win32.
24605 * gtk/{gtk.def,makefile.msc}: New files.
24607 * gtk/Makefile.am: Add above new files.
24609 * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
24610 instead of <strings.h>.
24612 * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
24613 config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
24614 <unistd.h> appropriately.
24616 * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
24617 Use ABS() (from <glib.h>) instead of abs().
24619 * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
24620 of gtk (and thus glib) headers, so that WIN32 will be
24621 defined. With MS C, include <direct.h> for mkdir prototype.
24623 * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
24624 some casts, needed by MS C.
24626 * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
24629 * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
24630 <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>. Use
24631 G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
24633 * gtk/gtkmain.h: Mark variables for export/import on Win32.
24635 * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
24636 the event is not a hint, or its window is not the slider. Needed
24637 on Win32, at least.
24639 * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
24640 unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
24641 G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
24642 a subdirectory of the Windows directory as gtk system
24643 configuration directory.
24645 * gtk/gtkselection.c: No chunks on Win32.
24647 * gtk/gtksocket.c: Not implemented on Win32.
24649 * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
24651 * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
24653 * gtk/maketypes.awk: Declare variables with a macro that expands to
24654 necessary export/import magic in the case of Win32.
24656 * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
24658 1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
24660 * configure.in (gdk_wc): Move widechar tests from `glib' to here,
24661 since those were meant only for gdki18n.h.
24662 * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
24663 for widechar tests.
24664 * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
24666 1999-03-13 Tor Lillqvist <tml@iki.fi>
24668 * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
24669 gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
24671 * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
24672 installed) to CFLAGS.
24674 * gdk/Makefile.am: Add rules for gdkconfig.h.
24676 * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
24679 * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
24680 gdkx.h anyway when compiling for X11.
24681 (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
24682 general): Merge in Win32 version.
24684 * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
24685 version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
24686 expansion (if we don't have HAVE_PWD_H), allow for drive
24687 letters. UNC paths (\\server\share\...) are not handled yet. Also,
24688 included code from Craig Setera's port to Win32 (the one that uses
24689 X11, and the cygwin dll), even if it probably will be abandoned.
24691 * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
24692 the user entered one herself. This way one can complete *.h and
24693 don't get matches on any .help files, for instance.
24695 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
24697 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24698 font hash table, if we have a GdkFontPrivate entry for this font
24699 already, simply increment its reference count, provided by Olaf Dietsche
24700 <olaf.dietsche+list.gtk@netcologne.de>.
24702 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24703 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24705 1999-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
24707 * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
24708 the number of calls to gdk_draw_point() (and thus to X) by
24709 clipping the points by hand.
24711 * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
24712 the clip parameter.
24713 (gtk_handle_box_paint): Only paint the handle if the expose area
24716 Sun Mar 7 18:46:37 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
24718 * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
24720 Sun Mar 7 11:43:34 1999 ape@spacetec.no (Asbjorn Pettersen)
24722 * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
24723 Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
24725 Fri Mar 5 09:12:24 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
24727 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
24728 textmode (O_TEXT) for OS/2 version.
24730 Sun Feb 28 16:46:02 1999 Stefan Jeske <stefan@gtk.org>
24732 * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to
24733 GtkSpinButton, "input" and "output", to make the output more flexible.
24734 The user has to provide a mapping between adjustment->value and the
24735 output string (and vice versa, if the spin button is editable).
24736 See testgtk for examples.
24738 Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
24740 * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
24743 * configure.in: set gtk+ version to 1.3.0.