1 2002-01-14 Sven Neumann <sven@gimp.org>
3 * gtk/gtkrc.c: g_getenv() returns a const string.
5 2002-01-14 Hasbullah Bin Pit <sebol@ikhlas.com>
7 * configure.in: Added ms at ALL_LINGUAS.
8 * po/ms.po: Added Malay Translation.
10 2002-01-14 Matthias Clasen <matthiasc@poet.de>
12 * gtk/gtkitemfactory.c: Documentation.
14 2002-01-13 Sven Neumann <sven@gimp.org>
16 * gdk/gdkwindow.c: documentation cleanups.
18 Sun Jan 13 01:15:45 2002 Kristian Rietveld <kris@gtk.org>
20 * gtk/gtktreemodelsort.c: various cleanups,
21 (get_child_iter_from_elt): removed,
22 (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
23 and especially faster,
24 (gtk_tree_model_convert_iter_to_child_iter): use
25 gtk_tree_model_sort_elt_get_path
27 Sat Jan 12 16:57:31 2002 Kristian Rietveld <kris@gtk.org>
29 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
30 revert Owen's change (using a strdupped string as object data), so
31 the interactive search works again
33 2002-01-11 Havoc Pennington <hp@pobox.com>
35 * gtk/gtklabel.c: put in more links to Pango markup format docs
36 (gtk_label_set_justify): mention gtk_misc_set_alignment
38 2002-01-12 Tor Lillqvist <tml@iki.fi>
40 Fixes contributed by Archaeopteryx Software: This is a first small
41 part of their changes. Will commit more later.
43 * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
44 call fails, don't use bogus values.
46 gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
47 memory leak: g_free() the AND and XOR bitmaps after use.
48 (_gdk_cursor_destroy): If we are destroying the current Windows
49 cursor, set the Windows cursor to none first.
51 * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
52 brush that was in the DC, like the win32-procution branch does. I
53 guess this plugs a resource leak? With the HDC cache, the old
54 brush might be something we created ourselves, and not a stock
55 brush. And it doesn't do any harm to call DeleteObject on stock
58 * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
59 the window has a cursor which is the current Windows cursor,
60 before destroying it set the current Windows cursor to none.
61 (gdk_window_set_cursor): Also here, if destroying the current
62 Windows cursor, set the current Windows cursor to none first.
63 (gdk_window_get_pointer): Revamp logic.
65 2002-01-10 jacob berkman <jacob@ximian.com>
67 * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
68 through the list rather than infinitely loop
70 2002-01-08 Matthias Clasen <matthiasc@poet.de>
72 * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
73 reset_rc_styles_recurse(). (#68084)
75 2002-01-10 Vitaly Tishkov <tvv@sparc.spb.su>
79 * gtk/gtktreemodelsort.c
83 Wed Jan 9 20:56:42 2002 Jonathan Blandford <jrb@redhat.com>
85 * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
86 symbols because we need them in MyEnhancedXkbTranslateKeyCode.
88 2002-01-10 Tor Lillqvist <tml@iki.fi>
90 Apply the same fixes and improvements as to the
91 gtk-1-3-win32-production branch: Bug fixes and cleanup of
92 selection and DND functionality. Still doesn't work as well as the
93 win32-production branch, though, but getting closer.
95 After this, need to add Archaeopteryx Software's OLE2 DND support.
97 * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
98 gdk_selection_send_notify, generate_selection_notify): Don't use
99 SendMessage() to generate events for the same app, instead use
102 * gdk/win32/gdkprivate-win32.h
103 * gdk/win32/gdkglobals-win32.c
104 * gdk/win32/gdkmain-win32.c
105 * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
106 initialisation and handling of gdk_selection_notify_msg,
107 gdk_selection_request_msg and gdk_selection_clear_msg.
109 * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
110 gdk_free_text_list, gdk_string_to_compound_text,
111 gdk_free_compound_text): Implement trivially, witrh a text_list
112 always having a single element, and a compound text always
113 consisting of just a single (UTF-8!) string. Let's see how well
116 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
117 non-ASCII paste from the clipboard: Try getting the same formats
118 from the Windows clipboard that gdk_property_change() puts there:
119 CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
121 * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
122 storing text on the clipboard, handle non-ASCII text
123 correctly. The logic is as follows:
125 If we have only ASCII characters, use CF_TEXT.
127 Else, if we are on NT, use CF_UNICODETEXT.
129 Else (we are on Win9x), if all the characters are present in the
130 code page of some installed locale, use CF_TEXT and also set
131 CF_LOCALE to that locale.
133 Else (still on Win9x) store as RTF. We use a very simple RTF
134 string, just the text, no fonts or other crap, with the non-ASCII
135 characters as Unicode \uN keywords. Additionally, also store the
136 UTF-8 string as such, under the format "UTF8_STRING", so that GDK
137 can also paste from the Clipboard what it has copied there. (Thus
138 no need to implement any RTF parser.)
140 (find_common_locale): New function, implements the search for a
141 locale for case 3 above.
143 * gdk/win32/gdkglobals-win32.c: New global variables
144 compound_text, text_uri_list, utf8_string, cf_rtf and
147 * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
148 converts from a wchar_t string to UTF-8.
149 (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
150 (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
152 * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
155 * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
157 * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
158 gdk_drag_context_ref() was called unnecessarily in a couple of
159 places, meaning drag contexts were never freed. The same memory
160 leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
162 (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
165 * gdk/win32/gdkselection-win32.c: Clarify the use of the
166 sel_prop_table. Now it is used only for storing the GDK_SELECTION
169 The file names dropped with WM_DROPFILES -style DND is stored
170 temporarily (between the drop and the target picking them up) in a
173 Have a separate hash table to map selection atoms to owner
174 windows. This used to be quite mixed up.
176 (_gdk_dropfiles_store): New function, to store the dropped file
177 list for the drop target to possibly fetch, and clear it
178 afterwards, from gdk_drop_reply().
180 (gdk_selection_owner_get): Much simplified now.
182 2002-01-09 jacob berkman <jacob@ximian.com>
184 * gtk/gtklayout.c (gtk_layout_style_set): set the background of
185 our bin window also (fixes #58957)
187 Wed Jan 9 19:10:07 2002 Jonathan Blandford <jrb@redhat.com>
189 * gtk/gtktreeselection.c
190 (_gtk_tree_selection_internal_select_node): Now we test we can
191 unselect nodes before selecting new ones.
192 (gtk_tree_selection_real_select_node): be careful comparing booleans.
194 Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
196 * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
197 gtk_tree_model_rows_reordered and not an iter with user_data
198 set to NULL (which is an invalid liststore iter, so
199 iter_n_children failed, etc)
201 2002-01-09 Sven Neumann <sven@gimp.org>
203 * tests/prop-editor.c: declared internal functions static.
205 Wed Jan 9 11:13:12 2002 Owen Taylor <otaylor@redhat.com>
207 * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path):
208 Fix problem with menus without accel groups, such as the
209 menus for option menus.
211 * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
212 drawing of handle on whether both children are visible,
213 not the drawing of the other child!. (#68325, Diego Gonzalez)
215 Wed Jan 9 10:20:16 2002 Owen Taylor <otaylor@redhat.com>
217 * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
218 RENDER before trying to use it... XRenderFindFormat() prints
219 warnings if called when extension isn't present.
221 Wed Jan 9 15:20:40 2002 Tim Janik <timj@gtk.org>
223 * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
224 path upon parent changes.
226 Wed Jan 9 13:20:14 2002 Tim Janik <timj@gtk.org>
228 * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
229 fix to force vadjustments at size_alocate time from Xavier Ordoquy
230 <mcarkan@users.sourceforge.net>.
232 Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
234 * gtk/gtklayout.c (gtk_layout_get_property):
235 * gtk/gtkspinbutton.c (gtk_spin_button_get_property):
236 * gtk/gtktreeview.c (gtk_tree_view_get_property):
237 * gtk/gtkwidget.c (gtk_widget_get_property):
238 * gtk/gtkfontsel.c (gtk_font_selection_get_property):
239 * gtk/gtkrange.c (gtk_range_get_property):
240 * gtk/gtkviewport.c (gtk_viewport_get_property):
241 * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
242 possible NULL pointer.
244 2002-01-08 Mike Kestner <mkestner@speakeasy.net>
246 * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
247 * gtk/gtktreednd.h : ditto.
248 * gtk/gtktreemodel.h : ditto.
249 * gtk/gtktreesortable.h : ditto.
250 * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
252 2002-01-08 Matthias Clasen <matthiasc@poet.de>
254 * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather
255 than XIDs in the docs.
257 * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
259 Tue Jan 8 18:39:23 2002 Jonathan Blandford <jrb@redhat.com>
261 * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
262 Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
264 Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
266 * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
267 Handle TOGGLE/RADIOBUTTON as well. (#68201,
270 * gtk/gtktoolbar.c (get_first_child): Fix stupid
271 bug, just introduced.
273 Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
275 * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
276 translations, once and for all.
278 * gtk/gtktextbuffer.c (paste_from_buffer): Free
279 the ClipboardRequest structure. (#66198, HideToshi
282 2002-01-08 jacob berkman <jacob@ximian.com>
284 * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
285 the child rather than the layout. see bug #68263
287 Tue Jan 8 14:51:19 2002 Owen Taylor <otaylor@redhat.com>
289 * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
290 the handle if we aren't showing both children.
291 (#68135, Diego Gonzalez)
293 Tue Jan 8 14:45:43 2002 Owen Taylor <otaylor@redhat.com>
295 * gtk/gtkwidget.c (gtk_widget_add_events): Fix
296 leak of result of gtk_container_get_children().
298 Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
300 * gtk/gtktoolbar.c: Fix leaks of results of
301 gtk_container_get_children(). (#68199, Damon Chaplin)
303 Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
305 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
306 Fix problem where child->requisition was accessed
307 directly instead of calling get_child_requisition()
308 (#68199, Damon Chaplin)
310 2001-01-08 James Henstridge <james@daa.com.au>
312 * gtk/gtkstyle.c: add trailing */ on doc comment.
314 Mon Jan 7 22:19:32 2002 Owen Taylor <otaylor@redhat.com>
316 * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
317 problem where were the offset into the image was passed
318 into convert_to_format() wrong.
320 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
321 gdk_x11_drawable_update_picture_clip () before using
322 the picture; allow update_picture_clip() to take a NULL gc
325 2002-01-07 Matthias Clasen <matthiasc@poet.de>
327 * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
329 * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
331 * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
333 * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
335 * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
336 gtk/gtkwidget.c (gtk_widget_get_toplevel,
337 gtk_widget_push_composite_child), gtk/gtkdialog.c
338 (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
339 from messing up the indentation of inline examples.
341 * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
344 * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
345 gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
346 gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
348 * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
349 gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
352 2002-01-07 Anders Carlsson <andersca@gnu.org>
354 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
355 unused pixels and rowstride variables.
356 (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
358 Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
360 * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
361 the pointer by x/y_offset into the new window when we found
362 the drag destination.
364 * gtk/gtkaccelmap.c (internal_change_entry): fix return code
365 for simulation when the entry already contains the required
368 2002-01-06 Matthias Clasen <matthiasc@poet.de>
370 * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by
371 G_DISABLE_CAST_CHECKS.
373 * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
374 gtk_accel_group_query, gtk_accel_group_find,
375 gtk_accel_groups_from_object): Document.
377 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
379 2002-01-04 Hans Breuer <hans@breuer.org>
381 * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c :
382 need to cast image->mem away from void* to avoid
383 'error C2036: 'void *' : unknown size'. Doing pointer
384 arithmetics on void pointers is a GCCism afaik.
386 * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
389 * gdk/makefile.msc gdk/win32/makefile.msc
390 gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
392 * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
393 and take care of image->visual possibly NULL.
395 * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
396 _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
397 Again take care of image->visual possibly NULL.
399 * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
401 * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
402 instead of private field access
404 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
405 colormap setting to the gdk-X behaviour
407 2001-01-04 Matthias Clasen <matthiasc@poet.de>
409 * gtk/gtkwidget.c: Documentation additions.
411 2001-01-04 Matthias Clasen <matthiasc@poet.de>
413 * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
415 * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
417 2002-01-04 Havoc Pennington <hp@pobox.com>
419 * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
421 Fri Jan 4 13:05:15 2002 Owen Taylor <otaylor@redhat.com>
423 * gtk/gtkdnd.c (gtk_drag_find_widget): At least
424 don't infinite loop if the widget and window heirarchies
427 * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
428 in heirarchy in ::drag_motion, ::drag_drop callbacks
429 by referencing child widget lists. (Patch from Tim)
431 * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
432 with widgets where window.x != widget->allocation.x
434 Fri Jan 4 01:36:48 2002 Owen Taylor <otaylor@redhat.com>
436 * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
437 a little bit. (More for consistency than because it
438 makes much of a difference.)
440 Thu Jan 3 22:18:15 2002 Owen Taylor <otaylor@redhat.com>
442 * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
443 (_gdk_x11_have_render): Private function to tell if we have RENDER
446 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
447 None if we don't have RENDER extension.
449 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
450 use Xft unless we have render extension.
452 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
453 Handle missing render extension.
455 * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
456 gdk/gdkinternals.h: Add a private copy_to_image() virtual function
457 to the GdkDrawable vtable that extends get_image() to allow
458 copying onto existing images. Make the default implementation of
459 get_image() use this so that backends don't have to implement
460 both. Add private wrapper _gdk_drawable_copy_to_image().
462 * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
463 gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
464 copy_to_image() semantics, speed up by using ShmPixmaps and
465 XCopyArea when possible, XFlush() after ungrabbing the server,
466 generally redo the logic once again.
468 * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
469 _gdk_windowing_bits_per_depth(): Function to convert from depth to
470 bits-per-pixel. (We assume only one bpp per depth - X requires
473 * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
474 scratch image code into a generic _gdk_image_get_scratch() chunk
475 of code that we can use other places we need scratch images.
477 * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
478 Add _gdk_image_new_for_depth() as the backend
479 to _gdk_image_new() to allowing creating images with
480 a depth and no visual.
482 * gdk/gdkpixbuf-drawable.c: Fix so that getting
483 parts of images not at 0,0 actually works.
485 * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
486 gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c:
487 - Add a new GdkDrawableClass vfunc _draw_pixbuf, and
488 _gdk_draw_pixbuf() [ will be made public later ], to allow
489 backends to accelerate drawing pixbufs.
490 - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
491 to be the default implementation.
492 - Update docs for gdk_pixbuf_render_to_drawable_alpha().
493 - Optimize the default implementation by using
494 _gdk_image_copy_to_pixmap() and scratch shared images, and
495 special casing the compositing.
497 * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
498 with alpha using the RENDER extension.
500 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
501 Optimize by _gdk_image_copy_to_pixmap() and scratch images.
503 * tests/testrgb.c: Add test for speed of alpha composition,
504 reduce the number of iterations since alpha composition
507 * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap):
508 Private function to get a ShmPixmap for an image, if possible.
510 2002-01-04 Anders Carlsson <andersca@gnu.org>
512 * tests/testtreesort.c: Add my cool list of integers.
514 Thu Dec 27 18:12:55 2001 Owen Taylor <otaylor@redhat.com>
516 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
517 problem where retrieved atoms weren't properly returned.
519 2002-01-03 Anders Carlsson <andersca@gnu.org>
521 * gtk/gtktextview.c (gtk_text_view_key_press_event): When
522 tab is pressed and the text view isn't editable,
523 move the focus instead.
525 * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
528 * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
530 * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
532 * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
535 * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
536 _gtk_tree_view_queue_draw_node.
537 (gtk_tree_view_row_has_child_toggled): Only redraw one node.
539 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func):
540 sort_column_id can be 0.
542 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
543 Only redraw one the node being selected.
545 * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
547 Wed Jan 2 23:09:06 2002 Tim Janik <timj@gtk.org>
549 * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
550 realized but visible && !mapped resize containers (which is
551 possible with unset CHILD_VISIBLE now).
553 2002-01-02 jacob berkman <jacob@ximian.com>
555 * gtk/Makefile.am (LDFLAGS): automake still doesn't support
556 libsomething_la_LDFLAGS, so fix the build again
558 2002-01-01 Havoc Pennington <hp@pobox.com>
560 * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
561 exposes to no window children not in the buffer window.
562 (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
563 - is this the right way to do it?
564 (gtk_text_view_focus): add focus method, just chains up for now,
565 I'm not sure why the GtkContainer implementation doesn't work
567 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
568 in the text line for the child anchor segment
570 * tests/testtext.c (do_add_focus_children): add another test
571 example (to put focusable buttons into the widget)
573 2002-01-01 Havoc Pennington <hp@pobox.com>
575 * docs/README.linux-fb: note that this file is obsolete
577 * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
578 files that they should not be edited and look in the reference
579 manual instead. Probably these files should just be replaced by
580 the note, and their main contents deleted.
582 * gtk/gtktextview.c: docs
584 * gtk/gtktextmark.c: docs
586 * gtk/gtktextchild.c: docs
588 * gtk/gtktextbuffer.c: docs stuff
590 * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
591 give people more leads in sorting out PRIMARY vs. CLIPBOARD
593 2002-01-01 Tor Lillqvist <tml@iki.fi>
595 * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
596 ../gdk-pixbuf/gdk-pixbuf-csource.
598 2001-12-31 Tor Lillqvist <tml@iki.fi>
600 * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
602 (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
604 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
605 -Wall. Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
608 * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
611 * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
613 2002-01-01 Havoc Pennington <hp@pobox.com>
615 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc
618 2002-01-01 Havoc Pennington <hp@pobox.com>
620 * gtk/gtktextview.c (changed_handler): Replace call to
621 gtk_widget_size_request() that expected to actually compute the
622 request with a direct use of widget_class->size_request, so we get
623 our size request right; fixes remaining part of #63065 reported by
626 2001-12-31 Havoc Pennington <hp@pobox.com>
628 * tests/testtext.c (do_insert_and_scroll): remove backward_char
629 since we no longer have bogus newline
630 (dialog_response_callback): remove another backward_char horkage,
631 reported by Matthias Clasen #63065
633 2001-12-31 Havoc Pennington <hp@pobox.com>
635 * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
636 fix an incorrect assertion that the "valid" flag is always correct
637 in a node and add explanatory comment. This keeps me from
638 reproducing #59101, but I'm remembering that 59101 was actually
639 about incorrect pixel totals, so I'm not sure 59101 is actually
640 fixed. May just have stopped happening due to some change in
643 2001-12-31 Havoc Pennington <hp@pobox.com>
645 * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
646 selection if shift is down, bug #50939
647 (gtk_text_view_button_press_event): add double/triple click
648 selection to the current selection if shift is down
650 2001-12-31 Havoc Pennington <hp@pobox.com>
652 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
653 to use ensure_byte_offsets not ensure_char_offsets, patch
654 from Padraig O'Briain bug #67356
656 2001-12-30 Havoc Pennington <hp@pobox.com>
658 * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
659 the right values, reported by Jeff Franks
661 2001-12-30 Matthias Clasen <matthiasc@poet.de>
663 * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
665 2001-12-28 Matthias Clasen <matthiasc@poet.de>
667 * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c:
668 Minor documentation tweaks.
670 2001-12-28 Tor Lillqvist <tml@iki.fi>
672 * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
673 (unicode_classify): Don't return -1 on encountering an
674 unclassified character, but play it safe and return U_BASIC_LATIN.
676 Thu Dec 27 16:05:30 2001 Owen Taylor <otaylor@redhat.com>
678 * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
679 of misc->xpad/ypad consistent with GtkLabel. Do
680 directional flipping when interpreting misc->xalign/yalign.
681 Fix off-by-one error for negative x,y. (#67472, reported
684 Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
686 * gtk/gtkwidget.c (gtk_widget_set_style_internal):
687 Remove optimization that was causing problems because
688 we called gtk_widget_size_request() before we called
689 gtk_widget_queue_resize() so RESIZE_NEEDED was not
690 set. Optimization shouldn't mattter now that we
691 are smart about needlessly size requesting or allocating
692 widgets. (#67598, reported by Jacob Berkman)
694 Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
696 * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
697 Call gdk_window_get_pointer() on menu->bin_window not
698 menu->window, so we get the correct window for the
699 menu item. (#65213, Guillermo S. Romero)
701 Thu Dec 27 15:13:44 2001 Owen Taylor <otaylor@redhat.com>
703 * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
704 the title by setting to NULL. Move docs inline.
705 Update the title if the tearoff window already
706 exists. Code cleanup. (Fixes #65190, reported by
709 Thu Dec 27 14:04:22 2001 Owen Taylor <otaylor@redhat.com>
711 * gtk/gtksocket.c (gtk_socket_key_press_event):
712 gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
713 special handling of key presses unless we are doing
714 iter-app embedding. (Fixes #67590, Anders Carlsson)
716 Thu Dec 27 16:37:04 2001 Kristian Rietveld <kris@gtk.org>
718 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
719 (gtk_tree_model_sort_sort_level),
720 (gtk_tree_model_sort_insert_value): fix a few places where
721 I was confused between modelsort iters and other iters. This was
722 really going to happen someday ;)
724 Wed Dec 26 23:41:41 2001 Kristian Rietveld <kris@gtk.org>
726 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
727 we are unprelighted before reordering
729 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
730 need to break out of the for loop, not return (this fixed
731 the 'selection freeze' bug).
733 * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
734 be pretty stable now, though it still needs some more code
737 Wed Dec 26 12:32:31 2001 Owen Taylor <otaylor@redhat.com>
739 * docs/Changes-2.0.txt: Document the fact that
740 gtk_paned_set_handle_size() has been removed.
742 * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro,
743 since it pointed to gtk_paned_set_handle_size(), which
744 was removed. (#66760, Matt Wilson)
746 Wed Dec 26 12:28:24 2001 Owen Taylor <otaylor@redhat.com>
748 * gtk/gtkdnd.c (gtk_drag_highlight): Connect
749 gtk_drag_hightlight_expose _after_, so it works with
750 widgets that paint there entire background. (#66735)
752 Wed Dec 26 12:17:06 2001 Owen Taylor <otaylor@redhat.com>
754 * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
755 allocation to widget->allocation. (Fixes #67290,
758 Wed Dec 26 11:49:01 2001 Owen Taylor <otaylor@redhat.com>
760 (#67542, reported by Anders Carlsson)
762 * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
763 rc_style->font_desc with defaul style instead of replacing
766 * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
767 font descriptions in RC styles by calling
768 pango_font_description_merge().
770 2001-12-24 James Henstridge <james@daa.com.au>
772 * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
773 valid with both SGML and XML.
775 Sat Dec 22 12:38:03 2001 Owen Taylor <otaylor@redhat.com>
777 * configure.in: 1.3.12, interface, binary age 0.
779 * configure.in: Require new versions of Glib, Pango, ATK.
783 * configure.in: Make explicit what libtool we are executing.
786 * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
788 * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix
789 parameter names for docs.
791 Sat Dec 22 22:35:29 2001 Owen Taylor <otaylor@redhat.com>
793 * gtk/gtkwindow.c (gtk_window_realize)
794 gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
796 * gtk/gtkentry.c (gtk_entry_key_release)
797 gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
798 key release events to the input method.
800 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
801 Handle release of Control/Shift to end hex sequence.
803 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress):
804 Handle key releases as well as presses.
806 2001-12-21 Matthias Clasen <matthiasc@poet.de>
808 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
810 * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
811 gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
812 documentation about underscores and mnemonics. (#66380)
814 * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
815 cyclic reference in docs.
817 * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
818 of default value. (#65402)
820 * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale):
823 2001-12-20 Anders Carlsson <andersca@gnu.org>
825 * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
828 Tue Dec 18 16:15:55 2001 Owen Taylor <otaylor@redhat.com>
830 * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
831 (reported by Jeff Franks.)
833 Tue Dec 18 16:07:28 2001 Owen Taylor <otaylor@redhat.com>
835 * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix
836 prototype for direction_changed. (Reported by
839 2001-12-18 Padraig O'Briain <padraig.obriain@sun.com>
841 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
842 Fix typo (list->data becomes list->next)
844 2001-12-06 Havoc Pennington <hp@redhat.com>
846 Add Unicode control char menu, based on patch from Dov.
849 * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
851 (gtk_entry_enter_text): function to do "typing in text"
852 (popup_targets_received): add the Unicode menu items
854 * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
855 on Input Methods item, and add the unicode menu items.
857 * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
858 used in GtkEntry and GtkTextView - may become public later.
860 2001-12-16 Kjartan Maraas <kmaraas@gnome.org>
862 * gtk/gtkprogressbar.c: Fix a typo.
863 * gtk/gtkpaned.c: Fix a typo.
865 2001-12-15 Darin Adler <darin@bentspoon.com>
869 * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
870 g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
871 * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
872 * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
873 * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
874 * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
875 Restructure loop to get rid of uninitialized variable warning. Also
876 gives a tiny efficiency gain.
878 2001-12-15 Murray Cumming <murrayc@usa.net>
880 * Fixed first arg type of GtkScale's "format_value" signal's
883 2001-12-14 Vitaly Tishkov tvv@sparc.spb.su
884 docs/reference/gtk/tmpl/gtkcelleditable.sgml
885 gtkcelleditable -> GtkCellEditable
886 docs/reference/gtk/tmpl/gtktreesortable.sgml
887 gtktreesortable -> GtkTreeSortable
889 2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
891 * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
892 demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
893 and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
896 Thu Dec 13 22:02:41 2001 Kristian Rietveld <kris@gtk.org>
898 * gtk/gtktreeview.c (validate_visible_area): free path
901 2001-12-13 Matthias Clasen <matthiasc@poet.de>
903 * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
905 Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
907 * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
908 to find the clicked node in the tree when tree == NULL
910 2001-12-13 Anders Carlsson <andersca@gnu.org>
912 * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare
913 event->state with the default mod mask.
915 2001-12-12 jacob berkman <jacob@ximian.com>
917 * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
919 Wed Dec 12 17:22:45 2001 Owen Taylor <otaylor@redhat.com>
921 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
922 Reset the existing slave before removing it to give
923 it a chance to commit and emit "preedit_changed"
924 in case there was still a preedit string.
926 2001-12-12 Matthias Clasen <matthiasc@poet.de>
928 * gtk/gtktextlayout.c: Typo fixes
929 * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
931 * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel,
932 gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
934 * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
936 Wed Dec 12 16:43:10 2001 Jonathan Blandford <jrb@redhat.com>
938 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
939 validate_rows_timer in unrealize. Reported by Matthew Wilson.
941 Wed Dec 12 16:18:26 2001 Owen Taylor <otaylor@redhat.com>
943 * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
944 "prepainting" the menu before realizing other than
945 via gtk_style_set_background() - this was broken when
946 we added menu scroll support.
948 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
949 window in the expose event -- fixes problem with border
950 flashing during scrolling.
952 Wed Dec 12 15:11:49 2001 Owen Taylor <otaylor@redhat.com>
954 * gtk/gtksettings.c (gtk_settings_get_property): Support
955 using names/nicks for the gdk_settings values for enum valued
956 types. (#57678, reported by Anders Carlsson)
958 Wed Dec 12 15:01:33 2001 Jonathan Blandford <jrb@redhat.com>
960 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
961 with insert_page_menu. Code duplication is bad.
963 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
966 Wed Dec 12 14:27:30 2001 Owen Taylor <otaylor@redhat.com>
968 * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
971 2001-12-12 James Henstridge <james@daa.com.au>
973 * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
974 (menu_item)->accel_path first when looking up the accel path.
976 Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
978 * tests/testgtk.c (layout_expose_handler): Only draw
979 for events on the bin window.
981 Tue Dec 11 18:55:16 2001 Jonathan Blandford <jrb@redhat.com>
983 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
984 mnemonics work with notebooks.
986 Tue Dec 11 15:25:06 2001 Jonathan Blandford <jrb@redhat.com>
988 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
989 bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
990 Makes some flicker while scrolling go away.
992 2001-12-11 Michael Natterer <mitch@gimp.org>
994 * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
995 adds alpha to the pixbuf; re-load the saved pixbuf and
996 pixel-by-pixel compare it with the original one.
998 Tue Dec 11 15:39:08 2001 Soeren Sandmann <sandmann@daimi.au.dk>
1000 * ChangeLog: Fix wrong ChangeLog entry
1001 * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
1004 2001-12-10 jacob berkman <jacob@ximian.com>
1006 * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer):
1007 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
1008 (gdk_keyboard_grab): do not grab things if the nograb debug flag
1011 * gdk/gdkinternals.h:
1012 * gdk/gdk.c: add nograbs debug flag to disable grabs of the
1015 Mon Dec 10 19:42:29 2001 Jonathan Blandford <jrb@redhat.com>
1017 * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
1018 didn't reset the timer.
1020 2001-12-10 Matthias Clasen <matthiasc@poet.de>
1022 * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
1024 2001-12-09 Matthias Clasen <matthiasc@poet.de>
1026 * gtk/gtkviewport.c: Add docs.
1028 Mon Dec 10 16:21:38 2001 Jonathan Blandford <jrb@redhat.com>
1030 * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
1031 RBTree corruption bug--
1033 2001-12-10 Anders Carlsson <andersca@gnu.org>
1035 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
1036 if edited_column is NULL, also grab focus before removing
1039 Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
1041 * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
1042 denominator in the horizontal case just like we do in the vertical
1043 case (why I didn't notice that there were two cases the first time
1044 around is beyond me:). Also fix indentation in the vertical case.
1046 2001-12-09 Anders Carlsson <andersca@gnu.org>
1048 * gdk/x11/gdkevents-x11.c: Update xsettings name.
1050 * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
1051 gtk-dnd-drag-threshold GtkSetting.
1053 * gtk/gtksettings.c (gtk_settings_class_init): Add
1054 setting for dnd drag threshold.
1056 2001-12-09 Matthias Clasen <matthiasc@poet.de>
1058 * gtk/gtkcontainer.c: Add docs.
1060 2001-12-08 Matthias Clasen <matthiasc@poet.de>
1062 * gtk/gtkwidget.c: Doc markup fix.
1064 * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
1066 * gtk/gtktreestore.c: Typo fixes. (#66445)
1068 * gtk/gtkaccelgroup.c: Misc doc markup. (#66425)
1070 * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
1071 to gtk_clipboard_set_with_owner(). (#66424)
1073 Sat Dec 8 16:12:10 2001 Christopher Blizzard <blizzard@redhat.com>
1075 * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
1076 "<unknown>" if someone doesn't pass in a valid argc. (Patch from
1077 Fabrice Bellet <fabrice@gnu.org>, #54127).
1079 Sat Dec 8 10:04:54 2001 Jonathan Blandford <jrb@redhat.com>
1081 * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
1082 of places, so that people with crashy trees can just run their
1083 program with GTK_DEBUG=TREE.
1085 Sat Dec 8 20:57:24 2001 Kristian Rietveld <kristian@planet.nl>
1087 * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
1090 2001-12-08 Anders Carlsson <andersca@gnu.org>
1092 * tests/testgtk.c (layout_expose_handler): Don't return TRUE
1093 since then the default GtkLayout expose handler won't be called.
1095 Fri Dec 7 23:42:50 2001 Jonathan Blandford <jrb@redhat.com>
1097 * gtk/gtktreeview.c (validate_rows_handler): remove
1100 * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
1101 Singh <yosh@gimp.org> to fix bug when rendering Tree with an
1104 Fri Dec 7 20:06:14 2001 Jonathan Blandford <jrb@redhat.com>
1106 * gtk/gtktreeview.c (validate_visible_area): get logic right,
1109 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
1110 removing a node ended up with a corrupt tree. Really really nasty
1112 (_gtk_rbtree_debug_spew): new debug helper function
1113 (_fixup_validation): new inline function to clean up code
1116 Fri Dec 7 19:34:51 2001 Owen Taylor <otaylor@redhat.com>
1118 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
1121 2001-12-07 Matthias Clasen <matthiasc@poet.de>
1123 * gtk/gtkstyle.h: Typo fixes.
1125 * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
1127 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
1129 Fri Dec 7 16:05:22 2001 Owen Taylor <otaylor@redhat.com>
1131 * modules/input/gtkimcontextxim.c: Display the XIM
1132 status callbacks with a popup window. (Patch from
1133 HideToshi Tajima, #50628, somewhat modified.)
1135 Fri Dec 7 12:07:15 2001 Tim Janik <timj@gtk.org>
1137 * gtk/Makefile.am: each source generation rule needs to use its own
1138 temporary file, to avoid clashes for parallel builds. fixed rules
1139 for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
1141 2001-12-07 Havoc Pennington <hp@pobox.com>
1143 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
1144 "cursors that are actually useful" in gdk_cursor_new() docs
1146 Thu Dec 6 23:09:21 2001 Owen Taylor <otaylor@redhat.com>
1148 * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
1149 in computing the size of the second child.
1151 Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com>
1153 * gtk/gtkrange.c: Make button 1 clicks on the trough
1154 do pages, button 3 steps. (Patch from Hans Breuer
1157 2001-12-06 Matthias Clasen <matthiasc@poet.de>
1159 * gtk/gtklabel.c: Fix docs. (#66383)
1161 * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs.
1164 * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
1165 gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
1167 * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
1168 Don't emit a g_warning() about being deprecated. (#66208)
1170 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
1172 * gtk/gtkcontainer.c: Doc fixes.
1174 * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
1176 * gtk/gtkstyle.c (gtk_style_attach): Add docs.
1178 2001-12-05 Sven Neumann <sven@gimp.org>
1180 * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
1182 * gtk/queryimmodules.c: g_dir_read_name() returns const.
1184 Tue Dec 4 21:46:13 2001 HideToshi Tajima <hidetoshi.tajima@sun.com>
1186 * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
1189 2001-12-04 Manish Singh <yosh@gimp.org>
1192 * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
1195 * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
1198 * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
1200 2001-12-04 Havoc Pennington <hp@redhat.com>
1202 * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
1203 g_assert_not_reached() that was bogus, since we demand-create the
1204 tag info. reported by Chris Phelps
1206 Jump through assorted hoops to fix bug from Chris Phelps where
1207 removing tags from the table resulted in btree trying to
1210 * gtk/gtktextbuffer.c: set up mechanics of adding/removing
1211 ourselves to the tag table
1213 * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer)
1214 (_gtk_text_tag_table_remove_buffer): private cruft to
1215 let us notify buffer of disappearing tags
1217 * gtk/gtktexttag.h: remove BTreeNode typedef from this public
1218 header, put it in tagprivate
1220 * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
1221 tag_removed; it's emitted too late.
1222 (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
1225 Padding for ABI-compat expansion
1227 * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
1228 (struct _GtkTextAppearance): one pad in here too
1230 * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
1232 * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
1233 since action signals etc. seem pretty likely
1235 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
1237 * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
1239 * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
1241 2001-12-04 Matthias Clasen <matthiasc@poet.de>
1243 * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
1245 * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
1247 * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
1249 Tue Dec 4 18:51:44 2001 Jonathan Blandford <jrb@redhat.com>
1251 * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
1254 Tue Dec 4 18:38:35 2001 Jonathan Blandford <jrb@redhat.com>
1256 * demos/gtk-demo/main.c: (create_tree): Minor fix.
1258 * docs/tree-column-sizing.txt: Update
1260 * gtk/gtkrbtree.[ch]: Massive work to support validation.
1262 * gtk/gtktreemodel.c: Doc fixes.
1264 * gtk/gtktreeview.c: Incremental reflow added.
1265 * gtk/gtktreeviewcolumn.c: ditto
1266 * gtk/gtktreeviewcolumn.h: ditto
1268 2001-12-04 Havoc Pennington <hp@redhat.com>
1270 * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
1271 "invisible" property, #65999
1273 2001-12-04 Matt Wilson <msw@redhat.com>
1275 * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
1277 Tue Dec 4 12:16:31 2001 Owen Taylor <otaylor@redhat.com>
1279 * gtk/gtksettings.c (gtk_settings_set_property_value):
1280 Simplify, make more efficient and fix memory leak
1281 when turning quark into a string. (#66103, HideToshi
1284 * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
1285 init() and unref priv->tooltips in destroy rather
1286 than calling gtk_object_destroy() which has no
1287 effect on memory management. (#66104, HideToshi
1290 * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
1291 so we free the when the object is freed. (Fixes memory
1292 leak, #66096, HideToshi Tajima)
1294 * gdk/gdkevents.c (gdk_synthesize_window_state): Use
1295 a full GdkEvent structure to avoid reads of uninitialized/
1296 invalid memory in gdk_event_put() (#65877, patch
1297 from Hidetoshi Tajima)
1299 Tue Dec 4 11:06:54 2001 Owen Taylor <otaylor@redhat.com>
1301 * gtk/gtkmenuitem.c: Revert my last mistaken change -
1302 toggle-size-request doesn't take a requisition.
1304 * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
1305 reference to marshaler that no longer exists.
1307 Mon Dec 3 16:39:17 2001 Owen Taylor <otaylor@redhat.com>
1309 Patch from Bill Haneman (with many modifications) to make
1310 the focus color work on dark themes and to make the
1311 focus line width configurable. (#61079, #63074)
1313 * gtk/gtkwidget.c: Add style properties,
1314 ::focus-widget, ::focus-line-width, and ::focus-padding.
1316 * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a
1317 state argument as well so we can use fg[STATE] to
1318 draw instead of always drawing with black.
1319 Cange paint_focus() to respect GtkWidget::focus-width
1320 and GtkWidget::focus-line-pattern. Fix continuity
1321 problem where the default 1-1 stipple had a blob
1322 in one corner and a gap in the other. Change the
1323 interpretation of x/y/width/height to be the bounding
1324 box of the focus rect instead of the rectangle
1325 passed to gdk_draw_rectangle.
1327 * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c
1328 gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c
1329 gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width
1330 and ::focus-line-padding.
1332 * gtk/gtkentry.c: Handle :;focus-width property; cleanup
1333 and remove duplicated code; fix drawing of focus rectangle
1334 when interior-focus = FALSE. (#63072, #63073)
1336 * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
1337 gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
1338 Range and TreeViewColumn will need more extensive fixing.
1340 * gtk/gtkcolorsel.c: Honor focus line attributes when
1341 drawing the focus on the color swatches. (#63071)
1343 * gtk/gtkhsv.c: Honor focus line attributes when
1344 drawing the focus for the ring and triangle.
1346 * docs/widget_geometry.txt: Start at documenting how
1347 various widgets are drawn.
1349 * gtk/gtkbutton.c (_gtk_button_paint): Export
1350 _gtk_button_paint() librarywide, so we don't have
1351 duplicate a bunch of code in gtktogglebutton.c.
1353 * gtk/gtktogglebutton.c: Use _gtk_button_paint().
1355 Mon Dec 3 21:04:13 2001 Jonathan Blandford <jrb@redhat.com>
1357 * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
1360 2001-12-03 Alex Larsson <alexl@redhat.com>
1362 * gtk/gtkaccellabel.c:
1364 * gtk/gtkcolorsel.c:
1365 * gtk/gtkcontainer.c:
1367 * gtk/gtktextview.c:
1368 * gtk/gtktogglebutton.c:
1369 * gtk/gtktreeview.c:
1371 Return FALSE from expose handlers.
1373 Mon Dec 3 21:15:59 2001 Kristian Rietveld <kris@gtk.org>
1375 * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
1376 we use pointers, we should free the previous pointer first (if
1377 it exists), before we set a new pointer. (#64726)
1379 * gtk/gtktreeprivate.h: get rid of cursor_drag
1381 * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check
1383 (gtk_tree_view_bin_expose): don't directly return in the while
1385 (gtk_tree_view_class_init): indentend expanders by default
1386 (gtk_tree_view_header_focus): only give the button focus
1387 if it's clickable, visible and the column is reorderable
1390 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
1391 create and free cursor
1393 Mon Dec 3 10:23:07 2001 Owen Taylor <otaylor@redhat.com>
1395 * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
1396 some bugs with size requisition. (From Bill Haneman)
1398 * gtk/gtkcalendar.c: Draw headers and selection in
1399 base/text[SELECTED] instead of fg/bg[SELECTED].
1401 * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
1402 code and formatting.
1404 2001-12-03 Havoc Pennington <hp@pobox.com>
1406 * gtk/gtktextview.c (set_window_height):
1407 (set_window_width): Hmm, setter functions normally assign the new
1408 value to the object field. Reported by Chris Phelps.
1410 2001-11-30 jacob berkman <jacob@ximian.com>
1412 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
1413 signal id to 0 after we disconnect from it
1415 2001-11-30 Matthias Clasen <matthiasc@poet.de>
1417 * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
1418 gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
1419 gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
1420 gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
1422 * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
1423 GTK_DISABLE_DEPRECATED.
1425 * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
1426 gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
1428 Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
1430 * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
1431 move/resize code, removing various bad, non-functional
1432 hacks. (Fixes #65048, reported by Damon Chaplin.)
1434 Fri Nov 30 16:12:21 2001 Owen Taylor <otaylor@redhat.com>
1436 * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix
1437 bad match error when target drawable is not the
1438 same depth as the root window. (#65841)
1442 2001-11-29 Matthias Clasen <matthiasc@poet.de>
1444 * gdk/gdkwindow.c: Typo fix.
1446 Thu Nov 29 21:35:56 2001 Kristian Rietveld <kristian@planet.nl>
1448 * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
1449 empty menu items to behave like insensitive items (#59456)
1451 * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
1452 next item if the first item in the menu is a tear off item
1453 (#59456-2, suggestion by Matthias Clasen)
1455 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1456 (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
1457 (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
1458 (gtk_real_menu_shell_activate_current): add check, so empty
1459 menu items behave like insensitive items (#59456)
1461 * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
1462 the checks more readable ...
1464 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1465 (gtk_menu_shell_button_release): causes the menu to dropdown if the
1466 caption is clicked again (#64977)
1468 2001-11-29 Havoc Pennington <hp@redhat.com>
1470 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1471 assertion here that we were at the end iterator was not correct;
1472 change code to move us to the end iterator. bug #65731
1474 Wed Nov 28 20:05:44 2001 Owen Taylor <otaylor@redhat.com>
1476 * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove
1477 improper use of g_locale_to_utf8() to convert from
1478 latin-1, and do it the easy way by building the string
1479 correctly in the first place.
1481 Wed Nov 28 19:34:15 2001 Owen Taylor <otaylor@redhat.com>
1483 * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get):
1484 Convert atoms to and from atoms for properties of type XA_ATOM.
1485 (#65555, patch from Hidetoshi Tajima)
1487 Wed Nov 28 18:37:04 2001 Owen Taylor <otaylor@redhat.com>
1489 * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter
1490 to avoid problems with Objective C.
1492 2001-11-28 Matthias Clasen <matthiasc@poet.de>
1494 * gtk/gtkaccelmap.c: Typo fixes. (#65607)
1496 * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
1499 * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
1501 Wed Nov 28 18:19:12 2001 Owen Taylor <otaylor@redhat.com>
1503 * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
1504 accounting of menu->tearoff_scrollbar width to here
1505 and make sure we have the correct requisition.
1507 * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
1508 by using gtk_window_move().
1510 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
1511 the requisition to be updated by calling
1512 gtk_widget_size_request() (#65440)
1514 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate):
1515 queue resize before calling gtk_menu_set_tearoff_state().
1517 Wed Nov 28 22:20:44 2001 Kristian Rietveld <kristian@planet.nl>
1519 * demos/gtk-demo/editable_cells.c: fix typo
1521 * demos/gtk-demo/list_store.c (add_columns): remove call to
1522 gtk_tree_view_column_set_clickable which didn't make sense
1524 2001-11-28 Havoc Pennington <hp@redhat.com>
1526 * gtk/gtktextview.c (gtk_text_view_paint): put the warning
1527 explaining the validation error in front of the G_BREAKPOINT
1529 * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
1530 process updates with include_children = FALSE instead of TRUE, so
1531 we redraw the range only, not the whole darn window. Making
1532 GtkRange a NO_WINDOW widget had weirdly caused the text widget
1533 Trace/breakpoint trap bug to become much easier to trigger.
1535 Wed Nov 28 14:12:03 2001 Owen Taylor <otaylor@redhat.com>
1537 * gdk/Makefile.am (gdk_public_h_sources): Remove reference
1540 2001-11-28 Matthias Clasen <matthiasc@poet.de>
1542 * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
1544 * gdk/gdkcursor.h: Directly include the contents
1545 of gdkcursors.h in the GdkCursorType enum.
1547 * gdk/gdkcursors.h: Deleted.
1549 * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add
1552 * gdk/Makefile.am: Remove the X-derived-headers rule.
1554 Tue Nov 27 20:17:55 2001 Owen Taylor <otaylor@redhat.com>
1556 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
1557 Notify on the ::active property _here_, not in
1558 gtk_check_menu_item_set_active.
1560 Mon Nov 26 19:11:18 2001 Jonathan Blandford <jrb@redhat.com>
1562 * gtk/gtkcellrendererpixbuf.c
1563 (gtk_cell_renderer_pixbuf_class_init): add 2 properties
1564 (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
1566 Sun Nov 25 21:19:02 2001 Owen Taylor <otaylor@redhat.com>
1568 * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
1569 comment about what is going on in this file.
1571 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
1574 Sun Nov 25 18:59:19 2001 Owen Taylor <otaylor@redhat.com>
1576 * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size):
1577 Calculate size based on the _child_ of the menu item,
1578 not the menuitem. (#65005, Damon Chaplin)
1580 * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
1581 some extra vertical padding to the label widget ... restores
1582 GTK+-1.2 spacing. (#65085, Damon Chaplin.)
1584 2001-11-26 Tor Lillqvist <tml@iki.fi>
1586 * demos/pixbuf-demo.c
1587 * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
1589 * demos/gtk-demo/main.c (read_line): No flockfile() or
1590 getc_unlocked() on Win32.
1592 2001-11-25 Tor Lillqvist <tml@iki.fi>
1595 * acconfig.h: As we now use GDir, no need to check for dirent.h.
1597 Sun Nov 25 23:18:39 2001 Kristian Rietveld <kristian@planet.nl>
1599 * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
1600 when finished (#65266)
1602 Sun Nov 25 23:16:29 2001 Kristian Rietveld <kristian@planet.nl>
1604 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
1605 data after we set the property. (#65264)
1607 Sun Nov 25 23:14:06 2001 Kristian Rietveld <kristian@planet.nl>
1609 * gtk/gtkbutton.c: add destroy method so label_text gets freed
1610 if it has been allocated (#65268)
1612 Sat Nov 24 13:39:51 2001 Manish Singh <yosh@gimp.org>
1614 * gdk/linux-fb/gdkdrawable-fb2.c
1615 * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
1617 * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
1619 * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
1622 * gdk/linux-fb/gdkfbswitch.c: minor cleanups
1624 Sat Nov 24 22:05:27 2001 Kristian Rietveld <kristian@planet.nl>
1626 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
1627 deactivate menu when menu_item isn't sensitive (#61389)
1629 Sat Nov 24 15:35:26 2001 Kristian Rietveld <kristian@planet.nl>
1631 * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
1632 we return (in case of a failure here)
1634 Fri Nov 23 19:22:50 2001 Owen Taylor <otaylor@redhat.com>
1636 * gtk/gtknotebook.c: Handle events in windows other
1637 than widget->event_window properly. (#65079, reported
1640 * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
1642 Fri Nov 23 18:57:46 2001 Owen Taylor <otaylor@redhat.com>
1644 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
1645 the image at the top. (#65020, request from Seth Nickell)
1647 Fri Nov 23 18:49:53 2001 Owen Taylor <otaylor@redhat.com>
1649 * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
1650 arithmetic that was resulting in rows being drawn too low.
1651 (#65001, reported by Damon Chaplin)
1653 Fri Nov 23 18:36:42 2001 Owen Taylor <otaylor@redhat.com>
1655 * gtk/gtkrange.c (gtk_range_button_press): Offset
1656 invalidated range correctly.
1658 * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling
1659 of title window. (#65001, reported by Damon Chaplin)
1661 * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
1662 horrible hack with use of ::event_after.
1664 Thu Nov 22 15:01:03 2001 Owen Taylor <otaylor@redhat.com>
1668 * configure.in (ATK_REQUIRED_VERSION): Require
1669 GLib-1.3.11, Pango-0.22, ATK-0.7.
1671 * tests/prop-editor.c (property_widget): Restore
1672 to working as well as it did before.
1674 * gtk/gtklistitem.h: Mark deprecated since it is
1675 an integral part of GtkList.
1677 * demos/gtk-demo/demo-common.h: New header file,
1678 for a common functions not important to the meat
1681 * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
1682 function to search for a file used by the demo.
1684 * demos/*.c: Use demo_find_file.
1686 2001-11-23 Matthias Clasen <matthiasc@poet.de>
1688 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
1689 gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo
1690 fixes already mentioned in ChangeLog entry on 2001-11-14.
1692 * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
1694 2001-11-23 Hans Breuer <hans@breuer.org>
1696 * gdk/win32/gdkfont-win32.c (gdk_font_from_description) :
1697 reflect Pango API change
1699 * gtk/gtk.def : updated externals
1701 * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use
1702 g_return_val_if_fail() to avoid 'function must return a value'
1704 * gtk/gtkrc.c : added spaces to fix small coding style issues
1705 * gtk/gtkwidget.c : ... and linebreaks. Also a static for
1706 'static correctness'
1708 * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
1709 because they only can be build on win32 after applying my patch
1711 Wed Nov 21 22:55:37 2001 Tim Janik <timj@gtk.org>
1713 * gtk/gtkbutton.c (gtk_button_map): raise event window afte
1714 children, in order for the input pnly window to stay *above*
1717 Wed Nov 21 22:44:27 2001 Tim Janik <timj@gtk.org>
1719 * tests/testtreeview.c: make hackery worse ;) by checking fundamental
1720 type walks againts G_TYPE_FUNDAMENTAL_MAX.
1722 * tests/prop-editor.c: disable type hackery.
1724 Wed Nov 21 17:41:39 2001 Owen Taylor <otaylor@redhat.com>
1726 * gdk/gdkimage.c (gdk_image_get): Fix problem with
1729 Wed Nov 21 17:01:25 2001 Owen Taylor <otaylor@redhat.com>
1731 * gtk/gtkcellrenderer.h gtk/gtktreemodel.h
1732 gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
1733 trailing commas in enum declarations.
1735 Wed Nov 21 15:21:26 2001 Owen Taylor <otaylor@redhat.com>
1737 * configure.in (GTK_MICRO_VERSION): Version 1.3.11,
1738 interface, binary age 0.
1742 * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
1745 * gtk/gtkmain.h: Remove unused and misnamespaced
1746 get_gtk_win32_directory() prototype.
1748 * gdk/gdkimage.c (gdk_image_get): Fix parameter names
1751 * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
1752 gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
1755 * gdk/gdkevents.c (gdk_event_get_coords)
1756 gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
1757 gtk/gtkdnd.c (gtk_drag_set_icon_stock):
1758 Fix parameter names in docs.
1760 * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
1761 (#64961, Akira Tagoh)
1763 Wed Nov 21 11:41:29 2001 Owen Taylor <otaylor@redhat.com>
1765 * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
1767 * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
1769 * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
1771 * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
1772 back to gtk_accel_groups_from_object(), change @acceleratable
1773 parameter to gtk_accel_groups_activate() accordingly.
1775 * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
1776 left-over comment about quark return.
1778 * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
1780 * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
1781 (Patch from Matt Wilson)
1783 * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
1784 object is finalized.
1786 Tue Nov 20 21:25:08 2001 Tim Janik <timj@gtk.org>
1788 * applied patch from owen to get rid of accel map notifiers.
1789 changed things to fix reentrancy and API as discussed on gtk-devel.
1791 * gtk/gtkaccelgroup.[hc]:
1792 (gtk_accel_group_finalize): unregister this accel group from all
1794 (accel_closure_invalidate): handle invalidation of closures by
1795 disconnecting their accelerators.
1796 (quick_accel_add): move closure connection and changed notification
1797 into this function to reduce code duplication. don't emit change
1798 notification on closurers without accelerators.
1799 (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
1800 for a GtkAccelGroupEntry.
1801 (gtk_accel_group_connect): get rid of the accel_path_quark argument.
1802 (gtk_accel_group_connect_by_path): new function to add accelerators
1804 (gtk_accel_group_disconnect_closure): new function, disconnect a
1805 closure from of an accel group.
1806 (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
1807 accel_mods pair and remove them.
1808 (_gtk_accel_group_reconnect): new function that basically does
1809 gtk_accel_group_disconnect_closure() and
1810 gtk_accel_group_connect_by_path() once an accel path changed.
1811 (gtk_accel_groups_disconnect_closure): remove this, there's
1812 gtk_accel_group_disconnect_closure().
1814 * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
1816 (_gtk_accel_path_is_valid): make this non-static for
1817 gtkwidget.c and gtkaccelgroup.c assertions.
1818 (gtk_accel_map_add_notifer): removed this function.
1819 (gtk_accel_map_remove_notifer): same.
1820 (_gtk_accel_map_add_group):
1821 (_gtk_accel_map_remove_group): (un-)register accel groups, with
1822 accel paths for correct propagation.
1823 (gtk_accel_map_add_entry): return void.
1824 (gtk_accel_map_lookup): return gboolean instead of GQuark.
1826 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
1827 set accel_path on widgets.
1829 * gtk/gtkwidget.[hc]:
1830 (accel_path_changed): got rid of this, changes are handled by
1831 accel maps internally now.
1832 (_gtk_widget_set_accel_path): get things to work without notifiers.
1833 (gtk_widget_list_accel_closures): list accel closures of a widget.
1835 * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
1837 2001-11-20 Matthias Clasen <matthiasc@poet.de>
1839 * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
1841 Tue Nov 20 23:01:01 2001 Kristian Rietveld <kristian@planet.nl>
1843 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
1844 replace gboolean free_last in the function parameters with
1845 gint depth. Changes to reflect new situation.
1847 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1848 replace gboolean free_last, with gint depth, add gint current_depth.
1849 Changes to reflect new situation.
1851 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
1852 to reflect new situation
1854 * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
1856 Tue Nov 20 12:37:10 2001 Owen Taylor <otaylor@redhat.com>
1858 * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
1859 where notebook gap was double shifted by allocation.x/y
1861 * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
1864 Tue Nov 20 14:49:59 2001 Tim Janik <timj@gtk.org>
1866 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
1867 allocation to be relative to paned->allocation, now
1868 that this is a NO_WINDOW widget.
1869 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
1871 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
1872 needs to be a boxed property.
1874 Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
1876 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
1877 Use the widget's state when drawing the indicator, as
1878 in GtkCheckButton. This gives us color changes for
1879 un-prelighted checkbuttons. (#63308, Matt Wilson)
1881 Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
1883 (Fixes related to #64428, Michael Meeks)
1885 * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
1886 widget, so it gets mapped again properly when we
1889 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1890 plug->socket_window.
1892 * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
1893 socket_window to NULL, not FALSE.
1895 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1896 socket->same_app to TRUE. (#64612)
1898 Mon Nov 19 15:50:41 2001 Owen Taylor <otaylor@redhat.com>
1900 * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add
1901 gtk_fixed_set/get_has_window() to remove criticism
1902 about GTK_WIDGET_SET_FLAGS() hacks.
1904 2001-11-19 Michael Natterer <mitch@gimp.org>
1906 * gtk/gtknotebook.c: show notebook->event_window with
1907 gdk_window_show_unraised(), so it doesn't catch the events which
1908 should go to the tab widgets first.
1910 Mon Nov 19 15:30:51 2001 Jonathan Blandford <jrb@redhat.com>
1912 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
1913 "resizable" property, to get rid of the
1914 GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
1915 (gtk_tree_view_column_set_resizable): New function to set resizable.
1916 (gtk_tree_view_column_set_resizable): getter.
1918 * tests/testtreecolumns.c (add_clicked): modify for above change.
1920 * Makefile.am (install-data-hook): remove old .pc files before
1921 installing the new one. We used to symlink this, and it will
1924 2001-11-19 Havoc Pennington <hp@pobox.com>
1926 * tests/testtext.c (fill_example_buffer): put in a test for
1927 negative indentation values
1929 Mon Nov 19 14:08:18 2001 Owen Taylor <otaylor@redhat.com>
1931 * gtk/gtklabel.c (gtk_label_init): Change default for
1932 justify to GTK_JUSTIFY_LEFT. Assuming that multiline
1933 labels are most often wrapped labels, this gives better
1934 compatibility with GTK+-1.2, where justification was
1935 ignored for wrapped labesl and is a more sensible
1936 default in any case. (#64489)
1938 * gtk/gtklabel.c (gtk_label_class_init): Fix default
1939 for wrap property to FALSE.
1941 2001-11-19 jacob berkman <jacob@ximian.com>
1943 * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
1945 Mon Nov 19 13:56:45 2001 Owen Taylor <otaylor@redhat.com>
1947 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
1948 RevertToParent, not RevertToNone. (#64613,
1951 Mon Nov 19 12:28:02 2001 Owen Taylor <otaylor@redhat.com>
1953 * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
1954 and label_yalign need to be float properties to
1955 correspond to GTK+-1.2, to gtk_frame_set_label_align,
1956 and to the types of the xalign and yalign properties of GtkMisc.
1957 (#63484, Vitaly Tishkov)
1959 Mon Nov 19 12:24:30 2001 Owen Taylor <otaylor@redhat.com>
1961 * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
1962 of plug_added vfunc. (#64408, Jeff Franks)
1964 Mon Nov 19 12:07:20 2001 Owen Taylor <otaylor@redhat.com>
1966 * configure.in (deps): Undef HAVE_STDLIB_H before
1967 checking for jpeg, because jconfig.h has this
1968 in it too (%#$@!). Fix from Matthias Clasen, #64500.
1970 Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
1972 * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
1973 memory leak when retrieving atom names. (Michael Meeks,
1976 2001-11-18 Alex Larsson <alexl@redhat.com>
1978 * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
1979 Update to new Pango API.
1981 Sun Nov 18 19:47:29 2001 Owen Taylor <otaylor@redhat.com>
1983 * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
1984 GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
1985 GTK_OBJECT_DESTROYED() check macro.
1987 * gtk/gtkbindings.c (gtk_bindings_activate): Remove
1988 instances of GTK_OBJECT_DESTROYED() that weren't
1991 * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
1992 for a connection to ::destroy.
1994 Sun Nov 18 18:18:11 2001 Owen Taylor <otaylor@redhat.com>
1996 * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
1997 have been since the beginning, but as special hack,
1998 allow clearing the NO_WINDOW flag to get a window widget.
2000 Sun Nov 18 22:01:36 Kristian Rietveld <kristian@planet.nl>
2002 * gtk/gtktreestore.c: return TRUE when value changed, so
2003 row_changed is being emitted
2005 2001-11-18 Hans Breuer <hans@breuer.org>
2007 * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
2008 no label without op, even if it's a no-op.
2011 * gtk/makefile.msc.in : reflect marshaler split, some clean-up
2013 * config.h.win32.in : remove definition of HAVE_DIRENT_H
2014 * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
2015 required anymore, replace it.
2016 * gtk/queryimmodules.c : DIR -> GDir replacement, also
2017 getcwd() -> g_get_current_dir()
2019 * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
2020 Even 'noisy laugh' scolling appears to work, though I still can't
2021 claim to have fully understood what it is supposed to do ...
2023 Sat Nov 17 21:07:46 2001 Owen Taylor <otaylor@redhat.com>
2025 * gtk/gtkenums.h: Include glib-object.h instead of
2028 * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
2029 x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
2030 argument to the window_at_pointer() field of
2031 GdkPointerHooks. (Patch from Erwann Chenede)
2033 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
2036 2001-11-17 Matt Wilson <msw@redhat.com>
2038 * gtk/gtkenums.h: must include glib-object.h only
2040 Sat Nov 17 19:26:20 2001 Owen Taylor <otaylor@redhat.com>
2042 * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
2043 key bindings in order of visibility - mnemonics, then
2044 accelerators, then send key to the focus widget, then
2045 bindings on the GtkWindow.
2047 * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c:
2048 Removed the xoffset, yoffset fields of GtkLayout which were
2049 identically zero for compat with 1.2, but were no longer
2050 compatible with all uses of these fields in 1.2.
2052 * gtk/gtkwindow.c (gtk_window_set_default): Remove
2055 Sat Nov 17 19:08:13 2001 Owen Taylor <otaylor@redhat.com>
2057 * tests/testtreeview.c (gtk_tree_model_types_get_type):
2058 We no longer need to create the signals here ... they
2059 come from the interface.
2061 * gtk/maketypes.awk: Use GType, not GtkType in output.
2063 * gtk/gtktypeutils.h: Mark virtually all of this
2066 * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
2067 the only use of this function is the GtkArg using
2068 GtkCallbackMarshal, since destroy notification is
2071 Sat Nov 17 18:26:45 2001 Owen Taylor <otaylor@redhat.com>
2073 * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
2074 gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
2075 only for compatibility with GTK+-1.2; and deprecate it;
2076 put all marshalers we actually use into gtkmarshalers.list
2077 and use the _gtk_marshal_ prefix for these marshalers.
2079 2001-11-17 Murray Cumming <murrayc@usa.net>
2081 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
2082 The first parameters of the signals are now registered as
2083 GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
2085 2001-11-17 Tor Lillqvist <tml@iki.fi>
2087 * gtk-zip.sh.in: Build separate runtime and developer
2090 * gtk/gtk.def: Reflect recent accelerator-related changes.
2092 Fri Nov 16 19:44:35 2001 Owen Taylor <otaylor@redhat.com>
2094 * gtk/gtkwindow.c (gtk_window_set_default): Move
2095 notification of "has_default" to here, so it
2096 is safe to call gtk_window_set_default() instead
2097 of gtk_widget_grab_default().
2099 * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
2100 gtk_widget_grab_focus(), which then calls
2101 _gtk_widget_internal_set_focus(). This makes
2102 gtk_window_set_focus() a safe way of both setting
2103 and unsetting the focus widget.
2105 * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
2106 gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
2107 to find the toplevel.
2109 * gtk/gtkwindow.h: Move gtk_window_set_focus/default
2110 from the "internal functions" section.
2112 2001-11-16 jacob berkman <jacob@ximian.com>
2114 * tests/testgtk.c (create_radio_buttons): add some no-indicator
2117 * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
2118 initially active, also initially be depressed
2119 (gtk_radio_button_clicked): also update our depressed state
2121 Thu Nov 15 12:54:36 2001 Owen Taylor <otaylor@redhat.com>
2123 * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
2124 key press events not just to focus/window but also to
2125 intermediate widgets.
2127 * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
2128 to switch pages. (Needs some work on handling focus
2129 when switching pages.)
2131 Fri Nov 16 14:06:31 2001 Owen Taylor <otaylor@redhat.com>
2133 * gtk/gtknotebook.c: Fix child allocations to be relative to
2134 widget position and some drawing bugs.
2136 * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
2137 with reading uninitialized variable.
2139 Fri Nov 16 00:16:40 2001 Owen Taylor <otaylor@redhat.com>
2141 * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
2142 gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
2145 * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
2148 * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
2149 we are drawing in a window when drawing the paned handle.
2151 2001-11-16 Sven Neumann <sven@gimp.org>
2153 * demos/gtk-demo/appwindow.c
2154 * demos/gtk-demo/menus.c: reduce compiler warnings
2156 Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
2158 * demos/gtk-demo/main.c (button_press_event_cb): Remove
2159 unused callback to make things compile with
2160 gtk_tree_view_path_at_pos_change().
2162 Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
2164 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
2166 2001-11-15 Matthias Clasen <matthiasc@poet.de>
2168 * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
2170 Thu Nov 15 16:24:55 2001 Jonathan Blandford <jrb@redhat.com>
2172 * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
2173 to get a GdkWindow to compare event->window to.
2175 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
2176 the signal for lateral motion too, #64361
2178 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
2179 arg as it is useless, #64137
2181 Thu Nov 15 16:07:42 2001 Owen Taylor <otaylor@redhat.com>
2183 * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
2185 Thu Nov 15 14:19:34 2001 Owen Taylor <otaylor@redhat.com>
2187 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
2188 gdk_window_invalidate_maybe_recurse() for recursion.
2191 * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
2193 * gtk/gtkcontainer.c (gtk_container_expose): Call
2194 gtk_container_forall() not _foreach() to propagate,
2195 since we need to propagate exposes to internal children
2198 * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events):
2199 Remove the restriction of only being able to call these
2200 on window widgets, since we have lots of NO_WINDOW widgets
2201 with windows now; for add events, recurse over the children
2202 of widget->window to find one owned by the widget.
2204 * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
2205 window to catch events.
2207 * gtk/gtktogglebutton.[ch]: Remove the code for switching
2208 between NO_WINDOW and WINDOW widgets based on the mode.
2210 * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
2211 gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
2213 * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
2215 * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
2218 * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
2220 * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
2222 Thu Nov 15 11:59:35 2001 Owen Taylor <otaylor@redhat.com>
2224 * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
2225 "message_type" and "buttons" CONSTRUCT properties. (#64069)
2227 * tests/testsocket.c: Expand tests to add a "local passive
2228 child" (Test case for #64428)
2230 2001-11-14 jacob berkman <jacob@ximian.com>
2232 * gtk/gtkgamma.c (button_clicked_callback): create the label with
2235 2001-11-15 Sven Neumann <sven@gimp.org>
2237 * tests/testgtk.c: make it compile without warnings.
2239 2001-11-14 Alex Larsson <alexl@redhat.com>
2242 Don't recalculate the layout on each gkt_label_ensure_layout () for
2245 Wed Nov 14 17:40:23 2001 Jonathan Blandford <jrb@redhat.com>
2247 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
2248 the currently selected column when we get the column, #64380
2250 * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
2251 to cancel CellRendererText editting, #63613
2253 * gtk/gtkcellrenderertext.c: ditto
2255 * gtk/gtkcellrenderertext.h: formatting changes
2257 2001-11-14 Matthias Clasen <matthiasc@poet.de>
2259 * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
2261 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
2263 * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
2265 * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
2267 * gtk/gtklabel.c: Documentation fixes (#64452)
2269 2001-11-14 Daniel Egger <degger@fhm.edu>
2271 * gdk-pixbuf/io-xpm.c:
2272 (xpm_skip_whitespaces): Remove unused static function.
2273 (xpm_skip_string): Dito.
2274 (xpm_extract_color): Declare const variable const to avoid warnings.
2276 * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
2278 * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
2280 * gtk/gtksocket.c: Change type of mask to g_message to %ld for
2283 Wed Nov 14 15:14:48 2001 Owen Taylor <otaylor@redhat.com>
2285 * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
2286 out accidental commit of debugging timing code.
2288 2001-11-14 Havoc Pennington <hp@redhat.com>
2290 * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
2291 it doesn't move to a new line each time you press it
2293 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
2294 return value, #62987
2296 2001-11-14 Havoc Pennington <hp@redhat.com>
2298 * tests/testtextbuffer.c (main): bulk of the tests were commented
2301 * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this
2302 function work, should resolve #63426
2303 (gtk_text_iter_ends_line): return TRUE for the end iterator
2305 * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
2306 a couple things that might get cached in here.
2308 Tue Nov 13 21:00:59 2001 Jonathan Blandford <jrb@redhat.com>
2310 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
2311 "model" construct property for language bindings.
2313 * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
2314 function to let you set the column types of a GtkTreeStore for
2317 * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
2319 2001-11-13 Havoc Pennington <hp@redhat.com>
2321 * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
2322 including reference to bugzilla bug about how we should have
2323 a better way of positioning children
2325 * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
2327 * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
2328 size to side rects if they don't exist, #63438
2330 2001-11-13 Havoc Pennington <hp@redhat.com>
2332 * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
2333 properly replace selection with Return or Tab
2335 * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
2336 that didn't locate the end of the line correctly, should fix #63800
2338 2001-11-13 Havoc Pennington <hp@redhat.com>
2340 * gtk/gtktextview.c (gtk_text_view_size_request): add border width
2341 to requisition, request non-anchored children
2342 (gtk_text_view_size_allocate): handle border width, allocate
2343 non-anchored children
2344 (text_view_child_new_window): set the child as object data
2345 (gtk_text_view_move_child): allow children at negative
2346 coordinates, no reason why not
2347 (gtk_text_view_forall): make it copy the list of children before
2348 walking it, to avoid reentrancy issues
2349 (gtk_text_view_move_child): short-circuit if position is unchanged
2350 (changed_handler): only queue_resize if requisition has changed
2351 (gtk_text_view_init): don't redraw_on_allocate, since we can do
2352 a better job of invalidation ourselves
2354 * tests/testtext.c: add tests for the fixed-position children
2356 Tue Nov 13 19:51:43 2001 Tim Janik <timj@gtk.org>
2358 * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
2359 with gdk threads macro.
2361 Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org>
2363 * gtk/maketypes.awk: fix type utils generation on unix.
2365 * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
2368 * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
2369 removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
2370 gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
2371 gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
2372 gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
2373 introduced ::accel_changed signal for change notification, and
2374 gtk_accel_group_connect/disconnect to connect closures to accel groups.
2375 made gtk_accel_group_attach/detach and gtk_accel_group_activate private
2377 deprecated gtk_accel_group_ref/unref.
2379 * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
2380 to accel group changed notification and basically operate on closures.
2381 removed gtk_accel_label_get_accel_object and
2382 gtk_accel_label_set_accel_object.
2383 introduced gtk_accel_label_set_accel_closure, and for convenience,
2384 gtk_accel_label_set_accel_widget.
2386 * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
2387 which mostly moved into gtkaccelmap.[hc].
2388 removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
2389 and gtk_item_factory_print_func.
2391 * gtk/gtkmain.c: call _gtk_accel_map_init().
2393 * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
2394 that associates an accelerator path with menu items, through which
2395 persistent accelerator settings on menu items are enabled.
2397 * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
2398 paths of menu item can be default constructed to allow installation
2399 of accelerators on menu items that don't come with an accelerator
2402 * gtk/gtksettings.c: fix STRING type rc settings by special casing
2403 them appropriately in the parser.
2405 * gtk/gtksignal.[hc]: allow a class function offset of 0 for
2408 * gtk/gtkwidget.[hc]: accelerator API revamp.
2409 removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
2410 gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
2411 gtk_widget_(un)lock_accelerators.
2412 accelerators maintained through gtk_widget_add/remove_accelerator()
2413 are not runtime changable now, the correct sequence to setup a
2414 widget for runtime changable accelerators is now:
2415 gtk_accel_map_add_entry(accel_path, key, mods);
2416 _gtk_widget_set_accel_path(widget, accel_path, accel_group);
2418 * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
2419 group changes (as well as mnemonic changes) through the new signal
2422 Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org>
2424 * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
2425 GString->string conversions.
2427 Mon Nov 12 19:33:52 2001 Owen Taylor <otaylor@redhat.com>
2429 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
2430 if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
2432 2001-11-12 Matthias Clasen <matthiasc@poet.de>
2434 * gtk/gtktreeview.c: Documentation fixes. (#64377)
2436 * gtk/gtktreestore.c: Documentation fixes. (#64376)
2438 2001-11-11 Matthias Clasen <matthiasc@poet.de>
2440 * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
2441 gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c,
2442 gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.
2443 (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
2445 2001-11-10 Hans Breuer <hans@breuer.org>
2447 * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
2448 we know what we are talking about when asked for MINMAXINFO.
2449 Also some cleaning for !HAVE_DIMM_H etc.
2451 2001-11-10 Matthias Clasen <matthiasc@poet.de>
2453 * gtk/gtktreeviewcolumn.c: Fix docs for
2454 gtk_tree_view_column_set_sort_order. (#62647)
2456 * gtk/gtkcontainer.c: Fix docs for
2457 gtk_container_set_border_width. (#64139)
2459 * gtk/gtkcolorsel.c: Documentation fixes.
2461 2001-11-10 Hans Breuer <hans@breuer.org>
2463 * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
2464 don't have strcasecmp()
2466 * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need
2467 to remove the idle funcs in gtk_text_view_destroy (). To reduce
2468 code duplication wrap it in its own function and use it in
2469 gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
2471 * gdk/win32/gdkdrawable-win32.c : implement the finalize
2472 method like the X11 version does, allow to set_colormap NULL
2473 * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
2474 set_colormap, also some adaption to X11 version :
2475 (gdk_window_hide) call _gdk_window_clear_update_area
2476 (gdk_window_reparent) call _gdk_window_init_position
2478 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) :
2479 call gdk_window_resize() after all hints are set, because the
2480 window resizing process (WM_GETMINMAXINFO) takes all of them into
2483 * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
2485 * gdk/win32/gdkvisual-win32.c : register GdkVisual with
2486 sizeof (GdkVisualPrivate)
2488 * gdk/gdk.def gtk/gtk.def : upated externals
2490 * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
2491 gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
2492 from now on use make.msc from $(TOP)/glib/build/win32
2494 * gtk/stock-icons/makefile.msc : add stock_missing_image
2496 2001-11-08 Tor Lillqvist <tml@iki.fi>
2498 * README.win32: Add headers. Add section about ActiveIMM.
2500 * configure.in: Add --with-ie55 flag to specify the location of
2501 the "IE55 libs and headers" package downloadable from Microsoft,
2502 which contains, among other things, the Active IMM header dimm.h
2503 and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
2504 Require GLib 1.3.10.
2506 * config.h.win32.in: New version, produced by merging two
2507 configure-generated ones (for gcc and MSVC). Hopefully #defines
2508 the same flags that the previous, hand-written one, did.
2511 * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
2513 * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
2514 stuff. Remove unused GdkIOClosure.
2516 * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
2519 * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
2520 for uuid.lib. (Does it really have to be this hard to use an
2521 existing library with libtool? Probably I am missing something.)
2523 2001-11-08 Darin Adler <darin@bentspoon.com>
2525 * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
2526 typo where it says LEFT instead of CENTER.
2528 2001-11-07 Darin Adler <darin@bentspoon.com>
2530 * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
2531 (gtk_dialog_set_default_response): Add g_return_if_fail.
2533 Mon Nov 5 22:34:29 2001 Owen Taylor <otaylor@redhat.com>
2535 * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface):
2536 Add row_draggable() vfunc, and wrapper function.
2538 * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
2539 row_drop_possible take a GtkSelectionData, rather than
2542 * gtk/gtktreestore.c gtk/gtkliststore.c: Update for
2545 * gtk/gtktreeview.[ch]: Remove the row_draggable_func
2546 location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
2547 and rename them to enable_model_drag_source/dest.
2549 * gtk/treeviewcolumn.c: Add DND of columns between rows.
2550 Still can't drop _to_ the left tree, but other places
2553 * gtk/gtktreeview.c (unset_reorderable): Unset the
2554 reorderable property if unset/enable_model_drag_source/dest
2555 are called manually.
2557 * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible):
2558 Correct for change in depth count handling.
2560 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
2561 Pass in a expose area to gtk_tree_view_column_cell_render()
2563 2001-11-06 Havoc Pennington <hp@redhat.com>
2565 * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
2567 Tue Nov 6 10:13:16 2001 Owen Taylor <otaylor@redhat.com>
2569 * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
2571 2001-11-05 Havoc Pennington <hp@redhat.com>
2573 * gtk/gtktextview.c (gtk_text_view_paint): expose the child
2575 (gtk_text_view_realize): set parent window of child widgets
2576 (gtk_text_view_size_request): use child req to decide whether
2577 to invalidate layout, not widget->requisition
2579 * gtk/gtktextdisplay.c (render_layout_line): set
2580 shaped_width_pixels for NULL shape objects, so that we properly
2581 draw the "missing pixbuf/widget" thing
2582 (render_layout_line): don't draw the widget here
2583 (gtk_text_layout_draw): pass out a list of widgets that need exposing
2585 * demos/gtk-demo/textview.c (insert_text): add demo of child
2588 * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
2590 * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
2592 * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
2594 (gtk_text_view_value_changed): poke new X and Y into child allocations
2596 2001-11-06 Tor Lillqvist <tml@iki.fi>
2598 * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
2599 -specific directory on Windows, too (#63759).
2601 Mon Nov 5 12:46:44 2001 Owen Taylor <otaylor@redhat.com>
2603 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
2604 gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
2605 gdk/x11/gdkwindow-x11.c: Redo Xft support to go
2606 directly to Picture objects instead of using XftDraw.
2607 This fixes the problem where we weren't able to
2608 properly destroy XftDraw objects before destroying
2609 the accompanying windows, and probably improves
2610 efficiency a bit too. (#50214)
2612 Mon Nov 5 10:01:49 2001 Owen Taylor <otaylor@redhat.com>
2614 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position):
2615 Clamp max window width/height to 32767, not 32768 since
2616 we have to be able to deal with a dx/y of -32768 without
2617 getting a width of 65536 when guffaw scrolling.
2619 * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
2620 for the guffaw scrolling case, fixing some problems with
2621 copy-area case as well. Fix BadValue bug with moving windows
2624 * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
2625 clip in window structue before calling gdk_window_invalidate_region
2626 since that trims new invalidations to the window's visible
2629 * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities):
2630 Really set the static window gravity on the children, not
2631 repeatedly on the window.
2633 * gtk/testgtk.c: Add a torture test for big windows and
2634 gdk_window_scroll().
2636 Sun Nov 4 17:36:08 2001 Manish Singh <yosh@gimp.org>
2638 * acconfig.h configure.in: sigsetjmp is macroized in some places,
2639 so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
2641 Sun Nov 4 19:16:23 2001 Owen Taylor <otaylor@redhat.com>
2643 * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
2644 in terms of pango_color_parse().
2646 * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
2647 gdk_color_parse() implementations.
2649 Sun Nov 4 18:39:43 2001 Owen Taylor <otaylor@redhat.com>
2651 * gtk/gtksizegroup.c (gtk_size_group_set_mode):
2652 queue_resize_on_group with both the old and new mode, not
2653 just the new mode. (#60171, Nicolas Setton). Also, notify
2654 the "mode" property.
2656 Sun Nov 4 16:02:08 2001 Owen Taylor <otaylor@redhat.com>
2658 * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse()
2659 for use in "shallow invalidation" of a widget. (Windows belonging
2660 to the widget, but not to the widget's children)
2662 * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
2663 flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED. These flags are set
2664 up on ancestors up to the resize container on queue_resize. Size
2665 requests only actually take place if GTK_REQUEST_NEEDED, size
2666 allocations only take place if GTK_ALLOC_NEEDED or the size
2669 * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
2670 container->resize_widgets and the RESIZE_NEEDED flag since the
2671 above flags are sufficient to figure out what needs to be
2672 resized/reallocated. Remove code manipulating
2673 container->resize_widget.
2675 * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
2676 allows widgets to turn off being automatically invalidated is when
2679 * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
2680 a widget is resized or moved is "shallow" as described above -
2681 only the windows that need to be invalidated are invalidated.
2683 * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt:
2684 Make these widget's init functions call
2685 gtk_widget_set_redraw_on_allocate(widget,FALSE).
2687 * gtk/gtkwindow.c (gtk_window_configure_event): Call
2688 _gtk_container_queue_resize(), since we don't want
2689 redrawing. (Probably could be done for other
2690 calls to gtk_widget_queue_resize() in gtkwindow.c,
2691 but this is the most important one.)
2693 * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
2694 gtk_widget_queue_draw() - size_allocate() handles
2695 that as appropriate.
2697 * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
2698 of queue_clear() to avoid invalidating children.
2700 2001-11-04 jacob berkman <jacob@ximian.com>
2702 * gtk/gtkmain.c (find_module): don't free the module name until
2703 after we load the module
2705 Sat Nov 3 13:57:21 2001 Owen Taylor <otaylor@redhat.com>
2707 * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
2708 derivation instead of boxed derivation.
2710 * gtk/gtkmarshal.list: Remove some now unused marshallers.
2712 2001-11-04 Tor Lillqvist <tml@iki.fi>
2714 * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
2715 include yesterday, without really thinking), as that defeats the
2716 working of correct_libdir_prefix() (it becomes a no-op.). Add
2717 comment mentioning that. Thanks to Hans Breuer for noticing.
2719 2001-11-03 Daniel Elstner <daniel.elstner@gmx.net>
2721 * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
2722 signal argument (was GtkWidget*).
2724 * gtk/gtkwindow.c (gtk_window_frame_event),
2725 gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
2726 Fixed argument types as above, removed GTK_WINDOW casts and
2727 added some GTK_WIDGET casts instead.
2729 2001-11-03 Hans Breuer <hans@breuer.org>
2731 * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
2732 finalize to parent class to get removed from the toplevel_list.
2733 Should fix 'random' crashes of #63474.
2735 * gtk/gtktreemodelsort.c : chain finalize() to parent class
2737 2001-11-03 Tor Lillqvist <tml@iki.fi>
2739 * modules/input/Makefile.am: Use -no-undefined on Windows. Look
2740 for .dll or .so as appropriate as module suffix.
2742 * gtk-zip.sh.in: Use correct import library names.
2744 * gtk/gtk.def: Add a couple of missing entry points. (#63585)
2746 * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
2747 Windows to turn build-time paths from a gtk.immodules distributed
2748 as part of a binary package into runtime ones in the
2749 end-user-chosen installation directory.
2750 (gtk_im_module_init): Use it for module path and domain
2753 2001-11-02 Tor Lillqvist <tml@iki.fi>
2755 * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
2756 comma. Include gtkprivate.h for GTK_LIBDIR etc definitions on
2759 2001-10-30 Tor Lillqvist <tml@iki.fi>
2761 * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
2762 files. Configure on Win32 (running on Cygwin) thinks symlinks
2763 exist, but pkg-config is not necesarily a Cygwin program, and
2764 doesn't understand them.
2766 Fri Nov 2 16:45:17 2001 Jonathan Blandford <jrb@redhat.com>
2768 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
2769 a bit. I don't think it's completely correct yet, but it's
2772 Fri Nov 2 16:14:15 2001 Owen Taylor <otaylor@redhat.com>
2774 * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
2775 random + 5 for width and height. If people want padding,
2776 they should add padding. (Note the +5 isn't padding
2777 that will always appear - it just appears in the case
2778 where the widget is allocated it's requisition.)
2779 (#51018, Janet Davis)
2781 Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
2783 * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
2784 the structure for future expansion.
2786 Fri Nov 2 15:30:34 2001 Owen Taylor <otaylor@redhat.com>
2788 Patch from HideToshi Tajima (#51922)
2790 * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
2792 * gtk/modules/input/gtkimcontextxim.[ch]: Implement
2795 * gtk/modules/input/gtkimcontextxim.[ch]: If we have
2796 to destroy the input context because we change the
2797 client window or use_preedit, make sure we empty
2800 Fri Nov 2 14:55:53 2001 Owen Taylor <otaylor@redhat.com>
2802 * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
2803 gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
2804 proposed ordering of buttons with [OK] in the lower
2805 right hand corner. Patch from Gregory Merchan,
2808 Fri Nov 2 11:51:49 2001 Jonathan Blandford <jrb@redhat.com>
2810 * gtk/gtklabel.c (gtk_label_select_region_index): remove
2811 extraneous gtk_label_clear_layout (label)
2813 2001-11-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
2815 * tests/makefile.msc, gtk/makefile.msc.in: Removed
2816 -DGTK_DISABLE_COMPAT_H.
2818 * docs/Changes-2.0.txt:
2819 s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
2821 * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
2823 Fri Nov 2 10:21:03 2001 Owen Taylor <otaylor@redhat.com>
2825 * examples/**/Makefile.am: Convert to use pkg-config
2826 rather than gtk-config. (#53375, Skip Montanaro)
2828 2001-11-02 Matt Wilson <msw@redhat.com>
2830 * gtk/gtkdialog.c (find_child_by_response_id): remove totally
2831 broken unused, non-compiling, static function.
2833 Fri Nov 2 08:17:06 2001 Owen Taylor <otaylor@redhat.com>
2835 * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive):
2836 Iterate through children of the action area, not of
2837 the vbox. (#58278, Sergey Kuzminov)
2839 2001-11-01 Havoc Pennington <hp@pobox.com>
2841 * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
2842 order to remove a workaround in Nautilus that forced
2845 * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
2847 Thu Nov 1 20:09:31 2001 Owen Taylor <otaylor@redhat.com>
2849 * gtk/gtkrange.c: Patch from George Lebl to
2850 fix division by zero for full scroll bars. (#62114)
2852 Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
2854 * gtk/gtkmain.c (gtk_main_do_event): ref/unref
2855 around gtk_widget_event() if we are going to
2856 set a flag afterwards. (#63464)
2858 Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
2860 * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:
2861 Actually add the missing/broken image icon as the
2862 image for the "missing image" stock icon.
2864 Thu Nov 1 19:18:34 2001 Owen Taylor <otaylor@redhat.com>
2866 * demos/gtk-demo/stock_browser.c (do_stock_browser):
2867 Set a reasonable default height for the window.
2869 * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
2870 bug where subsequent '-' weren't converted to '_'.
2871 (#59550, Matthias Clasen)
2873 * demos/gtk-demo/appwindow.c (menu_items): Don't right
2874 justify the Help menu - just include a comment on
2875 how to do it. (#63539, Marius Andreiana)
2877 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't
2878 list GTK_ICON_SIZE_INVALID.
2880 * demos/gtk-demo/stock_browser.c: Show the biggest available
2881 size, not a fixed size. (Often reported, including #63539,
2884 Thu Nov 1 19:11:35 2001 Jonathan Blandford <jrb@redhat.com>
2886 * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
2889 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
2892 Thu Nov 1 16:54:00 2001 Owen Taylor <otaylor@redhat.com>
2894 * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
2897 Thu Nov 1 16:20:56 2001 Owen Taylor <otaylor@redhat.com>
2899 * gtk/gtkimcontext.[ch]: Add:
2900 - A ::retrieve_surrounding signal that asks the widget for
2901 context around the insertion point.
2902 - A ::delete_surrounding signal that asks the widget to
2903 delete context aroudn the insertion point.
2904 - gtk_im_context_set_context() for widgets to set context
2905 around the insertion point in response to ::retrieve_context.
2906 - gtk_im_context_get_context() for context to get context
2907 around the insertion point
2909 * gtkmarshal.list: Add BOOL:INT,INT
2911 * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
2912 set_surrounding() methods, and the ::retrieve_surrounding /
2913 ::delete_surrounding signals.
2915 * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
2916 GtkIMContext::retrieve_surrounding / ::delete_surrounding
2919 Thu Nov 1 15:45:04 2001 Jonathan Blandford <jrb@redhat.com>
2921 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
2922 it's amazing how well things work sometimes, even when they're
2925 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2926 where you could try to collapse a node w/o it having children.
2928 (gtk_tree_view_class_init): remove Shift L<->R as they already
2929 existed for expand/collapse.
2931 Thu Nov 1 12:21:31 2001 Jonathan Blandford <jrb@redhat.com>
2933 * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
2934 found by Matt Wilson.
2936 Thu Nov 1 00:44:50 2001 Jonathan Blandford <jrb@redhat.com>
2938 * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
2939 Control, and Shift|Control L<->R, #63475
2941 Wed Oct 31 18:53:51 2001 Jonathan Blandford <jrb@redhat.com>
2943 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
2944 infinite loop noticed by yosh.
2946 2001-11-01 Michael Meeks <michael@ximian.com>
2948 * gtk/gtksocket.c (gtk_socket_unrealize): unset the
2949 GTK_REALIZED flag so we don't re-enter when we are
2950 destroyed from the plug side.
2952 Wed Oct 31 18:23:47 2001 Owen Taylor <otaylor@redhat.com>
2954 * gtk/gtkoptionmenu.c (gtk_option_menu_detacher):
2955 Add a "menu" property and notify on it. (#62798,
2958 * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
2959 gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}:
2960 Fix set_text to take a gchar, not a guchar, and to have
2963 Wed Oct 31 15:31:13 2001 Manish Singh <yosh@gimp.org>
2965 * gtk/gtkstock.c: fix typo to make it compile
2967 Wed Oct 31 17:27:20 2001 Jonathan Blandford <jrb@redhat.com>
2969 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
2970 the widget is insensitive, draw the text insensitively, #63306
2972 2001-10-31 Matthias Clasen <matthiasc@poet.de>
2974 * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
2976 Wed Oct 31 16:53:48 2001 Jonathan Blandford <jrb@redhat.com>
2978 * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
2979 gtk_selection_data_set_tree_row, #60218
2980 (gtk_tree_get_row_drag_data): rename
2981 gtk_selection_data_get_tree_row, #60218
2983 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
2984 get this right, after the third try, #63122.
2986 2001-10-31 jacob berkman <jacob@ximian.com>
2988 * gdk/gdkselection.h (GDK_TARGET_STRING):
2989 (GDK_SELECTION_TYPE_STRING): these should be 31, not 3. Hooray
2990 for Xatoms (and not using the XA_* macros)!
2992 Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
2994 * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
2995 gtk_window_get_focus() getter to determine the currently
2996 focused widget within the window. (#63145, request
2997 from Damian Ivereigh)
2999 Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
3001 * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
3003 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
3004 GTK_SELECTION_NONE enum.
3005 (_gtk_tree_selection_internal_select_node): ditto
3007 * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
3010 * gtk/gtkcellrenderertoggle.c: more yummy constness.
3012 * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
3013 if mode == GTK_SELECTION_NONE
3015 Wed Oct 31 14:05:17 2001 Jonathan Blandford <jrb@redhat.com>
3017 * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
3018 "cursor_changed" signal, #62850.
3020 2001-10-31 Matt Wilson <msw@redhat.com>
3022 * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
3023 allocating the treedatalist, zero it to make sure the values are
3024 cleared from any garbage that was in this chunk.
3026 2001-10-31 Murray Cumming <murrayc@usa.net>
3028 * gtk/cellrenderertext.h: "edited" default signal handler
3029 gchar* args are now const.
3030 gtk/cellrenderertoggle.h: "toggled" default signal handler
3031 gchar* arg is now const.
3032 Also changed other signal handlers for "edited" and "toggled" to
3033 have the same signature.
3035 Tue Oct 30 19:17:57 2001 Jonathan Blandford <jrb@redhat.com>
3037 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
3038 rewrite. Static models now totally work. I'm not 100% sure about
3039 row_inserted and row_changed, but I'll get those later.
3041 2001-10-30 Sven Neumann <sven@gimp.org>
3043 * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
3044 output for configure --help.
3046 2001-10-30 Havoc Pennington <hp@pobox.com>
3048 * gtk/gtktextview.c (changed_handler): Update the IM spot location
3049 here, if text was invalidated in the visible area, because the
3050 scroll offset doesn't normally change in that case, and the mark
3051 isn't set, just implicitly moved over as text is added/removed
3053 Mon Oct 29 19:18:35 2001 Jonathan Blandford <jrb@redhat.com>
3055 * gtk/gtkseparatormenuitem.c: Code cleanup.
3056 (gtk_separator_menu_item_class_init): Fix bugs in this code.
3058 2001-10-29 jacob berkman <jacob@ximian.com>
3060 * gdk/Makefile.am (LDFLAGS):
3061 * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
3062 LDFLAGS, so put win32 flags in here
3064 Mon Oct 29 15:41:58 2001 Jonathan Blandford <jrb@redhat.com>
3066 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
3067 I can't believe this took this long to fix.
3069 Mon Oct 29 13:54:49 2001 Jonathan Blandford <jrb@redhat.com>
3071 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
3074 Mon Oct 29 12:27:51 2001 Owen Taylor <otaylor@redhat.com>
3076 * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
3077 the focus to the fileop entry for create dir / rename
3080 Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
3082 * configure.in: Don't use AC_CHECK_FILE to check for a
3083 file since it always spits warnings about cross compilation,
3084 use -f instead. It's not like we cross compile properly
3087 * configure.in (gtktargetlib): Move call to AC_PROG_CC
3088 to suppress autoconf warning.
3090 * acconfig.h: Add some missing #undefs from recent
3093 Mon Oct 29 11:31:40 2001 Owen Taylor <otaylor@redhat.com>
3095 * m4macros/gtk-2.0.m4: Don't try to use pkg-config
3096 when we didn't find it. (#62944, Eric Lemings)
3098 * m4macros/gtk-2.0.m4: Fix problem with spaces around =
3099 sign in assignment. (#63209, Arkadiusz Miskiewicz)
3101 2001-10-29 Anders Carlsson <andersca@gnu.org>
3103 * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
3104 the buttons size request before using it. Fixes #61696.
3106 2001-10-29 Tor Lillqvist <tml@iki.fi>
3108 * README.win32: Updates.
3110 * gtk-zip.sh.in: New file, used to build distribution package for
3113 * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
3114 applicable with GDKVAR.
3116 * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
3119 * gdk/win32/gdkwin32.h
3120 * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
3121 X11 headers better, and to enable gdkwin32.h to be installed and
3122 included from applications, but not the *-win32.h headers.
3124 * gdk/win32/*.c: Corresponding small changes, simplifications of
3127 * gdk/win32/gdkregion-win32.c: Remove.
3129 * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
3131 * gdk/win32/gdkfont-win32.c
3132 * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
3134 * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
3135 GDK_NONE values into hash table.
3137 * gtk/gtk.def: Update.
3139 * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
3143 * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
3144 entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
3145 GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
3146 g_win32_get_package_installation_subdirectory() with the actual
3147 DLL name saved above. Redefine above directory name macros to call
3148 these functions. Remove some ifdefs.
3150 * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
3151 variable for export on Win32) also to the _vars file.
3153 Changes for autoconfiscated build on Win32, and addition of Win32
3154 backend to the related files:
3156 * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
3157 when forming DLL name in some files. Set MS_LIB_AVAILABLE is
3158 lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
3159 PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
3160 win32 target, using pangowin32. Don't use the
3161 -export-symbols-regex option on Win32, we use .def files to list
3162 exported symbols. Check <winsock.h> (for gethostname() in
3163 gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
3164 prevent premature m4 expansion.
3166 * acconfig.h: Add HAVE_WINTAB.
3168 * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
3169 macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
3170 MS_LIB_AVAILABLE, build MS import library. Install the import
3171 libraries. If HAVE_WINTAB, link with the Wintab library.
3173 * gdk/win32/Makefile.am: Actually enable building the win32
3174 objects here, not just list all files in EXTRA_DIST. Link in the
3175 compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
3176 copy the Wintab library into the .libs directory.
3178 * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
3179 name of the GDK DLL when fetching the icon. Use the HMODULE saved
3180 in gdk_dll_hinstance by DllMain.
3182 * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
3183 build/win32/lt-compile-resource script.
3185 * gdk/win32/rc/gdk.rc.in
3186 * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
3188 * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
3189 macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
3190 file. Install import libraries.
3192 2001-10-29 Anders Carlsson <andersca@gnu.org>
3194 * gtk/gtkiconfactory.c (get_default_icons): Fix build.
3196 2001-10-28 Hans Breuer <hans@breuer.org>
3198 * gdk/gdk.c gdk/gdkevents.c
3199 gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
3200 gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
3201 gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
3202 gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
3203 gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
3204 gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
3205 gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
3206 static correct-ness, underscore prefixing of library internal
3208 (applied the undisputed and the win32 part. Of the latter
3209 I'm probably the one who will change it back again, if Owen
3210 decides that the Gdk*Impl types should not be private to Gdk)
3212 * gdk/gdk.def : added the remaining exported functions
3214 2001-10-28 Matthias Clasen <matthiasc@poet.de>
3216 * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
3217 gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
3218 gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
3220 2001-10-28 jacob berkman <jacob@ximian.com>
3222 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
3223 gtk_settings_get_default() here as that requires an X connection
3224 (which breaks doc building with no X connection) and is not
3226 (gtk_color_selection_init): delay palette loading until realize
3228 (gtk_color_selection_realize): load the palette, and initialize
3229 the global palette if it hasn't been already
3231 * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
3232 visual/cmap fields of klass->info since they are gone
3233 (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
3234 (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
3235 (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
3237 * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
3239 (gtk_preview_get_visual):
3240 (gtk_preview_get_cmap): mark as deprecated
3242 * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
3245 Sun Oct 28 09:15:39 2001 Owen Taylor <otaylor@redhat.com>
3247 * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
3248 structure to have GObject not GtkObject as
3249 parent_instance. (Jeff Franks.)
3251 2001-10-27 Matthias Clasen <matthiasc@poet.de>
3253 * gdk/x11/gdkinput.c: Typo fix.
3255 2001-10-26 Havoc Pennington <hp@pobox.com>
3257 * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
3258 update_im_spot_location here explicitly
3259 (gtk_text_view_reset_im_context): don't update the spot location
3262 2001-10-27 Anders Carlsson <andersca@gnu.org>
3264 * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
3267 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range):
3268 Clarify that we're returning a spin button in the _new function.
3271 Fri Oct 26 20:55:57 2001 Owen Taylor <otaylor@redhat.com>
3273 * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST.
3274 Unfortunately, people apparently erroneously connect
3275 to ::clicked for GtkToggleButton and expect
3276 they know what happened in the default signal handler
3277 instead of appropriately connecting to notification
3278 signal ::toggled. When the revolution comes, such
3279 people will be first against the wall.
3281 We'll just have to go back to the old less-reliable
3282 set-it-back hacks for handling model-view check
3283 buttons and radio buttons. :-(.
3285 2001-10-27 Hans Breuer <hans@breuer.org>
3287 * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
3288 gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
3289 gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
3290 gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
3291 gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
3292 gtk/gtktreestore.c gtk/gtkvbbox.c :
3293 to simplify parsing for exported functions:
3294 - made implementation signature static, when the local
3295 prototype already was
3296 - put the functions return value on it's own line
3297 - added as space between the function name and the
3300 * gtk/gtk.def : added the remaining exported functions
3302 2001-10-27 Anders Carlsson <andersca@gnu.org>
3304 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
3305 Add note about width having to be greater than 0. This fixes
3308 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start):
3309 Fix docs to say previous instead of next.
3310 (gtk_text_iter_backward_word_start): Likewise.
3311 This fixes bug #62980.
3313 * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
3314 that the valid width is in range 0-65535 pixels. Fixes bug
3317 * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
3318 a dot in the documentation. Fixes bug #62632.
3320 * gdk/x11/gdkmain-x11.c: Replace int and guint with
3321 long and gulong in some places to make the code 64-bit
3323 (_gdk_windowing_init_check): Replace gint with gulong.
3324 This patch was made by George Lebl and fixes bug #62113.
3326 * tests/testgtk.c (create_range_controls): Don't set a
3327 fixed height on the hscale widget. This fixes "bug"
3329 (create_window_states): Set up destroy signals so that
3330 all windows will be destroyed when one is. This fixes
3333 2001-10-26 Anders Carlsson <andersca@gnu.org>
3335 * gtk/gtktreeview.c:
3336 (gtk_tree_view_class_init): Create new "indent_expander"
3339 (gtk_tree_view_get_arrow_xrange): Add a tree argument
3340 to the function since the xrange can change depending
3341 on where in the tree we are.
3343 (coords_are_over_arrow): Update function call to
3344 gtk_tree_view_get_arrow_xrange.
3345 (gtk_tree_view_draw_arrow): Likewise.
3347 (gtk_tree_view_real_expand_collapse_cursor_row):
3348 Call real_{expand|collapse}_row, so that we'll have an
3351 Fri Oct 26 20:13:36 2001 Kristian Rietveld <kristian@planet.nl>
3353 * tests/Makefile.am: fixed a small typo
3355 Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
3357 * demos/gtk-demo/list_store.c (create_model): Anders
3358 Carlsson suggested to use G_N_ELEMENTS here
3360 2001-10-26 Sven Neumann <sven@gimp.org>
3362 * gtk/gtkbutton.[ch]
3363 * gtk/gtkdnd.c: fixed inline comments
3365 * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
3367 2001-10-26 Hans Breuer <hans@breuer.org>
3369 * gdk-pixbuf/gdk_pixbuf.def :
3371 * gtk/gtk.def : updated externals
3373 * gdk/win32/gdkpixmap-win32.c : removed duplicate of
3374 gdk_window_lookup implementation. It already was in
3375 gdk/win32/gdkwindow-win32.c
3377 * gdk/win32/gdkproperty-win32.c : made it compile again
3378 after GdkAtom API change
3380 * gtk/gtk/makefile.msc.in : updated
3382 Wed Oct 24 11:36:33 2001 Owen Taylor <otaylor@redhat.com>
3384 * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
3385 require GLib 1.3.10.
3389 Thu Oct 25 16:27:29 2001 Jonathan Blandford <jrb@redhat.com>
3391 * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
3393 (_gtk_rbnode_rotate_right): Ditto.
3394 (_gtk_rbtree_node_mark_invalid): New function.
3395 (_gtk_rbtree_node_mark_valid): New function.
3397 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
3398 GObject, not a GtkObject.
3399 (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
3401 (gtk_tree_model_sort_row_deleted): ditto.
3402 (gtk_tree_model_sort_{un,}ref_node): Fix.
3404 * gtk/gtktreeview.c: Protean incremental reflow support (commented
3407 * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
3410 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3411 Important 1 line fix to fix a lot of refcounting woes.
3413 2001-10-25 Matt Wilson <msw@redhat.com>
3415 * gtk/gtktextview.c (gtk_text_view_destroy): call
3416 gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
3417 now invalidates) so that we remove our idle functions.
3418 (gtk_text_view_destroy_layout): remove the first_validate_idle as
3421 * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
3422 the 'indent' property is G_MININT to G_MAXINT. Don't use
3423 -G_MAXINT for the minimum of the 'rise' property, use G_MININT
3426 2001-10-24 Anders Carlsson <andersca@gnu.org>
3428 * gtk/gtktreeview.c:
3429 (gtk_tree_view_real_expand_row): add an animate argument
3430 (gtk_tree_view_real_collapse_row): likewise
3432 (gtk_tree_view_button_press), (gtk_tree_view_button_release),
3433 (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
3434 (gtk_tree_view_collapse_row): update functions that call
3435 real_{expand|collapse}_row to set the animate argument
3438 2001-10-24 Alex Larsson <alexl@redhat.com>
3440 * gdk/linux-fb/gdkfont-fb.c:
3441 Update to new Pango APIs
3443 * gdk/linux-fb/gdkproperty-fb.c:
3444 Update to new GdkAtom APIs
3446 * gdk/linux-fb/gdkwindow-fb.c:
3449 Mon Oct 22 20:07:21 2001 Jonathan Blandford <jrb@redhat.com>
3451 * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
3453 Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
3455 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
3456 s_path as a child path
3458 Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
3460 * gtk/gtktreemodelsort.c: more changes in an attempt to get
3461 it right. It's not yet ready for general consumption.
3463 * tests/treestoretest.c: add a button and entry for the new
3464 iter_change function
3465 (iter_change): new function, to test
3466 the row_changed signal implementation of the GtkTreeModelSort
3468 * tests/testtreesort.c: cleanups, changes to test more features
3469 of the GtkTreeModelSort at once
3471 2001-10-24 Havoc Pennington <hp@redhat.com>
3473 * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
3474 remove hack to strip off the bogus newline, since we killed the
3475 bogus newline; fixes #61779
3477 2001-10-24 Havoc Pennington <hp@redhat.com>
3479 * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
3480 create layout if we didn't have one
3481 (gtk_text_view_set_buffer): invalidate so we get the idle handlers
3482 as appropriate, avoids blanking the screen
3483 (gtk_text_view_invalidate): new function to do invalidation,
3484 containing old guts of invalidated_handler
3486 Wed Oct 24 10:29:47 2001 Owen Taylor <otaylor@redhat.com>
3488 * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
3491 Tue Oct 23 17:31:42 2001 Owen Taylor <otaylor@redhat.com>
3493 * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always
3494 set window->parent (except or the root window itself); if
3495 the window's parent is not a GdkWindow, or is a window of
3496 type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
3498 * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
3499 windows of type GDK_WINDOW_FOREIGN.
3501 2001-10-24 Havoc Pennington <hp@pobox.com>
3503 * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
3504 the front of a segment, use the "slow" technique for moving
3505 backward, so we don't mess up the any_segment field in the iter.
3508 * tests/testtextbuffer.c: add code to detect #57707, to avoid
3511 2001-10-23 Havoc Pennington <hp@redhat.com>
3513 * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
3514 if selection contains some editable text, #60975
3515 (gtk_text_view_scroll_to_iter): remove warning about scrolling
3516 prior to map; it should actually be OK to do so in many cases,
3517 it would be nice to warn about scrolling when many lines have
3518 height 0, but I don't know what to do about that. Perhaps
3519 move part of flush_scroll into this function? comment added
3522 2001-10-23 Havoc Pennington <hp@redhat.com>
3524 * gtk/gtktextview.c (changed_handler): Correctly keep the same
3525 text on the top of the screen, considering that the changed region
3526 may have overlapped the first paragraph. Should fix msw's "text
3527 widget scrolled to wrong place on map" bug, and probably some
3528 other scrolling cases as well.
3529 (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0,
3530 instead of some random value
3532 * gtk/gtktextview.c (gtk_text_view_class_init): actually override
3533 grab_focus, so #59708 is really fixed
3535 2001-10-24 Anders Carlsson <andersca@gnu.org>
3537 * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
3538 (popup_targets_received): Call append_action_signal with stock items
3540 * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
3541 (gtk_label_do_popup): Call append_action_signal with stock items
3543 * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
3544 (popup_targets_received): Call append_action_signal with stock items
3546 2001-10-23 Havoc Pennington <hp@redhat.com>
3548 * gtk/gtktextview.c (changed_handler): queue a resize here; will
3549 temporarily slow down the widget a lot, until we figure out how to
3550 optimize to avoid full redraw everytime we queue a resize.
3552 2001-10-23 Havoc Pennington <hp@redhat.com>
3554 * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
3555 0 and char_len == 0, bug #61729
3557 2001-10-23 Havoc Pennington <hp@redhat.com>
3559 * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
3560 return value, #61714 (Vitaly Tishkov)
3561 (gtk_text_iter_backward_sentence_starts): ditto
3562 (gtk_text_iter_backward_word_starts): ditto
3563 (gtk_text_iter_forward_word_ends): ditto
3564 (gtk_text_iter_forward_sentence_ends): ditto
3565 (gtk_text_iter_backward_cursor_positions): ditto
3567 2001-10-23 Havoc Pennington <hp@redhat.com>
3569 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
3570 fix from Dov Grobgeld, #61858
3572 2001-10-23 Havoc Pennington <hp@redhat.com>
3574 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
3575 Update IM spot location at appropriate times, #50626
3578 2001-10-23 Havoc Pennington <hp@redhat.com>
3580 * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
3581 on grab focus, unless it's caused by button click, #59708
3583 Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com>
3585 * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
3587 * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
3588 G_CONST_RETURN. (Murray Cumming)
3590 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
3591 Make G_CONST_RETURN.
3593 * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
3594 results of g_get_home_dir().
3596 * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
3597 copy. Storing the return from gtk_entry_get_text() is evil.
3599 * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
3600 gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
3601 gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
3602 gtk/gtksignal.c: Add const.
3604 * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
3606 * gtk/gtktreeview.c: Namespace object data keys to be safe, even
3607 if we are setting them on private widgets.
3609 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3610 Duplicate entry->text before setting it as object data.
3612 2001-10-22 Havoc Pennington <hp@redhat.com>
3614 * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
3615 up a char from the end iterator, fixes #61859 ("can't put cursor
3616 at the end of the buffer")
3618 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
3619 to work with delimiters other than newline.
3621 * tests/testtextbuffer.c: add some tests for get_chars_in_line,
3624 * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
3625 last line, since the newline is no longer counted.
3626 (gtk_text_iter_get_bytes_in_line): ditto
3628 2001-10-22 Havoc Pennington <hp@redhat.com>
3630 * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that
3631 #58290 would trigger if it reappeared, I think
3633 2001-10-22 Havoc Pennington <hp@redhat.com>
3635 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3636 add temporary code to dump btree contents on assertion failure
3639 * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
3640 assertions that we're getting the right end iter segment
3642 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3643 verify that we aren't on the end iterator after moving
3644 forward one segment - fixes return value in an obscure case.
3645 Also, some trivial code cleanup/rearranging.
3647 2001-10-22 Havoc Pennington <hp@redhat.com>
3649 * gtk/gtktextlayout.h: add a #error unless you define
3650 GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
3652 * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
3654 2001-10-22 Havoc Pennington <hp@redhat.com>
3656 * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
3659 2001-10-22 Havoc Pennington <hp@redhat.com>
3661 * gtk/gtktextview.c (gtk_text_view_get_window_type): fix
3664 2001-10-22 Havoc Pennington <hp@redhat.com>
3666 * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix
3669 Mon Oct 22 11:47:47 2001 Owen Taylor <otaylor@redhat.com>
3671 * gtk/gtklabel.c: Add cursor-position, selection-bound
3672 properties. (#62148, reported by Padraig O'Briain)
3674 * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
3675 to cursor_position. (1.3.x addition, text_position is an awful
3676 name.) Make cursor_position read-only to avoid sticky questions
3677 of interaction with selection_bound. (#62636, reported by
3680 Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com>
3682 Fixing popup menus to have "Paste" sensitized correctly. Original
3683 patches from Damian Ivereigh, much mangled.
3685 * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
3686 gtk_selection_data_targets_include_text(). (#60854)
3688 * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
3689 the clipboard has text" function gtk_clipboard_wait_is_text_available.
3692 * gtk/gtkentry.c: Only enable the paste item if the clipboard
3693 contains text. (#60973)
3695 * gtk/gtktextview.c: Only enable the paste item if the clipboard
3696 contains text. (#60975)
3698 2001-10-22 Havoc Pennington <hp@redhat.com>
3700 * gtk/gtktextview.c (gtk_text_view_class_init): rip out
3701 "height_lines" and "width_columns" properties, it doesn't make
3702 sense to set the size request on a text view really. #62103
3704 Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
3706 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
3707 g_node_depth is broken, and that it's not worth being consistent
3710 2001-10-22 Havoc Pennington <hp@redhat.com>
3712 * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
3714 (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
3715 change the two boolean args to a flags field, so we can extend
3716 to add case insensitive, regexp searches later. #61852
3718 Mon Oct 22 15:07:17 2001 Jonathan Blandford <jrb@redhat.com>
3720 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
3721 reflect reality, #62810
3723 Mon Oct 22 14:08:26 2001 Jonathan Blandford <jrb@redhat.com>
3725 * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
3727 * gtk/gtktreeview.c (size_allocate): Move to a different drawing
3728 system. Instead of having a window the size of the tree, we have
3729 a window the size of widget->allocation, and simply draw with the
3731 (coords_are_over_arrow): ditto. Move to window coordinates.
3732 (do_prelight): ditto
3733 (do_unprelight): ditto
3735 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3736 Minor fix from Kristian Rietveld to fix unsorted case.
3738 2001-10-22 jacob berkman <jacob@ximian.com>
3740 * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
3741 a PIXMAP cell (fixes crash when using PIXTEXT cells)
3743 Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
3745 * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
3746 (#58768, Vitaly Tishkov)
3748 * gtk/gtkobject.h: Deprecate with abandon.
3749 (#61942, Vitaly Tishkov, Matthias Clasen)
3751 * gtk/gtksignal.h: Deprecate everything.
3753 * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
3754 all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
3755 (#61942, Matthias Clasen)
3757 * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
3760 * gtk/gtkitemfactory.h: Deprecate compat functions
3761 for GtkMenuFactory code. (#62071)
3763 * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
3764 gdk_draw_text,gdk_draw_text_wc. (#62071)
3766 Mon Oct 22 10:12:08 2001 Owen Taylor <otaylor@redhat.com>
3768 * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
3769 g_thread_init(), we don't want to link to -lgthread if we don't
3772 Mon Oct 22 08:51:02 2001 Owen Taylor <otaylor@redhat.com>
3774 * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt:
3775 Add a function, gdk_threads_init() that must be explicitely
3776 called to enable the GDK thread mutex.
3778 2001-10-22 Jakub Steiner <jimmac@ximian.com>
3780 * gtk/stock-icons/stock_stop.png: no body parts
3782 Sun Oct 21 23:27:00 2001 Owen Taylor <otaylor@redhat.com>
3784 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
3785 problem with g_return_if_fail return value.
3787 * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
3788 virtual atom code from the gdk-multihead branch, removing the per-display
3789 part. Virtualizing atoms needs to be done now to prevent compat
3790 breakage in direct Xlib accessing code in the future. (#62208)
3792 * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
3793 gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
3795 * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
3796 an opaque pointer type so the compiler catches attempts
3797 to mingle it with X atoms.
3799 * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
3800 gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
3801 gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
3802 gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
3803 tests/testdnd.c,tests/testselection.c:
3804 Fix up for above atom changes.
3806 * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
3807 now have the ability to add custom predefines.
3809 * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
3810 Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
3811 to gtk_clipboard_get().
3813 * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
3814 for GdkAtom => pointer change.
3816 * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
3817 atoms, fix for GdkAtom => pointer change.
3819 Mon Oct 22 00:26:46 2001 Kristian Rietveld <kristian@planet.nl>
3821 * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
3822 new function spin_button_get_arrow_size() instead.
3824 * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
3825 arrow was hardcoded, it's now variable.
3829 Sat Oct 20 18:16:04 2001 Manish Singh <yosh@gimp.org>
3831 * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
3832 PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
3835 Sat Oct 20 19:38:16 2001 Owen Taylor <otaylor@redhat.com>
3837 * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
3838 in favor of g_signal_*, gtk_object_* in favor of
3841 Fri Oct 19 18:35:22 2001 Manish Singh <yosh@gimp.org>
3843 * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
3844 from GObject now, we have to use the g_object_* functions, not
3847 Fri Oct 19 22:46:54 2001 Kristian Rietveld <kristian@planet.nl>
3849 * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
3850 nailed down now (this code is not yet ready for general consumption)
3852 Fri Oct 19 13:44:51 2001 Manish Singh <yosh@gimp.org>
3854 * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
3857 Fri Oct 19 15:34:06 2001 Owen Taylor <otaylor@redhat.com>
3859 * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
3861 Fri Oct 19 15:08:30 2001 Owen Taylor <otaylor@redhat.com>
3863 * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
3864 modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
3865 imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
3866 GObject, not GtkObject. (#62621)
3868 Fri Oct 19 12:49:12 2001 Owen Taylor <otaylor@redhat.com>
3870 * tests/testsocket.c: Remove now useless include of unistd.h,
3871 fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
3873 Fri Oct 19 12:24:32 2001 Owen Taylor <otaylor@redhat.com>
3875 * gdk/linux-fb/gdkfont-fb.c: Fix up for change to
3876 Pango font API. #61933. (Untested, even for compilation.)
3878 Fri Oct 19 11:24:58 2001 Owen Taylor <otaylor@redhat.com>
3880 * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
3881 export gtk_disable_setlocale(). (Caught by Sven Neumann)
3883 2001-10-18 Havoc Pennington <hp@redhat.com>
3885 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
3887 2001-10-18 Havoc Pennington <hp@redhat.com>
3889 * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
3890 to GTK_RUN_LAST, #50239
3892 2001-10-18 HideToshi Tajima <hidetoshi.tajima@sun.com>
3894 * gtk/gtkimmodule.c (match_locale):
3895 Support "*" for all locales with least priority
3896 when to select default im module, #58201
3898 2001-10-18 Matthias Clasen <matthiasc@poet.de>
3900 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode):
3903 * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
3905 * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
3907 * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
3908 gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
3909 gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
3910 gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
3911 gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
3912 Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
3913 and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
3915 * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
3917 * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
3918 Don't restrict the width of the spinbutton entry field
3919 to 10 digits. (#58681)
3921 Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
3923 * tests/testtreeflow.c: new test program for the tree.
3925 Thu Oct 18 14:22:10 2001 Jonathan Blandford <jrb@redhat.com>
3927 * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
3928 reported by (Oleg Maiboroda), #62600
3930 2001-10-18 Michael Meeks <michael@ximian.com>
3932 * gtk/gtkentry.c (gtk_entry_set_property),
3933 (gtk_entry_get_property): impl 'text'
3934 (gtk_entry_class_init): add the 'text' prop.
3935 (gtk_entry_insert_text): notify 'text' changed.
3936 (gtk_entry_delete_text): ditto.
3938 2001-10-17 Matthias Clasen <matthiasc@poet.de>
3940 * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
3941 Documentation updates.
3943 Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
3945 * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
3946 in truncating length of text to MAX_SIZE. (Found by
3947 Padraig O'Briain, #62055)
3949 Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
3951 * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
3952 MNEMONIC_ACTIVATE; signal was changed a long time
3955 * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale):
3956 Fix wrong return statement. (Reported by HideToshi
3959 * gtk/gtklabel.h (struct _GtkLabelClass): Remove
3960 left over select_all vfunc.
3962 Tue Oct 16 15:50:03 2001 Owen Taylor <otaylor@redhat.com>
3964 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
3965 a utility function to translate coordinates relative to
3966 one widget's allocation to coordinates relative to another
3967 widget's allocation.
3969 * gtk/gtkradiobutton.c: Add a special ->focus() implementation
3971 - only accepts external focus if there is no active
3972 member of the group or the button is active.
3973 - makes arrow keys move the active button as well
3975 - make tab tab out directly.
3976 This makes a radio button group act as a single focus location.
3979 * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
3980 it was only a small optimization that didn't matter and made
3981 things more complicated.
3983 * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
3984 sorter for FOCUS_TAB as we did for the other focus directions,
3985 sort by center of widgets, not upper-left corner. (Shouldn't
3988 * gtk/gtkcontainer.c: Restructure code to remove duplicate code
3989 from the different types of focusing: encapsulate sorting the
3990 widgets for the focus direction into one routine
3991 (gtk_container_focus_sort()) and then share the work of moving the
3992 focus between the different focus directions.
3994 * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
3995 work correctly with focus chains containing non-immediate
3996 children. Sorting was being done using allocation coordinates for
3997 each widget in the focus chain, and if there were intermediate
3998 window-widgets, these allocations would not be in the same
4001 Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
4003 * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
4004 mnemonic_activate function to option menu.
4006 2001-10-15 Murray Cumming <murrayc@usa.net>
4008 * gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:
4009 Corrected the type names used in some calls to g_signal_new().
4011 Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org>
4013 * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
4014 specs, use g_pattern_spec_equal() instead of direct field accesses.
4015 upon compressing two equal paths of the same type, the resulting
4016 priority has to be the maximum.
4017 * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
4018 GtkPathPriorityType enum and make it a macro.
4020 2001-10-12 Matthias Clasen <matthiasc@poet.de>
4022 * gtk/gtkwidget.c: Fix some doc comments.
4024 Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
4026 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
4029 2001-10-11 Matthias Clasen <matthiasc@poet.de>
4031 * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
4032 Remove stale gdk backend includes.
4034 2001-10-10 Michael Meeks <michael@ximian.com>
4036 * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
4037 and value_in_list properties.
4038 (gtk_combo_set_value_in_list): notify change.
4039 (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
4041 2001-10-11 James Henstridge <james@daa.com.au>
4043 * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
4044 that gtk+ can be built with automake 1.5 while not breaking
4045 things for automake 1.4.
4047 Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com>
4049 * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
4052 * gtk/gtkmain.c (gtk_disable_setlocale): Add function
4053 to disable calling setlocale (LC_ALL, "").
4055 * gtk/gtkmain.c (gtk_set_locale): Indicate in the
4056 docs that this function is not typically useful.
4058 * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}:
4059 Automatically initialize GDK for the current locale
4060 on gdk_init(). Don't reset locale to C when
4061 XSupportsLocale() fails.
4063 * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
4064 useless checks for UTF-8 locale breakage that mattered
4067 * examples/calendar/calendar.c
4068 tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to
4071 * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
4072 gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
4074 Wed Oct 10 21:13:46 2001 Kristian Rietveld <kristian@planet.nl>
4076 * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
4080 Wed Oct 10 01:19:04 2001 Jonathan Blandford <jrb@redhat.com>
4082 * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
4083 new function, #61923
4084 (gtk_tree_selection_path_is_selected): Ditto
4086 Tue Oct 9 17:40:24 2001 Jonathan Blandford <jrb@redhat.com>
4088 * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
4089 not a GtkObject. Thanks andersca.
4091 * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
4093 Tue Oct 9 14:50:51 2001 Jonathan Blandford <jrb@redhat.com>
4095 * gtk/gtktreeviewcolumn.c
4096 (gtk_tree_view_model_sort_column_changed): fix broken code.
4098 2001-10-08 Matthias Clasen <matthiasc@poet.de>
4100 * gtk/gtkselection.c: s/succesfully/successfully/g
4102 2001-10-08 Havoc Pennington <hp@pobox.com>
4104 * demos/gtk-demo/stock_browser.c: remove unused enum
4106 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
4107 pass the current selection state of the node in to the user
4110 2001-10-06 Matthias Clasen <matthiasc@poet.de>
4112 * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to
4113 non-existent function gdk_x11_cursor_get_xid
4114 by gdk_x11_cursor_get_xcursor.
4116 Fri Oct 5 20:50:00 2001 Jonathan Blandford <jrb@redhat.com>
4118 * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
4121 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
4122 unref nodes, #okay61676
4124 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
4125 to the property; no need to clear the other columns. Also, we go
4126 to 'unsorted' if the model supports it.
4128 2001-10-05 Sven Neumann <sven@gimp.org>
4130 * demos/testpixbuf-save.c
4131 * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
4134 Fri Oct 5 19:06:07 2001 Kristian Rietveld <kristian@planet.nl>
4136 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
4137 destroy the search dialog
4139 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
4140 added check to prevent creation of a search dialog if there's
4143 * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
4144 it instead of "search-dialog" (when getting/setting the search dialog
4147 2001-10-05 Jakub Steiner <jimmac@ximian.com>
4149 * gtk/stock-icons/stock_broken_image.png: broken images icon
4151 2001-10-04 Havoc Pennington <hp@pobox.com>
4155 * gtk/gtksettings.c (gtk_settings_class_init): move the F10
4156 accelerator setting here...
4158 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
4159 because we try to use it when a menu bar hasn't necessarily been
4162 2001-10-03 Havoc Pennington <hp@redhat.com>
4164 * tests/testtextbuffer.c (logical_motion_tests): fix test case,
4165 it previously verified incorrect behavior
4169 * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
4171 (_gtk_text_btree_get_iter_at_line_char): don't return lines off
4173 (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
4175 (gtk_text_iter_forward_lines): if on the last line, move to end of
4178 * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
4179 don't return a line off the end
4181 Wed Oct 3 23:47:25 Kristian Rietveld <kristian@planet.nl>
4183 * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
4184 functions to do_insert_text and do_delete_text, add signals
4185 insert_text, delete_text and changed
4187 * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
4188 and changed. Updates to match new situation.
4190 * gtk/gtkspinbutton.c: updates to match new situation
4192 * gtk/gtkoldeditable.h: remove signals changed, insert_text
4195 * gtk/gtkoldeditable.c: updates to match new situation
4197 * gtk/gtktext.c: updates to match new situation
4201 2001-10-03 Havoc Pennington <hp@redhat.com>
4203 * gtk/gtktextiter.c (test_log_attrs): allow testing the end
4206 * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
4209 * tests/testtextbuffer.c (logical_motion_tests): updates
4211 2001-10-03 jacob berkman <jacob@ximian.com>
4213 * gtk/gtkwidget.c (gtk_widget_style_get_property):
4214 * gtk/gtkstyle.c (_gtk_style_peek_property_value):
4215 * gtk/gtksettings.c (apply_queued_setting):
4216 * gtk/gtkmain.c (gtk_init_check):
4217 * gtk/gtkcontainer.c (gtk_container_child_get_property):
4220 Wed Oct 3 20:29:29 2001 Kristian Rietveld <kristian@planet.nl>
4222 * gtk/gtktreemodelsort.[ch]: preparation for surgery
4223 * tests/testtreesort.c: ditto
4225 2001-10-02 Havoc Pennington <hp@redhat.com>
4227 Throughout: assorted docs
4229 * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
4230 gdk_window_set_geometry_hints() should be used instead.
4232 * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
4235 * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
4236 seem to exist in any .c files
4238 * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs,
4239 g_return_if_fail (pixel < colormap->size).
4241 Wed Oct 3 10:42:54 2001 Owen Taylor <otaylor@redhat.com>
4243 * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
4244 NULL for @target_list to mean, use
4245 gtk_drag_dest_get_target_list (widget).
4247 * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
4248 drop could hang when calling gtk_drag_finish with
4249 success == FALSE and del == TRUE.
4251 * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
4252 drops without a matching target found would propagate
4253 to the parent widget rather than being rejected.
4255 * gtk/gtktextview.c (gtk_text_view_drag_data_received):
4256 Use text_view->dnd_mark instead of mark name to be
4257 consistent with the rest of the code.
4259 * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
4260 pendantically correct for a drop-only-in-some-places
4261 widget. (Check whether you can insert in drag_drop,
4262 not just in drag_motion ... matters in theory, and
4263 for Motif drag and drop in practice.)
4265 * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from
4266 Damian Ivereigh to not allow drops on non-editable
4269 * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
4270 text to be moved from a non-editable entry.
4272 2001-10-03 James Henstridge <james@daa.com.au>
4274 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
4275 s/width/fixed_width/ in order to get things to compile.
4277 Wed Oct 3 00:37:09 2001 Jonathan Blandford <jrb@redhat.com>
4279 * gtk/gtkcelleditable.c: docs
4281 * gtk/gtktreemodel.h: more docs.
4283 2001-10-02 Havoc Pennington <hp@redhat.com>
4285 * gdk/x11/gdkwindow-x11.c: docs
4287 * tests/testtextbuffer.c (logical_motion_tests): add sentence
4290 Tue Oct 2 20:18:32 2001 Kristian Rietveld <kristian@planet.nl>
4292 * demos/gtk-demo/Makefile.am: add editable_cells.c,
4293 list_store.c and tree_store.c
4295 * demos/gtk-demo/appwindow.c: remove tearoff item from
4296 File menu, put menubar and toolbar in handle boxes.
4298 * demos/gtk-demo/genincude.pl: various changes to support trees
4300 * demos/gtk-demo/main.c: various changes to support trees
4302 * demos/gtk-demo/stock_browser.c: changed name of demo
4303 to Stock Item and Icon Browser, so geninclude.pl doesn't see
4306 * demos/gtk-demo/editable_cells.c: new file/demo
4307 * demos/gtk-demo/list_store.c: new file/demo
4308 * demos/gtk-demo/tree_store.c: new file/demo
4310 Mon Oct 1 16:05:44 2001 Owen Taylor <otaylor@redhat.com>
4312 * gtk/gtkrc.c gtk/gtksettings.c:
4313 g_string_printfa => g_string_append_printf.
4315 Mon Oct 1 16:08:23 2001 Jonathan Blandford <jrb@redhat.com>
4317 * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
4318 and destroy handler.
4320 * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
4322 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
4323 'start_editing' flag to select_cursor_row. Bug spotted by Manish
4324 Singh <yosh@gimp.org>.
4326 2001-10-01 Matthias Clasen <matthiasc@poet.de>
4328 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
4329 g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
4331 * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
4333 Mon Oct 1 14:07:02 2001 Jonathan Blandford <jrb@redhat.com>
4335 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
4336 scroll_to_cell delayed code to happen in size_allocate.
4338 * gtk/gtkstyle.c (gtk_default_draw_expander): change
4339 prelight/normal arrow drawing.
4341 * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
4343 * gtk/gtktreestore.c: refactor.
4345 Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
4347 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
4348 patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
4349 centers the child in relation to the to indicator height.
4351 Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
4353 * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
4356 Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
4358 * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
4359 property code using g_param_spec_int and changed from
4360 g_value_get_enum to g_value_get_int instead. Probably a better way
4361 to fix the problem :-)
4363 Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
4365 * gtk/gtkcellrenderertext.c changed "weight" property type from
4366 g_param_spec_int to g_param_spec_enum.
4368 Sat Sep 29 12:25:26 2001 Manish Singh <yosh@gimp.org>
4370 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
4371 fix: s/Wether/Whether/ in reorderable property description
4373 Thu Sep 27 16:46:36 2001 Jonathan Blandford <jrb@redhat.com>
4375 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
4376 start editing when you select with a keyboard.
4378 (gtk_tree_view_button_press_event): much more graceful now.
4380 * gtk/gtkstyle.c: Draw togglebutton better.
4382 2001-09-26 Havoc Pennington <hp@redhat.com>
4384 * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
4385 of passing non-stock label in to gtk_dialog_new_with_buttons
4387 * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
4390 * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
4393 * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
4394 exist, fall back to mnemonic label, not plain label, bug #61184
4396 Wed Sep 26 19:48:01 2001 Jonathan Blandford <jrb@redhat.com>
4398 * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
4399 stupid and emitting the signal every time.
4401 * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
4403 Wed Sep 26 16:35:59 2001 Owen Taylor <otaylor@redhat.com>
4405 Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
4407 * contrib/gdk-pixbuf-xlib/Makefile.am: install
4408 gdk-pixbuf-xlib-2.0.pc.
4410 Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
4412 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
4413 problem where menmonic wasn't removed properly when
4414 setting a label when there already is a label.
4415 Also, handle setting the tab label back to the same
4416 value. (#61160, #61161)
4418 * gtk/gtkentry.c (paste_received): Patch from
4419 Damian Ivereigh to replace selection if there is
4422 2001-09-25 Darin Adler <darin@bentspoon.com>
4424 * tests/.cvsignore: Ignore new test program.
4426 2001-09-25 Havoc Pennington <hp@redhat.com>
4428 * gtk/gtktextview.c: fix for #50317
4430 2001-09-25 Havoc Pennington <hp@redhat.com>
4432 * gtk/gtktextview.c (gtk_text_view_key_press_event): use
4433 gtk_text_iter_can_insert
4435 * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
4437 * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
4438 (gtk_text_iter_can_insert): new function to fix #60282, should
4439 also fix msw's "can paste into empty buffer" bug.
4441 * gtk/gtktexttag.c (gtk_text_tag_event): change type check for
4442 "event object," #59091
4444 * gtk/gtktextbtree.c: indentation fixes
4446 * gtk/gtktextiter.c (find_by_log_attrs): fixes
4448 Tue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com>
4450 * configure.in: Version 1.3.9, interface age 0, binary age 0.
4452 * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
4456 Mon Sep 24 11:59:09 2001 Owen Taylor <otaylor@redhat.com>
4458 * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
4459 function for drawing cursors between gtkentry/gtklabel/gtktextview.
4460 Should this be public? It has a bit of an odd interface, but
4461 custom editing widgets probably should be using it.
4462 Function will draw with wider width for taller cursors, and
4463 draws a little indicator arrow to indicate directoin for split
4466 * gtk/gtktextview.c: Add a "cursor_color" property.
4468 * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
4469 gtk_text_layout_draw().
4471 * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
4472 _gtk_draw_insertion_cursor().
4474 Tue Sep 25 11:22:23 2001 Owen Taylor <otaylor@redhat.com>
4476 * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
4477 the behavior where you could turn family_set (etc) back on
4478 and get back the values you had before.
4480 * demos/gtk-demo/stock_browser.c (id_to_macro): Use
4481 g_string_ascii_up() rather than looping through the
4484 Tue Sep 25 15:32:44 2001 Jonathan Blandford <jrb@redhat.com>
4486 * gtk/gtktreeviewcolumn.c
4487 (gtk_tree_view_column_set_cell_renderer): Removed
4488 (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0); Fixes 61012.
4490 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
4491 Patch from Detlef Reichl
4493 2001-09-25 Havoc Pennington <hp@redhat.com>
4495 * tests/testtextbuffer.c (line_separator_tests): Add tests for
4496 line separators, addresses bug #57428
4498 Tue Sep 25 12:34:42 2001 Jonathan Blandford <jrb@redhat.com>
4500 * gtk/gtkentry.c: Make a GtkCellEditable
4501 (get_widget_window_size): Change to let it honor size_allocate
4502 when a CellEditable.
4504 * gtk/gtktreeview.c: M-x clean-line-ends. Lots of focus and
4506 (gtk_tree_view_set_cursor): Now you can set the cursor
4507 horizontally, as well as start editing.
4509 * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
4510 code to look more like the other check buttons.
4512 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
4513 Change the way we calculate cell size.
4515 * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
4517 * demos/gtk-demo/sizegroup.c: Add mnemonics.
4519 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
4522 * gtk/gtkcellrenderertext.c: Change to be editable.
4524 * gtk/gtkcellrenderertoggle.c: Change to be activatable.
4526 * test/testtreesort.c: Fix misspelling
4528 * test/testreecolumns.c: Add mnemonics.
4530 * test/testreeedit.c: New test program.
4532 2001-09-25 Havoc Pennington <hp@pobox.com>
4534 * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
4535 etc. docs about how these are not going to do what you want for
4536 the X/win32 ports. Futile attempt to avoid a FAQ...
4538 2001-09-24 James Henstridge <james@daa.com.au>
4540 * gtk/gtkmarshal.list (VOID): add marshal function types.
4542 * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
4543 GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
4545 (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
4546 with no-op copy/free functions.
4548 * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
4549 GtkCTreeNode get_type function.
4551 2001-09-24 Havoc Pennington <hp@redhat.com>
4553 * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
4555 Get rid of the newline-that-could-not-be-deleted; buffers may
4556 now be zero-length. Much easier to fix than expected, once
4557 I figured out the right way to do it. However, there are
4558 various subtle bugs introduced by this that will have to get
4559 sorted out. Please use bugzilla.
4561 Mon Sep 24 15:09:08 2001 Owen Taylor <otaylor@redhat.com>
4563 * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
4564 response back from the window manager if our size hasn't changed
4565 since we won't get a response back from the window manager;
4566 there was code in there to do this, but it was in the wrong
4567 place so if the hints change and the size didn't we'd expect
4570 Also, optimize the position-only-changed case by running
4571 the resize queue immediately, and clean up some comments
4574 Mon Sep 24 12:48:25 2001 Owen Taylor <otaylor@redhat.com>
4576 * gtk/gtknotebook.h: Add a compat macro that got lost.
4578 * gtk/gtktreestore.c: Doc fixes.
4580 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
4581 leak for windows that receive events after being destroyed.
4582 (#60863, Joshua N. Pritikin)
4584 * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
4585 rather than gtk_container_queue_resize().
4587 * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
4588 gtk_container_queue_resize, gtk_container_queue_resize_widgets,
4589 gtk_container_child_composite_name. (#60217.)
4591 2001-09-22 Hans Breuer <hans@breuer.org>
4593 * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
4595 Sat Sep 22 16:50:34 2001 Kristian Rietveld <kristian@planet.nl>
4597 * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
4598 weight value should be an int
4600 Sat Sep 22 15:17:41 2001 Kristian Rietveld <kristian@planet.nl>
4602 * gtk/gtkmenu.c (gtk_menu_select_item): move most code
4603 to gtk_menu_scroll_item_visible(). Only call
4604 gtk_menu_scroll_item_visible() if the menu widget has been
4605 realized. Fixes bug #55310.
4607 2001-09-21 Havoc Pennington <hp@redhat.com>
4609 * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
4610 key press to IM context if cursor isn't in an editable location;
4611 bug #58425, patch from Hidetoshi Tajima
4613 2001-09-21 Havoc Pennington <hp@redhat.com>
4617 * gtk/gtktextbtree.c (gtk_text_btree_node_destroy):
4618 (_gtk_text_btree_unref): fix up mark memory management
4620 * gtk/gtktextmark.c (mark_segment_delete_func): ditto
4622 2001-09-20 Havoc Pennington <hp@redhat.com>
4624 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
4625 try to handle alignment here, because it's done by PangoLayout
4626 after we set the layout width. Fix from Dov.
4628 2001-09-21 Hans Breuer <hans@breuer.org>
4631 * gtk/gtk.def : updated externals
4633 * gtk/gtkmain.h : define get_gtk_win32_directoty ()
4634 * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
4635 Also handle that Win32 pathes cann't be hard-coded
4637 * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
4638 module, themes etc directory calculations
4640 * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
4641 >16 bit right. The size limit within Win9x appears _not_ to be 32767
4642 but slightly smaller ...
4644 * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid
4645 >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
4647 * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
4649 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4650 handling. I'm not sure if it is better now, but at least not worse
4652 * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
4654 * gdk/win32/gdkwin32.h : reflect recent API restrictions
4656 2001-09-21 Matt Wilson <msw@redhat.com>
4658 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
4659 radio_menu_item->group to NULL after removing it from the list, as
4660 it is no longer in the group. (#60869)
4662 * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
4664 2001-09-20 Havoc Pennington <hp@pobox.com>
4666 * configure.in (PANGO_REQUIRED_VERSION)
4667 (ATK_REQUIRED_VERSION): add variables and checks for specific
4668 versions of dependencies. Previously we didn't verify the
4669 Pango or ATk versions.
4671 2001-09-09 Havoc Pennington <hp@pobox.com>
4673 * gtk/gtktextiter.c: fool with indentation
4674 (gtk_text_iter_in_range): add g_return_if_fail
4676 Thu Sep 20 17:45:54 2001 Joshua N Pritikin <vishnu@pobox.com>
4678 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
4679 ref count on new tag to be 1. Update doc. (#60836)
4681 Thu Sep 20 16:20:47 2001 Owen Taylor <otaylor@redhat.com>
4683 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
4684 call to gdk_image_new_bitmap(). (#59094, reported by
4687 Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
4689 * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
4690 day, as well as the current month and year.
4691 (#59047, reported by Vitaly Tishkov)
4693 Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
4695 * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
4696 set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
4698 Thu Sep 20 18:00:56 2001 Kristian Rietveld <kristian@planet.nl>
4700 * tests/testgtk.c (struct OptionMenuItem): get rid of it,
4702 (build_option_menu): add func argument, connect ::changed
4703 signal to option menu instead of connecting the ::activate
4704 signal to the menu items,
4706 (toplevel): get rid of RADIOMENUTOGGLED macro,
4708 (list_toggle_sel_mode), (clist_toggle_sel_mode),
4709 (ctree_toggle_line_style), (ctree_toggle_expander_style),
4710 (ctree_toggle_justify), (ctree_toggle_sel_mode),
4711 (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
4712 use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
4714 (notebook_type_changed): merged standard_notebook(),
4715 notabs_notebook(), scrollable_notebook() and borderless_notebook()
4716 into notebook_type_changed()
4718 (create_list), (create_ctree), (create_notebook),
4719 (create_progress_bar): changed OptionMenuItem arrays into
4720 gchar * arrays. Removed "Extended" item where used.
4724 2001-09-20 Sven Neumann <sven@gimp.org>
4729 * gtk/gtkselection.c
4731 * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
4733 Thu Sep 20 11:19:42 2001 Owen Taylor <otaylor@redhat.com>
4735 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
4736 a missing pango_layout_iter_free ().
4738 Thu Sep 20 11:03:51 2001 Owen Taylor <otaylor@redhat.com>
4740 * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
4741 gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
4743 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
4744 the function definition so we don't accidentally rely on
4745 the compat #define from gtk_radio_menu_item_group.
4746 (#60782, Jeff Franks)
4748 Thu Sep 20 16:51:02 2001 Kristian Rietveld <kristian@planet.nl>
4750 * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
4751 incorrect values for top, right and bottom due to cut-and-paste
4752 bug. Pointed out by Vitaly Tishkov, fixes bug #59008
4754 Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
4756 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
4757 _NET_WM_PID and WM_CLIENT_MACHINE properties on each
4758 window, not just on the client leader. (#58463)
4760 Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
4762 * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
4764 * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
4765 non-public _gtk_menu_item_set_placement.
4767 * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
4769 Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
4771 * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c
4772 gdk/linux-fb/gdkcolor-fb.c:
4773 Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
4776 Wed Sep 19 16:12:16 2001 Owen Taylor <otaylor@redhat.com>
4778 * gdk/gdkpixbuf-render.c: Allow -1 for width/height
4779 to mean "width/height of pixbuf" (Patch from Matthias Clasen,
4782 Wed Sep 19 16:01:27 2001 Owen Taylor <otaylor@redhat.com>
4784 Patch from Frank Belew #59037 for Solaris compilation.
4786 * gtk/maketypes.awk: Change syntax slightly for a call
4787 to sub(), apparently making awk on Solaris happier.
4789 * gtk/gtktreeview.c: Remove C++ comments.
4791 Wed Sep 19 15:46:29 2001 Owen Taylor <otaylor@redhat.com>
4793 * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
4794 to handle '99% of the time. (#60473, reported by Christian Rose)
4796 * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
4797 which no longer exists. (#60379, reported by Vitaly Tishkov)
4799 Wed Sep 19 11:06:24 2001 Tim Janik <timj@gtk.org>
4803 * gdk/Makefile.am: kill EXTRA_DIST clearing.
4805 Wed Sep 19 02:50:40 2001 Tim Janik <timj@gtk.org>
4807 * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
4808 as its broken in automake 1.4, add explicit object rule to
4811 * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
4812 get rid of uneccessary stamps, group stuff more logically, and build
4813 sources due to object rules. fix srcdir!=builddir.
4815 Tue Sep 18 20:47:16 2001 Owen Taylor <otaylor@redhat.com>
4817 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix
4818 incorrect parameter to compute_double_length
4819 (#58680, patch from Matthias Clasen)
4821 Fixes for compilation with Forte cc. (#59734, Derek Rafter)
4823 * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
4825 * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
4826 for GDK_RELEASE_MASK to avoid warnings with Forte.
4828 * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
4831 2001-09-18 Alex Larsson <alexl@redhat.com>
4833 * gtk/gtkcheckbutton.c:
4834 * gtk/gtkradiobutton.c:
4835 Don't draw with GTK_STATE_ACTIVE.
4839 Draw lines between rows with base_gc[GTK_STATE_NORMAL].
4841 * gtk/gtktextdisplay.c:
4842 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4843 unfocused with base_gc [GTK_STATE_ACTIVE].
4846 Add select all menu-item.
4847 Default cursor color is red.
4848 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4849 unfocused with base_gc [GTK_STATE_ACTIVE].
4851 * gtk/gtklabel.[ch]:
4852 Add keynav + menu to selectable lables.
4853 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4854 unfocused with base_gc [GTK_STATE_ACTIVE].
4857 Add drag and drop support.
4860 (This was checked in earlier)
4861 New default values for text/base SELECTED and ACTIVE
4863 Tue Sep 18 23:51:49 2001 Tim Janik <timj@gtk.org>
4865 * configure.in: up version to 1.3.8, interface age 0,
4866 binary age 0, depend on glib 1.3.8.
4868 * NEWS: 1.3.8 updates.
4870 Tue Sep 18 18:46:54 2001 Jonathan Blandford <jrb@redhat.com>
4872 * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
4875 * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
4876 reason to call it beyond emiting the two signals.
4878 * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
4881 Wed Sep 12 11:21:14 2001 Owen Taylor <otaylor@redhat.com>
4883 * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
4884 gtk/gtktextview.c tests/testgtk.c: Fix up for changes to
4885 PangoFontDescription.
4887 * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
4888 gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
4891 * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
4893 * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
4894 direct access to style->font. Deprecate gtk_style_ref/unref.
4896 * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
4897 Remove gtk_style_ref/unref with g_object_ref/unref.
4899 * gtk/gtkcalendar.c: Remove leftover macros accessing
4902 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
4905 * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of
4908 Tue Sep 18 13:51:35 2001 Jonathan Blandford <jrb@redhat.com>
4910 * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
4911 "can_activate" properties in favor of
4912 GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
4913 and GTK_CELL_RENDERER_MODE_EDITABLE
4915 Tue Sep 18 12:12:43 2001 Jonathan Blandford <jrb@redhat.com>
4917 * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
4918 editable widgets. This function is private, and should only be
4919 used by GtkTreeView.
4921 2001-09-18 Matt Wilson <msw@redhat.com>
4923 * docs/Makefile.am (EXTRA_DIST): don't use += before =
4925 * docs/faq/Makefile.am (EXTRA_DIST): likewise
4927 * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
4929 * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
4930 (EXTRA_HEADERS): likewise
4932 * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
4933 (EXTRA_HEADERS): likewise
4934 (EXTRA_DIST): likewise
4935 (CLEANFILES): likewise
4937 * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
4939 * tests/Makefile.am (EXTRA_DIST): likewise
4941 * Makefile.am (install-data-local): changed to use
4942 install-data-hook, which runs after install-pkgconfigDATA, so that
4943 the pkgconfigdir will have been created and populated first.
4945 Mon Sep 17 17:39:52 2001 Jonathan Blandford <jrb@redhat.com>
4947 * gtk/gtkcelleditable.[ch]: Add editable interface. This should
4948 be the last big GtkTreeView API change.
4950 * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
4951 replace with "activate" and "start_editing". Also, added a
4952 "can_activate" and "can_edit" property.
4954 * gtk/gtktreeviewcolumn.c: modify to use above.
4956 2001-09-16 Alexander Larsson <alla@lysator.liu.se>
4958 * gtk/gtkoptionmenu.c: Handle scroll wheel events.
4960 Fri Sep 14 22:31:25 2001 Matthias Clasen <matthiasc@poet.de>
4962 * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
4963 icon instead of one with ugly white background.
4965 Fri Sep 14 22:26:01 2001 Matthias Clasen <matthiasc@poet.de>
4967 * demos/gtk-demo/stock_browser.c (id_to_macro): make
4968 the uppercasing work. (#59550)
4970 2001-09-14 Jakub Steiner <jimmac@ximian.com>
4972 * gtk/stock-icons/dialog_error.png:
4973 * gtk/stock-icons/dialog_question.png: more road signs
4975 2001-09-13 Jakub Steiner <jimmac@ximian.com>
4977 * gtk/stock-icons/dialog_question.png:
4978 * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
4981 Wed Sep 12 19:01:05 2001 Jonathan Blandford <jrb@redhat.com>
4983 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
4984 signals to make them more clear. Also, change ::range_changed to
4986 * gtk/gtktreemodel.c: Adjust to interface change
4987 * gtk/gtktreemodel.h: ditto
4988 * gtk/gtktreemodelsort.c: ditto
4989 * gtk/gtktreestore.c: ditto
4990 * gtk/gtkliststore.c: ditto
4991 * gtk/gtktreeview.c: ditto
4992 * tests/testtreecolumns.c: ditto
4993 * gtk/gtkmarshal.list: Actually remove a marshaller!
4995 2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
4998 Add support for Ctrl+Up/Down arrow to move cursor to beginning
4999 of previous/next paragraph. If within a paragraph cursor moves to
5000 beginning of that paragraph.
5002 2001-09-12 Jakub Steiner <jimmac@ximian.com>
5004 * gtk/stock-icons/dialog_question.png: replacing the shaky
5005 question mark with a sans-serif one.
5006 * gtk/stock-icons/stock_top.png, stock_bottom.png,
5007 stock_first.png, stock_last.png: using the new style arrows
5008 * gtk/stock-icons/stock_font.png: simple one to replace the ugly
5010 * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
5012 * gtk/stock-icons/stock_zoom*: anti-aliased
5013 * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
5014 '-' with a '_', removed the wrong files
5016 Sat Sep 8 16:19:02 2001 Owen Taylor <otaylor@redhat.com>
5018 * gtk/gtkmain.c: Implement a search path for GTK+ modules.
5020 * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
5021 in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
5022 than in gtk-2.0/major.minor.micro/<type>/. This
5023 works better for a search path for modules.
5025 * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
5026 gtk_binary_version variable holding major.minor.(micro-binary_age).
5028 * modules/input/Makefile.am (moduledir): Fix installation
5029 directory to match change in lookup location.
5031 * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll
5032 suffixes. Needs to be handled in g_module_build_path().
5034 * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
5037 Tue Sep 11 13:59:12 2001 Owen Taylor <otaylor@redhat.com>
5039 * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
5040 causing RC properties not to work.
5042 2001-09-11 Jakub Steiner <jimmac@ximian.com>
5044 * gtk/stock-icons/dialog-error.png: less drastic
5045 * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
5046 "STOP" is international enough.
5047 * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
5048 * gtk/stock-icons/stock_menu_properties.png: 16x16 version
5050 Mon Sep 10 21:26:24 2001 Joshua N Pritikin <vishnu@pobox.com>
5052 * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
5053 (add|remove)_selection_clipboard symmetric. (bug #59836)
5055 * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree):
5056 Avoid SEGV for empty tree. (bug #60243)
5058 Mon Sep 10 20:47:22 2001 Tim Janik <timj@gtk.org>
5060 * tests/testgtk.c (create_idle_test): slight fix for
5061 g_object_set() not usable for nesting anymore.
5063 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
5064 * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
5065 properties, supply ::shadow_type properties instead as most
5068 2001-09-10 Alex Larsson <alexl@redhat.com>
5070 * demos/gtk-demo/stock_browser.c:
5075 * gdk/gdkrectangle.c:
5076 * gtk/gtktypeutils.c:
5077 Update to use the new g_boxed_type_register_static API.
5079 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
5081 * gtk/gtktreestore.c:
5082 Fix looping in gtk_tree_store_init() waiting for zero random int.
5084 Mon Sep 10 16:55:49 2001 Tim Janik <timj@gtk.org>
5086 * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
5087 behaviour which havoc broke. they have to default to 1.0 for
5090 * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
5092 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
5094 * gtk/gtkstyle.c (_gtk_style_peek_property_value)
5095 Amend previous change to avoid runtime error in g_param_spec_ref()
5097 Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
5099 * gtk/gtkrc.c (insert_rc_property): Fix blank line
5102 Mon Sep 10 06:50:39 2001 Owen Taylor <otaylor@redhat.com>
5104 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
5105 do a lookup immediately after creating style->property_cache,
5106 since bsearch crashes on zero length for Solaris.
5107 (Found by Padraig O'Briain.)
5109 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
5111 * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
5112 Really return NULL if not set.
5113 (gtk_widget_init): Remove unused varaible.
5115 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
5118 Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
5121 2001-09-08 Havoc Pennington <hp@pobox.com>
5123 * gtk/gtkaccelgroup.c: add docs to functions that I can imagine
5124 people might want to use
5126 2001-09-08 Havoc Pennington <hp@pobox.com>
5128 * gtk/gtkalignment.c (gtk_alignment_class_init): default
5129 xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
5131 * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
5133 * gtk/gtktextiter.c: fix docs
5134 (gtk_text_iter_spew): get rid of this
5136 * gtk/gtklayout.c: docs
5138 * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
5139 to center image and label together, instead of having image on
5140 left and label centered, patch/suggestion from Jacob
5142 * gtk/gtkdialog.c: docs
5144 Sat Sep 8 14:19:49 2001 Jonathan Blandford <jrb@redhat.com>
5146 * gtk/gtkliststore.c: Write documentation
5147 * gtk/gtktreestore.c: Write documentation
5149 Sat Sep 8 13:53:09 2001 Owen Taylor <otaylor@redhat.com>
5151 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
5152 with GArray and bsearch(), to remove dependency on a still
5153 evolving interface that we want to keep private to glib/gobject.
5155 2001-09-08 Havoc Pennington <hp@pobox.com>
5157 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
5160 * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
5162 * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
5164 * gtk/gtksocket.c (gtk_socket_steal): docs fixes
5166 * gtk/gtkscrolledwindow.h: docs fixes
5168 * gtk/gtkimage.c (gtk_image_new): docs fixes
5170 Sat Sep 8 01:49:22 2001 Owen Taylor <otaylor@redhat.com>
5172 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a
5173 false alarm constness warning with a cast.
5175 * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
5176 for the inside-gdk case.
5178 Sat Sep 8 01:44:18 2001 Jonathan Blandford <jrb@redhat.com>
5180 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
5183 * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
5184 change models, #59899
5186 2001-09-07 Havoc Pennington <hp@pobox.com>
5188 * gtk/gtkmain.c: move some docs inline
5190 2001-09-07 Havoc Pennington <hp@pobox.com>
5192 * gtk/gtk.h: tsk tsk, jrb broke the build
5194 Fri Sep 7 20:45:29 2001 Jonathan Blandford <jrb@redhat.com>
5196 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
5197 Removed 'fill' attribute. It was silly b/c that was a property of
5198 the cell renderer, anyway.
5199 (gtk_tree_view_column_render): Actually render the packed
5201 * doc/tree-column-sizing.txt: initial devel documentation.
5202 * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
5203 * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
5205 * tests/testtreefocus.c: fix up to reflect above changes.
5206 * tests/testtreeview.c: ditto
5207 * demos/gtk-demo/stock_browser.c: ditto
5209 2001-09-07 Alex Larsson <alexl@redhat.com>
5211 * gdk/linux-fb/gdkcolor-fb.c:
5212 Removed unused function.
5214 * gdk/linux-fb/gdkdrawable-fb2.c
5215 * gdk/linux-fb/gdkfont-fb.c:
5216 Use PangoLanguage functions.
5218 * gdk/linux-fb/gdkinput.c:
5219 * gdk/linux-fb/gdkselection-fb.c:
5222 * gdk/linux-fb/gdkwindow-fb.c:
5223 Fix warning. Implement gdk_window_set_icon_list() and
5224 gdk_window_get_frame_extents(). (No icon support yet though.)
5226 * gtk/gtkwindow.c (gtk_window_get_position):
5227 If window->frame is set get the extents of it instead.
5229 Fri Sep 7 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
5231 * gtk/gtkwidget.c (gtk_widget_get_default_colormap):
5232 Make the default default colormap the GdkRGB colormap,
5233 not the system colormap.
5235 * gtk/gtkinvisible.c (gtk_invisible_init)
5236 gtk/gtkwindow.c (gtk_window_init): Set the current
5237 colormap, as returned by _gtk_widget_peek_colormap()
5240 * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
5241 to GTK+. Make it return %NULL instead of the default
5242 colormap if no colormap has explicitely been pushed.
5244 * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
5245 colormaps on ancestral widgets before defaulting the
5246 the system default colormap.
5248 * docs/Changes-2.0.txt: explain colormap changes.
5250 2001-09-07 Havoc Pennington <hp@redhat.com>
5252 * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes
5255 Fri Sep 7 18:17:47 2001 Owen Taylor <otaylor@redhat.com>
5257 * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm,
5258 make gdk_set_use_xshm a noop. Remove --no-xshm command line
5259 option. If we aren't autodetecting properly, we need
5260 to fix the problem, or at least make it an environment
5261 variable setting, to avoid problems with propagating
5262 to embedded children, plugins, etc.
5264 * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
5266 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
5267 (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
5268 New function to render a pixmap and mask for a particular colormap.
5270 * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
5271 gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
5272 of internal implementation of the same.
5274 2001-09-07 Havoc Pennington <hp@redhat.com>
5276 * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
5277 debug code that seems to have caused a breakpoint in valid cases
5279 * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
5280 pointer on the first view when adding the second view, fixes
5281 crash when closing gtk-demo text test with active selection
5283 * gtk/gtktextbuffer.c
5284 (gtk_text_buffer_remove_selection_clipboard): don't leave dead
5285 clipboards in the list of clipboards - probably fixes #59836
5287 Fri Sep 7 11:51:44 2001 Owen Taylor <otaylor@redhat.com>
5289 Make gdkx.h the only installed header from gdk/x11.
5290 All structures in gdk/x11 are opaque.
5292 * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
5293 Don't install gdk{drawable,pixmap,window}-x11.h.
5295 * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
5296 Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
5297 GdkVisualClass into C files.
5299 * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
5301 * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
5302 gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
5303 Add public functions to replace previously exported direct
5305 gdk_x11_colormap_get_{xdisplay,xcolormap}
5306 gdk_x11_cursor_get_{xdisplay,xcursor},
5307 gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
5308 gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
5309 gdk_x11_gc_get_{xdisplay,ximage}
5311 * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
5312 GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
5314 Fix a number of variables and functions that were exported
5315 "accidentally" from GDK.
5317 * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
5318 gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit,
5319 gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
5320 gdk_event_notify, gdk_queued_events, gdk_queued_tail,
5321 gdk_event_new, gdk_events_queue, gdk_events_unqueue,
5322 gdk_event_queue_find_first, gdk_event_queue_remove_link,
5323 gdk_event_queue_append, gdk_event_button_generate,
5324 gdk_debug_flags, gdk_default_filters, gdk_parent_root.
5326 * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c,
5327 gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
5328 gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks,
5329 gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
5330 gdk_use_xshm, gdk_input_ignore_core.
5332 * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
5333 #defines to namespace functions into the private _gdk_
5336 * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
5337 to replace gdk_parent_root exported variable. Adjust and
5338 deprecate GDK_ROOT_PARENT().
5340 * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
5341 GDK_ROOT_PARENT usage, remove includes of port-specific
5344 * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for
5345 _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core,
5346 gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
5348 * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
5349 docs/Changes-2.0.txt: Remove gdk_wm_protocols,
5350 gdk_wm_delete_window functions, gdk_wm_take_focus,
5351 use gdk_atom_intern() instead.
5353 * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
5354 gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h}
5355 gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
5357 Unexport gdk_selection_property, just use
5358 gdk_atom_intern ("GDK_SELECTION").
5360 * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}:
5361 Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type,
5362 GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate,
5363 GdkVisualprivate, gdk_x11_gc_flush.
5365 Make a number of public exports of variables into functions
5366 to increase encapsulation.
5368 * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h
5369 gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer,
5370 move to gdkinternals.h. Add gdk_device_get_core_pointer ().
5372 * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
5373 docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code,
5376 * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
5377 docs/Changes-2.0.txt:
5378 s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
5379 s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
5380 Add gdk_x11_get_default_xdisplay().
5382 * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c
5383 win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c
5384 gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class,
5385 Don't export gdk_progclass, move --class command line
5386 option and handling to common portion of GDK.
5388 Miscellaneous fixes:
5390 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
5391 g_return_val_if_fail that should have been g_return_if_fail.
5393 * gdk/gdkinternals.h gdk/gdkprivate.h: Move
5394 gdk_synthesize_window_state() to the semi-public gdkprivate.h.
5396 * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
5399 * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO:
5400 Remove unused gdk_key_repeat_disable/restore.
5402 * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c
5403 x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
5404 Remove unused gdk_null_window_warnings variable.
5406 * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
5407 it can be retrieved from the repository; it is too far
5408 from functional to be worth having people check out;
5409 it would be easier to start from scratch, I suspect.
5411 * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
5413 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
5414 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
5415 Fix some accidentally global variables and unused global variables.
5417 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
5418 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
5419 Fix some accidentally global variables and unused global variables.
5421 Add some space for future expansion to multihead.
5423 * gdk/gdkdrawable.h: Add four reserved function pointers
5424 for future expansion of GdkDrawableClass.
5426 * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
5427 where we can put a GdkScreen * later.
5429 2001-09-07 Havoc Pennington <hp@redhat.com>
5431 * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
5432 adjustments after validating destination yrange; fixes #53918
5433 (This may cause other issues, but I hope it won't)
5435 2001-09-05 Havoc Pennington <hp@redhat.com>
5437 * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
5438 line into start line, update the character counts in parent nodes;
5439 caused a bug when end and start line had different parent nodes.
5441 2001-08-30 Havoc Pennington <hp@redhat.com>
5443 * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
5444 assertion that tag is in a table
5446 Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
5448 * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
5449 g_strcasecmp on NULL strings. (#59058)
5451 2001-09-06 Alex Larsson <alexl@redhat.com>
5455 * gtk/gtkspinbutton.c:
5456 * gtk/gtktipsquery.c:
5457 Use GtkType/GType instead of uint.
5459 Tue Sep 4 18:13:43 2001 Jonathan Blandford <jrb@redhat.com>
5461 * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
5464 * gtk/gtktreestore.c (gtk_list_store_init): ditto
5466 * gtk/gtktreesortable.c: add docs.
5468 Tue Sep 4 09:37:19 2001 Owen Taylor <otaylor@redhat.com>
5472 * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove
5475 * modules/input/Makefile.am (install-data-local): Don't
5476 run gtk-query-immodules if DESTDIR is set.
5478 * NEWS: Various additions.
5480 Tue Sep 4 03:12:25 2001 Tim Janik <timj@gtk.org>
5482 * NEWS: updates for 1.3.7 release.
5484 Mon Sep 3 18:03:56 2001 Jonathan Blandford <jrb@redhat.com>
5486 * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
5487 handle default sort feature
5489 * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
5490 new function to handle default sort.
5491 (gtk_tree_sortable_has_default_sort_func): check if default sort
5494 * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func):
5495 handle default sort feature
5497 Sun Sep 2 20:32:36 2001 Jonathan Blandford <jrb@redhat.com>
5499 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
5500 vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
5503 Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
5505 * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
5506 vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
5509 * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
5512 Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
5514 * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
5515 so that we don't eternally update the keymap after we
5516 get a change notification.
5518 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
5521 Sun Sep 2 23:27:16 2001 Kristian Rietveld <kristian@planet.nl>
5523 * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
5524 it working. It mostly works now, although there're still a few issues
5527 * tests/testtreesort.c (main): changes to have a better test
5528 application for the GtkTreeModelSort.
5530 Sun Sep 2 23:19:07 2001 Kristian Rietveld <kristian@planet.nl>
5532 * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
5535 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
5536 gpointer search_data argument to function definition and
5537 prototype, to match GtkTreeViewSearchEqualFunc typedef.
5539 Sat Sep 1 21:57:27 2001 Kristian Rietveld <kristian@planet.nl>
5541 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
5544 Fri Aug 31 20:01:23 2001 Jonathan Blandford <jrb@redhat.com>
5546 * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
5548 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
5550 Wed Aug 29 20:40:58 2001 Owen Taylor <otaylor@redhat.com>
5552 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard):
5553 Instead of always mirroring the selection to a single PRIMARY
5554 selection, allow it to be mirrored to any number of clipboards.
5556 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove,
5557 just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
5559 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
5560 GtkClipboard argument, and for paste_clipboard, the
5561 @override_location argument from @paste_primary.
5563 * gtk/gtktextview.c: Adapt to above change.
5565 2001-08-30 Havoc Pennington <hp@redhat.com>
5567 * gtk/gtktextview.c (invalidated_handler): put validate idle at
5568 resize - 2 just for flexibility
5570 2001-08-30 Havoc Pennington <hp@redhat.com>
5572 * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
5573 object from the empty-child-anchor case by drawing a little box.
5575 * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
5576 if the child anchor has no anchored widgets - fixes #59328.
5578 Also, remove bizarre deletion of preedit string that seems to have
5579 gotten in here somehow.
5581 2001-08-30 Havoc Pennington <hp@redhat.com>
5583 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
5584 to #58420 from Hidetoshi Tajima and Matthias Clasen
5586 Wed Aug 29 17:28:04 2001 Jonathan Blandford <jrb@redhat.com>
5588 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5589 change color when the GtkTreeView loses focus.
5591 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
5594 * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
5596 2001-08-28 Havoc Pennington <hp@pobox.com>
5598 * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
5600 2001-08-28 Havoc Pennington <hp@pobox.com>
5602 * demos/gtk-demo/main.c (setup_default_icon): add default icon
5604 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
5606 (gtk_radio_button_new_with_label): warning fix
5608 * gtk/gtkdnd.c: used some random GtkImage private structs,
5609 update to reflect GtkImage changes
5611 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
5612 whether the hint is supported, just always set the icon. A task
5613 list might want to use it even if the WM doesn't, and the WM may
5614 change over time. Also, XDeleteProperty() if list == NULL.
5616 * gtk/gtkwindow.c (gtk_window_set_icon_list)
5617 (gtk_window_get_icon_list)
5618 (gtk_window_set_icon)
5619 (gtk_window_get_icon)
5620 (gtk_window_set_default_icon_list)
5621 (gtk_window_get_default_icon_list):
5624 * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
5626 * gtk/gtkimage.c: Implement property support, bug #59408
5628 * gtk/gtkcontainer.c (gtk_container_add): make the warning message
5629 on reparent-without-removing-first a bit more helpful.
5630 Let's just destroy this FAQ.
5632 Tue Aug 28 21:37:11 2001 Matthias Clasen <matthiasc@poet.de>
5634 * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
5635 instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
5637 Tue Aug 28 21:00:44 2001 Matthias Clasen <matthiasc@poet.de>
5639 * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
5640 of use_text_format to the end of the function. (#56447)
5642 Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
5644 * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
5645 only in response to an area_prepared signal.
5647 2001-08-28 Alex Larsson <alexl@redhat.com>
5649 * gtk/gtkwidget.c (gtk_widget_class_init):
5650 Make unrealize GTK_RUN_LAST.
5652 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
5654 * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
5655 with_label and with_mnemonic should create radio buttons, not
5658 Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
5660 * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
5661 * tests/treestoretest.c (make_window): ditto
5662 * demos/gtk-demo/main.c (create_tree): ditto
5663 * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
5665 Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
5667 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
5668 GTK selection types rather than GtkTreeSelectionMode.
5670 * docs/Changes-2.0: Add comment about selection change.
5672 Mon Aug 27 14:21:30 2001 Jonathan Blandford <jrb@redhat.com>
5674 * gtk/gtkenums.h (GtkSelectionMode): deprecate
5675 GTK_SELECTION_EXTENDED.
5677 * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
5678 Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
5680 * gtk/gtkctree.c: ditto
5682 * gtk/gtklist.c: ditto
5684 * gtk/gtktree.c: ditto
5686 Mon Aug 27 14:18:12 2001 Owen Taylor <otaylor@redhat.com>
5688 * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
5689 of typos in compat macros. (#59624, Skip Montaro)
5691 Sun Aug 26 20:00:00 2001 Owen Taylor <otaylor@redhat.com>
5693 * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
5696 (patch from ERDI Gergo <cactus@cactus.rulez.org>, #58920)
5698 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
5699 interface to be a standard setter from gtk_menu_item_right_justify.
5700 (gtk_menu_item_get_right_justified): a getter to go with the setter
5702 * gtk/gtkmenuitem.h: Add a deprecated compat macro for
5703 gtk_menu_item_right_justify.
5705 * demos/gtk-demo/menus.c tests/testgtk.c: Switch to
5706 gtk_menu_item_set_right_justified.
5708 2001-08-27 Jens Finke <jens@gnome.org>
5710 * gtk+.spec.in: Updated to match gpp requirements, reworked the
5711 files section to make it work with 1.3.x releases.
5713 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
5715 * gtk/gtkbutton.[ch]:
5716 Add properties for labels, mnemonics and stock items.
5717 Added C accessor functions for the properties.
5718 Removed deprecated button->child.
5720 * gtk/gtkradiobutton.c:
5721 * gtk/gtktogglebutton.c:
5722 Update to use the functions in GtkButton.
5724 * gtk/gtkcheckbutton.c:
5725 Update to use the functions in GtkButton.
5726 Changed size allocation of child. Now only gets as much
5727 space as it requests.
5730 Don't use GtkButton->child
5735 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
5738 * tests/Makefile.am:
5739 Ressurect the properties test.
5740 I don't care if it is inferior, I just want to test my property code.
5742 2001-08-25 Chema Celorio <chema@celorio.com>
5744 * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
5745 gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
5746 and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
5748 2001-08-24 Havoc Pennington <hp@pobox.com>
5750 * gtk/gtkcompat.h: remove gtk_menu_* compat defines;
5751 these are already in gtkmenu.h, and the copies
5754 Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
5756 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
5757 special-case bitmaps to allow no colormap
5758 (bitmap1): implement no-colormap bitmap-getting
5759 (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
5762 (rgb1a, rgb1): change the way we read the data out of the image,
5763 old way didn't seem to work quite right.
5765 I'm pretty sure a lot of the rgbconvert code is still broken.
5767 * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
5768 above position constraint (I really intended to do this before,
5769 don't know what's up with that)
5770 (gtk_XParseGeometry): shut up gcc
5772 * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
5773 and "0" should have been. remove the attempted 4-bytes-at-once
5774 optimization, it was totally broken.
5776 Sat Aug 25 19:02:39 2001 Owen Taylor <otaylor@redhat.com>
5778 * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
5779 on push to buttons (based on patch from Soeren Sandmann, #54720)
5781 - Add child_displacement_x/y style properties to control how far the
5782 child moves when the button is depressed.
5784 - Add non-exported function _gtk_button_set_depressed to clean
5785 up the handling of the in/out shadow and separate it frmo
5788 - Lots of code cleanup and simplification of state handling
5789 for GtkButton/GtkToggleButton.
5791 * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
5792 of button movement. testgtk + testgtkrc == test ugly GTK+, as always.
5794 Fri Aug 24 23:09:05 2001 Owen Taylor <otaylor@redhat.com>
5796 * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility
5797 and make gtk_image_new() take no arguments. The compiler will
5798 catch it, and it is vastly more useful than having
5799 gtk_image_new() be a deprecated alias for gtk_image_new_from_image().
5801 * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
5802 to add tearoff-title property (#51319, Lee Mallabone)
5804 Fri Aug 24 22:12:32 2001 Owen Taylor <otaylor@redhat.com>
5806 * gtk/gtkmenuitem.[ch]: Remove unused and useless function
5807 gtk_menu_item_configure(). (#58925)
5809 Fri Aug 24 16:03:45 2001 Jonathan Blandford <jrb@redhat.com>
5811 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
5812 "use_align" to give people the option to just make a cell visible.
5814 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
5815 we were scrolling past the end of the tree.
5817 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
5818 rename gtk_tree_view_column_pack_start_cell_renderer to
5819 gtk_tree_view_column_pack_start. Same for pack_end, and clear.
5821 Fri Aug 24 12:02:08 2001 Owen Taylor <otaylor@redhat.com>
5823 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
5824 a stray g_object_ref() left over from gtk_object_ref/sink.
5825 (Pointed out by Josh Pritikin.)
5827 Thu Aug 23 19:33:54 2001 Owen Taylor <otaylor@redhat.com>
5829 * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
5830 to gtk_container_get_children. Added deprecated compatibility
5831 macro. (Suggested by Vitaly Tishkov, #59051)
5833 * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
5836 Thu Aug 23 19:10:01 2001 Owen Taylor <otaylor@redhat.com>
5838 * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate
5839 gtk_menu_bar_append/prepend/insert, forgot to do this
5840 when we deprecated gtk_menu_append/prepend/insert.
5842 * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
5845 * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
5846 renamed by compat macro.
5848 * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
5849 gtk_font_selection_dialog_get_font(). (Suggested by
5850 Vitaly Tishkov, #59383)
5852 Thu Aug 23 18:23:31 2001 Owen Taylor <otaylor@redhat.com>
5854 * gtk/gtktexttag.c (gtk_text_tag_table_get_size):
5855 Rename from gtk_text_tag_table_size(). (#59366)
5857 Thu Aug 23 20:01:41 2001 Kristian Rietveld <kristian@planet.nl>
5859 * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
5860 gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
5861 gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
5864 Thu Aug 23 16:26:47 2001 Tim Janik <timj@gtk.org>
5866 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize):
5867 * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
5868 handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
5870 Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com>
5872 [ Patch from Sebastian Wilhelmi, 52790 ]
5874 * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
5876 * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
5877 Move compatibility macros from g[dt]kcompat.h to within
5878 #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
5880 * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
5882 * demos/Makefile.am demos/gtk-demo/Makefile.am
5883 docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
5884 tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
5886 * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
5887 testpixbuf.c}: Fix usages of deprecated functions.
5889 Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
5891 * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
5892 when changing models.
5894 Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
5896 * gtk/gtktreeview.c: Fix selection. I think it's all dandy now.
5897 We check the current event for modifiers rather than try to trap
5900 2001-08-22 Anders Carlsson <andersca@gnu.org>
5902 * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
5903 It's LIST_STORE, not LISTSTORE.
5905 Tue Aug 21 12:43:29 2001 Owen Taylor <otaylor@redhat.com>
5907 * gtk/gtk.h: Remove commented out gtkpacker reference.
5909 2001-08-21 Matthias Clasen <matthiasc@waldgeist.poet.de>
5911 * configure.in (all_loaders): Add tga loader,
5912 patch by Nicola Girardi. (#56067)
5914 Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>
5916 * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
5917 a little. More needs to be done tomorrow.
5919 Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
5921 * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
5923 Mon Aug 20 23:48:18 2001 Jonathan Blandford <jrb@redhat.com>
5925 * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
5926 reported by Kristian Rietveld <kristian@planet.nl> to handle row
5928 (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
5929 <kristian@planet.nl> to change destroy order.
5931 Mon Aug 20 11:39:44 2001 Jonathan Blandford <jrb@redhat.com>
5933 * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
5936 Sun Aug 19 03:22:59 2001 Jonathan Blandford <jrb@redhat.com>
5938 * gtk/gtkliststore.c: Fix up warnings, #58928.
5940 * gtk/gtktreeselection.h: Change signal prototype, #58647
5942 * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
5945 * gtk/gtkstyle.c: Actually prelight arrow, #50981
5947 2001-08-18 Hans Breuer <hans@breuer.org>
5949 * gdk/gdk.def : updated externals
5951 * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
5952 is required to get (at least) visible in entry fields. Some selections
5953 are really handled now - even on win32 - but copying via middle
5954 mouse button into a different app needs to wait ...
5956 * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
5957 mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
5959 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
5960 handling. I'm not sure if it is better now, but at least not worse
5962 * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
5963 with SetWindowPos () which allows more fine-tuning backing-store wise
5965 * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
5966 Also changed move/resize to be more like the X version.
5968 * gtk/gtk.def : updated externals
5970 2001-08-19 Sven Neumann <sven@gimp.org>
5973 * tests/testtreesort.c
5974 * tests/treestoretest.c: inserted some casts to get rid of compiler
5977 Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>
5979 * gtk/gtktreeviewcolumn.c
5980 (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
5982 * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
5983 (_gtk_tree_view_find_node): If *node is NULL,
5984 *tree should be NULL too.
5986 * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
5988 * tests/testtreecolumns.c: ditto
5989 * tests/testtreefocus.c: ditto
5990 * tests/testtreesort.c: ditto
5991 * tests/testtreeview.c: ditto
5992 * tests/treestoretest.c: ditto
5994 Sat Aug 18 04:34:31 2001 Jonathan Blandford <jrb@redhat.com>
5996 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
5997 signals; is_expander/is_expanded.
5999 * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
6002 * gtk/gtktreeview.c: set above properties.
6004 Sat Aug 18 23:01:33 2001 Owen Taylor <otaylor@redhat.com>
6006 * gtk/gtkwidget.h: Really remove set_default_style().
6008 * docs/Changes-2.0.txt: added a note about
6009 gtk_widget_push/pop/set_default_style.
6011 2001-08-18 Havoc Pennington <hp@pobox.com>
6013 * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
6014 hints_changed in addition to the other cases.
6015 (gtk_window_move_resize): include last position from configure
6016 notify in debug spew
6018 2001-08-18 James Henstridge <james@daa.com.au>
6020 * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
6021 second argument to the weak ref notify, cleaning up some uglyness.
6022 (gtk_accel_group_attach): remove and add the weak notifier when
6023 changing the accel groups slist.
6024 (gtk_accel_group_detach): same here.
6026 2001-08-17 Darin Adler <darin@bentspoon.com>
6028 * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
6029 missing parameters to utf8 functions to make it compile.
6031 Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
6033 * gtk/gtktreeprivate.h:
6034 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
6035 (gtk_tree_view_init), (gtk_tree_view_set_property),
6036 (gtk_tree_view_get_property), (gtk_tree_view_destroy),
6037 (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
6038 (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
6039 (gtk_tree_view_set_destroy_count_func),
6040 (gtk_tree_view_set_enable_search),
6041 (gtk_tree_view_get_enable_search),
6042 (gtk_tree_view_get_search_column),
6043 (gtk_tree_view_set_search_column),
6044 (gtk_tree_view_get_search_equal_func),
6045 (gtk_tree_view_set_search_equal_func),
6046 (gtk_tree_view_search_dialog_destroy),
6047 (gtk_tree_view_search_position_func),
6048 (gtk_tree_view_interactive_search),
6049 (gtk_tree_view_search_delete_event),
6050 (gtk_tree_view_search_button_press_event),
6051 (gtk_tree_view_search_key_press_event),
6052 (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
6053 (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
6054 * gtk/gtktreeview.h:
6055 Add heavily modified patch from Kristian Rietveld to handle
6056 interactive searching.
6058 Fri Aug 17 17:30:34 2001 Tim Janik <timj@gtk.org>
6060 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
6063 * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
6064 GtkMenuShell::selection_done, now that we have it, instead of
6065 ::deactivate so we're not tearing the menu apart and notify
6066 the user prematurely.
6068 Thu Aug 16 05:22:01 2001 Tim Janik <timj@gtk.org>
6070 * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
6071 window, clear window->need_default_position to avoid infinite loops.
6072 some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
6074 Wed Aug 15 12:36:55 2001 Tim Janik <timj@gtk.org>
6076 * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
6077 code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
6078 (gtk_tree_view_set_property): don't cast possible NULL objects.
6079 (gtk_tree_view_destroy): reset the model to NULL.
6081 * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
6082 parent_class handler.
6084 2001-08-17 Matthias Clasen <matthiasc@waldgeist.poet.de>
6086 * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
6088 2001-08-17 Anders Carlsson <andersca@gnu.org>
6090 * gtk/gtkstyle.c (create_expander_affine): Divide with floating
6091 point numbers so that the result will be floating point.
6093 2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
6095 * tests/testgtk.c (create_handle_box):
6096 (create_toolbar): Replace gtk_window_set_policy calls by
6097 gtk_window_set_resizable.
6099 2001-08-16 Jakub Steiner <jimmac@ximian.com>
6101 * gtk/stock-icons/dialog_info.png: new style bulb
6102 * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
6103 * gtk/stock-icons/dialog_warning.png: need a hand?
6104 * gtk/stock-icons/stock_add.png, stock_remove.png: I hope
6105 the aa border gets chopped off ok
6106 * gtk/stock-icons/stock_colorselector.png: using the new hand
6107 * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what
6108 this one is for, but the old icon was butt ugly.
6109 * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
6110 * gtk/stock-icons/stock*_insert_object.png: "
6111 * gtk/stock-icons/stock_index.png: using new hand icon
6112 * gtk/stock-icons/stock*_new.png: the document template being used
6114 * gtk/stock-icons/stock*_print*.png: new print and print preview
6116 * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert
6117 icons based on Tuomas' floppy image.
6118 * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
6119 * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
6120 * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
6121 * gtk/stock-icons/stock*_undelete.png: "
6122 * gtk/stock-icons/stock_preferences.png: I have a version with a
6123 document base if the sliders are no good.
6124 * gtk/stock-icons/stock_properties.png: properties
6127 * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas'
6128 (tigert@ximian.com) clipboard icons
6129 * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
6130 * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
6131 * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
6134 2001-08-16 Sven Neumann <sven@gimp.org>
6136 * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
6138 2001-08-15 Padraig O'Briain <padraig.obriain@sun.com>
6140 * gtk/gtkcellrenderertext.c:
6141 Avoid warning when specifying NULL for "attributes" property
6143 2001-08-15 Matthias Clasen <matthiasc@waldgeist.poet.de>
6145 * docs/debugging.txt: Add a warning about --enable-debug=no,
6146 some editorial changes.
6148 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
6150 * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h,
6151 gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update
6152 debugging info, remove unused debug flags. (#58330)
6154 Mon Aug 13 13:17:32 2001 Jonathan Blandford <jrb@redhat.com>
6156 * gtk/gtktreeselection.c (gtk_tree_selection_select_all):
6157 (gtk_tree_selection_select_all): Remove strict checking for rows.
6159 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
6161 * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips):
6162 Don't remove the tooltip window when the tip text changes. (#15891)
6164 Sun Aug 12 12:02:09 2001 Owen Taylor <otaylor@redhat.com>
6166 * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
6169 Sun Aug 12 10:39:12 2001 Owen Taylor <otaylor@redhat.com>
6171 * Makefile.am (EXTRA_DIST): Fix problem with trying to
6172 dist files from intl/, which is no longer there.
6174 2001-08-11 Hans Breuer <hans@breuer.org>
6176 * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
6177 gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c,
6178 gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c,
6179 gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c,
6180 gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
6181 gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
6183 * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
6184 gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
6185 GDK_TYPE_EVENT signals
6187 * gtk/gtkalignment.c : removed 'direct allocation bug',
6188 which Tim discovered while reading the patch
6190 Sat Aug 11 14:32:14 2001 Owen Taylor <otaylor@redhat.com>
6192 * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
6193 compat macros for push/pop/set_visual that were supposed
6194 to be added a long time ago, but got dropped.
6196 Fri Aug 10 16:55:53 2001 Tim Janik <timj@gtk.org>
6198 * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
6201 2001-08-07 Havoc Pennington <hp@pobox.com>
6203 * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
6205 * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
6206 some fixage is needed here, but nothing simple. Owen understands
6209 * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
6210 sizing and positioning. Also, fix bug in compute_geometry_hints
6211 (width/height confusion for setting min size).
6212 (gtk_window_move): new function
6213 (gtk_window_resize): new function
6214 (gtk_window_get_size): new function
6215 (gtk_window_get_position): new function
6216 (gtk_window_parse_geometry): new function
6218 * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
6219 (gtk_widget_get_size_request): new function
6220 (gtk_widget_get_usize): delete, that was a short-lived function
6222 (gtk_widget_set_usize): deprecate
6223 (gtk_widget_set_uposition): deprecate, make it a trivial
6224 gtk_window_move() wrapper
6225 (gtk_widget_class_init): remove x/y/width/height properties,
6226 add width_request height_request
6228 * demos/*: update to avoid deprecated functions
6230 * gtk/gtklayout.c: add x/y child properties
6232 * gtk/gtkfixed.c: add x/y child properties, and get rid of
6235 * tests/testgtk.c (create_window_sizing): lots of tweaks to window
6238 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
6239 configure events on toplevel windows are always in root window
6240 coordinates, following ICCCM spec that all synthetic events
6241 are in root window coords already, while real events are
6242 in parent window coords. Previously the code assumed that
6243 coords of 0,0 were parent window coords, which was
6246 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
6249 * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
6250 and GDK_HINT_USER_SIZE so we can set USSize and USPosition
6251 hints in gtk_window_parse_geometry()
6253 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
6254 new USER_POS USER_SIZE hints
6256 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6258 * tests/prop-editor.c (properties_from_type): Use
6259 g_object_class_list_properties to get the param specs
6260 for a given type. (#58609)
6262 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6264 * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
6265 free the text_aa parts. (#57549)
6267 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6269 * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
6270 not the foreground color. (#57621)
6272 2001-08-09 Alexander Larsson <alexl@redhat.com>
6274 * gdk/win32/gdkfont-win32.c:
6275 Update to the new pango win32 api.
6277 2001-08-08 HideToshi Tajima <tajima@eng.sun.com>
6279 * gtk/gtkclipboard.c (request_text_received_func): ask apps for
6280 COMPOUND_TEXT instead of TEXT
6281 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
6282 interpret the return value of g_string_to_compound_text()
6285 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
6287 * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
6288 fail if iter is NULL. (#58347)
6290 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
6292 * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
6293 some off-by-one issues, fixing selection of line-ends. (#50323)
6295 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
6297 * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
6298 functions in order to make mouse operation work again in the
6299 color wheel. (#58604)
6301 2001-08-07 James Henstridge <james@daa.com.au>
6303 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
6304 the accelerator when the accel object is changed. Fixes bug
6307 2001-08-06 HideToshi Tajima <tajima@eng.sun.com>
6309 * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
6310 Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
6311 (gnome bugzilla #58202)
6313 2001-08-06 Havoc Pennington <hp@pobox.com>
6315 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole
6316 GDK_IS_WINDOW() branch of this was a bit screwed up, because
6317 it was expecting a GdkWindow, not a GdkWindowImplX11.
6319 Also, we were getting the window rect in screen coords
6320 and the screen rect in window coords then intersecting
6321 them; instead, get window rect in window coords.
6323 Finally, there were codepaths that resulted in a stuck server grab
6324 (when the window was fully onscreen, or on gdk_image_new()
6325 failure); make the server ungrab thing a bit more
6328 2001-08-06 Sven Neumann <sven@gimp.org>
6330 * gdk/gdkpango.c (gdk_pango_context_destroy):
6331 check if info->colormap != NULL before unref'ing it. It might have
6332 been set to NULL using gdk_pango_context_set_colormap().
6334 Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
6336 * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
6337 Fix conversion from float to int so that we don't get
6338 skew in the int => float => int roundtrip.
6339 (#58120, reported by Vitaly Tishkov). Also fix problem
6340 where if no alpha was set, the returned alpha
6341 from (say) set_current_alpha() was returned as 1, not 65535.
6343 Sun Aug 5 09:48:08 2001 Owen Taylor <otaylor@redhat.com>
6345 * gtk/gtklist.c (gtk_list_clear_items): Fix
6346 problem with selecting a new focus child.
6348 * gtk/gtklist.c (gtk_list_clear_items): Clear
6349 list->undo/list_focus_child after unparenting
6350 child, since unparenting the child can result
6351 in list->last_focus_child being set. (#58024)
6353 * Makefile.am (SUBDIRS): Add target specific pc
6354 files to DISTCLEANFILES.
6356 * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
6357 (58327, Matthias Clasen)
6359 Sat Aug 4 19:28:21 2001 Owen Taylor <otaylor@redhat.com>
6361 * tests/testgtk.c: Patch from Hans (with various modifications),
6362 to add the ability to use testgtk as a rough-and-ready
6363 benchmark. Try, 'testgtk --bench all:5' (if you want decent
6364 numbers, run without a window manager)
6366 2001-08-04 Alexander Larsson <alexl@redhat.com>
6368 * gdk/win32/gdkinput.c:
6369 Add #ifdef HAVE_WINTAB around wintab.h include.
6372 Removed marshals that have been moved to glib.
6373 Commented out plug and socket. They didn't compile for me
6376 2001-08-04 Hans Breuer <hans@breuer.org>
6378 * gtk/stocks-icons/makefile.msc : new file
6379 * gtk/makefile.msc.in : use it
6381 * gtk/gtkstyle.c : not all platforms do provide M_PI and
6382 friends, but luckily there is G_PI
6384 * gtk/gtk.def : updated
6386 * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP
6387 windows WS_POPUP, but only those without a parent. This fixes the
6388 mis-alignment between the selectable (temp, input only) window and
6389 the window text of GtkLabel.
6391 (gdk_window_show) : respect private->state when actually showing
6394 (gdk_window_set_transient_for) : Implementation from Wolfgang
6395 Sourdeau <wolfgang@contre.com> ported to 2.0 and added some
6396 error handling. Should fix #50586.
6398 * gdk/win32/gdkevents-win32.c : beautify log output
6400 2001-08-04 Michael Natterer <mitch@gimp.org>
6402 * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
6403 Need to show the image after adding it to the GtkImageMenuItem.
6404 This used to work without in testgtk because of the
6405 gtk_widget_show_all() at the end of the function.
6408 Tue Jul 31 22:59:33 2001 Tim Janik <timj@gtk.org>
6410 * gtk/gtknotebook.c (gtk_notebook_get_child_property):
6411 (gtk_notebook_set_child_property): fix finding of child's page,
6412 since we have to validly deal with labels and menus here as well.
6413 (gtk_notebook_get_child_property): fix warning.
6414 (gtk_notebook_class_init): property tab_pack is of type
6415 GTK_TYPE_PACK_TYPE (enum) not boolean.
6416 (gtk_notebook_find_child): don't always warn, we might be looking
6417 for a label or menu child.
6418 (gtk_notebook_map): fix mapping of panel.
6420 * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
6421 widget's mapped state, regardless of the value being set equals
6422 old settings, since things like REALIZED(parent) or MAPPED(parent)
6423 may have changed since the old value was set. make it an error to
6424 invoke this function on a toplevel widget.
6426 2001-07-31 Darin Adler <darin@bentspoon.com>
6430 Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
6432 * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
6435 Tue Jul 31 15:34:57 2001 Jonathan Blandford <jrb@redhat.com>
6437 * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops. Stupid
6438 scoping error pointed out by matthiasc@poet.de.
6440 2001-07-31 Sven Neumann <sven@gimp.org>
6442 * demos/gtk-demo/appwindow.c
6443 * demos/gtk-demo/item_factory.c
6444 * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
6446 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
6448 * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
6449 argument order for g_signal_has_handler_pending.
6451 Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
6453 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
6454 instead of long deprecated g_scanner_stat_mode().
6456 2001-07-29 Hans Breuer <hans@breuer.org>
6458 * gdk/makefile.msc : build in the backend dir after
6459 auto-generating files
6461 * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
6462 with code from win32-production-branch.
6464 * gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
6465 before calling DestroyWindow, which indirectly calls
6466 gdk_window_destroy_notify ()
6468 (performance patch merged from win32-production-branch)
6469 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments):
6470 Use PatBlt() instead of LineTo() when possible (solid single-pixel pen,
6471 R2_COPYPEN rop). It is claimed to be much faster.
6473 Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
6475 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
6476 add an "attributes" property to the text renderer for ATK.
6478 2001-07-26 Alex Larsson <alexl@redhat.com>
6480 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6481 Initialize image->bits_per_pixel from the drawable, not from
6484 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
6485 Fix cast. argument is an IMPL already.
6487 2001-07-15 James Henstridge <james@daa.com.au>
6489 * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
6490 (gtk_window_remove_accel_group): same here.
6491 (gtk_window_key_press_event): same here.
6493 * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
6494 (gtk_widget_remove_accelerator): same here.
6495 (gtk_widget_remove_accelerators): same here.
6497 * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
6499 * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
6500 instead of GtkObject.
6502 * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
6505 * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
6506 pass a GObject to gtk_accel_group_entries_from_object.
6507 (gtk_item_factory_create_item): s/accel_widget/accel_object/
6509 * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
6511 * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
6513 * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
6514 GObjects can have accelerators set now. Add compatibility
6517 * gtk/gtkmarshal.list: add missing marshallers.
6519 * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
6520 accelerators on plain GObjects. gtk_accel_group_object_destroy
6521 has been converted into a weak reference, and
6522 gtk_accel_group_delete_entries is now a destroy notify for that
6525 2001-07-23 Ron Steinke <rsteinke@w-link.net>
6527 * gdk/gdkdraw.c: Added a check on the colormap depth to
6528 gdk_drawable_set_colormap()
6529 * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
6530 patch to fix colorsel and my patch to fix gdk_drawable_get_image()
6531 for pixmaps without visuals (more specifically, bitmaps)
6532 * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
6533 doesn't set a colormap with the wrong depth
6536 2001-07-22 Anders Carlsson <andersca@gnome.org>
6538 * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
6539 expander_height and expander_width properties with a single
6540 property, expander_size.
6541 (gtk_tree_view_init): Set the tab_offset to expander_size
6543 (gtk_tree_view_unrealize): Remove the expand/collapse
6544 timeout if it exists.
6545 (coords_are_over_arrow): Fix a small bug.
6546 (gtk_tree_view_motion_draw_column_motion_arrow): Use
6548 (gtk_tree_view_draw_focus): Use "treeview" instead of
6549 "add-mode" as detail when drawing the focus.
6550 (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
6551 instead of "add-mode" as detail when drawing the focus.
6552 (gtk_tree_view_deleted): If we have a node currently being
6553 expanded or collapsed, remove the timeout and set the node
6555 (gtk_tree_view_queue_draw_arrow): New function that just
6556 redraws the arrow of a node.
6557 (gtk_tree_view_draw_arrow): Use expander_size instead of
6558 expander_width/expander_height, also pass a different
6559 expander_style to gtk_paint_expander depending on the
6560 state of the node being drawn.
6561 (expand_collapse_timeout): New function for expanding
6562 or collapsing a node depending on the previous state.
6563 (gtk_tree_view_real_expand_row): Add timeout and set
6564 correct state for node being expanded.
6565 (gtk_tree_view_real_collapse_row): Add timeout and set
6566 correct state for node being collapsed.
6568 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
6569 information about the node currently being expanded or
6570 collapsed, and also a timeout id.
6572 * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
6573 with expander_style for draw_expander.
6575 * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
6577 (create_expander_affine): New function for creating an
6579 (apply_affine_on_point): New function for applying an
6581 (gtk_default_draw_expander): Modified to take expander_style
6582 instead of is_open, and to draw the rectangle rotated differently
6583 depending on the expander style.
6584 (gtk_paint_expander): Replace is_open with expander_style.
6586 * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
6588 * gtk/gtkenums.h: Add expander style enum.
6590 2001-07-21 Jonas Borgström <jonas@codefactory.se>
6592 * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
6593 value from gtk_tree_model_get_iter, the model might be empty.
6595 2001-07-20 Hans Breuer <hans@breuer.org>
6597 * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
6598 gdk/gdkinput.c like the other backends
6600 * gdk/win32/gdkinput-win32.h :
6601 * gdk/win32/gdkinput.c :
6602 * gdk/win32/gdkvisual-win32.c :
6603 * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
6604 GdkVisual GObjectification. UNTESTED for pen-devices because
6608 * gtk/gtk.def : updated externals
6610 * gtk/gtkiconfactory.c :
6611 * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL)
6612 before passing &error to functions to avoid strange crashes
6614 * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
6616 * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
6618 * gtk/makefile.msc.in : updated
6620 Thu Jul 19 15:35:32 2001 Owen Taylor <otaylor@redhat.com>
6622 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
6623 Add property support. (#51858)
6625 Thu Jul 19 14:56:33 2001 Owen Taylor <otaylor@redhat.com>
6627 * gtk/gtkaccellabel.c (gtk_accel_label_class_init)
6628 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
6629 Use Shift/Ctrl instead of Shft/Ctl. (#53807)
6631 Thu Jul 19 11:41:00 2001 Owen Taylor <otaylor@redhat.com>
6633 * gtk/gtkcolorsel.c: Add propery support (roughly
6634 based on patch from Lee Mallabone, #51014)
6636 * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
6637 deprecated, since we already g_warning() on it.
6639 Thu Jul 19 14:24:34 2001 Owen Taylor <otaylor@redhat.com>
6641 * gtk/gtkentry.c (gtk_entry_set_positions): Fix
6642 typo that sometimes caused selection not to work properly.
6644 * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
6645 entry when tabbing in. (#57743)
6647 * gtk/gtkentry.c (gtk_entry_motion_notify): If the
6648 user drags up above or down below the entry, move
6649 to the end or the beginning of the entry. (Suggestion
6650 from Jay Cox, #50940)
6652 * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
6653 a current selection, then when moving by chars or
6654 words, move to the end of the selection rather than
6655 from entry->current_pos. (Suggestion from Jay Cox,
6658 Thu Jul 19 12:14:28 2001 Owen Taylor <otaylor@redhat.com>
6660 * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
6661 set window->decorated. (Patch from Hidetoshi Tajima,
6664 Sat Jul 7 02:50:14 2001 Owen Taylor <otaylor@redhat.com>
6666 * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
6667 the widget/child realization/mapping invariants.
6669 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
6670 gtk_widget_[get/set]_child_visible() to control
6671 whether visible children of a mapped window are
6674 * docs/widget_system.txt: Updated for changes in
6675 container contract, and addition of GTK_CHILD_VISIBLE.
6677 * gtk/gtkcontainer.c: Add generic map()/unmap()
6678 functions that work for almost all containers.
6680 * gtk/gtknotebook.c gtk/gtkpacker.c: Use
6681 gtk_widget_set_child_visible() where necessary.
6683 * gtk/*.c: Remove excess map(), unmap(), and
6684 realization/mapping invariant enforcing code
6685 from many containers.
6687 Wed Jul 18 19:51:45 2001 Owen Taylor <otaylor@redhat.com>
6689 * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style):
6690 Get the foreground color from 'text', nor 'fg'. (#57568)
6692 Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com>
6694 * gtk/*.c: Patch from Matthias Clasen to remove remove
6695 all instances of g_return_if_fail (foo != NULL); that are
6696 immediately before a g_return_if_fail (GTK_IS_FOO (foo));
6697 since the second check catches the NULL anyways.
6699 Wed Jul 18 18:23:05 2001 Owen Taylor <otaylor@redhat.com>
6701 * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
6702 gtktreeview.c: Fix idles and timeouts to be properly surrounded by
6703 GDK_THREADS_ENTER()/LEAVE() pairs.
6705 * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
6706 to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
6707 pairs. (Problem found by M. Meeks)
6709 2001-07-18 Darin Adler <darin@bentspoon.com>
6711 * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
6712 that we don't get a g_warning message every time we register a new
6715 * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
6716 using pixel variable of the correct type.
6718 Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
6720 * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
6721 so that using X functions on a GdkWindow is possible, if
6724 * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
6725 and ts_origin of a GC, so that external parties can offset/restore
6726 a GC, when using gdk_window_get_internal_paint_info().
6728 2001-07-17 Darin Adler <darin@bentspoon.com>
6730 * .cvsignore: Ignore the sgml directory made by gtkdoc.
6731 * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
6732 instead of the deprecated gtk_window_set_policy.
6733 * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
6734 * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
6735 function to get rid of warning and some code too.
6736 * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
6738 * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
6740 * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
6742 * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
6743 (gdk_utf8_to_compound_text): Add missing const.
6744 * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
6745 * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
6746 cast and get rid of an unnecessary one.
6747 * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
6748 * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
6750 * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
6751 Remove unused local.
6752 * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
6754 * tests/testsocket.c: (add_child): Add cast so the printf format
6755 doesn't make us implicitly depend on what integer type
6756 gtk_socket_get_id returns.
6757 * tests/testtextbuffer.c: Add missing const.
6758 * tests/testtreefocus.c: (main): Remove unused local.
6759 * tests/treestoretest.c: (iter_remove): Remove unused local.
6760 (uppercase_value): Remove unused function.
6761 (make_window): Add statement to quiet the compiler's uninitialized
6764 Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
6769 (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
6770 (gtk_range_calc_layout): compute the new layout based on an
6771 adjustment->value being passed in as argument.
6772 (gtk_range_button_press): for button2 slider warps, first recalc
6773 the layout, then adjust the value. also, use update_slider_position()
6774 for adjusting the value, so we keep pixel quantisation at which we
6775 usually operate (upon motion or button releases). the reason for this
6776 is that, we can't change the adjustment upon button2 presses to a non
6777 quantised value and upon button2 release re-quantise the value since
6778 that'd alter the value even if we didn't get any motion events (causing
6779 unexpected scroll area warps upon release and/or slider pixel-jitter).
6780 (gtk_range_motion_notify): update the slider position from queried
6781 coordinates, not event coordinates.
6783 Fri Jul 13 09:47:52 2001 Tim Janik <timj@gtk.org>
6785 * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
6786 the default gc values are: width=0, CapBut, JoinMiter.
6788 2001-07-13 Anders Carlsson <andersca@codefactory.se>
6790 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
6791 into account the xpad and ypad when calculating the width and the
6792 height of the pixbuf cel.
6794 Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
6796 * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
6797 Rename to gtk_radio_menu_item_get_group(), add deprecated
6800 * gtk/gtkfilesel.c: Indentation fix.
6802 Thu Jul 12 17:33:00 2001 Owen Taylor <otaylor@redhat.com>
6804 * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias
6805 Hasselmann to fix warnings in compat macros.
6808 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix
6809 stupid wrong cast added in last patch.
6811 Thu Jul 12 16:51:34 2001 Owen Taylor <otaylor@redhat.com>
6813 * gtk/gtkwidget.c: Replace a couple of inappropriate calls to
6814 GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
6816 Thu Jul 12 14:06:19 2001 Owen Taylor <otaylor@redhat.com>
6818 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
6821 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
6822 NULL/FALSE return value confusion.
6824 * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
6825 problem when scrollbar completely fills range. (Patch
6826 from Matthias Clasen, #57047)
6828 Thu Jul 12 13:53:28 2001 Owen Taylor <otaylor@redhat.com>
6830 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
6831 clean up when handling events for move-resize emulation.
6832 (Problem traced down by Matthias Clasen, #57271)
6834 Thu Jul 12 13:43:27 2001 Owen Taylor <otaylor@redhat.com>
6836 * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
6837 gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
6838 gtk/gtkfontsel.c gtk/gtkhandlebox.c
6839 gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
6840 gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
6841 gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
6842 gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
6843 Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
6845 2001-07-09 Peter Williams <peterw@ximian.com>
6847 * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
6848 for when srcdir != builddir
6850 Mon Jul 9 12:50:51 2001 Jonathan Blandford <jrb@redhat.com>
6852 * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
6853 gtk_tree_model_get_iter_root.
6855 * gtk/gtkliststore.c: Add a bunch of g_return statements.
6856 (gtk_list_store_iter_n_children): Fix up.
6858 * gtk/gtktreestore.c: Add a bunch of g_return statements.
6860 Fri Jul 6 15:38:33 2001 Owen Taylor <otaylor@redhat.com>
6862 * gtk/gtkwidget.c (gtk_widget_class_init):
6863 G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
6864 restore some workingness.
6866 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix
6867 handle of window type for input-only windows.
6869 Thu Jul 5 21:53:46 2001 Owen Taylor <otaylor@redhat.com>
6871 * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
6872 Patch from Gregory Merchan to add
6873 gtk_button_box_set_secondary(), which separates
6874 the child into a separate group from the normal
6877 * gtk/gtkdialog.c: Make help buttons secondary by
6880 * gtk/gtkbbox.c: Added a child property "secondary".
6882 * gtk/testgtk.c: Turn on the help button for the
6883 color selector to check that it properly appears
6886 Mon Jul 2 01:09:37 2001 Owen Taylor <otaylor@redhat.com>
6888 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
6889 gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
6890 Add gdk_set_pointer_hooks() to allow pointer-querying to
6891 be hooked by an event record/playback system like GERD.
6894 Thu Jul 5 08:57:07 2001 Owen Taylor <otaylor@redhat.com>
6896 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
6897 in the right value of initial_emission to
6898 gtk_widget_set_style_internal (#57091)
6900 Wed Jul 4 23:17:04 2001 Owen Taylor <otaylor@redhat.com>
6902 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
6905 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
6906 with calling gtk_widget_set_style_internal() with
6907 the old style, not the new style. (#56989)
6909 Wed Jul 4 22:35:40 2001 Owen Taylor <otaylor@redhat.com>
6911 * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
6913 Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
6914 not GTK_WIDGET_GET_ANCESTOR ... see
6915 http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
6916 Indicate the best practice in the docs for gtk_widget_get_toplevel().
6918 * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
6919 so GtkPlug can give the correct signals when transforming
6920 from a child to a toplevel.
6922 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
6923 reparentation correctly.
6925 * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
6926 Propagate the previous_toplevel argument down properly.
6928 * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
6931 * gtk/gtkplug.[ch]: Add an "embedded" signal.
6933 * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
6936 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add
6937 functions gtk_plug_get_id(), gtk_socket_get_id(),
6938 to avoid the user having to worry about realization,
6941 * tests/testsocket.c: Extend to try out the new signals
6942 and gtk_plug/socket_get_id().
6944 * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
6945 setting of underline attributes.
6947 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
6948 DestroyNotify events from SubstructureNotifyMask
6950 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
6951 Switch GDK_WINDOW_TYPE (window) as needed.
6953 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
6954 allow creation of toplevel windows as children of
6957 * gtk/gtkplug.c: Remove hacks involving changing private
6958 fields of GdkWindow.
6960 * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make
6961 exactly the same signals and notification
6962 be emitted for local embedding as for inter-process
6965 2001-07-04 James Henstridge <james@daa.com.au>
6967 * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
6969 Mon Jul 2 16:53:25 2001 Owen Taylor <otaylor@redhat.com>
6971 * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
6972 XEMBED embedding add a _XEMBED_INFO property to the
6973 client with version number and a "mapped" flags.
6974 Use the mapped flag instead of the racy MapRequestEvent
6976 * gtk/gtksocket.c: Clean up the gtk_socket_steal()
6977 code to reliably set things (when the child is a passive
6978 embedder participating in the XEMBED protocol) intead
6979 of just being a hack for embedding non-participating
6980 programs. Fix various bugs and race conditions.
6982 * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
6983 work by simply making the GtkSocket the gtk parent
6984 of the GtkPlug. Set a flag in this case and make
6985 the GtkPlug work like a normal container by overriding
6986 methods such as check_resize and "chaining past" GtkWindow
6989 * gtk/gtkentry.c (gtk_entry_real_activate)
6990 gtk/gtkmain.c (gtk_propagate_event):
6991 Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
6993 * gtk/gtkwidget.c (gtk_widget_get_toplevel,
6994 gtk_widget_get_ancestor):
6995 Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
6996 might not give the expected result and recommend
6999 * tests/testsocket.c tests/testsocket_child.c
7000 tests/testsocket_common.c tests/Makefile.am: Extended
7001 to test different type of adding plugs to sockets
7002 (local,active,passive), and to test mapping/unmapping
7005 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
7006 mark the window as destroyed until after we
7007 called _gdk_windowing_window_destroy().
7008 (_gdk_windowing_window_destroy() may use GDK functions
7011 * gdk/x11/gdkinput.c: Remove the check for finalization -
7012 devices can be finalized under some circumnstances.
7014 * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix
7015 small problem with GDK_TYPE_DEVICE.
7017 2001-07-02 Havoc Pennington <hp@pobox.com>
7019 * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
7020 use constants not atoms.
7022 2001-07-02 James Henstridge <james@daa.com.au>
7024 * gtk/gtktextview.c (gtk_text_view_class_init): same here for
7025 PANGO_TYPE_TAB_ARRAY.
7027 * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
7028 for PANGO_TYPE_TAB_ARRAY.
7030 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
7031 s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
7033 * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
7034 the file. Remove Pango types from defs -- they are now defined in
7037 Mon Jul 2 06:35:10 2001 Tim Janik <timj@gtk.org>
7039 * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
7041 * gtk/gtkobject.c (gtk_object_destroy): invoke
7042 g_object_run_dispose().
7047 * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
7050 Sat Jun 30 20:44:48 2001 Owen Taylor <otaylor@redhat.com>
7052 * gtk/gtktypeutils.c (gtk_type_class): Remove
7053 change check for GTK_TYPE_OBJECT derivation to
7054 G_TYPE_OBJECTS - it's Tim-approved to use this
7055 for arbitary objects.
7057 * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
7058 prefix gtk_container_dequeue_resize_handler().
7060 * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
7061 to the hierarachy_changed signal, since you otherwise
7062 have to always keep that around.
7064 * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
7065 for extra argument to hierarchy_changed.
7067 Tue Jun 26 19:39:03 2001 Owen Taylor <otaylor@redhat.com>
7069 * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
7070 for style to mean "revert to default style"
7072 * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
7073 gtk_widget_restore_default_style): Make this functions
7074 deprecated aliases for gtk_widget_set_style (widget, NULL).
7076 * gtk/gtkwidget.[ch]: Remove:
7077 gtk_widget_set_default_style ()
7078 gtk_widget_push_style ()
7079 gtk_widget_pop_style ()
7080 These functions interact are overriden by RC files, and
7081 thus virtually useless, and complicated.
7083 Fri Jun 22 18:49:48 2001 Owen Taylor <otaylor@redhat.com>
7085 * gtk/gtkrc.c: Add a GtkRcContext structure to hold
7086 most of the previous global variables in gtkrc.c. This is
7087 in preparation for multi-head, since each screen can
7088 have different GtkSettings and RC information.
7092 * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
7093 GtkSettings parameter to GtkRcStyle::parse.
7095 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c:
7096 Add two new settings gtk-theme-name, gtk-key-theme-name,
7097 for RC files that are loaded by name after reading
7098 the default RC files.
7100 * gtk/gtkrc.c: Allow priorities for styles, as wll as
7103 * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
7104 and use it by default for RC files loaded via
7105 gtk-theme-name, gtk-key-theme-name.
7107 * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
7108 gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string)
7109 tests/testgtkrc: Require pathnames to be absolute.
7111 * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
7112 the source when parsing, since the operation of looking up a
7113 pixmap from an RC file depends on the parsing context.
7115 * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
7116 reset RC styles on all widgets when files are reparsed.
7118 * tests/testgtk.c (create_rc_file)
7119 gtk/gtkwindow.c (gtk_window_read_rcfiles):
7120 Simplify, now that gtk_rc_reparse_all() resets styles on
7123 * gtk/gtkmain.c (gtk_get_default_language): Fix broken
7126 * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
7127 GtkSettings argument.
7129 * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
7130 gtk_settings_get_global().
7132 * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
7133 to get the appropriate GtkSettings for a widget. (For now,
7134 just gets the default GtkSetttings.)
7136 * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
7137 gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
7140 * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
7141 getting a style for a path without actually having a widget.
7142 (Allows using a style for a subpart of a widget, for
7145 * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
7146 the RC files to be reloaded for just one GtkSettings
7147 (not sure how useful this really is.)
7149 * gtk/gtkrc.h: Deprecate
7150 gtk_rc_add_widget_name/widget_class/class_style
7152 2001-06-30 Alex Larsson <alexl@redhat.com>
7154 * gdk/linux-fb/gdkinput-none.c:
7155 * gdk/linux-fb/gdkinput.c:
7156 * gdk/linux-fb/gdkinputprivate.h:
7157 Convert GdkDevice to a GObject.
7159 * linux-fb/gdkprivate-fb.h:
7160 * linux-fb/gdkvisual-fb.c:
7161 Convert GdkVisual to a GObject.
7163 2001-06-29 Alex Larsson <alexl@redhat.com>
7168 * gdk/x11/gdkvisual-x11.c:
7169 Convert GdkVisual to a GObject.
7173 * gdk/x11/gdkinputprivate.h:
7174 * gdk/x11/gdkinput-gxi.c:
7175 * gdk/x11/gdkinput-none.c:
7176 * gdk/x11/gdkinput-x11.c:
7177 * gdk/x11/gdkinput-xfree.c:
7178 * gdk/x11/gdkinput.c:
7179 Convert GdkDevice to a GObject.
7181 Fri Jun 29 22:13:28 2001 Jonathan Blandford <jrb@redhat.com>
7183 * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
7184 to just plain new, fixing the number of columns, and column types
7187 * gtk/gtkliststore.c (gtk_list_store_new): ditto.
7189 * gtk/gtkcellrenderertext.c
7190 (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
7191 height to a specific font.
7193 * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
7195 * tests/*c: change to work with new store models.
7197 2001-06-29 Havoc Pennington <hp@redhat.com>
7199 * Throughout: fixes to compile with G_DISABLE_COMPAT
7200 (s/g_signal_connectc/g_signal_connect/,
7201 s/g_signal_newc/g_signal_new/,
7202 s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
7204 Fri Jun 29 03:14:16 2001 Jonathan Blandford <jrb@redhat.com>
7206 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7207 add path argument to selection callbacks.
7209 Fri Jun 29 00:13:34 2001 Jonathan Blandford <jrb@redhat.com>
7211 * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
7212 walk through a model in a depth first manner, with the option to
7215 Fri Jun 8 18:52:10 2001 Jonathan Blandford <jrb@redhat.com>
7217 * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
7218 <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
7219 column and follow it when draged, rather than a location in the
7220 view. "expander_column" property and drawing functions changed
7221 accordingly. Fixes bug #55942.
7223 (gtk_tree_view_{set,get}_expander_column): Now works with a
7224 GtkTreeViewColumn* instead of int.
7226 Thu Jun 28 22:53:18 2001 Owen Taylor <otaylor@redhat.com>
7228 * gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init().
7230 2001-06-28 Havoc Pennington <hp@pobox.com>
7232 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
7233 image data to the screen, using a server grab to avoid race
7236 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
7237 check for NULL return from gtk_image_new_from_stock(), it never
7239 (gtk_item_factory_create_item): fix bug where we parsed the stock
7240 ID as an inline pixbuf
7242 * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
7244 * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
7245 support (should be using binding set here)
7247 * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
7248 support (should be using binding set here)
7250 * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
7253 * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
7255 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
7257 * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
7259 * gtk/gtkimcontextsimple.c
7260 (gtk_im_context_simple_filter_keypress): keypad
7262 * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
7264 * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
7266 * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
7268 * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
7269 should be binding-setted)
7271 * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
7273 * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
7275 * gtk/gtkcalendar.c: numeric keypad fixes
7277 * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
7280 * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
7283 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7284 clip the render area to the drawable's clip region in advance,
7285 so we don't get data from the server that we don't need.
7287 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7288 check return value of gdk_pixbuf_get_from_drawable(), fall back
7289 to bilevel alpha if we can't get the pixbuf to composite against.
7291 * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
7293 * gdk/gdkimage.c (gdk_image_get_colormap): add
7294 gdk_image_set_colormap, gdk_image_get_colormap
7296 * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
7297 take a region of the image, instead of converting the entire
7300 * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
7301 keybinding signal. Add default bindings for it. Add default
7302 handler for show_help that shows the tooltip for the widget.
7304 * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
7305 "close" keybinding signal, remove key press handler.
7307 * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
7308 it's not our usual practice to leave a deprecated function around
7309 with a runtime warning, plus we don't want it to appear in docs,
7310 plus if we make them yellow no one will want to change them
7313 Thu Jun 28 23:53:31 2001 Tim Janik <timj@gtk.org>
7315 * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
7316 GTK_WIDGET_REALIZE() for resize queueing.
7318 * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
7319 GTK_WIDGET_REALIZE() for post event delivery destruction upon
7322 * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
7323 sompensate for former (pre-2.0) connect_after() facility.
7324 (gtk_widget_send_expose):
7325 (gtk_widget_event): assert the widget is realized, since event delivery
7326 to non-realized widgets is essentially a bug. event handlers should
7327 be able to unconditionally rely on widget->window (unless they
7328 emit events on their own which can trigger widget destruction).
7329 (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
7330 logic. event delivery happens as follows:
7331 a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
7332 b) if !was_handled in (a) and the widget is still realized, emit event-
7333 specific signal (RUN_LAST handler). returns was_handled.
7334 c) emission of GtkWidget::event-after for notification if the widget is
7335 still realized (regardless of was_handled from previous stages, no
7336 class handler). no return value.
7337 d) was_handled gets passed on to caller, to determine further
7338 propagation. if the widget got unrealized meanwhile, was_handled
7339 is returned as TRUE.
7341 * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
7342 gdk_event_get_coords().
7344 Thu Jun 28 17:18:41 2001 Tim Janik <timj@gtk.org>
7346 * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
7347 age 0, binary age 0. depend on glib 1.3.7.
7349 * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
7351 * gtk/gtkmenubar.c: same here.
7353 * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
7355 * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
7357 * gtk/gtkentry.c (gtk_entry_focus_in): same here.
7359 * gtk/gtkmenubar.c (add_to_window): likewise.
7361 * gtk/gtktextbtree.c: and here...
7363 * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
7365 * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
7367 * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
7369 * gtk/gtktreeviewcolumn.c:
7370 (_gtk_tree_view_column_set_tree_view): yet again.
7372 * demos/gtk-demo/images.c (progressive_timeout): demonstrate
7373 signal connections without g_signal_connect_data().
7375 * demos/gtk-demo/stock_browser.c (do_stock_browser): second
7378 * demos/testpixbuf.c (main): running out of equality phrases for the
7379 ChangeLog, but had to adapt connections here as well.
7381 * demos/testanimation.c (progressive_timeout): and for the fun of it,
7382 tackled this the same way.
7384 * tests/testtext.c (create_view): ok, it's becoming a pain at this
7385 point, but had enough enery for one more fix.
7387 * tests/testtreecolumns.c (main): stand up man, do your work!
7389 * tests/testtreeview.c (set_columns_type): ok, this is the last file i
7390 fix, either that's been all of it or CVS gtk is broken yet again.
7392 2001-06-29 James Henstridge <james@daa.com.au>
7394 The following changes correspond to bug #56812
7396 * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
7399 * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
7402 2001-06-19 Havoc Pennington <hp@pobox.com>
7404 * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
7405 for mapping a window without fooling with stacking order, but
7406 updating the "withdrawn" flag
7408 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
7409 filtering as soon as possible, moving move resize and wmspec_check
7410 handling after the event filter. Make default filter apply to all
7411 events, not just those with no GdkWindow wrapped around the X
7412 window. Fix a FIXME about how the window could be a pixmap using
7413 RTTI; this of course assumes GDK_IS_WINDOW() is optimized.
7415 Also, be robust against events not on a known GdkWindow.
7417 * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
7418 gdk_x11_ungrab_server): export reference-counted server grabs, so
7419 other people can grab server over a GDK function that also does
7422 Wed Jun 27 19:40:31 2001 Jonathan Blandford <jrb@redhat.com>
7424 * gtk/gtktreeviewcolumn.c
7425 (gtk_tree_view_column_pack_start_cell_renderer): New function to
7426 reflect that you can (hypothetically) pack cell renderers into a
7428 (gtk_tree_view_column_pack_end_cell_renderer): ditto.
7429 (gtk_tree_view_column_cell_is_visible): Move more functionality to
7431 (gtk_tree_view_column_cell_can_focus): Move more functionality to
7434 * gtk/gtktreeview.c: Move to use new column-packing code.
7435 (gtk_tree_view_real_expand_row): remove totally braindead code.
7436 (gtk_tree_view_real_collapse_row): ditto.
7438 2001-06-27 Kjartan Maraas <kmaraas@gnome.org>
7440 * gtk/gtktreeviewcolumn.c: Fix a typo.
7442 2001-06-26 Joel Becker <jlbec@evilplan.org>
7444 * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
7445 at the end of the file
7447 2001-06-26 Havoc Pennington <hp@redhat.com>
7449 * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
7451 2001-06-26 Havoc Pennington <hp@redhat.com>
7453 * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
7456 Tue Jun 26 12:59:28 2001 Jonathan Blandford <jrb@redhat.com>
7458 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
7459 stupid missing statement
7461 * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
7462 private function for ATK. It notifies you of how many _visible_
7463 children are deleted when a node is deleted. Should be used by
7466 Tue Jun 26 11:06:34 2001 Owen Taylor <otaylor@redhat.com>
7468 * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
7469 Use new pango_context_get_metrics() to fix problems
7470 with font lists in descriptions. (#56184, reported by
7473 Tue Jun 26 10:04:30 2001 Tim Janik <timj@gtk.org>
7475 * gtk/gtkiconfactory.c:
7476 * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
7477 item factory so inlined pixbufs actually work.
7479 2001-06-25 Havoc Pennington <hp@redhat.com>
7481 * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
7482 s/RESIZEABLE/RESIZABLE/
7484 * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
7486 2001-06-25 Alexander Larsson <alexl@redhat.com>
7489 Added --enable-fbmanager. This is some experimental code
7490 that lets several GtkFB apps coordinate their access to the
7494 Added ENABLE_FB_MANAGER.
7496 * gdk/linux-fb/Makefile.am:
7497 Added gdkfbmanager and gdkfbswitch.
7499 * gdk/linux-fb/gdkkeyboard-fb.c:
7500 * gdk/linux-fb/gdkmouse-fb.c:
7501 * gdk/linux-fb/gdkprivate-fb.h:
7502 Split device init and open so that
7503 they can be opened and closed while switched
7506 * gdk/linux-fb/gdkmain-fb.c:
7507 Add the basic manager communication.
7509 * gdk/linux-fb/gdkrender-fb.c:
7510 Don't update to the shadow fb if we're
7511 blocked by the fb manager.
7513 Sun Jun 24 22:15:16 2001 Owen Taylor <otaylor@redhat.com>
7515 * docs/Changes-2.0.txt: Add note about child property
7518 Sun Jun 24 21:34:32 2001 Owen Taylor <otaylor@redhat.com>
7520 * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
7521 drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
7523 * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
7524 with un'reffing wrong list reported by Jeff Franks.
7526 * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
7528 * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
7529 for the default icon. Remove inline XPM.
7531 * gtk/gtkstock.h gtk/gtkiconfactory.c:
7532 Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
7533 is used for GTK_STOCK_DND, but it is a bit too small.)
7535 * gtk/stock-icons/stock_dnd_multiple.png
7536 gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
7538 * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
7539 TRUE when starting a drag. In other cases, we are
7540 just observing. (#52995)
7542 * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add
7543 function to set the icon for a drag from a GdkPixbuf
7546 * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}):
7547 Likewise, for drag sources.
7549 * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
7550 (Now should be done using the stock system.)
7552 Sun Jun 24 12:06:47 2001 Owen Taylor <otaylor@redhat.com>
7554 * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size):
7555 Removed - didn't work and not particularly useful anyways
7558 Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com>
7560 * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
7561 introduced last night that was making things decidedly not work.
7563 * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
7564 so that we have getter/setter pairing everywhere it makes
7567 * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
7568 Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
7569 deprecated compat macro. (#55516)
7571 * gtk/gtklabel.[ch]: Add functions
7572 gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
7573 gtk_label_set_label(), which mirror the property API for GtkLabel.
7574 Make gtk_label_get_attributes() only reflect the attributes
7575 set by gtk_label_set_attributes.
7577 * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
7578 from gtk_notebook_set_page().
7580 Sat Jun 23 18:02:46 2001 Owen Taylor <otaylor@redhat.com>
7582 * configure.in: Fix tests for XShm.h.
7584 * gdk/x11/gdkimage-x11.c: Cleanup error handling in
7585 gdk_image_new() by use of goto, properly use g_object_unref().
7587 Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
7589 * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
7590 calls, as GdkImage is an object. these should be g_obejct_unref()
7591 instead but that won't work because of the g_error() statement
7592 in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
7593 to spot these places.
7595 Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
7597 * modules/input/gtkimcontextxim.c: Fixup some problems with
7598 text length handling in error cases.
7600 * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
7601 a bit to make test actually warn on attempt to allocation
7602 a negative size. (#56101, Matthias Clasen)
7604 Fri Jun 22 14:06:08 2001 Jonathan Blandford <jrb@redhat.com>
7606 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7607 noticed by Brian Cameron.
7608 (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
7611 2001-06-22 Hans Breuer <hans@breuer.org>
7613 * gdk/gdk.def : updated externals
7615 * gdk/win32/gdkdrawable-win32.c : corrected some casts
7618 * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
7619 to translate coordinates to the internal > 16 bit system
7620 Try to handle WM_WINDOWPOSCHANGED to get better performance for
7621 when moving/resizing
7623 * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
7624 and gdk_keymap_get_direction (). The latter is untested for
7627 * gtk/gtk.def : updated externals
7629 * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
7630 from pango_language_from_string (), not an already freed pointer
7632 * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be
7633 binary (-kb) to be useable on windoze
7635 2001-06-21 Alexander Larsson <alexl@redhat.com>
7637 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
7638 Update to new PangoLanguage changes.
7640 * gtk/gtkwindow-decorate.c:
7641 * gtk/gtkwindow.[ch]:
7642 Added setting argument to gtk_window_set_has_frame ()
7644 Thu Jun 21 13:42:01 2001 Owen Taylor <otaylor@redhat.com>
7646 * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
7647 the case without XKB properly.
7649 * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
7650 unused gtk_rc_auto_parse variable.
7652 * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
7653 Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
7654 longer needed with GdkPixbuf.
7656 * gtk/gtkrc.c (_gtk_rc_init): Make private.
7658 Fri Jun 15 16:26:12 2001 Owen Taylor <otaylor@redhat.com>
7660 * gtk/gtkentry.h: Mark deprecated functions with
7661 GTK_DISABLE_DEPRECATED.
7663 Mon Jun 11 18:15:16 2001 Owen Taylor <otaylor@redhat.com>
7665 * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
7667 * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
7669 * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
7670 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
7671 gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
7672 gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
7673 to recent changes in Pango.
7675 * tests/testgtk.c: Set language tags with gtk_label_set_markup()
7676 to test whether the basic engine honors them.
7678 Thu Jun 21 02:13:40 2001 Tim Janik <timj@gtk.org>
7680 * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
7681 gtk_container_child_get_property().
7683 Wed Jun 20 19:19:15 2001 Jonathan Blandford <jrb@redhat.com>
7685 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
7686 (gtk_tree_view_move_cursor_page_up_down): implement.
7688 Wed Jun 20 05:32:05 2001 Tim Janik <timj@gtk.org>
7690 * gtk/gtkspinbutton.c: make maximum digits compile time configurable
7691 via MAX_DIGITS and up to 20. 5 was just ridiculously small.
7692 don't use automatic fixed size buffer for printf-ing floats, doubles
7693 can expand to really _huge_ strings, use g_strdup_printf() instead.
7695 Wed Jun 20 04:28:24 2001 Tim Janik <timj@gtk.org>
7697 * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
7698 construct property in 1.2 and still needs to be.
7700 * gtk/gtkwidget.c: "composite_child" is not a settable property.
7702 Tue Jun 19 19:13:19 2001 Jonathan Blandford <jrb@redhat.com>
7704 * gtk/gtkliststore.c (gtk_list_store_clear):
7705 * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
7708 Mon Jun 18 02:00:49 2001 Tim Janik <timj@gtk.org>
7710 * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
7713 * gtk/gtk.h: disabled GtkPacker compilation.
7715 * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
7717 * gtk/gtknotebook.c:
7719 * gtk/gtkbox.c: ported this over to child properties.
7721 * gtk/gtksettings.c: fetch class properties via
7722 g_object_class_list_properties().
7724 * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
7725 child arg interface. use gobjectnotifyqueue.c for child property
7728 * gtk/gtkwidget.[hc]: provide necessary means for container child
7729 properties, i.e. ::child_notify signal,
7730 gtk_widget_freeze_child_notify(),
7731 gtk_widget_child_notify(),
7732 gtk_widget_thaw_child_notify().
7734 * tests/testgtk.c: removed inferior property handling code, for
7735 property editing, a generic module should be used, and GLE
7736 coincidentally fullfills that purpose.
7738 * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
7739 needs to be adapted to g_object_class_list_properties() before this
7742 Mon Jun 18 20:06:10 2001 Jonathan Blandford <jrb@redhat.com>
7744 * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
7745 test if a node is expanded.
7747 Mon Jun 18 19:41:38 2001 Jonathan Blandford <jrb@redhat.com>
7749 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7750 where collapsing a selected row would result in the cursor/anchor
7753 Fri Jun 15 18:53:48 2001 Jonathan Blandford <jrb@redhat.com>
7755 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
7756 gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.
7757 * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
7758 Now I can really reorder/sort all Store widgets. treesorttest
7759 seems to just work now.
7760 * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
7761 testtreesort worked through a big coincidence all this time.
7762 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
7764 * tests/testtreecolumns.c: Big 'ol warning at the top letting
7765 people know that this code should never ever ever be copied.
7767 2001-06-15 Jonas Borgström <jonas@codefactory.se>
7769 * gtk/gtkwindow.h: Fixed a small typo, it should be
7770 GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
7773 2001-06-14 Havoc Pennington <hp@redhat.com>
7777 * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
7778 GTK_DISABLE_DEPRECATED
7780 Thu Jun 14 19:21:27 2001 Jonathan Blandford <jrb@redhat.com>
7782 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops. Forgot
7783 this a couple months ago. Now GtkTreeStore sort of sorts. I'll
7784 finish it off tonight, though it basically works now when it's a
7785 list. Also, I have a sinking feeling neither GtkTreeStore or
7786 GtkListStore actually resort when adding a new item. I'll look
7789 2001-06-14 Havoc Pennington <hp@redhat.com>
7791 * demos/gtk-demo/main.c (load_file): fix bug identified by
7792 warnings I just added to gtktextbuffer
7794 2001-06-14 Havoc Pennington <hp@redhat.com>
7796 * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
7798 * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
7800 * gtk/gtktextbtree.c: don't leak node data all over the place.
7802 * demos/gtk-demo/main.c (main): create fontify tags for the right
7805 * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
7806 to mention tags in the same table can't have the same name,
7807 suggested by Skip Montanaro
7809 2001-06-11 Havoc Pennington <hp@redhat.com>
7811 * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning
7812 for trying to add two tags with same name to the tag table
7814 * demos/gtk-demo/main.c (main): fix colors ;-)
7816 `Fri Jun 8 17:56:52 2001 Owen Taylor <otaylor@redhat.com>
7818 * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
7819 that allows grouping together multiple windows so that grabs
7820 within that set of windows only affect those windows.
7822 * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
7823 signal for notification when a widget becomes shadowed
7824 by a grab or is no longer shadowed by a grab.
7826 * gtk/gtkwidget.c (gtk_widget_propagate_state)
7827 gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
7828 insenstive widgets to maintain a grab.
7830 2001-06-14 Alexander Larsson <alexl@redhat.com>
7832 * docs/README.linux-fb:
7833 Add some example config files that can be used with the URW fonts.
7835 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
7836 Set up the color ramps for DirectColor mode.
7838 2001-06-11 Havoc Pennington <hp@redhat.com>
7842 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
7844 * gdk/linux-fb/gdkwindow-fb.c:
7845 Unify shaped window code and make it repaint the area that used
7846 to be part of the shape, but isn't anymore.
7848 2001-06-11 Havoc Pennington <hp@redhat.com>
7852 * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
7854 * gtk/Makefile.am: glib_genmarshal already contains top_builddir
7856 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
7858 * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
7859 Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
7860 passes zero instead, so do we.
7862 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
7864 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
7865 Deep copy dash_list too.
7866 (_gdk_fb_gc_new): Set default cap_style before
7869 2001-06-12 Alexander Larsson <alla@lysator.liu.se>
7871 * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
7872 gdk_keymap_get_direction): New functions.
7874 Tue Jun 12 12:41:27 2001 Jonathan Blandford <jrb@redhat.com>
7876 * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
7877 gtk_tree_model_get_flags by adding a second flag for atk.
7879 * gtk/gtktreemodel.c: make cursor behavior interact better with
7882 Mon Jun 11 12:43:08 2001 Jonathan Blandford <jrb@redhat.com>
7884 * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
7885 expand_row/collapse_row to be 2 signals each -- test_expand_row
7886 and row_expanded as well as test_collapse_row and row_collapsed.
7888 2001-06-10 Anders Carlsson <andersca@codefactory.se>
7890 * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
7891 signal name to be changed instead of selection_changed.
7893 2001-06-08 Havoc Pennington <hp@redhat.com>
7895 * gtk/gtkentry.c (gtk_entry_class_init): add read-only
7896 "scroll_offset" property for notification when the layout offsets
7898 (gtk_entry_adjust_scroll): add notify for scroll_offset
7899 (gtk_entry_layout_index_to_text_index): function to compensate for
7900 preedit string when doing coordinate stuff on the entry's layout
7901 (gtk_entry_text_index_to_layout_index): inverse function
7902 (gtk_entry_get_layout_offsets): hook to get current position of
7904 (gtk_entry_get_layout): hook to get the layout itself.
7906 * gtk/gtklabel.c (gtk_label_get_layout): new function
7908 Fri Jun 8 19:49:29 2001 Jonathan Blandford <jrb@redhat.com>
7910 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
7912 (gtk_tree_view_focus): Fix merge conflict.
7914 Fri Jun 8 18:41:30 2001 Jonathan Blandford <jrb@redhat.com>
7916 * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
7917 clean up cursor handling.
7919 2001-06-08 Havoc Pennington <hp@redhat.com>
7921 * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
7924 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
7927 2001-06-08 Alex Larsson <alexl@redhat.com>
7929 * gtk/gtkcompat.h.in:
7930 Added compat macros for all old GTK_TYPE_GDK_xxx types.
7933 2001-06-08 Havoc Pennington <hp@redhat.com>
7935 * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
7938 2001-06-08 Havoc Pennington <hp@redhat.com>
7940 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
7941 don't call g_list funcs on GSList
7943 * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
7944 gtk_container_focus(), since some widgets have focusable locations
7945 which are not other widgets. These widgets should not have to be
7946 containers just to manage the focus. For example, GtkHSV is
7947 currently a container for no good reason. Also, this cleans
7948 up the "if (is_container && is_sensitive && is_drawable)
7949 container_focus ()" mess in widget implementations.
7951 * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
7952 function, and have it just call gtk_widget_child_focus().
7954 * gtk/gtkhsv.c: derive from widget not container
7956 Throughout: fix to reflect GtkContainer::focus change
7958 Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
7960 * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
7961 range. Fix bug #55921
7963 * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
7966 Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
7968 * gdk/gdkkeys.[ch]: Add a direction-changed signal,
7969 and gdk_keymap_get_current_direction().
7971 * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
7972 gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
7973 the current locked group, use it to set the keymap
7976 * gtk/gtksettings.c: Add a new gtk-split-cursor setting
7977 to determine whether we draw a split cursor or use
7978 a jumping cursor based on the current direction.
7980 * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
7981 Obey the split cursor setting.
7983 Fri Jun 8 11:57:50 2001 Owen Taylor <otaylor@redhat.com>
7985 * gtk/gtkimmulticontext.c (activate_cb): Only activate
7986 when toggling on, not when toggling off... (#55906)
7988 Wed Jun 6 10:37:07 2001 Owen Taylor <otaylor@redhat.com>
7990 * gtk/gtkwidget.c (gtk_widget_set_double_buffered):
7991 s/gdk_window_begin_paint/gdk_window_begin_paint_region/
7992 in docs. (#55812, Vitaly Tishkov)
7994 2001-06-08 Anders Carlsson <andersca@codefactory.se>
7996 * demos/gtk-demo/main.c (create_tree): Changed signal name from
7997 selection_changed to changed in signal connection to GtkTreeSelection,
7998 also used g_signal_connectc since GtkTreeSelection is now a GObject.
8000 Thu Jun 7 18:25:42 2001 Jonathan Blandford <jrb@redhat.com>
8002 * gtk/gtktreeselection.c: Now it's a GObject instead of a
8003 GtkObject. The GtkTreeSelection::selection_changed signal is now
8004 the GtkTreeSelection::changed signal.
8006 * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
8009 * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
8012 2001-06-07 Havoc Pennington <hp@redhat.com>
8014 * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
8016 2001-06-07 Havoc Pennington <hp@redhat.com>
8018 * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
8019 (not tested yet because with absolute path to srcdir I can't build
8020 atk, but it was broken anyway so this may help)
8022 2001-06-07 Havoc Pennington <hp@redhat.com>
8024 * configure.in: output m4macros/Makefile
8026 Wed Jun 6 21:59:16 2001 Jonathan Blandford <jrb@redhat.com>
8028 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
8029 buttons. Fixes #55460 reported by matthiasc@poet.de.
8031 Wed Jun 6 21:18:54 2001 Jonathan Blandford <jrb@redhat.com>
8033 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
8034 expansion/collapsing so it only happens in one place.
8035 (gtk_tree_view_real_expand_row): ditto.
8037 2001-06-07 Havoc Pennington <hp@redhat.com>
8039 * tests/Makefile.am: add missing -I flag
8041 * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
8043 * configure.in: use pkg-config to see if GModule is
8044 supported; fix to properly turn on included loaders
8045 when GModule isn't supported; don't use AC_CHECK_LIB
8046 when libs are not installed yet
8048 * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
8050 * Makefile.am (SUBDIRS): add m4macros subdir
8052 * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
8055 Wed Jun 6 19:31:11 2001 Jonathan Blandford <jrb@redhat.com>
8057 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
8058 reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
8060 Wed Jun 6 20:01:38 2001 Jonathan Blandford <jrb@redhat.com>
8063 (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
8064 bindings to expand and collapse rows.
8065 (gtk_tree_view_real_select_cursor_parent): New key binding.
8066 (gtk_tree_view_real_toggle_cursor_row): New key binding.
8068 * gtk/gtkmarshal.list: new
8069 marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
8071 2001-06-06 Havoc Pennington <hp@redhat.com>
8073 * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
8075 * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
8076 Down to move visually rather than logically, since it confuses
8077 people. Add -/+ and Ctrl--/+ bindings for logical movement.
8079 2001-06-06 Alex Larsson <alexl@redhat.com>
8081 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
8082 Fix up error messages.
8084 Wed Jun 6 10:34:42 2001 Owen Taylor <otaylor@redhat.com>
8086 * gtk/gtktooltips.h: Include gtkwidget.h
8087 (#55798, Karl Nelson)
8089 * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
8090 a valid latin-1 character. (Marc Lehmann, #35467)
8092 * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment.
8093 (Marc Lehmann, #35467)
8095 2001-06-05 Alex Larsson <alexl@redhat.com>
8097 * demos/gtk-demo/appwindow.c (do_appwindow):
8098 Don't swap the order of the args to gtk_widget_destroyed.
8100 * tests/testgtk.c (destroy_properties):
8101 Don't crash when the properties window is destroyed.
8103 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
8104 Use with_mnemonics to handle the case of stock items with
8105 underscores in them.
8107 2001-06-05 Havoc Pennington <hp@redhat.com>
8109 * gtk/gtktextiter.c (gtk_text_iter_order): rename from
8110 gtk_text_iter_reorder
8112 2001-06-05 Havoc Pennington <hp@redhat.com>
8114 * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
8116 2001-06-05 Havoc Pennington <hp@redhat.com>
8118 * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value
8119 to the range that was set
8121 * gtk/gtkrange.c: add value_changed signal, primarily
8122 intended for use with GtkScale
8123 (gtk_range_set_increments): new function
8124 (gtk_range_set_range): new function with weird name
8125 (gtk_range_set_value): new function
8126 (gtk_range_get_value): new function
8128 * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename
8129 from gtk_spin_button_get_value_as_float(). Compat #define
8130 added for get_value_as_float.
8132 * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
8134 * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
8136 Tue Jun 5 14:57:18 2001 Jonathan Blandford <jrb@redhat.com>
8138 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
8140 Mon Jun 4 12:41:25 2001 Owen Taylor <otaylor@redhat.com>
8142 * gtk/gtkwidget.h: Deprecate gtk_widget_set().
8144 * tests/testgtk.c (create_tooltips): Remove usage of
8147 2001-06-05 Havoc Pennington <hp@redhat.com>
8149 * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
8151 Applying patch from Jeff Franks, with function docs added.
8153 * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
8154 remove call to set_mnemonic_widget, change docs a bit.
8156 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
8159 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
8162 * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
8164 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
8166 (gtk_radio_button_new_with_mnemonic_from_widget): new function
8168 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
8171 * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
8174 * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on
8175 auto-selection of mnemonic widget.
8177 Mon Jun 4 15:05:24 2001 Jonathan Blandford <jrb@redhat.com>
8179 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
8180 Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
8181 (gtk_tree_view_column_set_min_width): ditto.
8183 Tue Jun 5 11:04:06 2001 Owen Taylor <otaylor@redhat.com>
8185 * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS):
8186 s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
8188 Mon Jun 4 12:50:11 2001 Owen Taylor <otaylor@redhat.com>
8190 * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
8193 2001-06-04 Havoc Pennington <hp@pobox.com>
8195 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
8196 r eleases for buttons 6, 7
8198 2001-06-04 Havoc Pennington <hp@redhat.com>
8200 * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
8201 (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
8204 2001-06-04 Havoc Pennington <hp@redhat.com>
8206 * gtk/gtktextview.c (gtk_text_view_size_request): handle case
8207 where text_view->layout == NULL by assuming its size is 0,
8208 i.e. same as if we haven't done any reflow. Reported by
8209 Hidetoshi Tajima #55448
8211 2001-06-04 Havoc Pennington <hp@redhat.com>
8213 * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
8214 and 7 for scroll left/right, from Thomas Broyer
8216 2001-05-10 Havoc Pennington <hp@redhat.com>
8218 * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
8219 we need to parse the xsetting as if it were an RC file string.
8221 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
8222 value of palette from settings, not from static variable
8224 * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
8225 xsettings translation table
8227 * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because
8228 hardcoding the toolbar style conflicts with new customizable
8229 toolbar style philosophy
8230 (gtk_toolbar_class_init): add settings for default toolbar style;
8231 these are used unless the app specifically forces a toolbar style
8233 * gtk/gtksettings.c (settings_install_property_parser): only
8234 return at the start if we warn and parser == NULL
8236 * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
8237 palette changed handler so we don't notify dead color selections
8239 * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
8240 xthickness/ythickness of 0 or 1 properly
8241 (gtk_default_draw_resize_grip): clear the background behind the
8242 resize grips, and align to bottom right if we square the
8245 * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on
8246 statusbar label to 1, so it doesn't make toplevels resize oddly
8247 (gtk_statusbar_size_request): add grip size to request
8248 (gtk_statusbar_size_allocate): hack so the hbox still works with
8249 the grip size in the request
8251 * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix
8252 bug where showing all on a toplevel makes the toolbar
8253 button text appear despite the toolbar mode
8255 * gtk/gtkmenubar.c: add internal padding style property
8257 * gtk/gtktoolbar.c: Add internal padding style property; add
8258 shadow type style property
8260 * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
8261 state; and put Container::border_width outside the frame
8263 * gtk/gtktextview.c: don't draw focus rectangle if we're in
8264 interior focus mode, we just use blinking cursor
8266 2001-06-04 Havoc Pennington <hp@redhat.com>
8268 * configure.in: Make gdk-pixbuf have same version number as GTK
8270 2001-06-04 Havoc Pennington <hp@redhat.com>
8272 * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on
8273 digits greater than 6. If there actually are limits (which there
8274 likely aren't), should clamp to them not warn.
8275 (gtk_spin_button_new_with_range): don't take log of 0
8276 (gtk_spin_button_size_request): use digits to compute size
8277 request, rather than step increment.
8279 * tests/testgtk.c (create_spins): test larger values of digits
8281 * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
8282 font on map not expose, so we don't get weirdness during scrolling
8284 2001-06-04 Havoc Pennington <hp@redhat.com>
8286 * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
8287 Sam Solon, bug #54577, update value even if not drawable.
8289 2001-06-04 Havoc Pennington <hp@redhat.com>
8291 * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
8292 SCROLL_LEFT, reported by Thomas Broyer.
8294 2001-06-04 Havoc Pennington <hp@redhat.com>
8296 * gtk/gtkrange.c (gtk_range_adjustment_value_changed):
8297 Process updates immediately, to prevent funny lag effect
8298 when scrolling, at some mild potential efficiency cost.
8300 2001-06-04 Havoc Pennington <hp@redhat.com>
8302 * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
8303 slider on the click.
8305 2001-06-03 Havoc Pennington <hp@pobox.com>
8307 * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
8308 hscale/vscale details, so we can use it for scrollbar as well.
8310 * tests/testgtk.c (reformat_value): honor digits from GtkScale
8312 * gtk/gtkenums.h (GtkTroughType): Remove this enum
8313 (GtkScrollType): add START and END from GtkTroughType
8315 * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
8318 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
8319 gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
8320 gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
8321 gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
8322 gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
8324 Notable changes in the process:
8326 - stepper_size style property is the height for vertical
8327 ranges, width for horizontal; the other dimension matches
8329 - add ability to do NeXT-style steppers (and several other styles
8330 that don't make any sense)
8331 - added min_slider_length, fixed_slider_length properties to
8333 - cleaned some private (or at least useless) functions out of
8335 - moved bindings to GtkScale from subclasses, even arrow keys,
8336 since blind users don't know scale orientation.
8337 - change move_slider action signal to use new GtkScrollType,
8338 remove GtkTroughType argument
8339 - digits rounds the values a range will input to the given
8340 number of decimals, but will not try to force adjustment
8341 values set by other controllers. That is, we no longer
8342 modify adjustment->value inside a value_changed handler.
8343 - added getters for GtkScale setters
8344 - middle-click begins a slider drag
8346 Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com>
8348 * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
8349 getting the focus code to work.
8350 (gtk_tree_view_class_init): Add a bunch of keybindings.
8352 * gtk/gtktreeviewcolumn.c
8353 (gtk_tree_view_column_set_cell_data_func):
8354 s/GtkCellDataFunc/GtkTreeCellDataFunc.
8355 (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
8356 of "properties_changed" to help justify the death of the latter
8359 * tests/testtreefocus.c (main): Let some columns be focussable to
8362 2001-06-01 Havoc Pennington <hp@redhat.com>
8364 * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
8366 * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
8367 overwrite in overwrite mode if we already deleted the selection
8368 and replaced it with new text.
8370 * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
8371 selection to an empty range, clear the clipboard if we owned it.
8372 (gtk_label_set_selectable): give up selection if we become
8374 (gtk_label_state_changed): override state changed to unselect text
8376 (get_text_callback): add paranoia check that indexes aren't
8377 outside of label->text
8378 (gtk_label_select_region): make -1 for start_offset mean "end of
8379 label," for consistency with GtkEditable
8381 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
8382 GTK_DIALOG_NO_SEPARATOR flag
8384 Fri Jun 1 11:47:11 2001 Owen Taylor <otaylor@redhat.com>
8386 * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix
8387 notifications on non-existant "enable_arrow_keys".
8388 (#53753, Skip Montanaro)
8390 Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
8392 * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
8395 * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
8396 of allocation argument be GDK_TYPE_RECTANGLE.
8398 Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
8400 * gtk/gtkoptionmenu.c: Account for the fact that the border
8401 width is _outside_ the window. (Fixes #54585, bug found
8404 Wed May 30 15:56:30 2001 Owen Taylor <otaylor@redhat.com>
8406 * gtk/gtksettings.c (gtk_settings_get_property): Validate
8407 value from GDK settings against parameter spec.
8409 * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
8410 to temporary values and use g_value_transform(), since
8411 thinking that GValue was going to be easy or efficient
8412 to use was, of course, a mistake.
8414 * gtk/gtksettings.c: Add cursor blink setting.
8416 * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
8418 * gtk/gtkentry.c: Add cursor blinking.
8420 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
8421 cursor blink global settings.
8423 * gtk/gtkentry.c (gtk_entry_button_press): Add notification
8424 for :text_position in places where it is missing.
8426 Tue May 29 18:17:11 2001 Owen Taylor <otaylor@redhat.com>
8428 * autogen.sh (have_libtool): Fix GNU sedism (#55430)
8430 Tue May 29 17:40:29 2001 Owen Taylor <otaylor@redhat.com>
8432 * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
8433 not pkg-config. (#51032)
8435 * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
8436 (fixes #51952, James Henstridge)
8438 2001-05-27 Alexander Larsson <alla@lysator.liu.se>
8440 * gtk/gtkstock.h (GTK_STOCK_GO_UP):
8441 Rename to the more correct gtk-go-up.
8443 * gtk/stock-icons/stock_menu_sort_ascending.png:
8446 * gtk/stock-icons/stock_menu_sort_descending.png:
8447 Changed to show descending instead of ascending.
8449 * gtk/gtkiconfactory.c:
8450 Added menu size icon to sort ascending.
8452 * gtk/stock-icons/Makefile.am:
8453 Added stock_menu_sort_ascending.png.
8455 * gtk/gtkseparatormenuitem.c:
8456 Use correct typenames.
8458 Sun May 20 20:07:35 2001 Tim Janik <timj@gtk.org>
8460 * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
8461 gulong as in GSignal.
8463 Fri May 25 19:04:17 2001 Jonathan Blandford <jrb@redhat.com>
8465 * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
8466 instances of GtkCellRenderer in code (all but dnd icon code).
8467 Virtualized in GtkTreeViewColumn. Now I need to move focus in
8468 there, and I can do multiple Cells per column.
8470 * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
8472 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
8473 when model was unreffed prior to removing the row reference.
8475 2001-05-25 Havoc Pennington <hp@redhat.com>
8477 * gtk/gtkiconfactory.c: fix so that default icons are created if
8478 you call gtk_stock_list_ids()
8480 * demos/gtk-demo/stock_browser.c (create_model): sort stock items
8483 2001-05-25 Havoc Pennington <hp@redhat.com>
8485 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
8486 set can render without falling back to missing image icon
8488 * gtk/gtktextview.c (gtk_text_view_size_request): request full
8489 size of text, instead of random values
8491 * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
8492 size of tree view, instead of random values
8494 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
8495 image in an appropriate size
8497 * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
8498 etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
8500 Throughout: fix GTK_STOCK_BUTTON_ instances
8502 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
8503 gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
8504 Add a bunch of new stock items/icons
8506 * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
8507 new function, convenience for inserting columns with a data func
8509 * gtk/gtkiconfactory.c: keep a list of all existing icon factories
8510 (_gtk_icon_factory_list_ids): use list of all factories to
8511 generate a list of all known IDs
8513 * gtk/gtkstock.c (gtk_stock_list_ids): replace
8514 gtk_stock_list_items() with a function that returns all IDs known
8515 including those for GtkIconFactory.
8517 2001-05-25 Hans Breuer <hans@breuer.org>
8519 * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
8520 work -> check boxes and radio buttons are drawn now, even on win9x.
8521 Improved line settings a bit, still no clue how to get really dotted
8522 lines on win9x, on NT it's PS_ALTERNATE.
8524 * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for
8525 GDK_HINT_MIN_SIZE as well
8527 * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
8529 * gtk/gtk.def : updated
8531 * gtk/gtktreeprivate.h : change column_drop_func to be a function
8532 pointer not a function pointer pointer
8534 * tests/testdnd.c : include <stdlib.h> for putenv prototype
8536 * tests/testsocket.c : made it compile on win32 again
8538 * tests/makefile.msc : one more test-app uses prop-editor.obj
8540 2001-05-22 Havoc Pennington <hp@pobox.com>
8542 * gtk/gtkbin.c (gtk_bin_get_child): New function
8544 Wed May 23 20:07:53 2001 Owen Taylor <otaylor@redhat.com>
8546 * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
8547 to ignore when doing compose processing.
8549 2001-05-22 Joe Shaw <joe@ximian.com>
8551 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle):
8552 Simplify as suggested by Havoc. Just get the last iter and work
8553 backward to the tag instead of getting a line and working back from
8554 there. Fixes passing in an invalid offset to
8555 iter_init_from_byte_offset().
8557 Tue May 22 16:25:27 2001 Jonathan Blandford <jrb@redhat.com>
8559 * gtk/gtktreeview*.h:
8562 Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
8563 macros to all objects.
8565 Tue May 22 15:13:52 2001 Jonathan Blandford <jrb@redhat.com>
8567 * gtk/gtkcellrenderertext.c
8568 (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
8569 with very large (TM) amounts of text. May be moved to
8570 GtkCellRenderer in the future, though I'm not sure it wants to be
8573 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
8574 More sanity brought to this class. I like it.
8576 * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
8577 case. Kids, don't try this at home.
8579 * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
8580 convenience function.
8582 * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
8584 2001-05-21 Alexander Larsson <alexl@redhat.com>
8587 Added properties. Based on patch by Lee Mallabone.
8593 * gtk/gtktextview.c:
8594 Converted GtkArg to GParam. Based on patches by John Margaglione.
8596 * tests/Makefile.am:
8598 Add a property editor to testtext.
8600 Mon May 21 11:29:21 2001 Owen Taylor <otaylor@redhat.com>
8602 * gtk/gtk{h,v,}paned.c: Only show the separator if
8604 * configure.in: Fixed reversed conditional causing all image
8605 libraries to be linked in.
8607 2001-05-21 Joe Shaw <joe@ximian.com>
8609 * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
8610 that top_y needs to be >= 0.
8612 2001-05-11 Havoc Pennington <hp@pobox.com>
8614 * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
8615 losing connection to the X server.
8617 Sun May 20 13:59:20 2001 Owen Taylor <otaylor@redhat.com>
8619 * configure.in: Start checks for X from pangox/pangoxft
8620 CFLAGS to avoid duplicate libraries.
8622 * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
8624 * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
8627 2001-05-18 Alexander Larsson <alexl@redhat.com>
8629 * gtk/gtkspinbutton.c:
8630 Convert GtkArgs to GParams. Based on patch by John Margaglione.
8631 Also do size request reasonable for MAXDOUBLE. Previously it printed
8632 the limits to a buffer and overran it. Instead do it using log10() and
8633 limit the width to 10 digits.
8635 * gtk/gtkwidget.c (gtk_widget_get_property):
8636 Correctly handle setting the parent property to NULL.
8638 Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
8640 * gtk/gtktextview.c (gtk_text_view_style_set): Reset
8641 style attributes even if the widget isn't realized.
8643 * demos/gtk-demo/main.c: Use a slightly smaller font.
8645 Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
8647 * gtk/gtkcontainer.c: Remove reallocate-redraws property.
8648 This is something that only a widget writer would ever want
8651 * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
8652 gtk_signal_emit_by_name().
8654 * gtk/gtkviewport.c: Fix some warnings.
8656 * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
8657 allowing the requisitions of multiple widgets to be grouped
8660 * tests/testgtk.c: Add GtkSizeGroup test
8662 * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
8664 * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
8667 * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
8669 2001-04-28 Martin Baulig <baulig@suse.de>
8671 * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
8672 to gtk_image_menu_item_set_icon() and made it work if there's already
8674 (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
8675 (gtk_image_menu_item_new_with_label): New function.
8677 Thu May 17 16:20:04 2001 Jonathan Blandford <jrb@redhat.com>
8679 * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
8680 highlighting code!!!! The result is okay so long as you don't try
8681 to stress it. It also highlights a bug in the TextView so it's in
8682 an unproportional font right now until it's fixed.
8684 *demos/gtk-demo/*.c: Clean up code a bit to make it
8685 ugly-parser(TM) friendly. (-:
8687 2001-05-17 Joe Shaw <joe@ximian.com>
8689 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
8690 that x_offset and y_offset must be >= 0. Clip the cursor being drawn
8691 if it is only partially onscreen.
8693 Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
8695 * gtk/gtkentry.c: Make logical motion and deletion by graphemes,
8698 * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
8699 are not zero or one; that is, when graphemes of multiple characters
8702 * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
8705 2001-05-17 Alexander Larsson <alla@lysator.liu.se>
8708 Add properties, based on patch by Lee Mallabone.
8710 * gtk/gtknotebook.c:
8712 Convert from GtkArg to GParam, based on patch by John Margaglione.
8716 * gtk/gtkhscrollbar.c:
8717 * gtk/gtkvscrollbar.c:
8719 Move adjustment property to GtkRange.
8722 Setup mnemonics on property changes
8724 * gtk/gtkwidget.c (gtk_widget_get_property):
8725 GdkExtensionMode is an enum, not a flag. Set it with
8726 g_value_set_enum ().
8728 * tests/prop-editor.c:
8729 Better propery editor.
8732 Add new property test. Pass zero to the property editor to
8733 get properties from all derived types.
8735 Sun May 13 12:01:12 2001 Owen Taylor <otaylor@redhat.com>
8737 * autogen.sh (have_automake): Require libtool-1.4,
8740 * acinclude.m4: Remove libtool macros.
8742 * gdk-pixbuf/Makefile.am: Add dependencies to loade
8745 * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
8748 * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
8749 libgdk.la for libgtk.
8751 * modules/input/Makefile.am: Make modules have full
8754 Wed May 16 14:06:01 2001 Jonathan Blandford <jrb@redhat.com>
8756 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
8757 #54699 where paths weren't being checked for correctness.
8759 Tue May 15 20:13:24 2001 Jonathan Blandford <jrb@redhat.com>
8761 * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
8762 in any order you wan, whether or not the column is added to the
8763 tree, or the tree is realized. Yay!
8765 * gtk/gtktreeviewcolumn.c
8766 (gtk_tree_view_column_setup_sort_column_id_callback): handle
8767 sorting columns a lot saner
8769 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
8770 new function to actually set wether or not a column is
8773 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
8776 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
8777 Fix nasty bug where we were showing the button just before
8778 realizing it. As a result, the parent window was
8779 tree_view->window instead of tree_view->priv->header_window.
8781 * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
8782 to let you easily reorder a list or tree.
8784 2001-05-15 Alexander Larsson <alla@lysator.liu.se>
8786 * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
8787 from args to properties.
8789 Tue May 15 10:11:59 2001 Owen Taylor <otaylor@redhat.com>
8791 * gtk/gtkpreview.c: Apply patch from John Margaglione converting
8792 from args to properties. (#51957)
8794 * gtk/gtkscale.c (gtk_scale_class_init): Move install property
8795 calls to after ->set_property call.
8797 Mon May 14 14:56:21 2001 Owen Taylor <otaylor@redhat.com>
8799 * tests/prop-editor.c: Block against redundant changes.
8801 * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
8804 Sun May 13 18:40:04 2001 Owen Taylor <otaylor@redhat.com>
8806 * gdk/gdkpixmap.h: Remove creative formatting.
8808 Thu May 10 19:22:28 2001 Owen Taylor <otaylor@redhat.com>
8810 * gtk/gtktogglebutton.c: Patch from John Margaglione converting to
8811 property API. (#51669)
8813 * gtk/gtkscale.c: Patch from John Margaglione converting to
8814 property API. (#51891)
8816 * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
8817 to property API. (#50985)
8819 Fri May 11 20:13:44 2001 Tim Janik <timj@gtk.org>
8821 * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
8822 buffering state across expose event, so we still call end_paint().
8824 2001-05-11 Alexander Larsson <alexl@redhat.com>
8826 * gtk/gtkhsv.c (paint_triangle):
8827 Expose the ring in the triangle at the correct place when
8828 exposing just a part of the triangle.
8830 * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
8831 Return FALSE, or window focusing will not work.
8833 2001-05-11 Havoc Pennington <hp@pobox.com>
8835 * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
8838 * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
8841 Fri May 11 02:53:57 2001 Tim Janik <timj@gtk.org>
8843 * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
8844 propagate exposes to NULL child.
8846 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
8847 against not having one of the scrollbars.
8849 * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
8850 we don't keep a mnemonic window if we have no mnemonic installed.
8852 Fri May 11 01:05:00 2001 Tim Janik <timj@gtk.org>
8854 * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
8855 it has the _important_ side effect of initializing a class.
8857 2001-05-10 Alexander Larsson <alexl@redhat.com>
8859 * gdk/linux-fb/gdkprivate-fb.h:
8860 Make sure you can compile out the implementation/wrapper assert
8863 * gdk/linux-fb/gdkdrawable-fb2.c:
8864 Check implementation/wrappers, initialize type for pixmap dummys.
8866 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8867 Hide the cursor if reading from the screen.
8869 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8870 Fix sign bug in tiling code.
8872 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
8873 Handle background pixmaps.
8875 Wed May 9 15:27:22 2001 Jonathan Blandford <jrb@redhat.com>
8877 * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
8878 function to let user control where columns are dragged.
8880 * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
8883 Wed May 9 09:08:44 2001 Jonathan Blandford <jrb@redhat.com>
8885 * gtk/gtktreeview.c (gtk_tree_view_class_init): New
8886 "columns_changed" signal.
8887 (gtk_tree_view_motion_draw_column_motion_arrow): Change column
8888 motion code to draw arrows to the side if indicator is outside the
8890 (gtk_tree_view_map_expanded_rows): Implement.
8892 2001-05-07 Alexander Larsson <alexl@redhat.com>
8894 * demos/testpixbuf-save.c:
8895 * demos/testpixbuf-drawable.c:
8896 Include gdkfb.h on linux-fb.
8898 2001-05-07 Alexander Larsson <alexl@redhat.com>
8900 * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
8901 New function for getting toplevel window at position.
8902 (gdk_drag_find_window): Use get_toplevel_window () instead
8903 of gdk_window_get_pointer(). (gdk_drag_status): Use
8904 correct context for getting window.
8906 * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
8907 g_strdup the atom name.
8909 * gdk/linux-fb/gdkwindow-fb.c:
8912 * gtk/gtkdnd.c (gtk_drag_source_handle_event):
8913 Add code for changing cursor on linux-fb backend (same as
8916 2001-05-07 Federico Mena Quintero <federico@ximian.com>
8918 * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
8919 present before doing anything with it. Patch from Håvard Kvålen
8920 <havardk@netcom.no>. Fixes Ximian bugzilla #2492 (OK, the bug
8921 report was not for the development branch of GTK+, but it applies
8924 2001-05-04 Havoc Pennington <hp@redhat.com>
8926 * configure.in: fix some shell typos
8928 * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
8930 * gtk/gtkimage.c: handle animations
8932 * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
8933 border_width * 2, not just border_width
8935 * gtk/gtkscale.c: add "format_value" signal to allow people
8936 to override the way values are drawn.
8937 (gtk_scale_get_value_size): fix width/height mistake,
8938 and compute size from actual displayed text, not
8941 * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in
8944 * tests/testtext.c: Add "Remove all tags" menu item for testing
8946 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
8948 * demos/gtk-demo/main.c (main): add hack so we can find modules
8949 without installing gtk
8951 * demos/gtk-demo/textview.c (insert_text): demo font scaling
8953 * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
8955 (gtk_cell_renderer_text_set_property): remove some bogus
8958 * gtk/gtktexttag.c: add "scale" property which is a font scaling
8961 * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
8964 * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
8965 gtk_text_iter_is_first
8967 2001-01-06 Hans Breuer <hans@breuer.org>
8969 * gdk/gdk.def : updated exports
8971 * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
8972 gdk won't compile anymore
8974 * gdk/win32/gdkevents-win32.c : initialize ret_val when
8975 processing GDK_FILTER functions, initialize event.key->hardware_keycode.
8976 Improved gdk_flush () to not only do pending drawing operations
8977 but also process all currently pending events. This should make
8978 the behaviour more similar to the X11 version.
8980 * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
8981 option needs to be set even if there is no GDK_GC_BACKGROUND.
8982 (gdk_win32_hdc_get) : use predraw_set_background () independent
8983 of value_mask. This allows to draw dashed lines leaving the original
8986 * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
8987 after processing, because we can't reuse it as the X11 version does.
8989 * gtk/gtk.def : updated exports
8991 * gtk/makefile.msc.in : added ATK, removed all test apps. (I
8992 would like to get rid of this file again, and use straight
8993 makefile.msc again, as the other Gtk+ subdirs do)
8995 * test/makefile.msc (new file) : build the test apps here
8997 2001-05-05 ERDI Gergo <cactus@cactus.rulez.org>
8999 * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
9000 strike-through setting
9001 (gdk_draw_layout_line_with_colors): Render strike-through
9003 Sat May 5 10:06:24 2001 Owen Taylor <otaylor@redhat.com>
9007 * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
9011 * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
9014 Sat May 5 09:18:30 2001 Owen Taylor <otaylor@redhat.com>
9016 * demos/gtk-demo/images.c (progressive_timeout): Fix
9019 * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
9020 out FIXME warning; just too annoying.
9022 2001-05-04 Alex Larsson <alla@lysator.liu.se>
9024 * gdk/linux-fb/gdkcolor-fb.c:
9025 Better error messages.
9027 * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
9028 Initialize abs_x and abs_y.
9030 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9031 Correct handling of stipple offset.
9033 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
9034 Treat directcolor framebuffers as truecolor.
9036 Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
9038 * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
9039 dependency on Atk for accessibility support.
9041 * configure.in **/Makefile.am: Major reworking of substituted
9042 variables for CFLAGS/LIBS to make a lot more sane and
9043 keep the the compile/link lines a bit shorter.
9045 * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
9047 Thu May 3 08:10:54 2001 Owen Taylor <otaylor@redhat.com>
9049 * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
9050 value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
9051 use _gtk_boolean_handled_accumulator.
9053 Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
9055 * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
9056 to fix things so clicking inside selection leaves cursor
9057 at point where clicked. (#50324)
9059 * gtk/gtksettings.c (gtk_settings_class_init): Restore
9060 sane value for default double click time.
9062 * tests/testtext.c (test_init): Really path to input modules.
9064 2001-05-03 Sven Neumann <sven@convergence.de>
9066 * demos/testpixbuf-save.c: include target-specific headers as
9067 done in testpixbuf-drawable.c
9069 Wed May 2 20:36:38 2001 Owen Taylor <otaylor@redhat.com>
9071 * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
9072 new_text_length appropriately when we run into the
9073 size limit for the entry. (#53445, reported by Jeff Franks)
9075 * tests/testgtk.c (create_entry): Remove most of the
9076 property toggle buttons. Replace with a "Props" button
9077 that brings up a property editor.
9079 * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
9080 Split the property editor code out for reuse, improve.
9082 Wed May 2 17:26:22 2001 Owen Taylor <otaylor@redhat.com>
9084 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
9085 trap errors around calls to XSetInputFocus since we have
9086 no way of knowing reliably whether we are viewable or
9089 Tue May 1 09:21:23 2001 Jonathan Blandford <jrb@redhat.com>
9091 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9092 fix bug in dropping columns. Moving columns now basically works
9093 modula some fine tuning.
9095 Tue May 1 19:09:21 2001 Jonathan Blandford <jrb@redhat.com>
9097 * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
9098 autoscroll support. It mostly works, but could use some fine
9100 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9101 Actually move the column.
9103 Mon Apr 30 20:29:27 2001 Owen Taylor <otaylor@redhat.com>
9105 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c
9106 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
9107 New default theme! A slighly improved version of the 2.0 Raleigh
9108 theme, with Windows-esque focus/drawing default.
9109 (GtkWidget::interior_focus defaults to TRUE.)
9111 * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
9113 2001-04-30 Havoc Pennington <hp@pobox.com>
9115 * tests/testtext.c (line_numbers_expose): fix to work with
9116 gtk_paint_layout change
9118 Mon Apr 30 19:18:07 2001 Owen Taylor <otaylor@redhat.com>
9120 * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
9121 gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
9122 gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
9123 use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
9125 * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
9126 with GtkWidget::interior_focus = TRUE better.
9128 * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
9129 ::default_outside_border for more flexibility.
9131 * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove
9132 G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
9133 change that had to be made with g_object_get.
9135 Sun Apr 29 20:13:40 2001 Jonathan Blandford <jrb@redhat.com>
9137 * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
9138 (gtk_tree_view_move_column_after): Clean up interface.
9140 Sun Apr 29 03:02:02 2001 Tim Janik <timj@gtk.org>
9143 * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
9146 * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
9150 (gtk.defs): generate enum portions with glib-mkenums.
9151 (gtktypebuiltins_evals.c): generate this with glib-mkenums.
9152 got rid of makeenums.pl and makeenums.awk in distributed tarballs.
9154 * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
9157 * docs/Changes-2.0.txt: keep a note on signal handlers now
9158 not getting emitted during the emission they were connected within.
9160 2001-04-28 Havoc Pennington <hp@pobox.com>
9162 * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
9164 2001-04-24 Havoc Pennington <hp@redhat.com>
9166 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line):
9167 (gtk_text_layout_move_iter_to_next_line): fix these two for
9168 invisible text, lots of other stuff still hosed.
9170 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
9171 new function, replaces the get/set palette stuff. This function
9172 is intended for use by libgnomeui which should set the hook to a
9173 thing which sets the palette in GConf, and we need the
9174 GConf-to-xsettings proxy which will result in the change being
9175 propagated back to the GTK app.
9177 * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning
9178 about unusable signals that it may be because the signal has
9181 * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
9182 style, otherwise gtkrc.c won't know to create a new GtkStyle for
9184 (gtk_widget_modify_color_component): call
9185 gtk_widget_modify_style() so the rc style will get copied.
9186 (gtk_widget_modify_font): ditto
9188 * gtk/gtkrc.c: make a couple variables static
9190 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
9191 help button by default, since it does nothing
9193 * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
9196 * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
9197 so we can have tooltips
9199 * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
9202 * gdk/gdkimage.h: mark gdk_image_new_bitmap with
9203 GDK_ENABLE_BROKEN, because its memory behavior is completely
9206 * gtk/gtknotebook.c: remove key press handler, replace with
9207 binding set, add numeric keypad support
9209 * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
9211 * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
9213 * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
9214 addition to plain Delete
9216 * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
9217 GDK_KP_Enter in addition to GDK_Return
9219 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
9220 activate on entry instead of key press
9221 (gtk_font_selection_on_clist_key_press): get
9222 rid of this signal handler, not needed with new font sel.
9224 * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
9225 no-longer-needed emit_stop_by_name(), just return TRUE
9227 * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
9228 cruft, this widget is no longer focusable.
9230 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
9231 gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
9232 move_slider action signal, add binding set for vscale/hscale, in
9233 the process support numeric keypad
9235 * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings;
9236 make GDK_Return and GDK_KP_Enter activate the entry via
9237 binding set, instead of hardcoded.
9239 Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
9241 * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
9242 code. Some documentation added.
9244 2001-04-27 Havoc Pennington <hp@redhat.com>
9246 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
9248 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
9250 * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
9251 line/para separators
9252 (gtk_entry_create_layout): set single paragraph mode on the layout
9254 * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
9255 spacing between the image and label; instead, inside a button box
9256 the button will get extra space that will go there, but if people
9257 configure button box for 0 chubbiness, then there's no spacing.
9259 * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
9260 and min/max size style properties, so people can tune their
9263 * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
9266 * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
9267 space_style, and button_relief into style properties, remove
9268 functions for setting them
9270 * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop
9273 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
9274 types from gtk_widget_style_get
9276 * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
9277 with a style property.
9279 * gdk/x11/gdkevents-x11.c: namespace the settings
9281 * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
9283 * gtk/gtksettings.c (gtk_settings_class_init): remove code with
9284 side effects from inside g_assert(), so that G_DISABLE_ASSERT can
9285 be used. Also, translate doc strings for settings. Also, namespace
9286 the double-click-time property. Also, remove bell properties crap.
9288 2001-04-27 Sven Neumann <sven@gimp.org>
9290 * Makefile.am: before creating links, check if pkg-config files
9291 exist for the default target. Otherwise link to the pkg-config files
9292 that got installed with this build.
9294 Thu Apr 26 19:11:46 2001 Jonathan Blandford <jrb@redhat.com>
9296 * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
9297 dragging code. Revealed some (potential) GdkWindow bugs.
9299 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
9300 _gdk_window_init_position to the end of reparent to fix the case
9301 of reparenting when new_x != old_x and new_y != old_y.
9303 Thu Apr 26 10:54:50 2001 Owen Taylor <otaylor@redhat.com>
9305 * gtk/gtkentry.c (strstr_len): Fix optimization that
9306 was correct for the use here, but completely incorrect
9309 Thu Apr 26 10:40:41 2001 Owen Taylor <otaylor@redhat.com>
9311 * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
9312 until patch adding gtk_window_set_size() is recommitted.
9314 * **Makefile.am configure.in gdk/x11/gdkim-11.c
9315 gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
9316 gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
9319 Wed Apr 25 12:16:36 2001 Owen Taylor <otaylor@redhat.com>
9321 * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for
9322 window == NULL in a number of cases.
9324 * tests/testdnd.c: Set module path for gdk-pixbuf.
9326 Thu Apr 19 16:11:07 2001 Owen Taylor <otaylor@redhat.com>
9328 * gtk/Makefile.am xembed.h: File containing #defines
9329 for XEMBED protocol.
9331 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]:
9333 - Change protocol from old plug/socket specific protocol
9335 - Various fixes to work with GTK+-2.0
9337 Still quite a bit of work to do here to handle initiation
9338 from the socket side (as specified by XEMBED), to handle
9339 the more advanced features of XEMBED, and to figure out
9340 a good way to handle same-app embedding with less overhead
9341 than using full XEMBED.
9343 Wed Apr 18 16:04:28 2001 Owen Taylor <otaylor@redhat.com>
9345 * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
9346 track of whether the toplevel has the focus; only send
9347 focus-in events to the focus widget when the window
9348 actually has the focus.
9350 2001-04-25 Havoc Pennington <hp@pobox.com>
9352 * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
9353 were still in the header
9355 2001-04-24 Alexander Larsson <alexl@redhat.com>
9357 * gtk/gtkclist.[ch]:
9359 When there is a row highlighted for D'n'D it must alse
9360 be painted hightlighted on exposes. Otherwise exposes from
9361 the icon being dragged will mess up the hightlight.
9364 Don't recenter selected font when exposing the font family
9365 clist. This means you can now actually scroll the font family
9368 * gtk/gtknotebook.c:
9369 Fix focus movement on scrolling tabs that are placed on the left
9372 2001-04-21 Havoc Pennington <hp@pobox.com>
9374 * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
9375 empty/invisible lines.
9377 * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
9378 (gtk_text_iter_set_visible_line_index): new functions to set
9379 indexes excluding invisible text
9381 * gtk/gtktextlayout.c (line_display_iter_to_index): get visible
9384 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
9385 (gtk_text_iter_get_visible_line_offset): new functions to
9386 get indexes excluding invisible text
9388 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
9389 bunch of extra padding that served no purpose
9391 * gtk/gtkdialog.c: Make all the spacings configurable via style
9392 properties, for chubbiness configuration in themes
9394 * tests/testtext.c: fix path to the immodules.
9396 Mon Apr 23 18:57:03 2001 Jonathan Blandford <jrb@redhat.com>
9398 * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
9399 got munched by #endif.
9401 * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
9403 * gtk/gtktreeview.c: Refactored code to clean up a number of
9406 * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
9407 values to make consistent with other functions. Spotted by Jeff
9408 Franks <jcf@tpg.com.au>.
9410 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
9411 declaration spotted by Jeff Franks <jcf@tpg.com.au>.
9413 2001-04-23 Sven Neumann <sven@gimp.org>
9417 * gtk/gtksocket.c: on request of Owen, reverted my last change
9418 and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
9420 2001-04-23 Sven Neumann <sven@gimp.org>
9422 * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
9423 compile for non-X11 targets again
9425 2001-04-20 Alexander Larsson <alexl@redhat.com>
9427 * gtk/gtkcolorsel.[ch]:
9428 API Change. Take GdkColor arguments instead of gdouble *.
9429 Leave the old gtk_color_selection_set_color for compatibility,
9430 but marked deprecated.
9431 Do correct rounding when converting RGB <-> HSV.
9433 * gtk/gtkcolorseldialog.c:
9435 Use new GtkColorSelection API.
9438 Fix problem selecting colors in triangle when Hue is 330.
9439 Fix some black dots around the HSB triangle.
9442 return FALSE from the focus_in_event handler to fix focus problems.
9444 2001-04-18 Havoc Pennington <hp@redhat.com>
9446 * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
9447 set, so keybindings are configurable
9448 (gtk_window_activate_default): Change to activate the focus widget
9449 instead if there's a focus widget, to be consistent with the
9450 behavior that previously existed in key_press_event
9452 2001-04-18 Havoc Pennington <hp@redhat.com>
9454 * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
9456 2001-04-18 Havoc Pennington <hp@redhat.com>
9460 * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
9463 * gtk/gtktext.c: Use base/text instead of bg/fg throughout
9465 * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
9467 * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
9469 * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
9470 to blue for base, in addition to bg
9472 2001-04-18 Havoc Pennington <hp@redhat.com>
9474 * tests/testgtk.c (create_image): allow shrinking the image window
9475 to test that we clip to allocation.
9477 * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
9480 * gtk/gtkenums.h: move GtkWrapMode in here, #50472
9482 Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
9484 * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
9485 mode on shm segments to 0600. We'll see who complains.
9487 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
9488 _gdk_windowing_window_destroy() AFTER recursing through
9491 * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
9492 testsocket_child on X.
9494 * tests/testsocket[_child].c: Fix uses of
9495 gtk_window_get_default_accel_group().
9497 [ Merge patch from Ramiro Estrugo <ramiro@eazel.com> from gtk-1-2 ]
9499 * gdk/gdkimage.c: (gdk_image_get):
9500 Deal with the possibility that XGetImage() might return NULL.
9501 Allocate the GdkImagePrivate structure only after XGetImage()
9502 succeeds in order not to dereference a NULL ximage pointer. This
9503 prevents a core dump when XGetImage() fails - which is unlikely,
9504 but can happen due to race conditions accessing the geometries of
9505 drawables. An x error will still be triggered, but the gdk image
9506 wrapper at least wont seg fault.
9508 2001-04-18 Havoc Pennington <hp@redhat.com>
9510 * gtk/gtkimage.c: fix to properly queue resizes when the image is
9513 * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
9514 if the insertion point isn't editable
9516 * demos/gtk-demo/images.c: Added a GtkImage demo
9518 * demos/gtk-demo/drawingarea.c: drawing area demo
9520 * demos/gtk-demo/menus.c (create_menu): cleanups
9522 Wed Apr 18 12:15:52 2001 Owen Taylor <otaylor@redhat.com>
9524 * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h
9525 gdk/x11/gdkevents-x11.c: Introduce an extra child
9526 of toplevel windows that serves to hold the focus to
9527 avoid events being delivered to embedded windows.
9529 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
9530 some extra variables to clean up code and reduce the
9533 * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
9534 guint for 1 bit bit fields, not gboolean.
9536 Wed Apr 18 10:04:23 2001 Owen Taylor <otaylor@redhat.com>
9538 * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
9539 not TRUE. (Fixes #52925)
9541 Tue Apr 17 18:05:34 2001 Owen Taylor <otaylor@redhat.com>
9547 * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
9550 Tue Apr 17 13:47:12 2001 Owen Taylor <otaylor@redhat.com>
9552 * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9554 * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
9555 names to compatibility #defines so docs work.
9557 * gtk/gtkenums.h: Remove GtkMenuFactoryType
9559 * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
9561 * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9563 * tests/testgtkrc: No magenta cursors, please.
9565 * README.in INSTALL.in HACKING README.cvs-commits: Updated.
9567 * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
9569 Mon Apr 16 14:38:41 2001 Owen Taylor <otaylor@redhat.com>
9571 * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
9572 grabs, since they are no longer necessary.
9574 * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
9575 by signal_connect() and call gtk_button_pressed() rather
9576 than signal_connect_after().
9578 * tests/testgtk.c: Restore radio menu items to combos
9579 since they'll look OK with Raleigh, and it is easier
9580 than finishing the process of removing them that was
9583 2001-04-16 Hans Breuer <hans@breuer.org>
9586 * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
9588 * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
9589 we are interested in the functions return value not the function address
9590 * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
9592 * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
9594 2001-04-14 Hans Breuer <hans@breuer.org>
9597 * gdk/makefile.msc : updated
9599 * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is
9600 "fill with tile" do so with new helper function gdk_win32_draw_tiles
9601 (the testgtk::text backgound pixmap is drawn again)
9602 Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect
9604 * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
9606 * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
9607 Not sure if the returned settings have the right unit, because I couldn't
9608 find any docs for the X version ...
9611 * gtk/makefile.msc.in : updated
9613 Thu Apr 12 17:41:17 2001 Owen Taylor <otaylor@redhat.com>
9615 * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
9616 wording problems. (Compared to version from Johannes Stezenbach to
9619 Thu Apr 12 21:04:26 2001 Tim Janik <timj@gtk.org>
9621 * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
9624 2001-04-12 Anders Carlsson <andersca@codefactory.se>
9626 * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
9629 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
9631 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
9632 are unsigned insts, therefore use g_value_set_uint.
9633 (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
9635 Sun Apr 8 05:36:06 2001 Jonathan Blandford <jrb@redhat.com>
9637 * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
9639 * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
9642 * gtk/gtktreeview.c: New functions to allow initial column
9645 * gtk/gtktreeviewcolumn.c: Initial column dragging support.
9647 * tests/testtreefocus.c: give dave some love.
9649 * tests/testtreesort.c: Modify test to check really long samples.
9651 2001-04-11 Alexander Larsson <alexl@redhat.com>
9653 * gtk-2.0.m4: Pass pkg-config options
9654 before the other args so it works even if
9655 POSIXLY_CORRECT is set.
9657 Mon Apr 9 19:02:07 2001 Tim Janik <timj@gtk.org>
9659 * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
9662 2001-04-04 Denis Oliver Kropp <dok@convergence.de>
9664 * gtk/gtkcalendar.c (gtk_calendar_button_press):
9665 check for action_func != NULL
9667 2001-04-04 Sven Neumann <sven@gimp.org>
9669 * tests/testgtk.c (test_init): corrected path to gtk.immodules
9671 Wed Apr 4 09:18:18 2001 Tim Janik <timj@gtk.org>
9673 * Released Gtk+-1.3.3.
9675 Wed Apr 4 07:42:23 2001 Tim Janik <timj@gtk.org>
9677 * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
9679 Wed Apr 4 04:13:18 2001 Tim Janik <timj@gtk.org>
9681 * gtk/stock-icons/Makefile.am: stay in builddir and read/write
9682 files to/from source dir. (if we don't stay in builddir, we
9683 can't reach make-inline-pixbuf.
9685 * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
9688 * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
9691 Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
9693 * gtk/gtktreemodelsort.h: removed set_sort_column, as it was
9694 moved to the GtkTreeSortable interface.
9696 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
9697 Make more efficient (fixes #50262).
9699 Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
9703 * configure.in: Remove support for uninstalled glib.
9705 * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
9706 so as not to stop emission.
9708 * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
9709 is no longer supported.
9711 * Makefile.am gtk/Makefile.am tests/*: Moved all tests
9712 into tests, change build order to build modules before
9715 * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
9718 Tue Apr 3 13:52:57 2001 Tim Janik <timj@gtk.org>
9720 * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
9721 and gtk_item_factory_dump_rc() GtkPatternSpec argument to
9722 GPatternSpec. this is actually unlikely to cause breakage in
9723 third-party apps since except for gle, pretty much ever caller
9726 * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
9728 * *.c: use g_pattern_*() API.
9730 * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
9732 * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
9733 directions aren't passed in.
9735 * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
9736 functionality to be usable from gtkstyle.c as well, give precedence
9737 for conversion to user-supplied parsers.
9738 s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
9740 * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
9741 _gtk_settings_parse_convert() for rcporperty value conversion.
9743 2001-04-03 Alexander Larsson <alexl@redhat.com>
9745 * gdk/linux-fb/gdkevents-fb.c:
9746 Add empty gdk_setting_get().
9748 Tue Apr 3 05:09:07 2001 Tim Janik <timj@gtk.org>
9750 * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
9753 * gtk/makeenums.pl: touch this so enum files get remade.
9755 Mon Apr 2 19:36:57 2001 Jonathan Blandford <jrb@redhat.com>
9757 * gtk/gtktreestore.c (gtk_tree_store_init): Bug fix to make trees
9758 work again when not sorted.
9760 * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
9761 and "expand_row" signal, closing bug 52578.
9763 * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
9766 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
9769 Mon Apr 2 18:18:07 2001 Owen Taylor <otaylor@redhat.com>
9771 * gdk/gdkevents.h: Add GdkEventSetting event for notification
9772 of changes to system settings, gdk_setting_get() to retrieve
9773 a single system setting.
9775 * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
9776 to the draft XSETTINGS mechanism.
9778 * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
9781 * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
9782 of GDK settings changes to the GtkSettings object.
9784 * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
9785 double-click-timeout property to GDK.
9787 * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
9788 Define GDK boxed types here.
9790 * gdk/Makefile.am gdk/makeenums.pl: Generate source files
9791 gdk/gdkenumtypes.[ch] for enum definitions.
9793 * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
9794 * gtk/gtk-boxed.defs: Comment out GDK types
9795 * gtk/gtktypeutils.h: Remove GDK types
9796 * gtk/Makefile.am: No longer scan GDK headers for enumerataions
9798 Mon Apr 2 16:41:08 2001 Owen Taylor <otaylor@redhat.com>
9800 * Applied patch from Ron Steinke to add signal accumulators
9801 so that signals with the convention 'TRUE return means
9802 handled' stop emission on a TRUE return.
9804 * gtk/gtkmain.[ch]: Add private accumulator
9805 _gtk_boolean_handled_accumulator, used throughout GTK+.
9807 * gtk/gtkspinbutton.c: Add accumulator for ::output.
9809 * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
9811 * gtk/gtkwidget.c: Add accumulators for event signals,
9812 ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
9813 for ::mnemonic-activate.
9815 * gtk/gtkwindow.c: Add accumulator for ::frame_event
9817 Mon Apr 2 16:24:21 2001 Owen Taylor <otaylor@redhat.com>
9819 * gtk/gtkwidget.c: Add missing include.
9821 Mon Apr 2 16:56:15 2001 Jonathan Blandford <jrb@redhat.com>
9823 * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
9826 * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
9827 "changed" signal to "range_changed".
9829 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
9830 removing a tree from one model would remove all trees from that
9832 * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
9833 changed signal instead.
9835 Mon Apr 2 16:13:58 2001 Owen Taylor <otaylor@redhat.com>
9837 * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
9838 chaining up to parent impl, since we have a INPUT_ONLY
9841 * gtk/gtkentry.[ch]: Add a cursor_color property to set the
9842 foreground color for the cursor.
9844 Mon Apr 2 15:06:13 2001 Owen Taylor <otaylor@redhat.com>
9846 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference
9847 param spec when caching property values, since we unref it
9848 later when we free the style.
9850 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
9851 values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
9853 Mon Apr 2 10:47:57 2001 Owen Taylor <otaylor@redhat.com>
9855 * gtk/gtkwidget.c (gtk_widget_class_init): Fix
9856 G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
9859 Mon Apr 2 00:51:11 2001 Owen Taylor <otaylor@redhat.com>
9861 [ First pass at adding style properties. Still needs some definite
9864 * gtk/gtkbutton.c: Add ::default_spacing style property.
9866 * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
9867 ::indicator_spacing style properties.
9869 * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
9872 * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
9873 rather than a normal property.
9875 * gtk/gtkwidget.c: Add an ::interior_focus style property to
9876 draw focus inside buttons, in the Windows/Java Metal/etc. style.
9878 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
9879 Honor ::interior_focus.
9881 * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is
9884 * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
9885 Add ::slider_width, ::trough_border, ::stepper_size,
9886 ::stepper_spacing style properties.
9888 * gtk/gtkscale.[ch] Add ::slider-length style property.
9890 2001-04-02 Alexander Larsson <alexl@redhat.com>
9892 * gdk/linux-fb/gdkwindow-fb.c:
9893 Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
9894 warnings that were spewed on startup.
9896 * gtk/gtkwindow-decorate.c:
9897 gtk_window_reposition -> _gtk_window_reposition
9899 Sun Apr 1 21:37:22 2001 Owen Taylor <otaylor@redhat.com>
9901 * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9902 Add boxed type for GtkRequistion. Use it for ::size-request.
9904 * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9905 Add a new GtkBorder structure useful for geometry properties
9906 for widgets. Add corresponding GTK_TYPE_BORDER.
9908 * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
9909 Support automatic parser selection like
9910 gtk_settings_install_property_parser().
9912 * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
9913 functionality for use by gtk_widget_class_install_style_property.
9914 Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
9916 Sun Apr 1 20:48:59 2001 Owen Taylor <otaylor@redhat.com>
9918 * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
9919 g_param_spec_unichar().
9921 Sun Apr 1 23:41:37 2001 Tim Janik <timj@gtk.org>
9923 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
9924 _NET window managers.
9926 * gtk/gtkmenufactory.[hc]: cvs removed those files now.
9928 Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
9930 * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
9931 bad needs to be nuked, not just deprecated.
9933 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
9936 * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
9938 * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
9941 * docs/Changes-2.0.txt: updates.
9943 Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
9945 * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
9946 for (i = 0; i < 100; i ++)
9947 g_print ("I will confirm it compile before committing\n");
9949 Sun Apr 1 00:52:06 2001 Jonathan Blandford <jrb@redhat.com>
9951 * gtk/gtktreestore.c: Initial work on implementing the
9952 GtkTreeSortable interface. Basicaly a big cut'n'paste job.
9954 Sun Apr 1 03:28:14 2001 Tim Janik <timj@gtk.org>
9956 * gtk/gtkwidget.c: fixed a bunch of notifications, added
9957 reference counts around emissions where the widget is used afterwards.
9958 added freeze/thaws around multiple properties being notified.
9959 (_gtk_widget_get_aux_info): cleanups.
9961 * gtk/gtksettings.c (gtk_settings_install_property): provide
9962 default parsing functions for gdkcolor, enums and flags.
9964 * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
9966 backed out gtk_window_get_location(), gtk_window_set_location(),
9967 gtk_window_get_size() and gtk_window_set_size(), these
9968 have to be sorted out wrg x/y/width/height/default_with/default_height
9970 kept a flag in GtkWindowGeometryInfo to handle user
9971 resetting default sizes.
9972 cleaned up ZVT comments.
9973 bunch of assorted bug fixes, notification fixes.
9974 (_gtk_window_reposition): make this a really internal function.
9976 * gtk/testgtk.c: fixups.
9978 2001-03-31 Hans Breuer <hans@breuer.org>
9980 * config.h.win32.in : disable USE_MMX for msvc build cause
9981 the assembler doesn't fit and is out of my scope. Disable
9982 USE_GMODULE for msvc build as wel. The right way to share
9983 binaries on win32 would be to use libtiff.dll etc. To reduce
9984 installation hassles IMO it's better to include all fileformats
9985 builtin to gdk-pixbuf
9987 * gdk-pixbuf/makefile.msc : new file
9989 * gdk/gdk.def : updated
9991 * gdk/win32/gdkevents-win32.c : don't erase the background if
9992 .no_bg is set. It improves the scrolling (e.g. of testgtk main
9994 * gdk/win32/gdkgeometry-win32.c : added comment about the above
9996 * gdk/win32/gdkwindow-win32.c : added three new functions like
9997 the X version. Only one is implemented, because the other two
9998 "gdk_window_begin_(resize|move)_drag" got no docs and appear to
9999 be default behaviour on win32 anyway ...
10001 * gtk/gtk.def : updated
10003 * gtk/makefile.msc.in : update for new files, use glib-genmarshal
10004 from where it was built and add an additional rule to automagically
10005 build gtkmarshal.[hc]
10007 * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
10008 before array access for the current entry isn't finished
10010 * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
10011 use g_return_val_if_fail
10013 * gtk/testgtk.c (window_controls) : don't use the *wrong* size
10014 for the static array, but let the compiler calculate it. It
10015 makes me wonder if gcc isn't capable to catch bugs like this ...
10017 2001-03-31 James Henstridge <james@daa.com.au>
10019 * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
10020 constant "-1" in the aux info structure.
10022 2001-03-30 Alexander Larsson <alexl@redhat.com>
10024 * gtk/gtkbutton.c (gtk_button_get_property):
10028 * gtk/gtkcontainer.c:
10030 * gtk/gtkhscrollbar.c:
10033 * gtk/gtkprogress.c:
10034 * gtk/gtkprogressbar.c:
10037 * gtk/gtkviewport.c:
10039 * gtk/gtkvscrollbar.c:
10041 Property patches, based on patches from John Margaglione and Lee Mallabone.
10043 Thu Mar 29 21:20:38 2001 Mike Kestner <mkestner@ameritech.net>
10045 * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
10046 adjustment. Cleaned redundant preconditions (spin != NULL). Added
10047 inline API function docs.
10048 (gtk_spin_button_new_with_range): New convenience constructor.
10049 (gtk_spin_button_set_increments): New adjustment helper.
10050 (gtk_spin_button_set_range): New adjustment helper.
10052 * gtk/testgtk.c : added test of the new convenince constructor and
10053 value_changed signals.
10055 Thu Mar 29 20:20:38 2001 Jonathan Blandford <jrb@redhat.com>
10057 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
10058 listen to the reorder signal.
10060 Wed Mar 28 20:30:26 2001 Owen Taylor <otaylor@redhat.com>
10062 * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
10063 to get the aux info structure fo the widget.
10065 * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
10068 [ Patch from Havoc Pennington <hp@redhat.com> ]
10070 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
10071 to get the size of the window manager frame, basically the same
10072 code that gdk_window_get_root_origin() had
10073 (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
10075 * gtk/gtkwindow.c (gtk_window_set_default_size): use
10076 gdk_window_resize() if the window is realized and resizeable
10078 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
10079 typo so that setting gravity works
10081 * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
10082 allocation if auto_shrink is on, even if the default size
10085 * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
10088 Thu Mar 29 16:29:12 2001 Jonathan Blandford <jrb@redhat.com>
10090 * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
10091 reordering/sorting work. Now pretty much works.
10093 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
10094 reorder mostly work. Still need to get the parity correct.
10096 * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
10097 signal, so I can listen for the sort_column_changed signal so I
10098 can change my "sort_indicator" property. Cool.
10100 Wed Mar 28 00:03:10 2001 Owen Taylor <otaylor@redhat.com>
10102 [ Patch from Havoc Pennington, hp@redhat.com ]
10104 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
10105 Add functions gdk_window_begin_resize_drag/begin_move_drag
10106 to start resizing or moving a toplevel window. This
10107 is done either using the _NET_WM_MOVERESIZE protocol,
10108 or, if that isn't present, by emulation.
10110 * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
10111 to export the above to GTK+-land.
10113 * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
10115 * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
10116 Move this function into gdkwindow, since we need it
10117 when implementing fallback resizing.
10119 * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
10120 Fix typo when setting gravity.
10122 * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
10123 Add an optional (but on by default) resize grip for resizing
10126 01-03-29 Alexander Larsson <alexl@redhat.com>
10128 * gtk/gtktooltips.c (gtk_tooltips_event_handler):
10129 Don't return TRUE from the event handler, that blocks all
10130 event signals on the tooltip widget. Now you can press buttons
10133 Wed Mar 28 19:20:43 2001 Owen Taylor <otaylor@redhat.com>
10135 * gtk/testtext.c (create_buffer): Add missing NULL on
10138 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
10139 c-n-p problem with INCONSISTENT property.
10141 [ Patch from Havoc Pennington <hp@redhat.com> ]
10143 * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
10146 * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
10147 signal as a hook for extending the default popup menu
10149 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10150 use radio menu items for the input method menuitems
10152 * gtk/gtkimcontextsimple.c (check_hex): do better validation of
10153 inserted unicode from Ctrl-Shift-hex input method
10155 * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
10156 validatation here, already done at GtkTextBuffer level.
10158 * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
10159 popup_menu run action signal and Shift+F10 and Menu keybindings.
10161 * gtk/gtkentry.c: implement a default handler for popup_menu
10163 * gtk/gtktextview.c: implement a default handler for popup_menu
10165 * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
10168 * gtk/gtklabel.c: remove "trailer" cruft
10170 Wed Mar 28 17:27:12 2001 Jonathan Blandford <jrb@redhat.com>
10172 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
10173 handle reordering of trees. Seems to mostly work w/ the exception
10174 of the parity flag.
10176 * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
10179 Wed Mar 28 21:12:37 2001 Tim Janik <timj@gtk.org>
10181 * gtk/gtkwidget.h: c++ fixes.
10183 Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
10185 * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
10188 Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
10190 * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
10191 Nils Barth fixing event return values. (#51041)
10193 * gtk/gtkwidget.c: Fix some return values for default
10196 * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
10197 return values for trough_keys functions.
10199 * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
10200 value for add_accelerator (shoudl have been a void
10203 * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
10204 Fix return type of EVENT.
10206 * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
10207 signal return a boolean.
10209 Tue Mar 27 22:07:44 2001 Jonathan Blandford <jrb@redhat.com>
10211 * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
10214 * tests/testtreesort.c (main): fix spelling.
10216 Tue Mar 27 20:55:29 2001 Jonathan Blandford <jrb@redhat.com>
10218 * gtk/gtkliststore.c: More work on implementing sortable
10221 Mon Mar 26 15:48:45 2001 Owen Taylor <otaylor@redhat.com>
10223 * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
10224 reference the widgets in the resulting list. (#11821)
10225 This makes this consistent with gtk_container_children.
10227 * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
10228 uses of gtk_window_list_toplevels.
10230 Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
10232 * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
10233 a virtual function to set whether the IM context should use
10234 the preedit string. (#51922)
10236 Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
10238 * gdk/gdkpango.h: Remove stale FIXME comment.
10240 2001-03-26 Alexander Larsson <alla@lysator.liu.se>
10242 * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
10243 Fixed bug that returned NULL if a filename was selected.
10245 2001-03-24 Havoc Pennington <hp@pobox.com>
10247 * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
10248 to contain the word "theme"
10250 2001-03-24 Havoc Pennington <hp@pobox.com>
10252 * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
10253 slower but finer-grained
10254 (gtk_hsv_focus): get initial focus on the ring or triangle
10255 according to tab direction
10257 * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
10259 2001-03-23 Havoc Pennington <hp@pobox.com>
10261 * gtk/gtkhsv.c: make this somewhat key-navigable
10263 * gtk/gtkfontsel.c: mnemonics
10265 * gtk/gtkgamma.c: mnemonics
10267 * gtk/gtkcolorsel.c: add mnemonics to labels
10269 2001-03-22 Havoc Pennington <hp@pobox.com>
10271 Applied big patch from Seth Lytle to fix event handler return
10272 values, slightly modified.
10274 * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
10276 (gtk_calendar_key_press): return TRUE for GDK_space triggers
10279 * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
10280 (gtk_clist_button_release): return TRUE if handled
10282 * gtk/gtkcolorsel.c (mouse_release):
10283 (palette_activate):
10287 (get_screen_color):
10288 fixed return type (void to gboolean), return TRUE,
10289 added GTK_SIGNAL_FUNC cast
10291 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
10292 (void to gboolean), and return TRUE
10293 (gtk_combo_button_release): changed return value to TRUE after
10294 gtk_grab_add on combo->popwin
10296 * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
10299 * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
10302 * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
10303 press/release and motion that trigger act
10305 * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
10307 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
10310 * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
10311 (gtk_list_button_release): return TRUE if selection
10313 * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
10316 * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
10317 (gtk_menu_shell_button_release): chain parent_menu_shell retval
10319 * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
10321 (gtk_notebook_button_release): return TRUE if we do anything
10323 * gtk/gtkspinbutton.c (gtk_spin_button_button_press):
10324 (gtk_spin_button_button_release): return TRUE or chained retval
10326 * gtk/gtktext.c (gtk_text_button_press):
10327 (gtk_text_button_release): return TRUE
10328 (gtk_text_key_press): remove redundant retval code
10330 * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
10332 (gtk_tree_item_subtree_button_click): changed type to gint, and return
10335 * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
10338 2001-03-23 Havoc Pennington <hp@redhat.com>
10340 * gtk/testgtk.c: fix warnings
10342 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
10344 * gtk/gtktextview.c: fix warnings
10346 * gtk/gtktext.c (find_cursor_at_line): fix warning
10348 * gtk/gtkselection.c (gtk_selection_notify): fix warning
10350 * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
10353 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10356 * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
10358 * gtk/gtkfontsel.c: fix warning
10360 * gtk/gtkcolorsel.c: fix warnings
10362 2001-03-23 Havoc Pennington <hp@redhat.com>
10364 * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
10366 * gtk/gtkbox.c: Apply property patch from Lee Mallabone
10368 * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
10369 and deprecated gtk_check_menu_item_set_show_toggle().
10371 * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
10373 * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
10375 * gtk/gtkframe.c: Apply property patch from Lee Mallabone
10377 2001-03-23 Havoc Pennington <hp@redhat.com>
10379 * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
10382 Fri Mar 23 16:13:43 2001 Jonathan Blandford <jrb@redhat.com>
10384 * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
10387 * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
10388 set_cell to set_value
10390 * gtk/gtkliststore.c (gtk_list_store_set_value): change from
10391 set_cell to set_value
10393 Thu Mar 22 19:27:34 2001 Jonathan Blandford <jrb@redhat.com>
10395 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10397 * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
10400 * gtk/gtktreeview.c: Addition of initial sortable support.
10402 * gtk/gtktreestore.c: Addition of initial sortable support.
10404 * gtk/gtkliststore.c: Addition of initial sortable support.
10406 * gtk/gtkmarshal.list: yet another marshaller.
10408 * gtk/gtktreedatallist.[ch]: shared code between the store models
10409 for handling sorting headers.
10411 2001-03-22 Havoc Pennington <hp@redhat.com>
10413 * gtk/gtkcontainer.c (gtk_container_set_focus_chain):
10414 (gtk_container_unset_focus_chain): Add ability to override the
10415 focus chain for a container explicitly
10417 Thu Mar 22 13:01:44 2001 Tim Janik <timj@gtk.org>
10419 * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
10420 added PROP_MNEMONIC_WIDGET.
10422 * gtk/gtkwindow.c (gtk_window_activate_mnemonic):
10423 (gtk_window_remove_mnemonic):
10424 (gtk_window_add_mnemonic): fixed assertions.
10425 (gtk_window_activate_mnemonic): constrain modifier checks to those
10426 permitted by gtk_accelerator_get_default_mod_mask().
10427 got rid of gtk_window_get_default_accel_group().
10429 * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
10430 activatable widgets either by focussing or a warning.
10431 added a signal accumulator to ::activate_mnemonic which stops the
10432 emission once a handler returned TRUE.
10434 2001-03-22 Havoc Pennington <hp@pobox.com>
10436 * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
10437 the stock item label
10439 * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
10441 * gtk/gtkstock.c (builtin_items): add mnemonics where missing
10443 * demos/gtk-demo/*.c: Add mnemonics all over the place
10445 * gtk/gtklabel.h: mark parse_uline deprecated
10447 2001-03-21 Alexander Larsson <alexl@redhat.com>
10449 * gtk/gtkitemfactory.[ch]:
10450 Add support for stock and normal imagemenuitems.
10453 Add some tests for mnemonics, stock toolbars, stock
10454 and image menuitems in itemfactory and gdk_window_scroll.
10456 2001-03-21 Alexander Larsson <alexl@redhat.com>
10458 * gtk/gtkbutton.[ch]:
10460 Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
10461 removed accel_group argument. Renamed gtk_button_new_accel() to
10462 gtk_button_new_with_mnemonic() and removed accel_group argument.
10464 * gtk/gtkcheckbutton.[ch]:
10465 New function gtk_check_button_new_with_mnemonic().
10468 Override activate_mnemonic and just grab focus.
10470 * gtk/gtkitemfactory.c:
10471 Don't add menu uline accel group, instead use mnemonics support.
10473 * gtk/gtklabel.[ch]:
10474 New support for mnemonics.
10476 * gtk/gtkmarshal.list:
10477 Needed BOOLEAN:BOOLEAN for activate_mnemonic.
10481 Use mnemonics instead of accel groups for uline
10482 support in menu items.
10483 Removed gtk_menu_get_uline_accel_group() and
10484 gtk_menu_ensure_uline_accel_group().
10486 * gtk/gtkmenuitem.c:
10487 Override activate_mnemonic to handle switching between
10488 menu items if there are collisions.
10490 * gtk/gtknotebook.c:
10491 Connect to activate_mnemonic on the tab_label, so that
10492 activating it switches to that notebook page.
10494 * gtk/gtkwidget.[ch]:
10495 Add activate_mnemonic signal. New function
10496 gtk_widget_activate_mnemonic() to emit it.
10497 Default implementation does activate/grab_focus.
10499 * gtk/gtkwindow.[ch]:
10500 Add support for mnemonics in windows.
10502 gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
10503 gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
10506 Update to function name changes.
10508 2001-03-21 Alexander Larsson <alexl@redhat.com>
10510 * gtk/gtkimagemenuitem.[c]:
10511 Add gtk_image_menu_item_new_from_stock()
10513 Tue Mar 20 15:00:43 2001 Jonathan Blandford <jrb@redhat.com>
10515 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10516 Fix buglet in meeting.
10518 2001-03-19 Havoc Pennington <hp@redhat.com>
10520 * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
10521 add a bunch of accessor functions. This is because we have
10522 reasonable expectations of extending what fields it contains in
10525 * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
10528 * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
10531 Mon Mar 19 15:53:36 2001 Owen Taylor <otaylor@redhat.com>
10533 * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
10534 handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
10536 * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
10537 gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
10538 gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
10539 gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
10540 Change float to double everywhere with the exception of 0<->1.0 alignment
10543 2001-03-19 Tor Lillqvist <tml@iki.fi>
10545 * gdk/win32/gdkdrawable-win32.c
10546 * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
10549 * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
10552 2001-03-18 Tor Lillqvist <tml@iki.fi>
10554 * gdk/win32/gdkevents-win32.c (print_window_state): New function.
10555 print_event_state, print_event): Use preprocessor macro to make
10556 code more compact. Print also GDK_WINDOW_STATE events.
10557 (synthesize_crossing_events): Remove the old #ifdeffed-out code.
10560 * gtk/makefile.mingw.in: Update.
10562 * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
10563 to catch also Cygwin.
10565 Sun Mar 18 01:15:30 2001 Tim Janik <timj@gtk.org>
10567 * gtk/gtkspinbutton.[hc]: added rc-style argument
10568 GtkSpinButton::shadow_type.
10569 removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
10570 and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
10573 * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
10575 * gtk/gtkwidget.c: quark cleanups.
10577 * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
10578 scanner with appropriate configuration, renamed GtkRcStyleClass.clone
10579 to create_rc_style() (we don't do cloning in standard OO sense).
10580 added per rc style properties.
10582 * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
10583 property values and for caching those. some cleanups.
10585 * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
10587 * gtk/gtksettings.[hc]: new file for global rc-file properties
10588 (at least currently, should get extended to support X properties
10589 and other communication mechanisms).
10591 * gtk/gtkwidget.[hc]: added style property support:
10592 (gtk_widget_class_install_style_property_parser): install style
10593 property pspec with parser function for rc-file values other
10594 than LONG, DOUBLE or STRING.
10595 (gtk_widget_class_install_style_property): same as above without
10596 parser (parsers are going to be needed quite infrequently).
10597 (gtk_widget_style_get_property): retrive style property value.
10598 (gtk_widget_style_get_valist): same as above with varargs support,
10599 has NOCOPY semantics.
10600 (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
10602 Fri Mar 16 18:24:53 2001 Jonathan Blandford <jrb@redhat.com>
10604 * demos/gtk-demo/main.c (row_activated_cb): modified to use
10605 "row_activated" signal.
10607 * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
10608 stupidity. Lets actually pass in the row with this signal...
10610 Fri Mar 16 18:01:17 2001 Jonathan Blandford <jrb@redhat.com>
10612 * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
10614 * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
10616 * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
10617 everything into the ::destroy function, and freed a lot more.
10619 2001-03-16 Havoc Pennington <hp@redhat.com>
10621 * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
10622 instead of gint16, to avoid overflow issues, since sizes > 16-bit
10625 2001-03-16 Havoc Pennington <hp@redhat.com>
10627 * Applied patch from Nils Barth (bug # 51041) to
10628 replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
10631 2001-03-15 Havoc Pennington <hp@redhat.com>
10633 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs
10634 for properties to set on the tag.
10636 * gtk/testtext.c: fixups to reflect create_tag change
10638 * gtk/gtktexttag.c (gtk_text_tag_set_property):
10639 background/foreground stipple are objects, not boxed.
10641 * demos/gtk-demo/textview.c: intellihancing
10643 Fri Mar 16 11:38:42 2001 Jonathan Blandford <jrb@redhat.com>
10645 * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
10646 braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
10648 2001-03-16 Alexander Larsson <alexl@redhat.com>
10650 * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
10651 Fix sign error with queued region translations.
10653 2001-03-15 HideToshi Tajima <tajima@happy>
10655 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
10656 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
10657 * gtk/gtkentry.c (update_im_cursor_location):
10658 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
10659 * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
10660 set_cursor_pos to set_cursor_location in GtkInputContext class
10662 Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
10664 * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
10665 the location of the cell relative to its area.
10666 * gtk/gtkcell*: modified for above change
10667 * gtk/gtktreeview.c: modified for above change.
10669 Wed Mar 14 13:58:32 2001 Jonathan Blandford <jrb@redhat.com>
10671 * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
10672 (gtk_tree_view_finalize): actually unref the model. Thanks to
10673 Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
10675 2001-03-14 Havoc Pennington <hp@redhat.com>
10677 * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
10679 * gtk/gtk.h: remove gtkdata.h
10681 * gtk/Makefile.am: remove gtkdata
10683 * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
10684 not "disconnect" on the adjustments.
10686 * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
10689 * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
10692 * configure.in: handle case where X render exists, but Pango lacks
10695 2001-03-15 Alexander Larsson <alexl@redhat.com>
10697 * gtk/gtktoolbar.[ch]:
10698 New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
10699 to add stock items to toolbars.
10702 Remove ../gdk/gdkim.h from gdk_headers.
10704 2001-03-15 Sven Neumann <sven@gimp.org>
10706 * gdk/gdkim.h: removed
10709 * gdk/x11/gdkim-x11.c: do not include gdkim.h
10711 2001-03-14 HideToshi Tajima <tajima@happy.sunsoft.eng.sun.com>
10713 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
10714 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
10715 * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
10716 set_cursor_pos() virtual method
10718 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
10719 (gtk_im_context_xim_set_cursor_pos): add implementation for
10720 set_cursor_pos() method
10722 * gtk/gtkentry.c (recompute_idle_func): set current cursor
10723 position to input methods
10725 Mon Mar 12 21:02:08 2001 Jonathan Blandford <jrb@redhat.com>
10727 * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
10730 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
10732 (_gtk_tree_data_list_alloc): use g_mem_chunk.
10733 (_gtk_tree_data_list_node_to_value): Fix to switch on
10734 G_TYPE_FUNDAMENTAL.
10735 (_gtk_tree_data_list_value_to_node): Fix to switch on
10736 G_TYPE_FUNDAMENTAL.
10737 (_gtk_tree_data_list_node_copy): Fix to switch on
10738 G_TYPE_FUNDAMENTAL.
10740 2001-03-12 Havoc Pennington <hp@redhat.com>
10742 * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione
10743 to convert to new property API. Also, change default_width and
10744 default_height get_property to return 0 as the flag value for
10745 "unset"; -1 is not a valid value for these fields.
10747 2001-03-12 Havoc Pennington <hp@redhat.com>
10749 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
10750 enum with registration for icon sizes, instead of strings.
10752 * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h,
10753 gtkwidget.c: Fix to reflect GtkIconSize
10755 2001-03-12 Alexander Larsson <alexl@redhat.com>
10757 Make GtkFB compile and link.
10759 * gdk/linux-fb/gdkdrawable-fb2.c:
10760 window->mapped to GDK_WINDOW_IS_MAPPED().
10762 * gdk/linux-fb/gdkwindow-fb.c:
10763 window->mapped to GDK_WINDOW_IS_MAPPED().
10764 Added gdk_window_shape_combine_region.
10765 Added assorted placeholders for unimplemented new GdkWindow API calls.
10767 2001-03-12 Alexander Larsson <alexl@redhat.com>
10769 * gtk/gtkfilesel.c:
10770 Add more test when converting filenames from/to utf-8.
10771 Don't allow entering text in the filename entry which isn't allowed in
10772 a filename. Just beep instead.
10774 2001-03-12 Alexander Larsson <alexl@redhat.com>
10777 Scroll using gdk_window_scroll(). Don't wait for exposes.
10778 Move the column headers in an order that makes them flash less.
10780 2001-03-10 Hans Breuer <hans@breuer.org>
10782 * gdk/gdk.def : updated
10784 * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
10785 to offseting the clip_mask at the right place
10787 * gdk/win32/gdkwindow-win32.c : don't create background brushes
10788 for all the gdkClasses, especially not for the input_only case.
10789 Otherwise flickering wont be avoidable, because we don't get
10790 WM_ERASEBKGND message for these windows.
10792 * gdk/win32/gdkevents-win32.c : initialize event->expose.region
10793 and fixed massive redraw problems apparently triggered by Alexanders
10794 recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
10795 but it seems to work quite well :-)
10797 * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
10800 Sat Mar 10 12:15:31 2001 Jonathan Blandford <jrb@redhat.com>
10802 * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
10803 (gtk_list_store_set_cell): Fix a stupid typo.
10805 Fri Mar 9 20:36:21 2001 Jonathan Blandford <jrb@redhat.com>
10807 * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
10808 select_all not work if you're in SINGLE mode (it doesn't make that
10809 much sense, anyway.)
10811 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
10812 handle types more sanely.
10813 (_gtk_tree_data_list_value_to_node): handle types more sanely.
10814 (_gtk_tree_data_list_node_copy): handle types more sanely.
10816 * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
10817 GValue better. Converts the type as well.
10819 * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
10820 GValue better. Converts the type as well.
10822 Wed Mar 7 20:47:41 2001 Owen Taylor <otaylor@redhat.com>
10824 * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
10825 gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c
10826 gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
10827 gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
10829 * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
10832 2001-03-09 Hans Breuer <hans@breuer.org>
10834 * gdk/gdk.def : updated
10836 * gdk/win32/gdkevents-win32.c : don't ask input_only windows
10839 * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
10842 * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
10843 removing and implemented Havoc's GdkWindow state functions;
10844 stick/unstick only as no-op, cause I don't know how to emulate
10847 * gtk/gtk.def : updated
10849 * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
10851 * gtk/gtktypeutils.c : #include <string.h>
10853 * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
10855 Fri Mar 9 09:31:55 2001 Tim Janik <timj@gtk.org>
10857 * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
10858 GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
10861 2001-03-09 Alexander Larsson <alexl@redhat.com>
10863 * docs/Changes-2.0.txt:
10864 Document expose event->region change and that gtk_widget_event
10865 doesn't allow passing expose events.
10868 Add region to expose event.
10871 Handle event->region in gdk_event_copy() and gdk_event_free().
10873 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
10874 Generate expose_event->region when creating expose events.
10876 * gdk/x11/gdkevents-x11.c:
10877 Generate expose events with regions when translating X events.
10879 * gtk/gtkcontainer.[ch]:
10880 Default expose handler that propagates expose events to NO_WINDOW
10881 children. New function gtk_container_propagate_expose()
10883 * gtk/gtkwidget.[ch]:
10884 Moved gtk_widget_event implementation to gtk_widget_event_internal.
10885 gtk_widget_event calls gtk_widget_event_internal but doesn't allow
10886 expose events. New function gtk_widget_send_expose() to send expose
10887 events. New function gtk_widget_region_intersect() to calculate
10888 window/region intersections.
10890 * gtk/gtkmain.c (gtk_main_do_event):
10891 Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
10892 Use gtk_widget_send_expose() to send expose events.
10897 * gtk/gtkimagemenuitem.c:
10902 Remove expose handler, using the default container implementation
10906 * gtk/gtkcheckbutton.c:
10907 * gtk/gtkeventbox.c:
10909 * gtk/gtkhandlebox.c:
10911 * gtk/gtklistitem.c:
10913 * gtk/gtkmenubar.c:
10914 * gtk/gtkmenuitem.c:
10915 * gtk/gtknotebook.c:
10916 * gtk/gtkoptionmenu.c:
10918 * gtk/gtkscrolledwindow.c:
10919 * gtk/gtktogglebutton.c:
10920 * gtk/gtktoolbar.c:
10921 * gtk/gtktreeitem.c:
10922 * gtk/gtkviewport.c:
10923 Chain expose handler to parent class handler. Use
10924 gtk_container_propagate_expose() to propagate exposes.
10926 * gtk/gtkclist.c (check_exposures):
10927 * gtk/gtktext.c (process_exposes):
10928 Use gtk_widget_send_expose instead of gtk_widget_event.
10930 Thu Mar 8 19:40:28 2001 Jonathan Blandford <jrb@redhat.com>
10932 * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
10934 Thu Mar 8 19:18:27 2001 Jonathan Blandford <jrb@redhat.com>
10936 * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
10937 unref the nodes. Fixes bug #50058.
10939 * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
10940 "::ref_iter" to "::ref_node".
10941 (gtk_tree_model_unref_node): change "::unref_iter" to
10942 "::unref_node". Fixes bug #50064.
10944 Thu Mar 8 17:40:09 2001 Jonathan Blandford <jrb@redhat.com>
10946 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
10947 support for invisible cells.
10948 (gtk_tree_view_bin_expose): ditto
10950 Thu Mar 8 16:36:00 2001 Jonathan Blandford <jrb@redhat.com>
10952 * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
10955 * tests/testtreefocus.c (main): New test file.
10957 * tests/testtreeview.c: update to latest glib changes.
10959 * tests/testtreecolumns.c: update to latest glib changes.
10961 Thu Mar 8 18:13:20 2001 Tim Janik <timj@gtk.org>
10963 * gtk/testgtk.c: re-enabled event watcher emission hooks.
10965 Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org>
10967 * *.c: added accumulator data argument to g_signal_newc()
10970 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model):
10971 * gtk/gtktreeview.c (gtk_tree_view_setup_model):
10972 * gtk/treestoretest.c (make_window):
10973 s/g_signal_connect/g_signal_connectc/.
10975 * gtk/gtktextbuffer.c: completed signal arg fixups,
10976 they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
10978 Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com>
10980 * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
10983 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a
10984 ::hierarchy-changed signal when a widget changes
10985 from anchored to unanchored or vice versa.
10987 gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
10988 Use a private flag to keep track of this efficiently.
10990 2001-03-07 Havoc Pennington <hp@redhat.com>
10992 * gtk/testgtk.c (create_spins): uglify so that size request gets
10995 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
10996 request on values for upper/lower, completes #6152
10998 Wed Mar 7 20:07:22 2001 Owen Taylor <otaylor@redhat.com>
11000 * Makefile.am: Remove gtk-config-2.0 again.
11001 (Grrrr, pkg-config. And stops make loops.)
11003 Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
11005 * gtk/gtksignal.[hc]: removed old emission hook API.
11007 * docs/Changes-2.0.txt: fixed sections.
11009 * gtk/gtktextbuffer.c: signal arg fixups.
11011 2001-03-07 Havoc Pennington <hp@redhat.com>
11013 * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
11015 * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
11016 here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
11017 of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
11018 validation and the redraw which is higher priority than the
11021 2001-03-07 Havoc Pennington <hp@redhat.com>
11023 * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
11024 (gtk_entry_set_property): remove trailer
11026 * gtk/gtkentry.c (gtk_entry_set_width_chars):
11027 (gtk_entry_get_width_chars): new functions, to set size request to
11028 a given number of characters
11030 * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
11032 * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
11033 (gtk_dialog_get_has_separator): new function
11034 (run_delete_handler): fix to not emit "response" signal
11035 because we already did in the delete event handler installed
11036 at dialog creation time.
11038 * gtk/gtkdialog.h: add a has_separator property,
11039 add GTK_DIALOG_NO_SEPARATOR flag
11041 2001-03-07 Havoc Pennington <hp@redhat.com>
11043 * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
11044 off decorations for a window.
11046 * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
11049 * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function
11050 to get location of PangoLayout inside the label, closes #51198
11052 * gtk/testgtk.c (create_bbox): fix up button box usage
11054 * gtk/testcalendar.c (create_calendar): fix up button box usage
11056 * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
11058 * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
11060 * gtk/gtkhbbox.h: deprecations
11062 * gtk/gtkvbbox.h: deprecations
11064 * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
11065 emulate deprecated gtk_button_box_get_spacing
11067 * gtk/gtkbbox.h: deprecate some useless functions, remove entirely
11068 the "set global default" functions
11069 (struct _GtkButtonBox): remove "spacing" field, use the one from
11072 * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
11074 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
11075 render the icon, return the missing image icon.
11077 * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
11078 image icon if the load fails.
11080 * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
11081 when no image is found; should be the Netscape "missing image"
11082 icon eventually but for now is a random image
11084 * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the
11085 role for the session manager
11087 * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
11089 * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
11090 GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
11092 * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
11094 Wed Mar 7 13:24:57 2001 Tim Janik <timj@gtk.org>
11096 * gtk/*.c: marshaller fixes.
11098 * gtk/gtkmarshal.list: extreme cleanup.
11100 * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
11101 param spec for now.
11103 * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
11106 * gtk/gtktypeutils.[hc]: updates to GLib API changes.
11107 special cased autogenerated boxed types from gtktypebuiltins_ids.c
11108 which are not reference counted:
11109 GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
11110 PangoFontDescription, GtkTreeIter and GtkTreePath.
11112 Thu Mar 1 03:58:56 2001 Tim Janik <timj@gtk.org>
11114 * gtk/gtktreeselection.h:
11115 * gtk/gtktreemodel.c:
11116 * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
11117 file should be included directly, and gobject/gmarshal.h
11118 as well as gtk/gtkmarshal.h even can't be included directly.
11120 * Makefile.am: grr, install gtk-config-2.0.
11125 * gtk/gtkitemfactory.c: use g_object_connect() instead of
11126 passing "*signal*::*" args to gtk_widget_set().
11128 * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
11130 * gtk/*.c: removed trailer arg from property setters and getters.
11133 2001-03-07 Alexander Larsson <alexl@redhat.com>
11135 * gtk/gtklabel.c (set_markup): Removed warning
11137 Tue Mar 6 19:59:12 2001 Jonathan Blandford <jrb@redhat.com>
11139 * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
11140 field to allow you to hide cell renderers.
11142 * gtk/gtkcellrenderer.c: Add support for invisible cells.
11144 * gtk/gtktreeview.c: Add support for invisible cells.
11146 Tue Mar 6 17:25:07 2001 Jonathan Blandford <jrb@redhat.com>
11148 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
11149 Add "clicked" signal back to columns.
11151 * ChangeLog: remove conflict markers.
11153 Tue Mar 6 10:45:45 2001 Owen Taylor <otaylor@redhat.com>
11155 * gtk/gtkbutton.c: Add animation of activation by, on
11156 activate, pressing the button, and adding a timeout that
11157 releases the button after 250ms or on key release and
11158 emits ::clicked. (#51501)
11160 * gtk/gtkdialog.c: Bit of a hack - for buttons in the
11161 action area, we connect to ::clicked instead of ::activate
11162 so the dialog stays up through the animation.
11164 Mon Mar 5 16:38:15 2001 Owen Taylor <otaylor@redhat.com>
11166 * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
11167 check the ignore_enter flag for the menu shell that
11168 the item is actually a child of, not for attached
11171 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
11173 * gtk/gtkmain.c (gtk_propagate_event): Only do special
11174 special key-press grab handling for widgets within
11175 GtkWindows. Otherwise, fall through to normal case.
11177 This prevents key events being sent twice to GtkInvisible
11178 widgets, which can cause all sorts of mischief.
11180 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
11182 * gtk/gtkmain.c (gtk_propagate_event): When a grab
11183 widget is in effect, give the grab widget a first
11184 crack at KEY_PRESS/RELEASE events. (#424)
11186 2001-03-06 James Henstridge <james@daa.com.au>
11188 * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
11189 offset for the window_state_event to point at window_state_event
11190 rather than no_expose_event.
11192 Mon Mar 5 19:10:15 2001 Jonathan Blandford <jrb@redhat.com>
11194 * gtk/gtkimmodule.h: fix busted /* comment */
11196 Mon Mar 5 15:07:05 2001 Jonathan Blandford <jrb@redhat.com>
11198 * gtk/gtktreeview.c: Apply patch from John Margaglione to add
11201 Mon Mar 5 14:55:19 2001 Jonathan Blandford <jrb@redhat.com>
11203 * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
11204 add object properties.
11206 * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
11207 to add object properties.
11209 * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
11212 * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
11213 add object properties.
11215 * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
11218 Mon Mar 5 14:38:54 2001 Jonathan Blandford <jrb@redhat.com>
11220 * gtk/gtktreemodel.c: renamed "child_toggled" to
11221 "has_child_toggled".
11223 * gtk/gtktreeview.c: Handle removing columns better. Updated to
11224 handle new signal name.
11226 * gtk/gtktreestore.c: Updated to handle new signal name.
11227 * gtk/gtklisttore.c: Updated to handle new signal name.
11228 * gtk/gtktreemodelsort.c: Updated to handle new signal name.
11230 2001-03-05 Alexander Larsson <alexl@redhat.com>
11232 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
11233 Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
11235 2001-03-05 Michael Natterer <mitch@gimp.org>
11237 * gtk/gtklabel.c: Made the "parent_class" pointer static. The
11238 pixbuf-engine coincidentially also failed to make one of it's
11239 parent_class pointers static, causing overwriting of GtkLabel's
11240 parent_class pointer in pixbuf_style_class_init().
11241 (Will commit the fix to the pixbuf-engine too).
11243 2001-03-05 Alexander Larsson <alexl@redhat.com>
11246 Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
11247 New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
11248 gdk_window_set_icon_list for net wmspec functionality.
11250 * gdk/x11/gdkwindow-x11.c:
11251 Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
11252 Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
11253 gdk_window_set_icon_list.
11254 Added gdk_wmspec_change_state helper function and used it in the code.
11255 Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
11257 * gtk/gtkdialog.c (gtk_dialog_init):
11258 Set GDK_WINDOW_TYPE_HINT_DIALOG.
11260 * gtk/gtkhandlebox.c (gtk_handle_box_realize):
11261 Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
11264 new function gtk_window_set_type_hint.
11265 On realize, set type hint and modal hint.
11268 Added type_hint field and gtk_window_set_type_hint.
11270 2001-03-05 Alexander Larsson <alexl@redhat.com>
11272 * gtk/gtklabel.[ch]:
11273 Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
11274 New function gtk_label_get_accel_keyval () to get the underline accelerator
11275 of the label. Setting the label pattern overrides other attributes.
11277 Mon Mar 5 14:51:10 MET 2001 Sven Neumann <sven@gimp.org>
11279 * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
11280 Added missing initializers to gtk_rc_style_init().
11282 Sun Mar 04 07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
11284 * gtk/gtktextview.c: fixed bug #51097 about setting
11285 gtk_text_view_set_border_window_size() if the widget is
11288 Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
11290 * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
11292 * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
11293 comment. Won't do to have duplicated doc comments between
11294 the platform subdirs.
11296 Sat Mar 3 16:26:33 2001 Owen Taylor <otaylor@redhat.com>
11298 * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c
11299 gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
11301 Detectable auto-repeat - make a repeating key generate
11302 press/press/press/release instead of press/release pairs.
11304 If we have Xkb and XkbSetDectableAutoRepeat supports
11305 that, we do it that way. Otherwise, when we get
11306 a release event, we check ahead with XPending to see
11307 if the next key is a KeyPress with the same keycode
11308 and timestamp. (Not 100% reliable, but pretty close.)
11310 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
11312 * gtk/gtkmain.c (gtk_propagate_event): Only do special
11313 special key-press grab handling for widgets within
11314 GtkWindows. Otherwise, fall through to normal case.
11316 This prevents key events being sent twice to GtkInvisible
11317 widgets, which can cause all sorts of mischief.
11319 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
11321 * gtk/gtkmain.c (gtk_propagate_event): When a grab
11322 widget is in effect, give the grab widget a first
11323 crack at KEY_PRESS/RELEASE events. (#424)
11325 Sat Mar 3 15:39:49 2001 Owen Taylor <otaylor@redhat.com>
11327 * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
11328 to extend the selection. (Roughly based on patch
11329 from Jay Cox, #50939)
11331 * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
11332 to properly handle previous GDK_BUTTON_PRESS.
11333 (Patch from Jay Cox, #50938)
11335 * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
11336 '\0' back along with the deleted text. (#51148)
11338 Mon Jan 22 14:31:29 2001 Owen Taylor <otaylor@redhat.com>
11340 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
11341 the group when extracting it from the X keyboard event.
11343 * modules/input/Makefile.am modules/input/imipa.c:
11344 Simple module for entering IPA. (Do we need a
11345 gtk-stupid-input-tricks CVS module?)
11347 Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
11349 * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
11352 * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
11354 * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
11355 is no focus widget for the dialog currently, grab the focus as well
11358 * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
11359 the action area's children to iterate through, not the
11362 Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
11364 * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
11365 Add plug-socket tests. (Won't work worth a darn until I commit
11366 the rest of the plug-socket changes, but no reason these
11367 can't go into CVS now.)
11369 2001-03-02 Havoc Pennington <hp@redhat.com>
11371 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
11372 _gdk_region_get_xrectangles()
11374 * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
11376 * gtk/testgtk.c (create_shapes): add test for shape_combine_region
11378 * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
11379 function, contributed by Ron Steinke
11381 * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
11382 gdk_net_wm_supports
11384 * gdk/gdkregion-generic.c (gdk_region_get_rectangles):
11385 New function, contributed by Ron Steinke
11387 * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function,
11388 used to line up the text in the entry when using the entry for
11389 editable sheet cell hacks
11391 * gtk/testgtk.c (create_entry): test the activate_default setting
11394 * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to
11395 cause the entry to activate the default button for a dialog when
11397 (gtk_entry_get_activates_default): new function
11399 Wed Feb 28 19:10:43 2001 Owen Taylor <otaylor@redhat.com>
11401 * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
11402 Hwang to move call to sync_selection() up a few lines
11403 to before the row list is modified, to fix crash when
11404 removing rows in the undo_selection list.
11406 (Test case provided by Daniel Elstner:
11408 http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
11410 Fri Feb 23 15:06:48 2001 Owen Taylor <otaylor@redhat.com>
11412 * gtk/gtktree.c (gtk_tree_class_init): Do the setting
11413 of tree->root_tree in parent_set rather than _map(),
11414 fixing #50892 in a bit better manner.
11416 Thu Feb 22 17:07:58 2001 Owen Taylor <otaylor@redhat.com>
11418 * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
11420 Tue Feb 2 11:22:33 2001 Jody Goldberg <jgoldberg@home.com>
11422 * gtk/gtkstyle.c : Remove duplicate fwd decl for
11423 gtk_default_draw_shadow.
11425 ue Feb 20 11:40:58 2001 Owen Taylor <otaylor@redhat.com>
11427 * gdk/gdkimage.c (gdk_image_new): Remove excess
11428 warning, make warnings more verbose, treat a error
11429 in shmat as permanent, and don't try again.
11430 (#51163, Ed Randall.)
11432 Mon Feb 19 20:15:28 2001 Owen Taylor <otaylor@redhat.com>
11434 * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
11435 delay for the first click before starting to scroll.
11436 (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
11438 * gtk/gtktext.c: GtkText should have I-beam cursor.
11439 (based on gtk-enf-990513-1.patch, Eric Fisher.)
11441 Mon Feb 19 16:42:19 2001 Owen Taylor <otaylor@redhat.com>
11443 * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
11444 cleanup to remove some references to unused
11445 ->xoffset, ->yoffset.
11447 Mon Feb 19 14:20:36 2001 Owen Taylor <otaylor@redhat.com>
11449 * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
11450 mask. (#51039, fix from Martin Maierhofer)
11452 Fri Feb 16 20:09:42 2001 Owen Taylor <otaylor@redhat.com>
11454 * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
11455 for unshifted + and shifted = for non-us keyboards.
11456 Make <Control>+ and <Control>- work as well as
11457 <Control>KP_Plus, <Control>KP_Minus for recursive
11458 open/close. (#2682, René Seindal)
11460 Fri Feb 16 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
11462 * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
11463 the active menu item before deactivating the menu,
11464 so gtk_menu_popdown doesn't change the history. (#50964)
11466 Fri Feb 16 15:55:22 2001 Owen Taylor <otaylor@redhat.com>
11468 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
11469 draw lines with text_gc rather than black_gc.
11470 (Patch from Vlad Harchev <hvv hippo ru>, #50926)
11472 Thu Mar 1 19:50:56 2001 Jonathan Blandford <jrb@redhat.com>
11474 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
11475 Move handling of buttons fully in gtktreeviewcolumn. This code is
11476 less interrelated then it was, but it still requires the
11477 GtkTreeView to map it.
11479 * test/testtreecolumn.c: Now I can add a column to one view,
11480 remove it, add it to the another view, remove it, then re-add it
11481 to the first. Nifty.
11483 Thu Mar 1 13:14:27 GMT 2001 Tony Gale <gale@gtk.org>
11485 * docs/tutorial/gtk-tut.sgml: Minor corrections
11487 Wed Feb 28 16:36:46 2001 Jonathan Blandford <jrb@redhat.com>
11489 * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
11492 2001-02-28 Havoc Pennington <hp@redhat.com>
11494 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
11496 (gtk_widget_draw_focus): remove this function; we could instead
11497 make it just gtk_widget_draw(), but in most cases I think the
11498 result would be broken user code, so think it's better to have
11499 that code not compile and get fixed
11500 (gtk_widget_draw_default): ditto
11502 * gtk/gtkwidget.c: Add default handlers for focus_in_event and
11503 focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
11505 * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
11506 widgets lose/get the default, instead of calling draw_default
11508 * docs/Changes-2.0.txt: note about all this
11510 Then fixed every widget in GTK, I won't list all the filenames.
11512 Tue Feb 27 19:32:53 2001 Jonathan Blandford <jrb@redhat.com>
11514 * gtk/gtktreemodel.c (deleted_callback): Proxy out to
11515 _gtk_tree_row_reference_deleted.
11516 (inserted_callback): Proxy out to
11517 _gtk_tree_row_reference_inserted.
11518 (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
11519 get around signal emission ordering problem.
11521 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11522 fix to work with SINGLE
11523 (_gtk_tree_selection_internal_select_node): Major sanitization on
11524 selections. SINGLE now seems to work.
11526 * tests/Makefile.am: add testtreecolumn.c:
11528 * tests/testtreecolumn.c: New test. Mostly points out selection
11529 bugs currently, but will test columns later.
11531 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
11532 selection bug. I hate touching this code -- it's scary.
11534 2001-02-26 Havoc Pennington <hp@redhat.com>
11536 * gtk/testgtk.c: test the window state stuff
11538 * gtk/gtkwindow.c (gtk_window_present): new function, makes a
11539 window come to the user's attention as if it were just created
11540 (gtk_window_iconify): new function
11541 (gtk_window_deiconify): new function
11542 (gtk_window_stick): new function
11543 (gtk_window_unstick): new function
11544 (gtk_window_maximize): new function
11545 (gtk_window_unmaximize): new function
11547 * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
11549 * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
11551 * gdk/x11/gdkevents-x11.c: create window state events when
11553 (gdk_wmspec_supported): new function
11555 * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
11556 iconification before showing the window
11557 (gdk_window_deiconify): new function
11558 (gdk_window_stick): new function
11559 (gdk_window_unstick): new function
11560 (gdk_window_maximize): new function
11561 (gdk_window_unmaximize): new function
11563 * gdk/gdkwindow.c: store the window state in the window;
11564 change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
11566 (gdk_window_get_state): return the current window state
11568 * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
11569 (gdk_event_get_state): handle GDK_WINDOW_STATE
11570 (gdk_synthesize_window_state): function to create the window state
11573 * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
11574 event, for changes to "window state" such as maximized, sticky,
11577 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
11580 * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function,
11581 finds out if we support a given WM spec hint
11583 Tue Feb 27 13:37:38 GMT 2001 Tony Gale <gale@gtk.org>
11585 * docs/faq/gtk-faq.sgml: New question re memory leaks.
11587 2001-02-25 Hans Breuer <hans@breuer.org>
11589 * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
11590 cause we want to loose those prototypes only in the latter case
11592 * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
11593 GdkPixmapImplWin32 because it itsn't derived from it. Use the
11594 impl member variable instead
11596 * gtk/gtk.def : updated
11599 * gtk/gtkmenus.c : include <string.h> for memset ()
11601 * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
11602 for everthing built here, but for gtk-x.x.dll only. This solves
11603 problem of indifferent gtk type definitions
11605 Sat Feb 24 20:11:39 2001 Jonathan Blandford <jrb@redhat.com>
11607 * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
11609 Fri Feb 23 17:50:13 2001 Jonathan Blandford <jrb@redhat.com>
11611 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
11612 column that is exposed.
11614 (_gtk_tree_view_update_size): Changed name from set_size, and
11615 changed function to do more work, and not force people calling it
11616 to figure out the size. Simplifies a lot of code elsewhere.
11618 2001-02-23 Alexander Larsson <alexl@redhat.com>
11620 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
11621 return solid masks for xpms that have no transparent color.
11622 This makes the ..._create_from_xpm... API backwards
11625 2001-02-23 Tor Lillqvist <tml@iki.fi>
11627 * README.win32: Update. Mention the gtk-1-3-win32-production
11630 * gdk/win32/bdfcursor.c: New file. A program that generates
11631 xcursors.h. Thanks to Stefan Ondrejicka.
11633 * gdk/win32/xcursors.h: New file, contains the X cursor font in a
11636 * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
11638 * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
11639 function, uses xcursors.h.
11640 (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
11641 cursor from inline data instead of using LoadCursor() to generate
11642 it from a resource.
11644 * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
11645 event, must check the Windows message for mouse button state, as
11646 the GDK event state might not have been built if it is
11647 undelivered. Remove one goto.
11649 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
11650 SetCursor() if the current cursor as returned by GetCursor() is
11651 the window's previous cursor. The ChildWindowFromPoint() test
11652 apparently didn't work correctly.
11654 * gdk/win32/rc/*.cur: Remove.
11656 * gdk/win32/rc/gdk.rc.in: Remove cursors.
11658 * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
11660 * gtk/makefile.{mingw,msc}.in: Updates.
11662 Wed Feb 21 20:56:50 2001 Jonathan Blandford <jrb@redhat.com>
11664 * gtk/gtktreemodel.h: add functions for signal emission.
11666 * gtk/gtktreestore.c: move to use above functions instead of
11669 * gtk/gtkliststore.c: ditto
11671 Wed Feb 21 15:41:34 2001 Jonathan Blandford <jrb@redhat.com>
11673 * gtk/gtktreestore.c: removed signals. Moved to inherit from
11674 GObject instead of GtkObject.
11676 * gtk/gtkliststore.c: ditto.
11678 * gtk/gtktreemodelsort.c: ditto.
11680 * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
11681 GtkTreeModelIface, instead of in each model.
11683 2001-02-21 Havoc Pennington <hp@redhat.com>
11685 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
11686 unbreak this function
11688 * gtk/gtkentry.c: apply patch from Lee Mallabone to add object
11691 * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
11694 * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object
11697 * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
11698 mean unset the max length
11700 Wed Feb 21 14:23:05 2001 Jonathan Blandford <jrb@redhat.com>
11702 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
11703 Changed name to be set_cell_data_func to make it clear what
11704 the functino does. Close bug #51069.
11706 Tue Feb 20 16:49:00 2001 Jonathan Blandford <jrb@redhat.com>
11708 * gtk/testgtk.c (main): Remove turning on of profiling malloc,
11709 have memory actually freed. Keeps box running longer.
11711 2001-02-21 Alexander Larsson <alexl@redhat.com>
11713 * gtk/gtkseparatormenuitem.[ch]:
11714 Added new menu separator item. The drawing and size handling
11715 is still done in GtkMenuItem, but the API is a bit more sane.
11718 Add gtkseparatormenuitem.[ch].
11721 Add gtkseparatormenuitem.h.
11724 * gtk/gtkmenufactory.c:
11725 * gtk/gtktextview.c:
11726 Use the new API for menu separators.
11728 * demos/gtk-demo/menus.c (create_menu):
11729 Add some GtkSeparatorMenuItem demo code.
11731 2001-02-20 Havoc Pennington <hp@redhat.com>
11733 * gtk/gtkaspectframe.c: Convert to new property API, patch from
11736 * gtk/gtkarrow.c: Convert to new property API, patch from
11739 Tue Feb 20 14:26:41 2001 Jonathan Blandford <jrb@redhat.com>
11741 * tests/testtreeview.c (toggled_callback): fix to reflect change
11742 in GtkTreeModelStore.
11744 Tue Feb 20 12:16:12 2001 Jonathan Blandford <jrb@redhat.com>
11746 * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
11747 function to create an icon set from a pixbuf.
11749 2001-02-20 Alexander Larsson <alexl@redhat.com>
11751 * gtk/gtkcellrenderertext.[ch]:
11752 Add a "markup" property.
11754 * gtk/treestoretest.c:
11755 Use the markup property, remove some leftover stuff from
11756 GtkTreeModelMapping.
11758 2001-02-20 Alexander Larsson <alexl@redhat.com>
11760 * gtk/gtklabel.c (gtk_label_set_selectable):
11761 Queue a redraw if the selectable setting was changed.
11763 2001-02-20 Alexander Larsson <alexl@redhat.com>
11765 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
11766 Actually copy the whole gc, not just the public parts.
11768 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
11769 GDK_WINDOW_TEMP are not toplevel. Fixes selectable
11772 2001-02-19 Havoc Pennington <hp@pobox.com>
11774 * gdk/gdkwindow.c: docs
11776 * gdk/gdkrgb.c: docs
11778 * gdk/gdkregion-generic.c: docs
11780 * gdk/gdkgc.c (gdk_gc_set_values): docs
11782 * gdk/gdkdraw.c: docs
11784 * gdk/gdkdrawable.h: deprecate drawable get/set data
11786 Mon Feb 19 20:37:35 2001 Jonathan Blandford <jrb@redhat.com>
11788 * demos/gtk-demo/dialog.c: Add simple new demo.
11790 2001-02-19 Havoc Pennington <hp@redhat.com>
11792 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
11793 insert_child_anchor signal, bug #50245
11795 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
11796 from create_child_anchor, so the anchor is passed in
11798 * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
11799 (_gtk_widget_segment_new): have the child anchor object passed in,
11800 instead of creating it.
11802 * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
11803 to gtk_text_buffer_get_modified
11805 2001-02-19 Havoc Pennington <hp@redhat.com>
11807 * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
11808 changed GLib without fixing GTK
11810 * gtk/gtkrange.h: Rename all the stupid implementation detail
11811 functions to have an underscore in front. Most of them should
11812 probably just go away, but for starters don't export them.
11815 2001-02-19 Havoc Pennington <hp@redhat.com>
11817 * gdk/gdkcolor.h: test was backward, so deprecated functions were
11818 excluded by default
11820 * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
11821 clean up the old code a bit
11823 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
11826 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
11827 draw inconsistent state
11829 * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
11830 (create_menu): add inconsistent test
11832 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
11834 (gtk_check_menu_item_get_inconsistent): new function
11835 (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
11836 state (using etched in for now)
11838 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
11839 draw inconsistent state
11841 * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
11842 function, used when the user has selected a range of stuff in
11844 (gtk_toggle_button_get_inconsistent): accessor for that
11845 (gtk_toggle_button_paint): draw inconsistent state (etched in?
11846 don't know what else to do)
11848 2001-02-19 Hans Breuer <hans@breuer.org>
11850 * gtk/gtk.def : updated exported symbols
11852 * gtk/makefile.msc.in : updated
11854 * gtk/gtkstyle.c (gtk_style_realize) : gets called without
11855 a colormap, when invoked from testgtk::entry. I'm not sure where
11856 the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
11857 avoids immediate crashing ...
11859 * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
11862 * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
11863 0 parameter. At least msvc doesn't like macros with var args.
11864 I simply removed the extra 0, was it a feature or a typo ?
11866 * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
11867 removed the extra indirection from the GtkTreeViewColumnFunc parameter,
11868 because the value assignment to the internal struct wasn't working.
11869 I'm not absolutely sure. The problem could have been resolved by
11870 changing the "func" declartion in the struct, but was the pointer
11871 to the function pointer intended ?
11873 * gtk+/gtk/gtktreedatalist.c : include gboxed.h
11875 * gdk/gdk.def : updated exported symbols
11877 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
11878 only use SetDIBitsToDevice if there is a palette at the drawable
11879 and the image is GDK_VISUAL_PSEUDO_COLOR
11881 * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
11883 * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
11885 * gdk/*/makefile.msc : updated
11887 2001-02-19 Havoc Pennington <hp@redhat.com>
11889 * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
11890 GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
11892 * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
11893 (gdk_key_repeat_restore): nuke
11895 * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
11896 (gdk_init_check): no atexit func
11898 * gdk/gdkrgb.h: mark some stuff deprecated
11900 * gdk/gdkcolor.h: mark some stuff deprecated
11902 * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
11904 * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
11906 2001-02-16 Havoc Pennington <hp@redhat.com>
11908 * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
11911 * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
11912 steps, and add Ctrl-arrow shortcuts for paging visually as with
11913 HScale, since Page Up and Page Down move logically.
11915 * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
11916 GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
11918 * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
11920 (gtk_range_scroll): handle the visual steps
11922 * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
11925 * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
11926 steps, not the logical ones.
11928 * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
11929 (scroll_vertical): handle up/down steps
11931 2001-02-19 Alexander Larsson <alexl@redhat.com>
11933 * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
11934 Copy data and free data with free().
11936 * gdk-pixbuf/gdk-pixbuf.c:
11937 * gdk-pixbuf/io-jpeg.c:
11938 * gdk-pixbuf/io-png.c:
11939 Use g_try_malloc/g_free instead malloc/free.
11941 * gdk-pixbuf/test-gdk-pixbuf.c:
11942 Must... initialize... gobject...
11944 * gdk-pixbuf/pixops/timescale.c:
11945 * gtk/gtkcalendar.c:
11946 Use g_malloc instead of malloc.
11948 2001-02-19 Alexander Larsson <alla@lysator.liu.se>
11951 Comment out property assignments, these don't work yet.
11953 2001-02-17 Havoc Pennington <hp@pobox.com>
11955 * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
11958 2001-02-17 Havoc Pennington <hp@pobox.com>
11960 * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
11961 shadowed variables that had broken size request in some cases,
11962 leading to bogus tooltips (#50996)
11964 2001-02-06 Jon K Hellan <hellan@acm.org>
11966 Implement fast browsing of tooltips, bug #50619
11968 * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
11971 * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
11972 use_sticky_delay and last_popdown.
11973 (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
11975 (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
11977 (gtk_tooltips_recently_shown): New static function. Return true
11978 if < sticky_delay has elapsed since last popdown.
11979 (gtk_tooltips_event_handler): Display window after sticky_delay
11980 (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
11981 since last popdown.
11983 2001-02-17 Havoc Pennington <hp@pobox.com>
11985 * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
11986 instead of (). #6394
11988 * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
11989 G_CONST_RETURN, make it return by reference, #50473
11991 Sat Feb 17 06:47:27 2001 Tim Janik <timj@gtk.org>
11993 * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
11994 generated ENTER_NOTIFY event with 0, otherwise not explicitely
11995 setup fields contain garbage (e.g. subwindow, breaking
11996 gdk_drawable_ref() upon event copy).
11997 (gtk_menu_stop_navigating_submenu_cb): same here.
11999 * gtk/gtklist.c (gtk_list_vertical_timeout):
12000 * gtk/gtklist.c (gtk_list_horizontal_timeout):
12001 * gtk/gtkclist.c (vertical_timeout):
12002 * gtk/gtkclist.c (horizontal_timeout): change direct assignment
12003 default-zero-intialization for unions to memset(,0,), as unions are
12004 not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
12005 has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
12007 * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
12008 g_closure_sink() warning.
12010 * gtk/gtktreemodel.c (gtk_tree_model_get_valist):
12011 * gtk/gtktreestore.c (gtk_tree_store_set_valist):
12012 * gtk/gtkliststore.c (gtk_list_store_set_valist):
12013 fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
12015 Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com>
12017 * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
12018 gtk_*_store_get, and moved to GtkTreeModel.
12020 * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
12022 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
12024 * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
12026 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
12029 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12030 freeze/thaw notify between setting all the properties for a cell.
12032 * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
12034 2001-02-15 Havoc Pennington <hp@redhat.com>
12036 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
12037 the X coordinates so they're with respect to the line, rather than
12038 with respect to the layout.
12040 * gtk/gtkalignment.c: Convert to new property API, patch from Lee
12043 * gtk/testgtk.c (create_range_controls): add vscale tests,
12046 * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix
12049 * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
12051 * gtk/gtktextiter.h (gtk_text_iter_is_last): rename
12052 gtk_text_iter_is_end
12054 * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
12055 rename gtk_text_buffer_get_end_iter
12057 * gtk/testgtk.c (create_labels): Add test for selectable
12059 * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
12060 the selection stuff. This code is kind of broken since it doesn't
12061 use the theme engine.
12063 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
12064 fix infinite loop and y offset problem
12065 (gdk_draw_layout_line_with_colors): fix foreground color handling
12067 * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag
12068 that makes the label selectable.
12070 * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
12071 layout when the style is set, since fonts etc. could have changed.
12073 Fri Feb 16 14:22:05 2001 Jonathan Blandford <jrb@redhat.com>
12075 * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
12077 * gtk/gtktreemodelsimple.[ch]: removed.
12079 2001-02-16 Alexander Larsson <alexl@redhat.com>
12081 * gtk/gtktreemodelmapping.[ch]:
12082 New files. Implement GtkTreeModelMapping.
12085 Add gtktreemodelmapping.[ch].
12088 Add gtktreemodelmapping.h
12090 * gtk/treestoretest.c:
12091 Test the GtkTreeModelMapping
12093 Tue Feb 13 13:16:09 2001 Jonathan Blandford <jrb@redhat.com>
12095 * demos/gtk-demo/panes.c (create_pane_options): If we're going to
12096 have a demo, we might as well pass in real values. Thanks to
12097 clahey for pointing this out.
12099 2001-02-14 Havoc Pennington <hp@pobox.com>
12101 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
12102 "static" to a private function
12103 (gtk_image_menu_item_class_init): remove destroy handler,
12104 add "image" object property
12106 2001-02-13 Alexander Larsson <alla@lysator.liu.se>
12108 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
12109 Add a shortcut if the window and the current clip_region doesn't
12110 overlap. This is needed when there are a lot of windows in a
12111 window. The layout test in testgtk is a good test.
12113 * gdk/linux-fb/gdkwindow-fb.c:
12116 2001-02-13 Sven Neumann <sven@convergence.de>
12118 * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
12120 2001-02-13 Alexander Larsson <alexl@redhat.com>
12122 * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
12123 Don't reference last_cursor if it is null. Fixes crash when rotating
12124 the screen before having moved the mouse.
12126 * gdk/linux-fb/gdkcc-fb.c: Zapp!
12128 * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
12130 * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw
12131 when using 90 or 270 degrees rotation.
12133 2001-02-12 Havoc Pennington <hp@pobox.com>
12135 * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where
12136 it always set the foreground, even if we were only using
12138 (gdk_draw_layout_line_with_colors): new function, allow
12140 (gdk_draw_layout_with_colors): new function, allow override
12142 (gdk_pango_layout_line_get_clip_region): function to get the clip
12143 region for a logical text range
12144 (gdk_pango_layout_get_clip_region): get the clip region for a
12147 * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
12148 (gdk_colormap_new): fix call to gdk_colormap_sync() so it has
12149 the right number of arguments.
12151 * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
12152 enhance the function to check that node data corresponds to a
12153 view still belonging to the tree.
12155 * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the
12157 (gtk_tree_view_inserted): ditto
12158 (gtk_tree_view_child_toggled): ditto
12160 * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
12161 simplify this code.
12163 * gtk/gtkcellrenderertext.c (get_layout): fix leak of
12166 * demos/gtk-demo/main.c (load_file): Fix leak of a GString
12168 * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
12170 * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
12171 size in the size request
12172 (gtk_menu_bar_size_allocate): consider toggle size here
12174 * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
12175 that displays a widget in the toggle slot
12177 * gtk/testgtk.c: test GtkImageMenuItem
12179 * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
12181 * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
12182 request and allocation
12184 * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
12186 * gtk/gtkcheckmenuitem.c
12187 (gtk_check_menu_item_toggle_size_request): ditto
12189 Mon Feb 12 23:43:30 2001 Owen Taylor <otaylor@redhat.com>
12191 * gtk/Makefile.am (gdk_headers): Remove gdkcc.h
12194 * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
12195 and refuse to initialize GTK+ if they fail.
12197 Mon Feb 12 15:02:07 2001 Owen Taylor <otaylor@redhat.com>
12199 * configure.in: Add check for gtk-doc version.
12201 Thu Feb 8 17:18:26 2001 Owen Taylor <otaylor@redhat.com>
12203 * gtk/gtklabel.c (gtk_label_size_request): Fix bug
12204 where the xpad/ypad was only being used on one side!
12206 2001-02-11 Tor Lillqvist <tml@iki.fi>
12208 * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
12209 function, copied from X11 version.
12211 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
12212 DestroyCursor failures. The reason for the problem (despite the
12213 inconsistent messages from GetLastError()) was that
12214 DestroyCursor() cannot be called while a cursor is set in a
12215 window. Set the new cursor first and then destroy the old one.
12216 Thanks to jpe@archaeopteryx.com.
12218 * gdk/win32/gdkcc-win32.c: Remove.
12220 * gdk/win32/Makefile.am: Remove from here, too.
12223 * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
12226 * gtk/makefile.mingw.in: Updates.
12228 2001-02-08 Havoc Pennington <hp@redhat.com>
12230 * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
12231 add a widget to a bin that already has a child.
12233 * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
12235 * docs/Changes-2.0.txt: note that GdkColorContext is gone.
12237 * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
12239 * gdk/gdk.h: remove gdkcc.h
12241 * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
12243 * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
12244 GdkPixbuf, since the previous implementation was GdkColorContext
12247 * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
12249 Thu Feb 8 19:00:00 2001 Jonathan Blandford <jrb@redhat.com>
12251 * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
12254 2001-02-08 Havoc Pennington <hp@redhat.com>
12256 * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
12259 2001-02-08 Havoc Pennington <hp@redhat.com>
12261 * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
12264 * demos/gtk-demo/main.c (create_tree): adjust to changes in text
12267 * demos/pixbuf-demo.c (timeout): remove deprecated
12270 * demos/testpixbuf-save.c (main): remove deprecated
12271 gtk_drawing_area_size
12273 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
12274 buttons even if the model isn't setup. gtk_tree_view_check_dirty()
12275 at the start of the allocation.
12276 (gtk_tree_view_check_dirty): handle column->button == NULL, handle
12277 unsetup or NULL model.
12279 * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
12280 even/odd/sorted cells in the tree view.
12282 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12285 * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
12286 backgrounds with draw_flat_box using different detail for even/odd
12289 * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
12290 row, so we can draw the alternating colors thing
12292 * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
12293 property from a synonym property, notify for the synonym.
12294 Also, nuke the background_gdk_set and foreground_gdk_set synonyms
12295 (gtk_text_tag_get_property): Always return the font, even if
12296 all its fields aren't set
12298 * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
12299 store the attr list; it leaves us with no way to change attributes
12300 in _render according to the render flags, and no way to implement
12301 get_property. Instead store all the specific text attributes.
12302 Separate whether an attribute is enabled from its value. Sync all
12303 properties with GtkTextTag, make them all consistent, etc.
12305 * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
12306 renderers can highlight the sort row/column
12308 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
12309 accessor functions to get values; this has the side effect of
12310 showing up which accessor functions were missing. Added those.
12312 * gtk/gtktreeviewcolumn.h: Replace set_justification with
12313 set_alignment, to be consistent with GtkLabel, GtkMisc
12315 * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
12318 * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
12320 * gtk/gtktreesortable.h: updates in here
12322 2001-02-07 Sven Neumann <sven@convergence.de>
12324 * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
12325 pango dimensions after painting the background. We used to draw
12326 gigantic flat boxes here.
12328 Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
12330 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
12331 error introduced with earlier commit) (pointed out by
12334 Mon Feb 5 12:25:06 2001 Owen Taylor <otaylor@redhat.com>
12336 * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
12337 which are no longer necessary.
12339 Mon Feb 5 13:22:54 GMT 2001 Tony Gale <gale@gtk.org>
12341 * docs/faq/gtk-faq.sgml: s/MISK/MISC/
12343 2001-02-04 Tor Lillqvist <tml@iki.fi>
12346 * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
12347 Provide dummy implementations.
12349 Sun Feb 4 07:55:17 2001 Tim Janik <timj@gtk.org>
12351 * gtk/gtksignal.h: removed gtk_signal_init() compat define.
12353 * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
12354 GTypeDebugFlags debug_flags and pass it on to g_type_init ();
12355 deprecated this function.
12357 * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
12360 Sun Feb 4 07:45:45 2001 Tim Janik <timj@gtk.org>
12362 * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
12364 2001-02-03 Havoc Pennington <hp@pobox.com>
12366 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
12367 Mikael Hermansson with patch from Mikael (if there was a toggle
12368 start one after the first character in the range, this function
12369 was broken). Bug #50380
12371 Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
12373 * configure.in: Remove confusing comment about X11.
12375 Fri Feb 2 19:21:23 2001 Owen Taylor <otaylor@redhat.com>
12377 * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
12378 regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
12380 Fri Feb 2 18:31:54 2001 Owen Taylor <otaylor@redhat.com>
12382 * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
12383 it breaks things on BSD. If you want to compile GTK+ with
12384 -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE
12385 when configuring, since GTK+ simply can't be "pure ANSI"
12386 in the header files it uses. (#8170, Greg Hudson)
12388 2001-02-02 Havoc Pennington <hp@redhat.com>
12390 * gtk/gtkwindow.c: docs
12392 * gtk/gtkwidget.c: docs
12393 (gtk_widget_set_colormap): add a reference to the colormap
12394 (gtk_widget_get_default_colormap): add a reference to the colormap
12396 * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
12398 * gtk/gtktextiter.c: docs
12400 * gtk/gtkmain.c (gtk_propagate_event): docs
12402 * gtk/gtkpaned.c (gtk_paned_get_position): docs
12403 (gtk_paned_set_position): docs
12405 * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
12406 sort interface, no implementation yet.
12408 * demos/testpixbuf.c (new_testrgb_window): replace
12409 gtk_drawing_area_size() with gtk_widget_set_usize()
12411 * demos/testpixbuf-drawable.c (main): ditto
12413 * gtk/testgtk.c: remove use of GtkStatusbarMsg
12415 * gtk/gtktextbuffer.c: docs
12417 * gtk/gtkstock.c: docs
12419 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
12421 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
12423 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
12425 * gtk/gtkimage.c: add some docs in here
12426 (gtk_image_size_request): change name of
12427 gtk_widget_render_stock_icon
12428 (gtk_image_get_icon_set): don't dup returned string
12429 (gtk_image_get_icon_set): don't dup returned string
12431 * gtk/gtkwidget.c (gtk_widget_render_icon): rename from
12432 gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
12433 and gtkiconfactory.h functions
12435 * gtk/gtkiconfactory.c: add some docs in here
12437 * gtk/gtkmain.c (gtk_get_default_language): document
12438 (gtk_get_current_event): document
12439 (gtk_get_current_event_state): document
12440 (gtk_get_event_widget): document
12442 * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
12444 * gtk/gtkcontainer.c: Add some documentation
12445 (gtk_container_add): give a more explanatory warning on adding an
12446 already-parented widget, this is kind of a FAQ and also a common
12447 typo that's easier to debug with a nice warning
12449 * gtk/gtkcellrenderertoggle.c
12450 (gtk_cell_renderer_toggle_get_active): remove, I was on crack
12451 adding this, it's useless
12452 (gtk_cell_renderer_toggle_set_active): remove
12453 (gtk_cell_renderer_toggle_get_radio): add
12455 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
12456 the NULL cell renderer, that doesn't make any sense to me.
12458 * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
12459 demo code should never use deprecated features.
12461 * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
12462 code should never use deprecated features.
12464 * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
12465 gtk_widget_queue_clear_area deprecated
12467 * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
12470 * gtk/gtklabel.h: mark gtk_label_get() deprecated
12472 * gtk/gtkimage.h: mark the legacy GtkImage functions that took
12473 a GdkImage deprecated, replaced by new consistently-named
12476 * gtk/gtkmain.h: Mark gtk_exit() deprecated
12478 * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
12480 * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string
12483 * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file,
12484 so it won't appear in docs and confuse people.
12486 * gtk/gtkprogressbar.h: Mark all the old methods deprecated
12488 * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
12489 macros deprecated. (can't mark the type itself deprecated, since
12490 GtkProgressBar is not deprecated and we need the type decl to use
12493 * gtk/gtkpixmap.h: Mark deprecated
12495 * gtk/gtkoldeditable.h: Mark deprecated
12497 * gtk/gtklist.h: Mark deprecated
12499 * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used
12500 for anything anymore.
12502 * gtk/gtkctree.h: Mark deprecated
12504 * gtk/gtkclist.h: Mark deprecated
12506 * gtk/gtkpreview.h: Mark deprecated
12508 * gtk/gtkpacker.h: Mark deprecated
12510 * gtk/gtktipsquery.h: Mark deprecated
12512 * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
12514 * gtk/gtkvruler.h: Add comment that it will move out of GTK
12516 * gtk/gtkhruler.h: Add comment that it will move out of GTK
12518 * gtk/gtkruler.h: Add comment that it will move out of GTK
12520 * gtk/gtkgamma.h: Add comment that it will move out of GTK
12522 * gtk/gtkcurve.h: Add comment that it will move out of GTK
12524 Fri Feb 2 17:16:09 2001 Owen Taylor <otaylor@redhat.com>
12526 * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
12527 gdk_colormap_sync private since it was never exported
12530 * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
12531 colormap->colors[] for StaticGray, StaticColor colormaps.
12533 * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
12534 was being used as if it was image->bits_per_pixel.
12536 * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
12537 for the image in the GdkImage structure since it isn't
12538 reconstructable, and we need it to handle packed types
12540 * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
12541 the assumption that on Win32 image->bits_per_pixel == image->depth,
12544 * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
12546 * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
12547 warning message if no converter can be found.
12549 Fri Feb 2 15:09:51 2001 Owen Taylor <otaylor@redhat.com>
12551 * gtk/fnmatch.c (FOLD): Fix problem with passing signed
12552 chars to isupper() / tolower(). (#567)
12554 * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
12555 to clear up 64-bit warnings. (#567)
12557 Fri Feb 2 12:26:50 2001 Owen Taylor <otaylor@redhat.com>
12559 * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
12560 a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
12562 * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
12563 since some people set $(libdir) separately. (#1290, David Kaelbling)
12565 Thu Feb 1 18:25:46 2001 Owen Taylor <otaylor@redhat.com>
12567 * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
12568 defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
12569 MAXPATHLEN, but the code here depends on a fixed value.)
12572 Wed Jan 31 22:01:04 2001 Owen Taylor <otaylor@redhat.com>
12574 * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
12575 where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
12577 Wed Jan 31 21:20:39 2001 Owen Taylor <otaylor@redhat.com>
12579 * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
12580 viewable there is no way that moving the node will cause the
12581 focus row to become not viewable, so omit check on the visibility
12582 of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
12584 Wed Jan 31 20:38:17 2001 Owen Taylor <otaylor@redhat.com>
12586 * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
12587 selection before inserting new text.
12589 Wed Jan 31 18:49:33 2001 Owen Taylor <otaylor@redhat.com>
12591 * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
12592 Make the sensitivity of the reparented child track that of
12593 the original parent menu item. (#34218, David Hodson)
12595 * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
12596 the case where the current item is destroyed properly.
12598 * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
12599 some edge cases with child-less menuitems.
12601 Wed Jan 31 17:16:13 2001 Owen Taylor <otaylor@redhat.com>
12603 * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
12604 key pop down window. (#12074, Jon K Hellan)
12606 Wed Jan 31 16:21:42 2001 Owen Taylor <otaylor@redhat.com>
12608 * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
12609 toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan)
12610 The solution here isn't perfect - you get an extraneous
12611 emission of "toggle", which could conceivably confuse an app,
12612 but better than the current situation. LXR search seems to
12613 indicate that no apps in GNOME CVS connect to "toggle".
12615 Wed Jan 31 15:46:13 2001 Owen Taylor <otaylor@redhat.com>
12617 * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
12618 gtk_public_h_sources to directly here to avoid warning when
12619 building srcdir != builddir. (#9656)
12621 Tue Jan 30 19:49:02 2001 Owen Taylor <otaylor@redhat.com>
12623 * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
12624 handlers in gtkrange.c return the proper values (TRUE == handled)
12627 This is just the tip of the iceberg, but gtkrange.c is the
12628 most common place where the propagation is problematical,
12629 and also a place where it is almost certainly safe to change
12630 this in the stable branch.
12632 (You don't want right click popups on a range control or anything...)
12634 Tue Jan 30 18:57:59 2001 Owen Taylor <otaylor@redhat.com>
12636 * gtk/gtktext.c (clear_focus_area): We need to clear the focus
12637 area on focus out, even if a background pixmap isn't set.
12640 Tue Jan 30 18:24:10 2001 Owen Taylor <otaylor@redhat.com>
12642 * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
12643 to deal with setting the shape properly when scrolling arrows are
12644 turned on, but not visible because there is sufficient space.
12647 Tue Jan 30 16:39:25 2001 Owen Taylor <otaylor@redhat.com>
12649 * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
12650 items with submenus, destroy the item along with the submenu.
12651 (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...'
12654 * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
12657 Tue Jan 30 15:51:25 2001 Owen Taylor <otaylor@redhat.com>
12659 * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
12660 the focus widget sometimes wasn't drawn with the default if there
12661 was no default widget.
12663 * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
12664 unreference pixmaps.
12666 * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
12667 for some extra safety.
12669 Mon Jan 29 19:00:01 2001 Owen Taylor <otaylor@redhat.com>
12671 * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
12672 the text of a cell to the old pointer value better, by
12673 copying the new text before freeing the old text. Some code
12674 cleanup. (#8079, Karl Nelson)
12676 Mon Jan 29 16:50:19 2001 Owen Taylor <otaylor@redhat.com>
12678 * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
12679 gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
12681 Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
12683 * gtk/gtkmenu.c (gtk_menu_remove): When removing an
12684 item from a menu, check to see if it matches
12685 menu->old_active_menu_item, and if so, unref and clear
12686 old_active_menu_item (Patch from Pavel Cisler)
12688 * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset
12689 menu_shell->active_menu_item, if it is the child being
12690 removed. (Patch based on that of Gene Ragan, #50337)
12692 2001-01-31 Alexander Larsson <alla@lysator.liu.se>
12694 * gdk/linux-fb/gdkselection-fb.c:
12695 * gdk/linux-fb/gdkcolor-fb.c:
12696 * gdk/linux-fb/gdkdrawable-fb2.c:
12697 * gdk/linux-fb/gdkfont-fb.c:
12698 * gdk/linux-fb/gdkim-fb.c:
12699 * gdk/linux-fb/gdkinput.c:
12700 * gdk/linux-fb/gdkkeyboard-fb.c:
12701 * gdk/linux-fb/gdkmain-fb.c:
12702 * gdk/linux-fb/gdkrender-fb.c:
12703 A bunch of whitespace cleanup.
12705 2001-01-30 Havoc Pennington <hp@pobox.com>
12707 * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in
12708 #ifdef GTK_ENABLE_BROKEN.
12710 * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
12711 GTK_ENABLE_BROKEN just before including the broken headers.
12713 * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
12714 deprecated types registered.
12716 * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
12717 we have to test the broken stuff.
12719 * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
12721 2001-01-30 Havoc Pennington <hp@redhat.com>
12723 * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
12724 here where prev pointer was set to the wrong thing
12726 * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
12727 (gtk_tree_path_is_descendant): new function
12729 * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
12731 (gtk_list_store_get_iter): don't modify iter if we can't get the
12734 * gtk/gtkliststore.h (struct _GtkListStore): cache the length
12736 * gtk/gtktreednd.h: add virtual function row_drop_possible() to
12739 * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
12740 was causing segfault
12742 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
12745 * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
12747 * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
12749 (gtk_list_store_iter_children): ditto
12750 (gtk_list_store_iter_nth_child): ditto
12751 (gtk_list_store_iter_nth_child): ditto
12752 (gtk_list_store_iter_parent): ditto
12754 * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
12755 on iter->user_data != NULL instead of silently accepting it.
12756 (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
12757 we are returning TRUE.
12758 (gtk_tree_store_iter_children): ditto
12759 (gtk_tree_store_iter_nth_child): ditto
12760 (gtk_tree_store_iter_parent): ditto
12761 (gtk_tree_store_insert): remove handling of parent->user_data ==
12762 NULL, replace with parent == NULL
12764 * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
12765 and a comment explaining things
12767 * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
12768 interface support to GtkTreeStore.
12770 * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
12771 FALSE if no prev, fix
12773 * gtk/gtktreeview.c (set_source_row): use a row reference
12774 (set_dest_row): use a row reference
12776 Sat Jan 27 15:52:02 2001 Jonathan Blandford <jrb@redhat.com>
12778 * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
12779 stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
12780 (gtk_tree_selection_select_iter): The same as above.
12782 2001-01-26 Havoc Pennington <hp@redhat.com>
12784 * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
12785 which holds a handle to a specific row (particular set of values
12786 in the model, i.e. pointer-identity row).
12788 * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
12789 use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
12790 Still need to use it for the src/dest row saved on the drag context.
12792 2001-01-26 Havoc Pennington <hp@redhat.com>
12794 * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
12796 * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
12797 not offset by TREE_VIEW_HEADER_HEIGHT
12798 (gtk_tree_view_tree_to_widget_coords): fix to not offset by
12799 TREE_VIEW_HEADER_HEIGHT
12801 * configure.in (included_loaders): for me, --with-included-loaders
12802 generates the error "the specified loader yes does not exist",
12803 i.e. the arg defaults to "yes", so change test for value ""
12804 to test for value "yes", and include all loaders in that case.
12806 * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
12808 * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
12809 handle TREE_VIEW_VERTICAL_SEPARATOR
12810 (gtk_tree_view_bin_expose): fix to consider the row offset as
12811 pointing halfway into vertical separator.
12812 (gtk_tree_view_draw_node_focus_rect): ditto
12814 * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
12815 --gtk-debug=updates, which causes gdk_window_set_debug_updates
12816 (TRUE) to be called.
12818 * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
12819 debug mode where the invalid region is colored in on invalidate,
12820 so you can see the flicker and know whether your redraw code is
12823 * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
12824 tree window coordinates (clip rect is in tree window coords)
12826 * gtk/Makefile.am: add gtktreednd.[hc]
12828 * gtk/gtkliststore.c: implement gtktreednd interfaces.
12830 * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
12831 drag-and-drop data operations on a model (so we can set up tree
12832 drag-and-drop automatically)
12834 * gtk/testgtk.c: Add a window to change sensitivity in the
12835 GtkLabel test; add a way to change the entry frame in GtkEntry
12838 * gtk/gtkentry.c (gtk_entry_set_has_frame):
12839 (gtk_entry_get_has_frame): new functions to remove the frame
12841 (gtk_entry_size_request): shrink requisition if no frame
12842 (gtk_entry_draw_focus): don't draw frame if no frame
12844 * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
12845 checks inside a cell renderer
12846 (gtk_default_draw_option): ditto for options
12848 * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
12849 children from the alignment, not the button
12850 (gtk_tree_view_column_init): ref/sink the column, to emulate
12851 GObject refcounting.
12853 * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
12855 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12856 Use theme functions to draw the toggles
12858 * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
12860 * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
12861 GdkPangoAttrEmbossed to use in rendering insensitive text
12863 * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
12865 * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
12866 using new GDK features
12868 2001-01-24 Alexander Larsson <alexl@redhat.com>
12871 Splitted gtk_image_clear into gtk_image_clear() and
12872 gtk_image_reset(). Call gtk_image_clear() in ::destroy
12875 * gtk/gtklabel.c (set_markup):
12878 * gtk/gtktextlayout.c:
12879 Always free display->shaped_objects.
12881 * gtk/testgtk.c (create_clist):
12882 Don't leak custom style.
12884 2001-01-23 Alexander Larsson <alexl@redhat.com>
12886 * gtk/gtkcolorsel.c (grab_color_at_mouse):
12887 Don't leak image. Simplify using gdk_colormap_query_color().
12888 (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
12890 * linux-fb/gdkcolor-fb.c:
12891 Implemented gdk_colormap_query_color.
12893 2001-01-23 Alexander Larsson <alexl@redhat.com>
12895 * linux-fb/gdkcursor-fb.c:
12896 Don't leak built-in cursors.
12898 * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
12899 Don't leak tmp_points.
12901 * linux-fb/gdkfont-fb.c (gdk_font_from_description):
12902 Don't modify desc. Don't leak font if the PangoFont
12905 * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
12908 * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
12911 2001-01-20 Havoc Pennington <hp@pobox.com>
12913 * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
12914 from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to
12917 2001-01-22 Havoc Pennington <hp@redhat.com>
12919 * demos/testanimation.c: fix to reflect gdk-pixbuf changes
12921 * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
12923 * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
12924 Remove, move back to gdk-pixbuf
12926 * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
12927 to all the word functions
12929 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
12930 before doing anything on NULL layout or if we don't have the focus
12932 * gtk/testtext.c (fill_example_buffer): "justification"
12934 * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
12935 to be called "justification" not "justify"
12937 * demos/gtk-demo/textview.c (create_tags): "justification"
12939 * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
12941 2001-01-22 Alexander Larsson <alexl@redhat.com>
12943 * gdk/gdkwindow.c (gdk_window_invalidate_region):
12944 Don't leak visible_region. Use visible_region instead of region.
12946 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12947 Don't do extra gdk_drawable_ref(). This is not X.
12948 (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
12949 gdk_fb_focused_window is ref:ed.
12950 (gdk_fb_window_send_crossing_events): Watch out for destroyed
12953 2001-01-22 Alexander Larsson <alexl@redhat.com>
12955 * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
12956 Don't leak the PangoFontDescriptor.
12958 Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
12960 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
12962 (gtk_tree_view_scroll_to_cell): Make work when not realized.
12963 (gtk_tree_view_realize): add scroll_to support
12964 (gtk_tree_view_finalize): add a finalize method. Populate.
12965 (gtk_tree_view_insert_column): ref and sink the column.
12966 (gtk_tree_view_append_column): ref and sink the column.
12967 (gtk_tree_view_queue_draw_node): New function to handle redrawing
12968 individual nodes. Should make the code much more efficient, if
12971 2001-01-19 Havoc Pennington <hp@redhat.com>
12973 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12974 byte_offset variable was being used to mean both "offset into
12975 layout" and "offset into buffer line" which was no longer true
12976 with addition of preedit string; fix
12978 2001-01-19 Havoc Pennington <hp@redhat.com>
12980 * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
12982 * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
12985 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
12988 * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
12989 scroll_to_cell, matches TextView scroll functions better
12990 (gtk_tree_view_tree_to_widget_coords): new function
12991 (gtk_tree_view_widget_to_tree_coords): new function
12992 (gtk_tree_view_get_visible_rect): new function
12993 (gtk_tree_view_get_path_at_pos): accept negative coordinates
12994 (gtk_tree_view_draw_node_focus_rect): new function moved from
12995 draw_focus, also, use width of bin_window as width of the focus
12997 (gtk_tree_view_expand_row): fix bug where it didn't recognize
12998 already-expanded rows
12999 (gtk_tree_view_get_cell_rect): new function
13000 (gtk_tree_view_get_path_at_pos): return the click position
13001 relative to the passed-in cell
13002 (gtk_tree_view_set_expander_column): new function
13004 * configure.in: remove gtk-config-2.0 chmod
13006 * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
13007 and properly handle drags with targets we don't understand
13008 (gtk_text_view_drag_end): don't stop scrolling, the source isn't
13010 (gtk_text_view_drag_drop): stop scrolling here though, and set the
13013 * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
13015 (gtk_drag_dest_get_target_list): new function
13016 (gtk_drag_dest_set_target_list): new function
13018 * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
13020 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
13021 related to drag-and-drop
13023 2001-01-19 Alexander Larsson <alexl@redhat.com>
13025 * gdk/linux-fb/gdkprivate-fb.h:
13026 Define EMULATE_GDKFONT.
13027 Add extra pango_font stuff to GfkFontPrivate.
13029 * gdk/linux-fb/gdkdrawable-fb2.c:
13030 * gdk/linux-fb/gdkfont-fb.c:
13031 If EMULATE_GDKFONT defined, implement a slow lame GdkFont
13032 emulation using PangoFont.
13034 2001-01-17 Havoc Pennington <hp@pobox.com>
13036 * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
13037 all the non-deprecated set_foo functions. Added missing object
13038 properties, and added g_object_notify() to setters.
13041 2001-01-18 Tor Lillqvist <tml@iki.fi>
13044 * gtk/gtkrc.c: (Win32) Use the new
13045 g_win32_get_package_installation_(sub)directory() functions.
13047 * config.h.win32.in: New file.
13049 * config.h.win32: Removed.
13051 * configure.in: Output config.h.win32.
13053 * Makefile.am: Add it to EXTRA_DIST.
13055 * gtk/gtk.def: Update.
13057 Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
13059 * gtk/gtklabel.c (gtk_label_size_request): Set the
13060 attributes onto the PangoLayout even if they are newly
13061 created from label->pattern.
13063 Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
13065 * gdk/x11/gdkdnd-x11.c: Remove unused variable.
13067 * gtk/gtkdnd.c: Encapsulate storing and retrieving info
13068 structures in functions. Fixes bug where gtk_dataset_*
13069 was accidentally still being used in one place, causing
13070 every dest side event to be treated independently.
13072 * gtk/gtkdnd.c: Remove last vestages of handling
13073 ::draw (fixes warning)
13075 * gtk/gtkentry.[ch]: Add drag and drop support.
13077 * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
13078 new function gtk_check_drag_threshhold() for checking
13079 to check if (dx,dy) has exceeded the threshhold for starting
13080 a drag and use it everywhere.
13082 Mon Jan 8 11:58:05 2001 Owen Taylor <otaylor@redhat.com>
13084 * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
13085 add -I{includedir}/gtk-2.0.
13087 * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
13088 gdk/gdk-pixbuf.h: Doc fixups.
13090 * gtk/gtkobject.h: Remove trailing , from enum
13092 2001-01-17 Alexander Larsson <alexl@redhat.com>
13094 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
13095 Doh! Mixed up x and y.
13097 * gdk/linux-fb/gdkglobals-fb.c:
13098 Removed gdk_fb_pointer_grab_window_events,
13099 added _gdk_fb_pointer_grab_owner_events and
13100 _gdk_fb_keyboard_grab_owner_events.
13102 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
13103 Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
13104 crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
13105 (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
13106 Send crossing events after ungrab finished.
13107 (gdk_keyboard_grab): Set ..._owner_events
13108 (type_masks): Move out of function.
13109 (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
13110 gdk_fb_keyboard_event_window): New functions, return the
13111 window an event should be targeted at. Handles grabs and
13112 event propagation. Can return NULL.
13113 (gdk_event_make): Remove event_mask checking. Now always
13116 * gdk/linux-fb/gdkkeyboard-fb.c:
13117 * gdk/linux-fb/gdkproperty-fb.c:
13118 * gdk/linux-fb/gdkselection-fb.c:
13119 Use new event_window/gdk_event_make() behaviour.
13121 * gdk/linux-fb/gdkmouse-fb.c:
13122 Use new event_window/gdk_event_make() behaviour.
13123 Only send motion events if in the same window.
13124 If grabbed, use cursor from window if sibling of grabbed
13125 window, and cursor from grabbed window otherwise.
13127 * gdk/linux-fb/gdkprivate-fb.h:
13128 Update gdk_fb_window_send_crossing_events, gdk_event_make
13129 and grab varaible declarations. Add gdk_fb_*_event_window().
13131 * gdk/linux-fb/gdkwindow-fb.c:
13132 Use new event_window/gdk_event_make() behaviour.
13133 Keep correct track of focus window.
13134 (gdk_window_set_events): Set all specific button motion masks
13135 if GDK_BUTTON_MOTION_MASK set.
13137 * gtk/gtkdnd.c (gtk_drag_update):
13138 Free info->last_event if gdk_drag_motion returned FALSE.
13140 2001-01-16 Tor Lillqvist <tml@iki.fi>
13142 * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
13143 Eliminate redraws when input-only windows are shown or
13144 hidden. Thanks to jpe@archaeopteryx.com.
13146 Tue Jan 16 13:13:13 GMT 2001 Tony Gale <gale@gtk.org>
13148 * docs/faq/gtk-faq.sgml: FAQ update:
13149 - Update to bugzilla
13150 - Add GTK+ and security/SUID/SGID
13153 2001-01-16 Alexander Larsson <alla@lysator.liu.se>
13155 * gdk/linux-fb/gdkdnd-fb.c:
13158 2001-01-15 Havoc Pennington <hp@pobox.com>
13160 * tests/testtreeview.c: add test stuff for CellRendererToggle
13162 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
13165 * gtk/gtkcellrenderertoggle.c: distinguish different event types,
13166 only toggle on button press (would do release like GtkButton, but
13167 we'd need implicit grab code for treeview cells)
13169 2001-01-16 Tor Lillqvist <tml@iki.fi>
13171 * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
13173 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
13174 GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
13176 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
13177 to g_{locale,filename}_{to,from}_utf8 to match current API.
13179 * gtk/makefile.msc.in (gtk_OBJECTS)
13180 * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
13182 * gtk/gtk.def: Update.
13184 2001-01-15 Tor Lillqvist <tml@iki.fi>
13186 * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
13187 implementaion that more closely mimics the events that an X server
13188 would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
13189 GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
13190 with nested preview widgets, for instance, more responsive when
13191 you move the mouse quickly into them.
13192 (find_window_for_pointer_event): Make it actually compile.
13193 (gdk_event_translate): Set send_event to the value of
13194 InSendMessage (). This doesn't really mean the same as X11's
13195 send_event flag, but is close enough, says jpe@archaeopteryx.com
13197 2001-01-15 Alexander Larsson <alexl@redhat.com>
13199 * gdk/linux-fb/gdkdnd-fb.c:
13200 Implemented drag and drop.
13201 Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
13202 when it tries to free and then copy the same event (info->last_event).
13203 I am not sure about why this happens, but will continue looking.
13205 2001-01-15 Alexander Larsson <alexl@redhat.com>
13207 * gdk/linux-fb/gdkwindow-fb.c:
13208 Use gdk_window_invalidate_rect instead of
13209 gdk_window_invalidate_rect_clear to minimise flashing.
13210 When hiding windows you need to clear the root window though.
13212 2001-01-15 Alexander Larsson <alexl@redhat.com>
13214 * gdk/linux-fb/gdkdrawable-fb2.c:
13215 For optization, add an full_shapes argument to gdk_fb_clip_region.
13216 If this is false, only the cliprects of the shapes are used.
13218 * gdk/linux-fb/gdkprivate-fb.h:
13219 Export gdk_fb_window_peek_shape.
13220 Add full_shapes to gdk_fb_clip_region.
13222 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
13223 When moving a window, don't clear everything under the it, just the
13224 root window. Makes stuff faster and flash less.
13225 (gdk_window_get_pointer): Correctly handle offseted shapes, due to
13226 USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
13227 offset of the shape.
13230 2001-01-12 Havoc Pennington <hp@redhat.com>
13232 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the
13233 current invalid region, fixes redraw bug while scrolling the
13236 * gtk/gtktextview.c, gtk/gtktextview.h:
13237 Rearrange the scrolling/validation/etc. code in a major way,
13238 so it seems to make sense to me. Probably isn't genuinely that
13239 much better, but...
13241 * gtk/gtktexttag.c (set_fg_color): fix name of property used for
13244 * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
13246 2001-01-12 Alexander Larsson <alla@lysator.liu.se>
13248 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
13249 Hide mouse pointer while rotation. Show it afterwards.
13251 2001-01-12 Alexander Larsson <alexl@redhat.com>
13253 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
13254 windows in consideration when generating clip region.
13256 * gdk/linux-fb/gdkfb.h:
13257 Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
13259 * gdk/linux-fb/gdkprivate-fb.h:
13260 Add shape to GdkWindowFBDatat.
13261 exported gdk_fb_window_get_abs_shape().
13262 removed gdk_fb_draw_lines declaration.
13264 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
13265 Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
13266 send focus changes when there is a grabbed window.
13267 (gdk_window_get_pointer): Handle shaped windows.
13268 (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
13269 (gdk_fb_window_peek_shape): Returns the shape for a window,
13270 handles GDK_FB_USE_CHILD_SHAPE.
13271 (gdk_fb_window_get_abs_shape): Returns the shape of the window,
13272 offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
13273 (gdk_window_shape_combine_mask): Implement.
13275 * gtk/gtkwindow-decorate.c:
13276 HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
13277 setting the shape of a window makes the window transparent.
13279 2001-01-11 Havoc Pennington <hp@redhat.com>
13281 * gtk/gtktreemodelsimple.h: Oops, broke some macros
13283 2001-01-10 Havoc Pennington <hp@redhat.com>
13285 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
13286 add this function, bug 40251
13288 * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
13291 2001-01-11 Alexander Larsson <alexl@redhat.com>
13294 Added ENABLE_SHADOW_FB
13297 Added --disable-shadowfb
13299 * gdk/linux-fb/gdkcursor-fb.c:
13300 Update shadowfb when updating cursor
13302 * gdk/linux-fb/gdkdrawable-fb2.c:
13303 Added wrappers for shadowfb that calls the normal drawable
13304 methods, but calls gdk_shadow_fb_update(bounding box) when
13305 GdkWindows are drawed to.
13306 Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
13307 which also returns the bounding box.
13309 * gdk/linux-fb/gdkfb.h:
13310 Added GdkFBAngle type and gdk_fb_set_rotation declaration.
13312 * gdk/linux-fb/gdkgeometry-fb.c:
13313 Update shadowfb when scrolling window.
13315 * gdk/linux-fb/gdkglobals-fb.c:
13316 Add _gdk_fb_screen_angle.
13318 * gdk/linux-fb/gdkkeyboard-fb.c:
13319 Test code for screen rotation. Shift-F2 in the xlate driver
13320 rotates the screen.
13322 * gdk/linux-fb/gdkmain-fb.c:
13323 Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
13325 * gdk/linux-fb/gdkmouse-fb.c:
13326 Use fb_width/height instead of modeinfo.xres/yres.
13328 * gdk/linux-fb/gdkprivate-fb.h:
13329 Added fb_men, fb_width, fb_height & fb_stride. When using
13330 shadow fb these can differ from the framebuffer stuff.
13331 Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
13332 gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
13333 _gdk_fb_screen_angle. Removed CM, RP.
13335 * gdk/linux-fb/gdkrender-fb.c:
13336 Added code for shadowfb handling and screen rotation using
13339 * gdk/linux-fb/gdkwindow-fb.c:
13340 Use fb_mem, fb_stride, fb_width, fb_height.
13341 Added recompute_rowstride to reset the rowstride of all windows.
13342 Added gdk_fb_recompute_all() which recomputes rootwindow size,
13343 window abs positions and window rowstrides. Usefull when the
13344 rotation has changed.
13346 Thu Jan 11 13:16:50 GMT 2001 Tony Gale <gale@gtk.org>
13348 * docs/faq/gtk-faq.sgml: update to make web site updating easier
13350 2001-01-10 Havoc Pennington <hp@redhat.com>
13352 * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
13353 where sibling == iter
13354 (gtk_tree_store_insert_after): handle sibling == iter
13355 (gtk_tree_store_prepend): remove stamp checks
13356 (gtk_tree_store_insert_before): ditto
13357 (gtk_tree_store_append): ditto
13358 (gtk_tree_store_get_path): ditto
13359 (gtk_tree_store_get_value): ditto
13360 (gtk_tree_store_iter_has_child): ditto
13361 (gtk_tree_store_iter_n_children): ditto
13362 (gtk_tree_store_iter_nth_child): ditto
13363 (gtk_tree_store_insert_after): ditto
13364 (gtk_tree_store_is_ancestor): ditto
13365 (gtk_tree_store_iter_depth): ditto
13366 (gtk_tree_store_insert_before): assert that sibling's parent is
13367 the same as the passed-in parent
13368 (gtk_tree_store_insert_after): assert that sibling's parent is
13369 the same as the passed-in parent
13372 * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience
13373 function to get the first iterator in a model
13375 * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
13376 conventionally the "root" in this sense is just NULL afaict.
13378 * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
13379 where sibling == iter
13380 (gtk_list_store_insert_after): handle case where sibling == iter
13382 * tests/testtreeview.c (run_automated_tests): fairly lame basic
13383 automated tests for ListStore, TreeStore
13385 * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
13386 (gtk_list_store_insert): update tail pointer, and fix it to work
13387 (gtk_list_store_insert_before): update tail pointer, and fix it to work
13388 (gtk_list_store_append): use tail to be faster
13389 (gtk_list_store_prepend): fix it, update tail pointer
13390 (gtk_list_store_insert_after): fix it, update tail pointer
13392 * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for
13395 2001-01-09 Havoc Pennington <hp@redhat.com>
13397 * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
13398 is NULL due to a pending resize
13400 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
13401 column width to values less than 1
13403 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
13404 width to be between min/max width, and still set the width
13405 even if autosize is turned on, so the tree view can use this
13406 function in order to autosize.
13407 (gtk_tree_view_column_init): set initial width to 1 not 0
13409 * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
13410 setter function to modify column width, so we get notification
13411 (gtk_tree_view_insert_iter_height): ditto
13412 (gtk_tree_view_calc_size): ditto
13413 (gtk_tree_view_check_dirty): ditto
13415 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
13416 properties to change all the interesting attributes of the tree
13418 (gtk_tree_view_column_set_header_clickable): rename set_clickable
13419 (gtk_tree_view_column_get_clickable): add
13420 (gtk_tree_view_column_set_cell_renderer): don't unset the current
13421 attributes; assume a cell renderer with equivalent object
13422 properties has been swapped in. Do g_object_notify().
13423 (gtk_tree_view_column_set_visible): g_object_notify
13424 (gtk_tree_view_column_get_sizing): rename from get_col_type
13425 (gtk_tree_view_column_set_sizing): g_object_notify
13426 (gtk_tree_view_column_set_width): add g_object_notify
13427 (gtk_tree_view_column_set_min_width): ditto
13428 (gtk_tree_view_column_set_max_width): ditto
13429 (gtk_tree_view_column_set_title): ditto
13430 (gtk_tree_view_column_set_clickable): ditto
13431 (gtk_tree_view_column_set_widget): ditto
13432 (gtk_tree_view_column_set_justification): ditto
13434 2001-01-09 Havoc Pennington <hp@redhat.com>
13436 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
13437 there are no rows in the model
13439 * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
13440 NULL, then return the start of the list
13442 * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
13443 if we can't get any rows from an empty model
13445 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
13446 extraneous * after function pointer typedef usage
13448 * Makefile.am: don't specify full path to cp and rm
13450 * gtk/gtkcellrenderertextpixbuf.c
13451 (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
13452 NULL before dereferencing, fixes a segfault that happened from
13455 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
13456 use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
13457 and reindent the function
13458 (gtk_cell_renderer_pixbuf_get_size): indentation
13460 * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
13462 (gtk_dialog_add_buttons_valist): add g_return_if_fail
13463 (gtk_dialog_set_default_response): New function, to set default
13465 (gtk_dialog_set_response_sensitive): New function, to set
13466 sensitivity of buttons
13468 * gtk/gtkcellrendererpixbuf.c
13469 (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
13470 (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
13472 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
13473 handle any G_TYPE_OBJECT subclass, not just the base class, and
13475 (_gtk_tree_data_list_value_to_node): ditto
13477 * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if
13480 * gtk/gtkmain.c: add GTK_DEBUG_TREE
13482 * gtk/gtkdebug.h: add GTK_DEBUG_TREE
13484 2001-01-09 Tor Lillqvist <tml@iki.fi>
13486 * gdk/win32/gdkevents-win32.c: Implement better mouse
13487 capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
13488 (find_window_for_pointer_event): New function.
13489 (gdk_event_translate): Use it when handling mouse events.
13491 2001-01-09 Alexander Larsson <alla@lysator.liu.se>
13494 Added --with-included-loaders option
13496 * gdk-pixbuf/Makefile.am:
13497 * gdk-pixbuf/gdk-pixbuf-io.c:
13498 Add support for including selected gdk-pixbuf loaders only.
13500 * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
13501 gtk_window_set_has_frame):
13502 Added inline documentation.
13504 * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
13505 * docs/reference/gdk/tmpl/windows.sgml:
13506 Added inline documentation.
13508 Mon Jan 8 14:42:06 2001 Jonathan Blandford <jrb@redhat.com>
13510 * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
13511 realizing buttons that have already been realized.
13513 Mon Jan 8 14:06:29 2001 Jonathan Blandford <jrb@redhat.com>
13515 * tests/testtreeview.c (main): Show menu items before adding to
13518 * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
13519 around if we kill them.
13521 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13522 Return if we pass in a NULL model.
13524 2001-01-08 Havoc Pennington <hp@redhat.com>
13526 * tests/testtreeview.c: hack on this some
13528 * gtk/gtktreestore.c (gtk_tree_store_setv): rename
13529 gtk_tree_store_set_valist, v is for arrays, valist for varargs
13531 (gtk_tree_store_getv): rename gtk_tree_store_get_valist
13533 * gtk/gtkliststore.h: Add varargs set() and get() convenience
13536 2001-01-08 Alexander Larsson <alexl@redhat.com>
13538 * gtk/gtkwindow-decorate.[hc]:
13540 New files. Contains an implementation of a minimal WM for
13544 Add the possibility for GtkWindows to specify a frame. This
13545 is used for the window decoration code, but could concievably
13546 be used for X programs too (xmms style windows).
13547 GtkWindow->frame is the toplevel window if the window is framed.
13548 The signal frame_event gets all events that are targeted to
13550 (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
13553 Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
13554 Call out to gtkwindow-decorate.c for WM support in linx-fb.
13556 2001-01-08 Alexander Larsson <alexl@redhat.com>
13558 * docs/README.linux-fb:
13559 Correct filename ~/.pangoft2_aliases
13562 Added new function gdk_window_get_decorations.
13564 * gdk/linux-fb/gdkfb.h:
13565 Removed _gdk_window_get_decorations declaration.
13566 Renamed _gdk_window_set_child_handler to
13567 gdk_fb_window_set_child_handler.
13569 * gdk/linux-fb/gdkwindow-fb.c:
13570 Renamed _gdk_window_set_child_handler to
13571 gdk_fb_window_set_child_handler.
13573 * gdk/x11/gdkwindow-x11.c:
13574 New function gdk_window_get_mwm_hints().
13575 Implemented gdk_window_get_decorations.
13577 * docs/reference/gdk/tmpl/windows.sgml:
13578 * docs/reference/gdk/gdk-sections.txt:
13579 Added gdk_window_get_decorations docs.
13581 2001-01-08 Alexander Larsson <alla@lysator.liu.se>
13583 * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
13584 gdk_fb_window_find_focus, gdk_fb_send_focus_change,
13585 gdk_fb_window_send_crossing_events):
13586 Possibly send focus events when the mouse moves from one
13589 2001-01-07 Tor Lillqvist <tml@iki.fi>
13591 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
13592 gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
13593 to match current API.
13595 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
13596 environment variable is set, don't call g_error when on a
13597 palettized (PseudoColor) display. Some people want to use GTK+
13598 in 256-colour mode even though works only partially.
13602 * gtk/makefile.mingw.in: Update.
13604 2001-01-05 Havoc Pennington <hp@redhat.com>
13606 * tests/testtreeview.c: hack on this a bit
13608 * gtk/gtktextlayout.c (gtk_text_layout_class_init):
13609 s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
13611 * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS):
13612 was spelled incorrectly
13613 (GTK_IS_TREE_MODEL_SIMPLE): ditto
13615 * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
13616 from gtk_tree_view_set_headers_active
13618 * gtk/gtktexttag.c:
13619 (gtk_text_tag_get_property): handle PROP_DIRECTION
13620 (gtk_text_tag_set_property): g_object_notify when we toggle the _set
13621 properties, bug 40235
13623 * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
13624 forward_to_line_end
13626 Fri Jan 5 16:16:29 2001 Owen Taylor <otaylor@redhat.com>
13628 * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
13629 modules/input/gtkimcontextxim.c: Adapt to new prototypes
13630 for unicode,locale,filename conversion functions.
13632 2001-01-05 Havoc Pennington <hp@redhat.com>
13634 * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
13635 broken if called on the first position in the buffer.
13637 * gtk/gtktextlayout.c (line_display_index_to_iter): fix
13638 forward_to_delimiters to be called only if we aren't already at
13641 2001-01-05 Havoc Pennington <hp@redhat.com>
13643 * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
13645 2001-01-05 Alexander Larsson <alexl@redhat.com>
13647 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
13648 colormap in here. Sync from X port.
13649 (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
13651 (gdk_fb_clip_region): Comment out g_warning about empty clip region.
13652 This happens now and then, and i don't think it is a bug.
13653 (gdk_fb_draw_polygon): Correctly add extra point if startpoint
13655 (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
13658 * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
13659 some of the fields filled in at least.
13661 * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
13662 miLineArcD is no more, remove it from the function definition.
13664 2001-01-04 Havoc Pennington <hp@redhat.com>
13666 * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
13669 * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
13670 user_data instead of tree_node
13672 * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
13673 TREE_VIEW_COLUMN_SIZE
13675 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
13676 "size" field to "width" finishes bug 40061
13678 * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
13679 for bitfields, bug 40268
13681 2001-01-04 Havoc Pennington <hp@redhat.com>
13685 s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
13687 s/GtkModelSimple/GtkTreeModelSimple/g;
13688 s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
13689 s/gtk_model_simple/gtk_tree_model_simple/g;
13690 s/gtkmodelsimple/gtktreemodelsimple/g;
13692 s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
13694 s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
13695 s/column_set_col_type/column_set_sizing/g;
13697 s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
13698 s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
13700 s/GtkCellRendererType/GtkCellRendererState/g;
13702 * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
13703 (gtk_cell_renderer_toggle_class_init): change "state" property to
13704 "active", to match GtkToggleButton
13705 (gtk_cell_renderer_toggle_get_active): new function, bug
13707 (gtk_cell_renderer_toggle_set_active): new function
13708 (gtk_cell_renderer_toggle_set_property): route changes to toggle
13709 state through gtk_cell_renderer_set_active
13711 Thu Jan 4 15:46:18 2001 Jonathan Blandford <jrb@redhat.com>
13713 * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
13714 temporarily until they work again. Brought up to date with
13715 changes in the model.
13716 * gtk/gtkmodelsimple.h: Brought up to date with changes in the
13719 2001-01-04 Havoc Pennington <hp@redhat.com>
13721 * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
13722 equal to the line length, then position iterator before paragraph
13723 separators. Fixes crash reported by Mikael Hermansson when
13724 pressing left arrow from the start of a line.
13726 * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
13727 about byte indexes off the end
13728 (iter_set_from_char_offset): add g_error about char offsets
13731 2001-01-03 Havoc Pennington <hp@redhat.com>
13733 * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
13735 * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use
13736 of private functions; remove inclusion of private headers.
13738 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this
13739 function, so we don't need private functions in gtktextdisplay.c
13741 * gtk/gtktextiterprivate.h: underscore-ification
13743 * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
13744 to instead say "only useful to implement widgets"
13746 * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
13747 GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
13748 GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
13750 * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
13751 This function was completely broken
13753 * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
13755 * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
13757 * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
13759 * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
13761 * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
13763 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
13765 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
13768 * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
13771 * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
13772 Progress on bug 40103. Add draw_layout to draw a PangoLayout.
13773 (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
13774 which were not implemented.
13776 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
13777 insert_pixbuf signal. Rename delete_text to delete_range since it
13778 also deletes pixbufs and child anchors. This almost closes bug
13779 40245 (still need to deal with child anchors)
13781 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
13782 insert_pixbuf, change signal names as appropriate, change types of
13783 signals taking marks/tags to have the specific type, not just
13786 * gtk/gtkmain.c (gtk_get_current_event_state): Add this function;
13789 * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
13790 unnecessary remove_contents() call
13791 (gtk_option_menu_class_init): add a "changed" signal, closes
13793 (gtk_option_menu_update_contents): emit "changed" if the
13794 active menu item changes
13796 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
13797 cast to GtkObject, reported by Jonas Borgstrom
13798 (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
13799 we can't do stuff with side effects in finalize. Instead, spew a
13800 warning if the loader isn't closed.
13802 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
13803 colormap in here, non-X ports probably need to sync to this change
13805 * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove
13806 assertion that colormap != NULL, you can set the colormap to NULL
13809 * Makefile.am: remove gtk-config-2.0
13811 * configure.in: Use pkg-config to locate GLib. Remove
13812 separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
13813 and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
13814 Use pkg-config to locate Pango. Output correct Pango libs to
13815 gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
13817 * Makefile.am (pkgconfig_DATA): install only target-specific pc
13819 (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
13822 * gtk+-2.0.pc.in (Requires): require the GDK for the current target
13825 2001-01-03 Alexander Larsson <alla@lysator.liu.se>
13828 Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
13830 Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
13832 * gtk/gtktextlayout.c
13833 (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
13834 variable when moving back onto a single line.
13836 2001-01-01 Havoc Pennington <hp@redhat.com>
13838 * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13840 * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13842 * configure.in (LIBTOOL_EXPORT_OPTIONS): define
13843 LIBTOOL_EXPORT_OPTIONS with options to control symbol export
13845 2001-01-01 Havoc Pennington <hp@redhat.com>
13847 * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
13849 * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for
13852 * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug
13854 (gtk_text_attributes_copy_values): rename from
13855 gtk_text_attributes_copy
13856 (gtk_text_attributes_copy): a more standard GTK copy function,
13857 which returns a new object
13859 2001-01-01 Havoc Pennington <hp@redhat.com>
13861 * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
13863 * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
13864 don't fill in tree_view->priv->selection, kind of an unexpected
13867 * gtk/gtkcellrenderertext.c: Remove definition of _ and include
13870 * gtk/gtkcellrenderer.c: Remove definition of _ and include
13872 (gtk_cell_renderer_get_property): remove calls to g_value_init
13874 * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
13877 * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
13878 and include gtkintl.h
13879 (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
13882 * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
13884 (_gtk_tree_selection_new_from_with_view): rename, return
13886 (_gtk_tree_selection_set_tree_view): rename with uscore
13887 (gtk_tree_selection_get_selected): fill in the "model" out param
13888 first, so it gets filled in even if we return at the top of the
13890 (gtk_tree_selection_real_select_all): add a comment and an else{}
13891 to clarify this a bit
13892 (gtk_tree_selection_real_unselect_all): add the same else{}
13894 * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
13895 set_tree_view to have underscore prefixes, move them to the
13896 private header, fix return type of new_with_tree_view
13897 (struct _GtkTreeSelection): mark struct
13900 * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
13901 GtkTreeModelFlags, not a guint
13902 (gtk_tree_path_prev): return gboolean not gint
13903 (gtk_tree_path_up): return gboolean not gint
13905 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
13906 return GtkTreeModelFlags, not a guint
13908 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
13909 that child model is non-null before unrefing it
13910 (g_value_int_compare_func): make this a qsort compare func, not
13911 a boolean predicate
13913 * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
13914 (add -umn to the end), and mark it unimplemented
13915 (gtk_tree_model_sort_resort): remove, this wasn't implemented, and
13916 I don't see what it's for - doesn't the model always sort itself?
13917 (gtk_tree_model_sort_set_compare): this had the wrong signature
13919 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
13920 Fix the docs to say that it destructively replaces existing
13921 attributes (previously said that it added attributes).
13922 (gtk_tree_view_column_set_visible): canonicalize bool before
13923 equality testing. Also, check for realization before
13924 hiding/showing the tree_column->window; if this window could exist
13925 before realization, then it's busted and needs fixing, we can't
13926 create GDK resources pre-realization. Also, remove
13927 superfluous queue_resize(), since set_size() does that for us.
13928 (gtk_tree_view_column_set_col_type): check realization before
13929 using tree_column->window
13931 * gtk/gtktreedatalist.c: fix filename in copyright notice
13933 2000-12-31 Havoc Pennington <hp@pobox.com>
13935 * gtk/gtktextview.c: Rearrange all the
13936 scroll-while-dragging-or-selecting code to be different, not
13937 necessarily better. ;-)
13938 (gtk_text_view_scroll_to_mark): Change this
13939 function to take within_margin as a fraction instead of a pixel
13940 value, and to take alignment arguments (indicating where to align
13941 the mark inside the visible area)
13943 * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
13946 * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
13947 behavior so that offsets past the end of the line are not
13948 allowed, and an offset equal to the line length moves the iterator
13950 (gtk_text_iter_set_line_index): make parallel change
13951 (gtk_text_iter_get_bytes_in_line): add this function
13953 * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
13954 of byte indexes off the end of the line; byte index at the end of
13955 the line now returns FALSE and doesn't fill in the requested
13956 values, byte index past the end of the line is an error. Also,
13957 don't allow -1 offset anymore, since its meaning is unclear.
13959 This change exposes some bug in visual cursor motion, where we
13960 end up with a huge invalid byte index; needs fixing. Symptom of
13961 bug is a crash when you hit up arrow.
13963 (_gtk_text_line_char_locate): match the change to byte_locate
13965 * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
13966 from start of line properly. fixes bug reported by Mikael
13967 Hermansson where backspace would delete all text before the
13970 2000-12-30 Tor Lillqvist <tml@iki.fi>
13972 * gdk/win32/gdkwindow-win32.c
13973 (gdk_window_impl_win32_get_visible_region): New function, as in
13975 (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
13976 instead of duplicating the same code here.
13978 * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
13979 GDK_COLORMAP macro.
13981 * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
13983 (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
13986 * gtk/gtk.def: Update.
13988 * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
13990 2000-12-30 Havoc Pennington <hp@pobox.com>
13992 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
13993 colormap on input only windows, to avoid special cases all over
13994 the code for these windows.
13996 2000-12-26 Tor Lillqvist <tml@iki.fi>
13998 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
13999 we are on a palettized display ("PseudoColor" in X11), as the code
14000 for that doesn't work anyway, and never has.
14002 2000-12-22 Alexander Larsson <alexl@redhat.com>
14004 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
14005 Don't use isprint() for chars > 255.
14007 2000-12-21 Havoc Pennington <hp@redhat.com>
14009 * tests/testtreeview.c: more work
14011 2000-12-21 Alexander Larsson <alexl@redhat.com>
14013 * docs/README.linux-fb:
14014 Update the docs to the new pangoft2 way.
14016 2000-12-21 Alexander Larsson <alexl@redhat.com>
14019 For linux-fb get the pangoft2 cflags and libs. This needs a recent
14021 Remove modules/linux-fb/Makefile.
14023 * gdk/linux-fb/gdkdrawable-fb2.c:
14024 Render glyphs using freetype.
14026 * gdk/linux-fb/gdkfb.h:
14027 Add new fb-specific functions needed for managing windows.
14029 * gdk/linux-fb/gdkmain-fb.c:
14030 Remove gdk_font_init/fini() calls.
14032 * gdk/linux-fb/gdkpango-fb.c:
14033 Remove old implementation. Use pangoft2 instead.
14035 * gdk/linux-fb/gdkprivate-fb.h:
14036 Remove PangoFBFont and related stuff.
14038 * gdk/linux-fb/gdkwindow-fb.c:
14039 Implement drawable->get_visible_region.
14040 Implement support for _gdk_window_set_child_handler () and
14041 _gdk_window_get_decorations().
14043 * modules/Makefile.am:
14044 Remove linux-fb subdir.
14046 * modules/linux-fb/*:
14049 2000-12-20 Jonathan Blandford <jrb@redhat.com>
14051 * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
14052 calls, as they are no longer needed.
14054 * gtk/gtktreemodelsort.c: Fix up the comparison code.
14056 * gtk/gtktreemodel.h: Start work on ::reordered signal. Need to
14057 figure out how to emit a signal on an interface.
14059 2000-12-20 Havoc Pennington <hp@redhat.com>
14061 * tests: new directory to contain tests, gtk/test* should move
14062 here sometime (with appropriate on-cvs-server hackery)
14064 * tests/testtreeview.c, tests/Makefile.am: a test
14066 * configure.in (AC_OUTPUT): add tests/Makefile
14068 * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
14069 and "invisible_set" which were missing
14071 * gtk/gtkrbtree.h: some cheesy indentation fix
14073 2000-12-20 Alexander Larsson <alexl@redhat.com>
14075 * gtk/gtkinvisible.c (gtk_invisible_realize):
14076 Attach the style to the window so that the style it is not
14077 leaked when unrealizing the window.
14079 2000-12-18 Havoc Pennington <hp@redhat.com>
14081 * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
14082 begin/end user action where appropriate
14083 (gtk_text_view_commit_handler): add begin/end user action
14085 * gtk/gtktextbuffer.c: add begin/end user action signals, and
14086 bracket interactive operations with begin/end user action pair.
14088 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
14089 "interactive" arg from insert_text and delete_text signals.
14090 Add begin_user_action, end_user_action signals
14091 (gtk_text_buffer_begin_user_action):
14092 (gtk_text_buffer_end_user_action): New functions to delimit
14093 a user-visible action
14095 * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
14098 2000-12-18 Havoc Pennington <hp@redhat.com>
14100 * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
14101 was pretty non-working.
14103 * gtk/testtext.c (fill_file_buffer): make this a bit more robust
14104 by passing the length to g_utf8_validate().
14106 2000-12-16 Havoc Pennington <hp@pobox.com>
14108 * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c:
14109 Port to GObject, can go back in gdk-pixbuf after setting up
14110 a gdk-pixbuf-marshal.h header over there.
14112 * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
14113 (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
14115 (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
14117 (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
14118 here, do it when we create the buttons later
14119 (gtk_tree_view_realize_buttons): add some g_return_if_fail
14120 (gtk_tree_view_map): paranoia checks that column->button is shown
14122 (gtk_tree_view_size_request): only request visible children.
14123 Move header size calculation in here, for cleanliness, and
14124 to maintain invariants for child widgets if we eventually
14125 let users set different children inside the buttons
14126 (gtk_tree_view_map_buttons): factor out code to map buttons,
14127 since it was being called several times
14128 (gtk_tree_view_size_allocate_buttons): move_resize the drag
14129 windows instead of just moving them; their height may change
14130 if we allow random widgets in there, or the theme changes.
14131 (gtk_tree_view_size_allocate): move button size allocation
14132 above emitting the scroll signals, to ensure a sane state when we
14134 (gtk_tree_view_button_release): remove queue_resize after
14135 tree_view_set_size(), set_size() will handle any resize queuing
14137 (gtk_tree_view_focus_in): just queue a draw, don't fool with
14139 (gtk_tree_view_focus): use gtk_get_current_event() and
14140 gdk_event_get_state()
14141 (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
14142 (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
14144 (gtk_tree_view_create_button): show the button here
14145 (gtk_tree_view_button_clicked): actually emit the clicked signal
14147 (_gtk_tree_view_set_size): return right away if the size is
14148 unchanged, as a cheesy optimization
14149 (gtk_tree_view_setup_model): rename set_model_realized to
14150 setup_model to match the flag that indicates whether we've
14152 (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
14153 exist, because set_scroll_adjustment does that and it shouldn't
14154 matter what order you call these in
14155 (gtk_tree_view_get_vadjustment): ditto
14156 (gtk_tree_view_set_headers_visible): canonicalize the bool,
14158 (gtk_tree_view_set_headers_visible): call
14159 gtk_tree_view_map_buttons() instead of using cut-and-paste code
14160 (gtk_tree_view_append_column): clarify whether the return value
14161 is the count of columns before or after, and do the increment
14162 separately from the return statement so you can tell from the code.
14163 (gtk_tree_view_remove_column): ditto
14164 (gtk_tree_view_insert_column): ditto
14165 (gtk_tree_view_get_column): remove g_return_if_fail for columns
14166 outside the existing range, the docs say that outside-range
14167 columns are allowed, so we handle them as documented. (Presumably
14168 this allows a nice loop with column != NULL as test.)
14169 (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments
14170 mean (left/right/center etc.).
14171 (gtk_tree_view_collapse_all): only queue a draw if we're mapped
14172 (gtk_tree_view_expand_row): add docs
14173 (gtk_tree_view_collapse_row): add docs
14175 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
14176 function to emit the clicked signal on a column
14178 * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
14180 (gdk_event_get_time): don't treat GDK_SCROLL
14181 as a button event, remove default case from switch so gcc
14182 will whine if we don't explicitly handle all event types
14184 * gtk/gtktreeselection.h: added some FIXME
14186 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
14187 "columns" to "n_columns" and "column" to "columns" for clarity
14189 2000-12-16 Havoc Pennington <hp@pobox.com>
14191 * gtk/gtktextiter.c: General cleanup of the log attr iteration
14192 stuff. This should make e.g. the delete key work again in the
14194 (gtk_text_iter_forward_cursor_positions): handle negative count
14195 (gtk_text_iter_backward_cursor_positions): handle negative count
14196 (gtk_text_iter_forward_word_ends): handle negative count
14197 (gtk_text_iter_backward_word_starts): handle negative count
14199 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
14200 gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
14201 gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
14202 GObject. No doubt will cause breakage.
14204 * demos/gtk-demo/textview.c: remove hacks around
14205 non-GObject-ification of the text objects
14207 * demos/gtk-demo/main.c (main): use g_object_set() to manipulate
14210 2000-12-14 Havoc Pennington <hp@pobox.com>
14212 * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
14213 that we have Xrender
14215 Thu Dec 14 20:22:31 2000 Owen Taylor <otaylor@redhat.com>
14217 * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
14218 Add two virtualized functions gdk_drawable_get_clip_region - to
14219 get the clip region when drawing.
14221 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
14222 use invalidate_region.
14224 * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
14227 * acconfig.h configure.in: Check for Xft. For now, assume
14228 that if Xft is found, Pango was compiled with Xft support
14231 * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add
14232 gdk_colormap_query_color().
14234 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
14235 with Xft if appropriate.
14237 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
14238 a pangoxft context if we have XFT and the environment
14239 variable GD_USE_XFT is set.
14241 * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
14242 and also possibly an XftDraw structure.
14244 * gtk/gtkfontsel.c: Handle the case where the font from the
14245 style doesn't match any of the fonts a bit better.
14247 * gtk/testgtk.c: Add tabs between directional segments for
14248 hebrew/arabic test. (Not really necessary, just a little
14251 2000-12-14 Havoc Pennington <hp@redhat.com>
14253 * gtk/testtext.c (fill_file_buffer): fix unicode validation when
14256 2000-12-14 Havoc Pennington <hp@redhat.com>
14258 * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
14259 unused call to get_last_line()
14261 * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
14262 here until boxed is working (and maybe after that - we should
14263 really not gratuitously break old code)
14265 * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
14266 specific types for font_desc and tabs args, move them to
14267 GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
14268 fixed. Move GdkColor args to GTK_TYPE_POINTER also.
14270 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
14271 use GTK_TYPE_POINTER for signal signatures as a hack-around
14273 * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
14276 * gtk/gtktextlayout.c (line_display_iter_to_index):
14278 (line_display_index_to_iter): make static
14280 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14281 to marshal a string not a boxed
14283 * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
14285 * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
14286 since the UTF-8 isn't validated yet
14288 * gtk/gtktextsegment.c (char_segment_check_func): don't require
14289 lines to end in '\n'
14291 * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
14292 forward_to_delimiters, and grapheme boundaries
14293 (gtk_text_view_delete_from_cursor): properly handle non-newline
14294 delimiters, and grapheme boundaries
14296 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
14297 to gtk_text_iter_forward_to_delimiters, and make it work properly
14298 if empty lines end with a character other than '\n'
14300 * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
14303 2000-12-15 Tor Lillqvist <tml@iki.fi>
14305 * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
14308 * gdk/gdk.def: Update.
14310 * gdk/win32/gdkmain-win32.c
14311 * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
14312 gdkmain-win32.c here.
14314 * gdk/win32/makefile.mingw.in (all): No need to make
14315 gdk-win32res.o here, the makefile one step up will call us to make
14318 * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
14321 * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
14323 * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
14324 call to g_source_add().
14326 * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
14327 leak. Thanks to Andreas Kemnade.
14329 2000-12-13 Havoc Pennington <hp@pobox.com>
14331 * gtk/gtktextbtree.h: Remove double _ in front of some functions
14333 * gtk/gtktext*.[hc]: update accordingly
14335 2000-12-13 Havoc Pennington <hp@pobox.com>
14337 * gtk/gtktextbtree.h: Put _ in front of every function in this
14340 * gtk/gtktext*.[hc]: update to reflect renamed btree functions
14342 2000-12-13 Alex Larsson <alexl@redhat.com>
14344 * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
14345 Add support for ps2 intellimouse.
14347 * gdkkeyboard-fb.c:
14348 Move shift-F1 repaint handling to xlate handler only.
14350 * docs/README.linux-fb:
14352 Document the new refresh keys.
14354 Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
14356 * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
14358 * gtk/gtkbox.c: change property types from (u)long to (u)int for
14359 ::position and ::padding.
14361 * gtk/gtkcontainer.c: make ::border_width an INT property.
14363 * gtk/gtkpacker.c: make ::position an INT property.
14365 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
14366 guard against NULL h/v scrollbars, since this is used at construction
14369 * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
14370 internal gtk_clist_constructor().
14372 * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
14373 gtk_ctree_constructor().
14375 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
14376 ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
14378 * docs/reference/Makefile.am: fun stuff, disabled docs generation
14379 again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
14381 * gtk/gtkwidget.[hc]:
14382 removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
14383 and gtk_widget_get().
14384 (gtk_widget_new): use g_object_new_valist().
14385 (gtk_widget_set): use g_object_set_valist().
14387 * gtk/gtkobject.[hc]:
14388 removed gtk_object_arg_get_info(), gtk_object_getv(),
14389 gtk_object_query_args(), gtk_object_newv(),
14390 gtk_object_class_add_signals(),
14391 gtk_object_class_user_signal_new(),
14392 gtk_object_class_user_signal_newv(),
14393 gtk_object_arg_set(), gtk_object_arg_get(),
14394 gtk_object_args_collect(),
14395 gtk_object_default_construct(),
14396 gtk_object_constructed(),
14397 GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
14398 removed nsignals, signals and n_args members from GtkObjectClass.
14399 (gtk_object_new): use g_object_new_valist().
14400 (gtk_object_set): use g_object_set_valist().
14401 (gtk_object_get): use g_object_get_valist().
14403 * gtk/gtkcompat.h: define gtk_object_default_construct().
14405 * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
14408 * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
14409 fucntions, cleaned up method assignments (make sure your structures
14410 are setup properly before calling out). removed all GTK_CONSTRUCTED
14413 Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
14415 * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
14416 off-by-one error in checks. (Dave Lambert)
14418 2000-12-12 Alexander Larsson <alexl@redhat.com>
14420 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
14421 Don't free gdk_fb_keyboard twice.
14423 Tue Dec 12 08:24:42 2000 Tim Janik <timj@gtk.org>
14427 (create_statusbar): get rid of object_signal:: GtkObject argument uses,
14428 use GObject swapped_signal:: properties instead.
14430 * gtk/gtkcellrenderertoggle.c:
14431 * gtk/gtkcellrenderertextpixbuf.c:
14432 * gtk/gtkcellrenderertext.c:
14433 * gtk/gtkcellrendererpixbuf.c:
14434 * gtk/gtkcellrenderer.c:
14435 * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
14436 missing warnings for invalid property ids, install properties
14437 with g_object_class_install_property() now.
14440 (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
14442 Wed Oct 25 14:17:43 2000 Owen Taylor <otaylor@redhat.com>
14444 * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
14445 to determine if a window is the focus widget within
14448 * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
14451 * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling
14452 of the case where the container CAN_FOCUS to here instead
14453 of having it in each individual move-the-focus place.
14455 * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
14456 focusing to be geometric in a much more obvious sense. Arrowing
14457 around is still non-intuitive because it isn't perfect and
14458 because entries, etc, grab the arrow keys, but it at least
14459 usually will do what you expect now.
14461 * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
14464 * gtk/gtknotebook.c: Change tabs to be a single item in
14465 the focus chain. Make movement of focus on tabs with arrow
14468 * gtk/gtknotebook.c (gtk_notebook_find_child): Add
14469 CHECK_FIND_CHILD macro to give informative error messages
14470 instead of silent returns.
14472 * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT
14473 flag since we handle GdkReturn on the tabs.
14475 * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
14476 windows rather than sending expose events directly.
14478 * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure
14479 definition for GtkNotebookPage into .c file, since it is private.
14481 * gtk/testgtk.c (create_notebook): Add option for
14482 testing borderless notebook.
14484 * gtk/testgtk.c (page_switch): Removed egregious poking
14485 around in GTK+ internals.
14487 * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
14489 * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
14490 properly through gtk_clist_focus. Make the title headers a
14491 single item in the tab-focus chain, and make left-right wrap
14494 * gtk/gtkwindow.c (gtk_window_focus): Add a custom
14495 focus method so that wrapping around works properly.
14497 * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() -
14498 that is handled for the widget now.
14500 Mon Dec 11 11:41:12 2000 Owen Taylor <otaylor@redhat.com>
14502 * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
14503 widgets as TOPLEVEL.
14505 * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
14506 TOPLEVEL widgets are containers.
14508 * gtk/gtkinvisible.h: Remove useless include.
14510 2000-12-11 Havoc Pennington <hp@redhat.com>
14512 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
14513 Handle chopping off \r\n and 0x2029 in addition to \n before
14514 passing to PangoLayout
14516 * gtk/gtkimcontextsimple.c
14517 (gtk_im_context_simple_get_preedit_string):
14518 return an empty string if no match is pending
14520 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
14521 assertion that the returned preedit string was sane
14523 * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
14524 s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
14525 s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
14527 Mon Dec 11 10:02:26 2000 Owen Taylor <otaylor@redhat.com>
14529 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize):
14530 Fix up finalizer to chain to its parent.
14532 2000-12-11 Alexander Larsson <alexl@redhat.com>
14534 * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
14535 Clearified the difference between the keyboard types. Wrote a note
14536 about the magic sysrq key to get out of raw mode.
14538 2000-12-09 James Henstridge <james@daa.com.au>
14540 * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
14541 member to hold masks for detecting the start of a protocol packet.
14542 (mouse_devs): add packet start masks for ps2 and ms device types.
14543 Left the mask for fidmour blank, as I have no idea what it should
14545 (handle_mouse_io): skip bytes until we get to the start of a
14546 packet. My Logitech mouse seems to be passing an extra NULL pad
14547 byte, and GPM does a similar thing here.
14548 (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
14549 this is the ms mouse driver.
14550 (gdk_fb_mouse_ms_packet): fix up button handling, which was
14551 completely broken except for button1. It was checking the wrong
14552 bit in the packet for the status of the right mouse button, and
14553 wrongly assuming right == button2 rather than 3. I fixed that and
14554 also added support for middle button (button2).
14556 2000-12-08 Havoc Pennington <hp@redhat.com>
14558 * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
14559 that cause a segfault on text insertion
14561 * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix
14564 * gtk/gtktextiter.c (test_log_attrs): use
14565 _gtk_text_buffer_get_line_log_attrs to speed things up a bit
14567 * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs):
14568 Get log attrs for a line, using a cache stored on the buffer
14570 * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
14571 reported by Jeff Franks
14573 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14575 * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
14576 /dev/ttyS0 -> /dev/mouse
14578 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14580 * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
14581 Added dummy gdk_fontset_load.
14583 2000-12-08 Alexander Larsson <alexl@redhat.com>
14585 * docs/README.linux-fb:
14586 * docs/Makefile.am:
14587 Initial GtkFB docs.
14589 * gdk/linux-fb/Makefile.am:
14590 Define GDK_DATA_PREFIX.
14592 * gdk/linux-fb/gdkmain-fb.c:
14594 Change default display to /dev/fb0.
14596 * gdk/linux-fb/gdkpango-fb.c:
14597 Add $(prefix)/share/fonts/ to font path.
14599 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14601 * gdk/linux-fb/gdkkeyboard-fb.c:
14602 New file containing the abstracted keyboard driver. Most code
14603 taken from gdkinput-ps2.c
14605 * gdk/linux-fb/gdkinput-ps2.c:
14608 * gdk/linux-fb/Makefile.am:
14609 Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
14611 * gdk/linux-fb/gdkcolor-fb.c:
14612 display->fb was renamed to display->fb_fd.
14614 * gdk/linux-fb/gdkcursor-fb.c:
14615 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14617 * gdk/linux-fb/gdkinput.c:
14618 Moved gdk_input_init here from gdkinput-ps2.c
14620 * gdk/linux-fb/gdkmain-fb.c:
14621 display->fb was renamed to display->fb_fd.
14622 Now the tty and the console is opened here instead
14623 of in the keyboard driver. Also check GDK_VT to see what
14625 Move gdk_beep () here from gdkinput-ps2.c
14626 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14628 * gdk/linux-fb/gdkmouse-fb.c:
14630 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14631 Return correct keyboard modifiers.
14632 GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
14634 * gdk/linux-fb/gdkprivate-fb.h:
14635 Add tty and vt info to display.
14636 Add orignal modeinfo storage to display
14637 Update global functions
14639 * gdk/linux-fb/gdkwindow-fb.c:
14640 Added gdk_fb_window_find_focus().
14641 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14643 2000-12-07 Havoc Pennington <hp@pobox.com>
14645 * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of
14646 function, noticed by Alex
14648 2000-12-06 Elliot Lee <sopwith@redhat.com>
14650 * configure.in: Detect freetype properly
14652 * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
14655 2000-12-06 Alexander Larsson <alexl@redhat.com>
14657 * gdk/linux-fb/Makefile.am:
14660 * gdk/linux-fb/gdkmouse-fb.c:
14661 New file. Abstracted the mouse drivers a bit.
14663 * gdk/linux-fb/gdkcursor-fb.c:
14664 The cursor hide/show functions was moved here from gdkinput-ps2.c.
14666 * gdk/linux-fb/gdkinput-ps2.c:
14667 Removed old mouse handling code. Moved cursor handling code
14668 to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
14669 gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
14670 gdk_mouse_get_info.
14672 * gdk/linux-fb/gdkmain-fb.c:
14673 Pass NULL pointers for x,y in gdk_mouse_get_info call.
14675 * gdk/linux-fb/gdkprivate-fb.h:
14676 Removed public gdk_fb_find_common_ancestor, added and renamed
14677 functions for the new mouse handling code.
14679 * gdk/linux-fb/gdkwindow-fb.c:
14680 Moved gdk_fb_window_send_crossing_events here. added global
14681 variable gdk_fb_window_containing_pointer. made
14682 gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
14683 renamed to gdk_mouse_get_info.
14685 2000-12-06 Alexander Larsson <alexl@redhat.com>
14687 * gdk/linux-fb/gdkevents-fb.c:
14688 Update to match latest gmain/gsource changes.
14690 * gdk/linux-fb/gdkinput-ps2.c:
14691 Bogus gdk_keymap_get_entries_for_keycode implementation so that
14692 it links. Will be implemented later.
14694 2000-12-03 Havoc Pennington <hp@pobox.com>
14696 * gdk/Makefile.am: add gdkkeys.[hc]
14698 * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
14699 files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
14701 * acconfig.h, configure.in: add checks and command line options
14704 * gdk/x11/gdkkeys-x11.c: Implement the above functions
14706 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
14707 and group in the key event
14709 * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
14710 field with the low-level hardware key code, and a group
14711 field with the keyboard group
14713 * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
14714 and declare a couple globals used for keymap handling
14716 * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
14717 hold down Shift-Control and type a hex number to get a Unicode
14718 character corresponding to the hex number
14719 (gtk_im_context_simple_get_preedit_string): Fix cursor position
14720 (return bytes not chars)
14722 2000-12-05 Elliot Lee <sopwith@redhat.com>
14724 * gdk/gdkcolor.h: Make GdkColor specify element sizes
14725 to avoid waste on 64-bit platforms.
14727 Tue Dec 5 15:49:31 2000 Owen Taylor <otaylor@redhat.com>
14729 * INSTALL: Fix link to PNG home, remove reference
14732 * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
14734 * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
14737 * gtk/gtkcheckmenuitem.c: Permanently turn on
14738 always_show_toggle.
14740 * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to
14741 be NULL. (Vladimir Klebanov, #26545)
14743 * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
14744 some signed/unsigned comparison problems. (#6510,
14747 * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
14748 return type to boolean (Oskar Liljeblad, #18648)
14750 2000-12-05 Alexander Larsson <alexl@redhat.com>
14752 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
14753 Remove bogus colormap setting.
14755 2000-12-05 Alexander Larsson <alexl@redhat.com>
14757 * gdk/linux-fb/gdkcolor-fb.c:
14758 More complete colormap handling. Now GdkRGB work in 8 bpp modes.
14760 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
14763 Tue Dec 5 13:17:53 GMT 2000 Tony Gale <gale@gtk.org>
14765 * docs/tutorial/gtk-tut.sgml: DND updates
14767 2000-12-05 Alexander Larsson <alla@lysator.liu.se>
14769 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14770 Remove old debug g_warning().
14771 (gdk_fb_draw_drawable): The src argument can be either a wrapper
14772 or an implementation, just pass the implementation to draw_drawable_2.
14774 * gdk/linux-fb/gdkprivate-fb.h:
14775 Added GDK_IS_DRAWABLE_IMPL_FBDATA()
14777 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14778 clear and invalidate area when window is destroyed.
14779 (send_map_events): Remove old commented out code.
14781 2000-12-05 Alexander Larsson <alexl@redhat.com>
14783 * gdk/linux-fb/gdkpango-fb.c:
14784 Use italic instead of oblique in font aliases.
14786 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
14787 _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
14788 other unsupported functions.
14790 2000-12-04 Havoc Pennington <hp@redhat.com>
14792 * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
14794 * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
14796 * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
14798 * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary
14799 hack to avoid infinite loops (synthetic expose event) -
14800 Owen has more appropriate fixes in a branch he'll check in later.
14802 * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
14803 separator, CR, and CRLF as line ends
14805 * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
14806 into lines using pango_find_paragraph_boundary(); other bits of
14807 the widget are still going to be broken if the boundary isn't '\n'
14810 2000-12-04 Alexander Larsson <alexl@redhat.com>
14812 * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
14815 * gdk/linux-fb/gdkpango-fb.c:
14816 Copied some 26.6 scaling macros from pango to clean up the rounding.
14817 (pango_fb_font_get_glyph_info): Correct sign on x value.
14819 * gdk/linux-fb/gdkprivate-fb.h:
14820 Removed unreferenced external functions.
14822 * modules/linux-fb/Makefile.am: Use ` instead of '.
14824 * modules/linux-fb/basic.c:
14825 Remove dead code. In particular the dummy lang engine which broke all
14826 pango layouts in GtkFB. Don't include tables-big.i anymore.
14828 * modules/linux-fb/tables-big.i:
14829 Upgrade to latest version from pango. Left for reference, basic_ranges
14832 2000-12-04 Havoc Pennington <hp@redhat.com>
14834 Fix bugs Alex found:
14836 * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
14839 * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
14841 * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
14843 * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw()
14844 implementation in here, apparently the expose() implementation was
14847 2000-12-04 Alexander Larsson <alexl@redhat.com>
14849 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14850 Return positive descent.
14852 2000-12-02 Havoc Pennington <hp@pobox.com>
14854 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
14857 * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
14858 calls gdk_window_process_updates() to push the exposes through
14859 (gtk_widget_class_init): No more draw signal, no
14860 gtk_widget_real_draw()
14862 * gtk/gtkbin.c (gtk_bin_draw): remove
14864 * gtk/gtkbox.c (gtk_box_draw): remove
14866 * gtk/gtkbutton.c (gtk_button_draw): remove
14868 * gtk/gtkcalendar.c (gtk_calendar_draw): remove
14870 * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
14872 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
14874 * gtk/gtkclist.c (gtk_clist_draw): remove
14876 * gtk/gtkentry.c (gtk_entry_draw): remove
14878 * gtk/gtkeventbox.c (gtk_event_box_draw): remove
14880 * gtk/gtkfixed.c (gtk_fixed_draw): remove
14882 * gtk/gtkframe.c (gtk_frame_draw): remove
14884 * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
14886 * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
14888 * gtk/gtklayout.c (gtk_layout_draw): remove
14890 * gtk/gtklist.c (gtk_list_draw): remove
14892 * gtk/gtklistitem.c (gtk_list_item_draw): remove
14894 * gtk/gtkmenu.c (gtk_menu_draw): remove
14896 * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
14898 * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
14900 * gtk/gtknotebook.c (gtk_notebook_draw): remove
14902 * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
14904 * gtk/gtkpacker.c (gtk_packer_draw): remove
14906 * gtk/gtkrange.c (gtk_range_draw): remove
14908 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
14910 * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
14912 * gtk/gtktable.c (gtk_table_draw): remove
14914 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
14916 * gtk/gtktext.c (gtk_text_draw): remove
14918 * gtk/gtktextview.c (gtk_text_view_draw): remove
14920 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
14922 * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
14924 * gtk/gtktree.c (gtk_tree_draw): remove
14926 * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
14928 * gtk/gtktreeview.c (gtk_tree_view_draw): remove
14930 * gtk/gtkviewport.c (gtk_viewport_draw): remove
14932 * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
14934 * gtk/gtkvscale.c (gtk_vscale_draw): remove
14936 * gtk/gtkwindow.c (gtk_window_draw): remove
14938 2000-20-01 Anders Carlsson <andersca@gnu.org>
14940 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
14941 a GtkToggleButton is both insensitive and active, it was being
14942 drawn by the GtkButton draw handler which doesn't check the
14943 state. Now it's calling gtk_toggle_button_paint instead.
14945 2000-12-01 Havoc Pennington <hp@redhat.com>
14947 * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
14948 dangling pointers to the appearance attributes from the
14951 * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
14952 width/height to mean "full width/height of drawable"
14954 * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
14955 click to select word/line
14957 * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
14958 when getting log attrs. Get a slice, so that pixmaps and stuff
14959 are properly handled.
14961 * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
14962 paste into the selection (replaces selection now, previously
14963 crashed or added to selection). Reveals longstanding btree bug -
14964 select multiple lines, middle-click on the selection, boom. This
14965 isn't related to my changes though.
14967 * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
14968 PangoLogAttrs changes
14969 (gtk_entry_move_backward_word): ditto
14971 * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
14972 functions return bool whether the iter moved onto a
14973 dereferenceable position.
14975 * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
14976 functions for motion in terms of display lines.
14978 * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
14979 get the buffer a mark is inside
14981 2000-12-01 Alexander Larsson <alexl@redhat.com>
14983 * gdk/linux-fb/Makefile.am:
14984 * modules/linux-fb/Makefile.am:
14985 Freetype 2 final uses freetype-config
14987 * gdk/linux-fb/gdkpango-fb.c:
14988 Upgrade to use Freetype 2 final.
14989 More flexible support for font aliases, this also fixes a bug with
14990 GtkFontSelector, as the aliases must be visible in the font/family list,
14991 or GtkFontSelector reads uninitialized memory.
14993 2000-11-30 Hidetoshi Tajima <tajima@eng.sun.com>
14995 * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
14996 XGetIMValues to properly terminate variable argument list, and do
14997 NULL return check for ic_values and xim_styles.
14999 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
15000 Restore preedit state after XmbResetIC().
15002 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
15003 XvaCreateNestedList() should take XvaNestedList, but not
15006 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
15007 preedit_draw_callback, preedit_caret_callback): Match
15008 "preedit-changed" signal name to "preedit_changed" to be
15009 consistent to the spec.
15011 * gtk/gtkimcontextsimple.c (check_table):
15012 Match "preedit-changed" to "preedit_changed" to be consistent
15015 Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
15017 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
15018 gc->clip_region == NULL>
15020 2000-11-30 Tor Lillqvist <tml@iki.fi>
15022 Changes by Hans Breuer:
15024 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
15025 Dont't use negative width and height as max_hints. This fixes
15026 Owen's recent testgtk changes for win32.
15028 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
15029 gdk_win32_hdc_release): These are exported and may be called with
15030 other drawable types than our GdkDrawableImplWin32 (?).
15032 * gdk/gdkwindow.c: Backing store appears to work on Windows now,
15033 so always #define USE_BACKING_STORE.
15035 * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
15036 of printf for debugging output.
15038 * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
15040 * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
15042 * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
15045 * gtk/gtktexttypes.h: Ditto.
15047 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
15048 (GDK_VoidSymbol) also if in case of arg check failure.
15050 * gtk/gtkimcontextsimple.c
15051 (gtk_im_context_simple_get_preedit_string): Don't assign cursor
15052 position to the pointer, but to the variable it points to.
15054 * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
15056 * gtk/gtk.def: Updates.
15058 2000-11-29 Elliot Lee <sopwith@redhat.com>
15060 * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
15061 GTK_TYPE_TREE_MODEL.
15063 2000-11-29 Alexander Larsson <alexl@redhat.com>
15065 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
15066 Set the size of the font from the description.
15067 (gdk_text_width): Gross hack that calculates the width
15068 of text by text_length * size/2. This is necessary because
15069 GtkLabel does some ugly gtk_string_width call to calculate
15071 (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
15073 Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
15075 * docs/tutorial/gtk-tut.sgml: DND updates
15077 2000-11-29 Alexander Larsson <alexl@redhat.com>
15079 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
15080 If you pass width or height == 0 to gdk_window_clear_area they
15081 should be calculated from the window size.
15083 2000-11-29 Alexander Larsson <alexl@redhat.com>
15085 * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
15086 a grab, but no grab-cursor, use the cursor from the grabbed
15087 window. (gdk_fb_window_send_crossing_events): Send normal
15088 enter/leave notifications if grab and owner_events == TRUE.
15090 2000-11-29 Alexander Larsson <alexl@redhat.com>
15092 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15093 Do implicit button grabs, even if the window doesn't
15095 (gdk_fb_window_send_crossing_events): If there is a
15096 grab, only the grabbed window gets normal enter/leave
15097 notifications. On ungrab go from grabbed window to current.
15098 Don't send any notification to b when propagating from c -> b.
15099 If setting a grab on window, don't set prev_window.
15100 (handle_mouse_input): Send enter/leave events to the window the
15101 mouse is over, not the grabbed one.
15103 2000-11-28 Elliot Lee <sopwith@redhat.com>
15105 * gdk/gdkregion-generic.c: Zap warning.
15106 * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
15107 * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
15109 2000-11-28 Alexander Larsson <alla@lysator.liu.se>
15111 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
15112 The cursor should be hidden if it is part of either the
15113 source or destination region. Not only if it is in both.
15114 (gdk_window_set_transient_for): Silence warnings.
15116 2000-11-28 Alexander Larsson <alexl@redhat.com>
15118 * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
15119 The default mode in X is Pie Arcs, therefore that is
15122 2000-11-28 Alexander Larsson <alexl@redhat.com>
15124 * gdk/linux-fb/gdkinput-ps2.c:
15125 Implement correct EnterNotify/LeaveNotify:
15126 (gdk_fb_window_send_crossing_events): New function that sends
15127 all GdkCrossingEvents from the last mouse-window to the specified
15129 (gdk_fb_window_visibility_crossing): Removed function.
15130 (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
15131 (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
15132 instead of gdk_window_get_pointer() for better readability.
15134 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
15135 gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
15137 * gdk/linux-fb/gdkprivate-fb.h:
15138 removed gdk_fb_window_visibility_crossing, added
15139 gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
15141 gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
15142 New function that finds the least common ancestor of two windows.
15143 (gdk_window_show, gdk_window_hide):
15144 Use gdk_fb_window_send_crossing_events.
15145 (gdk_fb_window_move_resize): Send configure events to toplevel
15146 windows. Use gdk_fb_window_send_crossing_events.
15148 2000-11-27 Havoc Pennington <hp@redhat.com>
15150 * gtk/gtkprivate.h (enum): Remove a trailing comma
15152 2000-11-27 Federico Mena Quintero <federico@helixcode.com>
15154 * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
15155 the "changed" callback of the adjustment. We need to redraw the
15156 spin button's arrows when the adjustment's range changes.
15157 (adjustment_changed_cb): Draw the arrows.
15158 (gtk_spin_button_value_changed): Draw the arrows.
15160 2000-11-23 Alexander Larsson <alexl@redhat.com>
15162 * gdk/linux-fb/gdkselection-fb.c:
15163 Initial selection implementation.
15165 * gtk/gtkselection.c:
15166 if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
15167 requestor in gtk_selection_request.
15169 * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
15170 Added gdk_selection_property atom.
15172 * gdk/linux-fb/gdkprivate-fb.h:
15173 Export _gdk_selection_window_destroyed.
15174 Removed mask_off_x/y from GdkCursorPrivateFB.
15175 Removed hbearing, added top, left to PangoFBGlyphInfo.
15177 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15178 Call _gdk_selection_window_destroyed
15179 (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
15180 the root window has been created.
15181 (static_dx_hack, static_dy_hack, compare_draw_rects,
15182 gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
15183 in region. They are already sorted. Instead just traverse them in
15184 reverse if draw_direction < 0.
15186 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15187 Double-clicks must be sent after the normal button_press.
15188 (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
15190 * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
15191 Pass _gdk_fb_screen_gc instead of NULL.
15193 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
15194 Initialize gdk_selection_property.
15195 (gdk_event_make): Remove unused code.
15197 * gdk/linux-fb/gdkcursor-fb.c:
15198 Make the pixmap for the cursor the same size as the mask. Also remove
15199 the mask_off_x/y fields in GdkCursorPrivateFB and combine
15200 _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
15201 Now the whole cursor is visible.
15203 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15204 Fix bug where xdest+height instead of ydest+height was used
15205 to calculate if the source and dest overlapped. This fixes the
15206 redraw bug when the main window in testgtk was scrolled when
15207 partially covered by a tall window.
15208 Copy rectangles in region in order depending on draw_direction.
15209 Also moved the draw_direction flipping of start_y and end_y into
15210 the gc functions, as this might not be what all of them want.
15211 (gdk_fb_draw_lines): Support dashed lines.
15212 (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
15213 so that the text is positioned correctly (was 1 pixel high).
15215 gdk/linux-fb/gdkgc-fb.c:
15216 Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
15217 all lines were drawn a pixel to short. Also checked the default of
15218 the rest of the values, and they're the same as X now.
15220 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
15221 Clean up pixel positioning of the glyphs. Just use bgy->top and
15222 bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
15223 to all divisions to get correct rounding behaviour.
15225 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
15226 gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
15227 Moved start_y/end_y flip into draw_drawable implementations.
15228 Flip also x rendering when draw_direction < 0.
15229 Remove unneccesary multiply with draw_direction.
15231 Wed Nov 22 14:11:19 GMT 2000 Tony Gale <gale@gtk.org>
15233 * docs/tutorial/gtk-tut.sgml:
15234 - get rid of gtk_toggle_button_toggled FUD
15235 - start DND section - needs work - based on:
15236 http://wolfpack.twu.net/docs/gtkdnd/
15238 2000-11-22 Alexander Larsson <alexl@redhat.com>
15240 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15241 Correct calculation of font metrics. Now GtkEntrys have sane
15244 2000-11-22 Alexander Larsson <alexl@redhat.com>
15247 Add new type GdkSpan
15249 * docs/reference/gdk/gdk-sections.txt,
15250 docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
15252 Implement and document gdk_region_spans_intersect_foreach.
15254 * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
15255 Add new file gdkrender-fb.c which contains all core
15257 Add gdk_fb_fill_rectangle_generic (old rectangle code) and
15258 gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
15259 (optimized rectangle fillers).
15261 * gdk/linux-fb/gdkdrawable-fb2.c:
15262 Move all rendering code to gdkrender-fb.c.
15263 Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
15264 Use the new span intersection functions in gdk_fb_fill_spans.
15265 gdk_fb_draw_rectangle() clips filled rectangles and calls
15266 gc->fill_rectangle with the result.
15267 gdk_fb_fill_spans() gets extra argument "sorted".
15269 * gdk/linux-fb/gdkevents-fb.c:
15270 Remove unused includes and defines.
15271 New function gdk_fb_get_time() to get correct time for events.
15273 * gdk/linux-fb/gdkinput-ps2.c:
15274 Use gdk method of generating multiple-clicks (gdk_event_button_generate)
15275 Make sure to set the time of all events.
15277 * gdk/linux-fb/gdkmain-fb.c:
15278 Use gdk_fb_get_time ().
15280 * gdk/linux-fb/gdkprivate-fb.h:
15281 New virtual GC calls: fill_span & fill_rectangle.
15282 Export gdk_fb_get_time().
15283 gdk_fb_fill_spans() gets extra argument "sorted".
15285 * gdk/linux-fb/mi*.c:
15286 Use GdkSpan instead of GdkRectangle.
15287 Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
15288 from XFree 4 source)
15290 2000-11-22 <jrb@redhat.com>
15292 * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
15293 reversing the order in an if statement will do. Doing so managed
15294 to make the treemodelsort half work. Other half will follow after
15295 I get the insert function fully fixed.
15297 2000-11-21 Elliot Lee <sopwith@redhat.com>
15298 * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
15299 more than 2 bits. Besides, I need to implement an evil hack. :)
15301 Tue Nov 21 14:17:51 GMT 2000 Tony Gale <gale@gtk.org>
15303 * docs/tutorial/gtk-tut.sgml: minor corrections
15305 2000-11-20 Jonathan Blandford <jrb@redhat.com>
15306 * gtk/gtktreemodelsort.h: Add convertion functions to let you
15307 convert to and from relative path's and iters.
15309 * gtk/treestoretest.c: move to having a sorted/unsorted view. Start
15310 testing sorting functions a bit better. Currently broken -- will
15313 2000-11-20 Havoc Pennington <hp@redhat.com>
15315 * gtk/gtkwidget.c: Documented a bunch of functions in here
15316 (gtk_widget_realize): Warn if you try to realize
15317 a widget with no parent that isn't a toplevel
15318 (gtk_widget_intersect): return a gboolean
15320 2000-11-20 Havoc Pennington <hp@redhat.com>
15322 * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
15323 gtk/testtext.c: Semi-finish widget embedding. Need guffaw
15324 scrolling to be implemented in GDK to finish. Also, right now
15325 we just size_allocate all children on every layout change,
15326 which is pretty lame. Test commented out of testtext.c,
15327 until it works better.
15329 2000-11-20 Alexander Larsson <alla@lysator.liu.se>
15331 * gdk/linux-fb/gdkdrawable-fb2.c:
15332 Removed unused arguments from gdk_fb_drawable_get_pixel().
15334 * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
15335 Renamed fidur specific mouse packet data in MouseDevice to
15336 generic. Used it in ps2 mouse handling code to avoid blocking
15339 Sat Nov 18 18:00:17 2000 Jonathan Blandford <jrb@redhat.com>
15341 * demos/gtk-demo/main.c: Changed to have the list become
15342 non-italic when the demo window is destroyed through an external
15343 event (like a close button). Doing so found three bugs in the
15346 * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
15348 * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
15349 we actually set the cell.
15351 * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
15353 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
15354 free a leaked path. Thanks memprof.
15356 Sat Nov 18 11:58:17 2000 Owen Taylor <otaylor@redhat.com>
15358 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix
15359 off-by-one error when destroying allocated segments
15360 on failure. (Elliot)
15362 Sat Nov 18 11:45:09 2000 Owen Taylor <otaylor@redhat.com>
15364 * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
15365 memleaks found by Evan Martin.
15367 Fri Nov 17 20:14:20 2000 Owen Taylor <otaylor@redhat.com>
15371 * NEWS: Updates for 1.3.2
15373 2000-11-17 Tor Lillqvist <tml@iki.fi>
15375 * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
15376 but in general for window system specific events.
15379 * gtk/makefile.mingw.in
15380 * gtk/makefile.msc.in: Update.
15382 * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
15384 Thu Nov 16 16:11:39 2000 Owen Taylor <otaylor@redhat.com>
15386 * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
15387 distribute gtk.immodules.
15389 * gtk/Makefile.am (install-data-local): Don't install the
15390 gtk.immodules file created for the uninstalled modules;
15391 instead run gtk-query-immodules after install
15393 Wed Nov 15 21:51:31 2000 Owen Taylor <otaylor@redhat.com>
15395 * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
15396 -rpath to the right install location.
15398 * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
15401 * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
15404 2000-11-15 Havoc Pennington <hp@pobox.com>
15406 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
15407 patch from Mikael Hermansson to temporarily stop blinking while
15408 the user is using the keyboard to type or navigate.
15410 Also, when blinking, stay on for longer than we stay off. Also,
15411 return from start_cursor_blink if !cursor_visible, to save
15412 checking that flag all over the place before we call
15413 start_cursor_blink.
15415 Thu Nov 16 01:25:51 2000 Robert Brady <robert@suse.co.uk>
15417 * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
15418 only contain a "fontset" line, which is now ignored.
15420 * gtk/gtkentry.c (gtk_entry_button_release): Make
15421 double-click-to-select-word work.
15423 Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
15425 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
15426 Don't move back one char when we are actually at the end of the
15429 2000-11-15 Robert Brady <robert@suse.co.uk>
15431 * modules/input/iminuktitut.c (inuktitut_compose_seqs):
15434 * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
15435 bind_textdomain_codeset.
15437 (gtk_init_check): Make the warning about translating default:LTR
15440 Wed Nov 15 18:39:40 2000 Owen Taylor <otaylor@redhat.com>
15442 * **/Makefile.am : remove unecessary rules for win32-specific
15443 config-substituted targets. If you want these rules, use
15444 --enable-maintainer-mode (called automatically by autogen.sh).
15445 Stops a lot of unneccessary make-time warnings.
15447 * gtk/gtktext{layout,display}.c: Factor in total width as
15448 well as screen when figuring alignment for word-wrap as well as
15449 no wrap; this is necessary to handle lines that cannot be wrapped
15452 2000-11-15 Havoc Pennington <hp@redhat.com>
15454 * gtk/testtext.c: Implement essential color cycling feature
15456 2000-11-15 Havoc Pennington <hp@redhat.com>
15458 * gtk/gtktextview.c (changed_handler): Invalidate the side windows
15459 when we invalidate the main window.
15461 * gtk/testtext.c (create_view): Get rid of text_changed_callback,
15462 GtkTextView will now invalidate the side windows for us when text
15465 Wed Nov 15 16:02:20 2000 Owen Taylor <otaylor@redhat.com>
15467 * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
15468 unconditionally, since we may need to update the horizontal
15469 scrollbars even if the height didn't change.
15471 * gtk/gtktextlayout.c (add_preedit_attrs): Always get
15472 the extra attrs, since some of them affect size.
15474 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
15475 x_offset correctly.
15477 2000-11-15 Havoc Pennington <hp@redhat.com>
15479 * gtk/gtktextlayout.c (set_para_values): If indent is negative,
15480 don't move the first line out into the margin, instead move the
15481 whole paragraph in order to make space for the first line within
15484 2000-11-15 Havoc Pennington <hp@redhat.com>
15486 * gtk/gtktextview.c (changed_handler): offset redraw rect by
15487 xoffset in addition to yoffset, so horizontal scrolling doesn't
15490 2000-11-15 Havoc Pennington <hp@redhat.com>
15492 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
15494 (render_layout_line): fix reversed test that caused weird
15495 underlines to get drawn
15497 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
15499 * gdk/linux-fb/gdkprivate-fb.h:
15502 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
15504 * gdk/linux-fb/gdkprivate-fb.h:
15505 Added virtual functions set_pixel, get_color,
15506 fill_span and draw_drawable to the GC.
15507 Added global _gdk_fb_screen_gc to use instead of
15508 NULL when drawing to the screen.
15509 Added _gdk_fb_gc_calc_state() prototype.
15511 * gdk/linux-fb/gdkgc-fb.c:
15512 Call _gdk_fb_gc_calc_state() on any gc state change.
15514 * gdk/linux-fb/gdkglobals-fb.c:
15515 Add _gdk_fb_screen_gc
15517 * gdk/linux-fb/gdkdrawable-fb2.c:
15518 _gdk_fb_gc_calc_state() calculates best functions
15519 for the GC state and depth.
15520 Moved bpp specialized code to separate functions.
15521 Added optimized 24 bpp AA draw_drawable.
15523 * gdk/linux-fb/gdkevents-fb.c:
15524 Silence gcc warning.
15526 * gdk/linux-fb/gdkimage-fb.c:
15527 Use _gdk_fb_screen_gc
15529 * gdk/linux-fb/gdkwindow-fb.c:
15530 Init and use _gdk_fb_screen_gc
15532 * gdk/linux-fb/mitypes.h:
15533 Remove unused types.
15535 2000-11-14 Havoc Pennington <hp@pobox.com>
15537 * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
15540 2000-11-14 Havoc Pennington <hp@pobox.com>
15542 * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
15544 * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
15545 unknown char, no real reason we were using a variable.
15546 Remove gtk_text_unknown_char variable. Fix all the text widget
15549 * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC,
15550 since the Unicode spec seems to prefer that character for our
15553 Wed Nov 15 02:18:01 2000 Robert Brady <robert@suse.co.uk>
15555 * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return
15556 value of g_getenv() isn't freeable, so g_strdup it.
15558 * modules/input/inuktitut.c: Inuktitut input method.
15560 * modules/input/Makefile.am: Build this.
15562 2000-11-14 Elliot Lee <sopwith@redhat.com>
15564 * gtk/Makefile.am: Install gtk.immodules, needed for operation
15567 Tue Nov 14 20:13:06 2000 Owen Taylor <otaylor@redhat.com>
15569 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
15570 reversed > that was causing Home to go to end of previous line.
15572 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
15573 modified-keypresses (leave for bindings.)
15575 * modules/input/Makefile.am: Remove useless -export-dynamic
15576 from module LDFLAGS.
15578 2000-11-14 Havoc Pennington <hp@redhat.com>
15580 * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
15583 * gtk/gtktextdisplay.c (render_layout_line): Take rise into
15584 account. Also, render rise, underline, background, etc. for
15585 pixbufs as well as text. Also, draw underlines one pixel higher.
15587 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
15588 PangoAttribute for the rise, so it gets drawn properly. Also,
15589 add the GtkTextAppearance attribute for pixbuf/widget segments
15590 as well; we should go ahead and have rise, underline, background,
15591 stipple work for those
15593 * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
15596 2000-11-15 Tor Lillqvist <tml@iki.fi>
15598 * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
15600 * gtk/gtk.def: Update.
15602 * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
15604 (gtk_rc_get_im_module_file): Use run-time installation directory
15607 * gdk/win32/rc/gdk.rc: Remove.
15608 * gdk/win32/rc/gdk.rc.in: New file.
15609 * gdk/win32/rc/Makefile.am: New file
15610 * gdk/win32/Makefile.am: Corresponding changes.
15612 * gtk/gtk.rc: Remove.
15613 * gtk/gtk-win32.rc.in: New file.
15614 * gtk/Makefile.am: Corresponding changes.
15616 * configure.in: Corresponding changes.
15618 * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
15619 has a built gtkcompat.h. Developers using CVS code on Win32 can
15620 hand-edit it from gtkcompat.h.in.
15622 * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
15623 gtkcompat.h from gtkcompat.h.win32.
15625 2000-11-14 Havoc Pennington <hp@redhat.com>
15627 * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
15628 to default to GDK_ACTION_MOVE if the drag is within a single
15629 widget. Defaults to GDK_ACTION_COPY between widgets.
15631 Mon Nov 13 14:43:48 2000 Owen Taylor <otaylor@redhat.com>
15633 * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
15635 * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
15637 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
15640 * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
15642 * configure.in (GTK_VERSION): Up to 1.3.2
15644 * modules/input/Makefile.am (im_xim_la_SOURCES): Add
15647 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
15648 missing doc comment.
15650 2000-11-14 Alexander Larsson <alexl@redhat.com>
15652 * modules/linux-fb/basic.c:
15653 Use the glib iconv wrappers.
15655 2000-11-13 Havoc Pennington <hp@pobox.com>
15657 * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
15660 * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
15661 scroll the GdkWindows before realization.
15663 2000-11-13 Havoc Pennington <hp@redhat.com>
15665 * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
15666 where GC didn't always get updated properly
15668 * demos/gtk-demo/textview.c (create_tags): Use subattributes
15669 of fonts instead of setting the entire font
15671 * gtk/testtext.c (fill_example_buffer): Use "size" instead of
15672 setting entire font
15674 * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
15676 * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
15677 a bunch of individually-settable font attributes. You can still
15678 use the "font" and "font_desc" args, they just set all the font
15679 attributes at once.
15681 2000-11-13 Elliot Lee <sopwith@redhat.com>
15683 * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
15685 Mon Nov 13 14:29:32 2000 Jonathan Blandford <jrb@redhat.com>
15687 * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
15688 * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
15690 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
15693 2000-11-13 Havoc Pennington <hp@redhat.com>
15695 * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of
15698 * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
15701 * gtk/testtext.c: Test pixels above/below/inside paragraphs
15704 * gtk/gtktextview.c: Implement object args and setters/getters for
15705 all the aspects of the GtkTextAttributes that are not set from
15706 GtkWidget attributes. This is spacing, justification, margins,
15709 (gtk_text_view_set_arg)
15710 (gtk_text_view_get_arg): implement get/set for editable, wrap mode
15712 (gtk_text_view_class_init): Add args for justify, left_margin,
15713 right_margin, indent, and tabs
15716 * gtk/gtktextlayout.c (set_para_values): fix to display indent
15719 * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute,
15720 replace with indent attribute
15722 * gtk/gtktextlayout.c (set_para_values): multiply indent by
15725 * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
15726 rearranging code to do that
15727 (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
15728 i.e. don't subtract the top_margin first, just to keep
15729 all margin-futzing in one place.
15731 * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
15733 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
15734 special case of last line, Pango now handles this itself.
15735 (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the
15737 (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
15738 (find_display_line_above): wasn't moving the byte index as it
15739 iterated over lines, so always returned byte 0. Also, port to use
15741 (find_display_line_below): same problem as
15742 find_display_line_above. Also, port to use PangoLayoutIter.
15744 2000-11-13 Alexander Larsson <alexl@redhat.com>
15746 * gdk/linux-fb/*.[ch]:
15747 Massive reindent to gtk+ standard. My hands hurt.
15749 * gdk/linux-fb/gdkcolor-fb.c:
15750 Move GdkColorPrivateFB from inherited to windowing_data
15752 * gdk/linux-fb/gdkcursor-fb.c:
15753 _gdk_cursor_new_from_pixmap made static
15755 * gdk/linux-fb/gdkdnd-fb.c:
15756 GdkDragContextPrivate moved to windowing_data
15758 * gdk/linux-fb/gdkdrawable-fb2.c:
15759 Removed endian.h, use glib endianness macros instead
15760 Some cleanups in the usage of GDK_DRAWABLE_FBDATA
15761 and GDK_DRAWABLE_IMPL_FBDATA
15763 * gdk/linux-fb/gdkfont-fb.c:
15764 Add empty gdk_font_load(). Needed for linking of Gtk+.
15766 * gdk/linux-fb/gdkimage-fb.c:
15767 Removed endian.h, use glib endianness macros instead
15768 Moved GdkImagePrivateFB to windowing_data
15769 gdk_image_new_bitmap didn't always allocate enough
15772 * gdk/linux-fb/gdkinput-ps2.c:
15773 Added semi-working support for MS serial mice.
15775 * gdk/linux-fb/gdkprivate-fb.h:
15776 s/GdkWindowPrivate/GdkWindowObject/
15777 Removed GdkWindowPrivate typedef
15778 s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
15779 Removed GDK_DRAWABLE_P
15780 Move GdkColorPrivateFB from inherited to windowing_data
15781 Moved GdkImagePrivateFB to windowing_data
15783 * gdk/linux-fb/gdkvisual-fb.c:
15784 Removed some unused debug code.
15786 * gdk/linux-fb/gdkwindow-fb.c:
15787 Use stock cursors instead of including X headers.
15788 s/GdkWindowPrivate/GdkWindowObject/
15790 * gdk/linux-fb/mitypes.h:
15791 Removed unused types.
15793 * modules/linux-fb/basic.c:
15794 Use the pango fribidi wrappers.
15796 2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
15798 * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
15799 gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
15800 gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
15801 gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
15802 GEqualFunc where applicable.
15804 * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
15805 pango_font_description_equal as changed in pango.
15807 * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
15809 * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
15811 * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
15813 * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
15815 * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
15817 * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
15819 * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
15820 gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
15822 * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
15823 gtk_rc_styles_compare -> gtk_rc_styles_equal.
15825 2000-11-12 Havoc Pennington <hp@pobox.com>
15827 * demos/gtk-demo/Makefile.am (democodedir): change demo install
15828 dir to datadir/gtk+-2.0/demo
15830 * demos/gtk-demo/textview.c: Text widget demo; reveals all
15831 sorts of text widget and Pango font bugs. Urgh.
15833 * demos/gtk-demo/Makefile.am (demos): Add textview.c
15835 * demos/gtk-demo/main.c (create_tree): Add instructions at top of
15836 tree that you should double click to see the demo. Fix
15837 types of variables to reflect changed return values from
15838 GtkTreeStore and GtkTreeViewColumn constructors.
15840 * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
15841 newly-created buffer to prepare for GObject semantics
15843 * gtk/testtext.c: don't leak the buffer with GObject semantics
15845 * gtk/testtextbuffer.c: ditto
15847 2000-11-12 Havoc Pennington <hp@pobox.com>
15849 Rename this testgtk to gtk-demo to avoid confusion, and
15850 install it so people can use it as a supplement to
15853 * demos/gtk-demo: Moved from demos/testgtk
15855 * demos/testgtk: Removed
15857 * configure.in: make Makefile in gtk-demo
15859 * demos/gtk-demo/Makefile.am: Install sample source to
15860 datadir/gtk-demo (maybe there's a better place?), and
15861 rename the binary to gtk-demo
15863 * demos/gtk-demo/main.c (load_file): Load installed sample
15864 source if source isn't found in pwd.
15866 2000-11-09 Havoc Pennington <hp@pobox.com>
15868 * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char"
15869 argument to set the char displayed when visibility == FALSE
15870 (gtk_entry_create_layout): If !entry->visible, replace
15871 all chars with the "invisible char"
15873 * gtk/testgtk.c: Test the invisible_char deal
15875 Mon Nov 13 02:16:33 2000 Robert Brady <robert@suse.co.uk>
15877 * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
15878 can't get a native font in the right encoding.
15880 Mon Nov 13 00:09:29 2000 Robert Brady <robert@suse.co.uk>
15882 * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
15885 Sun Nov 12 19:11:42 2000 Owen Taylor <otaylor@redhat.com>
15887 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
15888 Fix warning when moving between paragraphs.
15890 * gtk/gtkentry.[ch]: Change move => move_cursor,
15891 delete => delete_from_cursor, insert => insert_at_cursor
15893 Sun Nov 12 22:52:51 2000 Robert Brady <robert@suse.co.uk>
15895 * modules/input/imviqr.c: A vietnamese VIQR-based input method.
15897 * modules/input/imthai-broken.c: A Thai input method for use if
15898 Thai keys are really generating Latin1 keysyms.
15900 * modules/input/Makefile.am: Build these.
15902 Sun Nov 12 22:15:35 2000 Robert Brady <robert@suse.co.uk>
15904 * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
15905 g_filename_{to,from}_utf8 now takes an extra parameter.
15907 * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
15908 strftime into UTF-8.
15910 (column_from_x, gtk_calendar_paint_day_names): Support RTL
15913 (gtk_calendar_paint_day_names): Draw day names in the right
15916 Sun Nov 12 14:10:09 2000 Owen Taylor <otaylor@redhat.com>
15918 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
15919 problem with using result of g_get_charset() backwards -
15920 pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
15922 * gtk/gtkwindow.c (gtk_window_compute_hints): Support
15923 negative min_width/height and max_width/height to
15924 mean "requisition"; this allows setting a window
15925 to be user-resizable in only one direction easily.
15927 * gtk/testgtk.c (create_main_window): Remove hard-coded
15928 usize - set a default size in the vertical direction.
15930 Sun Nov 12 13:33:01 2000 Owen Taylor <otaylor@redhat.com>
15932 * gtk/gtkrange.c: Add some missing casts. Support
15933 2 and 3 button clicks on the arrows to mean
15934 "move by pages" and "jump to end". (Like gtkspinbutton)
15936 2000-11-12 Hans Breuer <Hans@Breuer.Org>
15938 * gdk/win32/makefile.msc : reflect build module changes
15940 * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
15941 from GdkPixmap*, cast implementation member instead.
15943 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
15944 passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src
15945 maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
15946 more Gdi functions return value checking.
15947 (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
15948 GdkImagePrivateWin32 *.
15950 * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
15951 menus useable again. Add #pragma message to keep reminded on this issue.
15952 (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
15953 windows. This allows to enable backing store on Win32!
15955 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
15956 in drawable is of impl type. Correct specific type checks appropriate.
15958 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check
15959 GDK_WINDOW_DESTROYED before allocating new resources.
15961 * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
15963 * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
15964 (gdk_window_foreign_new) initialize parent handle.
15965 (gdk_window_destroy_notify) add GDK_IS_WINDOW check
15967 * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
15968 Let the GDI invalidate the window on MoveWindow call to fix scrolling
15969 problems (e.g. main buttons in testgtk).
15971 Sat Nov 11 23:07:30 2000 Owen Taylor <otaylor@redhat.com>
15973 * gtk/gtkentry.c (gtk_entry_key_press): Call
15974 gtk_widget_activate for GDK_Return.
15976 * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
15977 of preedit cursor position.
15979 Sun Nov 5 04:24:53 2000 Owen Taylor <otaylor@redhat.com>
15981 * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
15984 Tue Sep 19 10:54:22 2000 Owen Taylor <otaylor@redhat.com>
15986 * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
15987 out support for multiple locales; that simple doesn't
15988 work reliably with current Xlib
15990 * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
15991 gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
15992 Add support for positioning the cursor within the preedit string.
15994 Mon Sep 18 23:56:32 2000 Owen Taylor <otaylor@redhat.com>
15996 * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
15997 at XIM input method module.
15999 * gtk/gtktextview.c: Check for bindings after passing
16000 events to im context filter.
16002 Mon Sep 18 11:50:51 2000 Owen Taylor <otaylor@redhat.com>
16004 * gtk/gtktextlayout.c (add_preedit_attrs): Handle
16005 empty attribute lists properly.
16007 Sun Sep 17 10:08:16 2000 Owen Taylor <otaylor@redhat.com>
16009 * gtk/queryimmodules.c (main): Return non-zero exit
16010 status if errors were encountered querying any
16013 * modules/input/Makefile.am (moduledir): remove
16014 leftover bin program target.
16016 * docs/make-todo: Fix typo in error message.
16018 Sat Sep 16 14:04:30 2000 Owen Taylor <otaylor@redhat.com>
16020 * configure.in: Add modules/input/Makefile
16022 Sat Sep 16 14:01:52 2000 Owen Taylor <otaylor@redhat.com>
16024 * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
16025 don't include gtkthemes.h.
16027 * gtk/testgtk.c gtk/testtext.c: Set environment variables
16030 * gtk/Makefile.am: Add new .c and .h files, build
16031 gtk-query-immodules and use it to create a gtk.immodules
16032 file for use of test programs.
16034 * gtk/gtkpreview.c: remove extra blank line.
16036 Sat Sep 16 13:21:04 2000 Owen Taylor <otaylor@redhat.com>
16038 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
16039 Add the ability to add extra tables beyond the default
16040 one, and also the ability to have compose sequences
16041 that are prefixes of other compose sequences.
16043 * gtk/gtkimcontextsimple.c: Export a preedit string which
16044 consists of possible candidates for keystrokes that have
16045 been entered but not yet committed.
16047 * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
16048 gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
16050 * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
16051 Add a function to add input-method switching menu items
16054 * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
16055 when switching input methods.
16057 * gtk/gtkimcontextsimple.[ch]: Change the format of
16058 the compose table to allow compose tables of different
16059 lengths / sequence.
16061 Sat Sep 16 13:05:48 2000 Owen Taylor <otaylor@redhat.com>
16063 * gtk/gtkimmodule.[ch]: Support routines for loading
16064 GtkIMContext implementations dynamically at runtime.
16066 * modules/input/imcyrillic-translit.c: A sample input
16067 method (based on GtkIMContextSimple with an extra table),
16068 which demonstrates preedit strings and the module
16069 system for input modules
16071 * gtk/queryimmodules.c: Program to query the available
16072 input modules and write the results into a file.
16074 * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
16075 extra config options "im_module_file" (cache file for
16076 input method modules), and "im_module_path" - path
16077 to look for modules when generating cache file.
16079 This doesn't scale.
16081 Sat Sep 16 13:09:06 2000 Owen Taylor <otaylor@redhat.com>
16083 * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
16084 generic code from gtkthemes into a new abstraction
16085 GtkModule which has the logic for implementing
16086 a loadable module which implements a number of
16089 Sat Sep 16 13:07:13 2000 Owen Taylor <otaylor@redhat.com>
16091 * gtk/gtkeditable.[ch]: Convert GtkEditable from
16092 a class into an interface
16094 * gtk/gtkoldeditable.[ch]: Move the old editable
16095 implementation into here, so legacy widgets can
16096 still rely on the implemenation. GtkOldEditable
16097 exports GtkEditable. Make selection handling
16098 code use new text conversion functions (and
16099 handle UTF-8 as a side-effect). Use GtkClipboard
16102 * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
16103 Adopt to match above changes.
16105 * gtk/gtkentry.[ch]: Implement GtkEditable directly,
16106 avoid GtkOldEditable implementation. Restructure
16107 to reduce number of places that modify state directly.
16108 Move to GtkBindingSet. Display the preedit string.
16109 Queue recomputation of PangoLayout and scroll position
16110 to improve effiency of doing complex changes naively.
16111 Add a menu with cut/copy/paste and input method selection.
16113 Thu Sep 14 22:11:05 2000 Owen Taylor <otaylor@redhat.com>
16115 * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
16116 to set preedit string and attributes; display preedit string by
16117 inserting string and attributes at cursor when creating the
16118 GtkTextLineDisplay.
16120 * gtk/gtktextlayout.c: Move all conversions between byte
16121 positions in PangoLayout and GtkTextIter into new functions
16122 line_display_iter_to_index/index_to_iter that properly
16123 handle the preedit string.
16125 * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
16126 it to return const char * (eventually will end up
16127 as GCONST char *, most likely.)
16129 * gtk/gtktextview.[ch]: Handle the preedit string, call
16130 gtk_im_context_reset() as necessary, add a menu to switch
16133 * gtk/gtktextlayout.[ch]: Remove useless
16134 gtk_text_layout_get_log_attrs() function.
16136 2000-11-11 Tor Lillqvist <tml@iki.fi>
16139 * gtk/gtk.def: Update.
16141 * gdk/win32/*.c: Add last argument to g_type_register_static()
16144 * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
16146 * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
16147 generated by older wheel mouse drivers. Get the correct y
16148 coordinate from WM_MOUSEWHEEL messages.
16150 * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
16151 gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
16152 gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
16153 Debugging functions.
16155 * gdk/win32/gdkprivate-win32.h: Declare them.
16157 * gdk/win32/gdkinput-win32.h: Add declaration for
16158 gdk_input_window_destroy().
16160 * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
16162 Fri Nov 10 19:06:41 2000 Jonathan Blandford <jrb@redhat.com>
16164 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
16165 function to help handle keeping things in sync.
16167 Fri Nov 10 12:10:34 2000 Jonathan Blandford <jrb@redhat.com>
16169 * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
16172 * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
16173 (gtk_list_store_class_init): use the new BOXED marshallers.
16175 * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
16176 new_with_values to new_with_types.
16177 (gtk_tree_store_get_column_type): add this.
16178 (gtk_tree_store_class_init): use the new BOXED marshallers.
16180 * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
16181 mirror some POINTER marshallers.
16183 Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com>
16185 * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
16186 allow more interesting iterators. Also, made the lifecycle of
16187 iterators more explicit.
16189 * gtk/gtktreemodelsort.[ch]: New model for sorting.
16191 * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
16194 2000-11-09 Alexander Larsson <alexl@redhat.com>
16196 * demos/testgtk/menus.c:
16197 Changes to make the new testgtk compile after
16198 gtk_menu_append was removed.
16200 * gdk/linux-fb/gdkdrawable-fb2.c
16201 (gdk_fb_get_depth, gdk_fb_get_visual,
16202 gdk_drawable_impl_fb_class_init): Implement
16203 these drawable functions. Now GtkImages work again.
16205 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
16207 * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
16209 * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
16210 gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
16211 Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
16212 GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
16214 2000-11-08 Havoc Pennington <hp@pobox.com>
16216 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
16217 visible_set args, don't know where these had gone, I thought they
16220 * gtk/testtext.c: Add a menu item to apply invisibility tag;
16221 now we can test the feature and see that it's totally broken.
16223 2000-11-08 Havoc Pennington <hp@pobox.com>
16225 Make DND copy pixbufs and tags when source and target share a
16228 * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
16229 in-process GTK_TEXT_BUFFER_CONTENTS target
16230 (gtk_text_view_drag_data_received): Paste from
16231 GTK_TEXT_BUFFER_CONTENTS if we receive it.
16233 2000-11-08 Alexander Larsson <alexl@redhat.com>
16235 * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
16238 * gtk/gtkmenu.c: Add support for scrolling menus.
16239 Remove gtk_menu_append/prepend/insert, these have been moved to
16240 gtkcompat.h as #defines.
16242 * gtk/gtkcompat.h.in:
16243 Add compatibility #defines for gtk_menu_append/prepend/insert
16245 * gtk/gtkmenu.h: Add data needed for scrolling menus.
16246 GtkMenuPositionFunc gets an extra argument push_in.
16247 gtk_menu_append/prepend/insert removed.
16249 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
16250 positioning behaviour to fit to scrolling menus.
16252 * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
16253 into menuitem->submeny. That is wrong, and broke torn
16254 off submenus of torn off menus, since they were unrealized
16255 when the first menu was unrealized.
16257 * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
16258 gtk_menu_shell_select_item() since these need to be overridden in
16261 * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
16262 positioning behaviour to fit to scrolling menus.
16263 (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
16264 the current item so that it is prelighted when the menu pops up.
16265 This is a workaround to the fact that the menu doesn't get the
16266 initial enter event (due to grabs).
16268 * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
16269 s/gtk_menu_append/gtk_menu_shell_append/
16271 * gtk/gtknotebook.c:
16272 s/gtk_menu_insert/gtk_menu_shell_insert/
16274 * gtk/testgtk.c (create_menu, create_menus):
16275 Create the first menu with 50 items so that menu scrolling
16279 Patch from Jonathan Blandford <jrb@redhat.com>
16281 * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
16282 system to handle size requests. First, we ask what the size of
16283 the toggle is. Then, when allocating the size, we allocate the
16284 toggle_size first. This way we can have multiple menu-item
16285 classes w/o needing a seperate class for each.
16287 * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
16288 * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
16290 * gtk/gtkcheckmenuitem.c
16291 (gtk_check_menu_item_toggle_size_request): New function to handle
16292 the toggle size-request.
16294 2000-11-07 Havoc Pennington <hp@redhat.com>
16296 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
16297 Half-ass somewhat fix this function, so that scrolling to the
16298 insertion point works. Pango hacking is in the future to really
16301 * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
16302 length of data, no longer used.
16304 * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
16305 method contents in here, get rid of destroy method
16306 (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
16307 that were backward. Remove debug spew.
16308 (cut_or_copy): Make the clipboard work with insert_range to
16309 preserve tags and pixbufs, not just the primary selection.
16311 2000-11-07 Havoc Pennington <hp@redhat.com>
16313 * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename
16314 to gtk_text_mark_get_visible
16316 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
16317 bug that was generating an invalid iterator
16319 * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
16320 ensure_char_offsets() in front of code placing the iter in an
16323 * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
16324 make override_location arg const
16325 (paste): Replace the selection if we paste into the
16328 * gtk/gtkselection.h: Remove "GtkSelectioData"
16329 (struct _GtkSelectionData): move the definition here.
16331 * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
16332 Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
16334 * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
16336 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
16337 (gtk_text_buffer_insert_range_interactive): implement
16338 (gtk_text_buffer_get_tags): Remove, replaced by
16339 gtk_text_iter_get_tags()
16341 * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
16342 limit parameter, to avoid infinite linear scan.
16343 (gtk_text_iter_backward_search): Add search limit
16344 (gtk_text_iter_forward_find_char): Add search limit
16345 (gtk_text_iter_backward_find_char): Add search limit
16347 2000-11-07 Alexander Larsson <alla@lysator.liu.se>
16349 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16350 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
16351 gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
16352 gdk/linux-fb/gdkwindow-fb.c:
16353 use g_object_new() instead of g_type_create_instance() which
16354 is a private function for fundamental type implementations.
16356 * gdk/linux-fb/gdkinput-ps2.c:
16357 Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
16358 instead just store the current modifier state. Add a (somewhat broken)
16359 keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
16360 Rename exported function gdk_input_ps2_get_mouseinfo to
16361 gdk_input_get_mouseinfo.
16363 * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
16364 gdk/linux-fb/gdkwindow-fb.c:
16365 gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
16368 2000-11-02 Havoc Pennington <hp@redhat.com>
16370 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,