1 Thu Nov 15 12:54:36 2001 Owen Taylor <otaylor@redhat.com>
3 * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
4 key press events not just to focus/window but also to
7 * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
8 to switch pages. (Needs some work on handling focus
11 Fri Nov 16 14:06:31 2001 Owen Taylor <otaylor@redhat.com>
13 * gtk/gtknotebook.c: Fix child allocations to be relative to
14 widget position and some drawing bugs.
16 * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
17 with reading uninitialized variable.
19 Fri Nov 16 00:16:40 2001 Owen Taylor <otaylor@redhat.com>
21 * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
22 gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
25 * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
28 * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
29 we are drawing in a window when drawing the paned handle.
31 2001-11-16 Sven Neumann <sven@gimp.org>
33 * demos/gtk-demo/appwindow.c
34 * demos/gtk-demo/menus.c: reduce compiler warnings
36 Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
38 * demos/gtk-demo/main.c (button_press_event_cb): Remove
39 unused callback to make things compile with
40 gtk_tree_view_path_at_pos_change().
42 Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
44 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
46 2001-11-15 Matthias Clasen <matthiasc@poet.de>
48 * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
50 Thu Nov 15 16:24:55 2001 Jonathan Blandford <jrb@redhat.com>
52 * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
53 to get a GdkWindow to compare event->window to.
55 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
56 the signal for lateral motion too, #64361
58 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
59 arg as it is useless, #64137
61 Thu Nov 15 16:07:42 2001 Owen Taylor <otaylor@redhat.com>
63 * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
65 Thu Nov 15 14:19:34 2001 Owen Taylor <otaylor@redhat.com>
67 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
68 gdk_window_invalidate_maybe_recurse() for recursion.
71 * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
73 * gtk/gtkcontainer.c (gtk_container_expose): Call
74 gtk_container_forall() not _foreach() to propagate,
75 since we need to propagate exposes to internal children
78 * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events):
79 Remove the restriction of only being able to call these
80 on window widgets, since we have lots of NO_WINDOW widgets
81 with windows now; for add events, recurse over the children
82 of widget->window to find one owned by the widget.
84 * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
85 window to catch events.
87 * gtk/gtktogglebutton.[ch]: Remove the code for switching
88 between NO_WINDOW and WINDOW widgets based on the mode.
90 * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
91 gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
93 * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
95 * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
98 * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
100 * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
102 Thu Nov 15 11:59:35 2001 Owen Taylor <otaylor@redhat.com>
104 * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
105 "message_type" and "buttons" CONSTRUCT properties. (#64069)
107 * tests/testsocket.c: Expand tests to add a "local passive
108 child" (Test case for #64428)
110 2001-11-14 jacob berkman <jacob@ximian.com>
112 * gtk/gtkgamma.c (button_clicked_callback): create the label with
115 2001-11-15 Sven Neumann <sven@gimp.org>
117 * tests/testgtk.c: make it compile without warnings.
119 2001-11-14 Alex Larsson <alexl@redhat.com>
122 Don't recalculate the layout on each gkt_label_ensure_layout () for
125 Wed Nov 14 17:40:23 2001 Jonathan Blandford <jrb@redhat.com>
127 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
128 the currently selected column when we get the column, #64380
130 * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
131 to cancel CellRendererText editting, #63613
133 * gtk/gtkcellrenderertext.c: ditto
135 * gtk/gtkcellrenderertext.h: formatting changes
137 2001-11-14 Matthias Clasen <matthiasc@poet.de>
139 * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
141 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
143 * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
145 * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
147 * gtk/gtklabel.c: Documentation fixes (#64452)
149 2001-11-14 Daniel Egger <degger@fhm.edu>
151 * gdk-pixbuf/io-xpm.c:
152 (xpm_skip_whitespaces): Remove unused static function.
153 (xpm_skip_string): Dito.
154 (xpm_extract_color): Declare const variable const to avoid warnings.
156 * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
158 * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
160 * gtk/gtksocket.c: Change type of mask to g_message to %ld for
163 Wed Nov 14 15:14:48 2001 Owen Taylor <otaylor@redhat.com>
165 * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
166 out accidental commit of debugging timing code.
168 2001-11-14 Havoc Pennington <hp@redhat.com>
170 * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
171 it doesn't move to a new line each time you press it
173 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
176 2001-11-14 Havoc Pennington <hp@redhat.com>
178 * tests/testtextbuffer.c (main): bulk of the tests were commented
181 * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this
182 function work, should resolve #63426
183 (gtk_text_iter_ends_line): return TRUE for the end iterator
185 * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
186 a couple things that might get cached in here.
188 Tue Nov 13 21:00:59 2001 Jonathan Blandford <jrb@redhat.com>
190 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
191 "model" construct property for language bindings.
193 * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
194 function to let you set the column types of a GtkTreeStore for
197 * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
199 2001-11-13 Havoc Pennington <hp@redhat.com>
201 * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
202 including reference to bugzilla bug about how we should have
203 a better way of positioning children
205 * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
207 * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
208 size to side rects if they don't exist, #63438
210 2001-11-13 Havoc Pennington <hp@redhat.com>
212 * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
213 properly replace selection with Return or Tab
215 * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
216 that didn't locate the end of the line correctly, should fix #63800
218 2001-11-13 Havoc Pennington <hp@redhat.com>
220 * gtk/gtktextview.c (gtk_text_view_size_request): add border width
221 to requisition, request non-anchored children
222 (gtk_text_view_size_allocate): handle border width, allocate
223 non-anchored children
224 (text_view_child_new_window): set the child as object data
225 (gtk_text_view_move_child): allow children at negative
226 coordinates, no reason why not
227 (gtk_text_view_forall): make it copy the list of children before
228 walking it, to avoid reentrancy issues
229 (gtk_text_view_move_child): short-circuit if position is unchanged
230 (changed_handler): only queue_resize if requisition has changed
231 (gtk_text_view_init): don't redraw_on_allocate, since we can do
232 a better job of invalidation ourselves
234 * tests/testtext.c: add tests for the fixed-position children
236 Tue Nov 13 19:51:43 2001 Tim Janik <timj@gtk.org>
238 * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
239 with gdk threads macro.
241 Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org>
243 * gtk/maketypes.awk: fix type utils generation on unix.
245 * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
248 * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
249 removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
250 gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
251 gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
252 gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
253 introduced ::accel_changed signal for change notification, and
254 gtk_accel_group_connect/disconnect to connect closures to accel groups.
255 made gtk_accel_group_attach/detach and gtk_accel_group_activate private
257 deprecated gtk_accel_group_ref/unref.
259 * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
260 to accel group changed notification and basically operate on closures.
261 removed gtk_accel_label_get_accel_object and
262 gtk_accel_label_set_accel_object.
263 introduced gtk_accel_label_set_accel_closure, and for convenience,
264 gtk_accel_label_set_accel_widget.
266 * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
267 which mostly moved into gtkaccelmap.[hc].
268 removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
269 and gtk_item_factory_print_func.
271 * gtk/gtkmain.c: call _gtk_accel_map_init().
273 * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
274 that associates an accelerator path with menu items, through which
275 persistent accelerator settings on menu items are enabled.
277 * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
278 paths of menu item can be default constructed to allow installation
279 of accelerators on menu items that don't come with an accelerator
282 * gtk/gtksettings.c: fix STRING type rc settings by special casing
283 them appropriately in the parser.
285 * gtk/gtksignal.[hc]: allow a class function offset of 0 for
288 * gtk/gtkwidget.[hc]: accelerator API revamp.
289 removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
290 gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
291 gtk_widget_(un)lock_accelerators.
292 accelerators maintained through gtk_widget_add/remove_accelerator()
293 are not runtime changable now, the correct sequence to setup a
294 widget for runtime changable accelerators is now:
295 gtk_accel_map_add_entry(accel_path, key, mods);
296 _gtk_widget_set_accel_path(widget, accel_path, accel_group);
298 * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
299 group changes (as well as mnemonic changes) through the new signal
302 Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org>
304 * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
305 GString->string conversions.
307 Mon Nov 12 19:33:52 2001 Owen Taylor <otaylor@redhat.com>
309 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
310 if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
312 2001-11-12 Matthias Clasen <matthiasc@poet.de>
314 * gtk/gtktreeview.c: Documentation fixes. (#64377)
316 * gtk/gtktreestore.c: Documentation fixes. (#64376)
318 2001-11-11 Matthias Clasen <matthiasc@poet.de>
320 * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
321 gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c,
322 gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.
323 (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
325 2001-11-10 Hans Breuer <hans@breuer.org>
327 * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
328 we know what we are talking about when asked for MINMAXINFO.
329 Also some cleaning for !HAVE_DIMM_H etc.
331 2001-11-10 Matthias Clasen <matthiasc@poet.de>
333 * gtk/gtktreeviewcolumn.c: Fix docs for
334 gtk_tree_view_column_set_sort_order. (#62647)
336 * gtk/gtkcontainer.c: Fix docs for
337 gtk_container_set_border_width. (#64139)
339 * gtk/gtkcolorsel.c: Documentation fixes.
341 2001-11-10 Hans Breuer <hans@breuer.org>
343 * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
344 don't have strcasecmp()
346 * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need
347 to remove the idle funcs in gtk_text_view_destroy (). To reduce
348 code duplication wrap it in its own function and use it in
349 gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
351 * gdk/win32/gdkdrawable-win32.c : implement the finalize
352 method like the X11 version does, allow to set_colormap NULL
353 * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
354 set_colormap, also some adaption to X11 version :
355 (gdk_window_hide) call _gdk_window_clear_update_area
356 (gdk_window_reparent) call _gdk_window_init_position
358 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) :
359 call gdk_window_resize() after all hints are set, because the
360 window resizing process (WM_GETMINMAXINFO) takes all of them into
363 * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
365 * gdk/win32/gdkvisual-win32.c : register GdkVisual with
366 sizeof (GdkVisualPrivate)
368 * gdk/gdk.def gtk/gtk.def : upated externals
370 * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
371 gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
372 from now on use make.msc from $(TOP)/glib/build/win32
374 * gtk/stock-icons/makefile.msc : add stock_missing_image
376 2001-11-08 Tor Lillqvist <tml@iki.fi>
378 * README.win32: Add headers. Add section about ActiveIMM.
380 * configure.in: Add --with-ie55 flag to specify the location of
381 the "IE55 libs and headers" package downloadable from Microsoft,
382 which contains, among other things, the Active IMM header dimm.h
383 and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
386 * config.h.win32.in: New version, produced by merging two
387 configure-generated ones (for gcc and MSVC). Hopefully #defines
388 the same flags that the previous, hand-written one, did.
391 * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
393 * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
394 stuff. Remove unused GdkIOClosure.
396 * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
399 * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
400 for uuid.lib. (Does it really have to be this hard to use an
401 existing library with libtool? Probably I am missing something.)
403 2001-11-08 Darin Adler <darin@bentspoon.com>
405 * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
406 typo where it says LEFT instead of CENTER.
408 2001-11-07 Darin Adler <darin@bentspoon.com>
410 * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
411 (gtk_dialog_set_default_response): Add g_return_if_fail.
413 Mon Nov 5 22:34:29 2001 Owen Taylor <otaylor@redhat.com>
415 * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface):
416 Add row_draggable() vfunc, and wrapper function.
418 * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
419 row_drop_possible take a GtkSelectionData, rather than
422 * gtk/gtktreestore.c gtk/gtkliststore.c: Update for
425 * gtk/gtktreeview.[ch]: Remove the row_draggable_func
426 location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
427 and rename them to enable_model_drag_source/dest.
429 * gtk/treeviewcolumn.c: Add DND of columns between rows.
430 Still can't drop _to_ the left tree, but other places
433 * gtk/gtktreeview.c (unset_reorderable): Unset the
434 reorderable property if unset/enable_model_drag_source/dest
437 * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible):
438 Correct for change in depth count handling.
440 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
441 Pass in a expose area to gtk_tree_view_column_cell_render()
443 2001-11-06 Havoc Pennington <hp@redhat.com>
445 * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
447 Tue Nov 6 10:13:16 2001 Owen Taylor <otaylor@redhat.com>
449 * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
451 2001-11-05 Havoc Pennington <hp@redhat.com>
453 * gtk/gtktextview.c (gtk_text_view_paint): expose the child
455 (gtk_text_view_realize): set parent window of child widgets
456 (gtk_text_view_size_request): use child req to decide whether
457 to invalidate layout, not widget->requisition
459 * gtk/gtktextdisplay.c (render_layout_line): set
460 shaped_width_pixels for NULL shape objects, so that we properly
461 draw the "missing pixbuf/widget" thing
462 (render_layout_line): don't draw the widget here
463 (gtk_text_layout_draw): pass out a list of widgets that need exposing
465 * demos/gtk-demo/textview.c (insert_text): add demo of child
468 * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
470 * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
472 * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
474 (gtk_text_view_value_changed): poke new X and Y into child allocations
476 2001-11-06 Tor Lillqvist <tml@iki.fi>
478 * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
479 -specific directory on Windows, too (#63759).
481 Mon Nov 5 12:46:44 2001 Owen Taylor <otaylor@redhat.com>
483 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
484 gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
485 gdk/x11/gdkwindow-x11.c: Redo Xft support to go
486 directly to Picture objects instead of using XftDraw.
487 This fixes the problem where we weren't able to
488 properly destroy XftDraw objects before destroying
489 the accompanying windows, and probably improves
490 efficiency a bit too. (#50214)
492 Mon Nov 5 10:01:49 2001 Owen Taylor <otaylor@redhat.com>
494 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position):
495 Clamp max window width/height to 32767, not 32768 since
496 we have to be able to deal with a dx/y of -32768 without
497 getting a width of 65536 when guffaw scrolling.
499 * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
500 for the guffaw scrolling case, fixing some problems with
501 copy-area case as well. Fix BadValue bug with moving windows
504 * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
505 clip in window structue before calling gdk_window_invalidate_region
506 since that trims new invalidations to the window's visible
509 * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities):
510 Really set the static window gravity on the children, not
511 repeatedly on the window.
513 * gtk/testgtk.c: Add a torture test for big windows and
516 Sun Nov 4 17:36:08 2001 Manish Singh <yosh@gimp.org>
518 * acconfig.h configure.in: sigsetjmp is macroized in some places,
519 so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
521 Sun Nov 4 19:16:23 2001 Owen Taylor <otaylor@redhat.com>
523 * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
524 in terms of pango_color_parse().
526 * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
527 gdk_color_parse() implementations.
529 Sun Nov 4 18:39:43 2001 Owen Taylor <otaylor@redhat.com>
531 * gtk/gtksizegroup.c (gtk_size_group_set_mode):
532 queue_resize_on_group with both the old and new mode, not
533 just the new mode. (#60171, Nicolas Setton). Also, notify
536 Sun Nov 4 16:02:08 2001 Owen Taylor <otaylor@redhat.com>
538 * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse()
539 for use in "shallow invalidation" of a widget. (Windows belonging
540 to the widget, but not to the widget's children)
542 * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
543 flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED. These flags are set
544 up on ancestors up to the resize container on queue_resize. Size
545 requests only actually take place if GTK_REQUEST_NEEDED, size
546 allocations only take place if GTK_ALLOC_NEEDED or the size
549 * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
550 container->resize_widgets and the RESIZE_NEEDED flag since the
551 above flags are sufficient to figure out what needs to be
552 resized/reallocated. Remove code manipulating
553 container->resize_widget.
555 * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
556 allows widgets to turn off being automatically invalidated is when
559 * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
560 a widget is resized or moved is "shallow" as described above -
561 only the windows that need to be invalidated are invalidated.
563 * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt:
564 Make these widget's init functions call
565 gtk_widget_set_redraw_on_allocate(widget,FALSE).
567 * gtk/gtkwindow.c (gtk_window_configure_event): Call
568 _gtk_container_queue_resize(), since we don't want
569 redrawing. (Probably could be done for other
570 calls to gtk_widget_queue_resize() in gtkwindow.c,
571 but this is the most important one.)
573 * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
574 gtk_widget_queue_draw() - size_allocate() handles
577 * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
578 of queue_clear() to avoid invalidating children.
580 2001-11-04 jacob berkman <jacob@ximian.com>
582 * gtk/gtkmain.c (find_module): don't free the module name until
583 after we load the module
585 Sat Nov 3 13:57:21 2001 Owen Taylor <otaylor@redhat.com>
587 * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
588 derivation instead of boxed derivation.
590 * gtk/gtkmarshal.list: Remove some now unused marshallers.
592 2001-11-04 Tor Lillqvist <tml@iki.fi>
594 * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
595 include yesterday, without really thinking), as that defeats the
596 working of correct_libdir_prefix() (it becomes a no-op.). Add
597 comment mentioning that. Thanks to Hans Breuer for noticing.
599 2001-11-03 Daniel Elstner <daniel.elstner@gmx.net>
601 * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
602 signal argument (was GtkWidget*).
604 * gtk/gtkwindow.c (gtk_window_frame_event),
605 gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
606 Fixed argument types as above, removed GTK_WINDOW casts and
607 added some GTK_WIDGET casts instead.
609 2001-11-03 Hans Breuer <hans@breuer.org>
611 * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
612 finalize to parent class to get removed from the toplevel_list.
613 Should fix 'random' crashes of #63474.
615 * gtk/gtktreemodelsort.c : chain finalize() to parent class
617 2001-11-03 Tor Lillqvist <tml@iki.fi>
619 * modules/input/Makefile.am: Use -no-undefined on Windows. Look
620 for .dll or .so as appropriate as module suffix.
622 * gtk-zip.sh.in: Use correct import library names.
624 * gtk/gtk.def: Add a couple of missing entry points. (#63585)
626 * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
627 Windows to turn build-time paths from a gtk.immodules distributed
628 as part of a binary package into runtime ones in the
629 end-user-chosen installation directory.
630 (gtk_im_module_init): Use it for module path and domain
633 2001-11-02 Tor Lillqvist <tml@iki.fi>
635 * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
636 comma. Include gtkprivate.h for GTK_LIBDIR etc definitions on
639 2001-10-30 Tor Lillqvist <tml@iki.fi>
641 * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
642 files. Configure on Win32 (running on Cygwin) thinks symlinks
643 exist, but pkg-config is not necesarily a Cygwin program, and
644 doesn't understand them.
646 Fri Nov 2 16:45:17 2001 Jonathan Blandford <jrb@redhat.com>
648 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
649 a bit. I don't think it's completely correct yet, but it's
652 Fri Nov 2 16:14:15 2001 Owen Taylor <otaylor@redhat.com>
654 * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
655 random + 5 for width and height. If people want padding,
656 they should add padding. (Note the +5 isn't padding
657 that will always appear - it just appears in the case
658 where the widget is allocated it's requisition.)
659 (#51018, Janet Davis)
661 Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
663 * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
664 the structure for future expansion.
666 Fri Nov 2 15:30:34 2001 Owen Taylor <otaylor@redhat.com>
668 Patch from HideToshi Tajima (#51922)
670 * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
672 * gtk/modules/input/gtkimcontextxim.[ch]: Implement
675 * gtk/modules/input/gtkimcontextxim.[ch]: If we have
676 to destroy the input context because we change the
677 client window or use_preedit, make sure we empty
680 Fri Nov 2 14:55:53 2001 Owen Taylor <otaylor@redhat.com>
682 * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
683 gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
684 proposed ordering of buttons with [OK] in the lower
685 right hand corner. Patch from Gregory Merchan,
688 Fri Nov 2 11:51:49 2001 Jonathan Blandford <jrb@redhat.com>
690 * gtk/gtklabel.c (gtk_label_select_region_index): remove
691 extraneous gtk_label_clear_layout (label)
693 2001-11-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
695 * tests/makefile.msc, gtk/makefile.msc.in: Removed
696 -DGTK_DISABLE_COMPAT_H.
698 * docs/Changes-2.0.txt:
699 s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
701 * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
703 Fri Nov 2 10:21:03 2001 Owen Taylor <otaylor@redhat.com>
705 * examples/**/Makefile.am: Convert to use pkg-config
706 rather than gtk-config. (#53375, Skip Montanaro)
708 2001-11-02 Matt Wilson <msw@redhat.com>
710 * gtk/gtkdialog.c (find_child_by_response_id): remove totally
711 broken unused, non-compiling, static function.
713 Fri Nov 2 08:17:06 2001 Owen Taylor <otaylor@redhat.com>
715 * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive):
716 Iterate through children of the action area, not of
717 the vbox. (#58278, Sergey Kuzminov)
719 2001-11-01 Havoc Pennington <hp@pobox.com>
721 * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
722 order to remove a workaround in Nautilus that forced
725 * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
727 Thu Nov 1 20:09:31 2001 Owen Taylor <otaylor@redhat.com>
729 * gtk/gtkrange.c: Patch from George Lebl to
730 fix division by zero for full scroll bars. (#62114)
732 Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
734 * gtk/gtkmain.c (gtk_main_do_event): ref/unref
735 around gtk_widget_event() if we are going to
736 set a flag afterwards. (#63464)
738 Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
740 * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:
741 Actually add the missing/broken image icon as the
742 image for the "missing image" stock icon.
744 Thu Nov 1 19:18:34 2001 Owen Taylor <otaylor@redhat.com>
746 * demos/gtk-demo/stock_browser.c (do_stock_browser):
747 Set a reasonable default height for the window.
749 * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
750 bug where subsequent '-' weren't converted to '_'.
751 (#59550, Matthias Clasen)
753 * demos/gtk-demo/appwindow.c (menu_items): Don't right
754 justify the Help menu - just include a comment on
755 how to do it. (#63539, Marius Andreiana)
757 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't
758 list GTK_ICON_SIZE_INVALID.
760 * demos/gtk-demo/stock_browser.c: Show the biggest available
761 size, not a fixed size. (Often reported, including #63539,
764 Thu Nov 1 19:11:35 2001 Jonathan Blandford <jrb@redhat.com>
766 * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
769 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
772 Thu Nov 1 16:54:00 2001 Owen Taylor <otaylor@redhat.com>
774 * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
777 Thu Nov 1 16:20:56 2001 Owen Taylor <otaylor@redhat.com>
779 * gtk/gtkimcontext.[ch]: Add:
780 - A ::retrieve_surrounding signal that asks the widget for
781 context around the insertion point.
782 - A ::delete_surrounding signal that asks the widget to
783 delete context aroudn the insertion point.
784 - gtk_im_context_set_context() for widgets to set context
785 around the insertion point in response to ::retrieve_context.
786 - gtk_im_context_get_context() for context to get context
787 around the insertion point
789 * gtkmarshal.list: Add BOOL:INT,INT
791 * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
792 set_surrounding() methods, and the ::retrieve_surrounding /
793 ::delete_surrounding signals.
795 * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
796 GtkIMContext::retrieve_surrounding / ::delete_surrounding
799 Thu Nov 1 15:45:04 2001 Jonathan Blandford <jrb@redhat.com>
801 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
802 it's amazing how well things work sometimes, even when they're
805 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
806 where you could try to collapse a node w/o it having children.
808 (gtk_tree_view_class_init): remove Shift L<->R as they already
809 existed for expand/collapse.
811 Thu Nov 1 12:21:31 2001 Jonathan Blandford <jrb@redhat.com>
813 * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
814 found by Matt Wilson.
816 Thu Nov 1 00:44:50 2001 Jonathan Blandford <jrb@redhat.com>
818 * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
819 Control, and Shift|Control L<->R, #63475
821 Wed Oct 31 18:53:51 2001 Jonathan Blandford <jrb@redhat.com>
823 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
824 infinite loop noticed by yosh.
826 2001-11-01 Michael Meeks <michael@ximian.com>
828 * gtk/gtksocket.c (gtk_socket_unrealize): unset the
829 GTK_REALIZED flag so we don't re-enter when we are
830 destroyed from the plug side.
832 Wed Oct 31 18:23:47 2001 Owen Taylor <otaylor@redhat.com>
834 * gtk/gtkoptionmenu.c (gtk_option_menu_detacher):
835 Add a "menu" property and notify on it. (#62798,
838 * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
839 gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}:
840 Fix set_text to take a gchar, not a guchar, and to have
843 Wed Oct 31 15:31:13 2001 Manish Singh <yosh@gimp.org>
845 * gtk/gtkstock.c: fix typo to make it compile
847 Wed Oct 31 17:27:20 2001 Jonathan Blandford <jrb@redhat.com>
849 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
850 the widget is insensitive, draw the text insensitively, #63306
852 2001-10-31 Matthias Clasen <matthiasc@poet.de>
854 * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
856 Wed Oct 31 16:53:48 2001 Jonathan Blandford <jrb@redhat.com>
858 * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
859 gtk_selection_data_set_tree_row, #60218
860 (gtk_tree_get_row_drag_data): rename
861 gtk_selection_data_get_tree_row, #60218
863 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
864 get this right, after the third try, #63122.
866 2001-10-31 jacob berkman <jacob@ximian.com>
868 * gdk/gdkselection.h (GDK_TARGET_STRING):
869 (GDK_SELECTION_TYPE_STRING): these should be 31, not 3. Hooray
870 for Xatoms (and not using the XA_* macros)!
872 Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
874 * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
875 gtk_window_get_focus() getter to determine the currently
876 focused widget within the window. (#63145, request
877 from Damian Ivereigh)
879 Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
881 * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
883 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
884 GTK_SELECTION_NONE enum.
885 (_gtk_tree_selection_internal_select_node): ditto
887 * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
890 * gtk/gtkcellrenderertoggle.c: more yummy constness.
892 * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
893 if mode == GTK_SELECTION_NONE
895 Wed Oct 31 14:05:17 2001 Jonathan Blandford <jrb@redhat.com>
897 * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
898 "cursor_changed" signal, #62850.
900 2001-10-31 Matt Wilson <msw@redhat.com>
902 * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
903 allocating the treedatalist, zero it to make sure the values are
904 cleared from any garbage that was in this chunk.
906 2001-10-31 Murray Cumming <murrayc@usa.net>
908 * gtk/cellrenderertext.h: "edited" default signal handler
909 gchar* args are now const.
910 gtk/cellrenderertoggle.h: "toggled" default signal handler
911 gchar* arg is now const.
912 Also changed other signal handlers for "edited" and "toggled" to
913 have the same signature.
915 Tue Oct 30 19:17:57 2001 Jonathan Blandford <jrb@redhat.com>
917 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
918 rewrite. Static models now totally work. I'm not 100% sure about
919 row_inserted and row_changed, but I'll get those later.
921 2001-10-30 Sven Neumann <sven@gimp.org>
923 * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
924 output for configure --help.
926 2001-10-30 Havoc Pennington <hp@pobox.com>
928 * gtk/gtktextview.c (changed_handler): Update the IM spot location
929 here, if text was invalidated in the visible area, because the
930 scroll offset doesn't normally change in that case, and the mark
931 isn't set, just implicitly moved over as text is added/removed
933 Mon Oct 29 19:18:35 2001 Jonathan Blandford <jrb@redhat.com>
935 * gtk/gtkseparatormenuitem.c: Code cleanup.
936 (gtk_separator_menu_item_class_init): Fix bugs in this code.
938 2001-10-29 jacob berkman <jacob@ximian.com>
940 * gdk/Makefile.am (LDFLAGS):
941 * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
942 LDFLAGS, so put win32 flags in here
944 Mon Oct 29 15:41:58 2001 Jonathan Blandford <jrb@redhat.com>
946 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
947 I can't believe this took this long to fix.
949 Mon Oct 29 13:54:49 2001 Jonathan Blandford <jrb@redhat.com>
951 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
954 Mon Oct 29 12:27:51 2001 Owen Taylor <otaylor@redhat.com>
956 * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
957 the focus to the fileop entry for create dir / rename
960 Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
962 * configure.in: Don't use AC_CHECK_FILE to check for a
963 file since it always spits warnings about cross compilation,
964 use -f instead. It's not like we cross compile properly
967 * configure.in (gtktargetlib): Move call to AC_PROG_CC
968 to suppress autoconf warning.
970 * acconfig.h: Add some missing #undefs from recent
973 Mon Oct 29 11:31:40 2001 Owen Taylor <otaylor@redhat.com>
975 * m4macros/gtk-2.0.m4: Don't try to use pkg-config
976 when we didn't find it. (#62944, Eric Lemings)
978 * m4macros/gtk-2.0.m4: Fix problem with spaces around =
979 sign in assignment. (#63209, Arkadiusz Miskiewicz)
981 2001-10-29 Anders Carlsson <andersca@gnu.org>
983 * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
984 the buttons size request before using it. Fixes #61696.
986 2001-10-29 Tor Lillqvist <tml@iki.fi>
988 * README.win32: Updates.
990 * gtk-zip.sh.in: New file, used to build distribution package for
993 * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
994 applicable with GDKVAR.
996 * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
999 * gdk/win32/gdkwin32.h
1000 * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
1001 X11 headers better, and to enable gdkwin32.h to be installed and
1002 included from applications, but not the *-win32.h headers.
1004 * gdk/win32/*.c: Corresponding small changes, simplifications of
1007 * gdk/win32/gdkregion-win32.c: Remove.
1009 * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
1011 * gdk/win32/gdkfont-win32.c
1012 * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
1014 * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
1015 GDK_NONE values into hash table.
1017 * gtk/gtk.def: Update.
1019 * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
1023 * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
1024 entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
1025 GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
1026 g_win32_get_package_installation_subdirectory() with the actual
1027 DLL name saved above. Redefine above directory name macros to call
1028 these functions. Remove some ifdefs.
1030 * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
1031 variable for export on Win32) also to the _vars file.
1033 Changes for autoconfiscated build on Win32, and addition of Win32
1034 backend to the related files:
1036 * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
1037 when forming DLL name in some files. Set MS_LIB_AVAILABLE is
1038 lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
1039 PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
1040 win32 target, using pangowin32. Don't use the
1041 -export-symbols-regex option on Win32, we use .def files to list
1042 exported symbols. Check <winsock.h> (for gethostname() in
1043 gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
1044 prevent premature m4 expansion.
1046 * acconfig.h: Add HAVE_WINTAB.
1048 * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
1049 macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
1050 MS_LIB_AVAILABLE, build MS import library. Install the import
1051 libraries. If HAVE_WINTAB, link with the Wintab library.
1053 * gdk/win32/Makefile.am: Actually enable building the win32
1054 objects here, not just list all files in EXTRA_DIST. Link in the
1055 compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
1056 copy the Wintab library into the .libs directory.
1058 * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
1059 name of the GDK DLL when fetching the icon. Use the HMODULE saved
1060 in gdk_dll_hinstance by DllMain.
1062 * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
1063 build/win32/lt-compile-resource script.
1065 * gdk/win32/rc/gdk.rc.in
1066 * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
1068 * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
1069 macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
1070 file. Install import libraries.
1072 2001-10-29 Anders Carlsson <andersca@gnu.org>
1074 * gtk/gtkiconfactory.c (get_default_icons): Fix build.
1076 2001-10-28 Hans Breuer <hans@breuer.org>
1078 * gdk/gdk.c gdk/gdkevents.c
1079 gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
1080 gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
1081 gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
1082 gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
1083 gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
1084 gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
1085 gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
1086 static correct-ness, underscore prefixing of library internal
1088 (applied the undisputed and the win32 part. Of the latter
1089 I'm probably the one who will change it back again, if Owen
1090 decides that the Gdk*Impl types should not be private to Gdk)
1092 * gdk/gdk.def : added the remaining exported functions
1094 2001-10-28 Matthias Clasen <matthiasc@poet.de>
1096 * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
1097 gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
1098 gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
1100 2001-10-28 jacob berkman <jacob@ximian.com>
1102 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
1103 gtk_settings_get_default() here as that requires an X connection
1104 (which breaks doc building with no X connection) and is not
1106 (gtk_color_selection_init): delay palette loading until realize
1108 (gtk_color_selection_realize): load the palette, and initialize
1109 the global palette if it hasn't been already
1111 * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
1112 visual/cmap fields of klass->info since they are gone
1113 (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
1114 (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
1115 (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
1117 * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
1119 (gtk_preview_get_visual):
1120 (gtk_preview_get_cmap): mark as deprecated
1122 * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
1125 Sun Oct 28 09:15:39 2001 Owen Taylor <otaylor@redhat.com>
1127 * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
1128 structure to have GObject not GtkObject as
1129 parent_instance. (Jeff Franks.)
1131 2001-10-27 Matthias Clasen <matthiasc@poet.de>
1133 * gdk/x11/gdkinput.c: Typo fix.
1135 2001-10-26 Havoc Pennington <hp@pobox.com>
1137 * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
1138 update_im_spot_location here explicitly
1139 (gtk_text_view_reset_im_context): don't update the spot location
1142 2001-10-27 Anders Carlsson <andersca@gnu.org>
1144 * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
1147 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range):
1148 Clarify that we're returning a spin button in the _new function.
1151 Fri Oct 26 20:55:57 2001 Owen Taylor <otaylor@redhat.com>
1153 * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST.
1154 Unfortunately, people apparently erroneously connect
1155 to ::clicked for GtkToggleButton and expect
1156 they know what happened in the default signal handler
1157 instead of appropriately connecting to notification
1158 signal ::toggled. When the revolution comes, such
1159 people will be first against the wall.
1161 We'll just have to go back to the old less-reliable
1162 set-it-back hacks for handling model-view check
1163 buttons and radio buttons. :-(.
1165 2001-10-27 Hans Breuer <hans@breuer.org>
1167 * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
1168 gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
1169 gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
1170 gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
1171 gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
1172 gtk/gtktreestore.c gtk/gtkvbbox.c :
1173 to simplify parsing for exported functions:
1174 - made implementation signature static, when the local
1175 prototype already was
1176 - put the functions return value on it's own line
1177 - added as space between the function name and the
1180 * gtk/gtk.def : added the remaining exported functions
1182 2001-10-27 Anders Carlsson <andersca@gnu.org>
1184 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
1185 Add note about width having to be greater than 0. This fixes
1188 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start):
1189 Fix docs to say previous instead of next.
1190 (gtk_text_iter_backward_word_start): Likewise.
1191 This fixes bug #62980.
1193 * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
1194 that the valid width is in range 0-65535 pixels. Fixes bug
1197 * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
1198 a dot in the documentation. Fixes bug #62632.
1200 * gdk/x11/gdkmain-x11.c: Replace int and guint with
1201 long and gulong in some places to make the code 64-bit
1203 (_gdk_windowing_init_check): Replace gint with gulong.
1204 This patch was made by George Lebl and fixes bug #62113.
1206 * tests/testgtk.c (create_range_controls): Don't set a
1207 fixed height on the hscale widget. This fixes "bug"
1209 (create_window_states): Set up destroy signals so that
1210 all windows will be destroyed when one is. This fixes
1213 2001-10-26 Anders Carlsson <andersca@gnu.org>
1215 * gtk/gtktreeview.c:
1216 (gtk_tree_view_class_init): Create new "indent_expander"
1219 (gtk_tree_view_get_arrow_xrange): Add a tree argument
1220 to the function since the xrange can change depending
1221 on where in the tree we are.
1223 (coords_are_over_arrow): Update function call to
1224 gtk_tree_view_get_arrow_xrange.
1225 (gtk_tree_view_draw_arrow): Likewise.
1227 (gtk_tree_view_real_expand_collapse_cursor_row):
1228 Call real_{expand|collapse}_row, so that we'll have an
1231 Fri Oct 26 20:13:36 2001 Kristian Rietveld <kristian@planet.nl>
1233 * tests/Makefile.am: fixed a small typo
1235 Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
1237 * demos/gtk-demo/list_store.c (create_model): Anders
1238 Carlsson suggested to use G_N_ELEMENTS here
1240 2001-10-26 Sven Neumann <sven@gimp.org>
1242 * gtk/gtkbutton.[ch]
1243 * gtk/gtkdnd.c: fixed inline comments
1245 * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
1247 2001-10-26 Hans Breuer <hans@breuer.org>
1249 * gdk-pixbuf/gdk_pixbuf.def :
1251 * gtk/gtk.def : updated externals
1253 * gdk/win32/gdkpixmap-win32.c : removed duplicate of
1254 gdk_window_lookup implementation. It already was in
1255 gdk/win32/gdkwindow-win32.c
1257 * gdk/win32/gdkproperty-win32.c : made it compile again
1258 after GdkAtom API change
1260 * gtk/gtk/makefile.msc.in : updated
1262 Wed Oct 24 11:36:33 2001 Owen Taylor <otaylor@redhat.com>
1264 * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
1265 require GLib 1.3.10.
1269 Thu Oct 25 16:27:29 2001 Jonathan Blandford <jrb@redhat.com>
1271 * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
1273 (_gtk_rbnode_rotate_right): Ditto.
1274 (_gtk_rbtree_node_mark_invalid): New function.
1275 (_gtk_rbtree_node_mark_valid): New function.
1277 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
1278 GObject, not a GtkObject.
1279 (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
1281 (gtk_tree_model_sort_row_deleted): ditto.
1282 (gtk_tree_model_sort_{un,}ref_node): Fix.
1284 * gtk/gtktreeview.c: Protean incremental reflow support (commented
1287 * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
1290 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1291 Important 1 line fix to fix a lot of refcounting woes.
1293 2001-10-25 Matt Wilson <msw@redhat.com>
1295 * gtk/gtktextview.c (gtk_text_view_destroy): call
1296 gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
1297 now invalidates) so that we remove our idle functions.
1298 (gtk_text_view_destroy_layout): remove the first_validate_idle as
1301 * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
1302 the 'indent' property is G_MININT to G_MAXINT. Don't use
1303 -G_MAXINT for the minimum of the 'rise' property, use G_MININT
1306 2001-10-24 Anders Carlsson <andersca@gnu.org>
1308 * gtk/gtktreeview.c:
1309 (gtk_tree_view_real_expand_row): add an animate argument
1310 (gtk_tree_view_real_collapse_row): likewise
1312 (gtk_tree_view_button_press), (gtk_tree_view_button_release),
1313 (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
1314 (gtk_tree_view_collapse_row): update functions that call
1315 real_{expand|collapse}_row to set the animate argument
1318 2001-10-24 Alex Larsson <alexl@redhat.com>
1320 * gdk/linux-fb/gdkfont-fb.c:
1321 Update to new Pango APIs
1323 * gdk/linux-fb/gdkproperty-fb.c:
1324 Update to new GdkAtom APIs
1326 * gdk/linux-fb/gdkwindow-fb.c:
1329 Mon Oct 22 20:07:21 2001 Jonathan Blandford <jrb@redhat.com>
1331 * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
1333 Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
1335 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
1336 s_path as a child path
1338 Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
1340 * gtk/gtktreemodelsort.c: more changes in an attempt to get
1341 it right. It's not yet ready for general consumption.
1343 * tests/treestoretest.c: add a button and entry for the new
1344 iter_change function
1345 (iter_change): new function, to test
1346 the row_changed signal implementation of the GtkTreeModelSort
1348 * tests/testtreesort.c: cleanups, changes to test more features
1349 of the GtkTreeModelSort at once
1351 2001-10-24 Havoc Pennington <hp@redhat.com>
1353 * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
1354 remove hack to strip off the bogus newline, since we killed the
1355 bogus newline; fixes #61779
1357 2001-10-24 Havoc Pennington <hp@redhat.com>
1359 * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
1360 create layout if we didn't have one
1361 (gtk_text_view_set_buffer): invalidate so we get the idle handlers
1362 as appropriate, avoids blanking the screen
1363 (gtk_text_view_invalidate): new function to do invalidation,
1364 containing old guts of invalidated_handler
1366 Wed Oct 24 10:29:47 2001 Owen Taylor <otaylor@redhat.com>
1368 * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
1371 Tue Oct 23 17:31:42 2001 Owen Taylor <otaylor@redhat.com>
1373 * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always
1374 set window->parent (except or the root window itself); if
1375 the window's parent is not a GdkWindow, or is a window of
1376 type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
1378 * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
1379 windows of type GDK_WINDOW_FOREIGN.
1381 2001-10-24 Havoc Pennington <hp@pobox.com>
1383 * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
1384 the front of a segment, use the "slow" technique for moving
1385 backward, so we don't mess up the any_segment field in the iter.
1388 * tests/testtextbuffer.c: add code to detect #57707, to avoid
1391 2001-10-23 Havoc Pennington <hp@redhat.com>
1393 * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
1394 if selection contains some editable text, #60975
1395 (gtk_text_view_scroll_to_iter): remove warning about scrolling
1396 prior to map; it should actually be OK to do so in many cases,
1397 it would be nice to warn about scrolling when many lines have
1398 height 0, but I don't know what to do about that. Perhaps
1399 move part of flush_scroll into this function? comment added
1402 2001-10-23 Havoc Pennington <hp@redhat.com>
1404 * gtk/gtktextview.c (changed_handler): Correctly keep the same
1405 text on the top of the screen, considering that the changed region
1406 may have overlapped the first paragraph. Should fix msw's "text
1407 widget scrolled to wrong place on map" bug, and probably some
1408 other scrolling cases as well.
1409 (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0,
1410 instead of some random value
1412 * gtk/gtktextview.c (gtk_text_view_class_init): actually override
1413 grab_focus, so #59708 is really fixed
1415 2001-10-24 Anders Carlsson <andersca@gnu.org>
1417 * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
1418 (popup_targets_received): Call append_action_signal with stock items
1420 * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
1421 (gtk_label_do_popup): Call append_action_signal with stock items
1423 * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
1424 (popup_targets_received): Call append_action_signal with stock items
1426 2001-10-23 Havoc Pennington <hp@redhat.com>
1428 * gtk/gtktextview.c (changed_handler): queue a resize here; will
1429 temporarily slow down the widget a lot, until we figure out how to
1430 optimize to avoid full redraw everytime we queue a resize.
1432 2001-10-23 Havoc Pennington <hp@redhat.com>
1434 * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
1435 0 and char_len == 0, bug #61729
1437 2001-10-23 Havoc Pennington <hp@redhat.com>
1439 * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
1440 return value, #61714 (Vitaly Tishkov)
1441 (gtk_text_iter_backward_sentence_starts): ditto
1442 (gtk_text_iter_backward_word_starts): ditto
1443 (gtk_text_iter_forward_word_ends): ditto
1444 (gtk_text_iter_forward_sentence_ends): ditto
1445 (gtk_text_iter_backward_cursor_positions): ditto
1447 2001-10-23 Havoc Pennington <hp@redhat.com>
1449 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
1450 fix from Dov Grobgeld, #61858
1452 2001-10-23 Havoc Pennington <hp@redhat.com>
1454 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
1455 Update IM spot location at appropriate times, #50626
1458 2001-10-23 Havoc Pennington <hp@redhat.com>
1460 * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
1461 on grab focus, unless it's caused by button click, #59708
1463 Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com>
1465 * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
1467 * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
1468 G_CONST_RETURN. (Murray Cumming)
1470 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
1471 Make G_CONST_RETURN.
1473 * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
1474 results of g_get_home_dir().
1476 * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
1477 copy. Storing the return from gtk_entry_get_text() is evil.
1479 * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
1480 gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
1481 gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
1482 gtk/gtksignal.c: Add const.
1484 * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
1486 * gtk/gtktreeview.c: Namespace object data keys to be safe, even
1487 if we are setting them on private widgets.
1489 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1490 Duplicate entry->text before setting it as object data.
1492 2001-10-22 Havoc Pennington <hp@redhat.com>
1494 * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
1495 up a char from the end iterator, fixes #61859 ("can't put cursor
1496 at the end of the buffer")
1498 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
1499 to work with delimiters other than newline.
1501 * tests/testtextbuffer.c: add some tests for get_chars_in_line,
1504 * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
1505 last line, since the newline is no longer counted.
1506 (gtk_text_iter_get_bytes_in_line): ditto
1508 2001-10-22 Havoc Pennington <hp@redhat.com>
1510 * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that
1511 #58290 would trigger if it reappeared, I think
1513 2001-10-22 Havoc Pennington <hp@redhat.com>
1515 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1516 add temporary code to dump btree contents on assertion failure
1519 * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
1520 assertions that we're getting the right end iter segment
1522 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1523 verify that we aren't on the end iterator after moving
1524 forward one segment - fixes return value in an obscure case.
1525 Also, some trivial code cleanup/rearranging.
1527 2001-10-22 Havoc Pennington <hp@redhat.com>
1529 * gtk/gtktextlayout.h: add a #error unless you define
1530 GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
1532 * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
1534 2001-10-22 Havoc Pennington <hp@redhat.com>
1536 * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
1539 2001-10-22 Havoc Pennington <hp@redhat.com>
1541 * gtk/gtktextview.c (gtk_text_view_get_window_type): fix
1544 2001-10-22 Havoc Pennington <hp@redhat.com>
1546 * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix
1549 Mon Oct 22 11:47:47 2001 Owen Taylor <otaylor@redhat.com>
1551 * gtk/gtklabel.c: Add cursor-position, selection-bound
1552 properties. (#62148, reported by Padraig O'Briain)
1554 * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
1555 to cursor_position. (1.3.x addition, text_position is an awful
1556 name.) Make cursor_position read-only to avoid sticky questions
1557 of interaction with selection_bound. (#62636, reported by
1560 Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com>
1562 Fixing popup menus to have "Paste" sensitized correctly. Original
1563 patches from Damian Ivereigh, much mangled.
1565 * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
1566 gtk_selection_data_targets_include_text(). (#60854)
1568 * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
1569 the clipboard has text" function gtk_clipboard_wait_is_text_available.
1572 * gtk/gtkentry.c: Only enable the paste item if the clipboard
1573 contains text. (#60973)
1575 * gtk/gtktextview.c: Only enable the paste item if the clipboard
1576 contains text. (#60975)
1578 2001-10-22 Havoc Pennington <hp@redhat.com>
1580 * gtk/gtktextview.c (gtk_text_view_class_init): rip out
1581 "height_lines" and "width_columns" properties, it doesn't make
1582 sense to set the size request on a text view really. #62103
1584 Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
1586 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
1587 g_node_depth is broken, and that it's not worth being consistent
1590 2001-10-22 Havoc Pennington <hp@redhat.com>
1592 * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
1594 (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
1595 change the two boolean args to a flags field, so we can extend
1596 to add case insensitive, regexp searches later. #61852
1598 Mon Oct 22 15:07:17 2001 Jonathan Blandford <jrb@redhat.com>
1600 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
1601 reflect reality, #62810
1603 Mon Oct 22 14:08:26 2001 Jonathan Blandford <jrb@redhat.com>
1605 * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
1607 * gtk/gtktreeview.c (size_allocate): Move to a different drawing
1608 system. Instead of having a window the size of the tree, we have
1609 a window the size of widget->allocation, and simply draw with the
1611 (coords_are_over_arrow): ditto. Move to window coordinates.
1612 (do_prelight): ditto
1613 (do_unprelight): ditto
1615 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
1616 Minor fix from Kristian Rietveld to fix unsorted case.
1618 2001-10-22 jacob berkman <jacob@ximian.com>
1620 * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
1621 a PIXMAP cell (fixes crash when using PIXTEXT cells)
1623 Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
1625 * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
1626 (#58768, Vitaly Tishkov)
1628 * gtk/gtkobject.h: Deprecate with abandon.
1629 (#61942, Vitaly Tishkov, Matthias Clasen)
1631 * gtk/gtksignal.h: Deprecate everything.
1633 * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
1634 all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
1635 (#61942, Matthias Clasen)
1637 * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
1640 * gtk/gtkitemfactory.h: Deprecate compat functions
1641 for GtkMenuFactory code. (#62071)
1643 * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
1644 gdk_draw_text,gdk_draw_text_wc. (#62071)
1646 Mon Oct 22 10:12:08 2001 Owen Taylor <otaylor@redhat.com>
1648 * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
1649 g_thread_init(), we don't want to link to -lgthread if we don't
1652 Mon Oct 22 08:51:02 2001 Owen Taylor <otaylor@redhat.com>
1654 * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt:
1655 Add a function, gdk_threads_init() that must be explicitely
1656 called to enable the GDK thread mutex.
1658 2001-10-22 Jakub Steiner <jimmac@ximian.com>
1660 * gtk/stock-icons/stock_stop.png: no body parts
1662 Sun Oct 21 23:27:00 2001 Owen Taylor <otaylor@redhat.com>
1664 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
1665 problem with g_return_if_fail return value.
1667 * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
1668 virtual atom code from the gdk-multihead branch, removing the per-display
1669 part. Virtualizing atoms needs to be done now to prevent compat
1670 breakage in direct Xlib accessing code in the future. (#62208)
1672 * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
1673 gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
1675 * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
1676 an opaque pointer type so the compiler catches attempts
1677 to mingle it with X atoms.
1679 * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
1680 gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
1681 gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
1682 gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
1683 tests/testdnd.c,tests/testselection.c:
1684 Fix up for above atom changes.
1686 * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
1687 now have the ability to add custom predefines.
1689 * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
1690 Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
1691 to gtk_clipboard_get().
1693 * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
1694 for GdkAtom => pointer change.
1696 * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
1697 atoms, fix for GdkAtom => pointer change.
1699 Mon Oct 22 00:26:46 2001 Kristian Rietveld <kristian@planet.nl>
1701 * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
1702 new function spin_button_get_arrow_size() instead.
1704 * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
1705 arrow was hardcoded, it's now variable.
1709 Sat Oct 20 18:16:04 2001 Manish Singh <yosh@gimp.org>
1711 * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
1712 PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
1715 Sat Oct 20 19:38:16 2001 Owen Taylor <otaylor@redhat.com>
1717 * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
1718 in favor of g_signal_*, gtk_object_* in favor of
1721 Fri Oct 19 18:35:22 2001 Manish Singh <yosh@gimp.org>
1723 * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
1724 from GObject now, we have to use the g_object_* functions, not
1727 Fri Oct 19 22:46:54 2001 Kristian Rietveld <kristian@planet.nl>
1729 * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
1730 nailed down now (this code is not yet ready for general consumption)
1732 Fri Oct 19 13:44:51 2001 Manish Singh <yosh@gimp.org>
1734 * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
1737 Fri Oct 19 15:34:06 2001 Owen Taylor <otaylor@redhat.com>
1739 * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
1741 Fri Oct 19 15:08:30 2001 Owen Taylor <otaylor@redhat.com>
1743 * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
1744 modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
1745 imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
1746 GObject, not GtkObject. (#62621)
1748 Fri Oct 19 12:49:12 2001 Owen Taylor <otaylor@redhat.com>
1750 * tests/testsocket.c: Remove now useless include of unistd.h,
1751 fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
1753 Fri Oct 19 12:24:32 2001 Owen Taylor <otaylor@redhat.com>
1755 * gdk/linux-fb/gdkfont-fb.c: Fix up for change to
1756 Pango font API. #61933. (Untested, even for compilation.)
1758 Fri Oct 19 11:24:58 2001 Owen Taylor <otaylor@redhat.com>
1760 * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
1761 export gtk_disable_setlocale(). (Caught by Sven Neumann)
1763 2001-10-18 Havoc Pennington <hp@redhat.com>
1765 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
1767 2001-10-18 Havoc Pennington <hp@redhat.com>
1769 * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
1770 to GTK_RUN_LAST, #50239
1772 2001-10-18 HideToshi Tajima <hidetoshi.tajima@sun.com>
1774 * gtk/gtkimmodule.c (match_locale):
1775 Support "*" for all locales with least priority
1776 when to select default im module, #58201
1778 2001-10-18 Matthias Clasen <matthiasc@poet.de>
1780 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode):
1783 * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
1785 * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
1787 * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
1788 gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
1789 gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
1790 gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
1791 gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
1792 Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
1793 and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
1795 * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
1797 * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
1798 Don't restrict the width of the spinbutton entry field
1799 to 10 digits. (#58681)
1801 Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
1803 * tests/testtreeflow.c: new test program for the tree.
1805 Thu Oct 18 14:22:10 2001 Jonathan Blandford <jrb@redhat.com>
1807 * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
1808 reported by (Oleg Maiboroda), #62600
1810 2001-10-18 Michael Meeks <michael@ximian.com>
1812 * gtk/gtkentry.c (gtk_entry_set_property),
1813 (gtk_entry_get_property): impl 'text'
1814 (gtk_entry_class_init): add the 'text' prop.
1815 (gtk_entry_insert_text): notify 'text' changed.
1816 (gtk_entry_delete_text): ditto.
1818 2001-10-17 Matthias Clasen <matthiasc@poet.de>
1820 * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
1821 Documentation updates.
1823 Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
1825 * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
1826 in truncating length of text to MAX_SIZE. (Found by
1827 Padraig O'Briain, #62055)
1829 Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
1831 * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
1832 MNEMONIC_ACTIVATE; signal was changed a long time
1835 * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale):
1836 Fix wrong return statement. (Reported by HideToshi
1839 * gtk/gtklabel.h (struct _GtkLabelClass): Remove
1840 left over select_all vfunc.
1842 Tue Oct 16 15:50:03 2001 Owen Taylor <otaylor@redhat.com>
1844 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
1845 a utility function to translate coordinates relative to
1846 one widget's allocation to coordinates relative to another
1847 widget's allocation.
1849 * gtk/gtkradiobutton.c: Add a special ->focus() implementation
1851 - only accepts external focus if there is no active
1852 member of the group or the button is active.
1853 - makes arrow keys move the active button as well
1855 - make tab tab out directly.
1856 This makes a radio button group act as a single focus location.
1859 * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
1860 it was only a small optimization that didn't matter and made
1861 things more complicated.
1863 * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
1864 sorter for FOCUS_TAB as we did for the other focus directions,
1865 sort by center of widgets, not upper-left corner. (Shouldn't
1868 * gtk/gtkcontainer.c: Restructure code to remove duplicate code
1869 from the different types of focusing: encapsulate sorting the
1870 widgets for the focus direction into one routine
1871 (gtk_container_focus_sort()) and then share the work of moving the
1872 focus between the different focus directions.
1874 * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
1875 work correctly with focus chains containing non-immediate
1876 children. Sorting was being done using allocation coordinates for
1877 each widget in the focus chain, and if there were intermediate
1878 window-widgets, these allocations would not be in the same
1881 Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
1883 * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
1884 mnemonic_activate function to option menu.
1886 2001-10-15 Murray Cumming <murrayc@usa.net>
1888 * gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:
1889 Corrected the type names used in some calls to g_signal_new().
1891 Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org>
1893 * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
1894 specs, use g_pattern_spec_equal() instead of direct field accesses.
1895 upon compressing two equal paths of the same type, the resulting
1896 priority has to be the maximum.
1897 * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
1898 GtkPathPriorityType enum and make it a macro.
1900 2001-10-12 Matthias Clasen <matthiasc@poet.de>
1902 * gtk/gtkwidget.c: Fix some doc comments.
1904 Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
1906 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
1909 2001-10-11 Matthias Clasen <matthiasc@poet.de>
1911 * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
1912 Remove stale gdk backend includes.
1914 2001-10-10 Michael Meeks <michael@ximian.com>
1916 * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
1917 and value_in_list properties.
1918 (gtk_combo_set_value_in_list): notify change.
1919 (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
1921 2001-10-11 James Henstridge <james@daa.com.au>
1923 * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
1924 that gtk+ can be built with automake 1.5 while not breaking
1925 things for automake 1.4.
1927 Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com>
1929 * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
1932 * gtk/gtkmain.c (gtk_disable_setlocale): Add function
1933 to disable calling setlocale (LC_ALL, "").
1935 * gtk/gtkmain.c (gtk_set_locale): Indicate in the
1936 docs that this function is not typically useful.
1938 * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}:
1939 Automatically initialize GDK for the current locale
1940 on gdk_init(). Don't reset locale to C when
1941 XSupportsLocale() fails.
1943 * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
1944 useless checks for UTF-8 locale breakage that mattered
1947 * examples/calendar/calendar.c
1948 tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to
1951 * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
1952 gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
1954 Wed Oct 10 21:13:46 2001 Kristian Rietveld <kristian@planet.nl>
1956 * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
1960 Wed Oct 10 01:19:04 2001 Jonathan Blandford <jrb@redhat.com>
1962 * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
1963 new function, #61923
1964 (gtk_tree_selection_path_is_selected): Ditto
1966 Tue Oct 9 17:40:24 2001 Jonathan Blandford <jrb@redhat.com>
1968 * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
1969 not a GtkObject. Thanks andersca.
1971 * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
1973 Tue Oct 9 14:50:51 2001 Jonathan Blandford <jrb@redhat.com>
1975 * gtk/gtktreeviewcolumn.c
1976 (gtk_tree_view_model_sort_column_changed): fix broken code.
1978 2001-10-08 Matthias Clasen <matthiasc@poet.de>
1980 * gtk/gtkselection.c: s/succesfully/successfully/g
1982 2001-10-08 Havoc Pennington <hp@pobox.com>
1984 * demos/gtk-demo/stock_browser.c: remove unused enum
1986 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
1987 pass the current selection state of the node in to the user
1990 2001-10-06 Matthias Clasen <matthiasc@poet.de>
1992 * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to
1993 non-existent function gdk_x11_cursor_get_xid
1994 by gdk_x11_cursor_get_xcursor.
1996 Fri Oct 5 20:50:00 2001 Jonathan Blandford <jrb@redhat.com>
1998 * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
2001 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
2002 unref nodes, #okay61676
2004 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
2005 to the property; no need to clear the other columns. Also, we go
2006 to 'unsorted' if the model supports it.
2008 2001-10-05 Sven Neumann <sven@gimp.org>
2010 * demos/testpixbuf-save.c
2011 * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
2014 Fri Oct 5 19:06:07 2001 Kristian Rietveld <kristian@planet.nl>
2016 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
2017 destroy the search dialog
2019 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2020 added check to prevent creation of a search dialog if there's
2023 * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
2024 it instead of "search-dialog" (when getting/setting the search dialog
2027 2001-10-05 Jakub Steiner <jimmac@ximian.com>
2029 * gtk/stock-icons/stock_broken_image.png: broken images icon
2031 2001-10-04 Havoc Pennington <hp@pobox.com>
2035 * gtk/gtksettings.c (gtk_settings_class_init): move the F10
2036 accelerator setting here...
2038 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
2039 because we try to use it when a menu bar hasn't necessarily been
2042 2001-10-03 Havoc Pennington <hp@redhat.com>
2044 * tests/testtextbuffer.c (logical_motion_tests): fix test case,
2045 it previously verified incorrect behavior
2049 * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
2051 (_gtk_text_btree_get_iter_at_line_char): don't return lines off
2053 (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
2055 (gtk_text_iter_forward_lines): if on the last line, move to end of
2058 * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
2059 don't return a line off the end
2061 Wed Oct 3 23:47:25 Kristian Rietveld <kristian@planet.nl>
2063 * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
2064 functions to do_insert_text and do_delete_text, add signals
2065 insert_text, delete_text and changed
2067 * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
2068 and changed. Updates to match new situation.
2070 * gtk/gtkspinbutton.c: updates to match new situation
2072 * gtk/gtkoldeditable.h: remove signals changed, insert_text
2075 * gtk/gtkoldeditable.c: updates to match new situation
2077 * gtk/gtktext.c: updates to match new situation
2081 2001-10-03 Havoc Pennington <hp@redhat.com>
2083 * gtk/gtktextiter.c (test_log_attrs): allow testing the end
2086 * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
2089 * tests/testtextbuffer.c (logical_motion_tests): updates
2091 2001-10-03 jacob berkman <jacob@ximian.com>
2093 * gtk/gtkwidget.c (gtk_widget_style_get_property):
2094 * gtk/gtkstyle.c (_gtk_style_peek_property_value):
2095 * gtk/gtksettings.c (apply_queued_setting):
2096 * gtk/gtkmain.c (gtk_init_check):
2097 * gtk/gtkcontainer.c (gtk_container_child_get_property):
2100 Wed Oct 3 20:29:29 2001 Kristian Rietveld <kristian@planet.nl>
2102 * gtk/gtktreemodelsort.[ch]: preparation for surgery
2103 * tests/testtreesort.c: ditto
2105 2001-10-02 Havoc Pennington <hp@redhat.com>
2107 Throughout: assorted docs
2109 * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
2110 gdk_window_set_geometry_hints() should be used instead.
2112 * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
2115 * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
2116 seem to exist in any .c files
2118 * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs,
2119 g_return_if_fail (pixel < colormap->size).
2121 Wed Oct 3 10:42:54 2001 Owen Taylor <otaylor@redhat.com>
2123 * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
2124 NULL for @target_list to mean, use
2125 gtk_drag_dest_get_target_list (widget).
2127 * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
2128 drop could hang when calling gtk_drag_finish with
2129 success == FALSE and del == TRUE.
2131 * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
2132 drops without a matching target found would propagate
2133 to the parent widget rather than being rejected.
2135 * gtk/gtktextview.c (gtk_text_view_drag_data_received):
2136 Use text_view->dnd_mark instead of mark name to be
2137 consistent with the rest of the code.
2139 * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
2140 pendantically correct for a drop-only-in-some-places
2141 widget. (Check whether you can insert in drag_drop,
2142 not just in drag_motion ... matters in theory, and
2143 for Motif drag and drop in practice.)
2145 * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from
2146 Damian Ivereigh to not allow drops on non-editable
2149 * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
2150 text to be moved from a non-editable entry.
2152 2001-10-03 James Henstridge <james@daa.com.au>
2154 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
2155 s/width/fixed_width/ in order to get things to compile.
2157 Wed Oct 3 00:37:09 2001 Jonathan Blandford <jrb@redhat.com>
2159 * gtk/gtkcelleditable.c: docs
2161 * gtk/gtktreemodel.h: more docs.
2163 2001-10-02 Havoc Pennington <hp@redhat.com>
2165 * gdk/x11/gdkwindow-x11.c: docs
2167 * tests/testtextbuffer.c (logical_motion_tests): add sentence
2170 Tue Oct 2 20:18:32 2001 Kristian Rietveld <kristian@planet.nl>
2172 * demos/gtk-demo/Makefile.am: add editable_cells.c,
2173 list_store.c and tree_store.c
2175 * demos/gtk-demo/appwindow.c: remove tearoff item from
2176 File menu, put menubar and toolbar in handle boxes.
2178 * demos/gtk-demo/genincude.pl: various changes to support trees
2180 * demos/gtk-demo/main.c: various changes to support trees
2182 * demos/gtk-demo/stock_browser.c: changed name of demo
2183 to Stock Item and Icon Browser, so geninclude.pl doesn't see
2186 * demos/gtk-demo/editable_cells.c: new file/demo
2187 * demos/gtk-demo/list_store.c: new file/demo
2188 * demos/gtk-demo/tree_store.c: new file/demo
2190 Mon Oct 1 16:05:44 2001 Owen Taylor <otaylor@redhat.com>
2192 * gtk/gtkrc.c gtk/gtksettings.c:
2193 g_string_printfa => g_string_append_printf.
2195 Mon Oct 1 16:08:23 2001 Jonathan Blandford <jrb@redhat.com>
2197 * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
2198 and destroy handler.
2200 * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
2202 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
2203 'start_editing' flag to select_cursor_row. Bug spotted by Manish
2204 Singh <yosh@gimp.org>.
2206 2001-10-01 Matthias Clasen <matthiasc@poet.de>
2208 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
2209 g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
2211 * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
2213 Mon Oct 1 14:07:02 2001 Jonathan Blandford <jrb@redhat.com>
2215 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
2216 scroll_to_cell delayed code to happen in size_allocate.
2218 * gtk/gtkstyle.c (gtk_default_draw_expander): change
2219 prelight/normal arrow drawing.
2221 * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
2223 * gtk/gtktreestore.c: refactor.
2225 Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
2227 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
2228 patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
2229 centers the child in relation to the to indicator height.
2231 Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
2233 * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
2236 Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
2238 * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
2239 property code using g_param_spec_int and changed from
2240 g_value_get_enum to g_value_get_int instead. Probably a better way
2241 to fix the problem :-)
2243 Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
2245 * gtk/gtkcellrenderertext.c changed "weight" property type from
2246 g_param_spec_int to g_param_spec_enum.
2248 Sat Sep 29 12:25:26 2001 Manish Singh <yosh@gimp.org>
2250 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
2251 fix: s/Wether/Whether/ in reorderable property description
2253 Thu Sep 27 16:46:36 2001 Jonathan Blandford <jrb@redhat.com>
2255 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
2256 start editing when you select with a keyboard.
2258 (gtk_tree_view_button_press_event): much more graceful now.
2260 * gtk/gtkstyle.c: Draw togglebutton better.
2262 2001-09-26 Havoc Pennington <hp@redhat.com>
2264 * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
2265 of passing non-stock label in to gtk_dialog_new_with_buttons
2267 * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
2270 * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
2273 * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
2274 exist, fall back to mnemonic label, not plain label, bug #61184
2276 Wed Sep 26 19:48:01 2001 Jonathan Blandford <jrb@redhat.com>
2278 * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
2279 stupid and emitting the signal every time.
2281 * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
2283 Wed Sep 26 16:35:59 2001 Owen Taylor <otaylor@redhat.com>
2285 Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
2287 * contrib/gdk-pixbuf-xlib/Makefile.am: install
2288 gdk-pixbuf-xlib-2.0.pc.
2290 Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
2292 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
2293 problem where menmonic wasn't removed properly when
2294 setting a label when there already is a label.
2295 Also, handle setting the tab label back to the same
2296 value. (#61160, #61161)
2298 * gtk/gtkentry.c (paste_received): Patch from
2299 Damian Ivereigh to replace selection if there is
2302 2001-09-25 Darin Adler <darin@bentspoon.com>
2304 * tests/.cvsignore: Ignore new test program.
2306 2001-09-25 Havoc Pennington <hp@redhat.com>
2308 * gtk/gtktextview.c: fix for #50317
2310 2001-09-25 Havoc Pennington <hp@redhat.com>
2312 * gtk/gtktextview.c (gtk_text_view_key_press_event): use
2313 gtk_text_iter_can_insert
2315 * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
2317 * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
2318 (gtk_text_iter_can_insert): new function to fix #60282, should
2319 also fix msw's "can paste into empty buffer" bug.
2321 * gtk/gtktexttag.c (gtk_text_tag_event): change type check for
2322 "event object," #59091
2324 * gtk/gtktextbtree.c: indentation fixes
2326 * gtk/gtktextiter.c (find_by_log_attrs): fixes
2328 Tue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com>
2330 * configure.in: Version 1.3.9, interface age 0, binary age 0.
2332 * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
2336 Mon Sep 24 11:59:09 2001 Owen Taylor <otaylor@redhat.com>
2338 * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
2339 function for drawing cursors between gtkentry/gtklabel/gtktextview.
2340 Should this be public? It has a bit of an odd interface, but
2341 custom editing widgets probably should be using it.
2342 Function will draw with wider width for taller cursors, and
2343 draws a little indicator arrow to indicate directoin for split
2346 * gtk/gtktextview.c: Add a "cursor_color" property.
2348 * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
2349 gtk_text_layout_draw().
2351 * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
2352 _gtk_draw_insertion_cursor().
2354 Tue Sep 25 11:22:23 2001 Owen Taylor <otaylor@redhat.com>
2356 * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
2357 the behavior where you could turn family_set (etc) back on
2358 and get back the values you had before.
2360 * demos/gtk-demo/stock_browser.c (id_to_macro): Use
2361 g_string_ascii_up() rather than looping through the
2364 Tue Sep 25 15:32:44 2001 Jonathan Blandford <jrb@redhat.com>
2366 * gtk/gtktreeviewcolumn.c
2367 (gtk_tree_view_column_set_cell_renderer): Removed
2368 (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0); Fixes 61012.
2370 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
2371 Patch from Detlef Reichl
2373 2001-09-25 Havoc Pennington <hp@redhat.com>
2375 * tests/testtextbuffer.c (line_separator_tests): Add tests for
2376 line separators, addresses bug #57428
2378 Tue Sep 25 12:34:42 2001 Jonathan Blandford <jrb@redhat.com>
2380 * gtk/gtkentry.c: Make a GtkCellEditable
2381 (get_widget_window_size): Change to let it honor size_allocate
2382 when a CellEditable.
2384 * gtk/gtktreeview.c: M-x clean-line-ends. Lots of focus and
2386 (gtk_tree_view_set_cursor): Now you can set the cursor
2387 horizontally, as well as start editing.
2389 * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
2390 code to look more like the other check buttons.
2392 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
2393 Change the way we calculate cell size.
2395 * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
2397 * demos/gtk-demo/sizegroup.c: Add mnemonics.
2399 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
2402 * gtk/gtkcellrenderertext.c: Change to be editable.
2404 * gtk/gtkcellrenderertoggle.c: Change to be activatable.
2406 * test/testtreesort.c: Fix misspelling
2408 * test/testreecolumns.c: Add mnemonics.
2410 * test/testreeedit.c: New test program.
2412 2001-09-25 Havoc Pennington <hp@pobox.com>
2414 * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
2415 etc. docs about how these are not going to do what you want for
2416 the X/win32 ports. Futile attempt to avoid a FAQ...
2418 2001-09-24 James Henstridge <james@daa.com.au>
2420 * gtk/gtkmarshal.list (VOID): add marshal function types.
2422 * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
2423 GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
2425 (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
2426 with no-op copy/free functions.
2428 * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
2429 GtkCTreeNode get_type function.
2431 2001-09-24 Havoc Pennington <hp@redhat.com>
2433 * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
2435 Get rid of the newline-that-could-not-be-deleted; buffers may
2436 now be zero-length. Much easier to fix than expected, once
2437 I figured out the right way to do it. However, there are
2438 various subtle bugs introduced by this that will have to get
2439 sorted out. Please use bugzilla.
2441 Mon Sep 24 15:09:08 2001 Owen Taylor <otaylor@redhat.com>
2443 * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
2444 response back from the window manager if our size hasn't changed
2445 since we won't get a response back from the window manager;
2446 there was code in there to do this, but it was in the wrong
2447 place so if the hints change and the size didn't we'd expect
2450 Also, optimize the position-only-changed case by running
2451 the resize queue immediately, and clean up some comments
2454 Mon Sep 24 12:48:25 2001 Owen Taylor <otaylor@redhat.com>
2456 * gtk/gtknotebook.h: Add a compat macro that got lost.
2458 * gtk/gtktreestore.c: Doc fixes.
2460 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
2461 leak for windows that receive events after being destroyed.
2462 (#60863, Joshua N. Pritikin)
2464 * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
2465 rather than gtk_container_queue_resize().
2467 * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
2468 gtk_container_queue_resize, gtk_container_queue_resize_widgets,
2469 gtk_container_child_composite_name. (#60217.)
2471 2001-09-22 Hans Breuer <hans@breuer.org>
2473 * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
2475 Sat Sep 22 16:50:34 2001 Kristian Rietveld <kristian@planet.nl>
2477 * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
2478 weight value should be an int
2480 Sat Sep 22 15:17:41 2001 Kristian Rietveld <kristian@planet.nl>
2482 * gtk/gtkmenu.c (gtk_menu_select_item): move most code
2483 to gtk_menu_scroll_item_visible(). Only call
2484 gtk_menu_scroll_item_visible() if the menu widget has been
2485 realized. Fixes bug #55310.
2487 2001-09-21 Havoc Pennington <hp@redhat.com>
2489 * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
2490 key press to IM context if cursor isn't in an editable location;
2491 bug #58425, patch from Hidetoshi Tajima
2493 2001-09-21 Havoc Pennington <hp@redhat.com>
2497 * gtk/gtktextbtree.c (gtk_text_btree_node_destroy):
2498 (_gtk_text_btree_unref): fix up mark memory management
2500 * gtk/gtktextmark.c (mark_segment_delete_func): ditto
2502 2001-09-20 Havoc Pennington <hp@redhat.com>
2504 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
2505 try to handle alignment here, because it's done by PangoLayout
2506 after we set the layout width. Fix from Dov.
2508 2001-09-21 Hans Breuer <hans@breuer.org>
2511 * gtk/gtk.def : updated externals
2513 * gtk/gtkmain.h : define get_gtk_win32_directoty ()
2514 * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
2515 Also handle that Win32 pathes cann't be hard-coded
2517 * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
2518 module, themes etc directory calculations
2520 * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
2521 >16 bit right. The size limit within Win9x appears _not_ to be 32767
2522 but slightly smaller ...
2524 * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid
2525 >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
2527 * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
2529 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
2530 handling. I'm not sure if it is better now, but at least not worse
2532 * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
2534 * gdk/win32/gdkwin32.h : reflect recent API restrictions
2536 2001-09-21 Matt Wilson <msw@redhat.com>
2538 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
2539 radio_menu_item->group to NULL after removing it from the list, as
2540 it is no longer in the group. (#60869)
2542 * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
2544 2001-09-20 Havoc Pennington <hp@pobox.com>
2546 * configure.in (PANGO_REQUIRED_VERSION)
2547 (ATK_REQUIRED_VERSION): add variables and checks for specific
2548 versions of dependencies. Previously we didn't verify the
2549 Pango or ATk versions.
2551 2001-09-09 Havoc Pennington <hp@pobox.com>
2553 * gtk/gtktextiter.c: fool with indentation
2554 (gtk_text_iter_in_range): add g_return_if_fail
2556 Thu Sep 20 17:45:54 2001 Joshua N Pritikin <vishnu@pobox.com>
2558 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
2559 ref count on new tag to be 1. Update doc. (#60836)
2561 Thu Sep 20 16:20:47 2001 Owen Taylor <otaylor@redhat.com>
2563 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
2564 call to gdk_image_new_bitmap(). (#59094, reported by
2567 Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
2569 * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
2570 day, as well as the current month and year.
2571 (#59047, reported by Vitaly Tishkov)
2573 Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
2575 * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
2576 set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
2578 Thu Sep 20 18:00:56 2001 Kristian Rietveld <kristian@planet.nl>
2580 * tests/testgtk.c (struct OptionMenuItem): get rid of it,
2582 (build_option_menu): add func argument, connect ::changed
2583 signal to option menu instead of connecting the ::activate
2584 signal to the menu items,
2586 (toplevel): get rid of RADIOMENUTOGGLED macro,
2588 (list_toggle_sel_mode), (clist_toggle_sel_mode),
2589 (ctree_toggle_line_style), (ctree_toggle_expander_style),
2590 (ctree_toggle_justify), (ctree_toggle_sel_mode),
2591 (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
2592 use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
2594 (notebook_type_changed): merged standard_notebook(),
2595 notabs_notebook(), scrollable_notebook() and borderless_notebook()
2596 into notebook_type_changed()
2598 (create_list), (create_ctree), (create_notebook),
2599 (create_progress_bar): changed OptionMenuItem arrays into
2600 gchar * arrays. Removed "Extended" item where used.
2604 2001-09-20 Sven Neumann <sven@gimp.org>
2609 * gtk/gtkselection.c
2611 * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
2613 Thu Sep 20 11:19:42 2001 Owen Taylor <otaylor@redhat.com>
2615 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
2616 a missing pango_layout_iter_free ().
2618 Thu Sep 20 11:03:51 2001 Owen Taylor <otaylor@redhat.com>
2620 * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
2621 gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
2623 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
2624 the function definition so we don't accidentally rely on
2625 the compat #define from gtk_radio_menu_item_group.
2626 (#60782, Jeff Franks)
2628 Thu Sep 20 16:51:02 2001 Kristian Rietveld <kristian@planet.nl>
2630 * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
2631 incorrect values for top, right and bottom due to cut-and-paste
2632 bug. Pointed out by Vitaly Tishkov, fixes bug #59008
2634 Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
2636 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
2637 _NET_WM_PID and WM_CLIENT_MACHINE properties on each
2638 window, not just on the client leader. (#58463)
2640 Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
2642 * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
2644 * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
2645 non-public _gtk_menu_item_set_placement.
2647 * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
2649 Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
2651 * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c
2652 gdk/linux-fb/gdkcolor-fb.c:
2653 Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
2656 Wed Sep 19 16:12:16 2001 Owen Taylor <otaylor@redhat.com>
2658 * gdk/gdkpixbuf-render.c: Allow -1 for width/height
2659 to mean "width/height of pixbuf" (Patch from Matthias Clasen,
2662 Wed Sep 19 16:01:27 2001 Owen Taylor <otaylor@redhat.com>
2664 Patch from Frank Belew #59037 for Solaris compilation.
2666 * gtk/maketypes.awk: Change syntax slightly for a call
2667 to sub(), apparently making awk on Solaris happier.
2669 * gtk/gtktreeview.c: Remove C++ comments.
2671 Wed Sep 19 15:46:29 2001 Owen Taylor <otaylor@redhat.com>
2673 * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
2674 to handle '99% of the time. (#60473, reported by Christian Rose)
2676 * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
2677 which no longer exists. (#60379, reported by Vitaly Tishkov)
2679 Wed Sep 19 11:06:24 2001 Tim Janik <timj@gtk.org>
2683 * gdk/Makefile.am: kill EXTRA_DIST clearing.
2685 Wed Sep 19 02:50:40 2001 Tim Janik <timj@gtk.org>
2687 * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
2688 as its broken in automake 1.4, add explicit object rule to
2691 * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
2692 get rid of uneccessary stamps, group stuff more logically, and build
2693 sources due to object rules. fix srcdir!=builddir.
2695 Tue Sep 18 20:47:16 2001 Owen Taylor <otaylor@redhat.com>
2697 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix
2698 incorrect parameter to compute_double_length
2699 (#58680, patch from Matthias Clasen)
2701 Fixes for compilation with Forte cc. (#59734, Derek Rafter)
2703 * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
2705 * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
2706 for GDK_RELEASE_MASK to avoid warnings with Forte.
2708 * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
2711 2001-09-18 Alex Larsson <alexl@redhat.com>
2713 * gtk/gtkcheckbutton.c:
2714 * gtk/gtkradiobutton.c:
2715 Don't draw with GTK_STATE_ACTIVE.
2719 Draw lines between rows with base_gc[GTK_STATE_NORMAL].
2721 * gtk/gtktextdisplay.c:
2722 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2723 unfocused with base_gc [GTK_STATE_ACTIVE].
2726 Add select all menu-item.
2727 Default cursor color is red.
2728 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2729 unfocused with base_gc [GTK_STATE_ACTIVE].
2731 * gtk/gtklabel.[ch]:
2732 Add keynav + menu to selectable lables.
2733 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2734 unfocused with base_gc [GTK_STATE_ACTIVE].
2737 Add drag and drop support.
2740 (This was checked in earlier)
2741 New default values for text/base SELECTED and ACTIVE
2743 Tue Sep 18 23:51:49 2001 Tim Janik <timj@gtk.org>
2745 * configure.in: up version to 1.3.8, interface age 0,
2746 binary age 0, depend on glib 1.3.8.
2748 * NEWS: 1.3.8 updates.
2750 Tue Sep 18 18:46:54 2001 Jonathan Blandford <jrb@redhat.com>
2752 * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
2755 * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
2756 reason to call it beyond emiting the two signals.
2758 * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
2761 Wed Sep 12 11:21:14 2001 Owen Taylor <otaylor@redhat.com>
2763 * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
2764 gtk/gtktextview.c tests/testgtk.c: Fix up for changes to
2765 PangoFontDescription.
2767 * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
2768 gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
2771 * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
2773 * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
2774 direct access to style->font. Deprecate gtk_style_ref/unref.
2776 * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
2777 Remove gtk_style_ref/unref with g_object_ref/unref.
2779 * gtk/gtkcalendar.c: Remove leftover macros accessing
2782 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
2785 * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of
2788 Tue Sep 18 13:51:35 2001 Jonathan Blandford <jrb@redhat.com>
2790 * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
2791 "can_activate" properties in favor of
2792 GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
2793 and GTK_CELL_RENDERER_MODE_EDITABLE
2795 Tue Sep 18 12:12:43 2001 Jonathan Blandford <jrb@redhat.com>
2797 * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
2798 editable widgets. This function is private, and should only be
2799 used by GtkTreeView.
2801 2001-09-18 Matt Wilson <msw@redhat.com>
2803 * docs/Makefile.am (EXTRA_DIST): don't use += before =
2805 * docs/faq/Makefile.am (EXTRA_DIST): likewise
2807 * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
2809 * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
2810 (EXTRA_HEADERS): likewise
2812 * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
2813 (EXTRA_HEADERS): likewise
2814 (EXTRA_DIST): likewise
2815 (CLEANFILES): likewise
2817 * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
2819 * tests/Makefile.am (EXTRA_DIST): likewise
2821 * Makefile.am (install-data-local): changed to use
2822 install-data-hook, which runs after install-pkgconfigDATA, so that
2823 the pkgconfigdir will have been created and populated first.
2825 Mon Sep 17 17:39:52 2001 Jonathan Blandford <jrb@redhat.com>
2827 * gtk/gtkcelleditable.[ch]: Add editable interface. This should
2828 be the last big GtkTreeView API change.
2830 * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
2831 replace with "activate" and "start_editing". Also, added a
2832 "can_activate" and "can_edit" property.
2834 * gtk/gtktreeviewcolumn.c: modify to use above.
2836 2001-09-16 Alexander Larsson <alla@lysator.liu.se>
2838 * gtk/gtkoptionmenu.c: Handle scroll wheel events.
2840 Fri Sep 14 22:31:25 2001 Matthias Clasen <matthiasc@poet.de>
2842 * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
2843 icon instead of one with ugly white background.
2845 Fri Sep 14 22:26:01 2001 Matthias Clasen <matthiasc@poet.de>
2847 * demos/gtk-demo/stock_browser.c (id_to_macro): make
2848 the uppercasing work. (#59550)
2850 2001-09-14 Jakub Steiner <jimmac@ximian.com>
2852 * gtk/stock-icons/dialog_error.png:
2853 * gtk/stock-icons/dialog_question.png: more road signs
2855 2001-09-13 Jakub Steiner <jimmac@ximian.com>
2857 * gtk/stock-icons/dialog_question.png:
2858 * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
2861 Wed Sep 12 19:01:05 2001 Jonathan Blandford <jrb@redhat.com>
2863 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
2864 signals to make them more clear. Also, change ::range_changed to
2866 * gtk/gtktreemodel.c: Adjust to interface change
2867 * gtk/gtktreemodel.h: ditto
2868 * gtk/gtktreemodelsort.c: ditto
2869 * gtk/gtktreestore.c: ditto
2870 * gtk/gtkliststore.c: ditto
2871 * gtk/gtktreeview.c: ditto
2872 * tests/testtreecolumns.c: ditto
2873 * gtk/gtkmarshal.list: Actually remove a marshaller!
2875 2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
2878 Add support for Ctrl+Up/Down arrow to move cursor to beginning
2879 of previous/next paragraph. If within a paragraph cursor moves to
2880 beginning of that paragraph.
2882 2001-09-12 Jakub Steiner <jimmac@ximian.com>
2884 * gtk/stock-icons/dialog_question.png: replacing the shaky
2885 question mark with a sans-serif one.
2886 * gtk/stock-icons/stock_top.png, stock_bottom.png,
2887 stock_first.png, stock_last.png: using the new style arrows
2888 * gtk/stock-icons/stock_font.png: simple one to replace the ugly
2890 * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
2892 * gtk/stock-icons/stock_zoom*: anti-aliased
2893 * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
2894 '-' with a '_', removed the wrong files
2896 Sat Sep 8 16:19:02 2001 Owen Taylor <otaylor@redhat.com>
2898 * gtk/gtkmain.c: Implement a search path for GTK+ modules.
2900 * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
2901 in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
2902 than in gtk-2.0/major.minor.micro/<type>/. This
2903 works better for a search path for modules.
2905 * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
2906 gtk_binary_version variable holding major.minor.(micro-binary_age).
2908 * modules/input/Makefile.am (moduledir): Fix installation
2909 directory to match change in lookup location.
2911 * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll
2912 suffixes. Needs to be handled in g_module_build_path().
2914 * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
2917 Tue Sep 11 13:59:12 2001 Owen Taylor <otaylor@redhat.com>
2919 * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
2920 causing RC properties not to work.
2922 2001-09-11 Jakub Steiner <jimmac@ximian.com>
2924 * gtk/stock-icons/dialog-error.png: less drastic
2925 * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
2926 "STOP" is international enough.
2927 * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
2928 * gtk/stock-icons/stock_menu_properties.png: 16x16 version
2930 Mon Sep 10 21:26:24 2001 Joshua N Pritikin <vishnu@pobox.com>
2932 * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
2933 (add|remove)_selection_clipboard symmetric. (bug #59836)
2935 * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree):
2936 Avoid SEGV for empty tree. (bug #60243)
2938 Mon Sep 10 20:47:22 2001 Tim Janik <timj@gtk.org>
2940 * tests/testgtk.c (create_idle_test): slight fix for
2941 g_object_set() not usable for nesting anymore.
2943 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
2944 * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
2945 properties, supply ::shadow_type properties instead as most
2948 2001-09-10 Alex Larsson <alexl@redhat.com>
2950 * demos/gtk-demo/stock_browser.c:
2955 * gdk/gdkrectangle.c:
2956 * gtk/gtktypeutils.c:
2957 Update to use the new g_boxed_type_register_static API.
2959 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
2961 * gtk/gtktreestore.c:
2962 Fix looping in gtk_tree_store_init() waiting for zero random int.
2964 Mon Sep 10 16:55:49 2001 Tim Janik <timj@gtk.org>
2966 * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
2967 behaviour which havoc broke. they have to default to 1.0 for
2970 * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
2972 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
2974 * gtk/gtkstyle.c (_gtk_style_peek_property_value)
2975 Amend previous change to avoid runtime error in g_param_spec_ref()
2977 Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
2979 * gtk/gtkrc.c (insert_rc_property): Fix blank line
2982 Mon Sep 10 06:50:39 2001 Owen Taylor <otaylor@redhat.com>
2984 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
2985 do a lookup immediately after creating style->property_cache,
2986 since bsearch crashes on zero length for Solaris.
2987 (Found by Padraig O'Briain.)
2989 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
2991 * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
2992 Really return NULL if not set.
2993 (gtk_widget_init): Remove unused varaible.
2995 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
2998 Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
3001 2001-09-08 Havoc Pennington <hp@pobox.com>
3003 * gtk/gtkaccelgroup.c: add docs to functions that I can imagine
3004 people might want to use
3006 2001-09-08 Havoc Pennington <hp@pobox.com>
3008 * gtk/gtkalignment.c (gtk_alignment_class_init): default
3009 xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
3011 * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
3013 * gtk/gtktextiter.c: fix docs
3014 (gtk_text_iter_spew): get rid of this
3016 * gtk/gtklayout.c: docs
3018 * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
3019 to center image and label together, instead of having image on
3020 left and label centered, patch/suggestion from Jacob
3022 * gtk/gtkdialog.c: docs
3024 Sat Sep 8 14:19:49 2001 Jonathan Blandford <jrb@redhat.com>
3026 * gtk/gtkliststore.c: Write documentation
3027 * gtk/gtktreestore.c: Write documentation
3029 Sat Sep 8 13:53:09 2001 Owen Taylor <otaylor@redhat.com>
3031 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
3032 with GArray and bsearch(), to remove dependency on a still
3033 evolving interface that we want to keep private to glib/gobject.
3035 2001-09-08 Havoc Pennington <hp@pobox.com>
3037 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
3040 * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
3042 * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
3044 * gtk/gtksocket.c (gtk_socket_steal): docs fixes
3046 * gtk/gtkscrolledwindow.h: docs fixes
3048 * gtk/gtkimage.c (gtk_image_new): docs fixes
3050 Sat Sep 8 01:49:22 2001 Owen Taylor <otaylor@redhat.com>
3052 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a
3053 false alarm constness warning with a cast.
3055 * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
3056 for the inside-gdk case.
3058 Sat Sep 8 01:44:18 2001 Jonathan Blandford <jrb@redhat.com>
3060 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
3063 * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
3064 change models, #59899
3066 2001-09-07 Havoc Pennington <hp@pobox.com>
3068 * gtk/gtkmain.c: move some docs inline
3070 2001-09-07 Havoc Pennington <hp@pobox.com>
3072 * gtk/gtk.h: tsk tsk, jrb broke the build
3074 Fri Sep 7 20:45:29 2001 Jonathan Blandford <jrb@redhat.com>
3076 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
3077 Removed 'fill' attribute. It was silly b/c that was a property of
3078 the cell renderer, anyway.
3079 (gtk_tree_view_column_render): Actually render the packed
3081 * doc/tree-column-sizing.txt: initial devel documentation.
3082 * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
3083 * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
3085 * tests/testtreefocus.c: fix up to reflect above changes.
3086 * tests/testtreeview.c: ditto
3087 * demos/gtk-demo/stock_browser.c: ditto
3089 2001-09-07 Alex Larsson <alexl@redhat.com>
3091 * gdk/linux-fb/gdkcolor-fb.c:
3092 Removed unused function.
3094 * gdk/linux-fb/gdkdrawable-fb2.c
3095 * gdk/linux-fb/gdkfont-fb.c:
3096 Use PangoLanguage functions.
3098 * gdk/linux-fb/gdkinput.c:
3099 * gdk/linux-fb/gdkselection-fb.c:
3102 * gdk/linux-fb/gdkwindow-fb.c:
3103 Fix warning. Implement gdk_window_set_icon_list() and
3104 gdk_window_get_frame_extents(). (No icon support yet though.)
3106 * gtk/gtkwindow.c (gtk_window_get_position):
3107 If window->frame is set get the extents of it instead.
3109 Fri Sep 7 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
3111 * gtk/gtkwidget.c (gtk_widget_get_default_colormap):
3112 Make the default default colormap the GdkRGB colormap,
3113 not the system colormap.
3115 * gtk/gtkinvisible.c (gtk_invisible_init)
3116 gtk/gtkwindow.c (gtk_window_init): Set the current
3117 colormap, as returned by _gtk_widget_peek_colormap()
3120 * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
3121 to GTK+. Make it return %NULL instead of the default
3122 colormap if no colormap has explicitely been pushed.
3124 * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
3125 colormaps on ancestral widgets before defaulting the
3126 the system default colormap.
3128 * docs/Changes-2.0.txt: explain colormap changes.
3130 2001-09-07 Havoc Pennington <hp@redhat.com>
3132 * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes
3135 Fri Sep 7 18:17:47 2001 Owen Taylor <otaylor@redhat.com>
3137 * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm,
3138 make gdk_set_use_xshm a noop. Remove --no-xshm command line
3139 option. If we aren't autodetecting properly, we need
3140 to fix the problem, or at least make it an environment
3141 variable setting, to avoid problems with propagating
3142 to embedded children, plugins, etc.
3144 * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
3146 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
3147 (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
3148 New function to render a pixmap and mask for a particular colormap.
3150 * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
3151 gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
3152 of internal implementation of the same.
3154 2001-09-07 Havoc Pennington <hp@redhat.com>
3156 * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
3157 debug code that seems to have caused a breakpoint in valid cases
3159 * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
3160 pointer on the first view when adding the second view, fixes
3161 crash when closing gtk-demo text test with active selection
3163 * gtk/gtktextbuffer.c
3164 (gtk_text_buffer_remove_selection_clipboard): don't leave dead
3165 clipboards in the list of clipboards - probably fixes #59836
3167 Fri Sep 7 11:51:44 2001 Owen Taylor <otaylor@redhat.com>
3169 Make gdkx.h the only installed header from gdk/x11.
3170 All structures in gdk/x11 are opaque.
3172 * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
3173 Don't install gdk{drawable,pixmap,window}-x11.h.
3175 * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
3176 Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
3177 GdkVisualClass into C files.
3179 * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
3181 * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
3182 gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
3183 Add public functions to replace previously exported direct
3185 gdk_x11_colormap_get_{xdisplay,xcolormap}
3186 gdk_x11_cursor_get_{xdisplay,xcursor},
3187 gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
3188 gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
3189 gdk_x11_gc_get_{xdisplay,ximage}
3191 * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
3192 GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
3194 Fix a number of variables and functions that were exported
3195 "accidentally" from GDK.
3197 * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
3198 gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit,
3199 gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
3200 gdk_event_notify, gdk_queued_events, gdk_queued_tail,
3201 gdk_event_new, gdk_events_queue, gdk_events_unqueue,
3202 gdk_event_queue_find_first, gdk_event_queue_remove_link,
3203 gdk_event_queue_append, gdk_event_button_generate,
3204 gdk_debug_flags, gdk_default_filters, gdk_parent_root.
3206 * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c,
3207 gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
3208 gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks,
3209 gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
3210 gdk_use_xshm, gdk_input_ignore_core.
3212 * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
3213 #defines to namespace functions into the private _gdk_
3216 * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
3217 to replace gdk_parent_root exported variable. Adjust and
3218 deprecate GDK_ROOT_PARENT().
3220 * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
3221 GDK_ROOT_PARENT usage, remove includes of port-specific
3224 * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for
3225 _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core,
3226 gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
3228 * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
3229 docs/Changes-2.0.txt: Remove gdk_wm_protocols,
3230 gdk_wm_delete_window functions, gdk_wm_take_focus,
3231 use gdk_atom_intern() instead.
3233 * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
3234 gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h}
3235 gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
3237 Unexport gdk_selection_property, just use
3238 gdk_atom_intern ("GDK_SELECTION").
3240 * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}:
3241 Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type,
3242 GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate,
3243 GdkVisualprivate, gdk_x11_gc_flush.
3245 Make a number of public exports of variables into functions
3246 to increase encapsulation.
3248 * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h
3249 gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer,
3250 move to gdkinternals.h. Add gdk_device_get_core_pointer ().
3252 * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
3253 docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code,
3256 * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
3257 docs/Changes-2.0.txt:
3258 s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
3259 s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
3260 Add gdk_x11_get_default_xdisplay().
3262 * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c
3263 win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c
3264 gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class,
3265 Don't export gdk_progclass, move --class command line
3266 option and handling to common portion of GDK.
3268 Miscellaneous fixes:
3270 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
3271 g_return_val_if_fail that should have been g_return_if_fail.
3273 * gdk/gdkinternals.h gdk/gdkprivate.h: Move
3274 gdk_synthesize_window_state() to the semi-public gdkprivate.h.
3276 * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
3279 * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO:
3280 Remove unused gdk_key_repeat_disable/restore.
3282 * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c
3283 x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
3284 Remove unused gdk_null_window_warnings variable.
3286 * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
3287 it can be retrieved from the repository; it is too far
3288 from functional to be worth having people check out;
3289 it would be easier to start from scratch, I suspect.
3291 * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
3293 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
3294 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
3295 Fix some accidentally global variables and unused global variables.
3297 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
3298 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
3299 Fix some accidentally global variables and unused global variables.
3301 Add some space for future expansion to multihead.
3303 * gdk/gdkdrawable.h: Add four reserved function pointers
3304 for future expansion of GdkDrawableClass.
3306 * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
3307 where we can put a GdkScreen * later.
3309 2001-09-07 Havoc Pennington <hp@redhat.com>
3311 * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
3312 adjustments after validating destination yrange; fixes #53918
3313 (This may cause other issues, but I hope it won't)
3315 2001-09-05 Havoc Pennington <hp@redhat.com>
3317 * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
3318 line into start line, update the character counts in parent nodes;
3319 caused a bug when end and start line had different parent nodes.
3321 2001-08-30 Havoc Pennington <hp@redhat.com>
3323 * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
3324 assertion that tag is in a table
3326 Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
3328 * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
3329 g_strcasecmp on NULL strings. (#59058)
3331 2001-09-06 Alex Larsson <alexl@redhat.com>
3335 * gtk/gtkspinbutton.c:
3336 * gtk/gtktipsquery.c:
3337 Use GtkType/GType instead of uint.
3339 Tue Sep 4 18:13:43 2001 Jonathan Blandford <jrb@redhat.com>
3341 * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
3344 * gtk/gtktreestore.c (gtk_list_store_init): ditto
3346 * gtk/gtktreesortable.c: add docs.
3348 Tue Sep 4 09:37:19 2001 Owen Taylor <otaylor@redhat.com>
3352 * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove
3355 * modules/input/Makefile.am (install-data-local): Don't
3356 run gtk-query-immodules if DESTDIR is set.
3358 * NEWS: Various additions.
3360 Tue Sep 4 03:12:25 2001 Tim Janik <timj@gtk.org>
3362 * NEWS: updates for 1.3.7 release.
3364 Mon Sep 3 18:03:56 2001 Jonathan Blandford <jrb@redhat.com>
3366 * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
3367 handle default sort feature
3369 * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
3370 new function to handle default sort.
3371 (gtk_tree_sortable_has_default_sort_func): check if default sort
3374 * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func):
3375 handle default sort feature
3377 Sun Sep 2 20:32:36 2001 Jonathan Blandford <jrb@redhat.com>
3379 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
3380 vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
3383 Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
3385 * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
3386 vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
3389 * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
3392 Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
3394 * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
3395 so that we don't eternally update the keymap after we
3396 get a change notification.
3398 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
3401 Sun Sep 2 23:27:16 2001 Kristian Rietveld <kristian@planet.nl>
3403 * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
3404 it working. It mostly works now, although there're still a few issues
3407 * tests/testtreesort.c (main): changes to have a better test
3408 application for the GtkTreeModelSort.
3410 Sun Sep 2 23:19:07 2001 Kristian Rietveld <kristian@planet.nl>
3412 * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
3415 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
3416 gpointer search_data argument to function definition and
3417 prototype, to match GtkTreeViewSearchEqualFunc typedef.
3419 Sat Sep 1 21:57:27 2001 Kristian Rietveld <kristian@planet.nl>
3421 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
3424 Fri Aug 31 20:01:23 2001 Jonathan Blandford <jrb@redhat.com>
3426 * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
3428 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
3430 Wed Aug 29 20:40:58 2001 Owen Taylor <otaylor@redhat.com>
3432 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard):
3433 Instead of always mirroring the selection to a single PRIMARY
3434 selection, allow it to be mirrored to any number of clipboards.
3436 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove,
3437 just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
3439 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
3440 GtkClipboard argument, and for paste_clipboard, the
3441 @override_location argument from @paste_primary.
3443 * gtk/gtktextview.c: Adapt to above change.
3445 2001-08-30 Havoc Pennington <hp@redhat.com>
3447 * gtk/gtktextview.c (invalidated_handler): put validate idle at
3448 resize - 2 just for flexibility
3450 2001-08-30 Havoc Pennington <hp@redhat.com>
3452 * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
3453 object from the empty-child-anchor case by drawing a little box.
3455 * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
3456 if the child anchor has no anchored widgets - fixes #59328.
3458 Also, remove bizarre deletion of preedit string that seems to have
3459 gotten in here somehow.
3461 2001-08-30 Havoc Pennington <hp@redhat.com>
3463 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
3464 to #58420 from Hidetoshi Tajima and Matthias Clasen
3466 Wed Aug 29 17:28:04 2001 Jonathan Blandford <jrb@redhat.com>
3468 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3469 change color when the GtkTreeView loses focus.
3471 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
3474 * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
3476 2001-08-28 Havoc Pennington <hp@pobox.com>
3478 * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
3480 2001-08-28 Havoc Pennington <hp@pobox.com>
3482 * demos/gtk-demo/main.c (setup_default_icon): add default icon
3484 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
3486 (gtk_radio_button_new_with_label): warning fix
3488 * gtk/gtkdnd.c: used some random GtkImage private structs,
3489 update to reflect GtkImage changes
3491 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
3492 whether the hint is supported, just always set the icon. A task
3493 list might want to use it even if the WM doesn't, and the WM may
3494 change over time. Also, XDeleteProperty() if list == NULL.
3496 * gtk/gtkwindow.c (gtk_window_set_icon_list)
3497 (gtk_window_get_icon_list)
3498 (gtk_window_set_icon)
3499 (gtk_window_get_icon)
3500 (gtk_window_set_default_icon_list)
3501 (gtk_window_get_default_icon_list):
3504 * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
3506 * gtk/gtkimage.c: Implement property support, bug #59408
3508 * gtk/gtkcontainer.c (gtk_container_add): make the warning message
3509 on reparent-without-removing-first a bit more helpful.
3510 Let's just destroy this FAQ.
3512 Tue Aug 28 21:37:11 2001 Matthias Clasen <matthiasc@poet.de>
3514 * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
3515 instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
3517 Tue Aug 28 21:00:44 2001 Matthias Clasen <matthiasc@poet.de>
3519 * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
3520 of use_text_format to the end of the function. (#56447)
3522 Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
3524 * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
3525 only in response to an area_prepared signal.
3527 2001-08-28 Alex Larsson <alexl@redhat.com>
3529 * gtk/gtkwidget.c (gtk_widget_class_init):
3530 Make unrealize GTK_RUN_LAST.
3532 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
3534 * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
3535 with_label and with_mnemonic should create radio buttons, not
3538 Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
3540 * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
3541 * tests/treestoretest.c (make_window): ditto
3542 * demos/gtk-demo/main.c (create_tree): ditto
3543 * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
3545 Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
3547 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
3548 GTK selection types rather than GtkTreeSelectionMode.
3550 * docs/Changes-2.0: Add comment about selection change.
3552 Mon Aug 27 14:21:30 2001 Jonathan Blandford <jrb@redhat.com>
3554 * gtk/gtkenums.h (GtkSelectionMode): deprecate
3555 GTK_SELECTION_EXTENDED.
3557 * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
3558 Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
3560 * gtk/gtkctree.c: ditto
3562 * gtk/gtklist.c: ditto
3564 * gtk/gtktree.c: ditto
3566 Mon Aug 27 14:18:12 2001 Owen Taylor <otaylor@redhat.com>
3568 * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
3569 of typos in compat macros. (#59624, Skip Montaro)
3571 Sun Aug 26 20:00:00 2001 Owen Taylor <otaylor@redhat.com>
3573 * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
3576 (patch from ERDI Gergo <cactus@cactus.rulez.org>, #58920)
3578 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
3579 interface to be a standard setter from gtk_menu_item_right_justify.
3580 (gtk_menu_item_get_right_justified): a getter to go with the setter
3582 * gtk/gtkmenuitem.h: Add a deprecated compat macro for
3583 gtk_menu_item_right_justify.
3585 * demos/gtk-demo/menus.c tests/testgtk.c: Switch to
3586 gtk_menu_item_set_right_justified.
3588 2001-08-27 Jens Finke <jens@gnome.org>
3590 * gtk+.spec.in: Updated to match gpp requirements, reworked the
3591 files section to make it work with 1.3.x releases.
3593 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
3595 * gtk/gtkbutton.[ch]:
3596 Add properties for labels, mnemonics and stock items.
3597 Added C accessor functions for the properties.
3598 Removed deprecated button->child.
3600 * gtk/gtkradiobutton.c:
3601 * gtk/gtktogglebutton.c:
3602 Update to use the functions in GtkButton.
3604 * gtk/gtkcheckbutton.c:
3605 Update to use the functions in GtkButton.
3606 Changed size allocation of child. Now only gets as much
3607 space as it requests.
3610 Don't use GtkButton->child
3615 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
3618 * tests/Makefile.am:
3619 Ressurect the properties test.
3620 I don't care if it is inferior, I just want to test my property code.
3622 2001-08-25 Chema Celorio <chema@celorio.com>
3624 * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
3625 gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
3626 and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
3628 2001-08-24 Havoc Pennington <hp@pobox.com>
3630 * gtk/gtkcompat.h: remove gtk_menu_* compat defines;
3631 these are already in gtkmenu.h, and the copies
3634 Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
3636 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
3637 special-case bitmaps to allow no colormap
3638 (bitmap1): implement no-colormap bitmap-getting
3639 (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
3642 (rgb1a, rgb1): change the way we read the data out of the image,
3643 old way didn't seem to work quite right.
3645 I'm pretty sure a lot of the rgbconvert code is still broken.
3647 * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
3648 above position constraint (I really intended to do this before,
3649 don't know what's up with that)
3650 (gtk_XParseGeometry): shut up gcc
3652 * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
3653 and "0" should have been. remove the attempted 4-bytes-at-once
3654 optimization, it was totally broken.
3656 Sat Aug 25 19:02:39 2001 Owen Taylor <otaylor@redhat.com>
3658 * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
3659 on push to buttons (based on patch from Soeren Sandmann, #54720)
3661 - Add child_displacement_x/y style properties to control how far the
3662 child moves when the button is depressed.
3664 - Add non-exported function _gtk_button_set_depressed to clean
3665 up the handling of the in/out shadow and separate it frmo
3668 - Lots of code cleanup and simplification of state handling
3669 for GtkButton/GtkToggleButton.
3671 * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
3672 of button movement. testgtk + testgtkrc == test ugly GTK+, as always.
3674 Fri Aug 24 23:09:05 2001 Owen Taylor <otaylor@redhat.com>
3676 * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility
3677 and make gtk_image_new() take no arguments. The compiler will
3678 catch it, and it is vastly more useful than having
3679 gtk_image_new() be a deprecated alias for gtk_image_new_from_image().
3681 * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
3682 to add tearoff-title property (#51319, Lee Mallabone)
3684 Fri Aug 24 22:12:32 2001 Owen Taylor <otaylor@redhat.com>
3686 * gtk/gtkmenuitem.[ch]: Remove unused and useless function
3687 gtk_menu_item_configure(). (#58925)
3689 Fri Aug 24 16:03:45 2001 Jonathan Blandford <jrb@redhat.com>
3691 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
3692 "use_align" to give people the option to just make a cell visible.
3694 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
3695 we were scrolling past the end of the tree.
3697 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
3698 rename gtk_tree_view_column_pack_start_cell_renderer to
3699 gtk_tree_view_column_pack_start. Same for pack_end, and clear.
3701 Fri Aug 24 12:02:08 2001 Owen Taylor <otaylor@redhat.com>
3703 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
3704 a stray g_object_ref() left over from gtk_object_ref/sink.
3705 (Pointed out by Josh Pritikin.)
3707 Thu Aug 23 19:33:54 2001 Owen Taylor <otaylor@redhat.com>
3709 * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
3710 to gtk_container_get_children. Added deprecated compatibility
3711 macro. (Suggested by Vitaly Tishkov, #59051)
3713 * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
3716 Thu Aug 23 19:10:01 2001 Owen Taylor <otaylor@redhat.com>
3718 * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate
3719 gtk_menu_bar_append/prepend/insert, forgot to do this
3720 when we deprecated gtk_menu_append/prepend/insert.
3722 * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
3725 * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
3726 renamed by compat macro.
3728 * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
3729 gtk_font_selection_dialog_get_font(). (Suggested by
3730 Vitaly Tishkov, #59383)
3732 Thu Aug 23 18:23:31 2001 Owen Taylor <otaylor@redhat.com>
3734 * gtk/gtktexttag.c (gtk_text_tag_table_get_size):
3735 Rename from gtk_text_tag_table_size(). (#59366)
3737 Thu Aug 23 20:01:41 2001 Kristian Rietveld <kristian@planet.nl>
3739 * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
3740 gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
3741 gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
3744 Thu Aug 23 16:26:47 2001 Tim Janik <timj@gtk.org>
3746 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize):
3747 * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
3748 handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
3750 Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com>
3752 [ Patch from Sebastian Wilhelmi, 52790 ]
3754 * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
3756 * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
3757 Move compatibility macros from g[dt]kcompat.h to within
3758 #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
3760 * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
3762 * demos/Makefile.am demos/gtk-demo/Makefile.am
3763 docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
3764 tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
3766 * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
3767 testpixbuf.c}: Fix usages of deprecated functions.
3769 Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
3771 * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
3772 when changing models.
3774 Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
3776 * gtk/gtktreeview.c: Fix selection. I think it's all dandy now.
3777 We check the current event for modifiers rather than try to trap
3780 2001-08-22 Anders Carlsson <andersca@gnu.org>
3782 * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
3783 It's LIST_STORE, not LISTSTORE.
3785 Tue Aug 21 12:43:29 2001 Owen Taylor <otaylor@redhat.com>
3787 * gtk/gtk.h: Remove commented out gtkpacker reference.
3789 2001-08-21 Matthias Clasen <matthiasc@waldgeist.poet.de>
3791 * configure.in (all_loaders): Add tga loader,
3792 patch by Nicola Girardi. (#56067)
3794 Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>
3796 * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
3797 a little. More needs to be done tomorrow.
3799 Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
3801 * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
3803 Mon Aug 20 23:48:18 2001 Jonathan Blandford <jrb@redhat.com>
3805 * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
3806 reported by Kristian Rietveld <kristian@planet.nl> to handle row
3808 (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
3809 <kristian@planet.nl> to change destroy order.
3811 Mon Aug 20 11:39:44 2001 Jonathan Blandford <jrb@redhat.com>
3813 * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
3816 Sun Aug 19 03:22:59 2001 Jonathan Blandford <jrb@redhat.com>
3818 * gtk/gtkliststore.c: Fix up warnings, #58928.
3820 * gtk/gtktreeselection.h: Change signal prototype, #58647
3822 * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
3825 * gtk/gtkstyle.c: Actually prelight arrow, #50981
3827 2001-08-18 Hans Breuer <hans@breuer.org>
3829 * gdk/gdk.def : updated externals
3831 * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
3832 is required to get (at least) visible in entry fields. Some selections
3833 are really handled now - even on win32 - but copying via middle
3834 mouse button into a different app needs to wait ...
3836 * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
3837 mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
3839 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
3840 handling. I'm not sure if it is better now, but at least not worse
3842 * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
3843 with SetWindowPos () which allows more fine-tuning backing-store wise
3845 * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
3846 Also changed move/resize to be more like the X version.
3848 * gtk/gtk.def : updated externals
3850 2001-08-19 Sven Neumann <sven@gimp.org>
3853 * tests/testtreesort.c
3854 * tests/treestoretest.c: inserted some casts to get rid of compiler
3857 Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>
3859 * gtk/gtktreeviewcolumn.c
3860 (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
3862 * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
3863 (_gtk_tree_view_find_node): If *node is NULL,
3864 *tree should be NULL too.
3866 * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
3868 * tests/testtreecolumns.c: ditto
3869 * tests/testtreefocus.c: ditto
3870 * tests/testtreesort.c: ditto
3871 * tests/testtreeview.c: ditto
3872 * tests/treestoretest.c: ditto
3874 Sat Aug 18 04:34:31 2001 Jonathan Blandford <jrb@redhat.com>
3876 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
3877 signals; is_expander/is_expanded.
3879 * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
3882 * gtk/gtktreeview.c: set above properties.
3884 Sat Aug 18 23:01:33 2001 Owen Taylor <otaylor@redhat.com>
3886 * gtk/gtkwidget.h: Really remove set_default_style().
3888 * docs/Changes-2.0.txt: added a note about
3889 gtk_widget_push/pop/set_default_style.
3891 2001-08-18 Havoc Pennington <hp@pobox.com>
3893 * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
3894 hints_changed in addition to the other cases.
3895 (gtk_window_move_resize): include last position from configure
3896 notify in debug spew
3898 2001-08-18 James Henstridge <james@daa.com.au>
3900 * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
3901 second argument to the weak ref notify, cleaning up some uglyness.
3902 (gtk_accel_group_attach): remove and add the weak notifier when
3903 changing the accel groups slist.
3904 (gtk_accel_group_detach): same here.
3906 2001-08-17 Darin Adler <darin@bentspoon.com>
3908 * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
3909 missing parameters to utf8 functions to make it compile.
3911 Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
3913 * gtk/gtktreeprivate.h:
3914 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3915 (gtk_tree_view_init), (gtk_tree_view_set_property),
3916 (gtk_tree_view_get_property), (gtk_tree_view_destroy),
3917 (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
3918 (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
3919 (gtk_tree_view_set_destroy_count_func),
3920 (gtk_tree_view_set_enable_search),
3921 (gtk_tree_view_get_enable_search),
3922 (gtk_tree_view_get_search_column),
3923 (gtk_tree_view_set_search_column),
3924 (gtk_tree_view_get_search_equal_func),
3925 (gtk_tree_view_set_search_equal_func),
3926 (gtk_tree_view_search_dialog_destroy),
3927 (gtk_tree_view_search_position_func),
3928 (gtk_tree_view_interactive_search),
3929 (gtk_tree_view_search_delete_event),
3930 (gtk_tree_view_search_button_press_event),
3931 (gtk_tree_view_search_key_press_event),
3932 (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
3933 (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
3934 * gtk/gtktreeview.h:
3935 Add heavily modified patch from Kristian Rietveld to handle
3936 interactive searching.
3938 Fri Aug 17 17:30:34 2001 Tim Janik <timj@gtk.org>
3940 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
3943 * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
3944 GtkMenuShell::selection_done, now that we have it, instead of
3945 ::deactivate so we're not tearing the menu apart and notify
3946 the user prematurely.
3948 Thu Aug 16 05:22:01 2001 Tim Janik <timj@gtk.org>
3950 * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
3951 window, clear window->need_default_position to avoid infinite loops.
3952 some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
3954 Wed Aug 15 12:36:55 2001 Tim Janik <timj@gtk.org>
3956 * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
3957 code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
3958 (gtk_tree_view_set_property): don't cast possible NULL objects.
3959 (gtk_tree_view_destroy): reset the model to NULL.
3961 * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
3962 parent_class handler.
3964 2001-08-17 Matthias Clasen <matthiasc@waldgeist.poet.de>
3966 * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
3968 2001-08-17 Anders Carlsson <andersca@gnu.org>
3970 * gtk/gtkstyle.c (create_expander_affine): Divide with floating
3971 point numbers so that the result will be floating point.
3973 2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
3975 * tests/testgtk.c (create_handle_box):
3976 (create_toolbar): Replace gtk_window_set_policy calls by
3977 gtk_window_set_resizable.
3979 2001-08-16 Jakub Steiner <jimmac@ximian.com>
3981 * gtk/stock-icons/dialog_info.png: new style bulb
3982 * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
3983 * gtk/stock-icons/dialog_warning.png: need a hand?
3984 * gtk/stock-icons/stock_add.png, stock_remove.png: I hope
3985 the aa border gets chopped off ok
3986 * gtk/stock-icons/stock_colorselector.png: using the new hand
3987 * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what
3988 this one is for, but the old icon was butt ugly.
3989 * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
3990 * gtk/stock-icons/stock*_insert_object.png: "
3991 * gtk/stock-icons/stock_index.png: using new hand icon
3992 * gtk/stock-icons/stock*_new.png: the document template being used
3994 * gtk/stock-icons/stock*_print*.png: new print and print preview
3996 * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert
3997 icons based on Tuomas' floppy image.
3998 * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
3999 * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
4000 * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
4001 * gtk/stock-icons/stock*_undelete.png: "
4002 * gtk/stock-icons/stock_preferences.png: I have a version with a
4003 document base if the sliders are no good.
4004 * gtk/stock-icons/stock_properties.png: properties
4007 * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas'
4008 (tigert@ximian.com) clipboard icons
4009 * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
4010 * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
4011 * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
4014 2001-08-16 Sven Neumann <sven@gimp.org>
4016 * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
4018 2001-08-15 Padraig O'Briain <padraig.obriain@sun.com>
4020 * gtk/gtkcellrenderertext.c:
4021 Avoid warning when specifying NULL for "attributes" property
4023 2001-08-15 Matthias Clasen <matthiasc@waldgeist.poet.de>
4025 * docs/debugging.txt: Add a warning about --enable-debug=no,
4026 some editorial changes.
4028 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
4030 * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h,
4031 gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update
4032 debugging info, remove unused debug flags. (#58330)
4034 Mon Aug 13 13:17:32 2001 Jonathan Blandford <jrb@redhat.com>
4036 * gtk/gtktreeselection.c (gtk_tree_selection_select_all):
4037 (gtk_tree_selection_select_all): Remove strict checking for rows.
4039 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
4041 * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips):
4042 Don't remove the tooltip window when the tip text changes. (#15891)
4044 Sun Aug 12 12:02:09 2001 Owen Taylor <otaylor@redhat.com>
4046 * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
4049 Sun Aug 12 10:39:12 2001 Owen Taylor <otaylor@redhat.com>
4051 * Makefile.am (EXTRA_DIST): Fix problem with trying to
4052 dist files from intl/, which is no longer there.
4054 2001-08-11 Hans Breuer <hans@breuer.org>
4056 * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
4057 gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c,
4058 gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c,
4059 gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c,
4060 gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
4061 gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
4063 * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
4064 gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
4065 GDK_TYPE_EVENT signals
4067 * gtk/gtkalignment.c : removed 'direct allocation bug',
4068 which Tim discovered while reading the patch
4070 Sat Aug 11 14:32:14 2001 Owen Taylor <otaylor@redhat.com>
4072 * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
4073 compat macros for push/pop/set_visual that were supposed
4074 to be added a long time ago, but got dropped.
4076 Fri Aug 10 16:55:53 2001 Tim Janik <timj@gtk.org>
4078 * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
4081 2001-08-07 Havoc Pennington <hp@pobox.com>
4083 * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
4085 * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
4086 some fixage is needed here, but nothing simple. Owen understands
4089 * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
4090 sizing and positioning. Also, fix bug in compute_geometry_hints
4091 (width/height confusion for setting min size).
4092 (gtk_window_move): new function
4093 (gtk_window_resize): new function
4094 (gtk_window_get_size): new function
4095 (gtk_window_get_position): new function
4096 (gtk_window_parse_geometry): new function
4098 * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
4099 (gtk_widget_get_size_request): new function
4100 (gtk_widget_get_usize): delete, that was a short-lived function
4102 (gtk_widget_set_usize): deprecate
4103 (gtk_widget_set_uposition): deprecate, make it a trivial
4104 gtk_window_move() wrapper
4105 (gtk_widget_class_init): remove x/y/width/height properties,
4106 add width_request height_request
4108 * demos/*: update to avoid deprecated functions
4110 * gtk/gtklayout.c: add x/y child properties
4112 * gtk/gtkfixed.c: add x/y child properties, and get rid of
4115 * tests/testgtk.c (create_window_sizing): lots of tweaks to window
4118 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
4119 configure events on toplevel windows are always in root window
4120 coordinates, following ICCCM spec that all synthetic events
4121 are in root window coords already, while real events are
4122 in parent window coords. Previously the code assumed that
4123 coords of 0,0 were parent window coords, which was
4126 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
4129 * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
4130 and GDK_HINT_USER_SIZE so we can set USSize and USPosition
4131 hints in gtk_window_parse_geometry()
4133 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
4134 new USER_POS USER_SIZE hints
4136 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
4138 * tests/prop-editor.c (properties_from_type): Use
4139 g_object_class_list_properties to get the param specs
4140 for a given type. (#58609)
4142 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
4144 * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
4145 free the text_aa parts. (#57549)
4147 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
4149 * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
4150 not the foreground color. (#57621)
4152 2001-08-09 Alexander Larsson <alexl@redhat.com>
4154 * gdk/win32/gdkfont-win32.c:
4155 Update to the new pango win32 api.
4157 2001-08-08 HideToshi Tajima <tajima@eng.sun.com>
4159 * gtk/gtkclipboard.c (request_text_received_func): ask apps for
4160 COMPOUND_TEXT instead of TEXT
4161 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
4162 interpret the return value of g_string_to_compound_text()
4165 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
4167 * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
4168 fail if iter is NULL. (#58347)
4170 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
4172 * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
4173 some off-by-one issues, fixing selection of line-ends. (#50323)
4175 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
4177 * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
4178 functions in order to make mouse operation work again in the
4179 color wheel. (#58604)
4181 2001-08-07 James Henstridge <james@daa.com.au>
4183 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
4184 the accelerator when the accel object is changed. Fixes bug
4187 2001-08-06 HideToshi Tajima <tajima@eng.sun.com>
4189 * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
4190 Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
4191 (gnome bugzilla #58202)
4193 2001-08-06 Havoc Pennington <hp@pobox.com>
4195 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole
4196 GDK_IS_WINDOW() branch of this was a bit screwed up, because
4197 it was expecting a GdkWindow, not a GdkWindowImplX11.
4199 Also, we were getting the window rect in screen coords
4200 and the screen rect in window coords then intersecting
4201 them; instead, get window rect in window coords.
4203 Finally, there were codepaths that resulted in a stuck server grab
4204 (when the window was fully onscreen, or on gdk_image_new()
4205 failure); make the server ungrab thing a bit more
4208 2001-08-06 Sven Neumann <sven@gimp.org>
4210 * gdk/gdkpango.c (gdk_pango_context_destroy):
4211 check if info->colormap != NULL before unref'ing it. It might have
4212 been set to NULL using gdk_pango_context_set_colormap().
4214 Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
4216 * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
4217 Fix conversion from float to int so that we don't get
4218 skew in the int => float => int roundtrip.
4219 (#58120, reported by Vitaly Tishkov). Also fix problem
4220 where if no alpha was set, the returned alpha
4221 from (say) set_current_alpha() was returned as 1, not 65535.
4223 Sun Aug 5 09:48:08 2001 Owen Taylor <otaylor@redhat.com>
4225 * gtk/gtklist.c (gtk_list_clear_items): Fix
4226 problem with selecting a new focus child.
4228 * gtk/gtklist.c (gtk_list_clear_items): Clear
4229 list->undo/list_focus_child after unparenting
4230 child, since unparenting the child can result
4231 in list->last_focus_child being set. (#58024)
4233 * Makefile.am (SUBDIRS): Add target specific pc
4234 files to DISTCLEANFILES.
4236 * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
4237 (58327, Matthias Clasen)
4239 Sat Aug 4 19:28:21 2001 Owen Taylor <otaylor@redhat.com>
4241 * tests/testgtk.c: Patch from Hans (with various modifications),
4242 to add the ability to use testgtk as a rough-and-ready
4243 benchmark. Try, 'testgtk --bench all:5' (if you want decent
4244 numbers, run without a window manager)
4246 2001-08-04 Alexander Larsson <alexl@redhat.com>
4248 * gdk/win32/gdkinput.c:
4249 Add #ifdef HAVE_WINTAB around wintab.h include.
4252 Removed marshals that have been moved to glib.
4253 Commented out plug and socket. They didn't compile for me
4256 2001-08-04 Hans Breuer <hans@breuer.org>
4258 * gtk/stocks-icons/makefile.msc : new file
4259 * gtk/makefile.msc.in : use it
4261 * gtk/gtkstyle.c : not all platforms do provide M_PI and
4262 friends, but luckily there is G_PI
4264 * gtk/gtk.def : updated
4266 * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP
4267 windows WS_POPUP, but only those without a parent. This fixes the
4268 mis-alignment between the selectable (temp, input only) window and
4269 the window text of GtkLabel.
4271 (gdk_window_show) : respect private->state when actually showing
4274 (gdk_window_set_transient_for) : Implementation from Wolfgang
4275 Sourdeau <wolfgang@contre.com> ported to 2.0 and added some
4276 error handling. Should fix #50586.
4278 * gdk/win32/gdkevents-win32.c : beautify log output
4280 2001-08-04 Michael Natterer <mitch@gimp.org>
4282 * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
4283 Need to show the image after adding it to the GtkImageMenuItem.
4284 This used to work without in testgtk because of the
4285 gtk_widget_show_all() at the end of the function.
4288 Tue Jul 31 22:59:33 2001 Tim Janik <timj@gtk.org>
4290 * gtk/gtknotebook.c (gtk_notebook_get_child_property):
4291 (gtk_notebook_set_child_property): fix finding of child's page,
4292 since we have to validly deal with labels and menus here as well.
4293 (gtk_notebook_get_child_property): fix warning.
4294 (gtk_notebook_class_init): property tab_pack is of type
4295 GTK_TYPE_PACK_TYPE (enum) not boolean.
4296 (gtk_notebook_find_child): don't always warn, we might be looking
4297 for a label or menu child.
4298 (gtk_notebook_map): fix mapping of panel.
4300 * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
4301 widget's mapped state, regardless of the value being set equals
4302 old settings, since things like REALIZED(parent) or MAPPED(parent)
4303 may have changed since the old value was set. make it an error to
4304 invoke this function on a toplevel widget.
4306 2001-07-31 Darin Adler <darin@bentspoon.com>
4310 Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
4312 * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
4315 Tue Jul 31 15:34:57 2001 Jonathan Blandford <jrb@redhat.com>
4317 * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops. Stupid
4318 scoping error pointed out by matthiasc@poet.de.
4320 2001-07-31 Sven Neumann <sven@gimp.org>
4322 * demos/gtk-demo/appwindow.c
4323 * demos/gtk-demo/item_factory.c
4324 * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
4326 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
4328 * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
4329 argument order for g_signal_has_handler_pending.
4331 Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
4333 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
4334 instead of long deprecated g_scanner_stat_mode().
4336 2001-07-29 Hans Breuer <hans@breuer.org>
4338 * gdk/makefile.msc : build in the backend dir after
4339 auto-generating files
4341 * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
4342 with code from win32-production-branch.
4344 * gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
4345 before calling DestroyWindow, which indirectly calls
4346 gdk_window_destroy_notify ()
4348 (performance patch merged from win32-production-branch)
4349 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments):
4350 Use PatBlt() instead of LineTo() when possible (solid single-pixel pen,
4351 R2_COPYPEN rop). It is claimed to be much faster.
4353 Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
4355 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
4356 add an "attributes" property to the text renderer for ATK.
4358 2001-07-26 Alex Larsson <alexl@redhat.com>
4360 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
4361 Initialize image->bits_per_pixel from the drawable, not from
4364 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
4365 Fix cast. argument is an IMPL already.
4367 2001-07-15 James Henstridge <james@daa.com.au>
4369 * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
4370 (gtk_window_remove_accel_group): same here.
4371 (gtk_window_key_press_event): same here.
4373 * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
4374 (gtk_widget_remove_accelerator): same here.
4375 (gtk_widget_remove_accelerators): same here.
4377 * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
4379 * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
4380 instead of GtkObject.
4382 * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
4385 * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
4386 pass a GObject to gtk_accel_group_entries_from_object.
4387 (gtk_item_factory_create_item): s/accel_widget/accel_object/
4389 * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
4391 * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
4393 * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
4394 GObjects can have accelerators set now. Add compatibility
4397 * gtk/gtkmarshal.list: add missing marshallers.
4399 * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
4400 accelerators on plain GObjects. gtk_accel_group_object_destroy
4401 has been converted into a weak reference, and
4402 gtk_accel_group_delete_entries is now a destroy notify for that
4405 2001-07-23 Ron Steinke <rsteinke@w-link.net>
4407 * gdk/gdkdraw.c: Added a check on the colormap depth to
4408 gdk_drawable_set_colormap()
4409 * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
4410 patch to fix colorsel and my patch to fix gdk_drawable_get_image()
4411 for pixmaps without visuals (more specifically, bitmaps)
4412 * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
4413 doesn't set a colormap with the wrong depth
4416 2001-07-22 Anders Carlsson <andersca@gnome.org>
4418 * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
4419 expander_height and expander_width properties with a single
4420 property, expander_size.
4421 (gtk_tree_view_init): Set the tab_offset to expander_size
4423 (gtk_tree_view_unrealize): Remove the expand/collapse
4424 timeout if it exists.
4425 (coords_are_over_arrow): Fix a small bug.
4426 (gtk_tree_view_motion_draw_column_motion_arrow): Use
4428 (gtk_tree_view_draw_focus): Use "treeview" instead of
4429 "add-mode" as detail when drawing the focus.
4430 (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
4431 instead of "add-mode" as detail when drawing the focus.
4432 (gtk_tree_view_deleted): If we have a node currently being
4433 expanded or collapsed, remove the timeout and set the node
4435 (gtk_tree_view_queue_draw_arrow): New function that just
4436 redraws the arrow of a node.
4437 (gtk_tree_view_draw_arrow): Use expander_size instead of
4438 expander_width/expander_height, also pass a different
4439 expander_style to gtk_paint_expander depending on the
4440 state of the node being drawn.
4441 (expand_collapse_timeout): New function for expanding
4442 or collapsing a node depending on the previous state.
4443 (gtk_tree_view_real_expand_row): Add timeout and set
4444 correct state for node being expanded.
4445 (gtk_tree_view_real_collapse_row): Add timeout and set
4446 correct state for node being collapsed.
4448 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
4449 information about the node currently being expanded or
4450 collapsed, and also a timeout id.
4452 * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
4453 with expander_style for draw_expander.
4455 * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
4457 (create_expander_affine): New function for creating an
4459 (apply_affine_on_point): New function for applying an
4461 (gtk_default_draw_expander): Modified to take expander_style
4462 instead of is_open, and to draw the rectangle rotated differently
4463 depending on the expander style.
4464 (gtk_paint_expander): Replace is_open with expander_style.
4466 * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
4468 * gtk/gtkenums.h: Add expander style enum.
4470 2001-07-21 Jonas Borgström <jonas@codefactory.se>
4472 * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
4473 value from gtk_tree_model_get_iter, the model might be empty.
4475 2001-07-20 Hans Breuer <hans@breuer.org>
4477 * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
4478 gdk/gdkinput.c like the other backends
4480 * gdk/win32/gdkinput-win32.h :
4481 * gdk/win32/gdkinput.c :
4482 * gdk/win32/gdkvisual-win32.c :
4483 * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
4484 GdkVisual GObjectification. UNTESTED for pen-devices because
4488 * gtk/gtk.def : updated externals
4490 * gtk/gtkiconfactory.c :
4491 * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL)
4492 before passing &error to functions to avoid strange crashes
4494 * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
4496 * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
4498 * gtk/makefile.msc.in : updated
4500 Thu Jul 19 15:35:32 2001 Owen Taylor <otaylor@redhat.com>
4502 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
4503 Add property support. (#51858)
4505 Thu Jul 19 14:56:33 2001 Owen Taylor <otaylor@redhat.com>
4507 * gtk/gtkaccellabel.c (gtk_accel_label_class_init)
4508 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
4509 Use Shift/Ctrl instead of Shft/Ctl. (#53807)
4511 Thu Jul 19 11:41:00 2001 Owen Taylor <otaylor@redhat.com>
4513 * gtk/gtkcolorsel.c: Add propery support (roughly
4514 based on patch from Lee Mallabone, #51014)
4516 * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
4517 deprecated, since we already g_warning() on it.
4519 Thu Jul 19 14:24:34 2001 Owen Taylor <otaylor@redhat.com>
4521 * gtk/gtkentry.c (gtk_entry_set_positions): Fix
4522 typo that sometimes caused selection not to work properly.
4524 * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
4525 entry when tabbing in. (#57743)
4527 * gtk/gtkentry.c (gtk_entry_motion_notify): If the
4528 user drags up above or down below the entry, move
4529 to the end or the beginning of the entry. (Suggestion
4530 from Jay Cox, #50940)
4532 * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
4533 a current selection, then when moving by chars or
4534 words, move to the end of the selection rather than
4535 from entry->current_pos. (Suggestion from Jay Cox,
4538 Thu Jul 19 12:14:28 2001 Owen Taylor <otaylor@redhat.com>
4540 * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
4541 set window->decorated. (Patch from Hidetoshi Tajima,
4544 Sat Jul 7 02:50:14 2001 Owen Taylor <otaylor@redhat.com>
4546 * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
4547 the widget/child realization/mapping invariants.
4549 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
4550 gtk_widget_[get/set]_child_visible() to control
4551 whether visible children of a mapped window are
4554 * docs/widget_system.txt: Updated for changes in
4555 container contract, and addition of GTK_CHILD_VISIBLE.
4557 * gtk/gtkcontainer.c: Add generic map()/unmap()
4558 functions that work for almost all containers.
4560 * gtk/gtknotebook.c gtk/gtkpacker.c: Use
4561 gtk_widget_set_child_visible() where necessary.
4563 * gtk/*.c: Remove excess map(), unmap(), and
4564 realization/mapping invariant enforcing code
4565 from many containers.
4567 Wed Jul 18 19:51:45 2001 Owen Taylor <otaylor@redhat.com>
4569 * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style):
4570 Get the foreground color from 'text', nor 'fg'. (#57568)
4572 Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com>
4574 * gtk/*.c: Patch from Matthias Clasen to remove remove
4575 all instances of g_return_if_fail (foo != NULL); that are
4576 immediately before a g_return_if_fail (GTK_IS_FOO (foo));
4577 since the second check catches the NULL anyways.
4579 Wed Jul 18 18:23:05 2001 Owen Taylor <otaylor@redhat.com>
4581 * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
4582 gtktreeview.c: Fix idles and timeouts to be properly surrounded by
4583 GDK_THREADS_ENTER()/LEAVE() pairs.
4585 * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
4586 to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
4587 pairs. (Problem found by M. Meeks)
4589 2001-07-18 Darin Adler <darin@bentspoon.com>
4591 * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
4592 that we don't get a g_warning message every time we register a new
4595 * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
4596 using pixel variable of the correct type.
4598 Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
4600 * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
4601 so that using X functions on a GdkWindow is possible, if
4604 * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
4605 and ts_origin of a GC, so that external parties can offset/restore
4606 a GC, when using gdk_window_get_internal_paint_info().
4608 2001-07-17 Darin Adler <darin@bentspoon.com>
4610 * .cvsignore: Ignore the sgml directory made by gtkdoc.
4611 * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
4612 instead of the deprecated gtk_window_set_policy.
4613 * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
4614 * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
4615 function to get rid of warning and some code too.
4616 * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
4618 * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
4620 * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
4622 * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
4623 (gdk_utf8_to_compound_text): Add missing const.
4624 * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
4625 * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
4626 cast and get rid of an unnecessary one.
4627 * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
4628 * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
4630 * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
4631 Remove unused local.
4632 * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
4634 * tests/testsocket.c: (add_child): Add cast so the printf format
4635 doesn't make us implicitly depend on what integer type
4636 gtk_socket_get_id returns.
4637 * tests/testtextbuffer.c: Add missing const.
4638 * tests/testtreefocus.c: (main): Remove unused local.
4639 * tests/treestoretest.c: (iter_remove): Remove unused local.
4640 (uppercase_value): Remove unused function.
4641 (make_window): Add statement to quiet the compiler's uninitialized
4644 Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
4649 (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
4650 (gtk_range_calc_layout): compute the new layout based on an
4651 adjustment->value being passed in as argument.
4652 (gtk_range_button_press): for button2 slider warps, first recalc
4653 the layout, then adjust the value. also, use update_slider_position()
4654 for adjusting the value, so we keep pixel quantisation at which we
4655 usually operate (upon motion or button releases). the reason for this
4656 is that, we can't change the adjustment upon button2 presses to a non
4657 quantised value and upon button2 release re-quantise the value since
4658 that'd alter the value even if we didn't get any motion events (causing
4659 unexpected scroll area warps upon release and/or slider pixel-jitter).
4660 (gtk_range_motion_notify): update the slider position from queried
4661 coordinates, not event coordinates.
4663 Fri Jul 13 09:47:52 2001 Tim Janik <timj@gtk.org>
4665 * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
4666 the default gc values are: width=0, CapBut, JoinMiter.
4668 2001-07-13 Anders Carlsson <andersca@codefactory.se>
4670 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
4671 into account the xpad and ypad when calculating the width and the
4672 height of the pixbuf cel.
4674 Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
4676 * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
4677 Rename to gtk_radio_menu_item_get_group(), add deprecated
4680 * gtk/gtkfilesel.c: Indentation fix.
4682 Thu Jul 12 17:33:00 2001 Owen Taylor <otaylor@redhat.com>
4684 * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias
4685 Hasselmann to fix warnings in compat macros.
4688 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix
4689 stupid wrong cast added in last patch.
4691 Thu Jul 12 16:51:34 2001 Owen Taylor <otaylor@redhat.com>
4693 * gtk/gtkwidget.c: Replace a couple of inappropriate calls to
4694 GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
4696 Thu Jul 12 14:06:19 2001 Owen Taylor <otaylor@redhat.com>
4698 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
4701 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
4702 NULL/FALSE return value confusion.
4704 * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
4705 problem when scrollbar completely fills range. (Patch
4706 from Matthias Clasen, #57047)
4708 Thu Jul 12 13:53:28 2001 Owen Taylor <otaylor@redhat.com>
4710 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
4711 clean up when handling events for move-resize emulation.
4712 (Problem traced down by Matthias Clasen, #57271)
4714 Thu Jul 12 13:43:27 2001 Owen Taylor <otaylor@redhat.com>
4716 * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
4717 gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
4718 gtk/gtkfontsel.c gtk/gtkhandlebox.c
4719 gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
4720 gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
4721 gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
4722 gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
4723 Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
4725 2001-07-09 Peter Williams <peterw@ximian.com>
4727 * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
4728 for when srcdir != builddir
4730 Mon Jul 9 12:50:51 2001 Jonathan Blandford <jrb@redhat.com>
4732 * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
4733 gtk_tree_model_get_iter_root.
4735 * gtk/gtkliststore.c: Add a bunch of g_return statements.
4736 (gtk_list_store_iter_n_children): Fix up.
4738 * gtk/gtktreestore.c: Add a bunch of g_return statements.
4740 Fri Jul 6 15:38:33 2001 Owen Taylor <otaylor@redhat.com>
4742 * gtk/gtkwidget.c (gtk_widget_class_init):
4743 G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
4744 restore some workingness.
4746 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix
4747 handle of window type for input-only windows.
4749 Thu Jul 5 21:53:46 2001 Owen Taylor <otaylor@redhat.com>
4751 * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
4752 Patch from Gregory Merchan to add
4753 gtk_button_box_set_secondary(), which separates
4754 the child into a separate group from the normal
4757 * gtk/gtkdialog.c: Make help buttons secondary by
4760 * gtk/gtkbbox.c: Added a child property "secondary".
4762 * gtk/testgtk.c: Turn on the help button for the
4763 color selector to check that it properly appears
4766 Mon Jul 2 01:09:37 2001 Owen Taylor <otaylor@redhat.com>
4768 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
4769 gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
4770 Add gdk_set_pointer_hooks() to allow pointer-querying to
4771 be hooked by an event record/playback system like GERD.
4774 Thu Jul 5 08:57:07 2001 Owen Taylor <otaylor@redhat.com>
4776 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
4777 in the right value of initial_emission to
4778 gtk_widget_set_style_internal (#57091)
4780 Wed Jul 4 23:17:04 2001 Owen Taylor <otaylor@redhat.com>
4782 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
4785 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
4786 with calling gtk_widget_set_style_internal() with
4787 the old style, not the new style. (#56989)
4789 Wed Jul 4 22:35:40 2001 Owen Taylor <otaylor@redhat.com>
4791 * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
4793 Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
4794 not GTK_WIDGET_GET_ANCESTOR ... see
4795 http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
4796 Indicate the best practice in the docs for gtk_widget_get_toplevel().
4798 * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
4799 so GtkPlug can give the correct signals when transforming
4800 from a child to a toplevel.
4802 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
4803 reparentation correctly.
4805 * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
4806 Propagate the previous_toplevel argument down properly.
4808 * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
4811 * gtk/gtkplug.[ch]: Add an "embedded" signal.
4813 * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
4816 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add
4817 functions gtk_plug_get_id(), gtk_socket_get_id(),
4818 to avoid the user having to worry about realization,
4821 * tests/testsocket.c: Extend to try out the new signals
4822 and gtk_plug/socket_get_id().
4824 * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
4825 setting of underline attributes.
4827 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
4828 DestroyNotify events from SubstructureNotifyMask
4830 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
4831 Switch GDK_WINDOW_TYPE (window) as needed.
4833 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
4834 allow creation of toplevel windows as children of
4837 * gtk/gtkplug.c: Remove hacks involving changing private
4838 fields of GdkWindow.
4840 * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make
4841 exactly the same signals and notification
4842 be emitted for local embedding as for inter-process
4845 2001-07-04 James Henstridge <james@daa.com.au>
4847 * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
4849 Mon Jul 2 16:53:25 2001 Owen Taylor <otaylor@redhat.com>
4851 * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
4852 XEMBED embedding add a _XEMBED_INFO property to the
4853 client with version number and a "mapped" flags.
4854 Use the mapped flag instead of the racy MapRequestEvent
4856 * gtk/gtksocket.c: Clean up the gtk_socket_steal()
4857 code to reliably set things (when the child is a passive
4858 embedder participating in the XEMBED protocol) intead
4859 of just being a hack for embedding non-participating
4860 programs. Fix various bugs and race conditions.
4862 * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
4863 work by simply making the GtkSocket the gtk parent
4864 of the GtkPlug. Set a flag in this case and make
4865 the GtkPlug work like a normal container by overriding
4866 methods such as check_resize and "chaining past" GtkWindow
4869 * gtk/gtkentry.c (gtk_entry_real_activate)
4870 gtk/gtkmain.c (gtk_propagate_event):
4871 Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
4873 * gtk/gtkwidget.c (gtk_widget_get_toplevel,
4874 gtk_widget_get_ancestor):
4875 Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
4876 might not give the expected result and recommend
4879 * tests/testsocket.c tests/testsocket_child.c
4880 tests/testsocket_common.c tests/Makefile.am: Extended
4881 to test different type of adding plugs to sockets
4882 (local,active,passive), and to test mapping/unmapping
4885 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
4886 mark the window as destroyed until after we
4887 called _gdk_windowing_window_destroy().
4888 (_gdk_windowing_window_destroy() may use GDK functions
4891 * gdk/x11/gdkinput.c: Remove the check for finalization -
4892 devices can be finalized under some circumnstances.
4894 * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix
4895 small problem with GDK_TYPE_DEVICE.
4897 2001-07-02 Havoc Pennington <hp@pobox.com>
4899 * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
4900 use constants not atoms.
4902 2001-07-02 James Henstridge <james@daa.com.au>
4904 * gtk/gtktextview.c (gtk_text_view_class_init): same here for
4905 PANGO_TYPE_TAB_ARRAY.
4907 * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
4908 for PANGO_TYPE_TAB_ARRAY.
4910 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4911 s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
4913 * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
4914 the file. Remove Pango types from defs -- they are now defined in
4917 Mon Jul 2 06:35:10 2001 Tim Janik <timj@gtk.org>
4919 * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
4921 * gtk/gtkobject.c (gtk_object_destroy): invoke
4922 g_object_run_dispose().
4927 * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
4930 Sat Jun 30 20:44:48 2001 Owen Taylor <otaylor@redhat.com>
4932 * gtk/gtktypeutils.c (gtk_type_class): Remove
4933 change check for GTK_TYPE_OBJECT derivation to
4934 G_TYPE_OBJECTS - it's Tim-approved to use this
4935 for arbitary objects.
4937 * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
4938 prefix gtk_container_dequeue_resize_handler().
4940 * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
4941 to the hierarachy_changed signal, since you otherwise
4942 have to always keep that around.
4944 * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
4945 for extra argument to hierarchy_changed.
4947 Tue Jun 26 19:39:03 2001 Owen Taylor <otaylor@redhat.com>
4949 * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
4950 for style to mean "revert to default style"
4952 * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
4953 gtk_widget_restore_default_style): Make this functions
4954 deprecated aliases for gtk_widget_set_style (widget, NULL).
4956 * gtk/gtkwidget.[ch]: Remove:
4957 gtk_widget_set_default_style ()
4958 gtk_widget_push_style ()
4959 gtk_widget_pop_style ()
4960 These functions interact are overriden by RC files, and
4961 thus virtually useless, and complicated.
4963 Fri Jun 22 18:49:48 2001 Owen Taylor <otaylor@redhat.com>
4965 * gtk/gtkrc.c: Add a GtkRcContext structure to hold
4966 most of the previous global variables in gtkrc.c. This is
4967 in preparation for multi-head, since each screen can
4968 have different GtkSettings and RC information.
4972 * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
4973 GtkSettings parameter to GtkRcStyle::parse.
4975 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c:
4976 Add two new settings gtk-theme-name, gtk-key-theme-name,
4977 for RC files that are loaded by name after reading
4978 the default RC files.
4980 * gtk/gtkrc.c: Allow priorities for styles, as wll as
4983 * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
4984 and use it by default for RC files loaded via
4985 gtk-theme-name, gtk-key-theme-name.
4987 * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
4988 gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string)
4989 tests/testgtkrc: Require pathnames to be absolute.
4991 * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
4992 the source when parsing, since the operation of looking up a
4993 pixmap from an RC file depends on the parsing context.
4995 * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
4996 reset RC styles on all widgets when files are reparsed.
4998 * tests/testgtk.c (create_rc_file)
4999 gtk/gtkwindow.c (gtk_window_read_rcfiles):
5000 Simplify, now that gtk_rc_reparse_all() resets styles on
5003 * gtk/gtkmain.c (gtk_get_default_language): Fix broken
5006 * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
5007 GtkSettings argument.
5009 * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
5010 gtk_settings_get_global().
5012 * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
5013 to get the appropriate GtkSettings for a widget. (For now,
5014 just gets the default GtkSetttings.)
5016 * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
5017 gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
5020 * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
5021 getting a style for a path without actually having a widget.
5022 (Allows using a style for a subpart of a widget, for
5025 * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
5026 the RC files to be reloaded for just one GtkSettings
5027 (not sure how useful this really is.)
5029 * gtk/gtkrc.h: Deprecate
5030 gtk_rc_add_widget_name/widget_class/class_style
5032 2001-06-30 Alex Larsson <alexl@redhat.com>
5034 * gdk/linux-fb/gdkinput-none.c:
5035 * gdk/linux-fb/gdkinput.c:
5036 * gdk/linux-fb/gdkinputprivate.h:
5037 Convert GdkDevice to a GObject.
5039 * linux-fb/gdkprivate-fb.h:
5040 * linux-fb/gdkvisual-fb.c:
5041 Convert GdkVisual to a GObject.
5043 2001-06-29 Alex Larsson <alexl@redhat.com>
5048 * gdk/x11/gdkvisual-x11.c:
5049 Convert GdkVisual to a GObject.
5053 * gdk/x11/gdkinputprivate.h:
5054 * gdk/x11/gdkinput-gxi.c:
5055 * gdk/x11/gdkinput-none.c:
5056 * gdk/x11/gdkinput-x11.c:
5057 * gdk/x11/gdkinput-xfree.c:
5058 * gdk/x11/gdkinput.c:
5059 Convert GdkDevice to a GObject.
5061 Fri Jun 29 22:13:28 2001 Jonathan Blandford <jrb@redhat.com>
5063 * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
5064 to just plain new, fixing the number of columns, and column types
5067 * gtk/gtkliststore.c (gtk_list_store_new): ditto.
5069 * gtk/gtkcellrenderertext.c
5070 (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
5071 height to a specific font.
5073 * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
5075 * tests/*c: change to work with new store models.
5077 2001-06-29 Havoc Pennington <hp@redhat.com>
5079 * Throughout: fixes to compile with G_DISABLE_COMPAT
5080 (s/g_signal_connectc/g_signal_connect/,
5081 s/g_signal_newc/g_signal_new/,
5082 s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
5084 Fri Jun 29 03:14:16 2001 Jonathan Blandford <jrb@webwynk.net>
5086 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
5087 add path argument to selection callbacks.
5089 Fri Jun 29 00:13:34 2001 Jonathan Blandford <jrb@redhat.com>
5091 * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
5092 walk through a model in a depth first manner, with the option to
5095 Fri Jun 8 18:52:10 2001 Jonathan Blandford <jrb@redhat.com>
5097 * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
5098 <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
5099 column and follow it when draged, rather than a location in the
5100 view. "expander_column" property and drawing functions changed
5101 accordingly. Fixes bug #55942.
5103 (gtk_tree_view_{set,get}_expander_column): Now works with a
5104 GtkTreeViewColumn* instead of int.
5106 Thu Jun 28 22:53:18 2001 Owen Taylor <otaylor@redhat.com>
5108 * gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init().
5110 2001-06-28 Havoc Pennington <hp@pobox.com>
5112 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
5113 image data to the screen, using a server grab to avoid race
5116 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
5117 check for NULL return from gtk_image_new_from_stock(), it never
5119 (gtk_item_factory_create_item): fix bug where we parsed the stock
5120 ID as an inline pixbuf
5122 * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
5124 * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
5125 support (should be using binding set here)
5127 * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
5128 support (should be using binding set here)
5130 * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
5133 * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
5135 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
5137 * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
5139 * gtk/gtkimcontextsimple.c
5140 (gtk_im_context_simple_filter_keypress): keypad
5142 * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
5144 * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
5146 * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
5148 * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
5149 should be binding-setted)
5151 * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
5153 * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
5155 * gtk/gtkcalendar.c: numeric keypad fixes
5157 * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
5160 * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
5163 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
5164 clip the render area to the drawable's clip region in advance,
5165 so we don't get data from the server that we don't need.
5167 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
5168 check return value of gdk_pixbuf_get_from_drawable(), fall back
5169 to bilevel alpha if we can't get the pixbuf to composite against.
5171 * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
5173 * gdk/gdkimage.c (gdk_image_get_colormap): add
5174 gdk_image_set_colormap, gdk_image_get_colormap
5176 * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
5177 take a region of the image, instead of converting the entire
5180 * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
5181 keybinding signal. Add default bindings for it. Add default
5182 handler for show_help that shows the tooltip for the widget.
5184 * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
5185 "close" keybinding signal, remove key press handler.
5187 * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
5188 it's not our usual practice to leave a deprecated function around
5189 with a runtime warning, plus we don't want it to appear in docs,
5190 plus if we make them yellow no one will want to change them
5193 Thu Jun 28 23:53:31 2001 Tim Janik <timj@gtk.org>
5195 * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
5196 GTK_WIDGET_REALIZE() for resize queueing.
5198 * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
5199 GTK_WIDGET_REALIZE() for post event delivery destruction upon
5202 * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
5203 sompensate for former (pre-2.0) connect_after() facility.
5204 (gtk_widget_send_expose):
5205 (gtk_widget_event): assert the widget is realized, since event delivery
5206 to non-realized widgets is essentially a bug. event handlers should
5207 be able to unconditionally rely on widget->window (unless they
5208 emit events on their own which can trigger widget destruction).
5209 (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
5210 logic. event delivery happens as follows:
5211 a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
5212 b) if !was_handled in (a) and the widget is still realized, emit event-
5213 specific signal (RUN_LAST handler). returns was_handled.
5214 c) emission of GtkWidget::event-after for notification if the widget is
5215 still realized (regardless of was_handled from previous stages, no
5216 class handler). no return value.
5217 d) was_handled gets passed on to caller, to determine further
5218 propagation. if the widget got unrealized meanwhile, was_handled
5219 is returned as TRUE.
5221 * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
5222 gdk_event_get_coords().
5224 Thu Jun 28 17:18:41 2001 Tim Janik <timj@gtk.org>
5226 * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
5227 age 0, binary age 0. depend on glib 1.3.7.
5229 * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
5231 * gtk/gtkmenubar.c: same here.
5233 * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
5235 * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
5237 * gtk/gtkentry.c (gtk_entry_focus_in): same here.
5239 * gtk/gtkmenubar.c (add_to_window): likewise.
5241 * gtk/gtktextbtree.c: and here...
5243 * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
5245 * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
5247 * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
5249 * gtk/gtktreeviewcolumn.c:
5250 (_gtk_tree_view_column_set_tree_view): yet again.
5252 * demos/gtk-demo/images.c (progressive_timeout): demonstrate
5253 signal connections without g_signal_connect_data().
5255 * demos/gtk-demo/stock_browser.c (do_stock_browser): second
5258 * demos/testpixbuf.c (main): running out of equality phrases for the
5259 ChangeLog, but had to adapt connections here as well.
5261 * demos/testanimation.c (progressive_timeout): and for the fun of it,
5262 tackled this the same way.
5264 * tests/testtext.c (create_view): ok, it's becoming a pain at this
5265 point, but had enough enery for one more fix.
5267 * tests/testtreecolumns.c (main): stand up man, do your work!
5269 * tests/testtreeview.c (set_columns_type): ok, this is the last file i
5270 fix, either that's been all of it or CVS gtk is broken yet again.
5272 2001-06-29 James Henstridge <james@daa.com.au>
5274 The following changes correspond to bug #56812
5276 * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
5279 * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
5282 2001-06-19 Havoc Pennington <hp@pobox.com>
5284 * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
5285 for mapping a window without fooling with stacking order, but
5286 updating the "withdrawn" flag
5288 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
5289 filtering as soon as possible, moving move resize and wmspec_check
5290 handling after the event filter. Make default filter apply to all
5291 events, not just those with no GdkWindow wrapped around the X
5292 window. Fix a FIXME about how the window could be a pixmap using
5293 RTTI; this of course assumes GDK_IS_WINDOW() is optimized.
5295 Also, be robust against events not on a known GdkWindow.
5297 * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
5298 gdk_x11_ungrab_server): export reference-counted server grabs, so
5299 other people can grab server over a GDK function that also does
5302 Wed Jun 27 19:40:31 2001 Jonathan Blandford <jrb@redhat.com>
5304 * gtk/gtktreeviewcolumn.c
5305 (gtk_tree_view_column_pack_start_cell_renderer): New function to
5306 reflect that you can (hypothetically) pack cell renderers into a
5308 (gtk_tree_view_column_pack_end_cell_renderer): ditto.
5309 (gtk_tree_view_column_cell_is_visible): Move more functionality to
5311 (gtk_tree_view_column_cell_can_focus): Move more functionality to
5314 * gtk/gtktreeview.c: Move to use new column-packing code.
5315 (gtk_tree_view_real_expand_row): remove totally braindead code.
5316 (gtk_tree_view_real_collapse_row): ditto.
5318 2001-06-27 Kjartan Maraas <kmaraas@gnome.org>
5320 * gtk/gtktreeviewcolumn.c: Fix a typo.
5322 2001-06-26 Joel Becker <jlbec@evilplan.org>
5324 * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
5325 at the end of the file
5327 2001-06-26 Havoc Pennington <hp@redhat.com>
5329 * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
5331 2001-06-26 Havoc Pennington <hp@redhat.com>
5333 * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
5336 Tue Jun 26 12:59:28 2001 Jonathan Blandford <jrb@redhat.com>
5338 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
5339 stupid missing statement
5341 * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
5342 private function for ATK. It notifies you of how many _visible_
5343 children are deleted when a node is deleted. Should be used by
5346 Tue Jun 26 11:06:34 2001 Owen Taylor <otaylor@redhat.com>
5348 * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
5349 Use new pango_context_get_metrics() to fix problems
5350 with font lists in descriptions. (#56184, reported by
5353 Tue Jun 26 10:04:30 2001 Tim Janik <timj@gtk.org>
5355 * gtk/gtkiconfactory.c:
5356 * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
5357 item factory so inlined pixbufs actually work.
5359 2001-06-25 Havoc Pennington <hp@redhat.com>
5361 * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
5362 s/RESIZEABLE/RESIZABLE/
5364 * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
5366 2001-06-25 Alexander Larsson <alexl@redhat.com>
5369 Added --enable-fbmanager. This is some experimental code
5370 that lets several GtkFB apps coordinate their access to the
5374 Added ENABLE_FB_MANAGER.
5376 * gdk/linux-fb/Makefile.am:
5377 Added gdkfbmanager and gdkfbswitch.
5379 * gdk/linux-fb/gdkkeyboard-fb.c:
5380 * gdk/linux-fb/gdkmouse-fb.c:
5381 * gdk/linux-fb/gdkprivate-fb.h:
5382 Split device init and open so that
5383 they can be opened and closed while switched
5386 * gdk/linux-fb/gdkmain-fb.c:
5387 Add the basic manager communication.
5389 * gdk/linux-fb/gdkrender-fb.c:
5390 Don't update to the shadow fb if we're
5391 blocked by the fb manager.
5393 Sun Jun 24 22:15:16 2001 Owen Taylor <otaylor@redhat.com>
5395 * docs/Changes-2.0.txt: Add note about child property
5398 Sun Jun 24 21:34:32 2001 Owen Taylor <otaylor@redhat.com>
5400 * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
5401 drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
5403 * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
5404 with un'reffing wrong list reported by Jeff Franks.
5406 * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
5408 * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
5409 for the default icon. Remove inline XPM.
5411 * gtk/gtkstock.h gtk/gtkiconfactory.c:
5412 Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
5413 is used for GTK_STOCK_DND, but it is a bit too small.)
5415 * gtk/stock-icons/stock_dnd_multiple.png
5416 gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
5418 * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
5419 TRUE when starting a drag. In other cases, we are
5420 just observing. (#52995)
5422 * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add
5423 function to set the icon for a drag from a GdkPixbuf
5426 * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}):
5427 Likewise, for drag sources.
5429 * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
5430 (Now should be done using the stock system.)
5432 Sun Jun 24 12:06:47 2001 Owen Taylor <otaylor@redhat.com>
5434 * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size):
5435 Removed - didn't work and not particularly useful anyways
5438 Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com>
5440 * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
5441 introduced last night that was making things decidedly not work.
5443 * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
5444 so that we have getter/setter pairing everywhere it makes
5447 * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
5448 Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
5449 deprecated compat macro. (#55516)
5451 * gtk/gtklabel.[ch]: Add functions
5452 gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
5453 gtk_label_set_label(), which mirror the property API for GtkLabel.
5454 Make gtk_label_get_attributes() only reflect the attributes
5455 set by gtk_label_set_attributes.
5457 * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
5458 from gtk_notebook_set_page().
5460 Sat Jun 23 18:02:46 2001 Owen Taylor <otaylor@redhat.com>
5462 * configure.in: Fix tests for XShm.h.
5464 * gdk/x11/gdkimage-x11.c: Cleanup error handling in
5465 gdk_image_new() by use of goto, properly use g_object_unref().
5467 Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
5469 * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
5470 calls, as GdkImage is an object. these should be g_obejct_unref()
5471 instead but that won't work because of the g_error() statement
5472 in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
5473 to spot these places.
5475 Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
5477 * modules/input/gtkimcontextxim.c: Fixup some problems with
5478 text length handling in error cases.
5480 * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
5481 a bit to make test actually warn on attempt to allocation
5482 a negative size. (#56101, Matthias Clasen)
5484 Fri Jun 22 14:06:08 2001 Jonathan Blandford <jrb@redhat.com>
5486 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
5487 noticed by Brian Cameron.
5488 (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
5491 2001-06-22 Hans Breuer <hans@breuer.org>
5493 * gdk/gdk.def : updated externals
5495 * gdk/win32/gdkdrawable-win32.c : corrected some casts
5498 * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
5499 to translate coordinates to the internal > 16 bit system
5500 Try to handle WM_WINDOWPOSCHANGED to get better performance for
5501 when moving/resizing
5503 * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
5504 and gdk_keymap_get_direction (). The latter is untested for
5507 * gtk/gtk.def : updated externals
5509 * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
5510 from pango_language_from_string (), not an already freed pointer
5512 * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be
5513 binary (-kb) to be useable on windoze
5515 2001-06-21 Alexander Larsson <alexl@redhat.com>
5517 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
5518 Update to new PangoLanguage changes.
5520 * gtk/gtkwindow-decorate.c:
5521 * gtk/gtkwindow.[ch]:
5522 Added setting argument to gtk_window_set_has_frame ()
5524 Thu Jun 21 13:42:01 2001 Owen Taylor <otaylor@redhat.com>
5526 * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
5527 the case without XKB properly.
5529 * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
5530 unused gtk_rc_auto_parse variable.
5532 * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
5533 Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
5534 longer needed with GdkPixbuf.
5536 * gtk/gtkrc.c (_gtk_rc_init): Make private.
5538 Fri Jun 15 16:26:12 2001 Owen Taylor <otaylor@redhat.com>
5540 * gtk/gtkentry.h: Mark deprecated functions with
5541 GTK_DISABLE_DEPRECATED.
5543 Mon Jun 11 18:15:16 2001 Owen Taylor <otaylor@redhat.com>
5545 * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
5547 * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
5549 * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
5550 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
5551 gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
5552 gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
5553 to recent changes in Pango.
5555 * tests/testgtk.c: Set language tags with gtk_label_set_markup()
5556 to test whether the basic engine honors them.
5558 Thu Jun 21 02:13:40 2001 Tim Janik <timj@gtk.org>
5560 * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
5561 gtk_container_child_get_property().
5563 Wed Jun 20 19:19:15 2001 Jonathan Blandford <jrb@redhat.com>
5565 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
5566 (gtk_tree_view_move_cursor_page_up_down): implement.
5568 Wed Jun 20 05:32:05 2001 Tim Janik <timj@gtk.org>
5570 * gtk/gtkspinbutton.c: make maximum digits compile time configurable
5571 via MAX_DIGITS and up to 20. 5 was just ridiculously small.
5572 don't use automatic fixed size buffer for printf-ing floats, doubles
5573 can expand to really _huge_ strings, use g_strdup_printf() instead.
5575 Wed Jun 20 04:28:24 2001 Tim Janik <timj@gtk.org>
5577 * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
5578 construct property in 1.2 and still needs to be.
5580 * gtk/gtkwidget.c: "composite_child" is not a settable property.
5582 Tue Jun 19 19:13:19 2001 Jonathan Blandford <jrb@redhat.com>
5584 * gtk/gtkliststore.c (gtk_list_store_clear):
5585 * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
5588 Mon Jun 18 02:00:49 2001 Tim Janik <timj@gtk.org>
5590 * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
5593 * gtk/gtk.h: disabled GtkPacker compilation.
5595 * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
5597 * gtk/gtknotebook.c:
5599 * gtk/gtkbox.c: ported this over to child properties.
5601 * gtk/gtksettings.c: fetch class properties via
5602 g_object_class_list_properties().
5604 * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
5605 child arg interface. use gobjectnotifyqueue.c for child property
5608 * gtk/gtkwidget.[hc]: provide necessary means for container child
5609 properties, i.e. ::child_notify signal,
5610 gtk_widget_freeze_child_notify(),
5611 gtk_widget_child_notify(),
5612 gtk_widget_thaw_child_notify().
5614 * tests/testgtk.c: removed inferior property handling code, for
5615 property editing, a generic module should be used, and GLE
5616 coincidentally fullfills that purpose.
5618 * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
5619 needs to be adapted to g_object_class_list_properties() before this
5622 Mon Jun 18 20:06:10 2001 Jonathan Blandford <jrb@redhat.com>
5624 * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
5625 test if a node is expanded.
5627 Mon Jun 18 19:41:38 2001 Jonathan Blandford <jrb@redhat.com>
5629 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
5630 where collapsing a selected row would result in the cursor/anchor
5633 Fri Jun 15 18:53:48 2001 Jonathan Blandford <jrb@redhat.com>
5635 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
5636 gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.
5637 * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
5638 Now I can really reorder/sort all Store widgets. treesorttest
5639 seems to just work now.
5640 * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
5641 testtreesort worked through a big coincidence all this time.
5642 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
5644 * tests/testtreecolumns.c: Big 'ol warning at the top letting
5645 people know that this code should never ever ever be copied.
5647 2001-06-15 Jonas Borgström <jonas@codefactory.se>
5649 * gtk/gtkwindow.h: Fixed a small typo, it should be
5650 GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
5653 2001-06-14 Havoc Pennington <hp@redhat.com>
5657 * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
5658 GTK_DISABLE_DEPRECATED
5660 Thu Jun 14 19:21:27 2001 Jonathan Blandford <jrb@redhat.com>
5662 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops. Forgot
5663 this a couple months ago. Now GtkTreeStore sort of sorts. I'll
5664 finish it off tonight, though it basically works now when it's a
5665 list. Also, I have a sinking feeling neither GtkTreeStore or
5666 GtkListStore actually resort when adding a new item. I'll look
5669 2001-06-14 Havoc Pennington <hp@redhat.com>
5671 * demos/gtk-demo/main.c (load_file): fix bug identified by
5672 warnings I just added to gtktextbuffer
5674 2001-06-14 Havoc Pennington <hp@redhat.com>
5676 * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
5678 * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
5680 * gtk/gtktextbtree.c: don't leak node data all over the place.
5682 * demos/gtk-demo/main.c (main): create fontify tags for the right
5685 * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
5686 to mention tags in the same table can't have the same name,
5687 suggested by Skip Montanaro
5689 2001-06-11 Havoc Pennington <hp@redhat.com>
5691 * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning
5692 for trying to add two tags with same name to the tag table
5694 * demos/gtk-demo/main.c (main): fix colors ;-)
5696 `Fri Jun 8 17:56:52 2001 Owen Taylor <otaylor@redhat.com>
5698 * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
5699 that allows grouping together multiple windows so that grabs
5700 within that set of windows only affect those windows.
5702 * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
5703 signal for notification when a widget becomes shadowed
5704 by a grab or is no longer shadowed by a grab.
5706 * gtk/gtkwidget.c (gtk_widget_propagate_state)
5707 gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
5708 insenstive widgets to maintain a grab.
5710 2001-06-14 Alexander Larsson <alexl@redhat.com>
5712 * docs/README.linux-fb:
5713 Add some example config files that can be used with the URW fonts.
5715 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
5716 Set up the color ramps for DirectColor mode.
5718 2001-06-11 Havoc Pennington <hp@redhat.com>
5722 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
5724 * gdk/linux-fb/gdkwindow-fb.c:
5725 Unify shaped window code and make it repaint the area that used
5726 to be part of the shape, but isn't anymore.
5728 2001-06-11 Havoc Pennington <hp@redhat.com>
5732 * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
5734 * gtk/Makefile.am: glib_genmarshal already contains top_builddir
5736 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
5738 * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
5739 Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
5740 passes zero instead, so do we.
5742 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
5744 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
5745 Deep copy dash_list too.
5746 (_gdk_fb_gc_new): Set default cap_style before
5749 2001-06-12 Alexander Larsson <alla@lysator.liu.se>
5751 * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
5752 gdk_keymap_get_direction): New functions.
5754 Tue Jun 12 12:41:27 2001 Jonathan Blandford <jrb@redhat.com>
5756 * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
5757 gtk_tree_model_get_flags by adding a second flag for atk.
5759 * gtk/gtktreemodel.c: make cursor behavior interact better with
5762 Mon Jun 11 12:43:08 2001 Jonathan Blandford <jrb@redhat.com>
5764 * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
5765 expand_row/collapse_row to be 2 signals each -- test_expand_row
5766 and row_expanded as well as test_collapse_row and row_collapsed.
5768 2001-06-10 Anders Carlsson <andersca@codefactory.se>
5770 * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
5771 signal name to be changed instead of selection_changed.
5773 2001-06-08 Havoc Pennington <hp@redhat.com>
5775 * gtk/gtkentry.c (gtk_entry_class_init): add read-only
5776 "scroll_offset" property for notification when the layout offsets
5778 (gtk_entry_adjust_scroll): add notify for scroll_offset
5779 (gtk_entry_layout_index_to_text_index): function to compensate for
5780 preedit string when doing coordinate stuff on the entry's layout
5781 (gtk_entry_text_index_to_layout_index): inverse function
5782 (gtk_entry_get_layout_offsets): hook to get current position of
5784 (gtk_entry_get_layout): hook to get the layout itself.
5786 * gtk/gtklabel.c (gtk_label_get_layout): new function
5788 Fri Jun 8 19:49:29 2001 Jonathan Blandford <jrb@redhat.com>
5790 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
5792 (gtk_tree_view_focus): Fix merge conflict.
5794 Fri Jun 8 18:41:30 2001 Jonathan Blandford <jrb@redhat.com>
5796 * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
5797 clean up cursor handling.
5799 2001-06-08 Havoc Pennington <hp@redhat.com>
5801 * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
5804 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
5807 2001-06-08 Alex Larsson <alexl@redhat.com>
5809 * gtk/gtkcompat.h.in:
5810 Added compat macros for all old GTK_TYPE_GDK_xxx types.
5813 2001-06-08 Havoc Pennington <hp@redhat.com>
5815 * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
5818 2001-06-08 Havoc Pennington <hp@redhat.com>
5820 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
5821 don't call g_list funcs on GSList
5823 * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
5824 gtk_container_focus(), since some widgets have focusable locations
5825 which are not other widgets. These widgets should not have to be
5826 containers just to manage the focus. For example, GtkHSV is
5827 currently a container for no good reason. Also, this cleans
5828 up the "if (is_container && is_sensitive && is_drawable)
5829 container_focus ()" mess in widget implementations.
5831 * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
5832 function, and have it just call gtk_widget_child_focus().
5834 * gtk/gtkhsv.c: derive from widget not container
5836 Throughout: fix to reflect GtkContainer::focus change
5838 Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
5840 * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
5841 range. Fix bug #55921
5843 * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
5846 Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
5848 * gdk/gdkkeys.[ch]: Add a direction-changed signal,
5849 and gdk_keymap_get_current_direction().
5851 * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
5852 gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
5853 the current locked group, use it to set the keymap
5856 * gtk/gtksettings.c: Add a new gtk-split-cursor setting
5857 to determine whether we draw a split cursor or use
5858 a jumping cursor based on the current direction.
5860 * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
5861 Obey the split cursor setting.
5863 Fri Jun 8 11:57:50 2001 Owen Taylor <otaylor@redhat.com>
5865 * gtk/gtkimmulticontext.c (activate_cb): Only activate
5866 when toggling on, not when toggling off... (#55906)
5868 Wed Jun 6 10:37:07 2001 Owen Taylor <otaylor@redhat.com>
5870 * gtk/gtkwidget.c (gtk_widget_set_double_buffered):
5871 s/gdk_window_begin_paint/gdk_window_begin_paint_region/
5872 in docs. (#55812, Vitaly Tishkov)
5874 2001-06-08 Anders Carlsson <andersca@codefactory.se>
5876 * demos/gtk-demo/main.c (create_tree): Changed signal name from
5877 selection_changed to changed in signal connection to GtkTreeSelection,
5878 also used g_signal_connectc since GtkTreeSelection is now a GObject.
5880 Thu Jun 7 18:25:42 2001 Jonathan Blandford <jrb@redhat.com>
5882 * gtk/gtktreeselection.c: Now it's a GObject instead of a
5883 GtkObject. The GtkTreeSelection::selection_changed signal is now
5884 the GtkTreeSelection::changed signal.
5886 * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
5889 * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
5892 2001-06-07 Havoc Pennington <hp@redhat.com>
5894 * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
5896 2001-06-07 Havoc Pennington <hp@redhat.com>
5898 * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
5899 (not tested yet because with absolute path to srcdir I can't build
5900 atk, but it was broken anyway so this may help)
5902 2001-06-07 Havoc Pennington <hp@redhat.com>
5904 * configure.in: output m4macros/Makefile
5906 Wed Jun 6 21:59:16 2001 Jonathan Blandford <jrb@redhat.com>
5908 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
5909 buttons. Fixes #55460 reported by matthiasc@poet.de.
5911 Wed Jun 6 21:18:54 2001 Jonathan Blandford <jrb@redhat.com>
5913 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
5914 expansion/collapsing so it only happens in one place.
5915 (gtk_tree_view_real_expand_row): ditto.
5917 2001-06-07 Havoc Pennington <hp@redhat.com>
5919 * tests/Makefile.am: add missing -I flag
5921 * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
5923 * configure.in: use pkg-config to see if GModule is
5924 supported; fix to properly turn on included loaders
5925 when GModule isn't supported; don't use AC_CHECK_LIB
5926 when libs are not installed yet
5928 * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
5930 * Makefile.am (SUBDIRS): add m4macros subdir
5932 * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
5935 Wed Jun 6 19:31:11 2001 Jonathan Blandford <jrb@redhat.com>
5937 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
5938 reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
5940 Wed Jun 6 20:01:38 2001 Jonathan Blandford <jrb@redhat.com>
5943 (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
5944 bindings to expand and collapse rows.
5945 (gtk_tree_view_real_select_cursor_parent): New key binding.
5946 (gtk_tree_view_real_toggle_cursor_row): New key binding.
5948 * gtk/gtkmarshal.list: new
5949 marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
5951 2001-06-06 Havoc Pennington <hp@redhat.com>
5953 * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
5955 * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
5956 Down to move visually rather than logically, since it confuses
5957 people. Add -/+ and Ctrl--/+ bindings for logical movement.
5959 2001-06-06 Alex Larsson <alexl@redhat.com>
5961 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
5962 Fix up error messages.
5964 Wed Jun 6 10:34:42 2001 Owen Taylor <otaylor@redhat.com>
5966 * gtk/gtktooltips.h: Include gtkwidget.h
5967 (#55798, Karl Nelson)
5969 * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
5970 a valid latin-1 character. (Marc Lehmann, #35467)
5972 * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment.
5973 (Marc Lehmann, #35467)
5975 2001-06-05 Alex Larsson <alexl@redhat.com>
5977 * demos/gtk-demo/appwindow.c (do_appwindow):
5978 Don't swap the order of the args to gtk_widget_destroyed.
5980 * tests/testgtk.c (destroy_properties):
5981 Don't crash when the properties window is destroyed.
5983 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
5984 Use with_mnemonics to handle the case of stock items with
5985 underscores in them.
5987 2001-06-05 Havoc Pennington <hp@redhat.com>
5989 * gtk/gtktextiter.c (gtk_text_iter_order): rename from
5990 gtk_text_iter_reorder
5992 2001-06-05 Havoc Pennington <hp@redhat.com>
5994 * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
5996 2001-06-05 Havoc Pennington <hp@redhat.com>
5998 * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value
5999 to the range that was set
6001 * gtk/gtkrange.c: add value_changed signal, primarily
6002 intended for use with GtkScale
6003 (gtk_range_set_increments): new function
6004 (gtk_range_set_range): new function with weird name
6005 (gtk_range_set_value): new function
6006 (gtk_range_get_value): new function
6008 * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename
6009 from gtk_spin_button_get_value_as_float(). Compat #define
6010 added for get_value_as_float.
6012 * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
6014 * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
6016 Tue Jun 5 14:57:18 2001 Jonathan Blandford <jrb@redhat.com>
6018 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
6020 Mon Jun 4 12:41:25 2001 Owen Taylor <otaylor@redhat.com>
6022 * gtk/gtkwidget.h: Deprecate gtk_widget_set().
6024 * tests/testgtk.c (create_tooltips): Remove usage of
6027 2001-06-05 Havoc Pennington <hp@redhat.com>
6029 * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
6031 Applying patch from Jeff Franks, with function docs added.
6033 * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
6034 remove call to set_mnemonic_widget, change docs a bit.
6036 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
6039 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
6042 * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
6044 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
6046 (gtk_radio_button_new_with_mnemonic_from_widget): new function
6048 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
6051 * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
6054 * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on
6055 auto-selection of mnemonic widget.
6057 Mon Jun 4 15:05:24 2001 Jonathan Blandford <jrb@redhat.com>
6059 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
6060 Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
6061 (gtk_tree_view_column_set_min_width): ditto.
6063 Tue Jun 5 11:04:06 2001 Owen Taylor <otaylor@redhat.com>
6065 * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS):
6066 s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
6068 Mon Jun 4 12:50:11 2001 Owen Taylor <otaylor@redhat.com>
6070 * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
6073 2001-06-04 Havoc Pennington <hp@pobox.com>
6075 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
6076 r eleases for buttons 6, 7
6078 2001-06-04 Havoc Pennington <hp@redhat.com>
6080 * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
6081 (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
6084 2001-06-04 Havoc Pennington <hp@redhat.com>
6086 * gtk/gtktextview.c (gtk_text_view_size_request): handle case
6087 where text_view->layout == NULL by assuming its size is 0,
6088 i.e. same as if we haven't done any reflow. Reported by
6089 Hidetoshi Tajima #55448
6091 2001-06-04 Havoc Pennington <hp@redhat.com>
6093 * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
6094 and 7 for scroll left/right, from Thomas Broyer
6096 2001-05-10 Havoc Pennington <hp@redhat.com>
6098 * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
6099 we need to parse the xsetting as if it were an RC file string.
6101 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
6102 value of palette from settings, not from static variable
6104 * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
6105 xsettings translation table
6107 * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because
6108 hardcoding the toolbar style conflicts with new customizable
6109 toolbar style philosophy
6110 (gtk_toolbar_class_init): add settings for default toolbar style;
6111 these are used unless the app specifically forces a toolbar style
6113 * gtk/gtksettings.c (settings_install_property_parser): only
6114 return at the start if we warn and parser == NULL
6116 * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
6117 palette changed handler so we don't notify dead color selections
6119 * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
6120 xthickness/ythickness of 0 or 1 properly
6121 (gtk_default_draw_resize_grip): clear the background behind the
6122 resize grips, and align to bottom right if we square the
6125 * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on
6126 statusbar label to 1, so it doesn't make toplevels resize oddly
6127 (gtk_statusbar_size_request): add grip size to request
6128 (gtk_statusbar_size_allocate): hack so the hbox still works with
6129 the grip size in the request
6131 * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix
6132 bug where showing all on a toplevel makes the toolbar
6133 button text appear despite the toolbar mode
6135 * gtk/gtkmenubar.c: add internal padding style property
6137 * gtk/gtktoolbar.c: Add internal padding style property; add
6138 shadow type style property
6140 * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
6141 state; and put Container::border_width outside the frame
6143 * gtk/gtktextview.c: don't draw focus rectangle if we're in
6144 interior focus mode, we just use blinking cursor
6146 2001-06-04 Havoc Pennington <hp@redhat.com>
6148 * configure.in: Make gdk-pixbuf have same version number as GTK
6150 2001-06-04 Havoc Pennington <hp@redhat.com>
6152 * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on
6153 digits greater than 6. If there actually are limits (which there
6154 likely aren't), should clamp to them not warn.
6155 (gtk_spin_button_new_with_range): don't take log of 0
6156 (gtk_spin_button_size_request): use digits to compute size
6157 request, rather than step increment.
6159 * tests/testgtk.c (create_spins): test larger values of digits
6161 * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
6162 font on map not expose, so we don't get weirdness during scrolling
6164 2001-06-04 Havoc Pennington <hp@redhat.com>
6166 * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
6167 Sam Solon, bug #54577, update value even if not drawable.
6169 2001-06-04 Havoc Pennington <hp@redhat.com>
6171 * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
6172 SCROLL_LEFT, reported by Thomas Broyer.
6174 2001-06-04 Havoc Pennington <hp@redhat.com>
6176 * gtk/gtkrange.c (gtk_range_adjustment_value_changed):
6177 Process updates immediately, to prevent funny lag effect
6178 when scrolling, at some mild potential efficiency cost.
6180 2001-06-04 Havoc Pennington <hp@redhat.com>
6182 * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
6183 slider on the click.
6185 2001-06-03 Havoc Pennington <hp@pobox.com>
6187 * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
6188 hscale/vscale details, so we can use it for scrollbar as well.
6190 * tests/testgtk.c (reformat_value): honor digits from GtkScale
6192 * gtk/gtkenums.h (GtkTroughType): Remove this enum
6193 (GtkScrollType): add START and END from GtkTroughType
6195 * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
6198 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
6199 gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
6200 gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
6201 gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
6202 gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
6204 Notable changes in the process:
6206 - stepper_size style property is the height for vertical
6207 ranges, width for horizontal; the other dimension matches
6209 - add ability to do NeXT-style steppers (and several other styles
6210 that don't make any sense)
6211 - added min_slider_length, fixed_slider_length properties to
6213 - cleaned some private (or at least useless) functions out of
6215 - moved bindings to GtkScale from subclasses, even arrow keys,
6216 since blind users don't know scale orientation.
6217 - change move_slider action signal to use new GtkScrollType,
6218 remove GtkTroughType argument
6219 - digits rounds the values a range will input to the given
6220 number of decimals, but will not try to force adjustment
6221 values set by other controllers. That is, we no longer
6222 modify adjustment->value inside a value_changed handler.
6223 - added getters for GtkScale setters
6224 - middle-click begins a slider drag
6226 Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com>
6228 * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
6229 getting the focus code to work.
6230 (gtk_tree_view_class_init): Add a bunch of keybindings.
6232 * gtk/gtktreeviewcolumn.c
6233 (gtk_tree_view_column_set_cell_data_func):
6234 s/GtkCellDataFunc/GtkTreeCellDataFunc.
6235 (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
6236 of "properties_changed" to help justify the death of the latter
6239 * tests/testtreefocus.c (main): Let some columns be focussable to
6242 2001-06-01 Havoc Pennington <hp@redhat.com>
6244 * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
6246 * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
6247 overwrite in overwrite mode if we already deleted the selection
6248 and replaced it with new text.
6250 * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
6251 selection to an empty range, clear the clipboard if we owned it.
6252 (gtk_label_set_selectable): give up selection if we become
6254 (gtk_label_state_changed): override state changed to unselect text
6256 (get_text_callback): add paranoia check that indexes aren't
6257 outside of label->text
6258 (gtk_label_select_region): make -1 for start_offset mean "end of
6259 label," for consistency with GtkEditable
6261 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
6262 GTK_DIALOG_NO_SEPARATOR flag
6264 Fri Jun 1 11:47:11 2001 Owen Taylor <otaylor@redhat.com>
6266 * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix
6267 notifications on non-existant "enable_arrow_keys".
6268 (#53753, Skip Montanaro)
6270 Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
6272 * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
6275 * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
6276 of allocation argument be GDK_TYPE_RECTANGLE.
6278 Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
6280 * gtk/gtkoptionmenu.c: Account for the fact that the border
6281 width is _outside_ the window. (Fixes #54585, bug found
6284 Wed May 30 15:56:30 2001 Owen Taylor <otaylor@redhat.com>
6286 * gtk/gtksettings.c (gtk_settings_get_property): Validate
6287 value from GDK settings against parameter spec.
6289 * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
6290 to temporary values and use g_value_transform(), since
6291 thinking that GValue was going to be easy or efficient
6292 to use was, of course, a mistake.
6294 * gtk/gtksettings.c: Add cursor blink setting.
6296 * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
6298 * gtk/gtkentry.c: Add cursor blinking.
6300 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
6301 cursor blink global settings.
6303 * gtk/gtkentry.c (gtk_entry_button_press): Add notification
6304 for :text_position in places where it is missing.
6306 Tue May 29 18:17:11 2001 Owen Taylor <otaylor@redhat.com>
6308 * autogen.sh (have_libtool): Fix GNU sedism (#55430)
6310 Tue May 29 17:40:29 2001 Owen Taylor <otaylor@redhat.com>
6312 * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
6313 not pkg-config. (#51032)
6315 * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
6316 (fixes #51952, James Henstridge)
6318 2001-05-27 Alexander Larsson <alla@lysator.liu.se>
6320 * gtk/gtkstock.h (GTK_STOCK_GO_UP):
6321 Rename to the more correct gtk-go-up.
6323 * gtk/stock-icons/stock_menu_sort_ascending.png:
6326 * gtk/stock-icons/stock_menu_sort_descending.png:
6327 Changed to show descending instead of ascending.
6329 * gtk/gtkiconfactory.c:
6330 Added menu size icon to sort ascending.
6332 * gtk/stock-icons/Makefile.am:
6333 Added stock_menu_sort_ascending.png.
6335 * gtk/gtkseparatormenuitem.c:
6336 Use correct typenames.
6338 Sun May 20 20:07:35 2001 Tim Janik <timj@gtk.org>
6340 * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
6341 gulong as in GSignal.
6343 Fri May 25 19:04:17 2001 Jonathan Blandford <jrb@redhat.com>
6345 * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
6346 instances of GtkCellRenderer in code (all but dnd icon code).
6347 Virtualized in GtkTreeViewColumn. Now I need to move focus in
6348 there, and I can do multiple Cells per column.
6350 * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
6352 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
6353 when model was unreffed prior to removing the row reference.
6355 2001-05-25 Havoc Pennington <hp@redhat.com>
6357 * gtk/gtkiconfactory.c: fix so that default icons are created if
6358 you call gtk_stock_list_ids()
6360 * demos/gtk-demo/stock_browser.c (create_model): sort stock items
6363 2001-05-25 Havoc Pennington <hp@redhat.com>
6365 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
6366 set can render without falling back to missing image icon
6368 * gtk/gtktextview.c (gtk_text_view_size_request): request full
6369 size of text, instead of random values
6371 * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
6372 size of tree view, instead of random values
6374 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
6375 image in an appropriate size
6377 * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
6378 etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
6380 Throughout: fix GTK_STOCK_BUTTON_ instances
6382 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
6383 gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
6384 Add a bunch of new stock items/icons
6386 * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
6387 new function, convenience for inserting columns with a data func
6389 * gtk/gtkiconfactory.c: keep a list of all existing icon factories
6390 (_gtk_icon_factory_list_ids): use list of all factories to
6391 generate a list of all known IDs
6393 * gtk/gtkstock.c (gtk_stock_list_ids): replace
6394 gtk_stock_list_items() with a function that returns all IDs known
6395 including those for GtkIconFactory.
6397 2001-05-25 Hans Breuer <hans@breuer.org>
6399 * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
6400 work -> check boxes and radio buttons are drawn now, even on win9x.
6401 Improved line settings a bit, still no clue how to get really dotted
6402 lines on win9x, on NT it's PS_ALTERNATE.
6404 * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for
6405 GDK_HINT_MIN_SIZE as well
6407 * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
6409 * gtk/gtk.def : updated
6411 * gtk/gtktreeprivate.h : change column_drop_func to be a function
6412 pointer not a function pointer pointer
6414 * tests/testdnd.c : include <stdlib.h> for putenv prototype
6416 * tests/testsocket.c : made it compile on win32 again
6418 * tests/makefile.msc : one more test-app uses prop-editor.obj
6420 2001-05-22 Havoc Pennington <hp@pobox.com>
6422 * gtk/gtkbin.c (gtk_bin_get_child): New function
6424 Wed May 23 20:07:53 2001 Owen Taylor <otaylor@redhat.com>
6426 * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
6427 to ignore when doing compose processing.
6429 2001-05-22 Joe Shaw <joe@ximian.com>
6431 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle):
6432 Simplify as suggested by Havoc. Just get the last iter and work
6433 backward to the tag instead of getting a line and working back from
6434 there. Fixes passing in an invalid offset to
6435 iter_init_from_byte_offset().
6437 Tue May 22 16:25:27 2001 Jonathan Blandford <jrb@redhat.com>
6439 * gtk/gtktreeview*.h:
6442 Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
6443 macros to all objects.
6445 Tue May 22 15:13:52 2001 Jonathan Blandford <jrb@redhat.com>
6447 * gtk/gtkcellrenderertext.c
6448 (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
6449 with very large (TM) amounts of text. May be moved to
6450 GtkCellRenderer in the future, though I'm not sure it wants to be
6453 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
6454 More sanity brought to this class. I like it.
6456 * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
6457 case. Kids, don't try this at home.
6459 * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
6460 convenience function.
6462 * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
6464 2001-05-21 Alexander Larsson <alexl@redhat.com>
6467 Added properties. Based on patch by Lee Mallabone.
6473 * gtk/gtktextview.c:
6474 Converted GtkArg to GParam. Based on patches by John Margaglione.
6476 * tests/Makefile.am:
6478 Add a property editor to testtext.
6480 Mon May 21 11:29:21 2001 Owen Taylor <otaylor@redhat.com>
6482 * gtk/gtk{h,v,}paned.c: Only show the separator if
6484 * configure.in: Fixed reversed conditional causing all image
6485 libraries to be linked in.
6487 2001-05-21 Joe Shaw <joe@ximian.com>
6489 * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
6490 that top_y needs to be >= 0.
6492 2001-05-11 Havoc Pennington <hp@pobox.com>
6494 * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
6495 losing connection to the X server.
6497 Sun May 20 13:59:20 2001 Owen Taylor <otaylor@redhat.com>
6499 * configure.in: Start checks for X from pangox/pangoxft
6500 CFLAGS to avoid duplicate libraries.
6502 * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
6504 * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
6507 2001-05-18 Alexander Larsson <alexl@redhat.com>
6509 * gtk/gtkspinbutton.c:
6510 Convert GtkArgs to GParams. Based on patch by John Margaglione.
6511 Also do size request reasonable for MAXDOUBLE. Previously it printed
6512 the limits to a buffer and overran it. Instead do it using log10() and
6513 limit the width to 10 digits.
6515 * gtk/gtkwidget.c (gtk_widget_get_property):
6516 Correctly handle setting the parent property to NULL.
6518 Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
6520 * gtk/gtktextview.c (gtk_text_view_style_set): Reset
6521 style attributes even if the widget isn't realized.
6523 * demos/gtk-demo/main.c: Use a slightly smaller font.
6525 Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
6527 * gtk/gtkcontainer.c: Remove reallocate-redraws property.
6528 This is something that only a widget writer would ever want
6531 * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
6532 gtk_signal_emit_by_name().
6534 * gtk/gtkviewport.c: Fix some warnings.
6536 * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
6537 allowing the requisitions of multiple widgets to be grouped
6540 * tests/testgtk.c: Add GtkSizeGroup test
6542 * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
6544 * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
6547 * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
6549 2001-04-28 Martin Baulig <baulig@suse.de>
6551 * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
6552 to gtk_image_menu_item_set_icon() and made it work if there's already
6554 (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
6555 (gtk_image_menu_item_new_with_label): New function.
6557 Thu May 17 16:20:04 2001 Jonathan Blandford <jrb@redhat.com>
6559 * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
6560 highlighting code!!!! The result is okay so long as you don't try
6561 to stress it. It also highlights a bug in the TextView so it's in
6562 an unproportional font right now until it's fixed.
6564 *demos/gtk-demo/*.c: Clean up code a bit to make it
6565 ugly-parser(TM) friendly. (-:
6567 2001-05-17 Joe Shaw <joe@ximian.com>
6569 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
6570 that x_offset and y_offset must be >= 0. Clip the cursor being drawn
6571 if it is only partially onscreen.
6573 Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
6575 * gtk/gtkentry.c: Make logical motion and deletion by graphemes,
6578 * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
6579 are not zero or one; that is, when graphemes of multiple characters
6582 * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
6585 2001-05-17 Alexander Larsson <alla@lysator.liu.se>
6588 Add properties, based on patch by Lee Mallabone.
6590 * gtk/gtknotebook.c:
6592 Convert from GtkArg to GParam, based on patch by John Margaglione.
6596 * gtk/gtkhscrollbar.c:
6597 * gtk/gtkvscrollbar.c:
6599 Move adjustment property to GtkRange.
6602 Setup mnemonics on property changes
6604 * gtk/gtkwidget.c (gtk_widget_get_property):
6605 GdkExtensionMode is an enum, not a flag. Set it with
6606 g_value_set_enum ().
6608 * tests/prop-editor.c:
6609 Better propery editor.
6612 Add new property test. Pass zero to the property editor to
6613 get properties from all derived types.
6615 Sun May 13 12:01:12 2001 Owen Taylor <otaylor@redhat.com>
6617 * autogen.sh (have_automake): Require libtool-1.4,
6620 * acinclude.m4: Remove libtool macros.
6622 * gdk-pixbuf/Makefile.am: Add dependencies to loade
6625 * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
6628 * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
6629 libgdk.la for libgtk.
6631 * modules/input/Makefile.am: Make modules have full
6634 Wed May 16 14:06:01 2001 Jonathan Blandford <jrb@redhat.com>
6636 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
6637 #54699 where paths weren't being checked for correctness.
6639 Tue May 15 20:13:24 2001 Jonathan Blandford <jrb@redhat.com>
6641 * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
6642 in any order you wan, whether or not the column is added to the
6643 tree, or the tree is realized. Yay!
6645 * gtk/gtktreeviewcolumn.c
6646 (gtk_tree_view_column_setup_sort_column_id_callback): handle
6647 sorting columns a lot saner
6649 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
6650 new function to actually set wether or not a column is
6653 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
6656 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
6657 Fix nasty bug where we were showing the button just before
6658 realizing it. As a result, the parent window was
6659 tree_view->window instead of tree_view->priv->header_window.
6661 * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
6662 to let you easily reorder a list or tree.
6664 2001-05-15 Alexander Larsson <alla@lysator.liu.se>
6666 * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
6667 from args to properties.
6669 Tue May 15 10:11:59 2001 Owen Taylor <otaylor@redhat.com>
6671 * gtk/gtkpreview.c: Apply patch from John Margaglione converting
6672 from args to properties. (#51957)
6674 * gtk/gtkscale.c (gtk_scale_class_init): Move install property
6675 calls to after ->set_property call.
6677 Mon May 14 14:56:21 2001 Owen Taylor <otaylor@redhat.com>
6679 * tests/prop-editor.c: Block against redundant changes.
6681 * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
6684 Sun May 13 18:40:04 2001 Owen Taylor <otaylor@redhat.com>
6686 * gdk/gdkpixmap.h: Remove creative formatting.
6688 Thu May 10 19:22:28 2001 Owen Taylor <otaylor@redhat.com>
6690 * gtk/gtktogglebutton.c: Patch from John Margaglione converting to
6691 property API. (#51669)
6693 * gtk/gtkscale.c: Patch from John Margaglione converting to
6694 property API. (#51891)
6696 * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
6697 to property API. (#50985)
6699 Fri May 11 20:13:44 2001 Tim Janik <timj@gtk.org>
6701 * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
6702 buffering state across expose event, so we still call end_paint().
6704 2001-05-11 Alexander Larsson <alexl@redhat.com>
6706 * gtk/gtkhsv.c (paint_triangle):
6707 Expose the ring in the triangle at the correct place when
6708 exposing just a part of the triangle.
6710 * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
6711 Return FALSE, or window focusing will not work.
6713 2001-05-11 Havoc Pennington <hp@pobox.com>
6715 * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
6718 * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
6721 Fri May 11 02:53:57 2001 Tim Janik <timj@gtk.org>
6723 * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
6724 propagate exposes to NULL child.
6726 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
6727 against not having one of the scrollbars.
6729 * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
6730 we don't keep a mnemonic window if we have no mnemonic installed.
6732 Fri May 11 01:05:00 2001 Tim Janik <timj@gtk.org>
6734 * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
6735 it has the _important_ side effect of initializing a class.
6737 2001-05-10 Alexander Larsson <alexl@redhat.com>
6739 * gdk/linux-fb/gdkprivate-fb.h:
6740 Make sure you can compile out the implementation/wrapper assert
6743 * gdk/linux-fb/gdkdrawable-fb2.c:
6744 Check implementation/wrappers, initialize type for pixmap dummys.
6746 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6747 Hide the cursor if reading from the screen.
6749 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
6750 Fix sign bug in tiling code.
6752 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
6753 Handle background pixmaps.
6755 Wed May 9 15:27:22 2001 Jonathan Blandford <jrb@redhat.com>
6757 * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
6758 function to let user control where columns are dragged.
6760 * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
6763 Wed May 9 09:08:44 2001 Jonathan Blandford <jrb@redhat.com>
6765 * gtk/gtktreeview.c (gtk_tree_view_class_init): New
6766 "columns_changed" signal.
6767 (gtk_tree_view_motion_draw_column_motion_arrow): Change column
6768 motion code to draw arrows to the side if indicator is outside the
6770 (gtk_tree_view_map_expanded_rows): Implement.
6772 2001-05-07 Alexander Larsson <alexl@redhat.com>
6774 * demos/testpixbuf-save.c:
6775 * demos/testpixbuf-drawable.c:
6776 Include gdkfb.h on linux-fb.
6778 2001-05-07 Alexander Larsson <alexl@redhat.com>
6780 * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
6781 New function for getting toplevel window at position.
6782 (gdk_drag_find_window): Use get_toplevel_window () instead
6783 of gdk_window_get_pointer(). (gdk_drag_status): Use
6784 correct context for getting window.
6786 * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
6787 g_strdup the atom name.
6789 * gdk/linux-fb/gdkwindow-fb.c:
6792 * gtk/gtkdnd.c (gtk_drag_source_handle_event):
6793 Add code for changing cursor on linux-fb backend (same as
6796 2001-05-07 Federico Mena Quintero <federico@ximian.com>
6798 * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
6799 present before doing anything with it. Patch from Håvard Kvålen
6800 <havardk@netcom.no>. Fixes Ximian bugzilla #2492 (OK, the bug
6801 report was not for the development branch of GTK+, but it applies
6804 2001-05-04 Havoc Pennington <hp@redhat.com>
6806 * configure.in: fix some shell typos
6808 * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
6810 * gtk/gtkimage.c: handle animations
6812 * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
6813 border_width * 2, not just border_width
6815 * gtk/gtkscale.c: add "format_value" signal to allow people
6816 to override the way values are drawn.
6817 (gtk_scale_get_value_size): fix width/height mistake,
6818 and compute size from actual displayed text, not
6821 * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in
6824 * tests/testtext.c: Add "Remove all tags" menu item for testing
6826 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
6828 * demos/gtk-demo/main.c (main): add hack so we can find modules
6829 without installing gtk
6831 * demos/gtk-demo/textview.c (insert_text): demo font scaling
6833 * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
6835 (gtk_cell_renderer_text_set_property): remove some bogus
6838 * gtk/gtktexttag.c: add "scale" property which is a font scaling
6841 * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
6844 * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
6845 gtk_text_iter_is_first
6847 2001-01-06 Hans Breuer <hans@breuer.org>
6849 * gdk/gdk.def : updated exports
6851 * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
6852 gdk won't compile anymore
6854 * gdk/win32/gdkevents-win32.c : initialize ret_val when
6855 processing GDK_FILTER functions, initialize event.key->hardware_keycode.
6856 Improved gdk_flush () to not only do pending drawing operations
6857 but also process all currently pending events. This should make
6858 the behaviour more similar to the X11 version.
6860 * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
6861 option needs to be set even if there is no GDK_GC_BACKGROUND.
6862 (gdk_win32_hdc_get) : use predraw_set_background () independent
6863 of value_mask. This allows to draw dashed lines leaving the original
6866 * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
6867 after processing, because we can't reuse it as the X11 version does.
6869 * gtk/gtk.def : updated exports
6871 * gtk/makefile.msc.in : added ATK, removed all test apps. (I
6872 would like to get rid of this file again, and use straight
6873 makefile.msc again, as the other Gtk+ subdirs do)
6875 * test/makefile.msc (new file) : build the test apps here
6877 2001-05-05 ERDI Gergo <cactus@cactus.rulez.org>
6879 * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
6880 strike-through setting
6881 (gdk_draw_layout_line_with_colors): Render strike-through
6883 Sat May 5 10:06:24 2001 Owen Taylor <otaylor@redhat.com>
6887 * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
6891 * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
6894 Sat May 5 09:18:30 2001 Owen Taylor <otaylor@redhat.com>
6896 * demos/gtk-demo/images.c (progressive_timeout): Fix
6899 * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
6900 out FIXME warning; just too annoying.
6902 2001-05-04 Alex Larsson <alla@lysator.liu.se>
6904 * gdk/linux-fb/gdkcolor-fb.c:
6905 Better error messages.
6907 * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
6908 Initialize abs_x and abs_y.
6910 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
6911 Correct handling of stipple offset.
6913 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
6914 Treat directcolor framebuffers as truecolor.
6916 Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
6918 * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
6919 dependency on Atk for accessibility support.
6921 * configure.in **/Makefile.am: Major reworking of substituted
6922 variables for CFLAGS/LIBS to make a lot more sane and
6923 keep the the compile/link lines a bit shorter.
6925 * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
6927 Thu May 3 08:10:54 2001 Owen Taylor <otaylor@redhat.com>
6929 * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
6930 value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
6931 use _gtk_boolean_handled_accumulator.
6933 Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
6935 * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
6936 to fix things so clicking inside selection leaves cursor
6937 at point where clicked. (#50324)
6939 * gtk/gtksettings.c (gtk_settings_class_init): Restore
6940 sane value for default double click time.
6942 * tests/testtext.c (test_init): Really path to input modules.
6944 2001-05-03 Sven Neumann <sven@convergence.de>
6946 * demos/testpixbuf-save.c: include target-specific headers as
6947 done in testpixbuf-drawable.c
6949 Wed May 2 20:36:38 2001 Owen Taylor <otaylor@redhat.com>
6951 * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
6952 new_text_length appropriately when we run into the
6953 size limit for the entry. (#53445, reported by Jeff Franks)
6955 * tests/testgtk.c (create_entry): Remove most of the
6956 property toggle buttons. Replace with a "Props" button
6957 that brings up a property editor.
6959 * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
6960 Split the property editor code out for reuse, improve.
6962 Wed May 2 17:26:22 2001 Owen Taylor <otaylor@redhat.com>
6964 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
6965 trap errors around calls to XSetInputFocus since we have
6966 no way of knowing reliably whether we are viewable or
6969 Tue May 1 09:21:23 2001 Jonathan Blandford <jrb@redhat.com>
6971 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
6972 fix bug in dropping columns. Moving columns now basically works
6973 modula some fine tuning.
6975 Tue May 1 19:09:21 2001 Jonathan Blandford <jrb@redhat.com>
6977 * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
6978 autoscroll support. It mostly works, but could use some fine
6980 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
6981 Actually move the column.
6983 Mon Apr 30 20:29:27 2001 Owen Taylor <otaylor@redhat.com>
6985 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c
6986 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
6987 New default theme! A slighly improved version of the 2.0 Raleigh
6988 theme, with Windows-esque focus/drawing default.
6989 (GtkWidget::interior_focus defaults to TRUE.)
6991 * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
6993 2001-04-30 Havoc Pennington <hp@pobox.com>
6995 * tests/testtext.c (line_numbers_expose): fix to work with
6996 gtk_paint_layout change
6998 Mon Apr 30 19:18:07 2001 Owen Taylor <otaylor@redhat.com>
7000 * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
7001 gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
7002 gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
7003 use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
7005 * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
7006 with GtkWidget::interior_focus = TRUE better.
7008 * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
7009 ::default_outside_border for more flexibility.
7011 * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove
7012 G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
7013 change that had to be made with g_object_get.
7015 Sun Apr 29 20:13:40 2001 Jonathan Blandford <jrb@redhat.com>
7017 * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
7018 (gtk_tree_view_move_column_after): Clean up interface.
7020 Sun Apr 29 03:02:02 2001 Tim Janik <timj@gtk.org>
7023 * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
7026 * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
7030 (gtk.defs): generate enum portions with glib-mkenums.
7031 (gtktypebuiltins_evals.c): generate this with glib-mkenums.
7032 got rid of makeenums.pl and makeenums.awk in distributed tarballs.
7034 * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
7037 * docs/Changes-2.0.txt: keep a note on signal handlers now
7038 not getting emitted during the emission they were connected within.
7040 2001-04-28 Havoc Pennington <hp@pobox.com>
7042 * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
7044 2001-04-24 Havoc Pennington <hp@redhat.com>
7046 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line):
7047 (gtk_text_layout_move_iter_to_next_line): fix these two for
7048 invisible text, lots of other stuff still hosed.
7050 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
7051 new function, replaces the get/set palette stuff. This function
7052 is intended for use by libgnomeui which should set the hook to a
7053 thing which sets the palette in GConf, and we need the
7054 GConf-to-xsettings proxy which will result in the change being
7055 propagated back to the GTK app.
7057 * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning
7058 about unusable signals that it may be because the signal has
7061 * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
7062 style, otherwise gtkrc.c won't know to create a new GtkStyle for
7064 (gtk_widget_modify_color_component): call
7065 gtk_widget_modify_style() so the rc style will get copied.
7066 (gtk_widget_modify_font): ditto
7068 * gtk/gtkrc.c: make a couple variables static
7070 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
7071 help button by default, since it does nothing
7073 * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
7076 * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
7077 so we can have tooltips
7079 * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
7082 * gdk/gdkimage.h: mark gdk_image_new_bitmap with
7083 GDK_ENABLE_BROKEN, because its memory behavior is completely
7086 * gtk/gtknotebook.c: remove key press handler, replace with
7087 binding set, add numeric keypad support
7089 * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
7091 * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
7093 * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
7094 addition to plain Delete
7096 * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
7097 GDK_KP_Enter in addition to GDK_Return
7099 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
7100 activate on entry instead of key press
7101 (gtk_font_selection_on_clist_key_press): get
7102 rid of this signal handler, not needed with new font sel.
7104 * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
7105 no-longer-needed emit_stop_by_name(), just return TRUE
7107 * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
7108 cruft, this widget is no longer focusable.
7110 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
7111 gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
7112 move_slider action signal, add binding set for vscale/hscale, in
7113 the process support numeric keypad
7115 * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings;
7116 make GDK_Return and GDK_KP_Enter activate the entry via
7117 binding set, instead of hardcoded.
7119 Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
7121 * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
7122 code. Some documentation added.
7124 2001-04-27 Havoc Pennington <hp@redhat.com>
7126 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
7128 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
7130 * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
7131 line/para separators
7132 (gtk_entry_create_layout): set single paragraph mode on the layout
7134 * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
7135 spacing between the image and label; instead, inside a button box
7136 the button will get extra space that will go there, but if people
7137 configure button box for 0 chubbiness, then there's no spacing.
7139 * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
7140 and min/max size style properties, so people can tune their
7143 * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
7146 * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
7147 space_style, and button_relief into style properties, remove
7148 functions for setting them
7150 * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop
7153 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
7154 types from gtk_widget_style_get
7156 * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
7157 with a style property.
7159 * gdk/x11/gdkevents-x11.c: namespace the settings
7161 * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
7163 * gtk/gtksettings.c (gtk_settings_class_init): remove code with
7164 side effects from inside g_assert(), so that G_DISABLE_ASSERT can
7165 be used. Also, translate doc strings for settings. Also, namespace
7166 the double-click-time property. Also, remove bell properties crap.
7168 2001-04-27 Sven Neumann <sven@gimp.org>
7170 * Makefile.am: before creating links, check if pkg-config files
7171 exist for the default target. Otherwise link to the pkg-config files
7172 that got installed with this build.
7174 Thu Apr 26 19:11:46 2001 Jonathan Blandford <jrb@redhat.com>
7176 * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
7177 dragging code. Revealed some (potential) GdkWindow bugs.
7179 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
7180 _gdk_window_init_position to the end of reparent to fix the case
7181 of reparenting when new_x != old_x and new_y != old_y.
7183 Thu Apr 26 10:54:50 2001 Owen Taylor <otaylor@redhat.com>
7185 * gtk/gtkentry.c (strstr_len): Fix optimization that
7186 was correct for the use here, but completely incorrect
7189 Thu Apr 26 10:40:41 2001 Owen Taylor <otaylor@redhat.com>
7191 * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
7192 until patch adding gtk_window_set_size() is recommitted.
7194 * **Makefile.am configure.in gdk/x11/gdkim-11.c
7195 gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
7196 gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
7199 Wed Apr 25 12:16:36 2001 Owen Taylor <otaylor@redhat.com>
7201 * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for
7202 window == NULL in a number of cases.
7204 * tests/testdnd.c: Set module path for gdk-pixbuf.
7206 Thu Apr 19 16:11:07 2001 Owen Taylor <otaylor@redhat.com>
7208 * gtk/Makefile.am xembed.h: File containing #defines
7209 for XEMBED protocol.
7211 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]:
7213 - Change protocol from old plug/socket specific protocol
7215 - Various fixes to work with GTK+-2.0
7217 Still quite a bit of work to do here to handle initiation
7218 from the socket side (as specified by XEMBED), to handle
7219 the more advanced features of XEMBED, and to figure out
7220 a good way to handle same-app embedding with less overhead
7221 than using full XEMBED.
7223 Wed Apr 18 16:04:28 2001 Owen Taylor <otaylor@redhat.com>
7225 * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
7226 track of whether the toplevel has the focus; only send
7227 focus-in events to the focus widget when the window
7228 actually has the focus.
7230 2001-04-25 Havoc Pennington <hp@pobox.com>
7232 * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
7233 were still in the header
7235 2001-04-24 Alexander Larsson <alexl@redhat.com>
7237 * gtk/gtkclist.[ch]:
7239 When there is a row highlighted for D'n'D it must alse
7240 be painted hightlighted on exposes. Otherwise exposes from
7241 the icon being dragged will mess up the hightlight.
7244 Don't recenter selected font when exposing the font family
7245 clist. This means you can now actually scroll the font family
7248 * gtk/gtknotebook.c:
7249 Fix focus movement on scrolling tabs that are placed on the left
7252 2001-04-21 Havoc Pennington <hp@pobox.com>
7254 * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
7255 empty/invisible lines.
7257 * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
7258 (gtk_text_iter_set_visible_line_index): new functions to set
7259 indexes excluding invisible text
7261 * gtk/gtktextlayout.c (line_display_iter_to_index): get visible
7264 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
7265 (gtk_text_iter_get_visible_line_offset): new functions to
7266 get indexes excluding invisible text
7268 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
7269 bunch of extra padding that served no purpose
7271 * gtk/gtkdialog.c: Make all the spacings configurable via style
7272 properties, for chubbiness configuration in themes
7274 * tests/testtext.c: fix path to the immodules.
7276 Mon Apr 23 18:57:03 2001 Jonathan Blandford <jrb@redhat.com>
7278 * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
7279 got munched by #endif.
7281 * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
7283 * gtk/gtktreeview.c: Refactored code to clean up a number of
7286 * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
7287 values to make consistent with other functions. Spotted by Jeff
7288 Franks <jcf@tpg.com.au>.
7290 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
7291 declaration spotted by Jeff Franks <jcf@tpg.com.au>.
7293 2001-04-23 Sven Neumann <sven@gimp.org>
7297 * gtk/gtksocket.c: on request of Owen, reverted my last change
7298 and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
7300 2001-04-23 Sven Neumann <sven@gimp.org>
7302 * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
7303 compile for non-X11 targets again
7305 2001-04-20 Alexander Larsson <alexl@redhat.com>
7307 * gtk/gtkcolorsel.[ch]:
7308 API Change. Take GdkColor arguments instead of gdouble *.
7309 Leave the old gtk_color_selection_set_color for compatibility,
7310 but marked deprecated.
7311 Do correct rounding when converting RGB <-> HSV.
7313 * gtk/gtkcolorseldialog.c:
7315 Use new GtkColorSelection API.
7318 Fix problem selecting colors in triangle when Hue is 330.
7319 Fix some black dots around the HSB triangle.
7322 return FALSE from the focus_in_event handler to fix focus problems.
7324 2001-04-18 Havoc Pennington <hp@redhat.com>
7326 * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
7327 set, so keybindings are configurable
7328 (gtk_window_activate_default): Change to activate the focus widget
7329 instead if there's a focus widget, to be consistent with the
7330 behavior that previously existed in key_press_event
7332 2001-04-18 Havoc Pennington <hp@redhat.com>
7334 * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
7336 2001-04-18 Havoc Pennington <hp@redhat.com>
7340 * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
7343 * gtk/gtktext.c: Use base/text instead of bg/fg throughout
7345 * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
7347 * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
7349 * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
7350 to blue for base, in addition to bg
7352 2001-04-18 Havoc Pennington <hp@redhat.com>
7354 * tests/testgtk.c (create_image): allow shrinking the image window
7355 to test that we clip to allocation.
7357 * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
7360 * gtk/gtkenums.h: move GtkWrapMode in here, #50472
7362 Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
7364 * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
7365 mode on shm segments to 0600. We'll see who complains.
7367 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
7368 _gdk_windowing_window_destroy() AFTER recursing through
7371 * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
7372 testsocket_child on X.
7374 * tests/testsocket[_child].c: Fix uses of
7375 gtk_window_get_default_accel_group().
7377 [ Merge patch from Ramiro Estrugo <ramiro@eazel.com> from gtk-1-2 ]
7379 * gdk/gdkimage.c: (gdk_image_get):
7380 Deal with the possibility that XGetImage() might return NULL.
7381 Allocate the GdkImagePrivate structure only after XGetImage()
7382 succeeds in order not to dereference a NULL ximage pointer. This
7383 prevents a core dump when XGetImage() fails - which is unlikely,
7384 but can happen due to race conditions accessing the geometries of
7385 drawables. An x error will still be triggered, but the gdk image
7386 wrapper at least wont seg fault.
7388 2001-04-18 Havoc Pennington <hp@redhat.com>
7390 * gtk/gtkimage.c: fix to properly queue resizes when the image is
7393 * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
7394 if the insertion point isn't editable
7396 * demos/gtk-demo/images.c: Added a GtkImage demo
7398 * demos/gtk-demo/drawingarea.c: drawing area demo
7400 * demos/gtk-demo/menus.c (create_menu): cleanups
7402 Wed Apr 18 12:15:52 2001 Owen Taylor <otaylor@redhat.com>
7404 * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h
7405 gdk/x11/gdkevents-x11.c: Introduce an extra child
7406 of toplevel windows that serves to hold the focus to
7407 avoid events being delivered to embedded windows.
7409 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
7410 some extra variables to clean up code and reduce the
7413 * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
7414 guint for 1 bit bit fields, not gboolean.
7416 Wed Apr 18 10:04:23 2001 Owen Taylor <otaylor@redhat.com>
7418 * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
7419 not TRUE. (Fixes #52925)
7421 Tue Apr 17 18:05:34 2001 Owen Taylor <otaylor@redhat.com>
7427 * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
7430 Tue Apr 17 13:47:12 2001 Owen Taylor <otaylor@redhat.com>
7432 * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
7434 * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
7435 names to compatibility #defines so docs work.
7437 * gtk/gtkenums.h: Remove GtkMenuFactoryType
7439 * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
7441 * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
7443 * tests/testgtkrc: No magenta cursors, please.
7445 * README.in INSTALL.in HACKING README.cvs-commits: Updated.
7447 * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
7449 Mon Apr 16 14:38:41 2001 Owen Taylor <otaylor@redhat.com>
7451 * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
7452 grabs, since they are no longer necessary.
7454 * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
7455 by signal_connect() and call gtk_button_pressed() rather
7456 than signal_connect_after().
7458 * tests/testgtk.c: Restore radio menu items to combos
7459 since they'll look OK with Raleigh, and it is easier
7460 than finishing the process of removing them that was
7463 2001-04-16 Hans Breuer <hans@breuer.org>
7466 * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
7468 * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
7469 we are interested in the functions return value not the function address
7470 * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
7472 * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
7474 2001-04-14 Hans Breuer <hans@breuer.org>
7477 * gdk/makefile.msc : updated
7479 * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is
7480 "fill with tile" do so with new helper function gdk_win32_draw_tiles
7481 (the testgtk::text backgound pixmap is drawn again)
7482 Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect
7484 * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
7486 * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
7487 Not sure if the returned settings have the right unit, because I couldn't
7488 find any docs for the X version ...
7491 * gtk/makefile.msc.in : updated
7493 Thu Apr 12 17:41:17 2001 Owen Taylor <otaylor@redhat.com>
7495 * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
7496 wording problems. (Compared to version from Johannes Stezenbach to
7499 Thu Apr 12 21:04:26 2001 Tim Janik <timj@gtk.org>
7501 * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
7504 2001-04-12 Anders Carlsson <andersca@codefactory.se>
7506 * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
7509 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
7511 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
7512 are unsigned insts, therefore use g_value_set_uint.
7513 (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
7515 Sun Apr 8 05:36:06 2001 Jonathan Blandford <jrb@redhat.com>
7517 * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
7519 * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
7522 * gtk/gtktreeview.c: New functions to allow initial column
7525 * gtk/gtktreeviewcolumn.c: Initial column dragging support.
7527 * tests/testtreefocus.c: give dave some love.
7529 * tests/testtreesort.c: Modify test to check really long samples.
7531 2001-04-11 Alexander Larsson <alexl@redhat.com>
7533 * gtk-2.0.m4: Pass pkg-config options
7534 before the other args so it works even if
7535 POSIXLY_CORRECT is set.
7537 Mon Apr 9 19:02:07 2001 Tim Janik <timj@gtk.org>
7539 * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
7542 2001-04-04 Denis Oliver Kropp <dok@convergence.de>
7544 * gtk/gtkcalendar.c (gtk_calendar_button_press):
7545 check for action_func != NULL
7547 2001-04-04 Sven Neumann <sven@gimp.org>
7549 * tests/testgtk.c (test_init): corrected path to gtk.immodules
7551 Wed Apr 4 09:18:18 2001 Tim Janik <timj@gtk.org>
7553 * Released Gtk+-1.3.3.
7555 Wed Apr 4 07:42:23 2001 Tim Janik <timj@gtk.org>
7557 * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
7559 Wed Apr 4 04:13:18 2001 Tim Janik <timj@gtk.org>
7561 * gtk/stock-icons/Makefile.am: stay in builddir and read/write
7562 files to/from source dir. (if we don't stay in builddir, we
7563 can't reach make-inline-pixbuf.
7565 * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
7568 * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
7571 Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
7573 * gtk/gtktreemodelsort.h: removed set_sort_column, as it was
7574 moved to the GtkTreeSortable interface.
7576 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7577 Make more efficient (fixes #50262).
7579 Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
7583 * configure.in: Remove support for uninstalled glib.
7585 * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
7586 so as not to stop emission.
7588 * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
7589 is no longer supported.
7591 * Makefile.am gtk/Makefile.am tests/*: Moved all tests
7592 into tests, change build order to build modules before
7595 * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
7598 Tue Apr 3 13:52:57 2001 Tim Janik <timj@gtk.org>
7600 * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
7601 and gtk_item_factory_dump_rc() GtkPatternSpec argument to
7602 GPatternSpec. this is actually unlikely to cause breakage in
7603 third-party apps since except for gle, pretty much ever caller
7606 * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
7608 * *.c: use g_pattern_*() API.
7610 * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
7612 * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
7613 directions aren't passed in.
7615 * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
7616 functionality to be usable from gtkstyle.c as well, give precedence
7617 for conversion to user-supplied parsers.
7618 s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
7620 * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
7621 _gtk_settings_parse_convert() for rcporperty value conversion.
7623 2001-04-03 Alexander Larsson <alexl@redhat.com>
7625 * gdk/linux-fb/gdkevents-fb.c:
7626 Add empty gdk_setting_get().
7628 Tue Apr 3 05:09:07 2001 Tim Janik <timj@gtk.org>
7630 * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
7633 * gtk/makeenums.pl: touch this so enum files get remade.
7635 Mon Apr 2 19:36:57 2001 Jonathan Blandford <jrb@redhat.com>
7637 * gtk/gtktreestore.c (gtk_tree_store_init): Bug fix to make trees
7638 work again when not sorted.
7640 * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
7641 and "expand_row" signal, closing bug 52578.
7643 * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
7646 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
7649 Mon Apr 2 18:18:07 2001 Owen Taylor <otaylor@redhat.com>
7651 * gdk/gdkevents.h: Add GdkEventSetting event for notification
7652 of changes to system settings, gdk_setting_get() to retrieve
7653 a single system setting.
7655 * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
7656 to the draft XSETTINGS mechanism.
7658 * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
7661 * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
7662 of GDK settings changes to the GtkSettings object.
7664 * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
7665 double-click-timeout property to GDK.
7667 * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
7668 Define GDK boxed types here.
7670 * gdk/Makefile.am gdk/makeenums.pl: Generate source files
7671 gdk/gdkenumtypes.[ch] for enum definitions.
7673 * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
7674 * gtk/gtk-boxed.defs: Comment out GDK types
7675 * gtk/gtktypeutils.h: Remove GDK types
7676 * gtk/Makefile.am: No longer scan GDK headers for enumerataions
7678 Mon Apr 2 16:41:08 2001 Owen Taylor <otaylor@redhat.com>
7680 * Applied patch from Ron Steinke to add signal accumulators
7681 so that signals with the convention 'TRUE return means
7682 handled' stop emission on a TRUE return.
7684 * gtk/gtkmain.[ch]: Add private accumulator
7685 _gtk_boolean_handled_accumulator, used throughout GTK+.
7687 * gtk/gtkspinbutton.c: Add accumulator for ::output.
7689 * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
7691 * gtk/gtkwidget.c: Add accumulators for event signals,
7692 ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
7693 for ::mnemonic-activate.
7695 * gtk/gtkwindow.c: Add accumulator for ::frame_event
7697 Mon Apr 2 16:24:21 2001 Owen Taylor <otaylor@redhat.com>
7699 * gtk/gtkwidget.c: Add missing include.
7701 Mon Apr 2 16:56:15 2001 Jonathan Blandford <jrb@redhat.com>
7703 * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
7706 * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
7707 "changed" signal to "range_changed".
7709 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
7710 removing a tree from one model would remove all trees from that
7712 * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
7713 changed signal instead.
7715 Mon Apr 2 16:13:58 2001 Owen Taylor <otaylor@redhat.com>
7717 * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
7718 chaining up to parent impl, since we have a INPUT_ONLY
7721 * gtk/gtkentry.[ch]: Add a cursor_color property to set the
7722 foreground color for the cursor.
7724 Mon Apr 2 15:06:13 2001 Owen Taylor <otaylor@redhat.com>
7726 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference
7727 param spec when caching property values, since we unref it
7728 later when we free the style.
7730 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
7731 values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
7733 Mon Apr 2 10:47:57 2001 Owen Taylor <otaylor@redhat.com>
7735 * gtk/gtkwidget.c (gtk_widget_class_init): Fix
7736 G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
7739 Mon Apr 2 00:51:11 2001 Owen Taylor <otaylor@redhat.com>
7741 [ First pass at adding style properties. Still needs some definite
7744 * gtk/gtkbutton.c: Add ::default_spacing style property.
7746 * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
7747 ::indicator_spacing style properties.
7749 * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
7752 * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
7753 rather than a normal property.
7755 * gtk/gtkwidget.c: Add an ::interior_focus style property to
7756 draw focus inside buttons, in the Windows/Java Metal/etc. style.
7758 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
7759 Honor ::interior_focus.
7761 * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is
7764 * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
7765 Add ::slider_width, ::trough_border, ::stepper_size,
7766 ::stepper_spacing style properties.
7768 * gtk/gtkscale.[ch] Add ::slider-length style property.
7770 2001-04-02 Alexander Larsson <alexl@redhat.com>
7772 * gdk/linux-fb/gdkwindow-fb.c:
7773 Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
7774 warnings that were spewed on startup.
7776 * gtk/gtkwindow-decorate.c:
7777 gtk_window_reposition -> _gtk_window_reposition
7779 Sun Apr 1 21:37:22 2001 Owen Taylor <otaylor@redhat.com>
7781 * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
7782 Add boxed type for GtkRequistion. Use it for ::size-request.
7784 * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
7785 Add a new GtkBorder structure useful for geometry properties
7786 for widgets. Add corresponding GTK_TYPE_BORDER.
7788 * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
7789 Support automatic parser selection like
7790 gtk_settings_install_property_parser().
7792 * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
7793 functionality for use by gtk_widget_class_install_style_property.
7794 Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
7796 Sun Apr 1 20:48:59 2001 Owen Taylor <otaylor@redhat.com>
7798 * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
7799 g_param_spec_unichar().
7801 Sun Apr 1 23:41:37 2001 Tim Janik <timj@gtk.org>
7803 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
7804 _NET window managers.
7806 * gtk/gtkmenufactory.[hc]: cvs removed those files now.
7808 Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
7810 * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
7811 bad needs to be nuked, not just deprecated.
7813 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
7816 * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
7818 * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
7821 * docs/Changes-2.0.txt: updates.
7823 Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
7825 * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
7826 for (i = 0; i < 100; i ++)
7827 g_print ("I will confirm it compile before committing\n");
7829 Sun Apr 1 00:52:06 2001 Jonathan Blandford <jrb@redhat.com>
7831 * gtk/gtktreestore.c: Initial work on implementing the
7832 GtkTreeSortable interface. Basicaly a big cut'n'paste job.
7834 Sun Apr 1 03:28:14 2001 Tim Janik <timj@gtk.org>
7836 * gtk/gtkwidget.c: fixed a bunch of notifications, added
7837 reference counts around emissions where the widget is used afterwards.
7838 added freeze/thaws around multiple properties being notified.
7839 (_gtk_widget_get_aux_info): cleanups.
7841 * gtk/gtksettings.c (gtk_settings_install_property): provide
7842 default parsing functions for gdkcolor, enums and flags.
7844 * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
7846 backed out gtk_window_get_location(), gtk_window_set_location(),
7847 gtk_window_get_size() and gtk_window_set_size(), these
7848 have to be sorted out wrg x/y/width/height/default_with/default_height
7850 kept a flag in GtkWindowGeometryInfo to handle user
7851 resetting default sizes.
7852 cleaned up ZVT comments.
7853 bunch of assorted bug fixes, notification fixes.
7854 (_gtk_window_reposition): make this a really internal function.
7856 * gtk/testgtk.c: fixups.
7858 2001-03-31 Hans Breuer <hans@breuer.org>
7860 * config.h.win32.in : disable USE_MMX for msvc build cause
7861 the assembler doesn't fit and is out of my scope. Disable
7862 USE_GMODULE for msvc build as wel. The right way to share
7863 binaries on win32 would be to use libtiff.dll etc. To reduce
7864 installation hassles IMO it's better to include all fileformats
7865 builtin to gdk-pixbuf
7867 * gdk-pixbuf/makefile.msc : new file
7869 * gdk/gdk.def : updated
7871 * gdk/win32/gdkevents-win32.c : don't erase the background if
7872 .no_bg is set. It improves the scrolling (e.g. of testgtk main
7874 * gdk/win32/gdkgeometry-win32.c : added comment about the above
7876 * gdk/win32/gdkwindow-win32.c : added three new functions like
7877 the X version. Only one is implemented, because the other two
7878 "gdk_window_begin_(resize|move)_drag" got no docs and appear to
7879 be default behaviour on win32 anyway ...
7881 * gtk/gtk.def : updated
7883 * gtk/makefile.msc.in : update for new files, use glib-genmarshal
7884 from where it was built and add an additional rule to automagically
7885 build gtkmarshal.[hc]
7887 * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
7888 before array access for the current entry isn't finished
7890 * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
7891 use g_return_val_if_fail
7893 * gtk/testgtk.c (window_controls) : don't use the *wrong* size
7894 for the static array, but let the compiler calculate it. It
7895 makes me wonder if gcc isn't capable to catch bugs like this ...
7897 2001-03-31 James Henstridge <james@daa.com.au>
7899 * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
7900 constant "-1" in the aux info structure.
7902 2001-03-30 Alexander Larsson <alexl@redhat.com>
7904 * gtk/gtkbutton.c (gtk_button_get_property):
7908 * gtk/gtkcontainer.c:
7910 * gtk/gtkhscrollbar.c:
7913 * gtk/gtkprogress.c:
7914 * gtk/gtkprogressbar.c:
7917 * gtk/gtkviewport.c:
7919 * gtk/gtkvscrollbar.c:
7921 Property patches, based on patches from John Margaglione and Lee Mallabone.
7923 Thu Mar 29 21:20:38 2001 Mike Kestner <mkestner@ameritech.net>
7925 * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
7926 adjustment. Cleaned redundant preconditions (spin != NULL). Added
7927 inline API function docs.
7928 (gtk_spin_button_new_with_range): New convenience constructor.
7929 (gtk_spin_button_set_increments): New adjustment helper.
7930 (gtk_spin_button_set_range): New adjustment helper.
7932 * gtk/testgtk.c : added test of the new convenince constructor and
7933 value_changed signals.
7935 Thu Mar 29 20:20:38 2001 Jonathan Blandford <jrb@redhat.com>
7937 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
7938 listen to the reorder signal.
7940 Wed Mar 28 20:30:26 2001 Owen Taylor <otaylor@redhat.com>
7942 * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
7943 to get the aux info structure fo the widget.
7945 * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
7948 [ Patch from Havoc Pennington <hp@redhat.com> ]
7950 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
7951 to get the size of the window manager frame, basically the same
7952 code that gdk_window_get_root_origin() had
7953 (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
7955 * gtk/gtkwindow.c (gtk_window_set_default_size): use
7956 gdk_window_resize() if the window is realized and resizeable
7958 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
7959 typo so that setting gravity works
7961 * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
7962 allocation if auto_shrink is on, even if the default size
7965 * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
7968 Thu Mar 29 16:29:12 2001 Jonathan Blandford <jrb@redhat.com>
7970 * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
7971 reordering/sorting work. Now pretty much works.
7973 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
7974 reorder mostly work. Still need to get the parity correct.
7976 * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
7977 signal, so I can listen for the sort_column_changed signal so I
7978 can change my "sort_indicator" property. Cool.
7980 Wed Mar 28 00:03:10 2001 Owen Taylor <otaylor@redhat.com>
7982 [ Patch from Havoc Pennington, hp@redhat.com ]
7984 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
7985 Add functions gdk_window_begin_resize_drag/begin_move_drag
7986 to start resizing or moving a toplevel window. This
7987 is done either using the _NET_WM_MOVERESIZE protocol,
7988 or, if that isn't present, by emulation.
7990 * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
7991 to export the above to GTK+-land.
7993 * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
7995 * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
7996 Move this function into gdkwindow, since we need it
7997 when implementing fallback resizing.
7999 * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
8000 Fix typo when setting gravity.
8002 * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
8003 Add an optional (but on by default) resize grip for resizing
8006 01-03-29 Alexander Larsson <alexl@redhat.com>
8008 * gtk/gtktooltips.c (gtk_tooltips_event_handler):
8009 Don't return TRUE from the event handler, that blocks all
8010 event signals on the tooltip widget. Now you can press buttons
8013 Wed Mar 28 19:20:43 2001 Owen Taylor <otaylor@redhat.com>
8015 * gtk/testtext.c (create_buffer): Add missing NULL on
8018 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
8019 c-n-p problem with INCONSISTENT property.
8021 [ Patch from Havoc Pennington <hp@redhat.com> ]
8023 * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
8026 * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
8027 signal as a hook for extending the default popup menu
8029 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
8030 use radio menu items for the input method menuitems
8032 * gtk/gtkimcontextsimple.c (check_hex): do better validation of
8033 inserted unicode from Ctrl-Shift-hex input method
8035 * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
8036 validatation here, already done at GtkTextBuffer level.
8038 * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
8039 popup_menu run action signal and Shift+F10 and Menu keybindings.
8041 * gtk/gtkentry.c: implement a default handler for popup_menu
8043 * gtk/gtktextview.c: implement a default handler for popup_menu
8045 * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
8048 * gtk/gtklabel.c: remove "trailer" cruft
8050 Wed Mar 28 17:27:12 2001 Jonathan Blandford <jrb@redhat.com>
8052 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
8053 handle reordering of trees. Seems to mostly work w/ the exception
8056 * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
8059 Wed Mar 28 21:12:37 2001 Tim Janik <timj@gtk.org>
8061 * gtk/gtkwidget.h: c++ fixes.
8063 Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
8065 * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
8068 Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
8070 * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
8071 Nils Barth fixing event return values. (#51041)
8073 * gtk/gtkwidget.c: Fix some return values for default
8076 * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
8077 return values for trough_keys functions.
8079 * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
8080 value for add_accelerator (shoudl have been a void
8083 * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
8084 Fix return type of EVENT.
8086 * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
8087 signal return a boolean.
8089 Tue Mar 27 22:07:44 2001 Jonathan Blandford <jrb@redhat.com>
8091 * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
8094 * tests/testtreesort.c (main): fix spelling.
8096 Tue Mar 27 20:55:29 2001 Jonathan Blandford <jrb@redhat.com>
8098 * gtk/gtkliststore.c: More work on implementing sortable
8101 Mon Mar 26 15:48:45 2001 Owen Taylor <otaylor@redhat.com>
8103 * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
8104 reference the widgets in the resulting list. (#11821)
8105 This makes this consistent with gtk_container_children.
8107 * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
8108 uses of gtk_window_list_toplevels.
8110 Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
8112 * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
8113 a virtual function to set whether the IM context should use
8114 the preedit string. (#51922)
8116 Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
8118 * gdk/gdkpango.h: Remove stale FIXME comment.
8120 2001-03-26 Alexander Larsson <alla@lysator.liu.se>
8122 * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
8123 Fixed bug that returned NULL if a filename was selected.
8125 2001-03-24 Havoc Pennington <hp@pobox.com>
8127 * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
8128 to contain the word "theme"
8130 2001-03-24 Havoc Pennington <hp@pobox.com>
8132 * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
8133 slower but finer-grained
8134 (gtk_hsv_focus): get initial focus on the ring or triangle
8135 according to tab direction
8137 * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
8139 2001-03-23 Havoc Pennington <hp@pobox.com>
8141 * gtk/gtkhsv.c: make this somewhat key-navigable
8143 * gtk/gtkfontsel.c: mnemonics
8145 * gtk/gtkgamma.c: mnemonics
8147 * gtk/gtkcolorsel.c: add mnemonics to labels
8149 2001-03-22 Havoc Pennington <hp@pobox.com>
8151 Applied big patch from Seth Lytle to fix event handler return
8152 values, slightly modified.
8154 * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
8156 (gtk_calendar_key_press): return TRUE for GDK_space triggers
8159 * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
8160 (gtk_clist_button_release): return TRUE if handled
8162 * gtk/gtkcolorsel.c (mouse_release):
8168 fixed return type (void to gboolean), return TRUE,
8169 added GTK_SIGNAL_FUNC cast
8171 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
8172 (void to gboolean), and return TRUE
8173 (gtk_combo_button_release): changed return value to TRUE after
8174 gtk_grab_add on combo->popwin
8176 * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
8179 * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
8182 * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
8183 press/release and motion that trigger act
8185 * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
8187 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
8190 * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
8191 (gtk_list_button_release): return TRUE if selection
8193 * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
8196 * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
8197 (gtk_menu_shell_button_release): chain parent_menu_shell retval
8199 * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
8201 (gtk_notebook_button_release): return TRUE if we do anything
8203 * gtk/gtkspinbutton.c (gtk_spin_button_button_press):
8204 (gtk_spin_button_button_release): return TRUE or chained retval
8206 * gtk/gtktext.c (gtk_text_button_press):
8207 (gtk_text_button_release): return TRUE
8208 (gtk_text_key_press): remove redundant retval code
8210 * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
8212 (gtk_tree_item_subtree_button_click): changed type to gint, and return
8215 * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
8218 2001-03-23 Havoc Pennington <hp@redhat.com>
8220 * gtk/testgtk.c: fix warnings
8222 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
8224 * gtk/gtktextview.c: fix warnings
8226 * gtk/gtktext.c (find_cursor_at_line): fix warning
8228 * gtk/gtkselection.c (gtk_selection_notify): fix warning
8230 * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
8233 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
8236 * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
8238 * gtk/gtkfontsel.c: fix warning
8240 * gtk/gtkcolorsel.c: fix warnings
8242 2001-03-23 Havoc Pennington <hp@redhat.com>
8244 * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
8246 * gtk/gtkbox.c: Apply property patch from Lee Mallabone
8248 * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
8249 and deprecated gtk_check_menu_item_set_show_toggle().
8251 * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
8253 * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
8255 * gtk/gtkframe.c: Apply property patch from Lee Mallabone
8257 2001-03-23 Havoc Pennington <hp@redhat.com>
8259 * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
8262 Fri Mar 23 16:13:43 2001 Jonathan Blandford <jrb@redhat.com>
8264 * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
8267 * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
8268 set_cell to set_value
8270 * gtk/gtkliststore.c (gtk_list_store_set_value): change from
8271 set_cell to set_value
8273 Thu Mar 22 19:27:34 2001 Jonathan Blandford <jrb@redhat.com>
8275 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
8277 * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
8280 * gtk/gtktreeview.c: Addition of initial sortable support.
8282 * gtk/gtktreestore.c: Addition of initial sortable support.
8284 * gtk/gtkliststore.c: Addition of initial sortable support.
8286 * gtk/gtkmarshal.list: yet another marshaller.
8288 * gtk/gtktreedatallist.[ch]: shared code between the store models
8289 for handling sorting headers.
8291 2001-03-22 Havoc Pennington <hp@redhat.com>
8293 * gtk/gtkcontainer.c (gtk_container_set_focus_chain):
8294 (gtk_container_unset_focus_chain): Add ability to override the
8295 focus chain for a container explicitly
8297 Thu Mar 22 13:01:44 2001 Tim Janik <timj@gtk.org>
8299 * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
8300 added PROP_MNEMONIC_WIDGET.
8302 * gtk/gtkwindow.c (gtk_window_activate_mnemonic):
8303 (gtk_window_remove_mnemonic):
8304 (gtk_window_add_mnemonic): fixed assertions.
8305 (gtk_window_activate_mnemonic): constrain modifier checks to those
8306 permitted by gtk_accelerator_get_default_mod_mask().
8307 got rid of gtk_window_get_default_accel_group().
8309 * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
8310 activatable widgets either by focussing or a warning.
8311 added a signal accumulator to ::activate_mnemonic which stops the
8312 emission once a handler returned TRUE.
8314 2001-03-22 Havoc Pennington <hp@pobox.com>
8316 * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
8317 the stock item label
8319 * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
8321 * gtk/gtkstock.c (builtin_items): add mnemonics where missing
8323 * demos/gtk-demo/*.c: Add mnemonics all over the place
8325 * gtk/gtklabel.h: mark parse_uline deprecated
8327 2001-03-21 Alexander Larsson <alexl@redhat.com>
8329 * gtk/gtkitemfactory.[ch]:
8330 Add support for stock and normal imagemenuitems.
8333 Add some tests for mnemonics, stock toolbars, stock
8334 and image menuitems in itemfactory and gdk_window_scroll.
8336 2001-03-21 Alexander Larsson <alexl@redhat.com>
8338 * gtk/gtkbutton.[ch]:
8340 Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
8341 removed accel_group argument. Renamed gtk_button_new_accel() to
8342 gtk_button_new_with_mnemonic() and removed accel_group argument.
8344 * gtk/gtkcheckbutton.[ch]:
8345 New function gtk_check_button_new_with_mnemonic().
8348 Override activate_mnemonic and just grab focus.
8350 * gtk/gtkitemfactory.c:
8351 Don't add menu uline accel group, instead use mnemonics support.
8353 * gtk/gtklabel.[ch]:
8354 New support for mnemonics.
8356 * gtk/gtkmarshal.list:
8357 Needed BOOLEAN:BOOLEAN for activate_mnemonic.
8361 Use mnemonics instead of accel groups for uline
8362 support in menu items.
8363 Removed gtk_menu_get_uline_accel_group() and
8364 gtk_menu_ensure_uline_accel_group().
8366 * gtk/gtkmenuitem.c:
8367 Override activate_mnemonic to handle switching between
8368 menu items if there are collisions.
8370 * gtk/gtknotebook.c:
8371 Connect to activate_mnemonic on the tab_label, so that
8372 activating it switches to that notebook page.
8374 * gtk/gtkwidget.[ch]:
8375 Add activate_mnemonic signal. New function
8376 gtk_widget_activate_mnemonic() to emit it.
8377 Default implementation does activate/grab_focus.
8379 * gtk/gtkwindow.[ch]:
8380 Add support for mnemonics in windows.
8382 gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
8383 gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
8386 Update to function name changes.
8388 2001-03-21 Alexander Larsson <alexl@redhat.com>
8390 * gtk/gtkimagemenuitem.[c]:
8391 Add gtk_image_menu_item_new_from_stock()
8393 Tue Mar 20 15:00:43 2001 Jonathan Blandford <jrb@redhat.com>
8395 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
8396 Fix buglet in meeting.
8398 2001-03-19 Havoc Pennington <hp@redhat.com>
8400 * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
8401 add a bunch of accessor functions. This is because we have
8402 reasonable expectations of extending what fields it contains in
8405 * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
8408 * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
8411 Mon Mar 19 15:53:36 2001 Owen Taylor <otaylor@redhat.com>
8413 * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
8414 handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
8416 * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
8417 gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
8418 gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
8419 gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
8420 Change float to double everywhere with the exception of 0<->1.0 alignment
8423 2001-03-19 Tor Lillqvist <tml@iki.fi>
8425 * gdk/win32/gdkdrawable-win32.c
8426 * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
8429 * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
8432 2001-03-18 Tor Lillqvist <tml@iki.fi>
8434 * gdk/win32/gdkevents-win32.c (print_window_state): New function.
8435 print_event_state, print_event): Use preprocessor macro to make
8436 code more compact. Print also GDK_WINDOW_STATE events.
8437 (synthesize_crossing_events): Remove the old #ifdeffed-out code.
8440 * gtk/makefile.mingw.in: Update.
8442 * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
8443 to catch also Cygwin.
8445 Sun Mar 18 01:15:30 2001 Tim Janik <timj@gtk.org>
8447 * gtk/gtkspinbutton.[hc]: added rc-style argument
8448 GtkSpinButton::shadow_type.
8449 removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
8450 and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
8453 * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
8455 * gtk/gtkwidget.c: quark cleanups.
8457 * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
8458 scanner with appropriate configuration, renamed GtkRcStyleClass.clone
8459 to create_rc_style() (we don't do cloning in standard OO sense).
8460 added per rc style properties.
8462 * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
8463 property values and for caching those. some cleanups.
8465 * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
8467 * gtk/gtksettings.[hc]: new file for global rc-file properties
8468 (at least currently, should get extended to support X properties
8469 and other communication mechanisms).
8471 * gtk/gtkwidget.[hc]: added style property support:
8472 (gtk_widget_class_install_style_property_parser): install style
8473 property pspec with parser function for rc-file values other
8474 than LONG, DOUBLE or STRING.
8475 (gtk_widget_class_install_style_property): same as above without
8476 parser (parsers are going to be needed quite infrequently).
8477 (gtk_widget_style_get_property): retrive style property value.
8478 (gtk_widget_style_get_valist): same as above with varargs support,
8479 has NOCOPY semantics.
8480 (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
8482 Fri Mar 16 18:24:53 2001 Jonathan Blandford <jrb@redhat.com>
8484 * demos/gtk-demo/main.c (row_activated_cb): modified to use
8485 "row_activated" signal.
8487 * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
8488 stupidity. Lets actually pass in the row with this signal...
8490 Fri Mar 16 18:01:17 2001 Jonathan Blandford <jrb@redhat.com>
8492 * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
8494 * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
8496 * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
8497 everything into the ::destroy function, and freed a lot more.
8499 2001-03-16 Havoc Pennington <hp@redhat.com>
8501 * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
8502 instead of gint16, to avoid overflow issues, since sizes > 16-bit
8505 2001-03-16 Havoc Pennington <hp@redhat.com>
8507 * Applied patch from Nils Barth (bug # 51041) to
8508 replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
8511 2001-03-15 Havoc Pennington <hp@redhat.com>
8513 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs
8514 for properties to set on the tag.
8516 * gtk/testtext.c: fixups to reflect create_tag change
8518 * gtk/gtktexttag.c (gtk_text_tag_set_property):
8519 background/foreground stipple are objects, not boxed.
8521 * demos/gtk-demo/textview.c: intellihancing
8523 Fri Mar 16 11:38:42 2001 Jonathan Blandford <jrb@redhat.com>
8525 * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
8526 braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
8528 2001-03-16 Alexander Larsson <alexl@redhat.com>
8530 * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
8531 Fix sign error with queued region translations.
8533 2001-03-15 HideToshi Tajima <tajima@happy>
8535 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
8536 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
8537 * gtk/gtkentry.c (update_im_cursor_location):
8538 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
8539 * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
8540 set_cursor_pos to set_cursor_location in GtkInputContext class
8542 Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
8544 * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
8545 the location of the cell relative to its area.
8546 * gtk/gtkcell*: modified for above change
8547 * gtk/gtktreeview.c: modified for above change.
8549 Wed Mar 14 13:58:32 2001 Jonathan Blandford <jrb@redhat.com>
8551 * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
8552 (gtk_tree_view_finalize): actually unref the model. Thanks to
8553 Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
8555 2001-03-14 Havoc Pennington <hp@redhat.com>
8557 * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
8559 * gtk/gtk.h: remove gtkdata.h
8561 * gtk/Makefile.am: remove gtkdata
8563 * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
8564 not "disconnect" on the adjustments.
8566 * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
8569 * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
8572 * configure.in: handle case where X render exists, but Pango lacks
8575 2001-03-15 Alexander Larsson <alexl@redhat.com>
8577 * gtk/gtktoolbar.[ch]:
8578 New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
8579 to add stock items to toolbars.
8582 Remove ../gdk/gdkim.h from gdk_headers.
8584 2001-03-15 Sven Neumann <sven@gimp.org>
8586 * gdk/gdkim.h: removed
8589 * gdk/x11/gdkim-x11.c: do not include gdkim.h
8591 2001-03-14 HideToshi Tajima <tajima@happy.sunsoft.eng.sun.com>
8593 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
8594 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
8595 * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
8596 set_cursor_pos() virtual method
8598 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
8599 (gtk_im_context_xim_set_cursor_pos): add implementation for
8600 set_cursor_pos() method
8602 * gtk/gtkentry.c (recompute_idle_func): set current cursor
8603 position to input methods
8605 Mon Mar 12 21:02:08 2001 Jonathan Blandford <jrb@redhat.com>
8607 * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
8610 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
8612 (_gtk_tree_data_list_alloc): use g_mem_chunk.
8613 (_gtk_tree_data_list_node_to_value): Fix to switch on
8615 (_gtk_tree_data_list_value_to_node): Fix to switch on
8617 (_gtk_tree_data_list_node_copy): Fix to switch on
8620 2001-03-12 Havoc Pennington <hp@redhat.com>
8622 * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione
8623 to convert to new property API. Also, change default_width and
8624 default_height get_property to return 0 as the flag value for
8625 "unset"; -1 is not a valid value for these fields.
8627 2001-03-12 Havoc Pennington <hp@redhat.com>
8629 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
8630 enum with registration for icon sizes, instead of strings.
8632 * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h,
8633 gtkwidget.c: Fix to reflect GtkIconSize
8635 2001-03-12 Alexander Larsson <alexl@redhat.com>
8637 Make GtkFB compile and link.
8639 * gdk/linux-fb/gdkdrawable-fb2.c:
8640 window->mapped to GDK_WINDOW_IS_MAPPED().
8642 * gdk/linux-fb/gdkwindow-fb.c:
8643 window->mapped to GDK_WINDOW_IS_MAPPED().
8644 Added gdk_window_shape_combine_region.
8645 Added assorted placeholders for unimplemented new GdkWindow API calls.
8647 2001-03-12 Alexander Larsson <alexl@redhat.com>
8650 Add more test when converting filenames from/to utf-8.
8651 Don't allow entering text in the filename entry which isn't allowed in
8652 a filename. Just beep instead.
8654 2001-03-12 Alexander Larsson <alexl@redhat.com>
8657 Scroll using gdk_window_scroll(). Don't wait for exposes.
8658 Move the column headers in an order that makes them flash less.
8660 2001-03-10 Hans Breuer <hans@breuer.org>
8662 * gdk/gdk.def : updated
8664 * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
8665 to offseting the clip_mask at the right place
8667 * gdk/win32/gdkwindow-win32.c : don't create background brushes
8668 for all the gdkClasses, especially not for the input_only case.
8669 Otherwise flickering wont be avoidable, because we don't get
8670 WM_ERASEBKGND message for these windows.
8672 * gdk/win32/gdkevents-win32.c : initialize event->expose.region
8673 and fixed massive redraw problems apparently triggered by Alexanders
8674 recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
8675 but it seems to work quite well :-)
8677 * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
8680 Sat Mar 10 12:15:31 2001 Jonathan Blandford <jrb@redhat.com>
8682 * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
8683 (gtk_list_store_set_cell): Fix a stupid typo.
8685 Fri Mar 9 20:36:21 2001 Jonathan Blandford <jrb@redhat.com>
8687 * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
8688 select_all not work if you're in SINGLE mode (it doesn't make that
8689 much sense, anyway.)
8691 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
8692 handle types more sanely.
8693 (_gtk_tree_data_list_value_to_node): handle types more sanely.
8694 (_gtk_tree_data_list_node_copy): handle types more sanely.
8696 * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
8697 GValue better. Converts the type as well.
8699 * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
8700 GValue better. Converts the type as well.
8702 Wed Mar 7 20:47:41 2001 Owen Taylor <otaylor@redhat.com>
8704 * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
8705 gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c
8706 gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
8707 gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
8709 * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
8712 2001-03-09 Hans Breuer <hans@breuer.org>
8714 * gdk/gdk.def : updated
8716 * gdk/win32/gdkevents-win32.c : don't ask input_only windows
8719 * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
8722 * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
8723 removing and implemented Havoc's GdkWindow state functions;
8724 stick/unstick only as no-op, cause I don't know how to emulate
8727 * gtk/gtk.def : updated
8729 * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
8731 * gtk/gtktypeutils.c : #include <string.h>
8733 * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
8735 Fri Mar 9 09:31:55 2001 Tim Janik <timj@gtk.org>
8737 * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
8738 GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
8741 2001-03-09 Alexander Larsson <alexl@redhat.com>
8743 * docs/Changes-2.0.txt:
8744 Document expose event->region change and that gtk_widget_event
8745 doesn't allow passing expose events.
8748 Add region to expose event.
8751 Handle event->region in gdk_event_copy() and gdk_event_free().
8753 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
8754 Generate expose_event->region when creating expose events.
8756 * gdk/x11/gdkevents-x11.c:
8757 Generate expose events with regions when translating X events.
8759 * gtk/gtkcontainer.[ch]:
8760 Default expose handler that propagates expose events to NO_WINDOW
8761 children. New function gtk_container_propagate_expose()
8763 * gtk/gtkwidget.[ch]:
8764 Moved gtk_widget_event implementation to gtk_widget_event_internal.
8765 gtk_widget_event calls gtk_widget_event_internal but doesn't allow
8766 expose events. New function gtk_widget_send_expose() to send expose
8767 events. New function gtk_widget_region_intersect() to calculate
8768 window/region intersections.
8770 * gtk/gtkmain.c (gtk_main_do_event):
8771 Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
8772 Use gtk_widget_send_expose() to send expose events.
8777 * gtk/gtkimagemenuitem.c:
8782 Remove expose handler, using the default container implementation
8786 * gtk/gtkcheckbutton.c:
8787 * gtk/gtkeventbox.c:
8789 * gtk/gtkhandlebox.c:
8791 * gtk/gtklistitem.c:
8794 * gtk/gtkmenuitem.c:
8795 * gtk/gtknotebook.c:
8796 * gtk/gtkoptionmenu.c:
8798 * gtk/gtkscrolledwindow.c:
8799 * gtk/gtktogglebutton.c:
8801 * gtk/gtktreeitem.c:
8802 * gtk/gtkviewport.c:
8803 Chain expose handler to parent class handler. Use
8804 gtk_container_propagate_expose() to propagate exposes.
8806 * gtk/gtkclist.c (check_exposures):
8807 * gtk/gtktext.c (process_exposes):
8808 Use gtk_widget_send_expose instead of gtk_widget_event.
8810 Thu Mar 8 19:40:28 2001 Jonathan Blandford <jrb@redhat.com>
8812 * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
8814 Thu Mar 8 19:18:27 2001 Jonathan Blandford <jrb@redhat.com>
8816 * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
8817 unref the nodes. Fixes bug #50058.
8819 * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
8820 "::ref_iter" to "::ref_node".
8821 (gtk_tree_model_unref_node): change "::unref_iter" to
8822 "::unref_node". Fixes bug #50064.
8824 Thu Mar 8 17:40:09 2001 Jonathan Blandford <jrb@redhat.com>
8826 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
8827 support for invisible cells.
8828 (gtk_tree_view_bin_expose): ditto
8830 Thu Mar 8 16:36:00 2001 Jonathan Blandford <jrb@redhat.com>
8832 * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
8835 * tests/testtreefocus.c (main): New test file.
8837 * tests/testtreeview.c: update to latest glib changes.
8839 * tests/testtreecolumns.c: update to latest glib changes.
8841 Thu Mar 8 18:13:20 2001 Tim Janik <timj@gtk.org>
8843 * gtk/testgtk.c: re-enabled event watcher emission hooks.
8845 Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org>
8847 * *.c: added accumulator data argument to g_signal_newc()
8850 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model):
8851 * gtk/gtktreeview.c (gtk_tree_view_setup_model):
8852 * gtk/treestoretest.c (make_window):
8853 s/g_signal_connect/g_signal_connectc/.
8855 * gtk/gtktextbuffer.c: completed signal arg fixups,
8856 they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
8858 Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com>
8860 * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
8863 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a
8864 ::hierarchy-changed signal when a widget changes
8865 from anchored to unanchored or vice versa.
8867 gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
8868 Use a private flag to keep track of this efficiently.
8870 2001-03-07 Havoc Pennington <hp@redhat.com>
8872 * gtk/testgtk.c (create_spins): uglify so that size request gets
8875 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
8876 request on values for upper/lower, completes #6152
8878 Wed Mar 7 20:07:22 2001 Owen Taylor <otaylor@redhat.com>
8880 * Makefile.am: Remove gtk-config-2.0 again.
8881 (Grrrr, pkg-config. And stops make loops.)
8883 Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
8885 * gtk/gtksignal.[hc]: removed old emission hook API.
8887 * docs/Changes-2.0.txt: fixed sections.
8889 * gtk/gtktextbuffer.c: signal arg fixups.
8891 2001-03-07 Havoc Pennington <hp@redhat.com>
8893 * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
8895 * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
8896 here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
8897 of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
8898 validation and the redraw which is higher priority than the
8901 2001-03-07 Havoc Pennington <hp@redhat.com>
8903 * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
8904 (gtk_entry_set_property): remove trailer
8906 * gtk/gtkentry.c (gtk_entry_set_width_chars):
8907 (gtk_entry_get_width_chars): new functions, to set size request to
8908 a given number of characters
8910 * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
8912 * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
8913 (gtk_dialog_get_has_separator): new function
8914 (run_delete_handler): fix to not emit "response" signal
8915 because we already did in the delete event handler installed
8916 at dialog creation time.
8918 * gtk/gtkdialog.h: add a has_separator property,
8919 add GTK_DIALOG_NO_SEPARATOR flag
8921 2001-03-07 Havoc Pennington <hp@redhat.com>
8923 * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
8924 off decorations for a window.
8926 * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
8929 * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function
8930 to get location of PangoLayout inside the label, closes #51198
8932 * gtk/testgtk.c (create_bbox): fix up button box usage
8934 * gtk/testcalendar.c (create_calendar): fix up button box usage
8936 * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
8938 * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
8940 * gtk/gtkhbbox.h: deprecations
8942 * gtk/gtkvbbox.h: deprecations
8944 * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
8945 emulate deprecated gtk_button_box_get_spacing
8947 * gtk/gtkbbox.h: deprecate some useless functions, remove entirely
8948 the "set global default" functions
8949 (struct _GtkButtonBox): remove "spacing" field, use the one from
8952 * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
8954 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
8955 render the icon, return the missing image icon.
8957 * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
8958 image icon if the load fails.
8960 * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
8961 when no image is found; should be the Netscape "missing image"
8962 icon eventually but for now is a random image
8964 * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the
8965 role for the session manager
8967 * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
8969 * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
8970 GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
8972 * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
8974 Wed Mar 7 13:24:57 2001 Tim Janik <timj@gtk.org>
8976 * gtk/*.c: marshaller fixes.
8978 * gtk/gtkmarshal.list: extreme cleanup.
8980 * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
8983 * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
8986 * gtk/gtktypeutils.[hc]: updates to GLib API changes.
8987 special cased autogenerated boxed types from gtktypebuiltins_ids.c
8988 which are not reference counted:
8989 GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
8990 PangoFontDescription, GtkTreeIter and GtkTreePath.
8992 Thu Mar 1 03:58:56 2001 Tim Janik <timj@gtk.org>
8994 * gtk/gtktreeselection.h:
8995 * gtk/gtktreemodel.c:
8996 * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
8997 file should be included directly, and gobject/gmarshal.h
8998 as well as gtk/gtkmarshal.h even can't be included directly.
9000 * Makefile.am: grr, install gtk-config-2.0.
9005 * gtk/gtkitemfactory.c: use g_object_connect() instead of
9006 passing "*signal*::*" args to gtk_widget_set().
9008 * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
9010 * gtk/*.c: removed trailer arg from property setters and getters.
9013 2001-03-07 Alexander Larsson <alexl@redhat.com>
9015 * gtk/gtklabel.c (set_markup): Removed warning
9017 Tue Mar 6 19:59:12 2001 Jonathan Blandford <jrb@redhat.com>
9019 * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
9020 field to allow you to hide cell renderers.
9022 * gtk/gtkcellrenderer.c: Add support for invisible cells.
9024 * gtk/gtktreeview.c: Add support for invisible cells.
9026 Tue Mar 6 17:25:07 2001 Jonathan Blandford <jrb@redhat.com>
9028 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
9029 Add "clicked" signal back to columns.
9031 * ChangeLog: remove conflict markers.
9033 Tue Mar 6 10:45:45 2001 Owen Taylor <otaylor@redhat.com>
9035 * gtk/gtkbutton.c: Add animation of activation by, on
9036 activate, pressing the button, and adding a timeout that
9037 releases the button after 250ms or on key release and
9038 emits ::clicked. (#51501)
9040 * gtk/gtkdialog.c: Bit of a hack - for buttons in the
9041 action area, we connect to ::clicked instead of ::activate
9042 so the dialog stays up through the animation.
9044 Mon Mar 5 16:38:15 2001 Owen Taylor <otaylor@redhat.com>
9046 * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
9047 check the ignore_enter flag for the menu shell that
9048 the item is actually a child of, not for attached
9051 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
9053 * gtk/gtkmain.c (gtk_propagate_event): Only do special
9054 special key-press grab handling for widgets within
9055 GtkWindows. Otherwise, fall through to normal case.
9057 This prevents key events being sent twice to GtkInvisible
9058 widgets, which can cause all sorts of mischief.
9060 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
9062 * gtk/gtkmain.c (gtk_propagate_event): When a grab
9063 widget is in effect, give the grab widget a first
9064 crack at KEY_PRESS/RELEASE events. (#424)
9066 2001-03-06 James Henstridge <james@daa.com.au>
9068 * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
9069 offset for the window_state_event to point at window_state_event
9070 rather than no_expose_event.
9072 Mon Mar 5 19:10:15 2001 Jonathan Blandford <jrb@redhat.com>
9074 * gtk/gtkimmodule.h: fix busted /* comment */
9076 Mon Mar 5 15:07:05 2001 Jonathan Blandford <jrb@redhat.com>
9078 * gtk/gtktreeview.c: Apply patch from John Margaglione to add
9081 Mon Mar 5 14:55:19 2001 Jonathan Blandford <jrb@redhat.com>
9083 * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
9084 add object properties.
9086 * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
9087 to add object properties.
9089 * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
9092 * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
9093 add object properties.
9095 * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
9098 Mon Mar 5 14:38:54 2001 Jonathan Blandford <jrb@redhat.com>
9100 * gtk/gtktreemodel.c: renamed "child_toggled" to
9101 "has_child_toggled".
9103 * gtk/gtktreeview.c: Handle removing columns better. Updated to
9104 handle new signal name.
9106 * gtk/gtktreestore.c: Updated to handle new signal name.
9107 * gtk/gtklisttore.c: Updated to handle new signal name.
9108 * gtk/gtktreemodelsort.c: Updated to handle new signal name.
9110 2001-03-05 Alexander Larsson <alexl@redhat.com>
9112 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
9113 Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
9115 2001-03-05 Michael Natterer <mitch@gimp.org>
9117 * gtk/gtklabel.c: Made the "parent_class" pointer static. The
9118 pixbuf-engine coincidentially also failed to make one of it's
9119 parent_class pointers static, causing overwriting of GtkLabel's
9120 parent_class pointer in pixbuf_style_class_init().
9121 (Will commit the fix to the pixbuf-engine too).
9123 2001-03-05 Alexander Larsson <alexl@redhat.com>
9126 Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
9127 New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
9128 gdk_window_set_icon_list for net wmspec functionality.
9130 * gdk/x11/gdkwindow-x11.c:
9131 Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
9132 Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
9133 gdk_window_set_icon_list.
9134 Added gdk_wmspec_change_state helper function and used it in the code.
9135 Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
9137 * gtk/gtkdialog.c (gtk_dialog_init):
9138 Set GDK_WINDOW_TYPE_HINT_DIALOG.
9140 * gtk/gtkhandlebox.c (gtk_handle_box_realize):
9141 Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
9144 new function gtk_window_set_type_hint.
9145 On realize, set type hint and modal hint.
9148 Added type_hint field and gtk_window_set_type_hint.
9150 2001-03-05 Alexander Larsson <alexl@redhat.com>
9152 * gtk/gtklabel.[ch]:
9153 Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
9154 New function gtk_label_get_accel_keyval () to get the underline accelerator
9155 of the label. Setting the label pattern overrides other attributes.
9157 Mon Mar 5 14:51:10 MET 2001 Sven Neumann <sven@gimp.org>
9159 * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
9160 Added missing initializers to gtk_rc_style_init().
9162 Sun Mar 04 07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
9164 * gtk/gtktextview.c: fixed bug #51097 about setting
9165 gtk_text_view_set_border_window_size() if the widget is
9168 Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
9170 * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
9172 * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
9173 comment. Won't do to have duplicated doc comments between
9174 the platform subdirs.
9176 Sat Mar 3 16:26:33 2001 Owen Taylor <otaylor@redhat.com>
9178 * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c
9179 gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
9181 Detectable auto-repeat - make a repeating key generate
9182 press/press/press/release instead of press/release pairs.
9184 If we have Xkb and XkbSetDectableAutoRepeat supports
9185 that, we do it that way. Otherwise, when we get
9186 a release event, we check ahead with XPending to see
9187 if the next key is a KeyPress with the same keycode
9188 and timestamp. (Not 100% reliable, but pretty close.)
9190 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
9192 * gtk/gtkmain.c (gtk_propagate_event): Only do special
9193 special key-press grab handling for widgets within
9194 GtkWindows. Otherwise, fall through to normal case.
9196 This prevents key events being sent twice to GtkInvisible
9197 widgets, which can cause all sorts of mischief.
9199 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
9201 * gtk/gtkmain.c (gtk_propagate_event): When a grab
9202 widget is in effect, give the grab widget a first
9203 crack at KEY_PRESS/RELEASE events. (#424)
9205 Sat Mar 3 15:39:49 2001 Owen Taylor <otaylor@redhat.com>
9207 * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
9208 to extend the selection. (Roughly based on patch
9209 from Jay Cox, #50939)
9211 * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
9212 to properly handle previous GDK_BUTTON_PRESS.
9213 (Patch from Jay Cox, #50938)
9215 * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
9216 '\0' back along with the deleted text. (#51148)
9218 Mon Jan 22 14:31:29 2001 Owen Taylor <otaylor@redhat.com>
9220 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
9221 the group when extracting it from the X keyboard event.
9223 * modules/input/Makefile.am modules/input/imipa.c:
9224 Simple module for entering IPA. (Do we need a
9225 gtk-stupid-input-tricks CVS module?)
9227 Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
9229 * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
9232 * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
9234 * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
9235 is no focus widget for the dialog currently, grab the focus as well
9238 * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
9239 the action area's children to iterate through, not the
9242 Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
9244 * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
9245 Add plug-socket tests. (Won't work worth a darn until I commit
9246 the rest of the plug-socket changes, but no reason these
9247 can't go into CVS now.)
9249 2001-03-02 Havoc Pennington <hp@redhat.com>
9251 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
9252 _gdk_region_get_xrectangles()
9254 * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
9256 * gtk/testgtk.c (create_shapes): add test for shape_combine_region
9258 * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
9259 function, contributed by Ron Steinke
9261 * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
9264 * gdk/gdkregion-generic.c (gdk_region_get_rectangles):
9265 New function, contributed by Ron Steinke
9267 * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function,
9268 used to line up the text in the entry when using the entry for
9269 editable sheet cell hacks
9271 * gtk/testgtk.c (create_entry): test the activate_default setting
9274 * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to
9275 cause the entry to activate the default button for a dialog when
9277 (gtk_entry_get_activates_default): new function
9279 Wed Feb 28 19:10:43 2001 Owen Taylor <otaylor@redhat.com>
9281 * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
9282 Hwang to move call to sync_selection() up a few lines
9283 to before the row list is modified, to fix crash when
9284 removing rows in the undo_selection list.
9286 (Test case provided by Daniel Elstner:
9288 http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
9290 Fri Feb 23 15:06:48 2001 Owen Taylor <otaylor@redhat.com>
9292 * gtk/gtktree.c (gtk_tree_class_init): Do the setting
9293 of tree->root_tree in parent_set rather than _map(),
9294 fixing #50892 in a bit better manner.
9296 Thu Feb 22 17:07:58 2001 Owen Taylor <otaylor@redhat.com>
9298 * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
9300 Tue Feb 2 11:22:33 2001 Jody Goldberg <jgoldberg@home.com>
9302 * gtk/gtkstyle.c : Remove duplicate fwd decl for
9303 gtk_default_draw_shadow.
9305 ue Feb 20 11:40:58 2001 Owen Taylor <otaylor@redhat.com>
9307 * gdk/gdkimage.c (gdk_image_new): Remove excess
9308 warning, make warnings more verbose, treat a error
9309 in shmat as permanent, and don't try again.
9310 (#51163, Ed Randall.)
9312 Mon Feb 19 20:15:28 2001 Owen Taylor <otaylor@redhat.com>
9314 * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
9315 delay for the first click before starting to scroll.
9316 (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
9318 * gtk/gtktext.c: GtkText should have I-beam cursor.
9319 (based on gtk-enf-990513-1.patch, Eric Fisher.)
9321 Mon Feb 19 16:42:19 2001 Owen Taylor <otaylor@redhat.com>
9323 * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
9324 cleanup to remove some references to unused
9325 ->xoffset, ->yoffset.
9327 Mon Feb 19 14:20:36 2001 Owen Taylor <otaylor@redhat.com>
9329 * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
9330 mask. (#51039, fix from Martin Maierhofer)
9332 Fri Feb 16 20:09:42 2001 Owen Taylor <otaylor@redhat.com>
9334 * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
9335 for unshifted + and shifted = for non-us keyboards.
9336 Make <Control>+ and <Control>- work as well as
9337 <Control>KP_Plus, <Control>KP_Minus for recursive
9338 open/close. (#2682, René Seindal)
9340 Fri Feb 16 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
9342 * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
9343 the active menu item before deactivating the menu,
9344 so gtk_menu_popdown doesn't change the history. (#50964)
9346 Fri Feb 16 15:55:22 2001 Owen Taylor <otaylor@redhat.com>
9348 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
9349 draw lines with text_gc rather than black_gc.
9350 (Patch from Vlad Harchev <hvv hippo ru>, #50926)
9352 Thu Mar 1 19:50:56 2001 Jonathan Blandford <jrb@redhat.com>
9354 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
9355 Move handling of buttons fully in gtktreeviewcolumn. This code is
9356 less interrelated then it was, but it still requires the
9357 GtkTreeView to map it.
9359 * test/testtreecolumn.c: Now I can add a column to one view,
9360 remove it, add it to the another view, remove it, then re-add it
9361 to the first. Nifty.
9363 Thu Mar 1 13:14:27 GMT 2001 Tony Gale <gale@gtk.org>
9365 * docs/tutorial/gtk-tut.sgml: Minor corrections
9367 Wed Feb 28 16:36:46 2001 Jonathan Blandford <jrb@redhat.com>
9369 * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
9372 2001-02-28 Havoc Pennington <hp@redhat.com>
9374 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
9376 (gtk_widget_draw_focus): remove this function; we could instead
9377 make it just gtk_widget_draw(), but in most cases I think the
9378 result would be broken user code, so think it's better to have
9379 that code not compile and get fixed
9380 (gtk_widget_draw_default): ditto
9382 * gtk/gtkwidget.c: Add default handlers for focus_in_event and
9383 focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
9385 * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
9386 widgets lose/get the default, instead of calling draw_default
9388 * docs/Changes-2.0.txt: note about all this
9390 Then fixed every widget in GTK, I won't list all the filenames.
9392 Tue Feb 27 19:32:53 2001 Jonathan Blandford <jrb@redhat.com>
9394 * gtk/gtktreemodel.c (deleted_callback): Proxy out to
9395 _gtk_tree_row_reference_deleted.
9396 (inserted_callback): Proxy out to
9397 _gtk_tree_row_reference_inserted.
9398 (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
9399 get around signal emission ordering problem.
9401 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
9402 fix to work with SINGLE
9403 (_gtk_tree_selection_internal_select_node): Major sanitization on
9404 selections. SINGLE now seems to work.
9406 * tests/Makefile.am: add testtreecolumn.c:
9408 * tests/testtreecolumn.c: New test. Mostly points out selection
9409 bugs currently, but will test columns later.
9411 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
9412 selection bug. I hate touching this code -- it's scary.
9414 2001-02-26 Havoc Pennington <hp@redhat.com>
9416 * gtk/testgtk.c: test the window state stuff
9418 * gtk/gtkwindow.c (gtk_window_present): new function, makes a
9419 window come to the user's attention as if it were just created
9420 (gtk_window_iconify): new function
9421 (gtk_window_deiconify): new function
9422 (gtk_window_stick): new function
9423 (gtk_window_unstick): new function
9424 (gtk_window_maximize): new function
9425 (gtk_window_unmaximize): new function
9427 * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
9429 * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
9431 * gdk/x11/gdkevents-x11.c: create window state events when
9433 (gdk_wmspec_supported): new function
9435 * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
9436 iconification before showing the window
9437 (gdk_window_deiconify): new function
9438 (gdk_window_stick): new function
9439 (gdk_window_unstick): new function
9440 (gdk_window_maximize): new function
9441 (gdk_window_unmaximize): new function
9443 * gdk/gdkwindow.c: store the window state in the window;
9444 change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
9446 (gdk_window_get_state): return the current window state
9448 * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
9449 (gdk_event_get_state): handle GDK_WINDOW_STATE
9450 (gdk_synthesize_window_state): function to create the window state
9453 * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
9454 event, for changes to "window state" such as maximized, sticky,
9457 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
9460 * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function,
9461 finds out if we support a given WM spec hint
9463 Tue Feb 27 13:37:38 GMT 2001 Tony Gale <gale@gtk.org>
9465 * docs/faq/gtk-faq.sgml: New question re memory leaks.
9467 2001-02-25 Hans Breuer <hans@breuer.org>
9469 * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
9470 cause we want to loose those prototypes only in the latter case
9472 * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
9473 GdkPixmapImplWin32 because it itsn't derived from it. Use the
9474 impl member variable instead
9476 * gtk/gtk.def : updated
9479 * gtk/gtkmenus.c : include <string.h> for memset ()
9481 * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
9482 for everthing built here, but for gtk-x.x.dll only. This solves
9483 problem of indifferent gtk type definitions
9485 Sat Feb 24 20:11:39 2001 Jonathan Blandford <jrb@redhat.com>
9487 * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
9489 Fri Feb 23 17:50:13 2001 Jonathan Blandford <jrb@redhat.com>
9491 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
9492 column that is exposed.
9494 (_gtk_tree_view_update_size): Changed name from set_size, and
9495 changed function to do more work, and not force people calling it
9496 to figure out the size. Simplifies a lot of code elsewhere.
9498 2001-02-23 Alexander Larsson <alexl@redhat.com>
9500 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
9501 return solid masks for xpms that have no transparent color.
9502 This makes the ..._create_from_xpm... API backwards
9505 2001-02-23 Tor Lillqvist <tml@iki.fi>
9507 * README.win32: Update. Mention the gtk-1-3-win32-production
9510 * gdk/win32/bdfcursor.c: New file. A program that generates
9511 xcursors.h. Thanks to Stefan Ondrejicka.
9513 * gdk/win32/xcursors.h: New file, contains the X cursor font in a
9516 * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
9518 * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
9519 function, uses xcursors.h.
9520 (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
9521 cursor from inline data instead of using LoadCursor() to generate
9524 * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
9525 event, must check the Windows message for mouse button state, as
9526 the GDK event state might not have been built if it is
9527 undelivered. Remove one goto.
9529 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
9530 SetCursor() if the current cursor as returned by GetCursor() is
9531 the window's previous cursor. The ChildWindowFromPoint() test
9532 apparently didn't work correctly.
9534 * gdk/win32/rc/*.cur: Remove.
9536 * gdk/win32/rc/gdk.rc.in: Remove cursors.
9538 * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
9540 * gtk/makefile.{mingw,msc}.in: Updates.
9542 Wed Feb 21 20:56:50 2001 Jonathan Blandford <jrb@redhat.com>
9544 * gtk/gtktreemodel.h: add functions for signal emission.
9546 * gtk/gtktreestore.c: move to use above functions instead of
9549 * gtk/gtkliststore.c: ditto
9551 Wed Feb 21 15:41:34 2001 Jonathan Blandford <jrb@redhat.com>
9553 * gtk/gtktreestore.c: removed signals. Moved to inherit from
9554 GObject instead of GtkObject.
9556 * gtk/gtkliststore.c: ditto.
9558 * gtk/gtktreemodelsort.c: ditto.
9560 * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
9561 GtkTreeModelIface, instead of in each model.
9563 2001-02-21 Havoc Pennington <hp@redhat.com>
9565 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
9566 unbreak this function
9568 * gtk/gtkentry.c: apply patch from Lee Mallabone to add object
9571 * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
9574 * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object
9577 * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
9578 mean unset the max length
9580 Wed Feb 21 14:23:05 2001 Jonathan Blandford <jrb@redhat.com>
9582 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
9583 Changed name to be set_cell_data_func to make it clear what
9584 the functino does. Close bug #51069.
9586 Tue Feb 20 16:49:00 2001 Jonathan Blandford <jrb@redhat.com>
9588 * gtk/testgtk.c (main): Remove turning on of profiling malloc,
9589 have memory actually freed. Keeps box running longer.
9591 2001-02-21 Alexander Larsson <alexl@redhat.com>
9593 * gtk/gtkseparatormenuitem.[ch]:
9594 Added new menu separator item. The drawing and size handling
9595 is still done in GtkMenuItem, but the API is a bit more sane.
9598 Add gtkseparatormenuitem.[ch].
9601 Add gtkseparatormenuitem.h.
9604 * gtk/gtkmenufactory.c:
9605 * gtk/gtktextview.c:
9606 Use the new API for menu separators.
9608 * demos/gtk-demo/menus.c (create_menu):
9609 Add some GtkSeparatorMenuItem demo code.
9611 2001-02-20 Havoc Pennington <hp@redhat.com>
9613 * gtk/gtkaspectframe.c: Convert to new property API, patch from
9616 * gtk/gtkarrow.c: Convert to new property API, patch from
9619 Tue Feb 20 14:26:41 2001 Jonathan Blandford <jrb@redhat.com>
9621 * tests/testtreeview.c (toggled_callback): fix to reflect change
9622 in GtkTreeModelStore.
9624 Tue Feb 20 12:16:12 2001 Jonathan Blandford <jrb@redhat.com>
9626 * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
9627 function to create an icon set from a pixbuf.
9629 2001-02-20 Alexander Larsson <alexl@redhat.com>
9631 * gtk/gtkcellrenderertext.[ch]:
9632 Add a "markup" property.
9634 * gtk/treestoretest.c:
9635 Use the markup property, remove some leftover stuff from
9636 GtkTreeModelMapping.
9638 2001-02-20 Alexander Larsson <alexl@redhat.com>
9640 * gtk/gtklabel.c (gtk_label_set_selectable):
9641 Queue a redraw if the selectable setting was changed.
9643 2001-02-20 Alexander Larsson <alexl@redhat.com>
9645 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
9646 Actually copy the whole gc, not just the public parts.
9648 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
9649 GDK_WINDOW_TEMP are not toplevel. Fixes selectable
9652 2001-02-19 Havoc Pennington <hp@pobox.com>
9654 * gdk/gdkwindow.c: docs
9656 * gdk/gdkrgb.c: docs
9658 * gdk/gdkregion-generic.c: docs
9660 * gdk/gdkgc.c (gdk_gc_set_values): docs
9662 * gdk/gdkdraw.c: docs
9664 * gdk/gdkdrawable.h: deprecate drawable get/set data
9666 Mon Feb 19 20:37:35 2001 Jonathan Blandford <jrb@redhat.com>
9668 * demos/gtk-demo/dialog.c: Add simple new demo.
9670 2001-02-19 Havoc Pennington <hp@redhat.com>
9672 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
9673 insert_child_anchor signal, bug #50245
9675 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
9676 from create_child_anchor, so the anchor is passed in
9678 * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
9679 (_gtk_widget_segment_new): have the child anchor object passed in,
9680 instead of creating it.
9682 * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
9683 to gtk_text_buffer_get_modified
9685 2001-02-19 Havoc Pennington <hp@redhat.com>
9687 * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
9688 changed GLib without fixing GTK
9690 * gtk/gtkrange.h: Rename all the stupid implementation detail
9691 functions to have an underscore in front. Most of them should
9692 probably just go away, but for starters don't export them.
9695 2001-02-19 Havoc Pennington <hp@redhat.com>
9697 * gdk/gdkcolor.h: test was backward, so deprecated functions were
9700 * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
9701 clean up the old code a bit
9703 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
9706 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
9707 draw inconsistent state
9709 * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
9710 (create_menu): add inconsistent test
9712 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
9714 (gtk_check_menu_item_get_inconsistent): new function
9715 (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
9716 state (using etched in for now)
9718 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
9719 draw inconsistent state
9721 * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
9722 function, used when the user has selected a range of stuff in
9724 (gtk_toggle_button_get_inconsistent): accessor for that
9725 (gtk_toggle_button_paint): draw inconsistent state (etched in?
9726 don't know what else to do)
9728 2001-02-19 Hans Breuer <hans@breuer.org>
9730 * gtk/gtk.def : updated exported symbols
9732 * gtk/makefile.msc.in : updated
9734 * gtk/gtkstyle.c (gtk_style_realize) : gets called without
9735 a colormap, when invoked from testgtk::entry. I'm not sure where
9736 the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
9737 avoids immediate crashing ...
9739 * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
9742 * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
9743 0 parameter. At least msvc doesn't like macros with var args.
9744 I simply removed the extra 0, was it a feature or a typo ?
9746 * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
9747 removed the extra indirection from the GtkTreeViewColumnFunc parameter,
9748 because the value assignment to the internal struct wasn't working.
9749 I'm not absolutely sure. The problem could have been resolved by
9750 changing the "func" declartion in the struct, but was the pointer
9751 to the function pointer intended ?
9753 * gtk+/gtk/gtktreedatalist.c : include gboxed.h
9755 * gdk/gdk.def : updated exported symbols
9757 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
9758 only use SetDIBitsToDevice if there is a palette at the drawable
9759 and the image is GDK_VISUAL_PSEUDO_COLOR
9761 * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
9763 * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
9765 * gdk/*/makefile.msc : updated
9767 2001-02-19 Havoc Pennington <hp@redhat.com>
9769 * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
9770 GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
9772 * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
9773 (gdk_key_repeat_restore): nuke
9775 * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
9776 (gdk_init_check): no atexit func
9778 * gdk/gdkrgb.h: mark some stuff deprecated
9780 * gdk/gdkcolor.h: mark some stuff deprecated
9782 * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
9784 * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
9786 2001-02-16 Havoc Pennington <hp@redhat.com>
9788 * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
9791 * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
9792 steps, and add Ctrl-arrow shortcuts for paging visually as with
9793 HScale, since Page Up and Page Down move logically.
9795 * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
9796 GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
9798 * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
9800 (gtk_range_scroll): handle the visual steps
9802 * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
9805 * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
9806 steps, not the logical ones.
9808 * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
9809 (scroll_vertical): handle up/down steps
9811 2001-02-19 Alexander Larsson <alexl@redhat.com>
9813 * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
9814 Copy data and free data with free().
9816 * gdk-pixbuf/gdk-pixbuf.c:
9817 * gdk-pixbuf/io-jpeg.c:
9818 * gdk-pixbuf/io-png.c:
9819 Use g_try_malloc/g_free instead malloc/free.
9821 * gdk-pixbuf/test-gdk-pixbuf.c:
9822 Must... initialize... gobject...
9824 * gdk-pixbuf/pixops/timescale.c:
9825 * gtk/gtkcalendar.c:
9826 Use g_malloc instead of malloc.
9828 2001-02-19 Alexander Larsson <alla@lysator.liu.se>
9831 Comment out property assignments, these don't work yet.
9833 2001-02-17 Havoc Pennington <hp@pobox.com>
9835 * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
9838 2001-02-17 Havoc Pennington <hp@pobox.com>
9840 * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
9841 shadowed variables that had broken size request in some cases,
9842 leading to bogus tooltips (#50996)
9844 2001-02-06 Jon K Hellan <hellan@acm.org>
9846 Implement fast browsing of tooltips, bug #50619
9848 * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
9851 * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
9852 use_sticky_delay and last_popdown.
9853 (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
9855 (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
9857 (gtk_tooltips_recently_shown): New static function. Return true
9858 if < sticky_delay has elapsed since last popdown.
9859 (gtk_tooltips_event_handler): Display window after sticky_delay
9860 (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
9863 2001-02-17 Havoc Pennington <hp@pobox.com>
9865 * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
9866 instead of (). #6394
9868 * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
9869 G_CONST_RETURN, make it return by reference, #50473
9871 Sat Feb 17 06:47:27 2001 Tim Janik <timj@gtk.org>
9873 * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
9874 generated ENTER_NOTIFY event with 0, otherwise not explicitely
9875 setup fields contain garbage (e.g. subwindow, breaking
9876 gdk_drawable_ref() upon event copy).
9877 (gtk_menu_stop_navigating_submenu_cb): same here.
9879 * gtk/gtklist.c (gtk_list_vertical_timeout):
9880 * gtk/gtklist.c (gtk_list_horizontal_timeout):
9881 * gtk/gtkclist.c (vertical_timeout):
9882 * gtk/gtkclist.c (horizontal_timeout): change direct assignment
9883 default-zero-intialization for unions to memset(,0,), as unions are
9884 not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
9885 has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
9887 * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
9888 g_closure_sink() warning.
9890 * gtk/gtktreemodel.c (gtk_tree_model_get_valist):
9891 * gtk/gtktreestore.c (gtk_tree_store_set_valist):
9892 * gtk/gtkliststore.c (gtk_list_store_set_valist):
9893 fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
9895 Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com>
9897 * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
9898 gtk_*_store_get, and moved to GtkTreeModel.
9900 * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
9902 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
9904 * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
9906 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
9909 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
9910 freeze/thaw notify between setting all the properties for a cell.
9912 * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
9914 2001-02-15 Havoc Pennington <hp@redhat.com>
9916 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
9917 the X coordinates so they're with respect to the line, rather than
9918 with respect to the layout.
9920 * gtk/gtkalignment.c: Convert to new property API, patch from Lee
9923 * gtk/testgtk.c (create_range_controls): add vscale tests,
9926 * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix
9929 * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
9931 * gtk/gtktextiter.h (gtk_text_iter_is_last): rename
9932 gtk_text_iter_is_end
9934 * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
9935 rename gtk_text_buffer_get_end_iter
9937 * gtk/testgtk.c (create_labels): Add test for selectable
9939 * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
9940 the selection stuff. This code is kind of broken since it doesn't
9941 use the theme engine.
9943 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
9944 fix infinite loop and y offset problem
9945 (gdk_draw_layout_line_with_colors): fix foreground color handling
9947 * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag
9948 that makes the label selectable.
9950 * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
9951 layout when the style is set, since fonts etc. could have changed.
9953 Fri Feb 16 14:22:05 2001 Jonathan Blandford <jrb@redhat.com>
9955 * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
9957 * gtk/gtktreemodelsimple.[ch]: removed.
9959 2001-02-16 Alexander Larsson <alexl@redhat.com>
9961 * gtk/gtktreemodelmapping.[ch]:
9962 New files. Implement GtkTreeModelMapping.
9965 Add gtktreemodelmapping.[ch].
9968 Add gtktreemodelmapping.h
9970 * gtk/treestoretest.c:
9971 Test the GtkTreeModelMapping
9973 Tue Feb 13 13:16:09 2001 Jonathan Blandford <jrb@redhat.com>
9975 * demos/gtk-demo/panes.c (create_pane_options): If we're going to
9976 have a demo, we might as well pass in real values. Thanks to
9977 clahey for pointing this out.
9979 2001-02-14 Havoc Pennington <hp@pobox.com>
9981 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
9982 "static" to a private function
9983 (gtk_image_menu_item_class_init): remove destroy handler,
9984 add "image" object property
9986 2001-02-13 Alexander Larsson <alla@lysator.liu.se>
9988 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
9989 Add a shortcut if the window and the current clip_region doesn't
9990 overlap. This is needed when there are a lot of windows in a
9991 window. The layout test in testgtk is a good test.
9993 * gdk/linux-fb/gdkwindow-fb.c:
9996 2001-02-13 Sven Neumann <sven@convergence.de>
9998 * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
10000 2001-02-13 Alexander Larsson <alexl@redhat.com>
10002 * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
10003 Don't reference last_cursor if it is null. Fixes crash when rotating
10004 the screen before having moved the mouse.
10006 * gdk/linux-fb/gdkcc-fb.c: Zapp!
10008 * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
10010 * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw
10011 when using 90 or 270 degrees rotation.
10013 2001-02-12 Havoc Pennington <hp@pobox.com>
10015 * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where
10016 it always set the foreground, even if we were only using
10018 (gdk_draw_layout_line_with_colors): new function, allow
10020 (gdk_draw_layout_with_colors): new function, allow override
10022 (gdk_pango_layout_line_get_clip_region): function to get the clip
10023 region for a logical text range
10024 (gdk_pango_layout_get_clip_region): get the clip region for a
10027 * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
10028 (gdk_colormap_new): fix call to gdk_colormap_sync() so it has
10029 the right number of arguments.
10031 * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
10032 enhance the function to check that node data corresponds to a
10033 view still belonging to the tree.
10035 * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the
10037 (gtk_tree_view_inserted): ditto
10038 (gtk_tree_view_child_toggled): ditto
10040 * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
10041 simplify this code.
10043 * gtk/gtkcellrenderertext.c (get_layout): fix leak of
10046 * demos/gtk-demo/main.c (load_file): Fix leak of a GString
10048 * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
10050 * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
10051 size in the size request
10052 (gtk_menu_bar_size_allocate): consider toggle size here
10054 * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
10055 that displays a widget in the toggle slot
10057 * gtk/testgtk.c: test GtkImageMenuItem
10059 * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
10061 * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
10062 request and allocation
10064 * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
10066 * gtk/gtkcheckmenuitem.c
10067 (gtk_check_menu_item_toggle_size_request): ditto
10069 Mon Feb 12 23:43:30 2001 Owen Taylor <otaylor@redhat.com>
10071 * gtk/Makefile.am (gdk_headers): Remove gdkcc.h
10074 * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
10075 and refuse to initialize GTK+ if they fail.
10077 Mon Feb 12 15:02:07 2001 Owen Taylor <otaylor@redhat.com>
10079 * configure.in: Add check for gtk-doc version.
10081 Thu Feb 8 17:18:26 2001 Owen Taylor <otaylor@redhat.com>
10083 * gtk/gtklabel.c (gtk_label_size_request): Fix bug
10084 where the xpad/ypad was only being used on one side!
10086 2001-02-11 Tor Lillqvist <tml@iki.fi>
10088 * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
10089 function, copied from X11 version.
10091 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
10092 DestroyCursor failures. The reason for the problem (despite the
10093 inconsistent messages from GetLastError()) was that
10094 DestroyCursor() cannot be called while a cursor is set in a
10095 window. Set the new cursor first and then destroy the old one.
10096 Thanks to jpe@archaeopteryx.com.
10098 * gdk/win32/gdkcc-win32.c: Remove.
10100 * gdk/win32/Makefile.am: Remove from here, too.
10103 * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
10106 * gtk/makefile.mingw.in: Updates.
10108 2001-02-08 Havoc Pennington <hp@redhat.com>
10110 * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
10111 add a widget to a bin that already has a child.
10113 * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
10115 * docs/Changes-2.0.txt: note that GdkColorContext is gone.
10117 * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
10119 * gdk/gdk.h: remove gdkcc.h
10121 * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
10123 * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
10124 GdkPixbuf, since the previous implementation was GdkColorContext
10127 * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
10129 Thu Feb 8 19:00:00 2001 Jonathan Blandford <jrb@redhat.com>
10131 * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
10134 2001-02-08 Havoc Pennington <hp@redhat.com>
10136 * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
10139 2001-02-08 Havoc Pennington <hp@redhat.com>
10141 * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
10144 * demos/gtk-demo/main.c (create_tree): adjust to changes in text
10147 * demos/pixbuf-demo.c (timeout): remove deprecated
10150 * demos/testpixbuf-save.c (main): remove deprecated
10151 gtk_drawing_area_size
10153 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
10154 buttons even if the model isn't setup. gtk_tree_view_check_dirty()
10155 at the start of the allocation.
10156 (gtk_tree_view_check_dirty): handle column->button == NULL, handle
10157 unsetup or NULL model.
10159 * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
10160 even/odd/sorted cells in the tree view.
10162 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
10165 * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
10166 backgrounds with draw_flat_box using different detail for even/odd
10169 * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
10170 row, so we can draw the alternating colors thing
10172 * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
10173 property from a synonym property, notify for the synonym.
10174 Also, nuke the background_gdk_set and foreground_gdk_set synonyms
10175 (gtk_text_tag_get_property): Always return the font, even if
10176 all its fields aren't set
10178 * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
10179 store the attr list; it leaves us with no way to change attributes
10180 in _render according to the render flags, and no way to implement
10181 get_property. Instead store all the specific text attributes.
10182 Separate whether an attribute is enabled from its value. Sync all
10183 properties with GtkTextTag, make them all consistent, etc.
10185 * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
10186 renderers can highlight the sort row/column
10188 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
10189 accessor functions to get values; this has the side effect of
10190 showing up which accessor functions were missing. Added those.
10192 * gtk/gtktreeviewcolumn.h: Replace set_justification with
10193 set_alignment, to be consistent with GtkLabel, GtkMisc
10195 * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
10198 * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
10200 * gtk/gtktreesortable.h: updates in here
10202 2001-02-07 Sven Neumann <sven@convergence.de>
10204 * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
10205 pango dimensions after painting the background. We used to draw
10206 gigantic flat boxes here.
10208 Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
10210 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
10211 error introduced with earlier commit) (pointed out by
10214 Mon Feb 5 12:25:06 2001 Owen Taylor <otaylor@redhat.com>
10216 * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
10217 which are no longer necessary.
10219 Mon Feb 5 13:22:54 GMT 2001 Tony Gale <gale@gtk.org>
10221 * docs/faq/gtk-faq.sgml: s/MISK/MISC/
10223 2001-02-04 Tor Lillqvist <tml@iki.fi>
10226 * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
10227 Provide dummy implementations.
10229 Sun Feb 4 07:55:17 2001 Tim Janik <timj@gtk.org>
10231 * gtk/gtksignal.h: removed gtk_signal_init() compat define.
10233 * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
10234 GTypeDebugFlags debug_flags and pass it on to g_type_init ();
10235 deprecated this function.
10237 * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
10240 Sun Feb 4 07:45:45 2001 Tim Janik <timj@gtk.org>
10242 * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
10244 2001-02-03 Havoc Pennington <hp@pobox.com>
10246 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
10247 Mikael Hermansson with patch from Mikael (if there was a toggle
10248 start one after the first character in the range, this function
10249 was broken). Bug #50380
10251 Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
10253 * configure.in: Remove confusing comment about X11.
10255 Fri Feb 2 19:21:23 2001 Owen Taylor <otaylor@redhat.com>
10257 * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
10258 regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
10260 Fri Feb 2 18:31:54 2001 Owen Taylor <otaylor@redhat.com>
10262 * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
10263 it breaks things on BSD. If you want to compile GTK+ with
10264 -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE
10265 when configuring, since GTK+ simply can't be "pure ANSI"
10266 in the header files it uses. (#8170, Greg Hudson)
10268 2001-02-02 Havoc Pennington <hp@redhat.com>
10270 * gtk/gtkwindow.c: docs
10272 * gtk/gtkwidget.c: docs
10273 (gtk_widget_set_colormap): add a reference to the colormap
10274 (gtk_widget_get_default_colormap): add a reference to the colormap
10276 * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
10278 * gtk/gtktextiter.c: docs
10280 * gtk/gtkmain.c (gtk_propagate_event): docs
10282 * gtk/gtkpaned.c (gtk_paned_get_position): docs
10283 (gtk_paned_set_position): docs
10285 * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
10286 sort interface, no implementation yet.
10288 * demos/testpixbuf.c (new_testrgb_window): replace
10289 gtk_drawing_area_size() with gtk_widget_set_usize()
10291 * demos/testpixbuf-drawable.c (main): ditto
10293 * gtk/testgtk.c: remove use of GtkStatusbarMsg
10295 * gtk/gtktextbuffer.c: docs
10297 * gtk/gtkstock.c: docs
10299 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
10301 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
10303 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
10305 * gtk/gtkimage.c: add some docs in here
10306 (gtk_image_size_request): change name of
10307 gtk_widget_render_stock_icon
10308 (gtk_image_get_icon_set): don't dup returned string
10309 (gtk_image_get_icon_set): don't dup returned string
10311 * gtk/gtkwidget.c (gtk_widget_render_icon): rename from
10312 gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
10313 and gtkiconfactory.h functions
10315 * gtk/gtkiconfactory.c: add some docs in here
10317 * gtk/gtkmain.c (gtk_get_default_language): document
10318 (gtk_get_current_event): document
10319 (gtk_get_current_event_state): document
10320 (gtk_get_event_widget): document
10322 * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
10324 * gtk/gtkcontainer.c: Add some documentation
10325 (gtk_container_add): give a more explanatory warning on adding an
10326 already-parented widget, this is kind of a FAQ and also a common
10327 typo that's easier to debug with a nice warning
10329 * gtk/gtkcellrenderertoggle.c
10330 (gtk_cell_renderer_toggle_get_active): remove, I was on crack
10331 adding this, it's useless
10332 (gtk_cell_renderer_toggle_set_active): remove
10333 (gtk_cell_renderer_toggle_get_radio): add
10335 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
10336 the NULL cell renderer, that doesn't make any sense to me.
10338 * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
10339 demo code should never use deprecated features.
10341 * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
10342 code should never use deprecated features.
10344 * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
10345 gtk_widget_queue_clear_area deprecated
10347 * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
10350 * gtk/gtklabel.h: mark gtk_label_get() deprecated
10352 * gtk/gtkimage.h: mark the legacy GtkImage functions that took
10353 a GdkImage deprecated, replaced by new consistently-named
10356 * gtk/gtkmain.h: Mark gtk_exit() deprecated
10358 * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
10360 * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string
10363 * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file,
10364 so it won't appear in docs and confuse people.
10366 * gtk/gtkprogressbar.h: Mark all the old methods deprecated
10368 * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
10369 macros deprecated. (can't mark the type itself deprecated, since
10370 GtkProgressBar is not deprecated and we need the type decl to use
10373 * gtk/gtkpixmap.h: Mark deprecated
10375 * gtk/gtkoldeditable.h: Mark deprecated
10377 * gtk/gtklist.h: Mark deprecated
10379 * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used
10380 for anything anymore.
10382 * gtk/gtkctree.h: Mark deprecated
10384 * gtk/gtkclist.h: Mark deprecated
10386 * gtk/gtkpreview.h: Mark deprecated
10388 * gtk/gtkpacker.h: Mark deprecated
10390 * gtk/gtktipsquery.h: Mark deprecated
10392 * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
10394 * gtk/gtkvruler.h: Add comment that it will move out of GTK
10396 * gtk/gtkhruler.h: Add comment that it will move out of GTK
10398 * gtk/gtkruler.h: Add comment that it will move out of GTK
10400 * gtk/gtkgamma.h: Add comment that it will move out of GTK
10402 * gtk/gtkcurve.h: Add comment that it will move out of GTK
10404 Fri Feb 2 17:16:09 2001 Owen Taylor <otaylor@redhat.com>
10406 * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
10407 gdk_colormap_sync private since it was never exported
10410 * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
10411 colormap->colors[] for StaticGray, StaticColor colormaps.
10413 * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
10414 was being used as if it was image->bits_per_pixel.
10416 * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
10417 for the image in the GdkImage structure since it isn't
10418 reconstructable, and we need it to handle packed types
10420 * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
10421 the assumption that on Win32 image->bits_per_pixel == image->depth,
10424 * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
10426 * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
10427 warning message if no converter can be found.
10429 Fri Feb 2 15:09:51 2001 Owen Taylor <otaylor@redhat.com>
10431 * gtk/fnmatch.c (FOLD): Fix problem with passing signed
10432 chars to isupper() / tolower(). (#567)
10434 * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
10435 to clear up 64-bit warnings. (#567)
10437 Fri Feb 2 12:26:50 2001 Owen Taylor <otaylor@redhat.com>
10439 * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
10440 a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
10442 * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
10443 since some people set $(libdir) separately. (#1290, David Kaelbling)
10445 Thu Feb 1 18:25:46 2001 Owen Taylor <otaylor@redhat.com>
10447 * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
10448 defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
10449 MAXPATHLEN, but the code here depends on a fixed value.)
10452 Wed Jan 31 22:01:04 2001 Owen Taylor <otaylor@redhat.com>
10454 * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
10455 where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
10457 Wed Jan 31 21:20:39 2001 Owen Taylor <otaylor@redhat.com>
10459 * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
10460 viewable there is no way that moving the node will cause the
10461 focus row to become not viewable, so omit check on the visibility
10462 of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
10464 Wed Jan 31 20:38:17 2001 Owen Taylor <otaylor@redhat.com>
10466 * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
10467 selection before inserting new text.
10469 Wed Jan 31 18:49:33 2001 Owen Taylor <otaylor@redhat.com>
10471 * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
10472 Make the sensitivity of the reparented child track that of
10473 the original parent menu item. (#34218, David Hodson)
10475 * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
10476 the case where the current item is destroyed properly.
10478 * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
10479 some edge cases with child-less menuitems.
10481 Wed Jan 31 17:16:13 2001 Owen Taylor <otaylor@redhat.com>
10483 * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
10484 key pop down window. (#12074, Jon K Hellan)
10486 Wed Jan 31 16:21:42 2001 Owen Taylor <otaylor@redhat.com>
10488 * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
10489 toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan)
10490 The solution here isn't perfect - you get an extraneous
10491 emission of "toggle", which could conceivably confuse an app,
10492 but better than the current situation. LXR search seems to
10493 indicate that no apps in GNOME CVS connect to "toggle".
10495 Wed Jan 31 15:46:13 2001 Owen Taylor <otaylor@redhat.com>
10497 * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
10498 gtk_public_h_sources to directly here to avoid warning when
10499 building srcdir != builddir. (#9656)
10501 Tue Jan 30 19:49:02 2001 Owen Taylor <otaylor@redhat.com>
10503 * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
10504 handlers in gtkrange.c return the proper values (TRUE == handled)
10507 This is just the tip of the iceberg, but gtkrange.c is the
10508 most common place where the propagation is problematical,
10509 and also a place where it is almost certainly safe to change
10510 this in the stable branch.
10512 (You don't want right click popups on a range control or anything...)
10514 Tue Jan 30 18:57:59 2001 Owen Taylor <otaylor@redhat.com>
10516 * gtk/gtktext.c (clear_focus_area): We need to clear the focus
10517 area on focus out, even if a background pixmap isn't set.
10520 Tue Jan 30 18:24:10 2001 Owen Taylor <otaylor@redhat.com>
10522 * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
10523 to deal with setting the shape properly when scrolling arrows are
10524 turned on, but not visible because there is sufficient space.
10527 Tue Jan 30 16:39:25 2001 Owen Taylor <otaylor@redhat.com>
10529 * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
10530 items with submenus, destroy the item along with the submenu.
10531 (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...'
10534 * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
10537 Tue Jan 30 15:51:25 2001 Owen Taylor <otaylor@redhat.com>
10539 * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
10540 the focus widget sometimes wasn't drawn with the default if there
10541 was no default widget.
10543 * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
10544 unreference pixmaps.
10546 * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
10547 for some extra safety.
10549 Mon Jan 29 19:00:01 2001 Owen Taylor <otaylor@redhat.com>
10551 * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
10552 the text of a cell to the old pointer value better, by
10553 copying the new text before freeing the old text. Some code
10554 cleanup. (#8079, Karl Nelson)
10556 Mon Jan 29 16:50:19 2001 Owen Taylor <otaylor@redhat.com>
10558 * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
10559 gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
10561 Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
10563 * gtk/gtkmenu.c (gtk_menu_remove): When removing an
10564 item from a menu, check to see if it matches
10565 menu->old_active_menu_item, and if so, unref and clear
10566 old_active_menu_item (Patch from Pavel Cisler)
10568 * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset
10569 menu_shell->active_menu_item, if it is the child being
10570 removed. (Patch based on that of Gene Ragan, #50337)
10572 2001-01-31 Alexander Larsson <alla@lysator.liu.se>
10574 * gdk/linux-fb/gdkselection-fb.c:
10575 * gdk/linux-fb/gdkcolor-fb.c:
10576 * gdk/linux-fb/gdkdrawable-fb2.c:
10577 * gdk/linux-fb/gdkfont-fb.c:
10578 * gdk/linux-fb/gdkim-fb.c:
10579 * gdk/linux-fb/gdkinput.c:
10580 * gdk/linux-fb/gdkkeyboard-fb.c:
10581 * gdk/linux-fb/gdkmain-fb.c:
10582 * gdk/linux-fb/gdkrender-fb.c:
10583 A bunch of whitespace cleanup.
10585 2001-01-30 Havoc Pennington <hp@pobox.com>
10587 * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in
10588 #ifdef GTK_ENABLE_BROKEN.
10590 * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
10591 GTK_ENABLE_BROKEN just before including the broken headers.
10593 * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
10594 deprecated types registered.
10596 * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
10597 we have to test the broken stuff.
10599 * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
10601 2001-01-30 Havoc Pennington <hp@redhat.com>
10603 * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
10604 here where prev pointer was set to the wrong thing
10606 * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
10607 (gtk_tree_path_is_descendant): new function
10609 * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
10611 (gtk_list_store_get_iter): don't modify iter if we can't get the
10614 * gtk/gtkliststore.h (struct _GtkListStore): cache the length
10616 * gtk/gtktreednd.h: add virtual function row_drop_possible() to
10619 * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
10620 was causing segfault
10622 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
10625 * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
10627 * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
10629 (gtk_list_store_iter_children): ditto
10630 (gtk_list_store_iter_nth_child): ditto
10631 (gtk_list_store_iter_nth_child): ditto
10632 (gtk_list_store_iter_parent): ditto
10634 * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
10635 on iter->user_data != NULL instead of silently accepting it.
10636 (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
10637 we are returning TRUE.
10638 (gtk_tree_store_iter_children): ditto
10639 (gtk_tree_store_iter_nth_child): ditto
10640 (gtk_tree_store_iter_parent): ditto
10641 (gtk_tree_store_insert): remove handling of parent->user_data ==
10642 NULL, replace with parent == NULL
10644 * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
10645 and a comment explaining things
10647 * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
10648 interface support to GtkTreeStore.
10650 * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
10651 FALSE if no prev, fix
10653 * gtk/gtktreeview.c (set_source_row): use a row reference
10654 (set_dest_row): use a row reference
10656 Sat Jan 27 15:52:02 2001 Jonathan Blandford <jrb@redhat.com>
10658 * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
10659 stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
10660 (gtk_tree_selection_select_iter): The same as above.
10662 2001-01-26 Havoc Pennington <hp@redhat.com>
10664 * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
10665 which holds a handle to a specific row (particular set of values
10666 in the model, i.e. pointer-identity row).
10668 * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
10669 use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
10670 Still need to use it for the src/dest row saved on the drag context.
10672 2001-01-26 Havoc Pennington <hp@redhat.com>
10674 * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
10676 * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
10677 not offset by TREE_VIEW_HEADER_HEIGHT
10678 (gtk_tree_view_tree_to_widget_coords): fix to not offset by
10679 TREE_VIEW_HEADER_HEIGHT
10681 * configure.in (included_loaders): for me, --with-included-loaders
10682 generates the error "the specified loader yes does not exist",
10683 i.e. the arg defaults to "yes", so change test for value ""
10684 to test for value "yes", and include all loaders in that case.
10686 * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
10688 * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
10689 handle TREE_VIEW_VERTICAL_SEPARATOR
10690 (gtk_tree_view_bin_expose): fix to consider the row offset as
10691 pointing halfway into vertical separator.
10692 (gtk_tree_view_draw_node_focus_rect): ditto
10694 * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
10695 --gtk-debug=updates, which causes gdk_window_set_debug_updates
10696 (TRUE) to be called.
10698 * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
10699 debug mode where the invalid region is colored in on invalidate,
10700 so you can see the flicker and know whether your redraw code is
10703 * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
10704 tree window coordinates (clip rect is in tree window coords)
10706 * gtk/Makefile.am: add gtktreednd.[hc]
10708 * gtk/gtkliststore.c: implement gtktreednd interfaces.
10710 * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
10711 drag-and-drop data operations on a model (so we can set up tree
10712 drag-and-drop automatically)
10714 * gtk/testgtk.c: Add a window to change sensitivity in the
10715 GtkLabel test; add a way to change the entry frame in GtkEntry
10718 * gtk/gtkentry.c (gtk_entry_set_has_frame):
10719 (gtk_entry_get_has_frame): new functions to remove the frame
10721 (gtk_entry_size_request): shrink requisition if no frame
10722 (gtk_entry_draw_focus): don't draw frame if no frame
10724 * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
10725 checks inside a cell renderer
10726 (gtk_default_draw_option): ditto for options
10728 * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
10729 children from the alignment, not the button
10730 (gtk_tree_view_column_init): ref/sink the column, to emulate
10731 GObject refcounting.
10733 * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
10735 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10736 Use theme functions to draw the toggles
10738 * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
10740 * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
10741 GdkPangoAttrEmbossed to use in rendering insensitive text
10743 * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
10745 * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
10746 using new GDK features
10748 2001-01-24 Alexander Larsson <alexl@redhat.com>
10751 Splitted gtk_image_clear into gtk_image_clear() and
10752 gtk_image_reset(). Call gtk_image_clear() in ::destroy
10755 * gtk/gtklabel.c (set_markup):
10758 * gtk/gtktextlayout.c:
10759 Always free display->shaped_objects.
10761 * gtk/testgtk.c (create_clist):
10762 Don't leak custom style.
10764 2001-01-23 Alexander Larsson <alexl@redhat.com>
10766 * gtk/gtkcolorsel.c (grab_color_at_mouse):
10767 Don't leak image. Simplify using gdk_colormap_query_color().
10768 (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
10770 * linux-fb/gdkcolor-fb.c:
10771 Implemented gdk_colormap_query_color.
10773 2001-01-23 Alexander Larsson <alexl@redhat.com>
10775 * linux-fb/gdkcursor-fb.c:
10776 Don't leak built-in cursors.
10778 * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
10779 Don't leak tmp_points.
10781 * linux-fb/gdkfont-fb.c (gdk_font_from_description):
10782 Don't modify desc. Don't leak font if the PangoFont
10785 * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
10788 * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
10791 2001-01-20 Havoc Pennington <hp@pobox.com>
10793 * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
10794 from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to
10797 2001-01-22 Havoc Pennington <hp@redhat.com>
10799 * demos/testanimation.c: fix to reflect gdk-pixbuf changes
10801 * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
10803 * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
10804 Remove, move back to gdk-pixbuf
10806 * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
10807 to all the word functions
10809 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
10810 before doing anything on NULL layout or if we don't have the focus
10812 * gtk/testtext.c (fill_example_buffer): "justification"
10814 * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
10815 to be called "justification" not "justify"
10817 * demos/gtk-demo/textview.c (create_tags): "justification"
10819 * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
10821 2001-01-22 Alexander Larsson <alexl@redhat.com>
10823 * gdk/gdkwindow.c (gdk_window_invalidate_region):
10824 Don't leak visible_region. Use visible_region instead of region.
10826 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
10827 Don't do extra gdk_drawable_ref(). This is not X.
10828 (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
10829 gdk_fb_focused_window is ref:ed.
10830 (gdk_fb_window_send_crossing_events): Watch out for destroyed
10833 2001-01-22 Alexander Larsson <alexl@redhat.com>
10835 * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
10836 Don't leak the PangoFontDescriptor.
10838 Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
10840 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
10842 (gtk_tree_view_scroll_to_cell): Make work when not realized.
10843 (gtk_tree_view_realize): add scroll_to support
10844 (gtk_tree_view_finalize): add a finalize method. Populate.
10845 (gtk_tree_view_insert_column): ref and sink the column.
10846 (gtk_tree_view_append_column): ref and sink the column.
10847 (gtk_tree_view_queue_draw_node): New function to handle redrawing
10848 individual nodes. Should make the code much more efficient, if
10851 2001-01-19 Havoc Pennington <hp@redhat.com>
10853 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
10854 byte_offset variable was being used to mean both "offset into
10855 layout" and "offset into buffer line" which was no longer true
10856 with addition of preedit string; fix
10858 2001-01-19 Havoc Pennington <hp@redhat.com>
10860 * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
10862 * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
10865 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
10868 * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
10869 scroll_to_cell, matches TextView scroll functions better
10870 (gtk_tree_view_tree_to_widget_coords): new function
10871 (gtk_tree_view_widget_to_tree_coords): new function
10872 (gtk_tree_view_get_visible_rect): new function
10873 (gtk_tree_view_get_path_at_pos): accept negative coordinates
10874 (gtk_tree_view_draw_node_focus_rect): new function moved from
10875 draw_focus, also, use width of bin_window as width of the focus
10877 (gtk_tree_view_expand_row): fix bug where it didn't recognize
10878 already-expanded rows
10879 (gtk_tree_view_get_cell_rect): new function
10880 (gtk_tree_view_get_path_at_pos): return the click position
10881 relative to the passed-in cell
10882 (gtk_tree_view_set_expander_column): new function
10884 * configure.in: remove gtk-config-2.0 chmod
10886 * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
10887 and properly handle drags with targets we don't understand
10888 (gtk_text_view_drag_end): don't stop scrolling, the source isn't
10890 (gtk_text_view_drag_drop): stop scrolling here though, and set the
10893 * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
10895 (gtk_drag_dest_get_target_list): new function
10896 (gtk_drag_dest_set_target_list): new function
10898 * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
10900 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
10901 related to drag-and-drop
10903 2001-01-19 Alexander Larsson <alexl@redhat.com>
10905 * gdk/linux-fb/gdkprivate-fb.h:
10906 Define EMULATE_GDKFONT.
10907 Add extra pango_font stuff to GfkFontPrivate.
10909 * gdk/linux-fb/gdkdrawable-fb2.c:
10910 * gdk/linux-fb/gdkfont-fb.c:
10911 If EMULATE_GDKFONT defined, implement a slow lame GdkFont
10912 emulation using PangoFont.
10914 2001-01-17 Havoc Pennington <hp@pobox.com>
10916 * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
10917 all the non-deprecated set_foo functions. Added missing object
10918 properties, and added g_object_notify() to setters.
10921 2001-01-18 Tor Lillqvist <tml@iki.fi>
10924 * gtk/gtkrc.c: (Win32) Use the new
10925 g_win32_get_package_installation_(sub)directory() functions.
10927 * config.h.win32.in: New file.
10929 * config.h.win32: Removed.
10931 * configure.in: Output config.h.win32.
10933 * Makefile.am: Add it to EXTRA_DIST.
10935 * gtk/gtk.def: Update.
10937 Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
10939 * gtk/gtklabel.c (gtk_label_size_request): Set the
10940 attributes onto the PangoLayout even if they are newly
10941 created from label->pattern.
10943 Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
10945 * gdk/x11/gdkdnd-x11.c: Remove unused variable.
10947 * gtk/gtkdnd.c: Encapsulate storing and retrieving info
10948 structures in functions. Fixes bug where gtk_dataset_*
10949 was accidentally still being used in one place, causing
10950 every dest side event to be treated independently.
10952 * gtk/gtkdnd.c: Remove last vestages of handling
10953 ::draw (fixes warning)
10955 * gtk/gtkentry.[ch]: Add drag and drop support.
10957 * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
10958 new function gtk_check_drag_threshhold() for checking
10959 to check if (dx,dy) has exceeded the threshhold for starting
10960 a drag and use it everywhere.
10962 Mon Jan 8 11:58:05 2001 Owen Taylor <otaylor@redhat.com>
10964 * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
10965 add -I{includedir}/gtk-2.0.
10967 * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
10968 gdk/gdk-pixbuf.h: Doc fixups.
10970 * gtk/gtkobject.h: Remove trailing , from enum
10972 2001-01-17 Alexander Larsson <alexl@redhat.com>
10974 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
10975 Doh! Mixed up x and y.
10977 * gdk/linux-fb/gdkglobals-fb.c:
10978 Removed gdk_fb_pointer_grab_window_events,
10979 added _gdk_fb_pointer_grab_owner_events and
10980 _gdk_fb_keyboard_grab_owner_events.
10982 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
10983 Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
10984 crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
10985 (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
10986 Send crossing events after ungrab finished.
10987 (gdk_keyboard_grab): Set ..._owner_events
10988 (type_masks): Move out of function.
10989 (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
10990 gdk_fb_keyboard_event_window): New functions, return the
10991 window an event should be targeted at. Handles grabs and
10992 event propagation. Can return NULL.
10993 (gdk_event_make): Remove event_mask checking. Now always
10996 * gdk/linux-fb/gdkkeyboard-fb.c:
10997 * gdk/linux-fb/gdkproperty-fb.c:
10998 * gdk/linux-fb/gdkselection-fb.c:
10999 Use new event_window/gdk_event_make() behaviour.
11001 * gdk/linux-fb/gdkmouse-fb.c:
11002 Use new event_window/gdk_event_make() behaviour.
11003 Only send motion events if in the same window.
11004 If grabbed, use cursor from window if sibling of grabbed
11005 window, and cursor from grabbed window otherwise.
11007 * gdk/linux-fb/gdkprivate-fb.h:
11008 Update gdk_fb_window_send_crossing_events, gdk_event_make
11009 and grab varaible declarations. Add gdk_fb_*_event_window().
11011 * gdk/linux-fb/gdkwindow-fb.c:
11012 Use new event_window/gdk_event_make() behaviour.
11013 Keep correct track of focus window.
11014 (gdk_window_set_events): Set all specific button motion masks
11015 if GDK_BUTTON_MOTION_MASK set.
11017 * gtk/gtkdnd.c (gtk_drag_update):
11018 Free info->last_event if gdk_drag_motion returned FALSE.
11020 2001-01-16 Tor Lillqvist <tml@iki.fi>
11022 * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
11023 Eliminate redraws when input-only windows are shown or
11024 hidden. Thanks to jpe@archaeopteryx.com.
11026 Tue Jan 16 13:13:13 GMT 2001 Tony Gale <gale@gtk.org>
11028 * docs/faq/gtk-faq.sgml: FAQ update:
11029 - Update to bugzilla
11030 - Add GTK+ and security/SUID/SGID
11033 2001-01-16 Alexander Larsson <alla@lysator.liu.se>
11035 * gdk/linux-fb/gdkdnd-fb.c:
11038 2001-01-15 Havoc Pennington <hp@pobox.com>
11040 * tests/testtreeview.c: add test stuff for CellRendererToggle
11042 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
11045 * gtk/gtkcellrenderertoggle.c: distinguish different event types,
11046 only toggle on button press (would do release like GtkButton, but
11047 we'd need implicit grab code for treeview cells)
11049 2001-01-16 Tor Lillqvist <tml@iki.fi>
11051 * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
11053 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
11054 GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
11056 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
11057 to g_{locale,filename}_{to,from}_utf8 to match current API.
11059 * gtk/makefile.msc.in (gtk_OBJECTS)
11060 * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
11062 * gtk/gtk.def: Update.
11064 2001-01-15 Tor Lillqvist <tml@iki.fi>
11066 * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
11067 implementaion that more closely mimics the events that an X server
11068 would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
11069 GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
11070 with nested preview widgets, for instance, more responsive when
11071 you move the mouse quickly into them.
11072 (find_window_for_pointer_event): Make it actually compile.
11073 (gdk_event_translate): Set send_event to the value of
11074 InSendMessage (). This doesn't really mean the same as X11's
11075 send_event flag, but is close enough, says jpe@archaeopteryx.com
11077 2001-01-15 Alexander Larsson <alexl@redhat.com>
11079 * gdk/linux-fb/gdkdnd-fb.c:
11080 Implemented drag and drop.
11081 Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
11082 when it tries to free and then copy the same event (info->last_event).
11083 I am not sure about why this happens, but will continue looking.
11085 2001-01-15 Alexander Larsson <alexl@redhat.com>
11087 * gdk/linux-fb/gdkwindow-fb.c:
11088 Use gdk_window_invalidate_rect instead of
11089 gdk_window_invalidate_rect_clear to minimise flashing.
11090 When hiding windows you need to clear the root window though.
11092 2001-01-15 Alexander Larsson <alexl@redhat.com>
11094 * gdk/linux-fb/gdkdrawable-fb2.c:
11095 For optization, add an full_shapes argument to gdk_fb_clip_region.
11096 If this is false, only the cliprects of the shapes are used.
11098 * gdk/linux-fb/gdkprivate-fb.h:
11099 Export gdk_fb_window_peek_shape.
11100 Add full_shapes to gdk_fb_clip_region.
11102 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
11103 When moving a window, don't clear everything under the it, just the
11104 root window. Makes stuff faster and flash less.
11105 (gdk_window_get_pointer): Correctly handle offseted shapes, due to
11106 USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
11107 offset of the shape.
11110 2001-01-12 Havoc Pennington <hp@redhat.com>
11112 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the
11113 current invalid region, fixes redraw bug while scrolling the
11116 * gtk/gtktextview.c, gtk/gtktextview.h:
11117 Rearrange the scrolling/validation/etc. code in a major way,
11118 so it seems to make sense to me. Probably isn't genuinely that
11119 much better, but...
11121 * gtk/gtktexttag.c (set_fg_color): fix name of property used for
11124 * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
11126 2001-01-12 Alexander Larsson <alla@lysator.liu.se>
11128 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
11129 Hide mouse pointer while rotation. Show it afterwards.
11131 2001-01-12 Alexander Larsson <alexl@redhat.com>
11133 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
11134 windows in consideration when generating clip region.
11136 * gdk/linux-fb/gdkfb.h:
11137 Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
11139 * gdk/linux-fb/gdkprivate-fb.h:
11140 Add shape to GdkWindowFBDatat.
11141 exported gdk_fb_window_get_abs_shape().
11142 removed gdk_fb_draw_lines declaration.
11144 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
11145 Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
11146 send focus changes when there is a grabbed window.
11147 (gdk_window_get_pointer): Handle shaped windows.
11148 (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
11149 (gdk_fb_window_peek_shape): Returns the shape for a window,
11150 handles GDK_FB_USE_CHILD_SHAPE.
11151 (gdk_fb_window_get_abs_shape): Returns the shape of the window,
11152 offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
11153 (gdk_window_shape_combine_mask): Implement.
11155 * gtk/gtkwindow-decorate.c:
11156 HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
11157 setting the shape of a window makes the window transparent.
11159 2001-01-11 Havoc Pennington <hp@redhat.com>
11161 * gtk/gtktreemodelsimple.h: Oops, broke some macros
11163 2001-01-10 Havoc Pennington <hp@redhat.com>
11165 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
11166 add this function, bug 40251
11168 * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
11171 2001-01-11 Alexander Larsson <alexl@redhat.com>
11174 Added ENABLE_SHADOW_FB
11177 Added --disable-shadowfb
11179 * gdk/linux-fb/gdkcursor-fb.c:
11180 Update shadowfb when updating cursor
11182 * gdk/linux-fb/gdkdrawable-fb2.c:
11183 Added wrappers for shadowfb that calls the normal drawable
11184 methods, but calls gdk_shadow_fb_update(bounding box) when
11185 GdkWindows are drawed to.
11186 Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
11187 which also returns the bounding box.
11189 * gdk/linux-fb/gdkfb.h:
11190 Added GdkFBAngle type and gdk_fb_set_rotation declaration.
11192 * gdk/linux-fb/gdkgeometry-fb.c:
11193 Update shadowfb when scrolling window.
11195 * gdk/linux-fb/gdkglobals-fb.c:
11196 Add _gdk_fb_screen_angle.
11198 * gdk/linux-fb/gdkkeyboard-fb.c:
11199 Test code for screen rotation. Shift-F2 in the xlate driver
11200 rotates the screen.
11202 * gdk/linux-fb/gdkmain-fb.c:
11203 Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
11205 * gdk/linux-fb/gdkmouse-fb.c:
11206 Use fb_width/height instead of modeinfo.xres/yres.
11208 * gdk/linux-fb/gdkprivate-fb.h:
11209 Added fb_men, fb_width, fb_height & fb_stride. When using
11210 shadow fb these can differ from the framebuffer stuff.
11211 Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
11212 gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
11213 _gdk_fb_screen_angle. Removed CM, RP.
11215 * gdk/linux-fb/gdkrender-fb.c:
11216 Added code for shadowfb handling and screen rotation using
11219 * gdk/linux-fb/gdkwindow-fb.c:
11220 Use fb_mem, fb_stride, fb_width, fb_height.
11221 Added recompute_rowstride to reset the rowstride of all windows.
11222 Added gdk_fb_recompute_all() which recomputes rootwindow size,
11223 window abs positions and window rowstrides. Usefull when the
11224 rotation has changed.
11226 Thu Jan 11 13:16:50 GMT 2001 Tony Gale <gale@gtk.org>
11228 * docs/faq/gtk-faq.sgml: update to make web site updating easier
11230 2001-01-10 Havoc Pennington <hp@redhat.com>
11232 * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
11233 where sibling == iter
11234 (gtk_tree_store_insert_after): handle sibling == iter
11235 (gtk_tree_store_prepend): remove stamp checks
11236 (gtk_tree_store_insert_before): ditto
11237 (gtk_tree_store_append): ditto
11238 (gtk_tree_store_get_path): ditto
11239 (gtk_tree_store_get_value): ditto
11240 (gtk_tree_store_iter_has_child): ditto
11241 (gtk_tree_store_iter_n_children): ditto
11242 (gtk_tree_store_iter_nth_child): ditto
11243 (gtk_tree_store_insert_after): ditto
11244 (gtk_tree_store_is_ancestor): ditto
11245 (gtk_tree_store_iter_depth): ditto
11246 (gtk_tree_store_insert_before): assert that sibling's parent is
11247 the same as the passed-in parent
11248 (gtk_tree_store_insert_after): assert that sibling's parent is
11249 the same as the passed-in parent
11252 * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience
11253 function to get the first iterator in a model
11255 * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
11256 conventionally the "root" in this sense is just NULL afaict.
11258 * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
11259 where sibling == iter
11260 (gtk_list_store_insert_after): handle case where sibling == iter
11262 * tests/testtreeview.c (run_automated_tests): fairly lame basic
11263 automated tests for ListStore, TreeStore
11265 * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
11266 (gtk_list_store_insert): update tail pointer, and fix it to work
11267 (gtk_list_store_insert_before): update tail pointer, and fix it to work
11268 (gtk_list_store_append): use tail to be faster
11269 (gtk_list_store_prepend): fix it, update tail pointer
11270 (gtk_list_store_insert_after): fix it, update tail pointer
11272 * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for
11275 2001-01-09 Havoc Pennington <hp@redhat.com>
11277 * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
11278 is NULL due to a pending resize
11280 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
11281 column width to values less than 1
11283 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
11284 width to be between min/max width, and still set the width
11285 even if autosize is turned on, so the tree view can use this
11286 function in order to autosize.
11287 (gtk_tree_view_column_init): set initial width to 1 not 0
11289 * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
11290 setter function to modify column width, so we get notification
11291 (gtk_tree_view_insert_iter_height): ditto
11292 (gtk_tree_view_calc_size): ditto
11293 (gtk_tree_view_check_dirty): ditto
11295 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
11296 properties to change all the interesting attributes of the tree
11298 (gtk_tree_view_column_set_header_clickable): rename set_clickable
11299 (gtk_tree_view_column_get_clickable): add
11300 (gtk_tree_view_column_set_cell_renderer): don't unset the current
11301 attributes; assume a cell renderer with equivalent object
11302 properties has been swapped in. Do g_object_notify().
11303 (gtk_tree_view_column_set_visible): g_object_notify
11304 (gtk_tree_view_column_get_sizing): rename from get_col_type
11305 (gtk_tree_view_column_set_sizing): g_object_notify
11306 (gtk_tree_view_column_set_width): add g_object_notify
11307 (gtk_tree_view_column_set_min_width): ditto
11308 (gtk_tree_view_column_set_max_width): ditto
11309 (gtk_tree_view_column_set_title): ditto
11310 (gtk_tree_view_column_set_clickable): ditto
11311 (gtk_tree_view_column_set_widget): ditto
11312 (gtk_tree_view_column_set_justification): ditto
11314 2001-01-09 Havoc Pennington <hp@redhat.com>
11316 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
11317 there are no rows in the model
11319 * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
11320 NULL, then return the start of the list
11322 * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
11323 if we can't get any rows from an empty model
11325 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
11326 extraneous * after function pointer typedef usage
11328 * Makefile.am: don't specify full path to cp and rm
11330 * gtk/gtkcellrenderertextpixbuf.c
11331 (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
11332 NULL before dereferencing, fixes a segfault that happened from
11335 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
11336 use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
11337 and reindent the function
11338 (gtk_cell_renderer_pixbuf_get_size): indentation
11340 * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
11342 (gtk_dialog_add_buttons_valist): add g_return_if_fail
11343 (gtk_dialog_set_default_response): New function, to set default
11345 (gtk_dialog_set_response_sensitive): New function, to set
11346 sensitivity of buttons
11348 * gtk/gtkcellrendererpixbuf.c
11349 (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
11350 (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
11352 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
11353 handle any G_TYPE_OBJECT subclass, not just the base class, and
11355 (_gtk_tree_data_list_value_to_node): ditto
11357 * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if
11360 * gtk/gtkmain.c: add GTK_DEBUG_TREE
11362 * gtk/gtkdebug.h: add GTK_DEBUG_TREE
11364 2001-01-09 Tor Lillqvist <tml@iki.fi>
11366 * gdk/win32/gdkevents-win32.c: Implement better mouse
11367 capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
11368 (find_window_for_pointer_event): New function.
11369 (gdk_event_translate): Use it when handling mouse events.
11371 2001-01-09 Alexander Larsson <alla@lysator.liu.se>
11374 Added --with-included-loaders option
11376 * gdk-pixbuf/Makefile.am:
11377 * gdk-pixbuf/gdk-pixbuf-io.c:
11378 Add support for including selected gdk-pixbuf loaders only.
11380 * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
11381 gtk_window_set_has_frame):
11382 Added inline documentation.
11384 * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
11385 * docs/reference/gdk/tmpl/windows.sgml:
11386 Added inline documentation.
11388 Mon Jan 8 14:42:06 2001 Jonathan Blandford <jrb@redhat.com>
11390 * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
11391 realizing buttons that have already been realized.
11393 Mon Jan 8 14:06:29 2001 Jonathan Blandford <jrb@redhat.com>
11395 * tests/testtreeview.c (main): Show menu items before adding to
11398 * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
11399 around if we kill them.
11401 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
11402 Return if we pass in a NULL model.
11404 2001-01-08 Havoc Pennington <hp@redhat.com>
11406 * tests/testtreeview.c: hack on this some
11408 * gtk/gtktreestore.c (gtk_tree_store_setv): rename
11409 gtk_tree_store_set_valist, v is for arrays, valist for varargs
11411 (gtk_tree_store_getv): rename gtk_tree_store_get_valist
11413 * gtk/gtkliststore.h: Add varargs set() and get() convenience
11416 2001-01-08 Alexander Larsson <alexl@redhat.com>
11418 * gtk/gtkwindow-decorate.[hc]:
11420 New files. Contains an implementation of a minimal WM for
11424 Add the possibility for GtkWindows to specify a frame. This
11425 is used for the window decoration code, but could concievably
11426 be used for X programs too (xmms style windows).
11427 GtkWindow->frame is the toplevel window if the window is framed.
11428 The signal frame_event gets all events that are targeted to
11430 (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
11433 Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
11434 Call out to gtkwindow-decorate.c for WM support in linx-fb.
11436 2001-01-08 Alexander Larsson <alexl@redhat.com>
11438 * docs/README.linux-fb:
11439 Correct filename ~/.pangoft2_aliases
11442 Added new function gdk_window_get_decorations.
11444 * gdk/linux-fb/gdkfb.h:
11445 Removed _gdk_window_get_decorations declaration.
11446 Renamed _gdk_window_set_child_handler to
11447 gdk_fb_window_set_child_handler.
11449 * gdk/linux-fb/gdkwindow-fb.c:
11450 Renamed _gdk_window_set_child_handler to
11451 gdk_fb_window_set_child_handler.
11453 * gdk/x11/gdkwindow-x11.c:
11454 New function gdk_window_get_mwm_hints().
11455 Implemented gdk_window_get_decorations.
11457 * docs/reference/gdk/tmpl/windows.sgml:
11458 * docs/reference/gdk/gdk-sections.txt:
11459 Added gdk_window_get_decorations docs.
11461 2001-01-08 Alexander Larsson <alla@lysator.liu.se>
11463 * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
11464 gdk_fb_window_find_focus, gdk_fb_send_focus_change,
11465 gdk_fb_window_send_crossing_events):
11466 Possibly send focus events when the mouse moves from one
11469 2001-01-07 Tor Lillqvist <tml@iki.fi>
11471 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
11472 gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
11473 to match current API.
11475 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
11476 environment variable is set, don't call g_error when on a
11477 palettized (PseudoColor) display. Some people want to use GTK+
11478 in 256-colour mode even though works only partially.
11482 * gtk/makefile.mingw.in: Update.
11484 2001-01-05 Havoc Pennington <hp@redhat.com>
11486 * tests/testtreeview.c: hack on this a bit
11488 * gtk/gtktextlayout.c (gtk_text_layout_class_init):
11489 s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
11491 * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS):
11492 was spelled incorrectly
11493 (GTK_IS_TREE_MODEL_SIMPLE): ditto
11495 * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
11496 from gtk_tree_view_set_headers_active
11498 * gtk/gtktexttag.c:
11499 (gtk_text_tag_get_property): handle PROP_DIRECTION
11500 (gtk_text_tag_set_property): g_object_notify when we toggle the _set
11501 properties, bug 40235
11503 * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
11504 forward_to_line_end
11506 Fri Jan 5 16:16:29 2001 Owen Taylor <otaylor@redhat.com>
11508 * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
11509 modules/input/gtkimcontextxim.c: Adapt to new prototypes
11510 for unicode,locale,filename conversion functions.
11512 2001-01-05 Havoc Pennington <hp@redhat.com>
11514 * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
11515 broken if called on the first position in the buffer.
11517 * gtk/gtktextlayout.c (line_display_index_to_iter): fix
11518 forward_to_delimiters to be called only if we aren't already at
11521 2001-01-05 Havoc Pennington <hp@redhat.com>
11523 * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
11525 2001-01-05 Alexander Larsson <alexl@redhat.com>
11527 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
11528 colormap in here. Sync from X port.
11529 (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
11531 (gdk_fb_clip_region): Comment out g_warning about empty clip region.
11532 This happens now and then, and i don't think it is a bug.
11533 (gdk_fb_draw_polygon): Correctly add extra point if startpoint
11535 (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
11538 * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
11539 some of the fields filled in at least.
11541 * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
11542 miLineArcD is no more, remove it from the function definition.
11544 2001-01-04 Havoc Pennington <hp@redhat.com>
11546 * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
11549 * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
11550 user_data instead of tree_node
11552 * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
11553 TREE_VIEW_COLUMN_SIZE
11555 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
11556 "size" field to "width" finishes bug 40061
11558 * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
11559 for bitfields, bug 40268
11561 2001-01-04 Havoc Pennington <hp@redhat.com>
11565 s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
11567 s/GtkModelSimple/GtkTreeModelSimple/g;
11568 s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
11569 s/gtk_model_simple/gtk_tree_model_simple/g;
11570 s/gtkmodelsimple/gtktreemodelsimple/g;
11572 s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
11574 s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
11575 s/column_set_col_type/column_set_sizing/g;
11577 s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
11578 s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
11580 s/GtkCellRendererType/GtkCellRendererState/g;
11582 * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
11583 (gtk_cell_renderer_toggle_class_init): change "state" property to
11584 "active", to match GtkToggleButton
11585 (gtk_cell_renderer_toggle_get_active): new function, bug
11587 (gtk_cell_renderer_toggle_set_active): new function
11588 (gtk_cell_renderer_toggle_set_property): route changes to toggle
11589 state through gtk_cell_renderer_set_active
11591 Thu Jan 4 15:46:18 2001 Jonathan Blandford <jrb@redhat.com>
11593 * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
11594 temporarily until they work again. Brought up to date with
11595 changes in the model.
11596 * gtk/gtkmodelsimple.h: Brought up to date with changes in the
11599 2001-01-04 Havoc Pennington <hp@redhat.com>
11601 * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
11602 equal to the line length, then position iterator before paragraph
11603 separators. Fixes crash reported by Mikael Hermansson when
11604 pressing left arrow from the start of a line.
11606 * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
11607 about byte indexes off the end
11608 (iter_set_from_char_offset): add g_error about char offsets
11611 2001-01-03 Havoc Pennington <hp@redhat.com>
11613 * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
11615 * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use
11616 of private functions; remove inclusion of private headers.
11618 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this
11619 function, so we don't need private functions in gtktextdisplay.c
11621 * gtk/gtktextiterprivate.h: underscore-ification
11623 * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
11624 to instead say "only useful to implement widgets"
11626 * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
11627 GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
11628 GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
11630 * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
11631 This function was completely broken
11633 * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
11635 * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
11637 * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
11639 * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
11641 * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
11643 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
11645 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
11648 * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
11651 * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
11652 Progress on bug 40103. Add draw_layout to draw a PangoLayout.
11653 (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
11654 which were not implemented.
11656 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
11657 insert_pixbuf signal. Rename delete_text to delete_range since it
11658 also deletes pixbufs and child anchors. This almost closes bug
11659 40245 (still need to deal with child anchors)
11661 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
11662 insert_pixbuf, change signal names as appropriate, change types of
11663 signals taking marks/tags to have the specific type, not just
11666 * gtk/gtkmain.c (gtk_get_current_event_state): Add this function;
11669 * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
11670 unnecessary remove_contents() call
11671 (gtk_option_menu_class_init): add a "changed" signal, closes
11673 (gtk_option_menu_update_contents): emit "changed" if the
11674 active menu item changes
11676 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
11677 cast to GtkObject, reported by Jonas Borgstrom
11678 (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
11679 we can't do stuff with side effects in finalize. Instead, spew a
11680 warning if the loader isn't closed.
11682 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
11683 colormap in here, non-X ports probably need to sync to this change
11685 * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove
11686 assertion that colormap != NULL, you can set the colormap to NULL
11689 * Makefile.am: remove gtk-config-2.0
11691 * configure.in: Use pkg-config to locate GLib. Remove
11692 separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
11693 and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
11694 Use pkg-config to locate Pango. Output correct Pango libs to
11695 gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
11697 * Makefile.am (pkgconfig_DATA): install only target-specific pc
11699 (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
11702 * gtk+-2.0.pc.in (Requires): require the GDK for the current target
11705 2001-01-03 Alexander Larsson <alla@lysator.liu.se>
11708 Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
11710 Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
11712 * gtk/gtktextlayout.c
11713 (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
11714 variable when moving back onto a single line.
11716 2001-01-01 Havoc Pennington <hp@redhat.com>
11718 * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
11720 * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
11722 * configure.in (LIBTOOL_EXPORT_OPTIONS): define
11723 LIBTOOL_EXPORT_OPTIONS with options to control symbol export
11725 2001-01-01 Havoc Pennington <hp@redhat.com>
11727 * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
11729 * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for
11732 * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug
11734 (gtk_text_attributes_copy_values): rename from
11735 gtk_text_attributes_copy
11736 (gtk_text_attributes_copy): a more standard GTK copy function,
11737 which returns a new object
11739 2001-01-01 Havoc Pennington <hp@redhat.com>
11741 * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
11743 * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
11744 don't fill in tree_view->priv->selection, kind of an unexpected
11747 * gtk/gtkcellrenderertext.c: Remove definition of _ and include
11750 * gtk/gtkcellrenderer.c: Remove definition of _ and include
11752 (gtk_cell_renderer_get_property): remove calls to g_value_init
11754 * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
11757 * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
11758 and include gtkintl.h
11759 (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
11762 * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
11764 (_gtk_tree_selection_new_from_with_view): rename, return
11766 (_gtk_tree_selection_set_tree_view): rename with uscore
11767 (gtk_tree_selection_get_selected): fill in the "model" out param
11768 first, so it gets filled in even if we return at the top of the
11770 (gtk_tree_selection_real_select_all): add a comment and an else{}
11771 to clarify this a bit
11772 (gtk_tree_selection_real_unselect_all): add the same else{}
11774 * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
11775 set_tree_view to have underscore prefixes, move them to the
11776 private header, fix return type of new_with_tree_view
11777 (struct _GtkTreeSelection): mark struct
11780 * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
11781 GtkTreeModelFlags, not a guint
11782 (gtk_tree_path_prev): return gboolean not gint
11783 (gtk_tree_path_up): return gboolean not gint
11785 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
11786 return GtkTreeModelFlags, not a guint
11788 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
11789 that child model is non-null before unrefing it
11790 (g_value_int_compare_func): make this a qsort compare func, not
11791 a boolean predicate
11793 * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
11794 (add -umn to the end), and mark it unimplemented
11795 (gtk_tree_model_sort_resort): remove, this wasn't implemented, and
11796 I don't see what it's for - doesn't the model always sort itself?
11797 (gtk_tree_model_sort_set_compare): this had the wrong signature
11799 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
11800 Fix the docs to say that it destructively replaces existing
11801 attributes (previously said that it added attributes).
11802 (gtk_tree_view_column_set_visible): canonicalize bool before
11803 equality testing. Also, check for realization before
11804 hiding/showing the tree_column->window; if this window could exist
11805 before realization, then it's busted and needs fixing, we can't
11806 create GDK resources pre-realization. Also, remove
11807 superfluous queue_resize(), since set_size() does that for us.
11808 (gtk_tree_view_column_set_col_type): check realization before
11809 using tree_column->window
11811 * gtk/gtktreedatalist.c: fix filename in copyright notice
11813 2000-12-31 Havoc Pennington <hp@pobox.com>
11815 * gtk/gtktextview.c: Rearrange all the
11816 scroll-while-dragging-or-selecting code to be different, not
11817 necessarily better. ;-)
11818 (gtk_text_view_scroll_to_mark): Change this
11819 function to take within_margin as a fraction instead of a pixel
11820 value, and to take alignment arguments (indicating where to align
11821 the mark inside the visible area)
11823 * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
11826 * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
11827 behavior so that offsets past the end of the line are not
11828 allowed, and an offset equal to the line length moves the iterator
11830 (gtk_text_iter_set_line_index): make parallel change
11831 (gtk_text_iter_get_bytes_in_line): add this function
11833 * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
11834 of byte indexes off the end of the line; byte index at the end of
11835 the line now returns FALSE and doesn't fill in the requested
11836 values, byte index past the end of the line is an error. Also,
11837 don't allow -1 offset anymore, since its meaning is unclear.
11839 This change exposes some bug in visual cursor motion, where we
11840 end up with a huge invalid byte index; needs fixing. Symptom of
11841 bug is a crash when you hit up arrow.
11843 (_gtk_text_line_char_locate): match the change to byte_locate
11845 * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
11846 from start of line properly. fixes bug reported by Mikael
11847 Hermansson where backspace would delete all text before the
11850 2000-12-30 Tor Lillqvist <tml@iki.fi>
11852 * gdk/win32/gdkwindow-win32.c
11853 (gdk_window_impl_win32_get_visible_region): New function, as in
11855 (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
11856 instead of duplicating the same code here.
11858 * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
11859 GDK_COLORMAP macro.
11861 * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
11863 (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
11866 * gtk/gtk.def: Update.
11868 * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
11870 2000-12-30 Havoc Pennington <hp@pobox.com>
11872 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
11873 colormap on input only windows, to avoid special cases all over
11874 the code for these windows.
11876 2000-12-26 Tor Lillqvist <tml@iki.fi>
11878 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
11879 we are on a palettized display ("PseudoColor" in X11), as the code
11880 for that doesn't work anyway, and never has.
11882 2000-12-22 Alexander Larsson <alexl@redhat.com>
11884 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
11885 Don't use isprint() for chars > 255.
11887 2000-12-21 Havoc Pennington <hp@redhat.com>
11889 * tests/testtreeview.c: more work
11891 2000-12-21 Alexander Larsson <alexl@redhat.com>
11893 * docs/README.linux-fb:
11894 Update the docs to the new pangoft2 way.
11896 2000-12-21 Alexander Larsson <alexl@redhat.com>
11899 For linux-fb get the pangoft2 cflags and libs. This needs a recent
11901 Remove modules/linux-fb/Makefile.
11903 * gdk/linux-fb/gdkdrawable-fb2.c:
11904 Render glyphs using freetype.
11906 * gdk/linux-fb/gdkfb.h:
11907 Add new fb-specific functions needed for managing windows.
11909 * gdk/linux-fb/gdkmain-fb.c:
11910 Remove gdk_font_init/fini() calls.
11912 * gdk/linux-fb/gdkpango-fb.c:
11913 Remove old implementation. Use pangoft2 instead.
11915 * gdk/linux-fb/gdkprivate-fb.h:
11916 Remove PangoFBFont and related stuff.
11918 * gdk/linux-fb/gdkwindow-fb.c:
11919 Implement drawable->get_visible_region.
11920 Implement support for _gdk_window_set_child_handler () and
11921 _gdk_window_get_decorations().
11923 * modules/Makefile.am:
11924 Remove linux-fb subdir.
11926 * modules/linux-fb/*:
11929 2000-12-20 Jonathan Blandford <jrb@redhat.com>
11931 * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
11932 calls, as they are no longer needed.
11934 * gtk/gtktreemodelsort.c: Fix up the comparison code.
11936 * gtk/gtktreemodel.h: Start work on ::reordered signal. Need to
11937 figure out how to emit a signal on an interface.
11939 2000-12-20 Havoc Pennington <hp@redhat.com>
11941 * tests: new directory to contain tests, gtk/test* should move
11942 here sometime (with appropriate on-cvs-server hackery)
11944 * tests/testtreeview.c, tests/Makefile.am: a test
11946 * configure.in (AC_OUTPUT): add tests/Makefile
11948 * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
11949 and "invisible_set" which were missing
11951 * gtk/gtkrbtree.h: some cheesy indentation fix
11953 2000-12-20 Alexander Larsson <alexl@redhat.com>
11955 * gtk/gtkinvisible.c (gtk_invisible_realize):
11956 Attach the style to the window so that the style it is not
11957 leaked when unrealizing the window.
11959 2000-12-18 Havoc Pennington <hp@redhat.com>
11961 * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
11962 begin/end user action where appropriate
11963 (gtk_text_view_commit_handler): add begin/end user action
11965 * gtk/gtktextbuffer.c: add begin/end user action signals, and
11966 bracket interactive operations with begin/end user action pair.
11968 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
11969 "interactive" arg from insert_text and delete_text signals.
11970 Add begin_user_action, end_user_action signals
11971 (gtk_text_buffer_begin_user_action):
11972 (gtk_text_buffer_end_user_action): New functions to delimit
11973 a user-visible action
11975 * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
11978 2000-12-18 Havoc Pennington <hp@redhat.com>
11980 * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
11981 was pretty non-working.
11983 * gtk/testtext.c (fill_file_buffer): make this a bit more robust
11984 by passing the length to g_utf8_validate().
11986 2000-12-16 Havoc Pennington <hp@pobox.com>
11988 * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c:
11989 Port to GObject, can go back in gdk-pixbuf after setting up
11990 a gdk-pixbuf-marshal.h header over there.
11992 * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
11993 (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
11995 (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
11997 (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
11998 here, do it when we create the buttons later
11999 (gtk_tree_view_realize_buttons): add some g_return_if_fail
12000 (gtk_tree_view_map): paranoia checks that column->button is shown
12002 (gtk_tree_view_size_request): only request visible children.
12003 Move header size calculation in here, for cleanliness, and
12004 to maintain invariants for child widgets if we eventually
12005 let users set different children inside the buttons
12006 (gtk_tree_view_map_buttons): factor out code to map buttons,
12007 since it was being called several times
12008 (gtk_tree_view_size_allocate_buttons): move_resize the drag
12009 windows instead of just moving them; their height may change
12010 if we allow random widgets in there, or the theme changes.
12011 (gtk_tree_view_size_allocate): move button size allocation
12012 above emitting the scroll signals, to ensure a sane state when we
12014 (gtk_tree_view_button_release): remove queue_resize after
12015 tree_view_set_size(), set_size() will handle any resize queuing
12017 (gtk_tree_view_focus_in): just queue a draw, don't fool with
12019 (gtk_tree_view_focus): use gtk_get_current_event() and
12020 gdk_event_get_state()
12021 (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
12022 (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
12024 (gtk_tree_view_create_button): show the button here
12025 (gtk_tree_view_button_clicked): actually emit the clicked signal
12027 (_gtk_tree_view_set_size): return right away if the size is
12028 unchanged, as a cheesy optimization
12029 (gtk_tree_view_setup_model): rename set_model_realized to
12030 setup_model to match the flag that indicates whether we've
12032 (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
12033 exist, because set_scroll_adjustment does that and it shouldn't
12034 matter what order you call these in
12035 (gtk_tree_view_get_vadjustment): ditto
12036 (gtk_tree_view_set_headers_visible): canonicalize the bool,
12038 (gtk_tree_view_set_headers_visible): call
12039 gtk_tree_view_map_buttons() instead of using cut-and-paste code
12040 (gtk_tree_view_append_column): clarify whether the return value
12041 is the count of columns before or after, and do the increment
12042 separately from the return statement so you can tell from the code.
12043 (gtk_tree_view_remove_column): ditto
12044 (gtk_tree_view_insert_column): ditto
12045 (gtk_tree_view_get_column): remove g_return_if_fail for columns
12046 outside the existing range, the docs say that outside-range
12047 columns are allowed, so we handle them as documented. (Presumably
12048 this allows a nice loop with column != NULL as test.)
12049 (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments
12050 mean (left/right/center etc.).
12051 (gtk_tree_view_collapse_all): only queue a draw if we're mapped
12052 (gtk_tree_view_expand_row): add docs
12053 (gtk_tree_view_collapse_row): add docs
12055 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
12056 function to emit the clicked signal on a column
12058 * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
12060 (gdk_event_get_time): don't treat GDK_SCROLL
12061 as a button event, remove default case from switch so gcc
12062 will whine if we don't explicitly handle all event types
12064 * gtk/gtktreeselection.h: added some FIXME
12066 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
12067 "columns" to "n_columns" and "column" to "columns" for clarity
12069 2000-12-16 Havoc Pennington <hp@pobox.com>
12071 * gtk/gtktextiter.c: General cleanup of the log attr iteration
12072 stuff. This should make e.g. the delete key work again in the
12074 (gtk_text_iter_forward_cursor_positions): handle negative count
12075 (gtk_text_iter_backward_cursor_positions): handle negative count
12076 (gtk_text_iter_forward_word_ends): handle negative count
12077 (gtk_text_iter_backward_word_starts): handle negative count
12079 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
12080 gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
12081 gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
12082 GObject. No doubt will cause breakage.
12084 * demos/gtk-demo/textview.c: remove hacks around
12085 non-GObject-ification of the text objects
12087 * demos/gtk-demo/main.c (main): use g_object_set() to manipulate
12090 2000-12-14 Havoc Pennington <hp@pobox.com>
12092 * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
12093 that we have Xrender
12095 Thu Dec 14 20:22:31 2000 Owen Taylor <otaylor@redhat.com>
12097 * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
12098 Add two virtualized functions gdk_drawable_get_clip_region - to
12099 get the clip region when drawing.
12101 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
12102 use invalidate_region.
12104 * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
12107 * acconfig.h configure.in: Check for Xft. For now, assume
12108 that if Xft is found, Pango was compiled with Xft support
12111 * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add
12112 gdk_colormap_query_color().
12114 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
12115 with Xft if appropriate.
12117 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
12118 a pangoxft context if we have XFT and the environment
12119 variable GD_USE_XFT is set.
12121 * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
12122 and also possibly an XftDraw structure.
12124 * gtk/gtkfontsel.c: Handle the case where the font from the
12125 style doesn't match any of the fonts a bit better.
12127 * gtk/testgtk.c: Add tabs between directional segments for
12128 hebrew/arabic test. (Not really necessary, just a little
12131 2000-12-14 Havoc Pennington <hp@redhat.com>
12133 * gtk/testtext.c (fill_file_buffer): fix unicode validation when
12136 2000-12-14 Havoc Pennington <hp@redhat.com>
12138 * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
12139 unused call to get_last_line()
12141 * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
12142 here until boxed is working (and maybe after that - we should
12143 really not gratuitously break old code)
12145 * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
12146 specific types for font_desc and tabs args, move them to
12147 GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
12148 fixed. Move GdkColor args to GTK_TYPE_POINTER also.
12150 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
12151 use GTK_TYPE_POINTER for signal signatures as a hack-around
12153 * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
12156 * gtk/gtktextlayout.c (line_display_iter_to_index):
12158 (line_display_index_to_iter): make static
12160 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
12161 to marshal a string not a boxed
12163 * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
12165 * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
12166 since the UTF-8 isn't validated yet
12168 * gtk/gtktextsegment.c (char_segment_check_func): don't require
12169 lines to end in '\n'
12171 * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
12172 forward_to_delimiters, and grapheme boundaries
12173 (gtk_text_view_delete_from_cursor): properly handle non-newline
12174 delimiters, and grapheme boundaries
12176 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
12177 to gtk_text_iter_forward_to_delimiters, and make it work properly
12178 if empty lines end with a character other than '\n'
12180 * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
12183 2000-12-15 Tor Lillqvist <tml@iki.fi>
12185 * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
12188 * gdk/gdk.def: Update.
12190 * gdk/win32/gdkmain-win32.c
12191 * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
12192 gdkmain-win32.c here.
12194 * gdk/win32/makefile.mingw.in (all): No need to make
12195 gdk-win32res.o here, the makefile one step up will call us to make
12198 * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
12201 * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
12203 * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
12204 call to g_source_add().
12206 * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
12207 leak. Thanks to Andreas Kemnade.
12209 2000-12-13 Havoc Pennington <hp@pobox.com>
12211 * gtk/gtktextbtree.h: Remove double _ in front of some functions
12213 * gtk/gtktext*.[hc]: update accordingly
12215 2000-12-13 Havoc Pennington <hp@pobox.com>
12217 * gtk/gtktextbtree.h: Put _ in front of every function in this
12220 * gtk/gtktext*.[hc]: update to reflect renamed btree functions
12222 2000-12-13 Alex Larsson <alexl@redhat.com>
12224 * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
12225 Add support for ps2 intellimouse.
12227 * gdkkeyboard-fb.c:
12228 Move shift-F1 repaint handling to xlate handler only.
12230 * docs/README.linux-fb:
12232 Document the new refresh keys.
12234 Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
12236 * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
12238 * gtk/gtkbox.c: change property types from (u)long to (u)int for
12239 ::position and ::padding.
12241 * gtk/gtkcontainer.c: make ::border_width an INT property.
12243 * gtk/gtkpacker.c: make ::position an INT property.
12245 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
12246 guard against NULL h/v scrollbars, since this is used at construction
12249 * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
12250 internal gtk_clist_constructor().
12252 * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
12253 gtk_ctree_constructor().
12255 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
12256 ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
12258 * docs/reference/Makefile.am: fun stuff, disabled docs generation
12259 again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
12261 * gtk/gtkwidget.[hc]:
12262 removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
12263 and gtk_widget_get().
12264 (gtk_widget_new): use g_object_new_valist().
12265 (gtk_widget_set): use g_object_set_valist().
12267 * gtk/gtkobject.[hc]:
12268 removed gtk_object_arg_get_info(), gtk_object_getv(),
12269 gtk_object_query_args(), gtk_object_newv(),
12270 gtk_object_class_add_signals(),
12271 gtk_object_class_user_signal_new(),
12272 gtk_object_class_user_signal_newv(),
12273 gtk_object_arg_set(), gtk_object_arg_get(),
12274 gtk_object_args_collect(),
12275 gtk_object_default_construct(),
12276 gtk_object_constructed(),
12277 GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
12278 removed nsignals, signals and n_args members from GtkObjectClass.
12279 (gtk_object_new): use g_object_new_valist().
12280 (gtk_object_set): use g_object_set_valist().
12281 (gtk_object_get): use g_object_get_valist().
12283 * gtk/gtkcompat.h: define gtk_object_default_construct().
12285 * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
12288 * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
12289 fucntions, cleaned up method assignments (make sure your structures
12290 are setup properly before calling out). removed all GTK_CONSTRUCTED
12293 Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
12295 * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
12296 off-by-one error in checks. (Dave Lambert)
12298 2000-12-12 Alexander Larsson <alexl@redhat.com>
12300 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
12301 Don't free gdk_fb_keyboard twice.
12303 Tue Dec 12 08:24:42 2000 Tim Janik <timj@gtk.org>
12307 (create_statusbar): get rid of object_signal:: GtkObject argument uses,
12308 use GObject swapped_signal:: properties instead.
12310 * gtk/gtkcellrenderertoggle.c:
12311 * gtk/gtkcellrenderertextpixbuf.c:
12312 * gtk/gtkcellrenderertext.c:
12313 * gtk/gtkcellrendererpixbuf.c:
12314 * gtk/gtkcellrenderer.c:
12315 * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
12316 missing warnings for invalid property ids, install properties
12317 with g_object_class_install_property() now.
12320 (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
12322 Wed Oct 25 14:17:43 2000 Owen Taylor <otaylor@redhat.com>
12324 * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
12325 to determine if a window is the focus widget within
12328 * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
12331 * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling
12332 of the case where the container CAN_FOCUS to here instead
12333 of having it in each individual move-the-focus place.
12335 * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
12336 focusing to be geometric in a much more obvious sense. Arrowing
12337 around is still non-intuitive because it isn't perfect and
12338 because entries, etc, grab the arrow keys, but it at least
12339 usually will do what you expect now.
12341 * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
12344 * gtk/gtknotebook.c: Change tabs to be a single item in
12345 the focus chain. Make movement of focus on tabs with arrow
12348 * gtk/gtknotebook.c (gtk_notebook_find_child): Add
12349 CHECK_FIND_CHILD macro to give informative error messages
12350 instead of silent returns.
12352 * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT
12353 flag since we handle GdkReturn on the tabs.
12355 * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
12356 windows rather than sending expose events directly.
12358 * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure
12359 definition for GtkNotebookPage into .c file, since it is private.
12361 * gtk/testgtk.c (create_notebook): Add option for
12362 testing borderless notebook.
12364 * gtk/testgtk.c (page_switch): Removed egregious poking
12365 around in GTK+ internals.
12367 * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
12369 * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
12370 properly through gtk_clist_focus. Make the title headers a
12371 single item in the tab-focus chain, and make left-right wrap
12374 * gtk/gtkwindow.c (gtk_window_focus): Add a custom
12375 focus method so that wrapping around works properly.
12377 * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() -
12378 that is handled for the widget now.
12380 Mon Dec 11 11:41:12 2000 Owen Taylor <otaylor@redhat.com>
12382 * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
12383 widgets as TOPLEVEL.
12385 * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
12386 TOPLEVEL widgets are containers.
12388 * gtk/gtkinvisible.h: Remove useless include.
12390 2000-12-11 Havoc Pennington <hp@redhat.com>
12392 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12393 Handle chopping off \r\n and 0x2029 in addition to \n before
12394 passing to PangoLayout
12396 * gtk/gtkimcontextsimple.c
12397 (gtk_im_context_simple_get_preedit_string):
12398 return an empty string if no match is pending
12400 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
12401 assertion that the returned preedit string was sane
12403 * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
12404 s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
12405 s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
12407 Mon Dec 11 10:02:26 2000 Owen Taylor <otaylor@redhat.com>
12409 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize):
12410 Fix up finalizer to chain to its parent.
12412 2000-12-11 Alexander Larsson <alexl@redhat.com>
12414 * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
12415 Clearified the difference between the keyboard types. Wrote a note
12416 about the magic sysrq key to get out of raw mode.
12418 2000-12-09 James Henstridge <james@daa.com.au>
12420 * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
12421 member to hold masks for detecting the start of a protocol packet.
12422 (mouse_devs): add packet start masks for ps2 and ms device types.
12423 Left the mask for fidmour blank, as I have no idea what it should
12425 (handle_mouse_io): skip bytes until we get to the start of a
12426 packet. My Logitech mouse seems to be passing an extra NULL pad
12427 byte, and GPM does a similar thing here.
12428 (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
12429 this is the ms mouse driver.
12430 (gdk_fb_mouse_ms_packet): fix up button handling, which was
12431 completely broken except for button1. It was checking the wrong
12432 bit in the packet for the status of the right mouse button, and
12433 wrongly assuming right == button2 rather than 3. I fixed that and
12434 also added support for middle button (button2).
12436 2000-12-08 Havoc Pennington <hp@redhat.com>
12438 * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
12439 that cause a segfault on text insertion
12441 * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix
12444 * gtk/gtktextiter.c (test_log_attrs): use
12445 _gtk_text_buffer_get_line_log_attrs to speed things up a bit
12447 * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs):
12448 Get log attrs for a line, using a cache stored on the buffer
12450 * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
12451 reported by Jeff Franks
12453 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
12455 * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
12456 /dev/ttyS0 -> /dev/mouse
12458 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
12460 * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
12461 Added dummy gdk_fontset_load.
12463 2000-12-08 Alexander Larsson <alexl@redhat.com>
12465 * docs/README.linux-fb:
12466 * docs/Makefile.am:
12467 Initial GtkFB docs.
12469 * gdk/linux-fb/Makefile.am:
12470 Define GDK_DATA_PREFIX.
12472 * gdk/linux-fb/gdkmain-fb.c:
12474 Change default display to /dev/fb0.
12476 * gdk/linux-fb/gdkpango-fb.c:
12477 Add $(prefix)/share/fonts/ to font path.
12479 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
12481 * gdk/linux-fb/gdkkeyboard-fb.c:
12482 New file containing the abstracted keyboard driver. Most code
12483 taken from gdkinput-ps2.c
12485 * gdk/linux-fb/gdkinput-ps2.c:
12488 * gdk/linux-fb/Makefile.am:
12489 Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
12491 * gdk/linux-fb/gdkcolor-fb.c:
12492 display->fb was renamed to display->fb_fd.
12494 * gdk/linux-fb/gdkcursor-fb.c:
12495 gdk_mouse_get_info -> gdk_fb_mouse_get_info
12497 * gdk/linux-fb/gdkinput.c:
12498 Moved gdk_input_init here from gdkinput-ps2.c
12500 * gdk/linux-fb/gdkmain-fb.c:
12501 display->fb was renamed to display->fb_fd.
12502 Now the tty and the console is opened here instead
12503 of in the keyboard driver. Also check GDK_VT to see what
12505 Move gdk_beep () here from gdkinput-ps2.c
12506 gdk_mouse_get_info -> gdk_fb_mouse_get_info
12508 * gdk/linux-fb/gdkmouse-fb.c:
12510 gdk_mouse_get_info -> gdk_fb_mouse_get_info
12511 Return correct keyboard modifiers.
12512 GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
12514 * gdk/linux-fb/gdkprivate-fb.h:
12515 Add tty and vt info to display.
12516 Add orignal modeinfo storage to display
12517 Update global functions
12519 * gdk/linux-fb/gdkwindow-fb.c:
12520 Added gdk_fb_window_find_focus().
12521 gdk_mouse_get_info -> gdk_fb_mouse_get_info
12523 2000-12-07 Havoc Pennington <hp@pobox.com>
12525 * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of
12526 function, noticed by Alex
12528 2000-12-06 Elliot Lee <sopwith@redhat.com>
12530 * configure.in: Detect freetype properly
12532 * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
12535 2000-12-06 Alexander Larsson <alexl@redhat.com>
12537 * gdk/linux-fb/Makefile.am:
12540 * gdk/linux-fb/gdkmouse-fb.c:
12541 New file. Abstracted the mouse drivers a bit.
12543 * gdk/linux-fb/gdkcursor-fb.c:
12544 The cursor hide/show functions was moved here from gdkinput-ps2.c.
12546 * gdk/linux-fb/gdkinput-ps2.c:
12547 Removed old mouse handling code. Moved cursor handling code
12548 to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
12549 gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
12550 gdk_mouse_get_info.
12552 * gdk/linux-fb/gdkmain-fb.c:
12553 Pass NULL pointers for x,y in gdk_mouse_get_info call.
12555 * gdk/linux-fb/gdkprivate-fb.h:
12556 Removed public gdk_fb_find_common_ancestor, added and renamed
12557 functions for the new mouse handling code.
12559 * gdk/linux-fb/gdkwindow-fb.c:
12560 Moved gdk_fb_window_send_crossing_events here. added global
12561 variable gdk_fb_window_containing_pointer. made
12562 gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
12563 renamed to gdk_mouse_get_info.
12565 2000-12-06 Alexander Larsson <alexl@redhat.com>
12567 * gdk/linux-fb/gdkevents-fb.c:
12568 Update to match latest gmain/gsource changes.
12570 * gdk/linux-fb/gdkinput-ps2.c:
12571 Bogus gdk_keymap_get_entries_for_keycode implementation so that
12572 it links. Will be implemented later.
12574 2000-12-03 Havoc Pennington <hp@pobox.com>
12576 * gdk/Makefile.am: add gdkkeys.[hc]
12578 * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
12579 files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
12581 * acconfig.h, configure.in: add checks and command line options
12584 * gdk/x11/gdkkeys-x11.c: Implement the above functions
12586 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
12587 and group in the key event
12589 * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
12590 field with the low-level hardware key code, and a group
12591 field with the keyboard group
12593 * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
12594 and declare a couple globals used for keymap handling
12596 * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
12597 hold down Shift-Control and type a hex number to get a Unicode
12598 character corresponding to the hex number
12599 (gtk_im_context_simple_get_preedit_string): Fix cursor position
12600 (return bytes not chars)
12602 2000-12-05 Elliot Lee <sopwith@redhat.com>
12604 * gdk/gdkcolor.h: Make GdkColor specify element sizes
12605 to avoid waste on 64-bit platforms.
12607 Tue Dec 5 15:49:31 2000 Owen Taylor <otaylor@redhat.com>
12609 * INSTALL: Fix link to PNG home, remove reference
12612 * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
12614 * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
12617 * gtk/gtkcheckmenuitem.c: Permanently turn on
12618 always_show_toggle.
12620 * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to
12621 be NULL. (Vladimir Klebanov, #26545)
12623 * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
12624 some signed/unsigned comparison problems. (#6510,
12627 * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
12628 return type to boolean (Oskar Liljeblad, #18648)
12630 2000-12-05 Alexander Larsson <alexl@redhat.com>
12632 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
12633 Remove bogus colormap setting.
12635 2000-12-05 Alexander Larsson <alexl@redhat.com>
12637 * gdk/linux-fb/gdkcolor-fb.c:
12638 More complete colormap handling. Now GdkRGB work in 8 bpp modes.
12640 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
12643 Tue Dec 5 13:17:53 GMT 2000 Tony Gale <gale@gtk.org>
12645 * docs/tutorial/gtk-tut.sgml: DND updates
12647 2000-12-05 Alexander Larsson <alla@lysator.liu.se>
12649 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
12650 Remove old debug g_warning().
12651 (gdk_fb_draw_drawable): The src argument can be either a wrapper
12652 or an implementation, just pass the implementation to draw_drawable_2.
12654 * gdk/linux-fb/gdkprivate-fb.h:
12655 Added GDK_IS_DRAWABLE_IMPL_FBDATA()
12657 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
12658 clear and invalidate area when window is destroyed.
12659 (send_map_events): Remove old commented out code.
12661 2000-12-05 Alexander Larsson <alexl@redhat.com>
12663 * gdk/linux-fb/gdkpango-fb.c:
12664 Use italic instead of oblique in font aliases.
12666 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
12667 _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
12668 other unsupported functions.
12670 2000-12-04 Havoc Pennington <hp@redhat.com>
12672 * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
12674 * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
12676 * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
12678 * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary
12679 hack to avoid infinite loops (synthetic expose event) -
12680 Owen has more appropriate fixes in a branch he'll check in later.
12682 * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
12683 separator, CR, and CRLF as line ends
12685 * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
12686 into lines using pango_find_paragraph_boundary(); other bits of
12687 the widget are still going to be broken if the boundary isn't '\n'
12690 2000-12-04 Alexander Larsson <alexl@redhat.com>
12692 * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
12695 * gdk/linux-fb/gdkpango-fb.c:
12696 Copied some 26.6 scaling macros from pango to clean up the rounding.
12697 (pango_fb_font_get_glyph_info): Correct sign on x value.
12699 * gdk/linux-fb/gdkprivate-fb.h:
12700 Removed unreferenced external functions.
12702 * modules/linux-fb/Makefile.am: Use ` instead of '.
12704 * modules/linux-fb/basic.c:
12705 Remove dead code. In particular the dummy lang engine which broke all
12706 pango layouts in GtkFB. Don't include tables-big.i anymore.
12708 * modules/linux-fb/tables-big.i:
12709 Upgrade to latest version from pango. Left for reference, basic_ranges
12712 2000-12-04 Havoc Pennington <hp@redhat.com>
12714 Fix bugs Alex found:
12716 * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
12719 * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
12721 * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
12723 * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw()
12724 implementation in here, apparently the expose() implementation was
12727 2000-12-04 Alexander Larsson <alexl@redhat.com>
12729 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
12730 Return positive descent.
12732 2000-12-02 Havoc Pennington <hp@pobox.com>
12734 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
12737 * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
12738 calls gdk_window_process_updates() to push the exposes through
12739 (gtk_widget_class_init): No more draw signal, no
12740 gtk_widget_real_draw()
12742 * gtk/gtkbin.c (gtk_bin_draw): remove
12744 * gtk/gtkbox.c (gtk_box_draw): remove
12746 * gtk/gtkbutton.c (gtk_button_draw): remove
12748 * gtk/gtkcalendar.c (gtk_calendar_draw): remove
12750 * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
12752 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
12754 * gtk/gtkclist.c (gtk_clist_draw): remove
12756 * gtk/gtkentry.c (gtk_entry_draw): remove
12758 * gtk/gtkeventbox.c (gtk_event_box_draw): remove
12760 * gtk/gtkfixed.c (gtk_fixed_draw): remove
12762 * gtk/gtkframe.c (gtk_frame_draw): remove
12764 * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
12766 * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
12768 * gtk/gtklayout.c (gtk_layout_draw): remove
12770 * gtk/gtklist.c (gtk_list_draw): remove
12772 * gtk/gtklistitem.c (gtk_list_item_draw): remove
12774 * gtk/gtkmenu.c (gtk_menu_draw): remove
12776 * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
12778 * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
12780 * gtk/gtknotebook.c (gtk_notebook_draw): remove
12782 * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
12784 * gtk/gtkpacker.c (gtk_packer_draw): remove
12786 * gtk/gtkrange.c (gtk_range_draw): remove
12788 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
12790 * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
12792 * gtk/gtktable.c (gtk_table_draw): remove
12794 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
12796 * gtk/gtktext.c (gtk_text_draw): remove
12798 * gtk/gtktextview.c (gtk_text_view_draw): remove
12800 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
12802 * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
12804 * gtk/gtktree.c (gtk_tree_draw): remove
12806 * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
12808 * gtk/gtktreeview.c (gtk_tree_view_draw): remove
12810 * gtk/gtkviewport.c (gtk_viewport_draw): remove
12812 * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
12814 * gtk/gtkvscale.c (gtk_vscale_draw): remove
12816 * gtk/gtkwindow.c (gtk_window_draw): remove
12818 2000-20-01 Anders Carlsson <andersca@gnu.org>
12820 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
12821 a GtkToggleButton is both insensitive and active, it was being
12822 drawn by the GtkButton draw handler which doesn't check the
12823 state. Now it's calling gtk_toggle_button_paint instead.
12825 2000-12-01 Havoc Pennington <hp@redhat.com>
12827 * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
12828 dangling pointers to the appearance attributes from the
12831 * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
12832 width/height to mean "full width/height of drawable"
12834 * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
12835 click to select word/line
12837 * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
12838 when getting log attrs. Get a slice, so that pixmaps and stuff
12839 are properly handled.
12841 * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
12842 paste into the selection (replaces selection now, previously
12843 crashed or added to selection). Reveals longstanding btree bug -
12844 select multiple lines, middle-click on the selection, boom. This
12845 isn't related to my changes though.
12847 * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
12848 PangoLogAttrs changes
12849 (gtk_entry_move_backward_word): ditto
12851 * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
12852 functions return bool whether the iter moved onto a
12853 dereferenceable position.
12855 * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
12856 functions for motion in terms of display lines.
12858 * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
12859 get the buffer a mark is inside
12861 2000-12-01 Alexander Larsson <alexl@redhat.com>
12863 * gdk/linux-fb/Makefile.am:
12864 * modules/linux-fb/Makefile.am:
12865 Freetype 2 final uses freetype-config
12867 * gdk/linux-fb/gdkpango-fb.c:
12868 Upgrade to use Freetype 2 final.
12869 More flexible support for font aliases, this also fixes a bug with
12870 GtkFontSelector, as the aliases must be visible in the font/family list,
12871 or GtkFontSelector reads uninitialized memory.
12873 2000-11-30 Hidetoshi Tajima <tajima@eng.sun.com>
12875 * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
12876 XGetIMValues to properly terminate variable argument list, and do
12877 NULL return check for ic_values and xim_styles.
12879 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
12880 Restore preedit state after XmbResetIC().
12882 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
12883 XvaCreateNestedList() should take XvaNestedList, but not
12886 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
12887 preedit_draw_callback, preedit_caret_callback): Match
12888 "preedit-changed" signal name to "preedit_changed" to be
12889 consistent to the spec.
12891 * gtk/gtkimcontextsimple.c (check_table):
12892 Match "preedit-changed" to "preedit_changed" to be consistent
12895 Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
12897 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
12898 gc->clip_region == NULL>
12900 2000-11-30 Tor Lillqvist <tml@iki.fi>
12902 Changes by Hans Breuer:
12904 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
12905 Dont't use negative width and height as max_hints. This fixes
12906 Owen's recent testgtk changes for win32.
12908 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
12909 gdk_win32_hdc_release): These are exported and may be called with
12910 other drawable types than our GdkDrawableImplWin32 (?).
12912 * gdk/gdkwindow.c: Backing store appears to work on Windows now,
12913 so always #define USE_BACKING_STORE.
12915 * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
12916 of printf for debugging output.
12918 * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
12920 * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
12922 * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
12925 * gtk/gtktexttypes.h: Ditto.
12927 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
12928 (GDK_VoidSymbol) also if in case of arg check failure.
12930 * gtk/gtkimcontextsimple.c
12931 (gtk_im_context_simple_get_preedit_string): Don't assign cursor
12932 position to the pointer, but to the variable it points to.
12934 * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
12936 * gtk/gtk.def: Updates.
12938 2000-11-29 Elliot Lee <sopwith@redhat.com>
12940 * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
12941 GTK_TYPE_TREE_MODEL.
12943 2000-11-29 Alexander Larsson <alexl@redhat.com>
12945 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
12946 Set the size of the font from the description.
12947 (gdk_text_width): Gross hack that calculates the width
12948 of text by text_length * size/2. This is necessary because
12949 GtkLabel does some ugly gtk_string_width call to calculate
12951 (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
12953 Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
12955 * docs/tutorial/gtk-tut.sgml: DND updates
12957 2000-11-29 Alexander Larsson <alexl@redhat.com>
12959 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
12960 If you pass width or height == 0 to gdk_window_clear_area they
12961 should be calculated from the window size.
12963 2000-11-29 Alexander Larsson <alexl@redhat.com>
12965 * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
12966 a grab, but no grab-cursor, use the cursor from the grabbed
12967 window. (gdk_fb_window_send_crossing_events): Send normal
12968 enter/leave notifications if grab and owner_events == TRUE.
12970 2000-11-29 Alexander Larsson <alexl@redhat.com>
12972 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
12973 Do implicit button grabs, even if the window doesn't
12975 (gdk_fb_window_send_crossing_events): If there is a
12976 grab, only the grabbed window gets normal enter/leave
12977 notifications. On ungrab go from grabbed window to current.
12978 Don't send any notification to b when propagating from c -> b.
12979 If setting a grab on window, don't set prev_window.
12980 (handle_mouse_input): Send enter/leave events to the window the
12981 mouse is over, not the grabbed one.
12983 2000-11-28 Elliot Lee <sopwith@redhat.com>
12985 * gdk/gdkregion-generic.c: Zap warning.
12986 * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
12987 * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
12989 2000-11-28 Alexander Larsson <alla@lysator.liu.se>
12991 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
12992 The cursor should be hidden if it is part of either the
12993 source or destination region. Not only if it is in both.
12994 (gdk_window_set_transient_for): Silence warnings.
12996 2000-11-28 Alexander Larsson <alexl@redhat.com>
12998 * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
12999 The default mode in X is Pie Arcs, therefore that is
13002 2000-11-28 Alexander Larsson <alexl@redhat.com>
13004 * gdk/linux-fb/gdkinput-ps2.c:
13005 Implement correct EnterNotify/LeaveNotify:
13006 (gdk_fb_window_send_crossing_events): New function that sends
13007 all GdkCrossingEvents from the last mouse-window to the specified
13009 (gdk_fb_window_visibility_crossing): Removed function.
13010 (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
13011 (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
13012 instead of gdk_window_get_pointer() for better readability.
13014 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
13015 gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
13017 * gdk/linux-fb/gdkprivate-fb.h:
13018 removed gdk_fb_window_visibility_crossing, added
13019 gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
13021 gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
13022 New function that finds the least common ancestor of two windows.
13023 (gdk_window_show, gdk_window_hide):
13024 Use gdk_fb_window_send_crossing_events.
13025 (gdk_fb_window_move_resize): Send configure events to toplevel
13026 windows. Use gdk_fb_window_send_crossing_events.
13028 2000-11-27 Havoc Pennington <hp@redhat.com>
13030 * gtk/gtkprivate.h (enum): Remove a trailing comma
13032 2000-11-27 Federico Mena Quintero <federico@helixcode.com>
13034 * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
13035 the "changed" callback of the adjustment. We need to redraw the
13036 spin button's arrows when the adjustment's range changes.
13037 (adjustment_changed_cb): Draw the arrows.
13038 (gtk_spin_button_value_changed): Draw the arrows.
13040 2000-11-23 Alexander Larsson <alexl@redhat.com>
13042 * gdk/linux-fb/gdkselection-fb.c:
13043 Initial selection implementation.
13045 * gtk/gtkselection.c:
13046 if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
13047 requestor in gtk_selection_request.
13049 * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
13050 Added gdk_selection_property atom.
13052 * gdk/linux-fb/gdkprivate-fb.h:
13053 Export _gdk_selection_window_destroyed.
13054 Removed mask_off_x/y from GdkCursorPrivateFB.
13055 Removed hbearing, added top, left to PangoFBGlyphInfo.
13057 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
13058 Call _gdk_selection_window_destroyed
13059 (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
13060 the root window has been created.
13061 (static_dx_hack, static_dy_hack, compare_draw_rects,
13062 gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
13063 in region. They are already sorted. Instead just traverse them in
13064 reverse if draw_direction < 0.
13066 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
13067 Double-clicks must be sent after the normal button_press.
13068 (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
13070 * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
13071 Pass _gdk_fb_screen_gc instead of NULL.
13073 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
13074 Initialize gdk_selection_property.
13075 (gdk_event_make): Remove unused code.
13077 * gdk/linux-fb/gdkcursor-fb.c:
13078 Make the pixmap for the cursor the same size as the mask. Also remove
13079 the mask_off_x/y fields in GdkCursorPrivateFB and combine
13080 _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
13081 Now the whole cursor is visible.
13083 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
13084 Fix bug where xdest+height instead of ydest+height was used
13085 to calculate if the source and dest overlapped. This fixes the
13086 redraw bug when the main window in testgtk was scrolled when
13087 partially covered by a tall window.
13088 Copy rectangles in region in order depending on draw_direction.
13089 Also moved the draw_direction flipping of start_y and end_y into
13090 the gc functions, as this might not be what all of them want.
13091 (gdk_fb_draw_lines): Support dashed lines.
13092 (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
13093 so that the text is positioned correctly (was 1 pixel high).
13095 gdk/linux-fb/gdkgc-fb.c:
13096 Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
13097 all lines were drawn a pixel to short. Also checked the default of
13098 the rest of the values, and they're the same as X now.
13100 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
13101 Clean up pixel positioning of the glyphs. Just use bgy->top and
13102 bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
13103 to all divisions to get correct rounding behaviour.
13105 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
13106 gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
13107 Moved start_y/end_y flip into draw_drawable implementations.
13108 Flip also x rendering when draw_direction < 0.
13109 Remove unneccesary multiply with draw_direction.
13111 Wed Nov 22 14:11:19 GMT 2000 Tony Gale <gale@gtk.org>
13113 * docs/tutorial/gtk-tut.sgml:
13114 - get rid of gtk_toggle_button_toggled FUD
13115 - start DND section - needs work - based on:
13116 http://wolfpack.twu.net/docs/gtkdnd/
13118 2000-11-22 Alexander Larsson <alexl@redhat.com>
13120 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
13121 Correct calculation of font metrics. Now GtkEntrys have sane
13124 2000-11-22 Alexander Larsson <alexl@redhat.com>
13127 Add new type GdkSpan
13129 * docs/reference/gdk/gdk-sections.txt,
13130 docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
13132 Implement and document gdk_region_spans_intersect_foreach.
13134 * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
13135 Add new file gdkrender-fb.c which contains all core
13137 Add gdk_fb_fill_rectangle_generic (old rectangle code) and
13138 gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
13139 (optimized rectangle fillers).
13141 * gdk/linux-fb/gdkdrawable-fb2.c:
13142 Move all rendering code to gdkrender-fb.c.
13143 Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
13144 Use the new span intersection functions in gdk_fb_fill_spans.
13145 gdk_fb_draw_rectangle() clips filled rectangles and calls
13146 gc->fill_rectangle with the result.
13147 gdk_fb_fill_spans() gets extra argument "sorted".
13149 * gdk/linux-fb/gdkevents-fb.c:
13150 Remove unused includes and defines.
13151 New function gdk_fb_get_time() to get correct time for events.
13153 * gdk/linux-fb/gdkinput-ps2.c:
13154 Use gdk method of generating multiple-clicks (gdk_event_button_generate)
13155 Make sure to set the time of all events.
13157 * gdk/linux-fb/gdkmain-fb.c:
13158 Use gdk_fb_get_time ().
13160 * gdk/linux-fb/gdkprivate-fb.h:
13161 New virtual GC calls: fill_span & fill_rectangle.
13162 Export gdk_fb_get_time().
13163 gdk_fb_fill_spans() gets extra argument "sorted".
13165 * gdk/linux-fb/mi*.c:
13166 Use GdkSpan instead of GdkRectangle.
13167 Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
13168 from XFree 4 source)
13170 2000-11-22 <jrb@redhat.com>
13172 * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
13173 reversing the order in an if statement will do. Doing so managed
13174 to make the treemodelsort half work. Other half will follow after
13175 I get the insert function fully fixed.
13177 2000-11-21 Elliot Lee <sopwith@redhat.com>
13178 * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
13179 more than 2 bits. Besides, I need to implement an evil hack. :)
13181 Tue Nov 21 14:17:51 GMT 2000 Tony Gale <gale@gtk.org>
13183 * docs/tutorial/gtk-tut.sgml: minor corrections
13185 2000-11-20 Jonathan Blandford <jrb@redhat.com>
13186 * gtk/gtktreemodelsort.h: Add convertion functions to let you
13187 convert to and from relative path's and iters.
13189 * gtk/treestoretest.c: move to having a sorted/unsorted view. Start
13190 testing sorting functions a bit better. Currently broken -- will
13193 2000-11-20 Havoc Pennington <hp@redhat.com>
13195 * gtk/gtkwidget.c: Documented a bunch of functions in here
13196 (gtk_widget_realize): Warn if you try to realize
13197 a widget with no parent that isn't a toplevel
13198 (gtk_widget_intersect): return a gboolean
13200 2000-11-20 Havoc Pennington <hp@redhat.com>
13202 * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
13203 gtk/testtext.c: Semi-finish widget embedding. Need guffaw
13204 scrolling to be implemented in GDK to finish. Also, right now
13205 we just size_allocate all children on every layout change,
13206 which is pretty lame. Test commented out of testtext.c,
13207 until it works better.
13209 2000-11-20 Alexander Larsson <alla@lysator.liu.se>
13211 * gdk/linux-fb/gdkdrawable-fb2.c:
13212 Removed unused arguments from gdk_fb_drawable_get_pixel().
13214 * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
13215 Renamed fidur specific mouse packet data in MouseDevice to
13216 generic. Used it in ps2 mouse handling code to avoid blocking
13219 Sat Nov 18 18:00:17 2000 Jonathan Blandford <jrb@redhat.com>
13221 * demos/gtk-demo/main.c: Changed to have the list become
13222 non-italic when the demo window is destroyed through an external
13223 event (like a close button). Doing so found three bugs in the
13226 * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
13228 * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
13229 we actually set the cell.
13231 * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
13233 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
13234 free a leaked path. Thanks memprof.
13236 Sat Nov 18 11:58:17 2000 Owen Taylor <otaylor@redhat.com>
13238 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix
13239 off-by-one error when destroying allocated segments
13240 on failure. (Elliot)
13242 Sat Nov 18 11:45:09 2000 Owen Taylor <otaylor@redhat.com>
13244 * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
13245 memleaks found by Evan Martin.
13247 Fri Nov 17 20:14:20 2000 Owen Taylor <otaylor@redhat.com>
13251 * NEWS: Updates for 1.3.2
13253 2000-11-17 Tor Lillqvist <tml@iki.fi>
13255 * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
13256 but in general for window system specific events.
13259 * gtk/makefile.mingw.in
13260 * gtk/makefile.msc.in: Update.
13262 * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
13264 Thu Nov 16 16:11:39 2000 Owen Taylor <otaylor@redhat.com>
13266 * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
13267 distribute gtk.immodules.
13269 * gtk/Makefile.am (install-data-local): Don't install the
13270 gtk.immodules file created for the uninstalled modules;
13271 instead run gtk-query-immodules after install
13273 Wed Nov 15 21:51:31 2000 Owen Taylor <otaylor@redhat.com>
13275 * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
13276 -rpath to the right install location.
13278 * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
13281 * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
13284 2000-11-15 Havoc Pennington <hp@pobox.com>
13286 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
13287 patch from Mikael Hermansson to temporarily stop blinking while
13288 the user is using the keyboard to type or navigate.
13290 Also, when blinking, stay on for longer than we stay off. Also,
13291 return from start_cursor_blink if !cursor_visible, to save
13292 checking that flag all over the place before we call
13293 start_cursor_blink.
13295 Thu Nov 16 01:25:51 2000 Robert Brady <robert@suse.co.uk>
13297 * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
13298 only contain a "fontset" line, which is now ignored.
13300 * gtk/gtkentry.c (gtk_entry_button_release): Make
13301 double-click-to-select-word work.
13303 Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
13305 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
13306 Don't move back one char when we are actually at the end of the
13309 2000-11-15 Robert Brady <robert@suse.co.uk>
13311 * modules/input/iminuktitut.c (inuktitut_compose_seqs):
13314 * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
13315 bind_textdomain_codeset.
13317 (gtk_init_check): Make the warning about translating default:LTR
13320 Wed Nov 15 18:39:40 2000 Owen Taylor <otaylor@redhat.com>
13322 * **/Makefile.am : remove unecessary rules for win32-specific
13323 config-substituted targets. If you want these rules, use
13324 --enable-maintainer-mode (called automatically by autogen.sh).
13325 Stops a lot of unneccessary make-time warnings.
13327 * gtk/gtktext{layout,display}.c: Factor in total width as
13328 well as screen when figuring alignment for word-wrap as well as
13329 no wrap; this is necessary to handle lines that cannot be wrapped
13332 2000-11-15 Havoc Pennington <hp@redhat.com>
13334 * gtk/testtext.c: Implement essential color cycling feature
13336 2000-11-15 Havoc Pennington <hp@redhat.com>
13338 * gtk/gtktextview.c (changed_handler): Invalidate the side windows
13339 when we invalidate the main window.
13341 * gtk/testtext.c (create_view): Get rid of text_changed_callback,
13342 GtkTextView will now invalidate the side windows for us when text
13345 Wed Nov 15 16:02:20 2000 Owen Taylor <otaylor@redhat.com>
13347 * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
13348 unconditionally, since we may need to update the horizontal
13349 scrollbars even if the height didn't change.
13351 * gtk/gtktextlayout.c (add_preedit_attrs): Always get
13352 the extra attrs, since some of them affect size.
13354 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
13355 x_offset correctly.
13357 2000-11-15 Havoc Pennington <hp@redhat.com>
13359 * gtk/gtktextlayout.c (set_para_values): If indent is negative,
13360 don't move the first line out into the margin, instead move the
13361 whole paragraph in order to make space for the first line within
13364 2000-11-15 Havoc Pennington <hp@redhat.com>
13366 * gtk/gtktextview.c (changed_handler): offset redraw rect by
13367 xoffset in addition to yoffset, so horizontal scrolling doesn't
13370 2000-11-15 Havoc Pennington <hp@redhat.com>
13372 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
13374 (render_layout_line): fix reversed test that caused weird
13375 underlines to get drawn
13377 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
13379 * gdk/linux-fb/gdkprivate-fb.h:
13382 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
13384 * gdk/linux-fb/gdkprivate-fb.h:
13385 Added virtual functions set_pixel, get_color,
13386 fill_span and draw_drawable to the GC.
13387 Added global _gdk_fb_screen_gc to use instead of
13388 NULL when drawing to the screen.
13389 Added _gdk_fb_gc_calc_state() prototype.
13391 * gdk/linux-fb/gdkgc-fb.c:
13392 Call _gdk_fb_gc_calc_state() on any gc state change.
13394 * gdk/linux-fb/gdkglobals-fb.c:
13395 Add _gdk_fb_screen_gc
13397 * gdk/linux-fb/gdkdrawable-fb2.c:
13398 _gdk_fb_gc_calc_state() calculates best functions
13399 for the GC state and depth.
13400 Moved bpp specialized code to separate functions.
13401 Added optimized 24 bpp AA draw_drawable.
13403 * gdk/linux-fb/gdkevents-fb.c:
13404 Silence gcc warning.
13406 * gdk/linux-fb/gdkimage-fb.c:
13407 Use _gdk_fb_screen_gc
13409 * gdk/linux-fb/gdkwindow-fb.c:
13410 Init and use _gdk_fb_screen_gc
13412 * gdk/linux-fb/mitypes.h:
13413 Remove unused types.
13415 2000-11-14 Havoc Pennington <hp@pobox.com>
13417 * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
13420 2000-11-14 Havoc Pennington <hp@pobox.com>
13422 * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
13424 * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
13425 unknown char, no real reason we were using a variable.
13426 Remove gtk_text_unknown_char variable. Fix all the text widget
13429 * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC,
13430 since the Unicode spec seems to prefer that character for our
13433 Wed Nov 15 02:18:01 2000 Robert Brady <robert@suse.co.uk>
13435 * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return
13436 value of g_getenv() isn't freeable, so g_strdup it.
13438 * modules/input/inuktitut.c: Inuktitut input method.
13440 * modules/input/Makefile.am: Build this.
13442 2000-11-14 Elliot Lee <sopwith@redhat.com>
13444 * gtk/Makefile.am: Install gtk.immodules, needed for operation
13447 Tue Nov 14 20:13:06 2000 Owen Taylor <otaylor@redhat.com>
13449 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
13450 reversed > that was causing Home to go to end of previous line.
13452 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
13453 modified-keypresses (leave for bindings.)
13455 * modules/input/Makefile.am: Remove useless -export-dynamic
13456 from module LDFLAGS.
13458 2000-11-14 Havoc Pennington <hp@redhat.com>
13460 * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
13463 * gtk/gtktextdisplay.c (render_layout_line): Take rise into
13464 account. Also, render rise, underline, background, etc. for
13465 pixbufs as well as text. Also, draw underlines one pixel higher.
13467 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
13468 PangoAttribute for the rise, so it gets drawn properly. Also,
13469 add the GtkTextAppearance attribute for pixbuf/widget segments
13470 as well; we should go ahead and have rise, underline, background,
13471 stipple work for those
13473 * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
13476 2000-11-15 Tor Lillqvist <tml@iki.fi>
13478 * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
13480 * gtk/gtk.def: Update.
13482 * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
13484 (gtk_rc_get_im_module_file): Use run-time installation directory
13487 * gdk/win32/rc/gdk.rc: Remove.
13488 * gdk/win32/rc/gdk.rc.in: New file.
13489 * gdk/win32/rc/Makefile.am: New file
13490 * gdk/win32/Makefile.am: Corresponding changes.
13492 * gtk/gtk.rc: Remove.
13493 * gtk/gtk-win32.rc.in: New file.
13494 * gtk/Makefile.am: Corresponding changes.
13496 * configure.in: Corresponding changes.
13498 * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
13499 has a built gtkcompat.h. Developers using CVS code on Win32 can
13500 hand-edit it from gtkcompat.h.in.
13502 * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
13503 gtkcompat.h from gtkcompat.h.win32.
13505 2000-11-14 Havoc Pennington <hp@redhat.com>
13507 * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
13508 to default to GDK_ACTION_MOVE if the drag is within a single
13509 widget. Defaults to GDK_ACTION_COPY between widgets.
13511 Mon Nov 13 14:43:48 2000 Owen Taylor <otaylor@redhat.com>
13513 * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
13515 * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
13517 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
13520 * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
13522 * configure.in (GTK_VERSION): Up to 1.3.2
13524 * modules/input/Makefile.am (im_xim_la_SOURCES): Add
13527 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
13528 missing doc comment.
13530 2000-11-14 Alexander Larsson <alexl@redhat.com>
13532 * modules/linux-fb/basic.c:
13533 Use the glib iconv wrappers.
13535 2000-11-13 Havoc Pennington <hp@pobox.com>
13537 * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
13540 * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
13541 scroll the GdkWindows before realization.
13543 2000-11-13 Havoc Pennington <hp@redhat.com>
13545 * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
13546 where GC didn't always get updated properly
13548 * demos/gtk-demo/textview.c (create_tags): Use subattributes
13549 of fonts instead of setting the entire font
13551 * gtk/testtext.c (fill_example_buffer): Use "size" instead of
13552 setting entire font
13554 * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
13556 * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
13557 a bunch of individually-settable font attributes. You can still
13558 use the "font" and "font_desc" args, they just set all the font
13559 attributes at once.
13561 2000-11-13 Elliot Lee <sopwith@redhat.com>
13563 * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
13565 Mon Nov 13 14:29:32 2000 Jonathan Blandford <jrb@redhat.com>
13567 * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
13568 * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
13570 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
13573 2000-11-13 Havoc Pennington <hp@redhat.com>
13575 * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of
13578 * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
13581 * gtk/testtext.c: Test pixels above/below/inside paragraphs
13584 * gtk/gtktextview.c: Implement object args and setters/getters for
13585 all the aspects of the GtkTextAttributes that are not set from
13586 GtkWidget attributes. This is spacing, justification, margins,
13589 (gtk_text_view_set_arg)
13590 (gtk_text_view_get_arg): implement get/set for editable, wrap mode
13592 (gtk_text_view_class_init): Add args for justify, left_margin,
13593 right_margin, indent, and tabs
13596 * gtk/gtktextlayout.c (set_para_values): fix to display indent
13599 * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute,
13600 replace with indent attribute
13602 * gtk/gtktextlayout.c (set_para_values): multiply indent by
13605 * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
13606 rearranging code to do that
13607 (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
13608 i.e. don't subtract the top_margin first, just to keep
13609 all margin-futzing in one place.
13611 * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
13613 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
13614 special case of last line, Pango now handles this itself.
13615 (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the
13617 (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
13618 (find_display_line_above): wasn't moving the byte index as it
13619 iterated over lines, so always returned byte 0. Also, port to use
13621 (find_display_line_below): same problem as
13622 find_display_line_above. Also, port to use PangoLayoutIter.
13624 2000-11-13 Alexander Larsson <alexl@redhat.com>
13626 * gdk/linux-fb/*.[ch]:
13627 Massive reindent to gtk+ standard. My hands hurt.
13629 * gdk/linux-fb/gdkcolor-fb.c:
13630 Move GdkColorPrivateFB from inherited to windowing_data
13632 * gdk/linux-fb/gdkcursor-fb.c:
13633 _gdk_cursor_new_from_pixmap made static
13635 * gdk/linux-fb/gdkdnd-fb.c:
13636 GdkDragContextPrivate moved to windowing_data
13638 * gdk/linux-fb/gdkdrawable-fb2.c:
13639 Removed endian.h, use glib endianness macros instead
13640 Some cleanups in the usage of GDK_DRAWABLE_FBDATA
13641 and GDK_DRAWABLE_IMPL_FBDATA
13643 * gdk/linux-fb/gdkfont-fb.c:
13644 Add empty gdk_font_load(). Needed for linking of Gtk+.
13646 * gdk/linux-fb/gdkimage-fb.c:
13647 Removed endian.h, use glib endianness macros instead
13648 Moved GdkImagePrivateFB to windowing_data
13649 gdk_image_new_bitmap didn't always allocate enough
13652 * gdk/linux-fb/gdkinput-ps2.c:
13653 Added semi-working support for MS serial mice.
13655 * gdk/linux-fb/gdkprivate-fb.h:
13656 s/GdkWindowPrivate/GdkWindowObject/
13657 Removed GdkWindowPrivate typedef
13658 s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
13659 Removed GDK_DRAWABLE_P
13660 Move GdkColorPrivateFB from inherited to windowing_data
13661 Moved GdkImagePrivateFB to windowing_data
13663 * gdk/linux-fb/gdkvisual-fb.c:
13664 Removed some unused debug code.
13666 * gdk/linux-fb/gdkwindow-fb.c:
13667 Use stock cursors instead of including X headers.
13668 s/GdkWindowPrivate/GdkWindowObject/
13670 * gdk/linux-fb/mitypes.h:
13671 Removed unused types.
13673 * modules/linux-fb/basic.c:
13674 Use the pango fribidi wrappers.
13676 2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
13678 * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
13679 gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
13680 gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
13681 gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
13682 GEqualFunc where applicable.
13684 * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
13685 pango_font_description_equal as changed in pango.
13687 * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
13689 * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
13691 * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
13693 * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
13695 * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
13697 * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
13699 * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
13700 gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
13702 * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
13703 gtk_rc_styles_compare -> gtk_rc_styles_equal.
13705 2000-11-12 Havoc Pennington <hp@pobox.com>
13707 * demos/gtk-demo/Makefile.am (democodedir): change demo install
13708 dir to datadir/gtk+-2.0/demo
13710 * demos/gtk-demo/textview.c: Text widget demo; reveals all
13711 sorts of text widget and Pango font bugs. Urgh.
13713 * demos/gtk-demo/Makefile.am (demos): Add textview.c
13715 * demos/gtk-demo/main.c (create_tree): Add instructions at top of
13716 tree that you should double click to see the demo. Fix
13717 types of variables to reflect changed return values from
13718 GtkTreeStore and GtkTreeViewColumn constructors.
13720 * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
13721 newly-created buffer to prepare for GObject semantics
13723 * gtk/testtext.c: don't leak the buffer with GObject semantics
13725 * gtk/testtextbuffer.c: ditto
13727 2000-11-12 Havoc Pennington <hp@pobox.com>
13729 Rename this testgtk to gtk-demo to avoid confusion, and
13730 install it so people can use it as a supplement to
13733 * demos/gtk-demo: Moved from demos/testgtk
13735 * demos/testgtk: Removed
13737 * configure.in: make Makefile in gtk-demo
13739 * demos/gtk-demo/Makefile.am: Install sample source to
13740 datadir/gtk-demo (maybe there's a better place?), and
13741 rename the binary to gtk-demo
13743 * demos/gtk-demo/main.c (load_file): Load installed sample
13744 source if source isn't found in pwd.
13746 2000-11-09 Havoc Pennington <hp@pobox.com>
13748 * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char"
13749 argument to set the char displayed when visibility == FALSE
13750 (gtk_entry_create_layout): If !entry->visible, replace
13751 all chars with the "invisible char"
13753 * gtk/testgtk.c: Test the invisible_char deal
13755 Mon Nov 13 02:16:33 2000 Robert Brady <robert@suse.co.uk>
13757 * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
13758 can't get a native font in the right encoding.
13760 Mon Nov 13 00:09:29 2000 Robert Brady <robert@suse.co.uk>
13762 * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
13765 Sun Nov 12 19:11:42 2000 Owen Taylor <otaylor@redhat.com>
13767 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
13768 Fix warning when moving between paragraphs.
13770 * gtk/gtkentry.[ch]: Change move => move_cursor,
13771 delete => delete_from_cursor, insert => insert_at_cursor
13773 Sun Nov 12 22:52:51 2000 Robert Brady <robert@suse.co.uk>
13775 * modules/input/imviqr.c: A vietnamese VIQR-based input method.
13777 * modules/input/imthai-broken.c: A Thai input method for use if
13778 Thai keys are really generating Latin1 keysyms.
13780 * modules/input/Makefile.am: Build these.
13782 Sun Nov 12 22:15:35 2000 Robert Brady <robert@suse.co.uk>
13784 * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
13785 g_filename_{to,from}_utf8 now takes an extra parameter.
13787 * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
13788 strftime into UTF-8.
13790 (column_from_x, gtk_calendar_paint_day_names): Support RTL
13793 (gtk_calendar_paint_day_names): Draw day names in the right
13796 Sun Nov 12 14:10:09 2000 Owen Taylor <otaylor@redhat.com>
13798 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
13799 problem with using result of g_get_charset() backwards -
13800 pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
13802 * gtk/gtkwindow.c (gtk_window_compute_hints): Support
13803 negative min_width/height and max_width/height to
13804 mean "requisition"; this allows setting a window
13805 to be user-resizable in only one direction easily.
13807 * gtk/testgtk.c (create_main_window): Remove hard-coded
13808 usize - set a default size in the vertical direction.
13810 Sun Nov 12 13:33:01 2000 Owen Taylor <otaylor@redhat.com>
13812 * gtk/gtkrange.c: Add some missing casts. Support
13813 2 and 3 button clicks on the arrows to mean
13814 "move by pages" and "jump to end". (Like gtkspinbutton)
13816 2000-11-12 Hans Breuer <Hans@Breuer.Org>
13818 * gdk/win32/makefile.msc : reflect build module changes
13820 * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
13821 from GdkPixmap*, cast implementation member instead.
13823 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
13824 passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src
13825 maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
13826 more Gdi functions return value checking.
13827 (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
13828 GdkImagePrivateWin32 *.
13830 * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
13831 menus useable again. Add #pragma message to keep reminded on this issue.
13832 (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
13833 windows. This allows to enable backing store on Win32!
13835 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
13836 in drawable is of impl type. Correct specific type checks appropriate.
13838 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check
13839 GDK_WINDOW_DESTROYED before allocating new resources.
13841 * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
13843 * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
13844 (gdk_window_foreign_new) initialize parent handle.
13845 (gdk_window_destroy_notify) add GDK_IS_WINDOW check
13847 * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
13848 Let the GDI invalidate the window on MoveWindow call to fix scrolling
13849 problems (e.g. main buttons in testgtk).
13851 Sat Nov 11 23:07:30 2000 Owen Taylor <otaylor@redhat.com>
13853 * gtk/gtkentry.c (gtk_entry_key_press): Call
13854 gtk_widget_activate for GDK_Return.
13856 * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
13857 of preedit cursor position.
13859 Sun Nov 5 04:24:53 2000 Owen Taylor <otaylor@redhat.com>
13861 * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
13864 Tue Sep 19 10:54:22 2000 Owen Taylor <otaylor@redhat.com>
13866 * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
13867 out support for multiple locales; that simple doesn't
13868 work reliably with current Xlib
13870 * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
13871 gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
13872 Add support for positioning the cursor within the preedit string.
13874 Mon Sep 18 23:56:32 2000 Owen Taylor <otaylor@redhat.com>
13876 * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
13877 at XIM input method module.
13879 * gtk/gtktextview.c: Check for bindings after passing
13880 events to im context filter.
13882 Mon Sep 18 11:50:51 2000 Owen Taylor <otaylor@redhat.com>
13884 * gtk/gtktextlayout.c (add_preedit_attrs): Handle
13885 empty attribute lists properly.
13887 Sun Sep 17 10:08:16 2000 Owen Taylor <otaylor@redhat.com>
13889 * gtk/queryimmodules.c (main): Return non-zero exit
13890 status if errors were encountered querying any
13893 * modules/input/Makefile.am (moduledir): remove
13894 leftover bin program target.
13896 * docs/make-todo: Fix typo in error message.
13898 Sat Sep 16 14:04:30 2000 Owen Taylor <otaylor@redhat.com>
13900 * configure.in: Add modules/input/Makefile
13902 Sat Sep 16 14:01:52 2000 Owen Taylor <otaylor@redhat.com>
13904 * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
13905 don't include gtkthemes.h.
13907 * gtk/testgtk.c gtk/testtext.c: Set environment variables
13910 * gtk/Makefile.am: Add new .c and .h files, build
13911 gtk-query-immodules and use it to create a gtk.immodules
13912 file for use of test programs.
13914 * gtk/gtkpreview.c: remove extra blank line.
13916 Sat Sep 16 13:21:04 2000 Owen Taylor <otaylor@redhat.com>
13918 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
13919 Add the ability to add extra tables beyond the default
13920 one, and also the ability to have compose sequences
13921 that are prefixes of other compose sequences.
13923 * gtk/gtkimcontextsimple.c: Export a preedit string which
13924 consists of possible candidates for keystrokes that have
13925 been entered but not yet committed.
13927 * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
13928 gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
13930 * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
13931 Add a function to add input-method switching menu items
13934 * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
13935 when switching input methods.
13937 * gtk/gtkimcontextsimple.[ch]: Change the format of
13938 the compose table to allow compose tables of different
13939 lengths / sequence.
13941 Sat Sep 16 13:05:48 2000 Owen Taylor <otaylor@redhat.com>
13943 * gtk/gtkimmodule.[ch]: Support routines for loading
13944 GtkIMContext implementations dynamically at runtime.
13946 * modules/input/imcyrillic-translit.c: A sample input
13947 method (based on GtkIMContextSimple with an extra table),
13948 which demonstrates preedit strings and the module
13949 system for input modules
13951 * gtk/queryimmodules.c: Program to query the available
13952 input modules and write the results into a file.
13954 * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
13955 extra config options "im_module_file" (cache file for
13956 input method modules), and "im_module_path" - path
13957 to look for modules when generating cache file.
13959 This doesn't scale.
13961 Sat Sep 16 13:09:06 2000 Owen Taylor <otaylor@redhat.com>
13963 * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
13964 generic code from gtkthemes into a new abstraction
13965 GtkModule which has the logic for implementing
13966 a loadable module which implements a number of
13969 Sat Sep 16 13:07:13 2000 Owen Taylor <otaylor@redhat.com>
13971 * gtk/gtkeditable.[ch]: Convert GtkEditable from
13972 a class into an interface
13974 * gtk/gtkoldeditable.[ch]: Move the old editable
13975 implementation into here, so legacy widgets can
13976 still rely on the implemenation. GtkOldEditable
13977 exports GtkEditable. Make selection handling
13978 code use new text conversion functions (and
13979 handle UTF-8 as a side-effect). Use GtkClipboard
13982 * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
13983 Adopt to match above changes.
13985 * gtk/gtkentry.[ch]: Implement GtkEditable directly,
13986 avoid GtkOldEditable implementation. Restructure
13987 to reduce number of places that modify state directly.
13988 Move to GtkBindingSet. Display the preedit string.
13989 Queue recomputation of PangoLayout and scroll position
13990 to improve effiency of doing complex changes naively.
13991 Add a menu with cut/copy/paste and input method selection.
13993 Thu Sep 14 22:11:05 2000 Owen Taylor <otaylor@redhat.com>
13995 * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
13996 to set preedit string and attributes; display preedit string by
13997 inserting string and attributes at cursor when creating the
13998 GtkTextLineDisplay.
14000 * gtk/gtktextlayout.c: Move all conversions between byte
14001 positions in PangoLayout and GtkTextIter into new functions
14002 line_display_iter_to_index/index_to_iter that properly
14003 handle the preedit string.
14005 * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
14006 it to return const char * (eventually will end up
14007 as GCONST char *, most likely.)
14009 * gtk/gtktextview.[ch]: Handle the preedit string, call
14010 gtk_im_context_reset() as necessary, add a menu to switch
14013 * gtk/gtktextlayout.[ch]: Remove useless
14014 gtk_text_layout_get_log_attrs() function.
14016 2000-11-11 Tor Lillqvist <tml@iki.fi>
14019 * gtk/gtk.def: Update.
14021 * gdk/win32/*.c: Add last argument to g_type_register_static()
14024 * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
14026 * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
14027 generated by older wheel mouse drivers. Get the correct y
14028 coordinate from WM_MOUSEWHEEL messages.
14030 * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
14031 gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
14032 gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
14033 Debugging functions.
14035 * gdk/win32/gdkprivate-win32.h: Declare them.
14037 * gdk/win32/gdkinput-win32.h: Add declaration for
14038 gdk_input_window_destroy().
14040 * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
14042 Fri Nov 10 19:06:41 2000 Jonathan Blandford <jrb@redhat.com>
14044 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
14045 function to help handle keeping things in sync.
14047 Fri Nov 10 12:10:34 2000 Jonathan Blandford <jrb@redhat.com>
14049 * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
14052 * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
14053 (gtk_list_store_class_init): use the new BOXED marshallers.
14055 * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
14056 new_with_values to new_with_types.
14057 (gtk_tree_store_get_column_type): add this.
14058 (gtk_tree_store_class_init): use the new BOXED marshallers.
14060 * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
14061 mirror some POINTER marshallers.
14063 Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com>
14065 * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
14066 allow more interesting iterators. Also, made the lifecycle of
14067 iterators more explicit.
14069 * gtk/gtktreemodelsort.[ch]: New model for sorting.
14071 * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
14074 2000-11-09 Alexander Larsson <alexl@redhat.com>
14076 * demos/testgtk/menus.c:
14077 Changes to make the new testgtk compile after
14078 gtk_menu_append was removed.
14080 * gdk/linux-fb/gdkdrawable-fb2.c
14081 (gdk_fb_get_depth, gdk_fb_get_visual,
14082 gdk_drawable_impl_fb_class_init): Implement
14083 these drawable functions. Now GtkImages work again.
14085 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
14087 * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
14089 * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
14090 gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
14091 Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
14092 GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
14094 2000-11-08 Havoc Pennington <hp@pobox.com>
14096 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
14097 visible_set args, don't know where these had gone, I thought they
14100 * gtk/testtext.c: Add a menu item to apply invisibility tag;
14101 now we can test the feature and see that it's totally broken.
14103 2000-11-08 Havoc Pennington <hp@pobox.com>
14105 Make DND copy pixbufs and tags when source and target share a
14108 * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
14109 in-process GTK_TEXT_BUFFER_CONTENTS target
14110 (gtk_text_view_drag_data_received): Paste from
14111 GTK_TEXT_BUFFER_CONTENTS if we receive it.
14113 2000-11-08 Alexander Larsson <alexl@redhat.com>
14115 * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
14118 * gtk/gtkmenu.c: Add support for scrolling menus.
14119 Remove gtk_menu_append/prepend/insert, these have been moved to
14120 gtkcompat.h as #defines.
14122 * gtk/gtkcompat.h.in:
14123 Add compatibility #defines for gtk_menu_append/prepend/insert
14125 * gtk/gtkmenu.h: Add data needed for scrolling menus.
14126 GtkMenuPositionFunc gets an extra argument push_in.
14127 gtk_menu_append/prepend/insert removed.
14129 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
14130 positioning behaviour to fit to scrolling menus.
14132 * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
14133 into menuitem->submeny. That is wrong, and broke torn
14134 off submenus of torn off menus, since they were unrealized
14135 when the first menu was unrealized.
14137 * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
14138 gtk_menu_shell_select_item() since these need to be overridden in
14141 * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
14142 positioning behaviour to fit to scrolling menus.
14143 (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
14144 the current item so that it is prelighted when the menu pops up.
14145 This is a workaround to the fact that the menu doesn't get the
14146 initial enter event (due to grabs).
14148 * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
14149 s/gtk_menu_append/gtk_menu_shell_append/
14151 * gtk/gtknotebook.c:
14152 s/gtk_menu_insert/gtk_menu_shell_insert/
14154 * gtk/testgtk.c (create_menu, create_menus):
14155 Create the first menu with 50 items so that menu scrolling
14159 Patch from Jonathan Blandford <jrb@redhat.com>
14161 * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
14162 system to handle size requests. First, we ask what the size of
14163 the toggle is. Then, when allocating the size, we allocate the
14164 toggle_size first. This way we can have multiple menu-item
14165 classes w/o needing a seperate class for each.
14167 * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
14168 * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
14170 * gtk/gtkcheckmenuitem.c
14171 (gtk_check_menu_item_toggle_size_request): New function to handle
14172 the toggle size-request.
14174 2000-11-07 Havoc Pennington <hp@redhat.com>
14176 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
14177 Half-ass somewhat fix this function, so that scrolling to the
14178 insertion point works. Pango hacking is in the future to really
14181 * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
14182 length of data, no longer used.
14184 * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
14185 method contents in here, get rid of destroy method
14186 (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
14187 that were backward. Remove debug spew.
14188 (cut_or_copy): Make the clipboard work with insert_range to
14189 preserve tags and pixbufs, not just the primary selection.
14191 2000-11-07 Havoc Pennington <hp@redhat.com>
14193 * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename
14194 to gtk_text_mark_get_visible
14196 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
14197 bug that was generating an invalid iterator
14199 * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
14200 ensure_char_offsets() in front of code placing the iter in an
14203 * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
14204 make override_location arg const
14205 (paste): Replace the selection if we paste into the
14208 * gtk/gtkselection.h: Remove "GtkSelectioData"
14209 (struct _GtkSelectionData): move the definition here.
14211 * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
14212 Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
14214 * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
14216 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
14217 (gtk_text_buffer_insert_range_interactive): implement
14218 (gtk_text_buffer_get_tags): Remove, replaced by
14219 gtk_text_iter_get_tags()
14221 * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
14222 limit parameter, to avoid infinite linear scan.
14223 (gtk_text_iter_backward_search): Add search limit
14224 (gtk_text_iter_forward_find_char): Add search limit
14225 (gtk_text_iter_backward_find_char): Add search limit
14227 2000-11-07 Alexander Larsson <alla@lysator.liu.se>
14229 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
14230 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
14231 gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
14232 gdk/linux-fb/gdkwindow-fb.c:
14233 use g_object_new() instead of g_type_create_instance() which
14234 is a private function for fundamental type implementations.
14236 * gdk/linux-fb/gdkinput-ps2.c:
14237 Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
14238 instead just store the current modifier state. Add a (somewhat broken)
14239 keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
14240 Rename exported function gdk_input_ps2_get_mouseinfo to
14241 gdk_input_get_mouseinfo.
14243 * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
14244 gdk/linux-fb/gdkwindow-fb.c:
14245 gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
14248 2000-11-02 Havoc Pennington <hp@redhat.com>
14250 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
14251 use stock buttons. Should be 100% source compatible, appropriate
14252 filesel fields now point to dialog->vbox and dialog->action_area.
14253 On the bizarre side, dialog->action_area and filesel->action_area
14254 are not the same widget.
14255 (gtk_file_selection_init): Put some padding around the selection
14256 entry, so it isn't touching the GtkDialog separator.
14258 * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
14259 use stock buttons, etc. Should also be source compatible.
14260 Set the dialog default title in _init not _new().
14262 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
14263 Use stock buttons; don't put a button box inside the existing
14264 dialog button box. Don't bother with push/pop colormap anymore.
14266 * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
14267 specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
14268 for message dialog, and necessary for the font selection and color
14269 selection with help and apply buttons.
14271 * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
14272 to the created button widget. Set GTK_CAN_DEFAULT on the button.
14273 (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
14274 between buttons, put less padding around the action area.
14275 (gtk_dialog_run): Exit on unmap rather than on destroy.
14276 This will also exit the loop if the widget is hidden.
14277 (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
14278 instead of GTK_RESPONSE_NONE; since we're already adding a bunch
14279 of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
14280 special-case delete event.
14282 * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
14285 Sun Nov 5 05:32:39 2000 Tim Janik <timj@gtk.org>
14287 * gtk/testgtk.c (uposition_stop_configure): provide a toggle
14288 button to temporarily disable position recording in the
14289 "saved position" test.
14291 Sat Nov 4 05:37:17 2000 Tim Janik <timj@gtk.org>
14293 * gtk/gtkthemes.c: added compat code that temporarily implements
14294 GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
14295 going to be revamped by owen's upcoming GtkModule patches, but
14296 untill then people want gtk to build, right? ;)
14298 2000-11-04 Havoc Pennington <hp@pobox.com>
14300 * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
14303 * docs/Changes-2.0.txt: Add note about
14304 gtk_container_get_toplevels()
14306 * gtk/gtktextview.h: formatting
14308 * gtk/gtktextview.c: don't start descriptions with "Returns",
14311 Sat Nov 4 10:12:27 2000 Owen Taylor <otaylor@redhat.com>
14313 * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
14314 look for glib-2.0.m4 not glib.m4. (Ali Abdin)
14316 2000-11-03 Havoc Pennington <hp@redhat.com>
14318 * gtk/gtktexttagtable.c: Docs
14319 (gtk_text_tag_table_size): return a signed int
14321 * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
14322 (gtk_text_tag_event): make the event_object a GObject
14324 * gtk/gtktextview.c: Write API docs for all functions.
14326 * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
14327 for gtk_text_view_get_window_type() called on one of the private
14330 * gtk/gtktextview.c: Instead of accessing text_view->buffer
14331 directly, call get_buffer() which demand-creates a default
14332 buffer. So gtk_text_view_new() can be used to create a view with a
14333 default buffer in it, if you just want an empty text box users can
14334 put data in. Useful for GUI builders also.
14336 2000-11-03 Pablo Saratxaga <pablo@mandrakesoft.com>
14338 * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
14339 the charset encodign portion MUST be in lowercase.
14340 * gtk/gtkrc.az: added file for Azeri language
14342 2000-11-03 Havoc Pennington <hp@redhat.com>
14344 Get widgets working on the btree/buffer side. Display of them
14345 still doesn't work.
14347 * gtk/gtktextview.c: start implementing child widget stuff
14349 * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
14351 * gtk/gtktextlayout.c: handle embedded widgets
14353 * gtk/gtktextdisplay.c: handle embedded widgets
14355 * gtk/gtktextchild.c: Implement all the child anchor goo
14357 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
14360 * gtk/gtktextbtree.c: Add child anchor table to the btree struct
14361 (insert_pixbuf_or_widget_segment): abstract out common portions of
14362 creating a child anchor or a pixbuf segment.
14363 (gtk_text_btree_create_child_anchor): new function
14364 (gtk_text_btree_unregister_child_anchor): new function
14366 * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
14367 allocate_child signal on GtkTextLayout
14369 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
14371 (gtk_text_iter_get_child_anchor): new function
14373 * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
14374 default handler for the changed signal, which calls
14375 gtk_text_buffer_set_modified(), instead of just always emitting
14376 changed then calling set_modified() manually. I guess this is
14377 maybe more flexible. It seems logical.
14379 Fri Nov 3 08:58:38 2000 Tim Janik <timj@gtk.org>
14381 * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
14384 * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
14386 Thu Nov 2 14:10:51 2000 Owen Taylor <otaylor@redhat.com>
14388 * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
14389 been marked static.
14391 2000-11-02 Havoc Pennington <hp@redhat.com>
14393 * gtk/testgtk.c (create_labels): had a test backward
14395 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
14396 fields, so the dest GC ends up with the correct clip origin,
14397 etc. Fixes a bug where colored labels didn't redraw
14400 2000-11-02 Alexander Larsson <alexl@redhat.com>
14402 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
14403 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
14404 gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
14405 Add last argument to t_type_register_static call.
14407 * gdk/linux-fb/gdkdrawable-fb2.c:
14408 Add last argument to t_type_register_static call.
14409 export the get_image drawable virtual function.
14411 * gdk/linux-fb/gdkimage-fb.c:
14412 Add last argument to t_type_register_static call.
14413 rename gtk_image_get to _gdk_fb_get_image and
14414 export it for use by gdkdrawable-fb2.
14416 * gdk/linux-fb/gdkprivate-fb.h:
14417 export _gdk_fb_get_image.
14419 * gdk/linux-fb/gdkselection-fb.c:
14420 Add new api call stubs.
14423 Missing ( in linux-fb part.
14425 * modules/linux-fb/Makefile.am:
14426 Must link with gdk_pixbuf or get unresolved symbol.
14428 2000-11-01 Havoc Pennington <hp@pobox.com>
14430 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use
14431 GTK_TYPE_TEXT_ITER and BOXED marshallers
14433 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
14435 * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
14437 * gtk/gtk-boxed.defs: add GtkTextIter
14439 * gtk/gtkmarshal.list: Add marshallers for text widget that
14440 properly use OBJECT and BOXED
14442 2000-11-01 Havoc Pennington <hp@redhat.com>
14444 * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
14446 * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
14447 before returning it.
14449 2000-11-01 Havoc Pennington <hp@redhat.com>
14451 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
14452 Clip the rectangle to be rendered to the drawable, since
14453 get_from_drawable() requires a region within the drawable
14455 2000-11-01 Havoc Pennington <hp@redhat.com>
14457 * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
14460 Wed Oct 25 20:10:57 2000 Owen Taylor <otaylor@redhat.com>
14462 * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
14465 2000-11-01 Havoc Pennington <hp@pobox.com>
14467 * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
14469 (gtk_label_finalize): unref the attr list if any.
14471 * gtk/testgtk.c (create_get_image): close test on second click
14472 (make_message_dialog): close dialog if it exists
14474 * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
14476 * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
14479 * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
14480 from Pango markup format
14481 (gtk_label_set_markup_with_accel): ditto but with accelerator
14484 * gtk/gtkimage.c (gtk_image_expose): reformatting.
14486 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
14487 reflect current state of GDK - use gdk_drawable_get_colormap, etc.
14488 Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to
14489 call gdk_window_get_origin().
14491 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
14492 implement GDK_PIXBUF_ALPHA_FULL
14494 Wed Nov 1 03:43:42 2000 Tim Janik <timj@gtk.org>
14496 * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
14497 g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
14498 g_signal_handlers_disconnect_matched to block/unblock and disconnect
14499 multiple handlers respectively, instead of only treating the
14500 first handler found (bug reported by owen).
14502 Mon Oct 30 19:23:50 2000 Jonathan Blandford <jrb@redhat.com>
14504 * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
14506 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
14508 * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
14509 gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
14510 gtk/gtktreeviewcolumn.h: Fixed inline docs.
14512 * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
14513 widget. Needs writing someday.
14515 * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
14518 2000-10-30 Havoc Pennington <hp@redhat.com>
14520 * gtk/gtktextview.h, gtk/gtktextview.c:
14521 Rename delete_at_cursor delete_from_cursor, and
14522 move to move_cursor.
14524 2000-10-30 Havoc Pennington <hp@redhat.com>
14526 * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
14527 gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
14528 gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
14529 gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
14530 gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
14531 gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
14532 gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
14533 gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
14534 gtktexttypes.h, gtktextview.c, gtktextview.h:
14536 Massive reindentation and reformatting. Arg alignment and comments
14537 still need fixing in various places.
14539 2000-10-30 Havoc Pennington <hp@redhat.com>
14541 * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
14542 to be named insert_at_cursor and delete_at_cursor so C++ can
14545 2000-10-28 Tor Lillqvist <tml@iki.fi>
14547 * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
14548 to get a double directory separator in case the home directory
14549 ends with one. This would cause trouble especially on Windows,
14550 where the path will be confused with the syntax for an an UNC
14551 (network share) path \\server\share\path.
14552 (gtk_rc_add_initial_default_files): Ditto.
14554 Sat Oct 28 02:33:09 2000 Robert Brady <robert@suse.co.uk>
14556 * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
14558 * gtk/gtktextview.c: Use correct marshallers.
14560 Fri Oct 27 17:56:26 2000 Jonathan Blandford <jrb@redhat.com>
14562 * gtk/gtkliststore.c: Not sure how this ever worked. Fixed it to
14563 use new iter stuff, and added all the appropriate signals et al.
14565 * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
14566 code is internal to gtk only.
14568 2000-10-28 Tor Lillqvist <tml@iki.fi>
14571 * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
14572 glib-genmarshal etc.
14574 Fri Oct 27 20:15:00 2000 Tim Janik <timj@gtk.org>
14576 * gtk/Makefile.am: added dependancies for testtextbuffer which broke
14579 Fri Oct 27 18:51:44 2000 Tim Janik <timj@gtk.org>
14581 * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
14583 2000-10-27 Robert Brady <robert@suse.co.uk>
14585 * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic),
14586 en_GB (British), ia (Interlingua).
14588 2000-10-26 Havoc Pennington <hp@redhat.com>
14590 * gtk/gtktextiter.c (my_strrstr): fix constness warning
14593 nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
14595 * gtk/gtktextsegment.c (char_segment_new): rename
14596 (_char_segment_new_from_two_strings): rename
14597 (_toggle_segment_new): rename
14599 * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
14600 (make_clipboard_widget): make it static
14601 (text_get_func): static
14602 (text_clear_func): static
14604 * gtk/gtkcolorsel.c (adjustment_changed): make this function
14606 (hex_changed): make it static
14607 (hsv_changed): make it static
14608 (opacity_entry_changed): make it static
14610 * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
14611 (toggle_segment_check_func): rename with _gtk
14613 * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
14614 (_widget_segment_new): rename
14615 (_widget_segment_add): rename
14616 (_widget_segment_remove): rename
14617 (_widget_segment_ref): rename
14618 (_widget_segment_unref): rename
14620 * gtk/gtktextmark.c (_mark_segment_new): Rename
14621 _gtk_mark_segment_new
14623 2000-10-26 Havoc Pennington <hp@redhat.com>
14625 * gtk/gtkmarshal.list: add new marshallers used by the text widget
14626 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14629 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
14632 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
14633 gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
14634 license on these files.
14636 * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
14639 * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to
14640 runtime random number different for each tree, instead of
14641 a constant I made up.
14643 Thu Oct 26 07:36:16 2000 Tim Janik <timj@gtk.org>
14645 * gtk/Makefile.am: buncha cleanups, kludged build sources
14646 dependencies with a Makefile: oldest-source-stamp dependancy
14647 for the moment. automake is really fighting us here, with
14648 intentionally not allowing user-defined rules or dependancies
14649 prior to it's -include $(DEP_FILES) statement. sucks rocks!
14651 * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
14652 to public headers. tehy have a comment stating that they are
14653 "semi-public" aren't included by gtk.h and if enums popup there,
14654 they can be /*< skip >*/-ed.
14656 * gtk/gtktextlayout.h:
14657 * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
14658 added LGPL... <SIGH>
14660 Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com>
14662 * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
14663 GtkTreeIter. Added iterators everywhere.
14665 * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
14667 * gtk/gtktreeviewselection.c: Changed to use the iterators.
14669 * gtk/gtktreestore.c: Changed to use the iterators.
14671 * gtk/gtkliststore.c: Commented out the code. Will convert to
14672 iterators tomorrow.
14674 * gtk/gtkmodelsimple.c: Commented out the code. Will convert to
14675 iterators tomorrow.
14677 * gtk/treestoretest.c: Changed to use iterators.
14679 * demos/testgtk/main.c: Moved to use the new iterator system.
14681 Thu Oct 26 02:10:32 2000 Tim Janik <timj@gtk.org>
14683 * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
14684 localization misbehaviour.
14686 * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
14687 a useless type without copy/free.
14689 * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
14690 of GTK_TYPE_CTREE_NODE.
14692 Thu Oct 26 00:51:52 2000 Tim Janik <timj@gtk.org>
14695 (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
14698 * gtk/gtk-boxed.defs (GtkSelectionData): specify
14699 gtk_selection_data_copy and gtk_selection_data_free
14700 do GtkSelectionData work as params in signals.
14702 Wed Oct 25 20:47:41 2000 Tim Janik <timj@gtk.org>
14704 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
14705 implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
14706 couldn't they at least give it a non-standard name?
14708 * gtk/gtktextlayout.c: arg! yet another implementation of
14709 gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
14711 * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
14712 gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
14713 home. now i know this _is_ a conspiracy.
14715 * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
14718 * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
14719 (gtk_accel_group_create_add): marshaller signature fixups.
14721 * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
14722 pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
14724 * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
14727 Tue Oct 24 23:59:21 2000 Tim Janik <timj@gtk.org>
14729 * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
14730 due to the signal system changes, it wouldn't build currently. to
14733 * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
14735 * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
14736 so it needs gtk_marshal_VOID__ENUM() instead of
14737 gtk_marshal_NONE__UINT().
14739 * gdk/gdk*.c: adapted type registration functions.
14741 * gtk/gtkbindings.c:
14742 * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
14745 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
14748 (gtk_object_destroy):
14749 (gtk_object_shutdown): fixed recursion guards. basically we have to
14750 catch the case where any of GObject.shutdown() or gtk_object_destroy()
14751 is called during ::destroy, and avoid recursion there.
14753 * gtk/gtktypeutils.c:
14754 * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
14755 boxed_copy/boxed_free. this needs a more general solution based on a
14756 publically installed code-generator utility.
14758 * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
14759 glib's gobject has support for that now.
14760 define GtkSignalMarshaller in terms of GSignalCMarshaller.
14762 Mon Oct 23 09:36:42 2000 Tim Janik <timj@gtk.org>
14764 * gtk/gtksignal.[hc]:
14765 * gtk/gtkmarshal.[hc]:
14766 * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
14767 compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
14768 removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
14771 * *.c: marshaller name fixups.
14773 * gtk/gtkmarshal.list: added a comment briefing the format.
14775 Sun Oct 22 23:14:39 2000 Tim Janik <timj@gtk.org>
14777 * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
14778 compatibility macros here now. more specifically, most of
14779 the API is preserved (yes, _most_, nonwithstanding the
14780 following exceptions listed, the API is stil lHUGE ;)
14781 things that got removed completely:
14782 GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
14783 gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
14784 gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
14785 gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
14786 gtk_signal_remove_emission_hook().
14787 non-functional functions variants:
14788 gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
14789 the GtkCallbackMarshal argument to gtk_signal_connect_full() is
14790 not supported anymore.
14791 (gtk_signal_compat_matched): new internal function to aid
14792 implementation of the compatibility macros, it provides
14793 functionality to block/unblock/disconnect handlers based
14796 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
14798 * *.c: adaptions to new type registration API signatures.
14800 Fri Oct 20 15:26:33 2000 Tim Janik <timj@gtk.org>
14802 * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
14804 2000-10-25 Robert Brady <robert@suse.co.uk>
14806 * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
14807 gdk_property_delete): If window == NULL, assume the root window.
14808 (restoring the behaviour that was in 1.2).
14810 * gtk/testtext.c (save_buffer): Allow creation of new files when
14813 (fill_file_buffer): Don't die if a UTF-8 sequence is split across
14816 2000-10-25 Tor Lillqvist <tml@iki.fi>
14818 * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
14820 * gdk/win32/gdkdrawable-win32.c
14821 * gdk/win32/gdkimage-win32.c
14822 * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
14825 * gdk/win32/gdkcc-win32.c
14826 * gdk/win32/gdkcolor-win32.c
14827 * gdk/win32/gdkfont-win32.c
14828 * gdk/win32/gdkinput-win32.c
14829 * gdk/win32/gdkmain-win32.c
14830 * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
14832 2000-10-24 Havoc Pennington <hp@redhat.com>
14834 * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
14835 it a static function
14837 * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
14838 redraw text when a tag is applied to it.
14840 * gtk/gtktexttag.c (gtk_text_tag_affects_size)
14841 (gtk_text_tag_affects_nonsize_appearance): private functions to
14842 see if a tag requires various kinds of redraw/layout to be queued
14845 * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
14847 * gtk/testtext.c (fill_example_buffer): Put the cursor
14848 at the start of the buffer, so search works by default
14850 * gtk/gtktextiter.c (lines_match): init match_start always
14852 * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
14853 function, get iter at a line + a byte index
14855 * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
14856 to set byte position within a line
14857 (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
14859 2000-10-23 Havoc Pennington <hp@redhat.com>
14861 * gtk/testtext.c: Re-enable the "find" dialog
14863 * gtk/testgtk.c: Add test for gdk_drawable_get_image
14865 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
14866 the arguments to gdk_draw_drawable were in the wrong order
14867 (gdk_window_paint_init_bg): This function was ignoring the
14868 init_region, instead of clipping to it, so the entire backing
14869 pixmap was cleared on every begin_paint()
14870 (gdk_window_begin_paint_region): Hmm, the same list-walking bug
14871 was in here again, the loop kept using the same GtkWindowPaint
14873 (gdk_window_begin_paint_region): Fix a bug where we had two
14874 x_offset instead of x_offset and y_offset
14876 * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
14877 before we get the image.
14878 (gdk_draw_drawable): get the composite before we draw the drawable.
14879 (gdk_drawable_real_get_composite_drawable): default
14880 get_composite_drawable implementation that returns the drawable
14883 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
14884 get_composite_drawable virtual function
14886 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
14889 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
14890 make this work if the source drawable is a GdkDrawableImplX11
14891 instead of a public drawable type. This is really broken; the
14892 problem is that GdkDrawable needs a virtual method get_xid(), but
14893 of course that doesn't work in practice. Enter RTTI.
14895 Also, improve mismatched depth message.
14897 * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
14900 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
14901 install _gdk_x11_get_image as our implementation of get_image
14903 * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
14904 _gdk_x11_get_image and export for use in gdkdrawable-x11.c
14906 * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
14907 gdk_drawable_get_image
14909 * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
14911 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
14914 * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
14915 trailing semicolon after for loop
14917 Mon Oct 23 12:07:57 2000 Owen Taylor <otaylor@redhat.com>
14919 * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
14920 where font_desc for widget's context lagged widget's font_desc by
14923 2000-10-22 Tor Lillqvist <tml@iki.fi>
14925 * gdk/win32/gdkgc-win32.c
14926 * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
14928 * gtk/makefile.mingw.in
14929 * gtk/gtk.def: Updates.
14931 * gtk/testgtk.c: sleep() is called _sleep in MS's C
14934 * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
14936 * gtk/makefile.msc: Remove
14938 * gtk/makefile.msc.in: New file, like makefile.mingw.in.
14940 * gtk/Makefile.am: Add it.
14942 * configure.in: Generate it.
14944 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
14945 * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
14946 something even if not implemented, to satisfy picky MSVC.
14948 Patches by Hans Breuer:
14950 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
14951 SetBkMode() and SetTextAlign() before calling
14952 pango_win32_render().
14954 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
14955 Set hcliprgn to NULL after destroying it.
14956 (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
14958 * gdk/win32/gdkgeometry-win32.c
14959 (_gdk_windowing_window_queue_antiexpose): More effective
14962 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
14963 depth as default, not the visual's.
14965 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
14966 against empty title.
14968 * gdk/win32/gdkprivate-win32.h: Define a helper macro,
14969 IMAGE_PRIVATE_DATA.
14971 * gdk/win32/gdkimage-win32.c: Use it.
14973 2000-10-22 Robert Brady <robert@suse.co.uk>
14975 * configure.in: Check for bind_textdomain_codeset
14977 * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset
14978 present, make use of it.
14980 Add a translatable string "default:LTR" which, if translated
14981 to "default:RTL", will cause the default direction to be
14984 * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget
14985 direction if marked as flippable.
14987 * gtk/gtkhscale.c: Mark widget as flippable.
14989 2000-10-04 Havoc Pennington <hp@redhat.com>
14991 * gtk/testgtk.c (create_buttons): create some stock buttons
14992 with the default accel group
14993 (create_image): test some new GtkImage features
14994 (make_message_dialog): test GtkMessageDialog
14995 (create_modal_window): fix someone's bizzarro indentation
14997 * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement
14998 GTK_WIN_POS_CENTER_ON_PARENT.
14999 Add "destroy with parent" setting, which means the window goes
15000 away with its transient parent.
15001 (gtk_window_get_default_accel_group): get the default accel group
15003 (gtk_window_set_destroy_with_parent): set/unset destroy with
15005 (gtk_window_read_rcfiles): invalidate icon set caches
15006 after reloading rcfiles
15008 * gtk/gtkenums.h (GtkWindowPosition): add
15009 GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog
15010 on its parent window when the dialog is mapped for the first time.
15012 * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add
15013 a simple message dialog class
15015 * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event
15016 handler to emit response signal, and maybe later it would
15017 honor a hide_on_delete flag - though that isn't there yet.
15018 Set border width on the vbox to 2, so we get some padding.
15019 Use a button box for the action area.
15020 (gtk_dialog_key_press): synthesize a delete event if Esc
15021 is pressed and the GtkWidget key press handler didn't
15022 handle the escape key.
15023 (gtk_dialog_new_with_buttons): new function creates a dialog
15024 with some default buttons in it.
15025 (gtk_dialog_add_action_widget): add an activatable widget
15026 as a button in the dialog - you can also add a non-activatable
15027 widget by accessing the action area directly.
15028 (gtk_dialog_add_button): add a simple button - stock ID or
15029 label - to the action area
15030 (gtk_dialog_response): emit response signal
15031 (gtk_dialog_run): block waiting for the dialog, return
15032 the response. Override normal delete_event behavior, so that
15033 delete_event does nothing inside gtk_dialog_run().
15035 * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
15036 emitted when an action widget is clicked or the dialog gets
15039 * gtk/gtk.h: add gtkmessagedialog.h
15041 * gtk/Makefile.am: add gtkmessagedialog.[hc]
15043 2000-10-18 Havoc Pennington <hp@redhat.com>
15045 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
15046 where any number of empty lines would get skipped
15048 * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
15051 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
15052 warning about invalid iterators (explain more thoroughly)
15053 (gtk_text_iter_in_region): rename gtk_text_iter_in_range
15055 * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
15058 * demos/*.c: Add error handling
15060 * gtk/gtktextbuffer.c: don't modify const iterators
15062 * gtk/gdk-pixbuf-loader.c: Add full error handling here
15064 * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
15067 * gtk/gtkiconfactory.c: Update to reflect addition of error
15068 handling to gdk-pixbuf loaders
15070 Wed Oct 18 11:14:05 2000 Owen Taylor <otaylor@redhat.com>
15072 * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
15073 move to new modularized testgtk.
15075 2000-10-17 Jonathan Blandford <jrb@redhat.com>
15077 * gtk/gtktreeview.c: Draw the arrows correctly.
15079 * gtk/gtktreemodel.c: Added user docs.
15081 * gtk/gtk.h: remove gtktreedatalist.h.
15083 * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
15084 parent when generating my type.
15086 * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
15087 POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
15089 2000-10-16 Jonathan Blandford <jrb@redhat.com>
15091 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
15092 GtkTreeModel from object to interface.
15094 2000-10-16 Havoc Pennington <hp@redhat.com>
15096 * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing
15099 2000-10-16 Jonathan Blandford <jrb@redhat.com>
15101 * gtk/gtktreeselection.c: Add API documentation to all public
15104 * gtk/gtktreeviewcolumn.c: Added API documentation to all public
15107 2000-10-15 Jonathan Blandford <jrb@redhat.com>
15109 * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
15110 proposed by Guy Harris <gharris@flashcom.net>. Also, added API
15111 docs to all public functions.
15113 * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
15114 gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
15115 gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
15116 gtk/gtktreemodel.h, gtk/gtktreeselection.c,
15117 gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
15120 2000-10-14 Robert Brady <robert@suse.co.uk>
15122 * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
15124 2000-10-12 Jonathan Blandford <jrb@redhat.com>
15126 * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
15127 values other then G_TYPE_STRING.
15128 * gtk/gtktreeselection.c: Minor commenting updates.
15129 * gtk/gtktreeview.c: Format updates.
15131 2000-10-09 Tor Lillqvist <tml@iki.fi>
15133 * README.win32: Update.
15135 * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
15136 lines that had been deleted by mistake (?).
15138 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
15139 also the case fg==white and bg==black (but still not randomly
15140 coloured cursors). Thanks to Wolfgang Sourdeau.
15142 * gdk/win32/*.c: Silence gcc -Wall.
15144 * gtk/gtk.def: Add missing entry points.
15146 Fixes by Hans Breuer:
15149 * gdk/win32/makefile.msc: Update.
15151 * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
15152 some MSVC thing, presumably), cause breakpoint on failures. Add
15153 GDK_NOR case. Call g_log_set_always_fatal.
15155 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
15156 should be pased by reference.
15158 * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
15160 * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
15162 * gdk/win32/gdkevents-win32.c
15163 * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
15165 * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
15166 implementation object.
15168 * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
15171 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
15172 Use the wrapper object.
15174 2000-10-06 Havoc Pennington <hp@redhat.com>
15176 * Makefile.am (SRC_SUBDIRS): contrib subdir
15178 * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
15179 so it can be used in Xlib version
15181 * demos/testpixbuf.c (update_timeout): error checking from 1.0
15184 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
15185 change from 1.0 tree that returns first frame of animation
15186 if the loaded file is an animation.
15188 * contrib: add new directory to hold stuff that comes with GTK+
15189 but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
15191 * configure.in: add contrib/*
15193 2000-10-05 Havoc Pennington <hp@redhat.com>
15195 * demos/testpixbuf-save.c: add pixbuf save test
15197 * demos/Makefile.am: add testpixbuf-save.c
15199 2000-10-05 Jonathan Blandford <jrb@redhat.com>
15201 * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
15202 GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
15203 * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
15204 * gtk/gtktreeselection.[ch]: Replaced
15205 "node_selected"/"node_unselected" signal with "selection_changed"
15208 2000-10-04 Jonathan Blandford <jrb@redhat.com>
15210 * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
15213 2000-10-04 Jonathan Blandford <jrb@redhat.com>
15215 * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
15218 Wed Oct 4 15:52:15 2000 Owen Taylor <otaylor@redhat.com>
15220 * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
15221 Move list pointer forwards before removing item from
15222 list. (Crash reported by Salmaso Raffaele)
15224 * gdk/gdkwindow.h: Remove spurious trailing ,
15226 * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
15227 dependencies on uninstalled libraries, sorry folks.
15229 2000-10-04 Havoc Pennington <hp@redhat.com>
15231 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
15232 gtk/gtkiconfactory.c: Fix copyrights
15234 * demos/testpixbuf.c: add inline pixbuf test
15236 Mon Sep 25 15:05:17 2000 Owen Taylor <otaylor@redhat.com>
15238 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
15239 Add gdk_window_iconify.
15241 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
15242 (gdk_window_set_geometry_hints): Add win_gravity
15243 to geometry structure.
15245 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
15246 Implement _NET_WM_PING.
15248 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
15249 Set _NET_WM_PID on the client leader.
15251 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
15252 Handle UTF-8 better.
15254 * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
15255 UTF-8 better, set _NET_WM_NAME as well. Only set
15256 icon name if it hasn't previously been explicitely
15259 2000-10-03 Havoc Pennington <hp@redhat.com>
15261 * gtk/testtextbuffer.c: clean up trailing whitespace,
15262 add extensive tests for tag toggle iteration.
15264 * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
15267 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
15268 optimize case where the tag root is on level 1
15269 (gtk_text_line_previous_could_contain_tag): attempt to implement
15270 (gtk_text_line_next_could_contain_tag): Abstract out node_compare
15273 * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
15274 Implement this, though not very efficiently.
15276 * gtk/gtktextiterprivate.h: reformat
15278 * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
15281 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
15282 this to properly revalidate the iterators.
15284 * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
15285 properly at the end of the line (and therefore on empty lines)
15287 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
15288 maybe we should return a value...
15290 2000-10-03 Tor Lillqvist <tml@iki.fi>
15292 * config.h.win32: Guard definition of alloca(). glib.h now handles
15296 * gtk/gtk.def: Add new entry points.
15298 Changes just to make GTK+ build without errors on Win32. No hope
15299 of it working in its current state, though...:
15301 * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings. Add
15302 some functions from the X11 backend, just to make GTK+ build.
15304 * gdk/makefile.mingw.in
15305 * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
15306 number. Add new object files.
15308 * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
15309 GetMessageTime to get timestamp (where on X11 uses
15310 gdk_x11_get_server_time()).
15312 2000-10-02 Havoc Pennington <hp@pobox.com>
15314 * gtk/gtktextview.c: text_window_* weren't static and should have
15316 Start work on child widgets; not yet complete, syncing to
15319 * gtk/gtktextchild.h: change this to contain a public interface,
15320 starting work on child interfaces.
15321 * gtk/gtktextchildprivate.h: move private interfaces here
15323 * gtk/Makefile.am: update to reflect gtktextchildprivate.h
15325 * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
15326 gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c,
15327 gtk/gtktextmark.c: copyright notices
15329 * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
15332 * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
15335 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
15338 2000-09-30 Havoc Pennington <hp@pobox.com>
15340 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
15341 NULL start/end pointers
15343 * gtk/gtktextbuffer.c: Write some docs
15344 (gtk_text_buffer_get_selection_bounds): Allow start/end to be
15345 NULL, so you can just check whether there's a selection.
15347 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to
15348 cleanup_line or segments_changed ourselves, it gets done
15351 * gtk/gtktextmark.h:
15352 s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
15354 * gtk/gtktextsegment.h: Clean up some indentation and naming mess
15356 * gtk/gtktextmark.c: delete some more old Tk cruft
15358 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
15359 mark before removing it, so we can emit MARK_DELETED with a valid
15361 (gtk_text_buffer_mark_set): hold ref across signal emission
15363 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
15364 whining about attempts to delete special marks
15366 * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
15367 underscore, since it's internal.
15369 * gtk/gtktextbuffer.h: Remove find_string prototype, this is
15370 now implemented in terms of iterators in gtktextiter.h
15372 * gtk/gtktextbuffer.c (gtk_text_buffer_set_text):
15373 New function, destructively sets contents of buffer. Also
15374 a convenient way to clear the buffer by setting text to ""
15376 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
15377 multiline string literal
15379 * gtk/testtext.c (text_changed_callback): Redraw line numbers if
15382 * gtk/gtktextiter.c (forward_char): Return FALSE if new location
15383 is not dereferenceable
15384 (gtk_text_iter_forward_lines): fix return value
15386 2000-09-29 Havoc Pennington <hp@redhat.com>
15388 * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
15390 * gtk/gtktextview.c: Implement drag thresholding; change functions
15391 that set border window size to have nicer name
15392 (gtk_text_view_mark_set_handler): Fix this to have the
15395 * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
15397 * gtk/testtext.c: Update with API changes, put line numbers on
15400 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
15403 * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
15404 pixbuf; delete a big block of #if 0 Tk code
15406 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
15407 insert_pixmap with insert_pixbuf
15409 2000-09-29 Martin Baulig <baulig@suse.de>
15411 * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
15412 confusion with the GdkPixbuf of the GNOME 1.x platform.
15414 2000-09-29 Havoc Pennington <hp@pobox.com>
15416 * gtk/gtktextview.c: Implement the side windows.
15418 * gtk/testtext.c: Implement simple line numbering in the
15419 left side window; seems to make scrolling sloooow. Oops.
15420 Also, cursor blink is for some reason causing redraws
15421 of the line numbers. Should investigate...
15423 2000-09-28 Havoc Pennington <hp@redhat.com>
15425 * gtk/gtktextview.c: Set up infrastructure to deal with lots of
15426 scrolling child windows, and draw focus rectangle properly.
15428 (gtk_text_view_buffer_to_window_coords):
15429 Coordinate transformation to deal with all these freaking windows
15431 (gtk_text_view_window_to_buffer_coords): transform the other way
15433 * gtk/testtext.c (create_buffer): Update to match Pango API change
15435 * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
15437 (foreach_unref): don't emit remove signal from finalize, just
15438 set tag's parent to NULL
15440 2000-09-26 Havoc Pennington <hp@redhat.com>
15442 * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
15445 2000-09-26 Havoc Pennington <hp@redhat.com>
15447 * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
15448 headers into the private header list
15450 * Makefile.am (pkgconfig_DATA): install pkg-config files
15452 * configure.in: add pkg-config files
15454 * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
15456 * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
15457 outstanding icon caches on theme change.
15459 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
15462 (GtkIconSource): Specification for creating a pixbuf
15463 appropriate for a direction/state/size triplet from
15464 a source pixbuf or filename
15466 (GtkIconSet): List of GtkIconSource objects that are used to
15467 create the "same" icon (e.g. an OK button icon), and cache for
15470 (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
15471 up the icon set for a given stock ID. GTK maintains a stack of
15472 GtkIconFactory to search, and applications or libraries can add
15473 additional icon factories on top of the stack
15475 * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
15476 the set of GtkIconSource specified for a given stock ID into
15477 a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
15478 RcStyle, under the specified stock ID.
15480 * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
15481 render_icon used to derive a GdkPixbuf from a GtkIconSource.
15482 This allows people to theme how prelight, insensitive, etc. are
15485 (gtk_style_lookup_icon_set): Look up a stock ID in the list of
15486 icon factories for a style, and return the resulting
15489 (gtk_style_render_icon): Render an icon using the render_icon
15490 method in the GtkStyleClass.
15492 * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
15493 Use the style for a given widget to look up a stock ID, get the
15494 icon set, and render an icon using the render_icon method
15497 * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
15498 (contains information about a stock item), the built-in stock item
15499 IDs, and functions to add/lookup stock items.
15501 * gtk/stock-icons/*: Stock icons that come with GTK
15503 * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
15504 a button based on a GtkStockItem
15505 (gtk_button_new_accel): Takes a uline string and accel group, and
15506 installs the accelerator.
15508 * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
15509 image-display widget.
15511 2000-09-25 Havoc Pennington <hp@redhat.com>
15513 * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
15515 * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data):
15516 Fix a bug when removing node data, we didn't properly
15517 re-splice the linked list after removing the data.
15519 * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through
15520 GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
15522 * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
15524 * gtk/gtktextlayout.c (set_para_values): Set tab array
15525 for the layout from the GtkTextTag.
15527 * gtk/gtktexttypes.h: delete tab and search cruft,
15528 remove g_convert() in favor of GLib version
15530 * gtk/gtktexttypes.c: remove tab implementation from here,
15533 * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement
15534 tab stuff using new PangoTabArray from Pango
15536 * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
15537 unused border_width stuff
15539 Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
15541 * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
15542 glib) and now useless utf_to_latin1() latin1_to_utf()
15544 * gtk/gtktextview.[ch]: Change ::move_insert and
15545 ::delete_text action signals to ::move and ::delete;
15546 create the signals with the right enumeration type,
15547 not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
15548 C-v bindings, change Home, End to move to beginning/end
15549 of line, Add C-Home C-End to move to beginning/end
15550 of buffer. Change ::cut_text to ::cut_clipboard, etc;
15551 combine ::scroll_text into ::move; use new GtkSelectionData
15552 functions to simplify DND text handling.
15554 * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
15555 deletion enumerations here, rename enumeration values to
15556 be consistently plural.
15558 * gtk/gtktextbuffer.c: Use new clipboard interfaces
15559 for cut/copy/paste and primary selection.
15561 * gtk/gtktextbuffer.[ch]: Remove excess time and
15562 'interactive' arguments from cut/copy/paste;
15563 rename cut to cut_clipboard, etc; remove
15564 gtk_text_buffer_get_clipboard_contents().
15566 * gtk/gtktextlayout.[ch]: Add
15567 gtk_text_layout_move_iter_to_line_end() to move the iter to
15570 * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
15571 Functions to set or get a UTF-8 string on the selection
15574 * gtk/gtkclipboard.[ch]: New, simplified selection handling
15577 * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
15578 created widgets - one of these is useless if we don't.
15580 * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
15581 a public function clear all targets registered for the
15584 * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
15585 Never call gtk_widget_realize() - that was just asking
15586 for bizarre side-effects.
15588 * gtk/gtkselection.c (gtk_selection_owner_set): Call
15589 gdk_selection_owner_set even if the widget is the
15590 same so that we reliably update the timestamp on
15593 * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
15594 gdk_x11_get_server_time() function.
15596 * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
15597 gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
15598 Add some tricky filtering on serial numbers for
15599 selection clear events to fix up long-standard
15600 race condition FIXME's in gtkselection.c.
15602 * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
15603 routines to convert from utf8 to compound text or
15604 STRING and from a text property to UTF-8.
15606 * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
15607 a convenience function gdk_get_current_event_time().
15609 * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
15610 and free selection_data->data properly
15612 Sat Sep 9 10:23:53 2000 Owen Taylor <otaylor@redhat.com>
15614 * gtk/gtkthemes.c: Remove some unecessary includes.
15616 2000-09-08 Jonathan Blandford <jrb@redhat.com>
15618 * gtk/gtktextdisplay.c
15619 * gtk/gtktextlayout.c
15622 * gtk/testtext.c: Change the overstrike property to strikethrough,
15623 to closer match pango.
15625 Fri Sep 8 14:28:00 2000 Owen Taylor <otaylor@redhat.com>
15627 * gtk/gtktextview.c: Fix up visibility so that focus,
15628 cursor_visible and blink interact properly. Reenable cursor blink
15629 which had been roughly disabled. Make blink and focus
15632 * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
15633 Add a flag for whether to display insertion cursor and
15634 a function to set the flag.
15636 * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
15637 get_line_y() to get_line_yrange(), to be a bit more generally
15640 Thu Sep 07 20:54:33 2000 George Lebl <jirka@5z.com>
15642 * gtk/gtkmenu.c: in gtk_menu_set_submenu_navigation_region
15643 do stop_navigating_submenu, to clear last timeout properly.
15644 Also in gtk_menu_motion_notify move ignore_enter above
15645 the conditional to make it always happen as suggested by Owen
15647 2000-09-07 Tor Lillqvist <tml@iki.fi>
15649 * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
15651 * gdk/win32/gdkwin32.h: Add more definitions missing from the free
15654 * gdk/win32/gdkprivate-win32.h: Add a couple of missing
15657 * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
15658 (gdk_win32_get_colormap): A line had been deleted by mistake.
15660 * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
15661 (gdk_event_translate): Handle more virtual keycodes to be able to
15662 generate GDK events for Control-comma, Control-period, etc.
15664 * gtk/gtk.def: Add some missing entry points.
15666 Thu Sep 7 11:47:02 2000 Owen Taylor <otaylor@redhat.com>
15668 * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
15669 Doc comment fixing. (Mostly non-matching parameter names.)
15671 * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
15672 comments a little to avoid looking like a doc comment.
15674 * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
15675 GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
15676 conversions be changed to GError?)
15678 * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT):
15679 Move private #defines into .c file.
15681 * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
15682 order of argument addition, remove duplicates.
15684 * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
15685 parent class is FrameClass, not BinClass.
15687 * gtk/gtk.h: Add gtkinvisible, which was missing.
15688 (It's occasionalyl useful for client apps, if seldom.)
15690 * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
15693 Wed Sep 6 09:53:15 2000 Owen Taylor <otaylor@redhat.com>
15695 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
15696 coordinates when creating window, instead of GDK-space
15697 coordinates. (Avoid BadValue on too large windows.)
15699 2000-09-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
15701 * configure.in (use_mmx_asm): Remove conftest* after use along the
15702 lines of AC_TRY_COMPILE.
15704 * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
15705 of g_dirname, which is deprecated.
15706 (gtk_rc_parse_any): Removed calls to
15707 g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
15709 * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
15710 Removed calls to g_hash_table_{freeze,thaw}, as they are
15713 * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
15714 instead of g_basename.
15716 2000-09-04 Elliot Lee <sopwith@redhat.com>
15718 * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
15721 Sun Sep 03 00:47:08 2000 George Lebl <jirka@5z.com>
15723 * gtk/gtkwidget.h: Add some documenting comments about
15724 GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
15725 just as owen said on irc.
15727 * gtk/gtkwindow.c (gtk_window_set_default): Don't blindly
15728 set HAS_DEFAULT. Only set it if there isn't another window
15729 holding it (a focus window which RECEIVES_DEFAULT) and only unset
15730 it if the widget is not the focused window with RECEIVES_DEFAULT.
15731 This fixes weird double default bugs in dialogs which has things
15732 call gtk_window_set_default at times.
15734 Fri Sep 1 22:39:07 2000 Owen Taylor <otaylor@redhat.com>
15736 * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
15737 Nils Barth and David Santiago to improve submenu
15738 navigation. The patch does this by creating a triangular
15739 region from the point where the pointer leaves the
15740 menu to the submenu. While the pointer is in
15741 that region and a timeout has not expired, events
15742 that would cause the active submenu to change are
15745 Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
15747 * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
15748 moving a toplevel window immediately after sizing it would
15749 result in it being sized back to the old size since
15750 impl->width, impl->height aren't updated until we hear
15751 back from the server. There is still a (longstanding) bug
15752 here that gdk_window_get_size() will give the wrong size
15753 until we do hear back.
15755 2000-08-31 Havoc Pennington <hp@redhat.com>
15757 * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
15758 gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c,
15759 gtk/gtktexttagprivate.h, gtk/gtktextview.c:
15760 Rename GtkTextStyleValues to GtkTextAttributes
15762 2000-08-31 Havoc Pennington <hp@pobox.com>
15764 * gtk/gtktextbtree.c (GtkTextBTree): cache end line,
15765 for rapid testing whether an iterator is the end iterator
15766 (gtk_text_btree_new): init end line cache
15767 (gtk_text_line_is_last): use fast cached line to
15768 see if we're the last line.
15769 (get_last_line): use cached line here too, should
15770 speed up some random unrelated code.
15772 2000-08-30 Havoc Pennington <hp@pobox.com>
15774 * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
15777 * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
15778 delete_text signals. This allows the signals to be used for
15781 * gtk/gtktextbuffer.c: Change signal handler signatures;
15782 provide "interactive" argument when emitting insert_text or
15783 delete_text signal.
15785 2000-08-30 Havoc Pennington <hp@pobox.com>
15787 * gtk/gtktextbuffer.c: Docs
15789 Fri Aug 25 12:16:15 2000 Owen Taylor <otaylor@redhat.com>
15791 * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
15792 from switch statements, since Tor removed the enumeration
15795 * gdk/x11/gdkimage-x11.c (gdk_image_get):
15796 s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
15798 2000-08-29 Elliot Lee <sopwith@redhat.com>
15799 * */*.h: Use G_GNUC_CONST.
15801 2000-08-27 Havoc Pennington <hp@pobox.com>
15803 * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
15804 minor indentation fixes, inserted some FIXME about stuff I
15805 realized was broken while documenting it.
15806 (gtk_text_iter_get_pixmap): allow out params to be NULL, following
15809 Tue Aug 22 12:33:24 2000 Owen Taylor <otaylor@redhat.com>
15811 * gtk/testgtk.c (create_styles): Fix double free of
15814 Mon Aug 21 22:39:18 2000 Owen Taylor <otaylor@redhat.com>
15816 * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
15818 * gtk/testgtk.c (create_styles): Add a test for modifying
15819 the style through gtk_widget_modify_*.
15821 * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
15822 a function to get the current modifier style.
15824 * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
15825 of the passed in GtkRcStyle instead of ref'ing it.
15827 * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
15829 2000-08-20 Tor Lillqvist <tml@iki.fi>
15832 * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
15833 shared memory image+pixmap GdkImage type, or
15834 gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
15835 I am dropping that.
15837 * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
15838 actually call gtk_init_abi_check(), passing also
15839 sizeof(GtkWindow). Ditto for gtk_init_check().
15842 * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
15843 New functions, used to check that the GTK+-using code has been
15844 compiled using the correct compiler and switches. In particular,
15845 with gcc one has to use the -fnative-struct switch as GTK+ is
15846 compiled with that.
15848 Fri Aug 18 17:27:46 2000 Owen Taylor <otaylor@redhat.com>
15850 * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
15851 ->prev fields when merging lists. (Found simultaneously
15852 by Pawel Salek and Jakub Jelinek)
15854 2000-08-12 Tor Lillqvist <tml@iki.fi>
15857 * gtk/gtk.def: Add missing entries.
15859 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
15860 OUT_TT_ONLY_PRECIS, try to get a TrueType font.
15862 * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
15863 function. Dummy implementation at this point.
15865 * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
15866 rules. Undefine GTK_COMPILATION when compiling the test programs.
15868 * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
15870 2000-08-11 Tor Lillqvist <tml@iki.fi>
15872 * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
15873 to convert back and forth from UTF-8 and the "system" (or "current
15874 locale") charset when necessary. Indentation/spacing cleanup.
15876 2000-08-10 Havoc Pennington <hp@redhat.com>
15878 * Makefile.am (snapshot): Change the format of the snapshot
15879 version to match glib
15881 * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
15882 from EXTRA_DIST since it doesn't seem to exist
15884 2000-08-10 Tor Lillqvist <tml@iki.fi>
15886 * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
15887 version of the directory name (not the UTF-8 one) when building
15888 the path name to stat().
15890 2000-08-03 Elliot Lee <sopwith@redhat.com>
15892 * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
15893 PANGO_ATTR_SHAPE set.
15895 Thu Aug 3 09:17:06 2000 Owen Taylor <otaylor@redhat.com>
15897 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
15898 Peter Osterlund to simplify the code while keeping the
15899 functionality the same.
15901 Wed Aug 2 14:57:38 2000 Owen Taylor <otaylor@redhat.com>
15903 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
15904 is_viewable() test further inside the function, since removing the
15905 window from the redraw list without clearing ->update_area
15906 was also very broken.
15908 2000-08-02 Tor Lillqvist <tml@iki.fi>
15910 * configure.in: Check for <unistd.h>.
15912 2000-08-01 Martin Baulig <baulig@suse.de>
15914 * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
15915 to display the message that this is a development version of GTK+.
15917 Mon Jul 31 18:37:36 2000 Owen Taylor <otaylor@redhat.com>
15919 * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
15920 was depending on widget->allocation instead of the width of text_area,
15921 which was incorrect for subclasses like GtkSpinButton.
15923 * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
15924 with width == 1 tests that should be width == -1.
15926 Mon Jul 31 16:45:48 2000 Owen Taylor <otaylor@redhat.com>
15928 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken,
15929 (broken, Elliot, every single window blank on X) custom code with call
15930 to gdk_window_is_viewable() which a) prevents code duplicate and
15933 2000-07-31 Elliot Lee <sopwith@redhat.com>
15935 * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
15936 to get the GDK_PARENT_ROOT() macro to work.
15937 * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
15938 * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
15939 of, windows that aren't shown.
15940 * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
15941 pointer grab stuff.
15943 Mon Jul 31 13:53:16 BST 2000 Tony Gale <gale@gtk.org>
15945 * docs/gtkfaq.sgml docs/gtk-faq.sgml:
15946 s/gtk_main_iteration/g_main_iteration/
15948 Did this already in change:
15949 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
15950 don't know how it got reverted.
15952 2000-07-31 Stanislav Brabec <utx@penguin.cz>
15954 * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
15955 gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
15957 * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
15960 2000-07-30 Pablo Saratxaga <pablo@mandrakesoft.com>
15962 * configure.in,po/{sp,sr}.po: Added Serbian files
15964 2000-07-30 Tor Lillqvist <tml@iki.fi>
15966 * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
15968 * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
15969 Remove the g_pipe_readable_msg stuff. Not needed with new GLib
15970 GIOChannel implementation.
15972 * gdk/win32/gdkinput.c
15973 * gdk/win32/gdkpango-win32.c: Update license name here, too.
15975 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
15976 definition to match prototype.
15978 * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
15980 2000-07-27 Elliot Lee <sopwith@redhat.com>
15982 * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
15983 function, to allow handling image formats that cannot be detected
15984 by looking at content alone.
15986 Thu Jul 27 13:13:21 BST 2000 Tony Gale <gale@gtk.org>
15988 * docs/tutorial/*.gif *.jpg *.eps
15989 Update these to the same look-n-feel.
15990 Why does including images in DocBook suck so badly?
15992 Thu Jul 27 05:06:29 2000 Tim Janik <timj@gtk.org>
15994 * gtk/gtktable.c: applied patch from Phil Thompson
15995 <phil@river-bank.demon.co.uk> that enables space settings for
15996 the last row/columns as well.
15998 Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org>
16000 * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
16001 updates the license headers to the GNU Lesser General Public License,
16002 as well as updating the copyright year to 2000.
16004 2000-07-26 Robert Brady <rwb197@zepler.org>
16006 * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
16007 and po/Makefile, was installing and looking for them under gtk20
16008 and gtk2 respectively.
16010 2000-07-25 Havoc Pennington <hp@redhat.com>
16012 * gtk/testtext.c: Comment out some stuff that depends on the rest
16015 2000-07-25 Havoc Pennington <hp@redhat.com>
16017 * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
16020 2000-07-25 Havoc Pennington <hp@redhat.com>
16022 * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
16025 * gtk/gtktextview.h: To be consistent with usage of "line"
16026 throughout the API to mean "newline-terminated thingy", change
16027 MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
16030 (GtkTextView): Add flags for default editability, and whether to
16031 show the cursor. Add functions to get/set that. Add
16033 (gtk_text_view_get_iter_location): new function
16035 * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
16037 (g_convert): Add g_convert temporarily, will go in glib in a bit
16039 * gtk/gtktexttagtable.h: include gtktexttag.h, and define
16040 GtkTextTagTableForeach instead of brokenly using GHFunc.
16041 Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
16043 * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
16044 moved to public header.
16046 * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
16047 "invisible", since "elide" was a bad name.
16048 (gtk_text_tag_get_priority): Added
16050 (GtkTextStyleValues): put this in public header, along with
16051 functions to use it.
16053 * gtk/gtktextmarkprivate.h: Include more headers, since we no
16054 longer include gtktextbtree.h.
16056 * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
16057 gtk_text_mark_deleted
16059 * gtk/gtktextlayout.h: Don't include the "really private" headers,
16060 only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
16061 to make this possible. Now we only need to install
16062 gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
16063 (However the Makefile.am isn't changed yet because of the
16064 logistics of merging gtk-hp-patches piecemeal)
16066 * gtk/gtktextiterprivate.h: include btree header, so it compiles;
16067 rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
16068 gtk_text_iter_get_line is now used in the public API for a
16071 * gtk/gtktextiter.h: Clean up function names to be more
16072 consistent. Always call char offset "offset" and byte index
16073 "index". A "line" is always a line number.
16075 (gtk_text_iter_is_last): new function, more efficient than
16076 the existing way to check
16077 (gtk_text_iter_is_first): new function, also more efficient
16079 (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
16081 (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from
16082 gtk_text_iter_forward_char, etc.
16084 (gtk_text_iter_forward_to_tag_toggle): Renamed from
16085 forward_find_tag_toggle, since this isn't a linear search
16087 (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
16089 (gtk_text_iter_forward_search, gtk_text_iter_backward_search):
16090 New functions, search for a buffer substring.
16092 * gtk/gtktextbuffer.h: Add fields to store whether a paste is
16093 interactive and default editable (since we need to store that info
16094 until we receive the selection data).
16096 Remove all the _at_char and at_line etc. versions of functions;
16097 only have iterator versions.
16099 Add _interactive() versions of functions, that consider the
16100 editability of text. (FIXME add interactive flag to the
16101 insert/delete signals per Darin's suggestion)
16103 (gtk_text_buffer_get_tag_table): new function, demand-creates the
16104 tag table if necessary
16106 Remove declaration of gtk_text_buffer_get_iter_from_string
16108 (_gtk_text_buffer_get_btree): private/internal function, added.
16111 * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
16112 (gtk_text_line_is_last): new function
16114 2000-07-25 Havoc Pennington <hp@redhat.com>
16116 * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
16117 using GtkProgressBar. See Changes-2.0.txt for details.
16119 * gtk/gtkprogressbar.c: Add object arguments "fraction" and
16120 "pulse_step" which are the equivalent of
16121 gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
16124 * gtk/gtkprogress.h (struct _GtkProgress): Add a field
16125 (use_text_format) to mark whether text set on the progress bar is
16126 a format string. Deprecate entire GtkProgress interface.
16128 * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
16129 (gtk_progress_build_string): make this a no-op if use_text_format
16132 * docs/Changes-2.0.txt: Describe progress bar changes.
16134 2000-07-25 Tor Lillqvist <tml@iki.fi>
16136 * Makefile.am: Include the build directory.
16138 * configure.in: Generate build/Makefile, build/win32/Makefile,
16139 gdk/, gdk/win32/, and gtk/makefile.mingw.
16141 * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
16142 Add GETTEXT_PACKAGE.
16145 * gtk/gtk.def: Updates.
16148 * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
16149 need them any longer.
16151 * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
16153 * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
16154 PANGOWIN32_LIBS and gdk_pixbuf.
16156 * gdk/win32: Compiles, but no doubt doesn't work at all.
16158 * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
16160 * gdk/win32/gdkinput.c: New file, temporarily.
16162 * gdk/win32/gdkinput-win32.h: New file
16164 * gdk/win32/gdkinputprivate.h: Remove.
16166 * gdk/win32/gdkpango-win32.c: New file.
16168 * gtk/makefile.mingw.in: New file
16170 * gtk/makefile.cygwin: Removed
16172 * gtk/Makefile.am: Update accordingly.
16174 * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
16175 made externally visible.
16177 * gtk/gtkmain.c: Use it.
16179 * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
16182 * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
16184 2000-07-24 Elliot Lee <sopwith@redhat.com>
16185 * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
16186 individual backends already.
16187 * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
16188 again. Yes, there really is a good reason for this, if you are using the gdkregion
16189 internals, and if you're not, why do you care?
16190 * gdk/gdkwindow.c: Fix inverted condition
16191 * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
16192 * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
16193 * gtk/gtkrange.c: Redraw trough when moving.
16194 * gtk/gtktypeutils.c: Fix warning by adding const cast.
16195 * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
16197 2000-07-23 Tor Lillqvist <tml@iki.fi>
16199 * configure.in: Check for mkstemp and sigsetjmp. Output
16200 gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
16202 More work on GDK for Win32. Still in an intermediate state.
16204 * gdk/makefile.cygwin
16205 * gdk/win32/makefile.cygwin: Removed.
16207 * gdk/makefile.mingw.in
16208 * gdk/win32/makefile.mingw.in: New files.
16211 * gdk/win32/Makefile.am: Generate and distribute them.
16213 * gdk/win32/gdkwindow-win32.h
16214 * gdk/win32/gdkdrawable-win32.h
16215 * gdk/win32/gdkpixmap-win32.h: New files.
16217 * gdk/win32/gdkcolor-win32.c
16218 * gdk/win32/gdkcursor-win32.c
16219 * gdk/win32/gdkdrawable-win32.c
16220 * gdk/win32/gdkgc-win32.c
16221 * gdk/win32/gdkimage-win32.c
16222 * gdk/win32/gdkprivate-win32.h
16223 * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
16224 Rename fields and variables called xcursor, xid, etc (these names
16225 were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
16227 Sat Jul 22 17:41:26 2000 Owen Taylor <otaylor@redhat.com>
16229 * gtk/gtkentry.[ch]: Fix some problems with vertical
16232 * gtk/gtkentry.c (gtk_entry_find_position): Fix
16233 char/byte confusion.
16235 Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
16237 * gtk/gtktextview.c (changed_handler): Fix bug where
16238 redraw wasn't being done properly when height of
16239 dirty region changed.
16241 * demos/Makefile.am: Remove various references to
16244 Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
16246 * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
16247 PangoAttrShape to reserve space for pixmaps, add
16248 GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
16249 in the display functions.
16251 * gtk/testgtk.c (create_layout): Set some more exotic
16252 scrolled window options
16254 * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
16255 Add function to set the shadow type of a window, to allow
16256 putting a shadow around widgets such as GtkLayout or GnomeCanvas
16257 which don't draw their own frame.
16259 Fri Jul 21 16:34:42 BST 2000 Tony Gale <gale@gtk.org>
16261 * docs/tutorial/package-db-tutorial.sh: New file for
16262 packaging DocBook format tutorial
16264 Fri Jul 21 14:23:51 BST 2000 Tony Gale <gale@gtk.org>
16266 * docs/tutorial/gtk-tut.sgml: Minor updates
16268 * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
16270 2000-07-19 Tor Lillqvist <tml@iki.fi>
16272 * gtk/gtksignal.c: Fix C++ comment.
16274 * gtk/gtkimmulticontext.c
16275 * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
16276 don't return value from void functions.
16278 * gtk/gtk.def: Add gtk_rc_style_unref.
16280 2000-07-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
16282 * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
16283 gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
16284 gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
16285 gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
16286 gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
16287 gtk/gtktypeutils.h: Include files outside of the extern "C"
16288 block. Makes some C++ compiler happy. Reported by Denis Vakatov
16289 <vakatov@peony.nlm.nih.gov>.
16291 Wed Jul 19 14:07:57 BST 2000 Tony Gale <gale@gtk.org>
16293 * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
16294 Completes first pass. Hurrah!
16296 Tue Jul 18 17:17:55 BST 2000 Tony Gale <gale@gtk.org>
16298 * docs/tutorial/gtk-tut.sgml: More clean ups.
16300 Mon Jul 17 18:52:38 2000 Owen Taylor <otaylor@redhat.com>
16302 * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
16303 paint the background of the text area which was accidentally
16304 removed at some point.
16306 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]:
16308 - Move most of the functionality from the theme vtable
16309 into GtkRcStyleClass and GtkStyleClass. The moved
16310 vtable functions were changed a bit in the move to
16311 work better in their new home.
16313 - Get rid of the engine and engine_data fields from
16314 GtkRcStyle and GtkStyle; instead the theme
16315 engine derives theme-specific subclasses of GtkRcStyle
16318 - Add extra dlsym() found entry point to themes,
16319 theme_create_rc_style().
16321 * gtk/gtkstyle.c: Copy xthickness, ythickness fields
16322 in gtk_style_real_copy.
16324 * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
16325 to register a type associated with an engine. (The engine
16326 won't be unloaded as there is an instance of the type.)
16329 Mon Jul 17 18:19:06 BST 2000 Tony Gale <gale@gtk.org>
16331 * docs/tutorial/gtk-tut.sgml: Clean ups.
16333 Mon Jul 17 13:59:29 BST 2000 Tony Gale <gale@gtk.org>
16335 * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
16336 of cleaning up to do.
16338 2000-07-15 Tor Lillqvist <tml@iki.fi>
16340 * gdk/testgdk.c: New file, quick hack to test backends for
16341 pixel-by-pixel correctness of the most simple graphic operations.
16343 Fri Jul 14 20:30:25 2000 Owen Taylor <otaylor@redhat.com>
16345 * Really release 1.3.1
16347 * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
16350 Fri Jul 14 18:40:39 2000 Owen Taylor <otaylor@redhat.com>
16354 Fri Jul 14 16:21:26 2000 Owen Taylor <otaylor@redhat.com>
16356 * gtk/gtktextlayout.c: use FALSE for size_only most
16357 of the time when calling gtk_text_layout_get_line_display()
16358 to avoid causing double reshapes when a redraw follows
16361 Tue Jul 11 11:13:40 2000 Owen Taylor <otaylor@redhat.com>
16363 * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
16364 appropriate region and gdk_window_process_updates() so trough
16365 updating doesn't lag behind the window being scrolled.
16367 * gdk/gdkgc.c: Make parent_class pointer static.
16369 Sun Jul 9 21:31:23 2000 Owen Taylor <otaylor@redhat.com>
16371 * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
16372 include <string.h>.
16374 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
16375 cut-and-paste error in computing memory offset for 4 channels.
16377 Fri Jul 14 14:05:02 2000 Owen Taylor <otaylor@redhat.com>
16379 * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
16380 gtk_rc_append_default_pixmap_path(), since it wasn't
16381 adding an interesting path and we don't have a meaningful
16382 default for this value.
16384 Fri Jul 14 12:22:49 2000 Owen Taylor <otaylor@redhat.com>
16386 * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
16387 gtk-config to gtk-config-2.0 move gtk_.m4 to
16390 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
16391 gdk/Makefile.am demos/Makefile.am: Change
16392 library names to libgtk-1.3.la, etc, so that we
16393 can distinguish gtk-1.2 and gtk-2.0 on the linkline.
16395 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
16396 gdk/Makefile.am gdk/x11/Makfile.am
16397 Move include files into /usr/include/gtk-2.0,
16398 /usr/lib/gtk-2.0/include/
16400 * autogen.sh acconfig.h configure.in gtk/gtkmain.c
16401 gtk/gtkintl.h: Change package for gettext from
16402 gtk+ to gtk20. Put hack in autogen.sh to modify
16403 po/Makefile.in.in after gettextize to make this
16406 * gtk+.spec: Some updates, not tested.
16408 * gdk-pixbuf/Makefile.am: Move loaders into
16409 $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
16411 * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
16412 $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
16413 to THEMENAME/gtk-2.0/. Move engine directory to
16414 $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
16416 2000-07-12 Tor Lillqvist <tml@iki.fi>
16418 Win32 changes, still doesn't build though.
16420 * gdk/makefile.cygwin
16421 * gdk/win32/makefile.cygwin
16422 * gtk/makefile.cygwin: Updates.
16424 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
16425 default values for fg and bg pixel as X11 does (0 and 1), not
16426 black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
16427 Use 0 for pen width by default (treated as 1 anyway later, but for
16428 apps that might check the value in the GdkGC).
16429 (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
16430 interface to gdk_gc_predraw and _postdraw.
16432 * gdk/win32/gdkwin32.h
16433 * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
16435 * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
16436 extraneous semicolon.
16438 * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
16440 * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
16441 not the Win32 bitspixel value.
16443 * gdk/win32/gdkcc-win32.c:
16444 * gdk/win32/gdkcolor-win32.c
16445 * gdk/win32/gdkprivate-win32.h
16446 * gdk/win32/gdkwin32.h: Changes to make compilable, with new
16447 GDK object structure.
16449 Tue Jul 11 20:59:35 2000 Tim Janik <timj@gtk.org>
16451 * docs/tutorial/gtk_tut_12.es.sgml (name):
16452 * docs/tutorial/gtk_tut_it.sgml (name):
16453 * docs/tutorial/gtk_tut_fr.sgml (name):
16454 * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
16455 outdated email adress: s/timj@psynet.net/timj@gtk.org/.
16457 Tue Jul 11 13:10:57 BST 2000 Tony Gale <gale@gtk.org>
16459 * docs/faq/gtk-faq.sgml: Cleanup indenting and various
16462 Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org>
16464 * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
16465 a bug here, never been here and never fixed anything ;(
16466 (don't segfault if tree->root_tree is NULL, which happens prior
16467 to widget realization, but puke instead).
16469 Tue Jul 11 06:38:42 2000 Tim Janik <timj@gtk.org>
16471 * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
16472 add the necessary tokens.
16474 * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
16475 (gtk_rc_style_to_style): copy thicknesses.
16476 (gtk_rc_init_style): apply thicknesses.
16477 (gtk_rc_parse_style): parse xthickness and ythickness.
16479 * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
16481 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new):
16483 (_gdk_windowing_window_init):
16484 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new):
16485 (gdk_pixmap_create_from_data):
16486 (gdk_bitmap_create_from_data):
16488 * gdk/x11/gdkimage-x11.c (gdk_image_get):
16490 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new):
16491 * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new):
16492 * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
16493 (gdk_colormap_get_system):
16494 (gdk_colormap_new):
16495 * gdk/gdkwindow.c (gdk_window_init):
16496 * gtk/gtkstyle.c (gtk_style_new):
16497 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
16498 * gdk/gdkpixmap.c (gdk_pixmap_init):
16499 * gtk/gtkrc.c (gtk_rc_style_new):
16500 use g_object_new() instead of g_type_create_instance() which
16501 is a private function for fundamental type implementations.
16503 Thu Jul 6 16:12:14 2000 Owen Taylor <otaylor@redhat.com>
16505 * configure.in: Add check for db2html
16507 Thu Jul 6 14:53:05 2000 Owen Taylor <otaylor@redhat.com>
16509 * gtk/gtktypeutils.c (gtk_type_init): Add a temporary
16510 hack to set glib_debug_objects based on gtk_debug_flags.
16512 Thu Jul 6 14:12:13 2000 Owen Taylor <otaylor@redhat.com>
16514 * INSTALL.in: Update the Prerequisites section.
16516 * Makefile.am demos/Makefile.am docs/Makefile.am
16517 docs/tutorial/Makefile.am gdk/x11/Makefile.am
16518 gdk/linux-fb/Makefile.am: Dist fixes
16520 Thu Jul 6 12:26:03 2000 Owen Taylor <otaylor@redhat.com>
16522 * NEWS: 10,000 foot view of 1.3.1 changes.
16524 Thu Jul 6 11:54:03 2000 Owen Taylor <otaylor@redhat.com>
16526 * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
16527 gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
16528 gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
16529 gdk/x11/gdkmain-x11.c:
16531 Patch from George Lebl to add a GdkGrabStatus enumeration to use
16532 as a return value of gdk_*_grab(). Previously, we just
16533 returned the X11 values directly.
16535 Thu Jul 6 11:27:44 2000 Owen Taylor <otaylor@redhat.com>
16537 * gdk/x11/Makefile.am: Patch from George Lebl to
16538 install all the headers in the right place.
16540 Tue Jul 4 13:13:01 BST 2000 Tony Gale <gale@gtk.org>
16542 * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
16543 initial conversion to DocBook.
16545 2000-07-04 Tor Lillqvist <tml@iki.fi>
16547 * README.win32: Improve a bit.
16549 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
16550 WM_SYSCHAR, and other changes to get handling of Alt+nnn or
16551 Alt+0nnn on the numpad (used to enter characters by numeric code
16552 from current DOS or ANSI codepage) working correctly, as in other
16555 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
16556 same argument validity tests as in X11 version.
16557 (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
16559 * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
16560 definitions in case missing from headers.
16562 * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
16563 destroy the window-specific cursor.
16564 (RegisterGdkClass): Use the global gdk_ProgInstance instead of
16565 calling GetModuleHandle(NULL).
16566 (gdk_window_set_cursor): Reworked to always copy the passed cursor
16567 with CopyCursor before setting it as the window-specific
16568 cursor. It is OK for the caller to destroy the GdkCursor (and thus
16569 also its Windows cursor) after calling this function. Destroy any
16570 previous window-specific cursor.
16572 Mon Jul 3 17:54:49 2000 Owen Taylor <otaylor@redhat.com>
16574 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
16575 font charset is iso8859-1, not iso-8859-1.
16577 Mon Jul 3 17:08:14 2000 Owen Taylor <otaylor@redhat.com>
16579 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
16580 Use g_get_charset() instead of g_get_codeset().
16582 * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h:
16583 Comment out some strdup'ing functions to keep timj
16584 happy until we finish fighting this out.
16586 Mon Jul 3 14:24:16 2000 Owen Taylor <otaylor@redhat.com>
16588 * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
16589 <= width or height.
16591 * gtk/gtktable.c (gtk_table_attach): Fix missed merge
16592 from 1.2 for parent/child states.
16594 * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
16597 * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
16598 event structures, replace with a generic axes field. Replace
16599 deviceid/sourec with GdkDevice *device.
16601 * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
16602 to extract particular axis use value from event. (Also
16603 can be used for normal X/Y.)
16605 * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
16606 allow for arbitrary number of axes, namespace everything
16607 as gdk_device_*. Replace guint32 deviceid with GdkDevice *
16610 * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}:
16611 Get rid of the gdk_input_vtable setup if favor of simply
16612 defining the functions in gdkinput-none/gxi/xfree.c in
16613 a similar fashion to the way that the port structure is
16616 * gtk/gtkdnd.c: Fix fields of synthesized button press event
16617 for new event structures.
16619 * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
16620 new device interfaces.
16622 Sun Jul 2 18:19:50 2000 Owen Taylor <otaylor@redhat.com>
16624 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
16625 set the initial text.
16627 * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
16628 gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
16629 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
16630 gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
16632 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
16633 pango_layout_set_font_description to simplify.
16635 Sun Jul 2 17:43:41 2000 Owen Taylor <otaylor@redhat.com>
16637 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
16638 pango_layout_set_font_description to simplify.
16640 Sun Jul 2 17:06:40 2000 Owen Taylor <otaylor@redhat.com>
16642 * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
16643 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
16644 pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
16646 * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
16647 PANGO_PIXELS() macro.
16649 Sun Jul 2 15:24:41 2000 Owen Taylor <otaylor@redhat.com>
16651 * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
16652 that returns a PangoContext owned by the widget and updated to
16653 match future changes in the widget. Also, make
16654 gtk_widget_create_pango_layout() use this context. If we ever
16655 add a ::changed signal to PangoContext, this will make things
16656 much more convenient.
16658 * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
16659 in the appropriate places instead of destroying the layouts and
16662 * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
16663 in a few strategic places.
16665 Sun Jul 2 14:37:58 2000 Owen Taylor <otaylor@redhat.com>
16667 * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call
16668 gtk_widget_size_request() on reparented child, if one. Otherwise,
16669 queue_resize() on the child never results in it getting size-requested
16672 * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
16673 in option menus, so that (with luck) people won't copy it into
16674 their apps in the future.
16676 * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
16677 to gtk_option_menu_calc_size. This isn't perfect, but should fix
16678 a lot of problems with changing the size of the menu's menu
16679 items after adding it to the option menu.
16681 * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
16683 * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
16684 the text direction for a widget changes.
16686 * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
16687 ::direction_changed to get rid of various hacks.
16689 Sun Jul 2 13:19:12 2000 Owen Taylor <otaylor@redhat.com>
16691 * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
16694 Sun Jul 2 13:06:26 2000 Owen Taylor <otaylor@redhat.com>
16696 * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
16697 flag to the structure. Do not call XFreePixmap on pixmaps created
16698 by gdk_pixmap_foreign_new().
16700 Sun Jul 2 12:45:50 2000 Owen Taylor <otaylor@redhat.com>
16702 * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
16703 value using GdkRGB functionality given GdkColormap and GdkColor.
16704 (name not final, waiting for inspiration.)
16706 * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
16707 set the foreground/background of a GC using the GC's colormap
16708 and GdkRGB. (name not final, waiting for inspiration.)
16710 * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
16711 gdk_rgb_get_cmap(), put #define in gdkcompat.h.
16713 * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
16714 gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
16715 purely a function of the corresponding colormap. Make
16716 gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
16718 * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
16719 gdk_pixbuf_*create_from_xpm_* in terms of
16720 gdk_pixbuf_new_from_xpm_data(), move into platform independent
16723 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
16724 advantage of the new draw_rgb_32_image_dithalign.
16726 * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
16728 * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
16729 on each created GC.
16731 * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
16733 * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
16734 which we initialize from the drawable when the GC is created,
16735 if the drawable has a colormap.
16737 * gdk/x11/gdkgc-x11.c: include string.h for memset.
16739 * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
16741 * gtk/gtklayout.[ch]: Remove unsed configure serial member.
16743 Sat Jul 1 16:28:32 2000 Owen Taylor <otaylor@redhat.com>
16745 * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
16746 actually returning expose events, make sure to set
16747 the count field properly.
16749 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
16750 accidentally reintroced bug which always cleared
16751 the graphics_exposures value.
16753 Wed Jun 28 18:03:09 BST 2000 Tony Gale <gale@gtk.org>
16755 * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
16757 Wed Jun 28 17:49:05 BST 2000 Tony Gale <gale@gtk.org>
16759 * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
16761 Wed Jun 28 13:31:55 BST 2000 Tony Gale <gale@gtk.org>
16763 * docs/faq/gtk-faq.sgml: Start of Section 6.
16765 Mon Jun 26 19:37:04 2000 Owen Taylor <otaylor@redhat.com>
16767 * configure.in: Put 1.3.1 in warning message, not 1.3.0.
16769 (Fixes problem with drawing childless frames. Pointed out
16770 by and a first patch from Anders)
16772 * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
16773 compute a child_allocation, even if we don't have a child.
16775 * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
16776 Always chain to the parent's impl, even if we don't have a child.
16778 Mon Jun 26 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
16780 * gdk/gdkrgb.c: If possible, create only a single shm segment and
16781 use multiple parts of it instead of creating a bunch of separate
16782 segments, since the maximum number of segments per system is not
16783 large. (This might be worth backporting to GTK+-1.2.x if we make a
16786 * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
16787 structure in preparation for per-colormap GdkRGB.
16789 * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
16790 to False when we get EINVAL from shmget so that the caller of
16791 gdk_image_new can retry with a smaller segment size.
16793 Mon Jun 26 13:01:16 BST 2000 Tony Gale <gale@gtk.org>
16795 * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
16797 Fri Jun 23 17:54:23 2000 Tim Janik <timj@gtk.org>
16799 * configure.in: make the current version number 1.3.1 (binary age 0,
16802 * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
16803 gtkcompat.h is all we want.
16805 * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
16806 GLib primitive types. fixed g_type_register_fundamental() argument
16809 * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
16812 * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
16813 object code cleanup, comment trigraph fixes, etc...
16815 2000-06-23 Havoc Pennington <hp@redhat.com>
16817 * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark
16818 instead of making up a bogus name for first_para_mark
16820 * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow
16823 Thu Jun 22 17:43:51 BST 2000 Tony Gale <gale@gtk.org>
16825 * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
16827 2000-06-21 Havoc Pennington <hp@pobox.com>
16829 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
16830 we didn't check window->bg_pixmap != GDK_NO_BG.
16832 * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
16835 Thu Jun 22 14:02:19 BST 2000 Tony Gale <gale@gtk.org>
16837 * docs/faq/gtk-faq.sgm: Move file to here.
16838 TODO: Update Makfile.am
16840 Thu Jun 22 13:41:09 BST 2000 Tony Gale <gale@gtk.org>
16842 * docs/gtk-faq.sgm: Add Section 2
16844 Thu Jun 22 08:43:45 BST 2000 Tony Gale <gale@gtk.org>
16846 * docs/gtk-faq.sgm: New file. Start of DocBook
16847 version of the FAQ.
16849 Wed Jun 21 23:04:17 2000 Owen Taylor <otaylor@redhat.com>
16851 * configure.in (GDK_PIXBUF_MAJOR): Define version
16852 numbers for GDK_PIXBUF_*, as they get substituted
16853 into a header file. Need to consider versioning
16854 for gdk-pixbuf more carefully later.
16856 2000-06-21 Raja R Harinath <harinath@cs.umn.edu>
16858 Work with srcdir != builddir.
16859 * demos/testanimation.c: Don't include "gdk-pixbuf.h". Use
16860 <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
16861 * demos/testpixbuf.c: Likewise.
16862 * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
16863 * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h". Use
16865 * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h". Don't include
16867 * demos/Makefile.am (INCLUDES): Remove unneeded directories.
16869 Wed Jun 21 19:45:02 2000 Owen Taylor <otaylor@redhat.com>
16871 * TODO.xml: Change 1.4 version numbers to 2.0.
16873 Wed Jun 21 19:29:08 2000 Owen Taylor <otaylor@redhat.com>
16875 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
16876 fixups to GTK+ standard.
16878 Wed Jun 21 16:38:13 2000 Owen Taylor <otaylor@redhat.com>
16880 * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
16883 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
16884 fixups for GObject.
16886 * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
16887 gdk-pixbuf with GDK dependencies moved into GDK.
16889 * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
16890 move gdk-pixbuf-loader here until GObject has signals.
16892 * demos/: New directory of demos. Move demos from
16895 * demos/pixbuf-init.c: Small bit of code to check for
16896 loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
16897 set GDK_PIXBUF_MODULEDIR appropriately.
16899 * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
16900 define which no longer makes sense.
16902 2000-06-21 Havoc Pennington <hp@redhat.com>
16904 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
16905 gtk_get_default_language
16907 * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language):
16908 new function to get the default language
16910 * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c:
16911 s/gtk_text_view_style_values/gtk_text_style_values/
16913 * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
16914 Add a "language" field to tags.
16916 (gtk_text_tag_set_arg): Fix bug in setting
16917 "bg_full_height_set" tag.
16919 2000-06-21 Havoc Pennington <hp@redhat.com>
16921 * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
16924 * gtk/gtktexttypes.c: Remove UTF functions, use glib
16925 stuff instead when possible.
16927 * gtk/gtktexttypes.h: Delete some unused constants
16929 * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
16930 testtextbuffer.c: use glib instead of custom unicode routines
16932 Wed Jun 21 12:50:58 2000 Owen Taylor <otaylor@redhat.com>
16934 * docs/es/: Removed mistakenly added generated sgml
16936 * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
16937 Remove outdated info files.
16939 * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
16940 Moved tutorial files into subdir
16942 * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
16945 * docs/man/gtk_button.pod: Remove. (contents will be
16946 integrated into gtk-reference button page.)
16948 * configure.in docs/Makefile.am docs/tutorial/Makefile.am
16949 docs/faq/Makefile.am: Adjust for new organization
16951 2000-06-21 Christopher Blizzard <blizzard@redhat.com>
16953 * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
16954 not $(MKINSTALLDIRS)
16956 Wed Jun 21 12:24:28 2000 Owen Taylor <otaylor@redhat.com>
16958 * gtk/testgtk.c (create_text): Finish the job Elliot started
16959 of removing font setting test for text widget. (Since text widget
16960 and GdkFont are not deprecated, and cause portability problems.)
16962 Wed Jun 21 11:41:43 2000 Owen Taylor <otaylor@redhat.com>
16964 * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
16965 gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
16966 Remove use of libunicode in favor of new GLib functions.
16968 * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
16969 nano-x, framebuffer. The X11 include is just a hack until we get
16970 the necessary functions in gdkcolor.h, so there is no reason to
16971 add other includes of platforms.
16973 * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert
16974 window bigger than the screen change.
16976 * gtk/testgtk.c: Revert some random changes from Elliot
16977 that had no particular point and were causing testgtkrc
16978 not to function correctly.
16980 * gdk/gdkregion-generic.h: Revert change from Elliot. Just
16981 because GdkSegment and GdkRegionBox have the same fields,
16982 it doesn't mean that 'typedef GdkSegment GdkRegionBox'
16983 results in clearer code.
16985 * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
16986 gdk_input_translate_coordinates): Fix missed GdkObjectification
16988 2000-06-18 Elliot Lee <sopwith@redhat.com>
16990 * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
16991 * gtk/gtk{plug,socket}.h: Missed commits from previous.
16993 2000-06-20 Havoc Pennington <hp@redhat.com>
16995 * modules/linux-fb/Makefile.am: Make this compile
16996 without framebuffer enabled
16998 * gdk/linux-fb/Makefile.am: Add conditional to not build
16999 framebuffer unless specified in configure
17001 * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
17002 the size of the target instead of source if -1 was passed for
17005 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
17006 width/height confusion.
17008 2000-06-19 Havoc Pennington <hp@redhat.com>
17010 * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
17011 GDK_DRAWABLE_XID. In the future, we probably want to make it
17012 faster with G_DISABLE_CHECKS turned on.
17014 2000-06-14 Havoc Pennington <hp@redhat.com>
17016 * gdk/Makefile.am: add gdkpixmap.c
17018 * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
17019 s/gdk_image_init/_gdk_windowing_image_init
17021 * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
17024 * gdk/gdkcolor.h: make GdkColormap a GObject subclass
17026 * gdk/gdkcompat.h: remove GdkWindowType compat, since
17027 GdkWindowType is now non-deprecated;
17028 change gdk_window_get_type() compat to be
17029 gdk_window_get_window_type().
17031 * gdk/gdkdnd.h: make GdkDragContext a GObject.
17033 * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
17034 virtual GObject. Make all functions call into the vtable.
17035 Move gdk_image_put() guts in here. Remove GdkDrawableType
17036 and gdk_drawable_get_type(), these are now GdkWindow-specific.
17037 draw_image, get_depth, get_size, set_colormap, get_colormap,
17038 get_visual added to the vtable.
17040 * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
17041 GObject. Virtualize everything.
17042 (gdk_gc_new_with_values): remove check for destroyed window,
17043 because now GdkWindow::create_gc will check this.
17044 (gdk_gc_set_values): New function to set GC values, this
17045 was already implemented but wasn't in the header
17047 * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
17049 * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
17050 _gdk_window_draw_image(), remove _gdk_windowing_window_class,
17051 remove _gdk_window_class; add _gdk_window_impl_get_type() and
17052 _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
17053 _gdk_windowing_window_init, rename gdk_image_init to
17054 _gdk_windowing_image_init.
17056 * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
17057 (gdk_draw_layout): Remove check for destroyed window,
17058 because all the drawable methods already check it.
17060 * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
17061 Add gdkpixmap.c which contains implementation of GdkDrawable
17062 virtual table (by chaining to a platform-specific implementation
17065 * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
17066 GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
17067 GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
17068 GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
17069 GdkColormapPrivate.
17071 * gdk/gdktypes.h: #include <glib-object.h>
17073 * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
17074 Move most functionality to platform-specific implementation
17075 object. GdkWindow itself now handles the backing store, then
17076 chains to the platform-specific implementation.
17077 (gdk_window_get_window_type): return GdkWindowType of the window.
17078 (gdk_window_peek_children): New routine, returns the children of
17080 (gdk_window_get_children): Was in X11-specific code and did
17081 XQueryTree. Changed to simply return a copy of window->children;
17082 so it can go in cross-platform code.
17084 * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
17086 * gdk/x11/gdkcolor-x11.c: implement X-specific parts of
17087 GdkColormap; just changed to use the new private data instead
17088 of casting to GdkColormapPrivate.
17090 * gdk/x11/gdkcursor-x11.c: added a couple typechecks to
17093 * gdk/x11/gdkdnd-x11.c: Change the way we access private fields
17094 (private data member in the GObject).
17095 (xdnd_manager_source_filter): Function had broken
17096 error handling, fix it (use gdk_error_trap_push).
17098 * gdk/x11/gdkdrawable-x11.c: This file now implements
17099 a base class for GdkWindowImplX11/GdkPixmapImplX11. This
17100 base class is purely for the convenience of the X port,
17101 and not part of the interface to cross-platform GDK.
17103 * gdk/x11/gdkevents-x11.c: Reflect various renamings.
17105 * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
17106 specific to X, and returned by the create_gc virtual method
17107 of GdkDrawableImplX11.
17108 (gdk_x11_gc_set_dashes): Change this to take an array of gint8
17109 rather than gchar, this was also changed in the GdkGC vtable.
17110 (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
17111 mask is 0, return immediately, instead of checking every flag.
17112 This is faster, and keeps us from segfaulting if values is NULL
17113 and the mask contains some nonzero flags.
17115 * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
17118 * gdk/x11/gdkglobals-x11.c: change type of grab window, since
17119 GdkWindowPrivate is gone.
17121 * gdk/x11/gdkim-x11.c: rename things that got renamed.
17123 * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
17124 remove the image_put stuff that got transferred to GdkDrawable.
17126 * gdk/x11/gdkinput.c: renamings
17128 * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
17130 * gdk/x11/gdkpixmap-x11.c: GObject conversion
17132 * gdk/x11/gdkprivate-x11.h: indentation fixes
17134 * gdk/x11/gdkproperty-x11.c: renamings
17136 * gdk/x11/gdkselection-x11.c: renamings
17138 * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
17139 implements the platform-specific "impl" object.
17140 Moved gdk_window_get_children to gdk/gdkwindow.c
17142 * gdk/x11/gdkx.h: Remove all the private structs and private datas
17143 that no longer exist. Add declaration of GdkGCX11 object here.
17144 Fix all the macros to still work.
17146 * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
17147 GdkDragContext from the boxed types since they are now GObjects.
17149 * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
17150 moved xthickness/ythickness into the instance. GtkStyleClass
17151 functions are now in the standard vtable for GtkStyle, so you have
17152 to create a GObject subclass to write a theme engine.
17153 (gtk_style_copy): fixed a leaked PangoFontDescription
17154 (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
17155 can be the standard GObject function.
17158 s/style->klass->[xy]thickness/style->[xy]thickness
17159 s/pango_layout_unref/g_object_unref/
17161 * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
17163 * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
17164 accessing GDK internals.
17166 * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
17167 accessing GDK internals.
17169 2000-06-18 Elliot Lee <sopwith@redhat.com>
17171 * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
17173 * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
17174 problem by calculating event position relative to the trough
17175 rather than the slider.
17176 * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
17178 * gdk/gdkgc.h: Add GDK_NOR.
17180 * configure.in, Makefile.am: Add modules top level dir
17181 * configure.in: Only use pangox library if building x11 target.
17182 * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
17184 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
17186 * gtk/gtkcolorsel.c: Change private class member to be named
17187 private_data throughout the file.
17189 * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
17190 private_data to avoid clashing with keyword.
17192 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
17194 * gdk/gdkdnd.h: Add comment to remove warning.
17196 Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
17198 * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
17199 Byelorussian language; changed the Makefile and file names
17202 Mon Jun 12 16:58:40 2000 Owen Taylor <otaylor@redhat.com>
17204 * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
17205 rather than gdk_window_hide; this makes things work
17206 correctly if the window is programmatically hidden while
17209 Sun Jun 11 12:46:19 2000 Owen Taylor <otaylor@redhat.com>
17211 * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
17212 cut and paste typo where wrong pixmap was being
17213 unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
17215 Sun Jun 11 10:22:36 2000 Owen Taylor <otaylor@redhat.com>
17217 * gtk/gtkselection.c (gtk_selection_bytes_per_item):
17218 Add helper function to compute format / bytes
17219 relationship. Use in a couple places to fix up
17220 errors which assume 8 * format.
17222 * gtk/gtkselection.c (gtk_selection_request): Use 32
17223 rather than 8 * sizeof (GdkAtom), to work correctly
17226 Thu Jun 8 21:54:51 2000 Christopher Blizzard <blizzard@redhat.com>
17228 * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
17230 (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
17233 * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
17234 checking macros return NULL since the function has a return value.
17236 Wed Jun 7 15:44:42 2000 Owen Taylor <otaylor@redhat.com>
17238 * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
17239 GTK+ from building at all.
17241 * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
17243 Mon Jun 5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
17245 * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
17246 gtk/Makefile.am: make it possible to configure gtk for different
17247 targets on the same platform. The library name is now
17248 libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
17249 flag. Only the x11 target compiles right now.
17250 * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
17251 gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
17252 * gdk/nanox/gdk*generic*: delete generic region code.
17253 * gdk/linux-fb/gdk*generic*: delete generic region code.
17254 * README.nanox: update information.
17256 Tue Jun 6 10:53:59 2000 Owen Taylor <otaylor@redhat.com>
17258 * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
17259 prepend not append. (Pointed out by Brett Hall.)
17261 Tue Jun 6 01:59:57 2000 Owen Taylor <otaylor@redhat.com>
17263 * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
17265 Mon Jun 5 16:00:09 2000 Owen Taylor <otaylor@redhat.com>
17267 * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
17268 need this later, and this makes sure that the atexit for
17269 glib gets called after that for GDK, so atexits are
17270 properly ordered for object leak checking.
17272 * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
17274 * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call
17275 pango_x_shutdown_display()
17277 * gtk/simple.c (main): Close window on destroy.
17279 Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
17281 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
17282 to treat initial creation different from setting with
17283 regards to the graphics-exposures parameter, so add a parameter
17284 indicating whether this is initial or not.
17286 Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
17288 * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
17289 to sort of work by adding an extra return_exposes arg
17290 to gdk_event_translate() - it might be better to simply
17291 deprecate the function altogether and force people to rewrite
17292 without it. gdk_window_scroll() handles most of it, and where
17293 gdk_window_scroll() doesn't work, simply redrawing more does.
17295 * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
17298 * gtk-config.in: Include PANGO_CFLAGS/LIBS.
17300 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
17301 bunch of pretty much useless /* Print debugging info */ comments
17302 which had drifted away from the code they were commenting.
17304 2000-06-02 Havoc Pennington <hp@pobox.com>
17306 * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
17307 is in working order.
17309 * gtk/testtext.c: Change to reflect anonymous mark API
17311 * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
17313 * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
17314 field, which was unused.
17316 * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
17319 * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*
17321 * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
17322 flag on the insertion point and selection bound
17324 Throughout, use GtkTextMark instead of GtkTextLineSegment, and
17325 make mark-manipulation functions take a GtkTextMark* instead of a
17328 * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to
17329 GtkTextMarkBody; will be used to detect attempts to delete
17330 the permanent marks (insert and selection bound)
17332 * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer
17334 Fri Jun 2 12:56:01 2000 Owen Taylor <otaylor@redhat.com>
17336 * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
17339 * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event):
17340 Honor DOUBLE_BUFFRED_FLAG
17342 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
17343 function to set the DOUBLE_BUFFERED flag.
17345 * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
17346 or not exposes done on the widget should be double-buffered.
17348 * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
17349 to be what would be expected. (Fixes problem with a
17350 g_return_if_fail() validating a TextDirection enumeration)
17352 Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
17354 * gtk/gtkwidget.c: Remove all references to
17355 offscreen flag which was no longer used.
17357 * gtk/gtkprivate.h (enum): Remove unused flags and compress.
17359 * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
17360 for non-null label_widget->parent.
17362 * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
17363 which no longer was used.
17365 * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
17367 * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
17368 for null arguments.
17370 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
17371 check for destroyed windows.
17373 Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
17375 * gtk/gtkimmulticontext.c: Add a finalize method and unref
17376 the slave context there.
17378 * gtk/gtkinvisible.[ch]: Make reference counting behavior
17379 identical to GtkWindow.
17381 Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
17383 * Makefile.am gdk/gdkpango.c: Copy the layout render function from
17384 pangox to here, so we can write them independent of rendering
17385 system, using GDK primitives.
17387 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
17388 gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
17389 since we have a rendering-system independent implementation in
17390 terms of draw_glyphs().
17392 * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
17393 function to render a single line.
17395 * gdk/x11/gdkpango.c: Move the guts of this file mostly
17396 into ../gdkpango.c, which simplifies things, since we
17397 don't have to deal with raw X gc's.
17399 Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
17401 * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
17402 get the logical attributes for a given GtkTextLine.
17404 Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
17406 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
17407 g_locale_get_codeset() to g_get_codeset() change.
17409 Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
17411 * gtk/testcalendar.c (calendar_font_selection_ok): Use font
17414 * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
17417 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
17418 redoing (vastly simplifying) for Pango. Still needs quite
17419 a bit of work. (Size selection is currently poor. List of
17420 predefined sizes is not a good idea, since all of these
17421 sizes won't necessarily be distinct.)
17423 Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
17425 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
17426 CODESET results for LANG=C.
17428 Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
17430 * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
17431 which takes a stringized pango font description;
17432 ignore the older 'font' and 'fontset' declarations.
17434 * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
17435 field with a GdkFont derived via gdk_font_from_description(),
17436 for compatibility. (Should we just remove it entirely?
17437 Probably too much compatibility breakage, but people
17438 should be migrating to the new Pango stuff as quickly
17441 Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
17443 * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
17445 Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
17447 * gtk/gtkcalender.c: Roughly pango-ized. Really needs
17448 redoing; there are some bugs in size allocation right
17449 now, the semi-existant distinction between header / day
17450 fonts was removed, but, with Pango, could actually
17451 be made functional in a nice way.
17453 * gtk/testcalender: Move calender from examples into this
17454 directory as a test program. (We really need to restrcture
17455 testgtk into a whole directory full of tests for every
17456 widget or functionality group, separated into multiple .c
17459 Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
17461 * gtk/testgtk.c (file_exists): Fix stupid typo that
17462 was keeping RC file from being loaded.
17464 * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
17467 Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
17469 * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
17470 Add function to load a GdkFont from a PangoFontDescription.
17472 2000-05-29 Tor Lillqvist <tml@iki.fi>
17474 * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
17475 variable should be of type GdkEventPrivate.
17477 Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
17479 * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
17480 to have any widget for the label, use a GtkLabel widget
17481 to display the text. (Based partially on a patch from
17484 (Quite a bit of code reorganization - strip 90% of the
17485 guts out of gtkaspectframe and add a single virtual
17486 func to GtkFrameClass - compute_child_allocation.)
17488 Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
17490 * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
17491 (Removed clist->row_center_offset field because caching
17492 it wasn't saving time or code, added private function
17493 _gtk_clist_create_cell_layout()).
17495 Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
17497 * gtk/gtkaccellabel.c: Pangoized.
17499 * gtk/[hv]ruler.c: Pangoized
17501 Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
17503 * gtk/gtkfilesel.c (gtk_file_selection_init):
17504 Use gtk_clist_set_column_auto_resize() to remove need
17505 need for manual column width computations.
17507 Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
17509 * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
17510 ensuring Pango correctness, and considerably simplifying the
17513 * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
17515 * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
17516 getting of numbers of lines.
17518 * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
17519 to the actual requested width of the lable, not to the wrap
17522 * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
17524 * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
17525 gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
17527 * gtk/gtktextview.c: Fix structure inheritance.
17529 * gtk/gtkprogressbar.c: Pangoize.
17531 Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
17533 * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
17536 * gtk/gtktextlayout.c (find_display_line_above): Fixed
17537 bug with computing line tops.
17539 * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
17541 Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
17543 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
17544 and y_offset coordinates to do what we need now. (The offset between
17545 buffer and layout coordinates has been reintroduced, but is a
17546 bit different than before.)
17548 * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
17549 handle the adjustments ourselves, and scroll as necessary using
17550 the new gdk_window_scroll().
17552 The advantage of this is that when we are incrementally revalidating,
17553 we are essentially rearranging things around the visible portion
17554 of the screen. With the old setup, the visible portion of the
17555 screen was moved around in the layout, so scrolling and redrawing
17556 to track that caused jumping of the display. Since we now
17557 control the scrolling ourselves, we can suppress this and
17558 only redraw when things actually change.
17560 Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
17562 * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
17563 the region not just redisplay it after-all, since we store the
17564 cursors in the LineDisplay. (Ugly interactions here between
17565 GtkLayout and GtkTextBTree here.)
17567 * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
17569 Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
17571 * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
17572 Added function to scroll contents of a window while keeping the
17573 window constant. Works by XCopyArea or guffaw-scrolling depending
17574 on the details of how the window is set up. (guffaw-scrolling
17575 still needs to be filled in.)
17577 Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
17579 * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
17580 move the debugging that was tied to a global variable
17583 * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
17585 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
17586 validated flag, in line data instead of setting height/width to
17587 -1. This allows us to perform operations with partially invalid
17588 buffer (using the old size for invalid lines) and thus to do
17589 incremental vaidation. Keep height/width aggregates up to date
17590 when deleting text and rebalancing the tree.
17592 * gtk/gtktextbtree.[ch]: Add functions validate a line
17593 (gtk_text_btree_validate_line), and to validate up
17594 to a number of pixels (gtk_text_btree_validate).
17596 * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
17597 that indicates that something is changed and a revalidation
17598 pass is needed. Change ::need_repaint to ::changed, and
17599 make it take old and new yranges instead of a rectangle.
17601 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
17602 the line_data_destroy() function from
17603 gtk_text_btree_add_view() to a virtual function in
17606 * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
17607 since we are handling partial repaints in a different fashion
17610 * gtk/gtktextbtree.[ch]: Only repaint the changed portion
17611 of the selection instead of queueing a repaint on the
17614 * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
17615 get_selection_bounds() down to btree, make the function
17616 in buffer a wrapper around the btree function.
17618 * gtk/gtktextlayout.[ch]: Add functions to check if the
17619 layout is valid and to recompute either a range of pixels
17620 aroudn a line or a certain total number of pixels.
17622 * gtk/gtktextlayout.[ch]: Cache a single line display;
17623 now that we only redraw the needed portions, the hit rate
17624 for this cache is quite high.
17626 * gtk/gtktextview.[ch]: Keep track of the first paragraph
17627 on the screen so that when re-laying-out the buffer, we can
17628 keep the same place. This requires connecting to ::value_changed
17631 * gtk/gtktextview.[ch]: Add idle functions to revalidate
17632 the buffer after we receive an ::invalidated signal.
17634 Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
17636 * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
17637 to max of allocation and layout size, not just to the
17640 * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
17641 Invalidate window so it gets redrawn properly.
17643 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
17644 to mean the entire window.
17646 * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
17647 into public header.
17649 Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
17651 * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
17652 to get the name of a mark.
17654 * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
17655 to find the paragraph from a y position.
17657 Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
17659 * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
17660 nodes have width/height >= 0, not > 0.
17662 Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
17664 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
17665 Add a size_only flag, so when we only need the size, we don't create
17666 useless appearance attributes.
17668 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
17669 duplicate setting of font description.
17671 * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
17673 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
17675 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
17676 EXTRA_DIST. It does not work well when the file that
17677 everything depends on is not in the tarball.
17679 Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
17681 * gtk/testgtk.c: Some hacks and fixes so that it basically
17682 works when not sitting in the GTK+ build tree.
17684 2000-05-03 Havoc Pennington <hp@redhat.com>
17686 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
17687 Properly determine the ordering of the tag root and the current
17688 line within the tree. Previous algorithm only worked if the tag
17689 root's immediate parent was the common root of both the current
17690 line and the tag root.
17692 Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
17694 * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
17697 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
17698 the widget text directional dynamically.
17700 * gtk/gtktextview.[ch]: Added functions to get and set default
17703 Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
17705 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
17706 in cursor location computation.
17708 Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
17710 * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
17711 vadjusment values properly when layout gets smaller.
17713 * gtk/gtktextview.c (need_repaint_handler): Areas being
17714 passed in are far completely inaccurate, and sometimes
17715 too small, so, for now, just queue a redraw on the
17716 whole visible region.
17718 2000-04-25 Havoc Pennington <hp@redhat.com>
17720 * gtk/gtktextbtree.c (summary_destroy): new function to
17721 destroy tag summary nodes
17722 (gtk_text_line_next_could_contain_tag): this function was
17723 totally broken if the line passed in wasn't below the tag
17725 (gtk_text_btree_first_could_contain_tag): In the tag == NULL
17726 "wildcard" case, we have to do a linear scan. Blah.
17727 (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
17728 we have to do the linear scan
17729 (tag_removed_cb): When a tag is removed from the tag table,
17730 remove the GtkTextTagInfo node from the btree.
17731 (gtk_text_btree_spew): Implement the spew function, for
17732 our debugging pleasure.
17734 Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
17736 * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
17737 a problem with referring to the wrong buffer.
17739 * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
17741 * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
17742 font description to gtk_style_new() - otherwise things
17743 don't work without a .gtkrc file.
17745 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
17746 tags table if we create it ourself, too.
17748 * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
17749 it was conflicting with XKB modifiers.
17751 * gtk/gtktextview.[ch]: Add simple support for
17754 Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
17756 * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
17757 with deletion from last commit.
17759 Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
17761 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
17762 in the context from the current locale.
17764 * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
17765 context, not hardcoded value.
17767 * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
17770 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
17772 * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
17773 attributes - that doesn't handle partial-glyph selection
17774 properly. Instead use new pango_layout_line_get_x_ranges()
17775 functionality to draw the selection.
17777 * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
17778 now properly handles out-of-range coordinates.
17780 * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
17782 * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
17785 * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
17786 for paragraphs opposite to the base direction of the widget.
17788 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
17790 * gtk/gtktextlayout.c: Don't split segments on marks, since that
17791 causes Arabic words to reshape as you cursor through.
17793 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
17794 cursor position when moving vertically with the arrow keys and
17795 scrolling with page-up/page-down. (Arrow keys save only the X,
17796 scrolling saves both X and Y.)
17798 This means you can line-up / line-down or page-up / page-down
17799 without losing your place, and also that moving vertically
17800 with the cursor keys keeps the same X position, not the same
17803 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
17804 arrow keys move by display lines, not paragraphs.
17806 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
17808 * gtk/gtklayout.c: Make sure that the bin window is at least
17809 as big as the allocation. (Should we also make sure that the
17810 bin window is big enough to completely cover widget->window?)
17812 * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
17813 function to get the onscreen rectangle.
17815 * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
17816 for offsets in window coordinates.
17818 Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
17820 * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
17823 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
17824 from the widget direction.
17826 * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
17827 Add a "direction" attribute.
17829 * gtk/gtktextview.c: global s/tkxt/text_view/.
17831 * gtk/testtext.c: Added long block of text in Arabic, to test out
17832 the direction attributes. (Some problems with the shaping system
17833 for arabic become obvious - like the fact the cursor splits words
17834 into unjoined pieces.)
17836 Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
17838 * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
17840 * gtk/gtktextlayout.c: Fix up alignment.
17842 * gtk/testtext.c: Add some tests for centering, wrapping.
17844 Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
17846 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
17847 Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
17848 If we wrote GTK+-specific layout-render function this could just replace
17849 the draw_layout() operation in the vtable.
17851 * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
17852 pango_layout_get_cursor_pos() and use that function.
17854 * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
17855 is a non-static symbol.
17857 * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
17858 with gtk_text_btree_find_line_by_y()
17860 * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
17861 renderer that handles GtkTextAppearance attributes.
17863 * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
17865 - Move the values in the style that don't affect geometry into a
17866 GtkTextAppearance structure.
17867 - Change underline to take a PangoUnderline and "font" a string
17868 representation of a font description
17869 - Add a "font_desc" attribute which takes a FontDescription structure.
17871 * gtk/gtktextlayout.[ch]:
17873 - Get rid of the display-line list per each line. Instead, we
17874 generate, on demand, a GtkTextLineDisplay structure which]
17875 contains a PangoLayout * and other necesary information
17876 (offsets, cursor locations) for displaying a paragraph.
17877 - Get rid of the code to wrap lines, create display chunks,
17878 etc. Instead, we just go through a paragraph and convert
17879 it into the necessary inputs to a PangoLayout.
17880 - Implement a new attribute type, GtkTextAttrAppearance. This
17881 holds a GtkTextAppearance, and is used to pass colors,
17882 stipple, etc, through from the layout to the display without
17883 having to use lots and lots of individual attributes.
17884 - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
17885 in terms of PangoLayout functions.
17887 * gtk/gtktextview.c:
17889 - Handle passing the necessary PangoContext to the layout
17890 - Some fixups in painting to deal with the automatic backing store
17891 and offsetting of GTK+-1.4
17892 - Add a style_set handler so that the default style reacts
17893 properly to theme changes.
17895 * gtk/gtktext?*.[ch]: Random code-style fixes.
17897 * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
17899 Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
17901 * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
17902 in original form preparatory to Pango-ization and gdkimcontext-ization.
17904 Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
17906 * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
17907 so that we can derive from gtkimcontext in language bindings properly.
17909 Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
17911 * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
17912 Add a compose table including (almost) all the compose combinations
17913 from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
17914 data in the XIM implementation.
17916 * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
17917 Moved functions to convert keyvalues from and to unicode here from
17918 the win32 port and made them public.
17920 Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
17922 * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
17924 Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
17926 * gtk/gtkimcontext.[ch]: Base class for new input context system
17928 * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
17929 the real input context implementation to be loaded from modules
17930 and switched on the fly.
17932 * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
17933 context that just does direct keysymbol => unicode translation.
17935 * gtk/gtkentry.[ch]: Start switching editing over to using
17936 GtkInputContext. (No handling of preedit yet.)
17938 Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
17940 * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
17941 many substitutions. (klass should not be subsituted.)
17943 Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
17945 * configure.in: Add checks for Pango
17947 * configure.in docs/Makefile.am: Add test for sgml2html
17948 and allow 'make dist' without building html, but print out
17949 warnings in that case. (For making snapshots)
17951 * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
17952 Add Pango libraries and C flags
17954 * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
17955 Add function (gdk_draw_layout) to draw a pango layout.
17957 * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
17958 for getting Pango contexts for GDK.
17960 * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
17962 * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
17965 * gtk/gtkentry.c: Hack in simple Hebrew input with direct
17966 keysym => unicode translations. More languages can be added
17967 here, but real input-method support is needed.
17969 * docs/Changes-1.4.txt: Added note about entry behavior.
17971 * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
17972 to set the reading direction for a widget and the global direction.
17973 Add test which allows toggling the global direction. Two private
17974 flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
17976 * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
17977 gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
17979 * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
17981 * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
17982 underlining now handled by Pango.
17984 * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
17985 to RCStyle and Style. (Having both this and the old font name and GdkFont
17988 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
17989 convenience functions for creating contexts and layouts for widgets.
17991 * gtk/testgtk.c: Enhance label tests with multilingual labels.
17993 2000-05-29 Jonathan Blandford <jrb@redhat.com>
17995 * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
17996 titles to be active, even if they aren't visible.
17997 (gtk_clist_column_titles_passive): Ditto.
17999 2000-05-21 Nils Barth <nils_barth@post.harvard.edu>
18003 * gtktypeutils.h: Spelling/grammar fixes in comments.
18005 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
18007 * gdk/nanox/*.h: add missing header files.
18009 Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
18011 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
18012 send_event to TRUE.
18013 (gtk_drawing_area_size): queue a resize.
18015 Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
18017 * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
18018 the handlers, also invalidate them. bug nailed down by Karl Nelson
18019 <kenelson@ece.ucdavis.edu>.
18021 Fri May 19 06:49:23 2000 Tim Janik <timj@gtk.org>
18023 * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
18024 "(nil)" foundries, patch from Grigorios Magklis.
18026 * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
18027 on non-available fonts, based on a patch by Grigorios Magklis
18028 <maglis@cs.rochester.edu>.
18030 2000-05-18 Elliot Lee <sopwith@redhat.com>
18032 * gdk/x11/gdkregion-generic.c: If a region does not have any
18033 rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
18034 instead of GDK_OVERLAP_RECTANGLE_IN.
18036 2000-05-17 Jonathan Blandford <jrb@redhat.com>
18038 * gtk/gtklayout.c (gtk_layout_map): Remove references to
18039 OFFSCREEN, as it is no longer necessary.
18041 Wed May 17 10:52:12 2000 Owen Taylor <otaylor@redhat.com>
18043 * gtk/gtkcolorsel.c: Patch from David Santiago
18044 <mrcooger@cyberverse.com> to change things so that the
18045 indicator of the active palette entry is done independently,
18046 not via the focus, since it should always be visible.
18048 2000-05-17 Tor Lillqvist <tml@iki.fi>
18050 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
18051 refcount leaks as in the X11 backend.
18053 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
18056 * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
18057 backend. Add _gdk_windowing_window_destroy().
18059 * gtk/gtkcolorsel.c: Include correct backend-specific header.
18060 Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
18061 either, but these probably do exist on nanox?)
18063 * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
18064 which isn't necessarily defined by <math.h>.
18066 * gtk/gtkobject.c (gtk_object_init): Don't go up the class
18067 ancestry past GtkObject.
18069 * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
18072 * gtk/gtk.def: Update corresponding to recent changes.
18074 * gtk/makefile.{cygwin,msc}: Updates.
18076 Fri May 12 18:46:51 2000 Owen Taylor <otaylor@redhat.com>
18078 * docs/Changes-1.4.txt: A bit of editing.
18080 * gdk/gdkwindow.c (_gdk_window_clear_update_area)
18081 * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
18082 to clear the update area for the window, and clear it
18083 when hiding a window.
18085 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
18086 if window destroyed.
18088 * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
18090 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
18091 gdk_window_destroy() to the generic code, since there was a lot of
18092 window-system-independent logic it in. Add a function:
18094 _gdk_window_destroy()
18096 to the internal API to destroy a window without unreferencing it.
18099 _gdk_windowing_window_destroy()
18101 That does the windowing-system-dependent part of destroying
18104 Fri May 12 11:07:41 2000 Owen Taylor <otaylor@redhat.com>
18106 * gtk/testgtk.c: Fix various memory leaks of pixmaps.
18108 Fri May 12 11:06:10 2000 Owen Taylor <otaylor@redhat.com>
18110 * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
18111 Make gtk_widget_shape_combine_mask() keep a reference count on
18112 the pixmap since it keeps it around.
18114 Fri May 12 10:53:29 2000 Owen Taylor <otaylor@redhat.com>
18116 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
18119 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
18120 leak with event filters.
18122 Thu May 11 14:29:44 2000 Owen Taylor <otaylor@redhat.com>
18124 * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
18125 signal handlers with the right data arguments. (Fixes
18126 some warnings when a widget was repeatedly set as a drag
18129 * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
18130 window so we can avoid avoid setting the DND properties on the
18131 toplevel window repeatedly.
18133 2000-05-13 Tor Lillqvist <tml@iki.fi>
18135 * gdk/win32/gdkwin32.h: Define more message types missing from
18138 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
18139 call gdk_window_destroy_notify(). It was never called. This
18140 probably meant that the GdkWindow was never freed. Thanks Owen for
18143 * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
18144 window as destroyed before calling DestroyWindow(). DestroyWindow()
18145 causes a call to the window procedure (gdk_WindowProc), which
18146 calls gdk_event_translate(), which calls
18147 gdk_window_destroy_notify(), which gets confused unless the window
18148 is set as destroyed.
18150 * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
18151 this function to indicate it's win32 only. Put inside #ifdef
18154 * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
18155 debugging function. (gdk_event_translate:) Add a default branch
18156 that uses the above function to print debug messages with all
18157 Windows messages symbolically.
18159 * gdk/win32/gdkprivate-win32.h: Declare it, and
18160 gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
18162 Fri May 12 20:07:32 2000 Tim Janik <timj@gtk.org>
18164 * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
18165 public header file.
18167 Fri May 12 17:13:32 2000 Tim Janik <timj@gtk.org>
18169 * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
18171 * gtk/gtktext.c: made the adjustments no-construct args, simply
18172 provide default adjustments.
18173 (gtk_text_destroy): release adjustments.
18175 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
18176 adjustment argument non-construct.
18178 * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
18179 instead of in finalize.
18180 (gtk_progress_get_text_from_value):
18181 (gtk_progress_get_current_text):
18182 (gtk_progress_set_value):
18183 (gtk_progress_get_percentage_from_value):
18184 (gtk_progress_get_current_percentage):
18185 (gtk_progress_set_percentage):
18186 (gtk_progress_configure): ensure an adjustment is present.
18188 Thu May 11 01:24:08 2000 Tim Janik <timj@gtk.org>
18190 * gtk/gtkcolorsel.[hc]:
18191 * gtk/gtkcolorseldialog.[hc]:
18192 * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
18193 their parent implementation, use bit fields for boolean values, don't
18194 create unused widgets, usage of glib types, braces go on their own
18195 lines, function argument alignment, #include directives etc. etc. etc..
18197 * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
18199 Wed May 10 23:29:52 2000 Tim Janik <timj@gtk.org>
18201 * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
18203 * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
18206 * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
18208 (gtk_combo_destroy): don't keep a pointer to a destroyed window.
18210 * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
18211 to NULL when the toplevel is getting destroyed.
18212 (gtk_menu_set_tearoff_state): same here for the tearoff_window.
18213 (gtk_menu_destroy):
18214 (gtk_menu_init): store the information of whether we have to
18215 readd the initial child ref_count during destruction in a new
18216 GtkMenu field needs_destruction_ref_count.
18218 * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
18219 here, those reading: learn from my mistake! ;)
18220 in order for set_?adjustment to support a default adjustemnt if
18221 invoked with an adjustment pointer of NULL, the code read (pseudo):
18222 if (v->adjustment) unref (v->adjustment);
18223 if (!adjustment) adjustment = adjustment_new ();
18224 if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
18225 now imagine the first unref to actually free the old adjustment and
18226 adjustment_new() creating a new adjustment from the very same memory
18227 portion. here, the latter comparision will unintendedly fail, and
18228 all hell breaks loose.
18229 (gtk_viewport_set_hadjustment):
18230 (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
18231 after unreferencing it.
18233 * gtk/gtkcontainer.[hc]: removed toplevel registration
18234 functions: gtk_container_register_toplevel(),
18235 gtk_container_unregister_toplevel() and
18236 gtk_container_get_toplevels() which had wrong semantics
18237 anyways: it didn't reference and copy the list.
18239 * gtk/gtkwindow.c: we take over the container toplevel registration
18240 bussiness now. windows are registered across multiple destructions,
18241 untill they are finalized. the initial implicit reference count
18242 users are holding on windows is removed with the first destruction
18244 (gtk_window_init): ref & sink and set has_user_ref_count, got
18245 rid of gtk_container_register_toplevel() call. add window to
18247 (gtk_window_destroy): unref the window if has_user_ref_count
18248 is still set, got rid of call to
18249 gtk_container_unregister_toplevel().
18250 (gtk_window_finalize): remove window from toplevel list.
18251 (gtk_window_list_toplevels): new function to return a newly
18252 created list with referenced toplevels.
18253 (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
18255 * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
18256 adjustment a non-construct arg.
18257 * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
18258 * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
18259 * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
18261 * gtk/gtkrange.c: added some realized checks.
18262 (gtk_range_destroy): get rid of the h/v adjustments in the
18263 destroy handler instead of finalize. remove timer.
18264 (gtk_range_get_adjustment): demand create adjustment.
18266 * gtk/gtkviewport.c: made h/v adjustment non-construct args.
18267 we simply create them on demand now and get rid of them in
18268 the destroy handler.
18269 (gtk_viewport_destroy): get rid of the h/v adjustments in the
18270 destroy handler instead of finalize.
18271 (gtk_viewport_get_hadjustment):
18272 (gtk_viewport_get_vadjustment):
18273 (gtk_viewport_size_allocate): demand create h/v adjustment
18276 * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
18277 gtk_widget_real_destroy () functionality.
18278 (gtk_widget_real_destroy): reinitialize with a new style, instead
18279 of setting widget->style to NULL.
18281 Fri May 5 13:02:09 2000 Tim Janik <timj@gtk.org>
18283 * gtk/gtkcalendar.c:
18284 * gtk/gtkbutton.c: ported _get_type() implementation over to
18285 GType, either to preserve memchunks allocation facilities,
18286 or because Gtk+ 1.0 GtkTypeInfo was still being used.
18288 * gtk/gtkobject.[hc]: derive from GObject. ported various functions
18289 over. prepare for ::destroy to be emitted multiple times.
18290 removed reference tracer magic. chain into GObjectClass.shutdown()
18291 to emit ::destroy signal.
18293 * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
18296 * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
18303 * gtk/gtkargcollector.c:
18304 * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
18305 not being a fundamental anymore, and to work with the new
18306 type system (nuked fundamental type varargs clutter).
18308 * gtk/*.c: install finalize handlers in the GObjectClass
18309 part of the class structure.
18310 changed direct GTK_OBJECT()->klass accesses to
18312 changed direct object_class->type accesses to GTK_CLASS_TYPE().
18314 * gtktypeutils.[hc]: use the reserved fundamental ids provided by
18315 GType. made most of the GTK_*() type macros and Gtk* typedefs
18316 simple wrappers around macros and types provided by GType.
18317 most notably, a significant portion of the old API vanished:
18320 GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
18321 GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
18324 GTK_TYPE_C_CALLBACK,
18328 gtk_type_set_varargs_type(),
18329 gtk_type_get_varargs_type(),
18330 gtk_type_check_object_cast(),
18331 gtk_type_check_class_cast(),
18332 gtk_type_describe_tree(),
18333 gtk_type_describe_heritage(),
18335 gtk_type_children_types(),
18336 gtk_type_set_chunk_alloc(),
18337 gtk_type_register_enum(),
18338 gtk_type_register_flags(),
18339 gtk_type_parent_class().
18340 replacements, where available are described in ../docs/Changes-1.4.txt.
18341 implemented compatibility functions for the remaining API.
18343 * configure.in: depend on glib 1.3.1, use gobject module.
18345 Thu May 11 12:39:50 2000 Owen Taylor <otaylor@redhat.com>
18347 * TODO.xml: Various updates to current status.
18349 Wed May 10 20:25:04 2000 Owen Taylor <otaylor@redhat.com>
18351 * gtk.m4: Print out version when test succeeds.
18353 Wed May 10 16:38:17 2000 Owen Taylor <otaylor@redhat.com>
18355 * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
18356 gtk/gtkhsv.[ch]: Color selection dialog rewrite.
18358 (Original triangle color selector from Simon Budig
18359 <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
18360 from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
18361 Santiago <mrcooger@cyberverse.com>)
18363 * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
18364 out into a separate widget.
18366 * gtk/testgtk.c: Add some checkbuttons for toggling palette
18367 and opacity controls.
18369 Wed May 10 16:08:09 2000 Owen Taylor <otaylor@redhat.com>
18371 * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that
18372 snuck in prematurely.
18374 2000-05-07 Tor Lillqvist <tml@iki.fi>
18376 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
18377 had deleted a ! operator by mistake, which caused
18378 GDK_SELECTION_CLEAR events never to be generated, which caused
18379 only the first copy to the clipboard from an gtkeditable to
18380 actually cause a copy to the Windows clipboard.
18382 2000-05-06 Tor Lillqvist <tml@iki.fi>
18384 * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
18385 compilation, too. Current mingw gcc distributions include the
18386 necessary headers. Also the necessary IIDs are now in mingw
18387 headers/libraries, and own definitions unnecessary.
18389 More hacking on OLE2 DND, still doesn't work though, and thus
18392 * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
18395 Sat, 6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
18397 * gdk/nanox/*: nano-X port work in progress.
18398 * gdk/simple.c: simple test for Gdk.
18399 * README.nanox: notes about the port: read this first!
18400 * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
18403 Fri May 5 11:18:47 2000 Owen Taylor <otaylor@redhat.com>
18405 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
18406 gdk_window_clear() into common code, implement in terms of
18407 gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
18408 not redirected to the backing rectangle.
18410 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
18412 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
18413 EXTRA_DIST. It does not work well when the file that
18414 everything depends on is not in the tarball.
18416 Tue Apr 25 22:20:41 2000 Owen Taylor <otaylor@redhat.com>
18418 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
18419 with recursion where process_updates() is called from
18420 an expose handler. (GtkTextView is highly broken in
18421 doing this, but it should work, so it is a nice test
18424 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
18426 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
18427 handle the case where updates are queued during processing of
18430 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
18432 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
18433 window is on gdk_display - use that instead of segfaulting.
18435 Thu May 4 02:04:46 2000 Tim Janik <timj@gtk.org>
18437 * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
18438 broken and require an empty arg, give it to them.
18440 Fri Apr 28 19:34:32 2000 Tim Janik <timj@gtk.org>
18442 * gtk/gtklabel.h: indentation fixes.
18444 2000-05-02 Tor Lillqvist <tml@iki.fi>
18446 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
18447 draw too narrow or too low arcs, they seem to fail, at least with
18448 some display drivers.
18450 * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
18452 Large changes to the Win32 backend, partially made necessary by
18453 the changes to the backend-independent internal
18454 structures. Attempts to implement similar backing store stuff as
18455 on X11. The current (CVS) version of the Win32 backend is *not* as
18456 stable as it was before the no-flicker branch was merged. A
18457 zipfile with that version is available from
18458 http://www.gimp.org/win32/. That should be use by "production"
18459 code until this CVS version is usable. (But note, the Win32
18460 backend has never been claimed to be "production quality".)
18462 * README.win32: Add the above comment about versions.
18464 * gdk/gdkwindow.c: Don't use backing store for now on Win32.
18466 * gdk/gdk.def: Update.
18468 * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
18469 presumably be replaced by some more better mechanism as 1.4 gets
18470 closer to release shape.
18472 * gdk/makefile.{cygwin,msc}: Update.
18474 * gdk/win32/*.c: Correct inclusions of the backend-specific and
18475 internal headers. Change code according to changes in these. Use
18476 gdk_drawable_*, not gdk_window_* where necessary.
18478 * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
18481 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
18482 to interpret single characters as UTF-8. Thanks to Hans Breuer.
18483 Use correct function name in warning messages.
18485 * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
18486 GSourceFuncs gdk_event_prepare and gdk_event_check.
18487 (gdk_event_get_graphics_expose): Do implement, use
18488 PeekMessage. Thanks to Hans Breuer.
18489 (event_mask_string): Debugging function to print an GdkEventMask.
18490 (gdk_pointer_grab): Use it.
18492 * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
18493 (old) book I used claimed was Hangul actually is CJK Unified
18494 Ideographs Extension A. Also, Hangul Syllables were missing.
18497 * gdk/win32/gdkgc-win32.c: Largish changes.
18499 * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
18500 g_win32_getlocale() from GLib, and not setlocale() to get current
18503 * gdk/win32/gdkprivate-win32.h
18504 * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
18505 gdkwin32.h, similarily as in the X11 backend.
18507 * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
18508 assignment was used instead of equals in if test. Thanks to Hans
18511 * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
18514 * gdk/win32/makefile.{cygwin,msc}
18515 * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
18516 path to the Win32 headers that works also with the mingw compiler.
18518 * gtk/gtkstyle.c: Include <string.h>.
18520 2000-04-26 Havoc Pennington <hp@redhat.com>
18522 * gtk/gtklabel.c (gtk_label_get_text): Add this function,
18523 replacing the broken gtk_label_get ()
18525 2000-04-15 Havoc Pennington <hp@pobox.com>
18527 * gdk/gdkdnd.h: clean up enum format, remove extra comma,
18528 this keeps scanner scripts from getting confused.
18530 * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
18531 data, rather than void
18533 2000-04-15 Tor Lillqvist <tml@iki.fi>
18535 * gtk/gtkclist.c (gtk_clist_motion)
18536 * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
18537 with is_hint FALSE, get x and y from the event. They used to be
18538 used uninitialised. The Win32 backend never sends motion events
18539 marked as hints. This for instance fixes the annoying file and
18540 font selector behaviour in the Win32 version.
18542 2000-04-14 Tor Lillqvist <tml@iki.fi>
18544 * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
18545 gtk_private_n_signals variables, they are used by some software,
18548 * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
18549 installation directory from the Registry, where the installer
18550 should have put it.
18552 Fri Apr 7 17:19:27 2000 Owen Taylor <otaylor@redhat.com>
18554 * gdk/x11/Makefile.am: Fix problem with installation directory for
18557 * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
18558 <mrcooger@cyberverse.com> so that when selecting menus with the
18559 mouse, the first item will not be selected, but when selecting
18560 with an accelerator, or navigating left-right on a menubar with
18561 the menus popped up, the first item will be selected.
18563 2000-04-05 Dan Damian <dand@dnttm.ro>
18565 * configure.in: Added "ro" to ALL_LINGUAS.
18567 Wed Apr 5 00:08:36 2000 Owen Taylor <otaylor@redhat.com>
18569 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
18572 * Makefile.am (EXTRA_DIST): Fix typo.
18574 * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
18575 to catch gdkconfig.h
18577 * gtk/gtkitemfactory.c: Added FIXME.
18579 2000-03-30 Jonathan Blandford <jrb@redhat.com>
18581 * gtk/gtkpaned.c (gtk_paned_get_position): oops.
18582 s/return_if_fail/return_val_if_fail/g and add a return value.
18584 Mon Mar 27 20:56:14 2000 Owen Taylor <otaylor@redhat.com>
18586 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up
18589 * gdk/gdkinput.h: Fix missing line from merge.
18591 Mon Mar 27 20:39:49 2000 Owen Taylor <otaylor@redhat.com>
18593 * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
18594 instead of gdkprivate.h.
18596 Sun Mar 12 15:19:24 2000 Owen Taylor <otaylor@redhat.com>
18598 * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
18599 parent class to correctly be GtkDialogClass.
18601 Thu Feb 24 23:58:21 2000 Owen Taylor <otaylor@redhat.com>
18603 * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
18604 toplevel windows and their immediate children by their parents,
18605 since the size of toplevel windows is out of our immediate
18606 control and we don't get any real benefit from trying to track
18607 this size for clipping.
18609 * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
18610 for input_only windows.
18612 * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
18613 to fix some hacks and make sure that we don't try to set the
18614 background of input only windows.
18616 Thu Feb 24 18:11:46 2000 Owen Taylor <otaylor@redhat.com>
18618 * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
18619 the _really_ internal stuff, and leave gdkprivate.h for the fake private
18620 stuff that we've traditionally exposed.
18622 * gdk/**.c: Use gdkinternals.h where appropriate.
18624 * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
18625 not include gdkprivate-x11.h, move all stuff of conceivable public
18626 interest into gdkx.h; keep all really private stuff in
18627 uninstalled header gdkprivate-x11.h.
18629 * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
18630 image->image_put on windows through a new function _gdk_window_draw_image()
18631 to allow us to do backing store for images. (Sort of ugly)
18633 * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
18634 contexts locally so that we can offset them properly when drawing
18635 onto backing pixmaps.
18637 * gdk/gdkinput.h: Reindented
18639 * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
18640 pixmap or color for the window, so we can properly initialize
18641 our double-buffer pixmaps, and also so that we temporarily set
18642 a background of None while scrolling.
18644 * gdk/gdkregion.h: Revise region boolean operators to have an
18645 interface that is actually convenient - switch from creating new
18646 regions on every op, to "methods" that modify existing regions
18647 (A = A OP B). 3 argument forms which allow dest == src, would also
18648 be possible, but the current interfaces seem to map nicely
18649 onto what needs to be done. (There is quite a lot of region
18652 * gdk/gdkregion.h: Add constructor from rectangle and a copy
18655 * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
18656 gdkpoly-generic.h: Copy region code from Xlib, switch it over
18657 to 32 bit coordinates, modify it to be mostly GTK+ style
18658 and to have interfaces that match gdkregion.h.
18660 * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
18661 double-buffered drawing. gdk_window_begin_paint_{rect,region}()
18662 create a backing pixmap and redirect all drawing to
18663 that backing pixmap until a matching gdk_window_end_paint().
18665 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
18666 Create a special drawable class for GtkWindow's that
18667 redirects the drawing to the backing pixmap as necessary
18668 and then calls the real operations in _gdk_windowing_window_class.
18670 * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
18671 Store invalid region for each window. Generate expose events for invalid
18672 region in an idle. This replaces both the expose compression
18673 and the redrawing queuing in GTK+. It is both more efficient and
18674 simpler than either one individually and far more so then the
18677 * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
18678 Emulate 32 bit coordinates for windows with 16 bit coordinates
18679 by offsetting drawing, guffaw scrolling techniques and
18680 mapping/unmapping child windows as necessary.
18682 * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
18683 where, when invalid regions are processed, the region is stored,
18684 and if expose events come in that are detectably duplicate
18685 the processed exposes (by comparison of event serial numbers),
18686 the stored region is subtracted out of those exposes.
18688 * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
18689 regions newly exposed when scrolling or resizing windows.
18690 This, combined with forcing processesing of queued invalidated
18691 regions, gives nice flicker-free scrolling.
18693 * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
18694 invalidated regions after every scroll.
18696 * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
18697 emulation in GDK. Its, for all practical purposes just a
18698 GtkViewport/GtkFixed hybrid now.
18700 * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
18701 (16-bit) structures as necessary instead of just casting.
18703 * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
18704 in terms of the structures from gdkregion-generic.c, using appropriate
18705 offsets from GDK to X11 coordinates. Cache clip mask and
18706 origin and ts origin locally and only flush to the server
18707 when drawing, to avoid constantly setting and resetting these
18708 values when offsetting GC's for scrolling and backing pixmaps.
18710 * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
18712 * gtk/gtkcontainer.c: Call process_all_updates at end
18713 of resizing to reduce flicker. (Avoids having redraw
18714 lag arbitrarily behind resize under some circumstances)
18716 * gtk/gtkentry.c: Remove old backing store code, and simply take
18717 advantage of the new backing store capabilities of GDK.
18719 * gtk/gtkmain.c: Simple implementation of widget backing
18720 store - simply push a paint while handling each expose.
18721 (Should really be configurable widget for widget.)
18723 * gtk/gtkwidget.c: Remove all the old complicated redraw
18724 code, and simply invalidate the GDK windows from
18725 gdk_window_queue_clear(), etc. (Sigh, so much carefully
18726 debugged complexity ... gone to the winds.)
18728 Remove all the code for suppressing expose events while
18729 resizes are pending; this isn't needed since the invalid
18730 areas won't be processed until after the resizes are
18731 processed, since they are in a lower priority idle.
18733 Thu Feb 24 15:37:41 2000 Owen Taylor <otaylor@redhat.com>
18735 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
18736 and height of dest rectangle for non-intersecting rectangles.
18738 Sun Feb 20 16:47:31 2000 Owen Taylor <otaylor@redhat.com>
18740 * gtk/gtkwidget.h: Make GtkAllocation just a typedef
18743 Sun Feb 20 11:27:00 2000 Owen Taylor <otaylor@redhat.com>
18745 * gdk/gdk{events,image,private,types,window}.h
18746 gdk/x11/gdkinputprivate.h: Change all coordinates
18747 from int16 to int. Also, Change width and height from
18748 unsigned to signed to avoid all the stupid C
18751 Sat Feb 19 12:01:53 2000 Owen Taylor <otaylor@redhat.com>
18753 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
18754 Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
18755 Add some more detailed checking.
18757 * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
18758 New function to retrieve the depth of a drawable.
18760 * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
18761 field, reorder fields to save memory.
18763 Mon Dec 13 14:06:03 1999 Owen Taylor <otaylor@redhat.com>
18765 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
18766 of the background image instead of scaling the background down to
18769 * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
18770 which temporarily set slider to wrong size.
18772 * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
18775 Wed Nov 17 18:36:05 1999 Owen Taylor <otaylor@redhat.com>
18777 2000-03-23 Jonathan Blandford <jrb@redhat.com>
18779 * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
18781 2000-03-17 Tor Lillqvist <tml@iki.fi>
18783 * gdk/win32/gdkevents-win32.c: Remove the #ifndef
18784 USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
18786 * gdk/win32/gdkfont-win32.c
18787 * gdk/win32/gdkproperty-win32.c
18788 * gdk/win32/gdkselection-win32.c
18789 * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
18792 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
18794 * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
18796 Mon Mar 13 18:37:55 2000 Owen Taylor <otaylor@redhat.com>
18798 * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
18799 is called without trapping X errors.
18801 Fri Feb 25 10:48:53 2000 Owen Taylor <otaylor@redhat.com>
18803 * gtk/gtkrc.*: Fix problem where stray '"' characters found their
18804 way into the fontset lists.
18806 Tue Feb 22 08:52:52 2000 Tim Janik <timj@gtk.org>
18808 * gtk/gtkthemes.h: add extern "C" scope.
18810 Mon Feb 21 20:16:42 2000 Lars Hamann <lars@gtk.org>
18812 * gtk/gtkclist.c: applied patch from Guy Harris <guy@netapp.com>
18813 to make appends to the list constant. (gtk-guy-990901-0.patch)
18815 Mon Feb 14 22:50:10 2000 Tim Janik <timj@gtk.org>
18817 * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
18818 for the typename hash table.
18820 Mon Feb 14 15:01:23 2000 Owen Taylor <otaylor@redhat.com>
18822 * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
18823 to make sure we never divide by zero.
18824 (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
18826 Mon Feb 14 12:29:38 2000 Owen Taylor <otaylor@redhat.com>
18828 * gtk/gtkfontsel.c: Apply patch from
18829 SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
18830 better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
18832 Also, some cleanups in atom handling.
18834 Sun Feb 13 08:02:21 2000 Tim Janik <timj@gtk.org>
18836 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
18839 Fri Feb 11 02:19:32 2000 Tim Janik <timj@gtk.org>
18841 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate):
18842 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate):
18843 * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
18844 more guint wrap-around bugs before going to bed.
18846 Thu Feb 10 16:16:35 2000 Tim Janik <timj@gtk.org>
18848 * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
18849 guint wrap arounds in allocation.width.
18851 * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
18852 process untill we fit the allocation given.
18854 Tue Feb 8 09:38:29 2000 Tim Janik <timj@gtk.org>
18857 (gtk_widget_unrealize): guard widget access with ref/unref
18858 around signal emission.
18859 (gtk_widget_hide): same here, but also check its destroyed
18860 state before queueing a resize.
18862 Tue Feb 8 03:05:55 2000 Tim Janik <timj@gtk.org>
18864 * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
18865 of gtk_default_insensitive_bg as insensitive base color.
18867 * gtk/gtktext.c (gtk_text_style_set): set the background color according
18868 to the widget's state.
18869 (gtk_text_realize): same here.
18870 (gtk_text_state_changed): same here.
18871 (draw_bg_rect): compare background color against base[] from
18872 GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
18874 Mon Feb 7 04:01:55 2000 Tim Janik <timj@gtk.org>
18876 * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
18877 grabs are active, unless a delete event is send to the toplevel
18878 of the currently grab holding widget.
18880 Sun Feb 6 10:13:15 2000 Owen Taylor <otaylor@redhat.com>
18882 * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
18883 debugging g_print's.
18885 Fri Feb 4 15:54:54 2000 Owen Taylor <otaylor@redhat.com>
18887 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
18888 ever make the scrolled-window requisition ever depend on the
18889 visibility state of the scrollbars for the AUTOMATIC policy.
18890 This breaks the GTK+ requisition model, and causes loops.
18892 Fri Feb 4 15:09:12 2000 Owen Taylor <otaylor@redhat.com>
18894 * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
18895 the default font to avoid problems with XFree86-4.0 where the
18896 default charset is iso10646-1, not iso8859-1.
18898 Thu Feb 3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
18904 * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
18906 * gtk/Makefile.am: minor cosmetic consistency tweak
18908 Thu Feb 3 14:46:01 2000 Owen Taylor <otaylor@redhat.com>
18910 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
18911 the activate_time to 0, so that we handle a quick
18912 press/release press/release properly and don't suppress
18913 the second release. (Red Hat bug #7545)
18915 Wed Feb 2 22:25:17 2000 Tim Janik <timj@gtk.org>
18917 * gtk/gtkctree.c (row_delete):
18918 (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
18919 bugs with destruction notifier, *always* update internal
18920 structures *before* calling user code.
18922 Sun Jan 30 20:10:52 2000 Lars Hamann <lars@gtk.org>
18924 A few more fixes for bug #5487, #2051, #2677.
18926 (gtk_clist_button_press): Reset clist->anchor to -1 if event->type is
18927 not GDK_BUTTON_PRESS.
18928 (resync_selection): resync only if selection_mode is
18929 GTK_SELECTION_EXTENDED
18930 * gtk/gtkctree.c (resync_selection): same here
18932 Sun Jan 30 12:29:20 2000 Owen Taylor <otaylor@redhat.com>
18934 * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
18935 gdk_drag_get_selection() and gtk_menu_detach().
18937 [ From Jeroen Ruigrok/Asmodai ]
18939 Sat Jan 29 10:11:56 2000 Owen Taylor <otaylor@redhat.com>
18941 * gtk/gtknotebook.c (gtk_notebook_size_request):
18942 page->tab_label can be NULL.
18944 2000-01-25 Havoc Pennington <hp@pobox.com>
18946 * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
18949 * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
18951 * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
18953 * gdk/gdkproperty.c (gdk_property_get): return boolean
18955 * gdk/gdkinput.c (gdk_input_set_mode): return boolean
18957 * gdk/gdkim.c (gdk_im_ready): return boolean
18959 * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
18961 * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
18962 glib clash, should fix glib)
18964 * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
18965 (gdk_get_show_events): return gboolean, and canonicalize
18968 * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
18969 colormap is private
18970 (gdk_colors_alloc): gboolean whether to be contiguous
18971 (gdk_color_equal): return gboolean since we are a predicate
18972 and not a qsort() (this looks semi-wrong due to glib breakage,
18973 IMO glib should be fixed)
18975 * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
18976 (gdk_get_use_xshm): return gboolean
18977 (gdk_pointer_is_grabbed): return gboolean
18979 * gdk/gdk.h: Change prototypes to match all the above changes,
18980 and re-run egtk-format-protos as required.
18982 Fri Jan 28 12:28:17 2000 Owen Taylor <otaylor@redhat.com>
18984 * gtk/gtkctree.c (resync_selection):
18985 * gtk/gtkclist.c (resync_selection):
18987 Return immediately if clist->drag_pos < 0. This is a workaround
18988 for the corrupt state that the clist gets into when a
18989 GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
18991 Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
18993 * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
18994 variable from recent commit.
18996 Thu Jan 27 15:22:09 2000 Owen Taylor <otaylor@redhat.com>
18998 * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
19000 Thu Jan 27 18:00:55 2000 Tim Janik <timj@gtk.org>
19002 * gtk/Makefile.am: prefix all autogenerated source that get build in
19003 $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
19004 in builddir. since we subsequently cd into srcdir for autogeneration,
19005 the paths have to be stripped from the target file names, thusly we
19006 use $(@F) as target names now.
19007 put a comment about configure.in's --disable-rebuilds option,
19008 which can be used for non-writable source directories, for development
19009 setups though, srcdir has to be *writable*.
19011 hu Jan 27 00:15:03 2000 Owen Taylor <otaylor@redhat.com>
19013 * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
19014 Finish the job of allowing event to be NULL.
19015 (Fixes bug #4283, reported by Chris Blizzard)
19017 * gtk/gtkentry.c (entry_adjust_scroll): When calculating
19018 things so that the cursor appears on screen, properly
19019 take into account INNER_BORDER.
19020 (Fixes bug #4754, reported by Antonio Campos)
19022 Wed Jan 26 23:12:28 2000 Owen Taylor <otaylor@redhat.com>
19024 * gtk/gtknotebook.c (gtk_notebook_map): Don't
19025 show the tab_label unless it itself is visible.
19027 gtk/gtknotebook.c (gtk_notebook_size_request):
19028 Do a better job of making sure that the visibility
19029 of the tab label corresponds to whether it should
19032 Wed Jan 26 21:17:03 2000 Owen Taylor <otaylor@redhat.com>
19034 * gtk/gtkoptionmenu.c (gtk_option_menu_position):
19035 Use the requisition, not the allocation, since the
19036 allocation has not necessarily been computed yet.
19037 (Pointed out by Eugene Osintsev)
19039 Wed Jan 26 19:44:25 2000 Owen Taylor <otaylor@redhat.com>
19041 * gtk/gtkstyle.c (gtk_style_new): Dont' set
19042 style/base[GTK_STATE_INSENSITIVE] both to
19043 gtk_default_insensitive_bg!
19044 (Bug #2187, reported by Jonathan Blandford)
19046 * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
19047 Add Alt_L, Alt_R to list of invalid accelerators.
19048 (Bug #3736, reported by Vlad Harchev)
19050 Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
19052 * gtk/gtkfilesel.c (open_ref_dir): Fix several
19053 bugs which occured after an attempt to open
19054 invalid home directory left cmpl_state->reference_dir == NULL.
19056 - completion on files in home directory didn't work
19057 - completion on an empty string caused segfault
19059 (Bug #3678, reported by Steve Ratcliffe)
19061 * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
19062 cut and paste error that was causing scales to
19063 be incorrectly positioned.
19065 patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
19067 2000-01-27 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
19069 * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
19070 when checking for dcgettext, if we've found we needed
19073 Wed Jan 26 18:06:07 2000 Owen Taylor <otaylor@redhat.com>
19075 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
19076 queue_clear on NO_WINDOW widgets during a reparent,
19077 since at that point the window and widget heirarchies
19078 are out of sync. This stops crashing in some cases
19079 (the scrolled window reparent test, for instance), and
19080 _probably_ won't cause drawing errors.
19082 * gtk/testgtk.c: Make the reparenting-a-scrolled-window
19083 test do what it was supposed to do and be robust against
19084 window closings, etc. (Bug #2443)
19086 Wed Jan 26 16:56:54 2000 Owen Taylor <otaylor@redhat.com>
19088 * gtk/gtkentry.c: Fix return values on mouse events.
19089 (Bug #2686, Sky <seb_sky@yahoo.com>)
19091 * gtk/genmarshal.pl: Fix up handling of FOREIGN.
19092 (pointed out by George Lebl)
19094 * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
19095 (From Ettore Perazzoli <ettore@helixcode.com>)
19097 Mon Jan 24 10:44:48 2000 Owen Taylor <otaylor@redhat.com>
19099 * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
19100 clicks between rows or outside calender area correctly.
19101 (Patch from Damon Chaplin)
19103 * gtk/gtkclist.c (gtk_clist_set_row_data_full):
19104 * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full):
19105 Call destroy function when overwriting existing data.
19106 (Pointed out by Damon Chaplin)
19108 Tue Jan 25 09:55:41 2000 Owen Taylor <otaylor@redhat.com>
19110 * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
19111 which was causing problems on various systems with Xmu.
19112 This hasn't been needed for a very long time.
19115 Sun Jan 23 22:27:36 2000 Owen Taylor <otaylor@redhat.com>
19117 * gdk/gdki18n.h: Include <ctype.h> when defining
19118 gdk_isw* in terms of is* as a fallback.
19119 (Bug #4106 - Dan Winship <danw@MIT.EDU>)
19121 Sun Jan 23 22:12:36 2000 Owen Taylor <otaylor@redhat.com>
19123 * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
19124 realize the widget when it is size allocated!
19127 * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
19128 Removed unused call to gdk_window_get_size() that
19129 showed up when the above was fixed.
19131 Sat Jan 22 15:44:30 2000 Owen Taylor <otaylor@redhat.com>
19133 * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
19134 fix up widget->window when the widget is a
19135 NO_WINDOW container widget.
19137 Sat Jan 22 12:40:48 2000 Owen Taylor <otaylor@redhat.com>
19139 * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
19140 to account for the fact that feof() does _not_
19141 return TRUE on errors, and thus avoid infinite loops
19142 when trying to use gdk_pixmap_create_from_xpm()
19143 on unreadable values.
19145 Fri Jan 21 18:32:43 2000 Owen Taylor <otaylor@redhat.com>
19147 * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
19149 Fri Jan 21 16:24:08 2000 Owen Taylor <otaylor@redhat.com>
19151 * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
19152 gdk_gc_set_dashes to take gint8 instead of gchar to
19153 make it clearer that it is _not_ a NULL terminated string.
19155 * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
19156 gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
19157 gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
19160 Thu Dec 30 04:51:05 1999 Tim Janik <timj@gtk.org>
19162 * gtk/gtkvscale.c (gtk_vscale_pos_background):
19163 * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
19164 background size relative to our allocation, guard against small
19165 allocations, we may have not yet been size allocated.
19167 Thu Dec 2 10:59:14 1999 Owen Taylor <otaylor@redhat.com>
19169 * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
19170 not just version == 3. We implement all 3 + most of 4 -
19171 (we don't support matching text/plain;charset=iso-8859-1
19172 to a dest that expects text/plain). We'll still advertise
19173 3 to be safe, but any client implementing version >= 3
19174 must interoperate with 3.
19176 Tue Mar 14 11:53:31 2000 Owen Taylor <otaylor@redhat.com>
19178 * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
19179 background and gc members, add a warning in gtk_tooltips_set_color()
19180 indicating that this function is deprecated.
19182 Thu Mar 9 22:10:56 GMT 2000 Tony Gale <gale@gtk.org>
19184 * docs/gtkfaq.sgml: FAQ Update:
19185 - Minor cleanups (Emmanuel, me)
19187 I need to add a new signal to a GTK+ widget. Any idea? (timj)
19188 How can I retrieve the text from a GtkMenuItem? (timj)
19189 How do I validate/limit/filter the input to a GtkEntry? (me)
19190 Memory does not seem to be released when I free the list
19191 nodes I've allocated (timj)
19193 2000-03-07 Tor Lillqvist <tml@iki.fi>
19195 * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
19196 (gdk_win32_gdi_failed) New function for reporting errors from GDI,
19197 for which it is no use to call GetLastError onWin9x.
19198 (gdk_other_api_failed) New function, for general error
19199 reporting without calling GetLastError.
19200 (gdk_win32_api_failed) OTOH, this function always calls
19201 GetLastError. (gdk_win32_last_error_string) Remove this function,
19202 GLib has the equivalent now.
19204 * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
19205 call them with function name, file name and line number in the
19208 * gdk/win32/*.c: Use the new macros for reporting errors from GDI
19211 * gtk/gtk.def: Add some missing entry points.
19213 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
19214 gtk_paned_set_gutter_size, which don't exist any longer, as void.
19216 Fixes by Hans Breuer:
19218 * gdk/makefile.msc: Update for debugging.
19220 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
19221 implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
19222 PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
19225 * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
19228 * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
19230 * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
19232 2000-03-04 Tor Lillqvist <tml@iki.fi>
19234 * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
19235 just pixel value of background colour.
19237 * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
19238 containing code snippet previously duplicated in a couple of
19241 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
19242 gdk_colormap_color.
19244 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
19245 GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
19246 events for autorepeated Shift, Control and Alt keys. Use
19247 gdk_colormap_color.
19249 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
19250 pointer is inside the window the cursor of which we are setting,
19251 call SetCursor immediately.
19253 * gdk/win32/makefile.cygwin
19254 * gtk/makefile.cygwin: If we don't have the build number stamp
19257 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
19258 gtk_paned_set_gutter_size as empty.
19260 * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
19262 Tue Feb 29 13:10:00 GMT 2000 Tony Gale <gale@gtk.org>
19264 * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
19265 gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
19266 docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
19267 docs/gtk_tut.sgml docs/gtk.texi TODO:
19269 Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
19271 Sat Feb 26 11:46:25 GMT 2000 Tony Gale <gale@gtk.org>
19273 * gtk/gtkcalendar.c: Implement num_marked_dates,
19274 and don't emit mutiple day_selected signals on
19277 2000-02-25 Jonathan Blandford <jrb@redhat.com>
19279 * docs/make-todo (lineno): let title and logo be configurable so
19280 that GNOME can use this script too.
19282 * TODO.xml: added logourl and a title
19284 Fri Feb 25 11:12:00 2000 Owen Taylor <otaylor@redhat.com>
19286 * TODO.xml: Added some UI items, and an explanatory
19287 comment at the top of the file.
19289 Thu Feb 24 09:07:28 2000 Tim Janik <timj@gtk.org>
19291 * TODO.xml: some updates, added abunch of new entries.
19292 a note for those fiddeling with this file, when done
19294 $ ./docs/make-todo TODO.xml >/dev/null
19295 and correct output errors before comitting changes.
19297 Wed Feb 23 22:59:50 2000 Owen Taylor <otaylor@redhat.com>
19299 * TODO.xml: Added XML-structured TODO file.
19300 * docs/make-todo: python script to turn TODO.xml into
19303 2000-02-23 Jonathan Blandford <jrb@redhat.com>
19305 * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
19306 the function to let it draw the seven dots, instead of the old,
19307 much maligned, method.
19308 (draw_dot): New function to draw a dot.
19310 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
19311 to draw the handle inside the border width as opposed to outside.
19312 Use paint function instead of gdk_draw_point.
19314 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
19315 to draw the handle inside the border width as opposed to outside.
19316 Use paint function instead of gdk_draw_point.
19318 * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
19319 Change indenting to be more GTK like.
19321 Wed Feb 23 10:54:14 GMT 2000 Tony Gale <gale@gtk.org>
19323 * docs/gtk_tut.sgml: New section on GtkCalendar
19324 * examples/calendar: Update example code
19326 Tue Feb 22 13:54:12 GMT 2000 Tony Gale <gale@gtk.org>
19328 * docs/gtkfaq.sgml: FAQ Update
19330 2000-02-19 Anders Carlsson <andersca@gnu.org>
19332 * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
19333 to prevent the scroll event to be propagated upwards.
19335 Fri Feb 18 14:37:29 2000 Owen Taylor <otaylor@redhat.com>
19337 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
19338 OwnerGrabButtonMask from button entries for
19339 GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
19341 * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
19342 to the event mask (which will result in button/press release
19343 being added to the event mask on Unix) so scrolling works
19344 for layouts in scroll windows.
19346 * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
19348 Patch from Anders Carlsson <andersca@gnu.org> to add
19351 * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
19352 scrolling to the "Test Scrolling" part of testgtk.
19354 * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
19356 * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
19357 it against GDK_SCROLL.
19359 * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
19360 way of mouse wheel scrolling.
19362 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
19364 * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
19366 * gtk/gtkmain.c: Removed previous mouse wheel hack.
19368 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
19369 gdk_event_mask_table.
19371 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added
19372 GdkEventScroll handler.
19374 * gdk/gdkevents.h: Added GdkEventScroll structure.
19376 Thu Feb 17 17:10:12 2000 Owen Taylor <otaylor@redhat.com>
19378 * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
19379 and Anders Carlsson to change the Paned widgets so that they
19380 can be dragged from anywhere along the length. Also change
19381 the way that this is drawn to make this apparent.
19383 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
19384 from George Lebl to check that option_menu->menu is present
19385 before getting history.
19387 2000-02-14 Tor Lillqvist <tml@iki.fi>
19389 * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
19390 before the assertion for non-NULL segment list.
19392 * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
19393 Seems that pattern brushes *must* be 8x8 pixels! At least on my
19394 machine, but it might be display driver dependent. Sigh, so make
19395 sure the stipple is that size. Does Windows suck or what?
19397 * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
19400 2000-02-13 Havoc Pennington <hp@pobox.com>
19402 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
19404 (gdk_cursor_new): init refcount to 1
19406 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
19408 2000-02-13 Tor Lillqvist <tml@iki.fi>
19410 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
19411 so that we don't have to do unnecessary settings to the HDC.
19413 * gdk/win32/gdkdrawable-win32.c
19414 * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
19417 * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
19418 the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
19419 GDI paths, call WidenPath to get the outline of the stroken path,
19420 and then fill the outline (with the brush that was built from the
19423 * gdk/win32/gdkgc-win32.c: Factor out common code from
19424 _gdk_win32_gc_new and gdk_win32_gc_set_values into
19425 gdk_win32_gc_values_to_win32values. Use correct colour for
19426 SetBkColor() (Until now the code actually used a random colour in
19427 the call to SetBkColor()... but that didn't show up as not many
19428 GDI APIs use the background colour. Pattern (opaque stippled)
19431 * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
19432 gdk_win32_api_failed): New functions for error logging.
19434 * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
19435 WIN32_API_FAILED to call them, passing function or file name and
19438 * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
19440 * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
19441 GdkColor for foreground and background in GdkGCWin32Data.
19443 * gdk/makefile.cygwin: Link in the resource object separately.
19445 * gdk/win32/rc/gdk.rc
19446 * gtk/gtk.rc (New file)
19447 * gdk/win32/makefile.cygwin
19448 * gtk/makefile.cygwin: Update build number in DLLs automatically,
19451 Sun Feb 13 08:54:45 2000 Tim Janik <timj@gtk.org>
19453 * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
19454 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
19455 * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
19456 * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
19457 parameters given and cursor->ref_count. coding style fixups.
19459 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
19462 * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
19463 fix up widget macros and add _GET_CLASS() variant.
19465 * gtk/*.c: some GtkType fixups.
19467 2000-02-09 Tor Lillqvist <tml@iki.fi>
19469 * gdk/win32/gdkproperty-win32.c
19470 * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
19473 2000-02-04 Tor Lillqvist <tml@iki.fi>
19475 * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
19476 g_filename_to_utf8 to convert the font names Windows gives us from
19477 whatever is the default codepage to UTF-8.
19478 (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
19479 in the other direction.
19481 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
19482 error in debugging output.
19484 2000-02-02 Tor Lillqvist <tml@iki.fi>
19486 * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
19487 and height parameters to gdk_window_clear_area(). Not minus one.
19489 Wed Feb 2 11:58:05 2000 Owen Taylor <otaylor@redhat.com>
19491 * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
19492 checks if the widget passed to gtk_drag_get_data() was not the
19495 2000-02-01 Tor Lillqvist <tml@iki.fi>
19497 * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
19498 g_filename_from_utf8 functions (which were added a moment ago to
19499 GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
19502 gtk_file_selection_get_filename returns the filename in the C
19503 runtime encoding. It calls g_filename_from_utf8, but copies the
19504 returned string to a static buffer, which is returned. I think
19505 this is better than returning the result from g_filename_from_utf8
19506 directly, which would mean all apps that use it would have to free
19507 the return value. Or should this function care about this issue at
19508 all? Maybe a new function with clearly defined semantics.
19510 * gtk/gtkfilesel.h: Add comment about
19511 gtk_file_selection_get_filename returning the filename in the C
19512 runtime's encoding.
19516 * gdk/makefile.{cygwin,msc}
19517 * gtk/gtk.def: Updates.
19519 * gdk/gdkcursor-win32.c: Initialise refcount.
19521 2000-01-31 Yuan-Chung Cheng <platin@linux.org.tw>
19523 * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
19525 2000-01-30 Havoc Pennington <hp@pobox.com>
19527 * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
19530 * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
19532 * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
19533 implemented in platform-specific code
19535 * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
19537 * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
19538 underscore in front
19540 * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
19541 put an underscore in front
19543 * gdk/gdkcursor.c: new file, implements
19544 gdk_cursor_ref/gdk_cursor_unref
19546 * gdk/gdkcursor.h: Refcount GdkCursor
19548 * gdk/gdkcompat.h (gdk_cursor_destroy): compat
19550 2000-01-29 Tor Lillqvist <tml@iki.fi>
19553 * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
19555 Tue Jan 25 11:43:21 2000 Owen Taylor <otaylor@redhat.com>
19557 * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
19558 structures to properly inherit from GtkWidget not GtkBin.
19560 Sun Jan 23 20:28:24 2000 Owen Taylor <otaylor@redhat.com>
19562 * gtk+.spec.in: Added lib/gtk+/include/* to %files
19563 (bug #5178 - Peter Wainright)
19565 * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
19566 so that it will be installed.
19567 (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
19569 Fri Jan 21 16:29:28 2000 Owen Taylor <otaylor@redhat.com>
19571 * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
19572 for the GtkStyleClass vtable const.
19574 * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
19575 take a const string argument like GtkTranslateFunc. This will
19576 require changes in use code.
19578 2000-01-19 Tor Lillqvist <tml@iki.fi>
19580 * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
19581 semantics (to mimic the X11 backend, which just calls XClearArea)
19582 is to check for zero width (and height), and in that case use the
19583 window's width minus x (height minus y). This fixes for instance
19584 some redraw problems with gtkclist, which were easily noticeable
19585 in the gtk file selection widget.
19587 (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
19590 2000-01-13 Tor Lillqvist <tml@iki.fi>
19594 * gdk/x11/Makefile.am
19595 * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
19597 * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
19600 2000-01-09 Tor Lillqvist <tml@iki.fi>
19602 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
19603 WM_MOVE for iconified or invisible windows. This fixes various
19604 problems when minimising windows. Thanks to Bernd Herd.
19606 2000-01-05 Tor Lillqvist <tml@iki.fi>
19608 * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
19609 backend's draw_lines method, not draw_points.
19611 2000-01-02 Tor Lillqvist <tml@iki.fi>
19613 * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
19614 before Owen's reorganisation: Don't have queued_events and
19615 queued_tail statics in this file, but use gdk_queued_events and
19616 gdk_queued_tail. This makes exposure event compression work again.
19618 (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
19621 1999-12-30 Tor Lillqvist <tml@iki.fi>
19623 * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
19624 gdkkeysyms.h to get the GDK_* keysym constants that are needed by
19625 gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
19626 doesn't do anything.
19628 * gdk/gdk.def: Add gdk_xid_table_insert.
19630 * gdk/win32/gdkprivate-win32.h
19631 * gdk/win32/gdkevents-win32.c
19632 * gdk/win32/gdkinput-win32.c
19634 * gdk/win32/gdkwindow-win32.c: Remove the superfluous
19635 extension_events field in the GdkWindowWin32Data struct. Use only
19636 the extension_events field in GdkWindowPrivate. Previously one was
19637 set, and the other one tested, which broke tablet
19638 functionality. Thanks to Keishi Suenaga for pointing this out.
19640 1999-12-18 Tor Lillqvist <tml@iki.fi>
19642 * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
19643 When handling a single character (text length == 1), don't handle
19644 it as if it was UTF-8.
19646 1999-12-11 Tor Lillqvist <tml@iki.fi>
19648 * Makefile.am: Distribute README.win32.
19651 * gdk/win32/Makefile.am: Distribute Win32 files.
19653 * gdk/makefile.msc: New file.
19655 * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
19658 * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
19659 gdk_error_code as GDKVAR, as they are referred outside GDK.
19661 * gdk/win32/makefile.msc: Update.
19663 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
19664 tweaks. Check only if at least one of those Unicode subrange bits
19665 we care for is set. If no code page bits are set, guess (wildly)
19666 based on the charset.
19668 * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
19670 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
19676 * gtk/gtkselection.c
19678 * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
19679 appropriate. There must be a cleaner way to handle this?
19681 * gtk/gtkrc.c: Must include windows.h on Win32.
19683 * gtk/testgtk.c: No need to include gdkx.h.
19685 * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
19687 1999-12-07 Tor Lillqvist <tml@iki.fi>
19689 * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
19690 the rbearing is set to the same as the width, but this should be
19693 1999-12-06 Tor Lillqvist <tml@iki.fi>
19695 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
19696 function. If Windows doesn't tell us what Unicode subranges a font
19697 covers, guesstimate based on the codepages it covers. This will
19698 hopefully help those Windows versions or fonts that don't give us
19699 any useful Unicode subrange information with GetTextCharsetInfo.
19700 Call this function in gdk_font_load_internal.
19702 * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
19705 Fri Dec 3 14:09:50 1999 Owen Taylor <otaylor@redhat.com>
19707 * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
19708 New function, long needed.
19710 Wed Dec 1 22:35:43 1999 Owen Taylor <otaylor@redhat.com>
19712 * gdk/gdkproperty.h x11/gdkproperty.c: Change
19713 only_if_exists argument of gdk_atom_intern to
19716 1999-11-25 Tor Lillqvist <tml@iki.fi>
19718 * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin):
19719 Fix two copy&paste errors.
19721 * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
19724 * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
19725 GdkWin32SingleFont struct.
19727 * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
19728 subranges of loaded fonts. Clear font signature first, in case
19729 GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
19730 ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
19732 * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
19733 Unoffset clip region.
19735 1999-11-23 Tor Lillqvist <tml@iki.fi>
19737 * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
19738 event->any.window before calling filter functions.
19740 Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
19742 * gtk/gtkgamma.h: Adapt cast macros to standard.
19744 [ Merges from 1.2 ]
19746 Tue Nov 16 10:15:54 1999 Owen Taylor <otaylor@redhat.com>
19748 * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
19749 If translation does not include a '/', use entire
19750 translation instead of crashing.
19752 Sun Oct 31 22:21:11 1999 Tim Janik <timj@gtk.org>
19754 * docs/gtk_tut.sgml:
19755 s/gtk_accel_group_attach/gtk_window_add_accel_group/.
19757 Sat Oct 30 09:09:09 1999 Owen Taylor <otaylor@redhat.com>
19759 * gtk/gtkselection.c (gtk_target_list_remove): Use
19760 g_list_remove_link, not g_list_remove.
19762 [ From Geert Bevin <gbevin@thunderstorms.org> ]
19764 Sun Oct 24 07:41:40 1999 Tim Janik <timj@gtk.org>
19766 * gtk/gtkclist.c (real_undo_selection): commented out g_print()
19767 statement upon unselection (how the heck did that slip in?).
19769 Sat Oct 23 03:03:08 1999 Tim Janik <timj@gtk.org>
19771 * gtk/gtktext.c (gtk_text_freeze):
19772 (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
19773 in frozen state (and aparently crashes). patch provided by Anders
19774 Melchiorsen <and@kampsax.dtu.dk>.
19776 Sat Oct 23 02:53:20 1999 Tim Janik <timj@gtk.org>
19778 * fix insensitive default/focus widget activation,
19779 reported by Matt Goodall <mgg@isotek.co.uk>.
19781 * gtk/gtkwindow.c (gtk_window_key_press_event):
19782 (gtk_window_activate_default):
19783 (gtk_window_activate_focus):
19784 return handled=FALSE for actiavtion of insensitive default
19785 widgets. return handled=TRUE for activation of insensitive
19786 focus widgets. don't activate in either case.
19788 Tue Oct 19 09:55:08 1999 Owen Taylor <otaylor@redhat.com>
19790 * gtk-config.in (lib_gtk): Switch order of @x_cflags@
19791 and $glib_cflags to match library order and in the
19792 theory that an old version of GLib is more likely to
19793 be in the include directory for X then vice-versa.
19796 Tue Oct 19 09:46:49 1999 Owen Taylor <otaylor@redhat.com>
19798 * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE
19799 to determine the locale for fontsets, not LC_MESSAGES;
19800 the user may want English messages with a handling
19801 for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
19802 will still be broken) (Bug #2891)
19804 Tue Oct 19 20:36:42 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
19806 * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
19808 Tue Oct 19 12:15:13 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
19810 * gtk/gtkrc.ko: Changed the Korean default fontset.
19812 Fri Oct 8 02:32:47 1999 Owen Taylor <otaylor@redhat.com>
19814 * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
19815 where when scrolling to the left or top double exposes
19816 were done, causing major slowdowns.
19818 Thu Oct 7 18:31:55 1999 Owen Taylor <otaylor@redhat.com>
19820 * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
19821 names to lowercase and alphanumeric, before looking
19824 * gtk/Makefile.am: Install codeset variant gtkrc files
19825 with normalized names.
19827 Thu Oct 7 22:52:42 1999 Tim Janik <timj@gtk.org>
19829 * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
19830 popup menus when the menu is already visible, but its parent
19831 is still hidden, (happens after tornoff window got hidden).
19833 Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
19835 * gtk/Makefile.am (install-data-local): Fix
19836 a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
19837 deleted, causing error messages on install.
19839 Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
19841 * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
19842 the handle as well, since we now sometimes ignore
19843 exposes on the handle while resizing.
19845 Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
19847 * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
19848 extra g_free introduced in one of the last one or two
19851 Wed Oct 6 16:38:36 1999 Owen Taylor <otaylor@redhat.com>
19853 * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
19854 consistent, put each style that a gtkrc.* file creates
19855 in a unique namespace, remove old files before installing.
19857 Wed Oct 6 14:31:16 1999 Owen Taylor <otaylor@redhat.com>
19859 * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
19860 gtk_rc_init is called multiple times. (Yes, people who
19861 do that have bugs in their code.)
19863 Tue Oct 5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
19865 * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
19866 Remove it since it's generated by the Makefile anyway
19868 Tue Oct 5 02:43:41 1999 Owen Taylor <otaylor@redhat.com>
19870 * gdk/gdkinputcommon.h (gdk_input_device_new): Free
19871 device->info.axes for core pointer.
19873 Thu Sep 30 13:55:25 1999 Owen Taylor <otaylor@redhat.com>
19875 * gtk/testgtk.c (destroy_idle_test): Rename idle to
19876 idle_id, to deal with obsolete, broken C libraries.
19878 Mon Sep 27 02:50:15 1999 Owen Taylor <otaylor@redhat.com>
19880 * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
19881 allocation->x/y twice!
19883 * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
19884 consistent with gtk_vscale_pos_trough().
19886 Sun Sep 26 19:44:34 1999 Owen Taylor <otaylor@redhat.com>
19888 * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
19889 be queueing a resize on a toplevel container between
19890 the time we show it and when we map it. So, we need
19891 to test GTK_WIDGET_VISIBLE() for toplevels, and only
19892 use GTK_WIDGET_DRAWABLE() for child windows.
19894 Thu Sep 23 16:41:03 1999 Owen Taylor <otaylor@redhat.com>
19896 * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS
19899 Fri Sep 24 00:51:45 1999 Tim Janik <timj@gtk.org>
19901 * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
19902 container DRAWABLE (instead of VISIBLE), so we don't queue
19903 resizes on non-toplevel containers.
19905 Sun Sep 19 18:13:31 1999 Owen Taylor <otaylor@redhat.com>
19907 * gtk/gtkselection.[ch]: Make the data argument
19910 Sat Sep 18 21:27:40 1999 Owen Taylor <otaylor@redhat.com>
19912 * gtk/gtkwindow.c: Try to behave sensibly if
19913 the focus widget is the window itself. (Should
19914 we allow this at all?)
19916 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
19918 * gtk/gtkwidget.c (gtk_widget_set_sensitive):
19919 * gtk/gtknotebook.c (gtk_notebook_set_scrollable):
19920 * gtk/gtknotebook.c (gtk_notebook_set_show_border):
19921 * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
19922 in prototypes and implementations consistent (Tomas Ogren).
19924 * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
19925 before the widget is unparented (reported by damon).
19927 * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
19928 since we provide unsigned data anyways.
19930 Thu Sep 16 21:32:01 1999 Owen Taylor <otaylor@redhat.com>
19932 * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
19933 the call to gtk_tooltips_layout_text() until later.
19935 * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
19936 Call gtk_widget_ensure_style() before using the style.
19938 Wed Sep 15 02:52:19 1999 Owen Taylor <otaylor@redhat.com>
19940 * gtk/gtkwidget.c (gtk_widget_event): Added workaround
19941 for old widgets that don't propagate draws to all
19942 children. (Namely gnome-dock for gnome-libs <= 1.0.16)
19944 Tue Sep 14 19:22:19 1999 Tim Janik <timj@gtk.org>
19946 * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
19947 for a redraw but just the widget that requested the resize.
19949 Tue Sep 14 18:29:47 1999 Tim Janik <timj@gtk.org>
19951 * gtk/gtkcontainer.c: added new widget level method
19952 gtk_container_set_reallocate_redraws() and a GtkContainer flag
19953 reallocate_redraws : 1 to reflect the setting, exported this through
19954 the argument system as a boolean ::reallocate_redraws.
19956 * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
19957 on the widget because the allocation changes, do so as well for
19958 widget->parent if the parent has reallocate_redraws set to TRUE.
19959 with that containers requesting reallocation redraws get automatically
19960 redrawn if their children changed allocation (this unfortunately
19961 affects also other children that didn't change allocation, but we
19962 cannot work around that before 1.3).
19964 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
19966 * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
19967 _and_ height are >0 (not _or_).
19969 * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
19970 instead of gtk_container_queue_resize(), which is a core gtk internal
19971 function (must have been on crack when i queued that).
19973 * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
19974 we can check more reliably if we want to discard expose events.
19975 * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
19978 * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
19979 we simply trust these events. for deciding whether to discard exposes,
19980 check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
19982 Mon Sep 13 15:01:21 1999 Owen Taylor <otaylor@redhat.com>
19984 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
19985 queues of areas that are completely off screen.
19987 * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
19988 logic for handleboxes.
19990 * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
19991 check on width/height.
19993 Mon Sep 13 02:22:47 1999 Tim Janik <timj@gtk.org>
19995 * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
19996 we are fine with using $@ the way we do (if we actually encounter
19997 brokeness with $@ in VPATH builds because of additional path prefixes,
19998 we need to use $(@F) actually).
20000 Mon Sep 13 01:34:53 1999 Tim Janik <timj@gtk.org>
20002 * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
20003 short lived bugs, that would allow language bindings to do surgeries
20006 Fri Sep 10 15:22:50 1999 Owen Taylor <otaylor@redhat.com>
20008 * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
20009 where comparison was being done against an uninitialized
20010 value causing intermittant results depending on
20011 compiler flags. Also make it clearer that we aren't
20012 ever initializing the child as 0x0 (though this will
20013 be caught in gtk_widget_size_allocate())
20015 Fri Sep 10 10:06:56 1999 Owen Taylor <otaylor@redhat.com>
20017 * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
20018 gtk_window_unset_transient_for() call after we do checks
20019 involving the old transient parent.
20020 [ From Lance Capser <lmc@cyberhighway.net> ]
20022 1999-09-07 Raja R Harinath <harinath@cs.umn.edu>
20024 * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
20027 Mon Sep 6 00:11:56 1999 Lars Hamann <lars@gtk.org>
20029 * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
20030 no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
20032 1999-09-03 Raja R Harinath <harinath@cs.umn.edu>
20034 * gtk/Makefile.am (gen_sources): Improve VPATH builds.
20035 `$@' is valid only in the build dir, not after we've done
20036 `cd $srcdir'. Also use `test -f' instead of less portable
20039 Fri Sep 3 15:59:56 1999 Owen Taylor <otaylor@redhat.com>
20041 * gtk/gtktext.c (correct_cache_insert): Rewrite
20042 for simplicity, and hopefully correctness.
20043 (Fixes bug #1322, which was a segfault when
20044 on some insertions with the properties around
20045 the insertion set up just wrong.)
20047 * gtk/gtktext.c (gtk_text_adjustment): When we receive
20048 a "changed" signal, clamp the new value to the adjustment
20049 bounds to avoid segfaulting if someone tries to change
20050 the adjustment to a bogus value. (Bug #1795)
20052 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
20054 * gtk/gtkmain.c: Ignore unexpected destroy notifies
20055 for children, for toplevel windows handle them
20058 * gtk/gtkplug.c: Add an unrealize handler so that
20059 we unref plug->socket_window when we are done
20062 Fri Sep 3 14:52:54 1999 Owen Taylor <otaylor@redhat.com>
20064 * gtk/gtktext.c (clear_area): Fix stupid signedness
20065 problem that was causing background to sometimes
20068 Fri Sep 3 12:26:33 1999 Owen Taylor <otaylor@redhat.com>
20070 [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
20072 * gtk/gtkmenu.c (gtk_menu_position): Make
20073 sure we never position menus with negative x, y,
20074 since gtk_widget_set_uposition() can't handle that.
20076 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
20077 Modify the positioning code a bit so that we always
20078 put the top-left corner onscreen. (This is for
20079 UI reasons, gtk_menu_position() now takes care of
20080 gtk_widet_set_uposition() brokeness.)
20082 Fri Sep 3 03:06:30 1999 Tim Janik <timj@gtk.org>
20084 * gtk/Makefile.am: fixed up things for -jx, x > 1.
20086 Sun Sep 5 08:48:51 1999 Owen Taylor <otaylor@redhat.com>
20088 * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
20089 RC style that is passed in. The lack of the ref
20090 before was a bug. If people worked around this
20091 bug, this will introduce a slight memory leak
20092 in their code. The code should typically look like:
20094 rc_style = gtk_rc_style_new ();
20096 gtk_widget_modify_style (widget, rc_style);
20097 gtk_rc_style_unref (rc_style);
20099 * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
20100 the style if it was already set.
20102 * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
20103 style if it was set before.
20105 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
20107 * gtk/testgtk.c (main): Add a check to see if we
20108 are being run from the correct directory and
20109 to quit nicely if we are not.
20111 * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
20114 Thu Sep 2 23:00:03 1999 Tim Janik <timj@gtk.org>
20116 * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
20119 queue resizes unconditionally (gtk_widget_queue_resize will figure
20120 what to do if the window is not realized).
20121 (gtk_window_move_resize): only recenter the window
20122 for GTK_WIN_POS_CENTER_ALWAYS.
20123 (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
20124 the same way as GTK_WIN_POS_CENTER.
20126 Thu Sep 2 22:39:27 1999 Tim Janik <timj@gtk.org>
20128 * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
20129 with (!(info->last_flags & GDK_HINT_POS)) instead of
20130 (!info->last_flags & GDK_HINT_POS).
20132 * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
20133 new_height unconditionally, because we use these values even if
20134 !default_size_changed && !hints_changed.
20135 comented the (default_size_changed || hints_changed) case with
20136 respect to resize rejects from the window manager.
20138 * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
20139 in the zvt condition hack, since this includes the window hints, set
20140 the hints after the handling_resize case.
20142 * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
20143 window is initially shown with to the geometry.
20145 Thu Sep 2 07:38:56 1999 Tim Janik <timj@gtk.org>
20147 * gtk/gtkwindow.c (gtk_window_move_resize):
20148 s/size_changed/default_size_changed/g so i know what's
20149 really going on (frying brain on smaller flame now).
20151 Thu Sep 2 05:47:47 1999 Tim Janik <timj@gtk.org>
20153 * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
20154 we have size_changed upon handling_resize. this is a gross
20155 workaround for the broken zvt widget and should be removed in
20156 1.3 again (search for FIXME).
20157 Owen provided an accurate comment for this:
20159 /* We could be here for two reasons
20160 * 1) We coincidentally got a resize while handling
20162 * 2) Our computation of size_changed was completely
20163 * screwed up, probably because one of our children
20164 * is broken. It's probably a zvt widget.
20166 * For 1), we could just go ahead and ask for the
20167 * new size right now, but doing that for 2)
20168 * might well be fighting the user (and can even
20169 * trigger a loop). Since we really don't want to
20170 * do that, we requeue a resize in hopes that
20171 * by the time it gets handled, the child has seen
20172 * the light and is willing to go along with the
20173 * new size. (this happens for the zvt widget, since
20174 * the size_allocate() above will have stored the
20175 * requisition corresponding to the new size in the
20178 * This doesn't buy us anything for 1), but it shouldn't
20179 * hurt us too badly, since it is what would have
20180 * happened if we had gotten the configure event before
20181 * the new size had been set.
20184 Wed Sep 1 20:46:11 1999 Owen Taylor <otaylor@redhat.com>
20186 * gtk/gtkrc.c: deal properly with the fact that RC
20187 style lists may include rc styles more than once.
20189 * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
20190 unused static function.
20192 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
20193 stack of directories of RC files currently being
20194 parsed and implicitely add them to pixmap path.
20196 This fixes a bug where the directory would get
20197 appended then overwritten by pixmap_path declarations.
20199 (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
20201 * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
20202 theme's exit function. (Patch from Peter Wainwright,
20205 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
20206 Add a destroy() handler to take care of removing
20207 group for menu item. (Fixes bug #1197)
20209 * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
20210 in warning message.
20212 Wed Sep 1 21:27:42 1999 Tim Janik <timj@gtk.org>
20214 * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
20215 roundtrip to figure window's width and height, since we know that
20216 anyways from widget->allocation.
20218 Wed Sep 1 12:37:44 1999 Owen Taylor <otaylor@redhat.com>
20220 * gtk/gtkwindow.c (gtk_window_move_resize): Compute
20221 the hints after we request the new size.
20223 Wed Sep 1 10:38:37 1999 Owen Taylor <otaylor@redhat.com>
20225 * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
20226 GTK_WIDGET_REALIZED() assertion - we can compute the
20227 hints before we are realized.
20229 * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
20230 hint changing so that we have a value of hints_changed
20231 when we decide whether to constrain the window size.
20233 * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
20235 * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
20236 change back to G_MAXINT.
20238 Wed Sep 1 06:54:59 1999 Tim Janik <timj@gtk.org>
20240 * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
20241 new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
20242 contain uncluttered values.
20243 (gtk_window_compute_hints): simply assert that window is realized
20244 and that geometry_info is valid, since we rely on this anyways.
20245 (gtk_window_constrain_size): major cleanups to the code.
20246 if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
20247 for the base size, instead of the minimums. use 32767 as max width
20248 and height (like in gtkwindow.c) instead of G_MAXINT.
20250 Wed Sep 1 04:41:25 1999 Tim Janik <timj@gtk.org>
20252 * cleaned up the GtkContainer.need_resize flag handling mess, we
20253 only need to force resize requests when we were prematurely
20254 realized, or our widget tree was modified when we were temporarily
20255 hidden. handling these cases directly upon showing the window (i.e.
20256 while the GdkWindow is still unmapped) avoids the need to wait for
20257 a configure event response and therefore makes the GUI more snappier
20258 and avoids blank windows during the roundtrip.
20262 (gtk_widget_show): don't queue resizes on toplevels, they know how
20263 to deal with matters.
20265 * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
20266 flag directly for not visible resize containers and spare us unecessary
20270 (gtk_window_realize): if we need to enforce premature size allocation,
20271 queue a container resize so we are correctly resized later on.
20273 (gtk_window_size_request):
20274 don't freak around with the ->need_resize flag,
20275 gtk_container_queue_resize() will care about that.
20277 handle initial resizing issues here, we can handle matters better in
20278 this place, especially since we know that our GdkWindow is still
20280 (gtk_window_move_resize):
20281 don't care about ->need_resize at all.
20282 handle size changes properly that occoured while we waited for a
20285 Tue Aug 31 15:58:46 1999 Owen Taylor <otaylor@redhat.com>
20287 * gtk/gtkwidget.c (gtk_widget_set_uposition):
20288 * gtk/gtkwindow.[hc] (gtk_window_reposition):
20289 Move the hint setting code from gtk_widget_set_uposition
20290 to here; set the hints so that we respect any previously
20291 set geometry hints.
20293 * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
20294 change the window hints here or move the window here,
20295 let that happen in gtk_window_move_resize().
20297 Tue Aug 31 06:58:52 1999 Tim Janik <timj@gtk.org>
20299 * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
20300 to already queued resizes (and therefore redraws) on a widget, check
20301 its anchestry as well.
20303 * gtk/gtkcontainer.c:
20304 (gtk_container_queue_resize): clear resize widgets for resize
20305 containers before aborting prematurely. this is especially important
20306 for toplevels which may need imemdiate processing or their resize
20307 handler to be queued.
20308 (gtk_container_dequeue_resize_handler): added new internal function for
20311 * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
20312 configure event, take possible changes in window position into account
20314 if we request a new window size, queue up a resize handler that will
20315 last until the configure event response arrives.
20316 combined the ->need_resize case (initial show) with the general size
20317 (hints) changed case and added even more comments.
20318 if !auto_shrink, only revert to the old allocation if the new size
20319 is smaller than the current allocation.
20321 Tue Aug 31 11:55:20 1999 Owen Taylor <otaylor@redhat.com>
20323 * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
20324 gtk_window_set_geometry_hints
20325 gtk_window_set_default_size):
20326 When hints are set, queue a resize so that the hints will
20327 be eventually reset on the toplevel.
20329 * gtk/gtkwindow.c (gtk_window_show): Use
20330 gtk_window_compute_default_size(). Clear the need_resize flag
20331 on the initail map so that we don't unnecessarily trigger the
20334 * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
20335 into separate functions. Compare the hints we are setting
20336 with what we set last time so that we can accurately
20337 tell when we need to reset the hints.
20339 * gtk/gtkwindow.c (gtk_window_compute_default_size): New
20340 function to figure out the size from requisition
20343 * gtk/gtkwindow.c (gtk_window_constrain_size): Function
20344 from fvwm to constrain a size to the geometry hints.
20346 * gtk/gtkwindow.c (gtk_window_compare_hints): New function
20347 to compare two sets of geometry hints.
20349 * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
20350 from gtk_window_set_hints(), just compute the hints,
20353 * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
20354 code from gtk_window_move_resize() to separate function,
20357 Tue Aug 31 13:05:03 1999 Owen Taylor <otaylor@redhat.com>
20359 * gtkrc.h: Move the ref_count member out of the GtkRcStyle
20360 structure into a new private structure.
20362 * gtkrc.c: Split GtkRcStyle into public/private.
20363 In the private part, add a list of pointers to the
20364 RcStyle lists this RcStyle participates in.
20366 * gtkrc.c: When a RcStyle is free, remove all
20367 lists referencing it from the
20368 realized_style_ht hash, and free those lists.
20370 * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
20371 gtk_rc_init(), since that adds the default styles
20372 to the list of parsed RC files again.
20374 * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
20376 Thu Aug 26 14:14:42 1999 Tim Janik <timj@gtk.org>
20378 * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
20379 checks that ensure that a widget's allocation is at least 1 in width
20380 and height. (GNOME note: this doesn't affect old panel code anymore,
20381 because GtkSocket will request width and height of at least 1 since
20384 * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
20385 allocated yet (happens if the user realizes the window prematurely),
20386 size request and allocate it.
20387 (gtk_window_size_allocate): guard against guint underflows.
20389 Wed Aug 25 19:01:36 1999 Lars Hamann <lars@gtk.org>
20391 * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
20392 in gtk_built_sources, so gtk.defs gets built prior to all other
20395 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
20398 invoke indent on gtkmarshal.*.
20399 rewrote source generation rules, use COPYING as oldest source tag for
20400 a piggyback rule to generate all sources from (don't touch it ;).
20401 major cleanups, strip spaces on build rules for GNU Make.
20403 * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
20404 source and target files from commandline arguments. don't invoke indent.
20406 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
20408 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
20409 notebook after switch to avoid drawing problems.
20410 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
20412 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
20414 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
20416 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
20418 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
20419 notebook after switch to avoid drawing problems.
20420 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
20422 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
20424 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
20426 Wed Aug 18 09:20:10 1999 Tim Janik <timj@gtk.org>
20429 we use window->need_resize from configure_event now, to indicate that
20430 the gtkwindow should keep its allocation (e.g. because the user resized
20431 the window through window manager handles). resize_count is now reliably
20432 used to figure whether we got the allocation we requested from the
20434 configure events get queued as resizes now, the real stuff (size
20435 computation and allocation) now only goes on in gtk_window_move_resize().
20436 GtkWindow's requisition now contains its *real* requisition (like all
20437 other widgets), *not* taking usize into account.
20438 geometry_info->last_{width|height} is now updated from set_hints() only
20439 so it always contains the last hints we set for the window manager.
20440 made some event handlers return TRUE instead of FALSE.
20441 the overall code should be much more straight forward now, and the
20442 significant code portions are accompanied by comments now.
20443 (gtk_window_set_hints):
20444 removed requisition argument and made it
20445 fetch the requisition through gtk_widget_get_child_requisition.
20446 we also don't move the gdkwindow here anymore, gtk_window_move_resize()
20449 ensure that the widget is realized before calling
20450 gtk_container_check_resize() (and thus gtk_window_move_resize()), also
20451 ensure that we got properly size requested and allocated before
20453 (gtk_window_configure_event):
20454 ignore plain window moves, or reallocate the widget tree through the
20455 resize queue otherwise.
20456 (gtk_window_move_resize):
20457 mostly rewrote this function to figure window manager hints more
20458 reliably, coalesce window moves and resizes to reduce configure events
20459 and do actuall size allocations.
20461 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
20463 * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
20464 that have a resize pending, because a redraw is already queued for them.
20466 * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
20467 hack to clear resize_widgets.
20469 * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
20470 for resize containers prior to size allocation. (this is also a bit
20471 ugly, but avoids side effects for stopped emissions and is thus more
20473 (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
20475 * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
20476 function from gtk_tooltips_expose, as we connect to ::expose_event
20479 1999-08-18 Federico Mena Quintero <federico@redhat.com>
20481 * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
20483 (gtk_target_list_unref): Likewise.
20485 * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
20487 Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com>
20489 * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
20490 guard against division by zero. (Fixes bug #1339)
20492 Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com>
20494 * gtk/gtkentry.c (gtk_move_{forward,backward}_word):
20495 Prevent the trivial leak of information of allowing
20496 word motion when the entry is not visible.
20498 Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com>
20500 * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
20501 modality to error dialog as well as confirmation dialogs.
20502 (Bug #1803, reported by Rosanna Wing Sze Yuen)
20504 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
20506 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
20508 (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
20510 * gtk/Makefile.am (install-data-local): Solaris apparently
20511 has various troubles with ln -f; use rm first instead.
20512 (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
20514 1999-07-30 Raja R Harinath <harinath@cs.umn.edu>
20516 * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
20517 use `cp' followed by `rm' (the `rm' was already there).
20519 July 30, 1999 Elliot Lee <sopwith@redhat.com>
20521 * configure.in: Fix autoconf warnings about cross compilation by
20522 trying to provide sane defaults for AC_TRY_RUN.
20523 * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
20524 put them into $(srcdir) when generated. Also add a dependency of
20525 gtksignal.h on gtkmarshal.h for -j builds.
20526 * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
20528 Wed Jul 28 09:29:19 1999 Owen Taylor <otaylor@redhat.com>
20530 * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
20531 GDK_THREADS_{LEAVE,ENTER} pair.
20532 (From Paul Fisher <pnfisher@redhat.com>)
20534 Fri Jul 23 01:00:15 1999 Tim Janik <timj@gtk.org>
20536 * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
20537 width and height are always >0 (owen).
20539 Fri Jul 23 00:00:47 1999 Tim Janik <timj@gtk.org>
20541 * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
20542 change that assured that a widget's allocated with and height are
20543 always >1, since this breaks *buggy* panel code. unfortunately this
20544 back-breaks the gimp's color selector.
20546 * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
20547 allocation is always >0 in width and height, before sending the
20548 configure event; this is a *gross* hack to get the gimp back to work.
20550 * marked both cases with TODO-1.3
20552 Wed Jul 21 15:47:39 1999 Owen Taylor <otaylor@redhat.com>
20554 * gtk/gtktext.c: Don't display wrap indicators when
20555 text is not editable and word wrap is on.
20557 Wed Jul 21 08:21:40 1999 Tim Janik <timj@gtk.org>
20559 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
20560 option menus here as they are not derived from menu shell, assure that
20561 the option menu has a menu we can add items to.
20563 Tue Jul 20 23:29:48 1999 Tim Janik <timj@gtk.org>
20565 * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
20566 width/height to (gint) before calculations and check against < 0 to
20567 avoid guint wraparounds.
20569 Sun Jul 18 00:35:49 1999 Tim Janik <timj@gtk.org>
20571 * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
20572 width and height is never zero. sanity check both dimensions against
20573 32767 and issue a warning if the allocation is greater than that.
20575 Wed Jul 7 15:03:30 1999 Owen Taylor <otaylor@redhat.com>
20577 * gtk/gtkmain.c (gtk_events_pending): Unlock around call
20578 to g_main_pending() as well.
20580 Wed Jul 7 14:59:01 1999 Owen Taylor <otaylor@redhat.com>
20582 * gtk/gtkmain.c (gtk_main_iteration): Unlock around
20583 call to g_main_iteration() - since that will regrab
20584 GTK+ lock to process events.
20586 Thu Jul 1 15:01:55 1999 Owen Taylor <otaylor@redhat.com>
20589 - Regularize with the rest of GTK+ by making widget->requisition
20590 not reflect the set_usize()
20591 - Always recompute geometry hints, then check if they
20592 changed before sending them to the X server. The
20593 previous checks for changes would fail in a number
20596 Thu Jul 1 11:55:59 1999 Owen Taylor <otaylor@redhat.com>
20598 * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
20600 Wed Jun 30 19:26:36 1999 Owen Taylor <otaylor@redhat.com>
20604 - Instantaneously update on modifier key presses
20605 - Allow cancellation of the drag with Escape.
20607 Tue Jun 29 17:04:09 1999 Owen Taylor <otaylor@redhat.com>
20609 * gtk/testgtk.c (create_handle_box): Set the policy
20610 to auto_shrink - otherwise the appearance is rather
20611 strange when flipping between horizontal and vertical.
20613 Mon Jun 28 09:29:52 1999 Tim Janik <timj@gtk.org>
20615 * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
20616 (gtk_window_set_default_size): don't change a value if it's < 0.
20619 Sun Jun 27 11:00:33 1999 Tim Janik <timj@gtk.org>
20621 * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
20623 Mon Jun 28 12:08:25 1999 Owen Taylor <otaylor@redhat.com>
20625 * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
20626 add an extra "/" when concating "/" + filename.
20627 (From Matt Grossman <mattg@oz.net>)
20629 Mon Jun 28 10:57:12 1999 Owen Taylor <otaylor@redhat.com>
20631 * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
20632 for fg_gc if we set it for drawing pixmap.
20634 Tue Jun 15 12:45:12 1999 Owen Taylor <otaylor@redhat.com>
20636 Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
20638 * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
20639 already set, call old engine's destroy function and
20640 unref the old engine.
20642 Thu Jun 10 17:59:38 1999 Tim Janik <timj@gtk.org>
20644 * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
20646 Wed Jun 9 15:13:16 1999 Tim Janik <timj@gtk.org>
20648 * gtk/gtkaccelgroup.h: mark certain functions as internal.
20650 Wed Jun 9 13:48:28 1999 Tim Janik <timj@gtk.org>
20652 * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
20653 expand behaviour changed.
20655 * gtk/gtklabel.c (gtk_label_set_pattern):
20656 (gtk_label_set_justify):
20657 (gtk_label_set_line_wrap):
20658 don't bother invoking queue_clear, the reallocation does
20659 that for us, always free_words so the upcoming resize will
20660 relayout the label's contents.
20662 Wed Jun 9 12:50:48 1999 Tim Janik <timj@gtk.org>
20664 * applied argument implementation patches from Elena Devdariani
20667 * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
20668 ::space_style, ::relief
20669 * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
20670 * gtk/gtkpreview.c: ::expand
20671 * gtk/gtkpaned.c: ::handle_size, ::gutter_size
20672 * gtk/gtknotebook.c: ::homogeneous
20673 * gtk/gtklabel.c: ::wrap
20674 * gtk/gtklist.c: ::selection_mode
20675 * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
20676 * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
20677 * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
20678 * gtk/gtkclist.c: ::sort_type
20679 * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
20680 * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
20682 Tue Jun 1 23:38:38 1999 Owen Taylor <otaylor@redhat.com>
20684 * gtk/gtkstyle.c: Removed ill-thought-out part of last
20687 Tue Jun 1 23:30:09 1999 Owen Taylor <otaylor@redhat.com>
20689 * gtk/gtkstyle.c (gtk_style_attach): Get the reference
20690 counting right when we have to attach a new style
20691 for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
20693 * gtk/gtkstyle.c: Documented the refcounting
20694 peculularities of gtk_style_attach.
20696 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
20698 * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
20701 * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
20702 of GTK_TOPLEVEL for creating the window.
20704 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
20706 * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
20707 the last argument (reported by Per Winkvist).
20709 Tue May 25 13:13:12 1999 Owen Taylor <otaylor@redhat.com>
20711 Fixes for invisible XOR lines (Frank Loemker
20712 <floemker@TechFak.Uni-Bielefeld.DE>)
20714 * gtk/gtkclist.c (gtk_clist_realize): Always use
20715 a non-zero pixel for GDK_XOR.
20717 * gtk/gtkvpaned.c gtk/gtkhpaned.c:
20718 Use GDK_INVERT instead of GDK_XOR.
20720 Wed May 12 21:56:40 1999 Lars Hamann <lars@gtk.org>
20722 * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
20723 signals if h/voffsets differ from adjustment values.
20724 Reportet by Jerome Bolliet <bolliet@in2p3.fr>
20726 Mon May 10 04:20:41 1999 Tim Janik <timj@gtk.org>
20728 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
20729 ::selection-done emissions up to the topmost menu shell.
20731 Fri May 7 10:15:14 1999 Owen Taylor <otaylor@redhat.com>
20733 * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
20734 the user data on the window before destroying it.
20736 * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
20737 unrealize handler to take care of destroying
20738 notebook->panel properly.
20739 (Bug #1198 - Morten Welinder <terra@diku.dk>)
20741 * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
20742 of g_new and g_realloc to stop memory leak. (Actually,
20743 we could just use g_realloc(), but I'm not 100% sure
20745 (Bug #1196 - Morten Welinder <terra@diku.dk>)
20747 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
20749 * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
20751 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
20754 * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
20755 with bin/button confusion.
20757 Thu May 6 04:53:26 1999 Tim Janik <timj@gtk.org>
20759 * gtk/testgtk.c: in the ItemFactory test, link radio items together,
20760 and show how preselection of radio items is done.
20762 Sun May 2 13:31:14 1999 Tim Janik <timj@gtk.org>
20764 * gtk/gtktreeitem.c (gtk_tree_item_set_subtree):
20765 * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
20766 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
20767 * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
20768 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add):
20769 * gtk/gtktable.c (gtk_table_attach):
20770 * gtk/gtklist.c (gtk_list_insert_items):
20771 * gtk/gtkmenushell.c (gtk_menu_shell_insert):
20772 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu):
20773 * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add):
20774 * gtk/gtkbin.c (gtk_bin_add):
20775 * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end):
20776 * gtk/gtkfixed.c (gtk_fixed_put):
20777 * gtk/gtklayout.c (gtk_layout_put):
20778 general fixups to container_add logic. always realize child if
20779 child->parent is realized, only map the child and queue a resize
20780 if child and child->parent are both visible.
20782 Fri Apr 30 09:02:28 1999 Tim Janik <timj@gtk.org>
20784 * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
20785 instead of gtk_container_foreach to walk and unrealize children, so
20786 composite children get also unrealized.
20787 (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
20788 (gtk_widget_map): assert that the widget is visible (basic constrain).
20789 (gtk_widget_real_map): assert that the widget is realized (basic
20792 Fri Apr 29 00:53:20 1999 Tim Janik <timj@gtk.org>
20794 * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
20796 Tue May 4 09:32:08 1999 Owen Taylor <otaylor@redhat.com>
20798 * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
20799 file for iso-8859-2 locales.
20801 * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
20803 Tue Apr 27 16:38:32 1999 Owen Taylor <otaylor@redhat.com>
20805 * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
20806 (Pointed out by andy@rz.uni-karlsruhe.de and others).
20807 Remove some suspicious and useless lines.
20809 Tue May 4 08:44:08 1999 Owen Taylor <otaylor@redhat.com>
20811 * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use
20812 width,height = 0, 0 to mean - here to edge of window,
20813 instead of -1, -1, since the former is all we support.
20815 Tue May 4 08:34:43 1999 Owen Taylor <otaylor@redhat.com>
20817 * gtk/gtkmain.c (gtk_main): Correctly free list nodes
20818 when removing from quit_functions list.
20820 Tue Apr 27 14:17:16 1999 Tim Janik <timj@gtk.org>
20822 * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
20824 Tue Apr 27 18:23:35 1999 Owen Taylor <otaylor@redhat.com>
20826 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
20827 When redrawing characters on non-visible entry, use appropriate
20828 '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
20830 Tue Apr 27 01:31:40 1999 Lars Hamann <lars@gtk.org>
20832 * gtk/gtkclist.c (drag_dest_cell): compute destination cell
20833 from drag coordinates.
20834 (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
20835 use drag_dest_cell.
20837 * gtk/gtktree (drag_dest_cell)
20838 (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
20841 Wed Apr 21 21:26:11 1999 Tim Janik <timj@gtk.org>
20843 * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
20844 translate_* fields.
20845 (gtk_item_factory_finalize): invoke translate_notify independant from
20847 (gtk_item_factory_set_translate_func): likewise.
20848 (gtk_item_factory_destroy): only remove ifactory pointer from those
20849 widgets that belong to us (stupid me).
20851 Mon Apr 19 12:05:31 1999 Owen Taylor <otaylor@redhat.com>
20853 * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
20854 rc_style list when lookup succeeeds.
20856 Thu Apr 15 01:11:24 1999 Lars Hamann <lars@gtk.org>
20858 * gtk/gtkctree.c (resync_selection):
20859 * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
20860 * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
20863 Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
20865 * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
20866 Add some missing GDK_THREADS_ENTER()/LEAVE around
20867 timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
20869 Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
20871 * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
20872 rather than emit_by_name.
20874 * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
20875 on the widget across multiple signal emissions.
20876 (gtk_editable_delete_text): same here.
20877 (gtk_editable_class_init): set widget_class->activate_signal after
20878 editable_signals[ACTIVATE] has been created.
20880 Wed Apr 7 22:59:47 1999 Owen Taylor <otaylor@redhat.com>
20882 * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
20883 position here prematurely -- we might not have the
20884 right ->min_position and ->max_position yet.
20886 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
20888 * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
20889 Add error traps so if the other end of the connection
20892 * gtk/gtkselection.c (gtk_selection_notify): Clean
20893 up properly when selection property retrieval fails.
20895 * gtk/gtkselection.c (gtk_selection_request): Correctly
20896 reject SelectionRequest notifies where the handler
20899 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
20901 * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
20902 when we've previously highlighted.
20904 * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
20905 emit two "drag_leave" signals for Motif drops.
20907 * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
20908 back the correct status messages when dropping from
20909 Motif onto a proxy window that is rejecting the
20912 Sat Mar 27 23:32:13 1999 Tim Janik <timj@gtk.org>
20914 * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
20915 the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
20916 to compare two argument values. added gtk_arg_to_valueloc() to set a
20917 variable from an arg through its location (pointer).
20919 * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
20920 gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
20921 as gfloat*, uchars are collected as guchar*, ints are collected as
20924 Mon Mar 29 17:45:47 1999 Owen Taylor <otaylor@redhat.com>
20926 * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
20927 Include <string.h> instead of <strings.h>.
20929 * gtk/gtkstyle.c: Fix double include of gtkthemes.h
20930 (actually, a lot more duplicate includes occur if
20931 you trace through the sequence of #include's)
20932 gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
20934 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
20936 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
20937 gtk-a-higuti-990322-[0-3]
20939 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
20940 that was causing -DX_LOCALE not to work.
20942 * gtk/gtkrc.c (gtk_rc_init):
20943 X_LOCALE will never have LC_MESSAGES defined
20945 Thu Mar 25 12:38:31 1999 Tim Janik <timj@gtk.org>
20947 * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
20948 g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
20950 * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
20951 left/right as well (gtk-michael-980726-0.patch.gz).
20953 * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
20954 for pointer values, use gchar instead of char. fixed uline allocation
20955 leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
20956 chunks instead of G_ALLOC_ONLY.
20957 (gtk_label_size_request): always alter requisition as passed and leave
20958 widget->requisition alone.
20959 (gtk_label_set_text): allow NULL strings.
20960 (gtk_label_new): likewise.
20962 Wed Mar 24 09:24:03 1999 Tim Janik <timj@gtk.org>
20964 * gtk/gtkdrawingarea.[hc]: type/macro fixups.
20966 Mon Mar 22 05:51:34 1999 Tim Janik <timj@gtk.org>
20968 * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
20969 *and* mapped (i.e. drawable).
20970 (gtk_bin_expose): only send exposes to drawable children.
20972 * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
20973 (gtk_box_expose): only send exposes to drawable children.
20975 * gtk/gtkhscale.c (gtk_hscale_draw):
20976 * gtk/gtkvscale.c (gtk_vscale_draw):
20977 hm, this is an ugly one. we first compute the size of our trough area
20978 here (window relative) and then check intersection with the draw_area
20979 which is parent relative because we're a NO_WINDOW widget, so we need
20980 to offset the trough area by allocation.x and allocation.y before the
20981 check. (this must not be done for the background area though, since
20982 that's already computed parent relative).
20984 Mon Mar 22 00:41:39 1999 Lars Hamann <lars@gtk.org>
20986 * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
20987 unrealize title buttons.
20989 Fri Mar 19 00:00:22 1999 Lars Hamann <lars@gtk.org>
20991 * gtk/gtkclist.c (gtk_clist_column_title_passive)
20992 (gtk_clist_column_title_active):
20993 only connect/disconnect to GtkWidgetClass::event to block mouse events.
20995 * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout):
20996 zero initialize event, removed superfluous gdk_window_get_pointer call
20998 * gtk/gtklist.c (gtk_list_vertical_timeout)
20999 (gtk_list_horizontal_timeout): removed superfluous
21000 gdk_window_get_pointer call
21002 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
21004 * plugging problems reported by "Bruce Mitchener, Jr."
21005 <bruce@puremagic.com> due to a purify session.
21009 (gtk_style_unref): assert ref_count to be > 0.
21011 * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
21013 (gtk_clist_set_shift): likewise.
21015 * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
21018 * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
21019 event before sending it and set send_event to TRUE (which needs to
21020 be done for *all* synthesized events).
21021 (gtk_list_vertical_timeout): likewise.
21023 * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
21026 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
21027 to TRUE when synthesizing events.
21029 [ *** end of merges from 1.2 *** ]
21031 1999-11-21 Tor Lillqvist <tml@iki.fi>
21033 * gdk/gdkconfig.h: Remove, as this is a file generated by configure
21034 (or copied from gdkconfig.h.win32 on Win32, sigh).
21036 * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
21038 * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
21040 * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
21042 * gdk/gdkconfig.h.win32: New file.
21044 * gdk/win32/makefile.cygwin: Build just a static archive here.
21046 * gdk/makefile.cygwin: New file. Get the win32-specific stuff
21047 for the DLL from the static archive built above.
21049 * gdk/gdk.def: Moved here from the win32 subdirectory.
21051 * gdk/win32/*: Adapt for the changed private struct organisation.
21053 * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
21055 Sun Nov 21 16:44:35 1999 Stefan Jeske <stefan@gtk.org>
21057 * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support
21058 for wheel mice (buttons 4 and 5).
21060 1999-11-18 Tor Lillqvist <tml@iki.fi>
21062 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
21063 drawables use just the pixel field in the foreground and
21064 background GdkColor of the GdkGC.
21066 gdk_gc_set_{fore,back}ground() are called in the GIMP with
21067 GdkColors containing uninitialized (red,green,blue) fields, and
21068 just the pixel field filled in, and furthermore in the
21069 visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
21070 It thus turns out that we really don't need to have the full
21071 GdkColor for fg and bg in GdkGCWin32Data after all. Will change
21072 it later to have just the pixel values.
21074 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
21076 * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
21078 Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
21080 * docs/gtkfaq.sgml: threads example from Erik Mouw.
21081 New question on GtkLabel background colors.
21083 * docs/gtk_tut.sgml:
21084 - Correct the example code callback
21085 function definitions.
21086 - Update the gtkdial example code, from Frans van Schaik.
21087 - Update setselection.c to current API.
21089 * examples/Makefile examples/*/*.c: Update to code
21090 listed in tutorial.
21092 1999-11-10 Tor Lillqvist <tml@iki.fi>
21094 * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
21095 subrange table (from the "Developing International Software for
21096 WIndows 95 and Windows NT" book) was missing the Hangul syllable
21097 block... Get the loaded font's charset correctly.
21099 (Note that this, and the other *-win32.c files, still really are
21100 the old ones, the win32 subdirectory is not ready for compilation
21101 yet after the reorg.)
21103 Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
21105 * gtk/gtkclist.c: Fix off-by-one bug in parameter
21108 Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
21110 * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
21111 on results of XQueryDeviceState().
21113 Mon Nov 8 16:40:43 1999 Owen Taylor <otaylor@redhat.com>
21115 * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
21116 we need to accesss only ->children. We need an accessor
21119 * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
21120 DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
21121 to get rid of gdkx.h include.
21123 * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
21124 and random references to 'None'.
21126 * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
21127 Get rid of unused #include <gdk/gdkx.h>
21129 * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
21130 gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
21133 1999-11-08 Tor Lillqvist <tml@iki.fi>
21135 * gdk/win32/gdkdraw.c
21136 * gdk/win32/gdkfont.c
21137 * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
21138 following yesterday's changes. (Unrelated to Owen's reorg.)
21140 Mon Nov 8 16:18:25 1999 Owen Taylor <otaylor@redhat.com>
21142 * gdk/x11/gdkinput-gxi.c: Add missing include,
21143 fix GdkWindowPrivate => GdkDrawablePrivate.
21145 * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
21147 * gdk/x11/Makefile.am (xinput_sources): Add missing
21148 backslash to fix building with --with-xinput=none
21150 Mon Nov 8 14:47:04 1999 Owen Taylor <otaylor@redhat.com>
21152 Move all X specific code into the x11/ directory.
21153 Aside from shuffling things around, did the following:
21155 * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
21156 gdk_arg_context_* - a simple argument parsing system
21157 in the style of popt.
21159 * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
21160 gdk/x11/gdkprivate-x11.h:
21161 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
21162 add ->klass and ->klass_data fields. The klass_data
21163 field points to an auxilliary structure that is
21164 windowing system dependent.
21166 * gdk/gdkfont.c: Make most of the measurement functions
21167 simply wrappers around gdk_text_extents().
21169 * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
21170 _gdk_font_strlen() function that hides the weird
21171 behavior in gtk+-1.[02] where a string is interpreted
21172 differently for 8-bit and 16-bit fonts.
21174 * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
21175 to store common code for synthesizing double/triple
21178 * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
21179 Make all the function that modify an existing GC
21180 simply wrappers around gdk_gc_set_values().
21182 * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
21183 for throwing out later.
21185 * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
21186 GdkImagePrivate and GdkColormapPrivate to have a
21187 windowing system dependent part (GdkFontPrivateX etc.)
21188 that "derives" from the system-independent part.
21190 * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
21191 Got rid of the included-source-files for XInput in
21192 favor of automake conditionals. (Which didn't exist
21193 when XInput support was originally added.)
21195 * gdk/gdkrgb.c: Remove the visual id from the debugging
21196 statements since that is X11 specific; print out
21197 type/depth info instead.
21200 Wed Nov 3 18:14:49 1999 Owen Taylor <otaylor@redhat.com>
21202 * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
21203 loading duplicates of hashed fonts.
21205 * gdk/gdk.c (gdk_keysym_convert_case): rename
21206 gdk_XConvertCase to gdk_keysym_convert_case, allow
21207 results to be NULL in the GTK+ style.
21209 * gdk/gdkcompat.h: Started compatibility header
21212 1999-11-07 Tor Lillqvist <tml@iki.fi>
21214 * gdk/win32/gdkprivate.h: New font private structures, related to
21217 * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
21218 gdk_font_list_free(). On X11, will just be wrappers to
21219 XListFonts() and XFreeFontNames(). On Win32, the code previously
21220 in gtkfontsel.c is now here.
21222 New function gdk_font_xlfd_create(). On X11 will get the FONT
21223 property of the font (for GDK_FONT_FONTs), or call
21224 XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
21225 builds a XLFD style name from the font information in the LOGFONT
21228 New function gdk_font_xlfd_free(), which correspondingly frees the
21229 string returned by gdk_font_xlfd_create().
21231 Implement fontsets on Win32. Add a function that iterates over a
21232 wide char string and calls a callback function for each substring
21233 of wide chars from the same Unicode subrange (and thus probably
21234 available in the same real font).
21236 Improve the XLFD emulation a bit.
21238 * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
21240 * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
21241 Beta3, WM_IME_CHAR messages don't seem to contain the composed
21242 multi-byte char as with the Active IMM on Win9x. Oh well, handle
21243 WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
21244 ImmGetCompositionStringW() to get the composed Unicode chars.
21246 * gdk/win32/gdkgc.c
21247 * gdk/win32/gdkdraw.c: Changes needed because of the font private
21250 * gdk/win32/gdk.def: Add the new functions.
21252 1999-11-04 Tor Lillqvist <tml@iki.fi>
21254 * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
21255 get the Platform SDK to get <dimm.h>.
21257 * gdk/win32/gdkevents.c: More event handling fixes and
21258 simplification. Never generate motion events with is_hint true. We
21259 used to do that on bogus grounds earlier. Windows sends
21260 WM_MOUSEMOVE messages on button events even if the mouse hasn't
21261 moved, ignore these.
21263 * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
21265 * gdk/win32/gdkglobals.c
21266 * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
21267 the TrackMouseEvent function, and use it.
21269 * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
21270 char before calling WideCharToMultiByte in order to get a string
21271 for the window title.
21273 * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
21275 * gdk/win32/gdk.def: Remove obsolete functions.
21277 * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
21278 /nodefaultlib and /defaultlib switches.
21280 * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
21282 1999-10-31 Tor Lillqvist <tml@iki.fi>
21284 * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
21287 * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
21288 same type as GdkWChar, especially on Win32.
21290 * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
21292 * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
21293 before passing to Windows GDI for drawing etc. Convert to the
21294 system default codepage before passing to Windows as window
21297 * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
21298 support changing input locale on the fly.
21300 * gdk/win32/gdkevent.c: Support input language (keyboard locale)
21301 on-the-fly changes. Convert incoming characters from the current
21302 codepage to Unicode (and then to a UTF-8 multi-byte string) based
21303 on the current input language. Use keysym<->Unicode mapping tables
21304 and functions borrowed from xterm sources.
21306 Support IMEs (Input Method Editors) for CJK languages. On non-CJK
21307 editions of Win9x, use the ActiveX-based Active IMM (Input Method
21308 Manager) if available. IMEs and the Active IMM are available under
21309 the disguise of Chinese, Korean and Japanese support for IE and
21310 Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
21311 support is present in all editions (as long as you install it).
21313 Call DispatchMessage from gdk_events_queue() (and thus
21314 gdk_WindowProc()), instead of duplicating the code in
21317 Reworked the grab handling and propagation code, factored out
21318 duplicated code snippets into separate functions. Other cleanups,
21321 * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
21322 the <dimm.h> header describing the Active IMM.
21324 * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
21325 just do the same as for "single" fonts.
21327 * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
21328 gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
21329 the new keysyms from gdkkeysyms.h.
21331 * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
21332 fontset, so that gtkentry uses wide characters.
21334 * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
21335 GTk+'s system directory "gtk+", not "gtk".
21337 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
21339 * docs/gtkfaq.sgml: FAQ update
21341 1999-10-21 Tor Lillqvist <tml@iki.fi>
21343 * gdk/win32/gdkprivate.h: Add more font private data.
21345 * gdk/win32/gdkfont.c
21346 * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
21347 fonts and strings. Now works much better. You still have to
21348 have a correct font selected, though. No fontset emulation yet.
21350 1999-10-19 Tor Lillqvist <tml@iki.fi>
21352 * gtk/maketypes.awk: Use G_OS_WIN32.
21354 * gtk/gtk.def: Add some missing entry points. Also some non-public
21355 ones, but PyGTK porter claims to need them.
21357 * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
21358 built-in type generation.
21360 1999-10-14 Tor Lillqvist <tml@iki.fi>
21362 * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
21363 GDK_FONT_FONT fonts (which is all we have for now, we don't
21364 emulate fontsets). The X11 version uses plain XDrawString in that
21365 case, too. The string passed to gdk_draw_text_wc seems to be in
21366 fact (at least, when used by gtkentry and gtktext) either in a
21367 single-byte charset, or a DBCS. Not Unicode.
21369 This fixes the problem in gtkfontsel, where even if you had
21370 selected a font with a non-Latin1 charset (windows-greek, for
21371 instance), the preview still used Latin-1 glyphs.
21373 * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
21374 use GetTextExtentPoint32W, use GetTextExtentPoint32A.
21375 (gdk_font_load): Recognize the demibold etc weights, even if we
21376 don't have the corresponding constants in the headers.
21377 (gdk_font_hash_insert): Use same hash mechanism as in the X11
21378 version. Should save font resources a bit, when we don't have
21379 multiple HFONTs for the same font.
21381 * gdk/win32/gdkprivate.h: Add the names field as in the X11
21384 1999-10-11 ERDI Gergo <cactus@cactus.rulez.org>
21386 * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
21389 1999-10-09 ERDI Gergo <cactus@cactus.rulez.org>
21391 * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
21392 layout support (as mentioned on
21393 http://www.jcinteractive.com/gnome-ui/software/widgets/)
21395 Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
21398 * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
21400 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
21402 * configure.in (ALL_LINGUAS): Added Galician (gl)
21404 1999-10-05 Tor Lillqvist <tml@iki.fi>
21406 * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
21408 * gdk/win32/gdkcompat.c: New file, actually provide an
21409 implementation for the deprecated functions. (Just temporarily.)
21411 * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
21413 * gtk/makefile.{cygwin,msc}: Update gdk_headers.
21415 * gdk/win32/gdk.def gtk/gtk.def: Updates.
21417 1999-10-05 Kjartan Maraas <kmaraas@online.no>
21419 * configure.in: Added "uk" to ALL_LINGUAS.
21421 Mon Oct 4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
21423 * configure.in: correct checking for BeOS check
21428 * gtk/gtkitemfactory.c
21430 * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
21432 Mon Oct 4 16:16:53 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
21434 * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
21435 encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
21436 languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
21439 Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com>
21441 * gtk/gtkwidget.c (gtk_reset_shapes_recurse):
21442 Fix a reference to window_private->destroyed.
21444 * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
21445 (ugly) setting of an internal GdkWindow member to use
21446 a _slightly_ cleaner macro.
21448 * gdk/gdkprivate.h: Split GdkWindowPrivate into
21449 GdkDrawablePrivate and GdkWindowPrivate.
21450 Add extra macros for accessing GDK_DRAWABLE_ components.
21452 * *.[ch]: Massive adjustments for the above, use the
21453 new macros in a lot of places.
21455 Sun Oct 3 15:16:24 1999 Owen Taylor <otaylor@redhat.com>
21457 * gdk/gdktypes.h: Make GdkDrawable the base type,
21460 Sun Oct 3 15:08:44 1999 Owen Taylor <otaylor@redhat.com>
21462 * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
21464 Sun Oct 3 14:26:15 1999 Owen Taylor <otaylor@redhat.com>
21466 * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
21468 Sun Oct 3 14:16:23 1999 Owen Taylor <otaylor@redhat.com>
21470 * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
21471 gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
21473 * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
21475 * docs/gtk-config.1: Now autogenerated.
21476 * docs/Changes-1.4.txt: started
21478 1999-10-03 Tor Lillqvist <tml@iki.fi>
21480 * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
21481 to #ifdef also here.
21483 * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
21484 Owen did to the X11 backend.
21486 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
21487 ScrollWindowEx when blitting inside a window, it can't be correct
21488 in the general case.
21490 * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
21491 WM_GETMINMAXINFO is easier.
21493 * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
21494 depth equal to the bitspixel value, not the visual's depth.
21496 * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
21497 to 24 even if the bitspixel value is 32.
21499 * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
21500 need to check for depth==32 when bpp==32, depth will always be 24.
21502 Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com>
21504 * docs/Changes-1.4.txt: Started
21506 * gtk/Makefile.am (gdk_headers): Include all the new headers.
21508 * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
21510 * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
21513 * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
21514 header to gdkinputprivate.h.
21516 * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
21517 unused since before 1.2.
21519 1999-09-30 Tor Lillqvist <tml@iki.fi>
21521 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
21522 expand possible hex escapes in the font family (put there by
21523 logfont_to_xlfd if the font name isn't a legal XLFD font family,
21524 mainly if it contains slashes). (gtk_font_selection_create_xlfd):
21525 On Win32, add hex escapes here, too.
21527 Wed Sep 29 19:55:35 1999 Owen Taylor <otaylor@redhat.com>
21529 * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
21530 to #ifdef GDK_WINDOWING_X11.
21532 [ Merges from gtk-1-2 ]
21534 Wed Sep 8 07:13:29 1999 Tim Janik <timj@gtk.org>
21536 * configure.in: fixed "GNU Make" check to pass with new make version
21539 Fri Sep 3 16:04:41 1999 Tim Janik <timj@gtk.org>
21541 * gtk-config.in (--version): don't echo @GTK_VERSION@, but
21542 @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
21543 AM_PATH_GTK() macros don't get confused by the -pre1.
21545 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
21547 * configure.in (REBUILD): Change check for perl5
21548 to check explicitely for v >= 5.002. (5.001
21549 does not work with our scripts.)
21551 Wed Aug 25 15:45:46 1999 Tim Janik <timj@gtk.org>
21553 * configure.in: evaluate $PERL for the perl version check. added
21554 --disable-rebuilds to give the user an option to completely disable
21555 any source autogeneration rules.
21557 Mon Aug 23 23:16:14 1999 Tim Janik <timj@gtk.org>
21559 * configure.in: evaluate $ac_make when checking for GNU Make.
21561 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
21563 * docs/Makefile.am: added generation.txt.
21565 * Makefile.am: require automake 1.4, build README from README.in and
21566 INSTALL from INSTALL.in in dist-hook.
21569 * INSTALL.in: new files to autogenerate README and INSTALL from.
21571 * configure.in: figure whether we have GNU Make
21573 * docs/generation.txt: minor additions/corrections.
21575 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
21577 * docs/gtkfaq.sgml: FAQ Update
21579 July 30, 1999 Elliot Lee <sopwith@redhat.com>
21581 * configure.in: Fix autoconf warnings about cross compilation by
21582 trying to provide sane defaults for AC_TRY_RUN.
21584 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
21587 * ltmain.sh: upgrade to libtool 1.3.3
21589 Thu Jul 8 11:30:18 1999 Owen Taylor <otaylor@redhat.com>
21591 * INSTALL: Indicate that the --with-glib= configure
21592 time flag is unsupported.
21594 Mon Jul 5 20:36:03 1999 Owen Taylor <otaylor@redhat.com>
21596 * docs/generation.txt: Added a file that gives
21597 documenation about the autogeneration process for
21598 various autogenerated files.
21600 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
21602 * configure.in (LIBS): Look for libgmodule in the
21605 Thu Jun 17 13:57:31 1999 Owen Taylor <otaylor@redhat.com>
21607 * docs/gtk_tut.sgml: Removed references to
21608 code examples in my directory on gtk.org as
21609 they should all be in the tutorial now.
21611 * docs/gtk_tut.sgml: Added sources for dial-test
21612 and scribble-xinput programs that were previously
21615 Fri Jun 4 00:08:59 1999 Owen Taylor <otaylor@redhat.com>
21617 * TODO: Added entry about menu keyboard navigation, removed
21618 some finished items.
21620 Mon May 31 00:11:24 1999 Owen Taylor <otaylor@redhat.com>
21622 * acinclude.m4: Standardize on func_dgettext
21623 not func_gettext, so that the checks for dgettext
21624 actually are paid attention to.
21626 Wed May 5 10:47:54 1999 Owen Taylor <otaylor@redhat.com>
21628 * configure.in (LIBS): Add $INTLLIBS into $LIBS
21629 directly, rather than repeating the checks for
21632 * INSTALL: Added information about gettext and
21635 * acinclude.m4 (LIBM): Check for dgettext, not
21636 just gettext. This should hopefully fix things wrt
21637 systems with old versions of GNU gettext installed.
21639 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
21641 * configure.in (LIBS): Look for libgmodule in the
21644 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
21646 * autogen.sh: add --enable-maintainer-mode
21648 * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
21650 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
21652 * docs/gtk-config.1.in:
21654 configure.in: gtk-config is now generated.
21656 * docs/gtk-config.1: Removed, now generated.
21658 Thu Sep 23 17:59:59 1999 Tim Janik <timj@gtk.org>
21660 * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
21661 handle CreateNotify itself, still put out a debuging message for
21662 --gdk-debug=events. made the ReparentNotify debugging message more
21664 wrap xcoords translation for ConfigureEvents into an error trap,
21665 a destroy event may already be pending, and in that case, the
21666 actuall coordinate values are not at all critical.
21668 Sat Sep 18 22:24:15 1999 Owen Taylor <otaylor@redhat.com>
21670 * gdk/gdkcc.c: Stop leaking the color_hash all over
21671 the place. Simplify and improve the logic.
21673 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
21675 * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
21676 for prototypes and function implementations consistent (reported
21679 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
21681 * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
21682 send_event set in debugging output.
21683 (gdk_compress_exposures): default initialize the event so we don't
21684 operate on bogus values (namely send_event).
21686 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
21688 * gdk/gdkwindow.c: When we receive an unexpected
21689 destroy notify on one of our windows, don't just
21690 warn about it, also mark our windows as destroyed.
21692 Sun Sep 5 08:10:53 1999 Owen Taylor <otaylor@redhat.com>
21694 * gdk/gdkfont.c (gdk_font_hash_insert): Add
21695 name => font and name => fontset hashes. The
21696 name => fontset hash is a _big_ win since we
21697 weren't previously caching fontsets at all and loading
21698 fontsets is expensive. The name => font hash
21699 is less of a win, but it does save us from doing
21700 repeated XQueryFont calls on the same font.
21702 * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
21703 list so we can remove font/fontset from hash.
21705 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
21707 * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
21708 and slightly confusing test. [ XInternAtom (,,TRUE)
21709 will never return None ].
21711 Sat Sep 4 08:39:26 1999 Owen Taylor <otaylor@redhat.com>
21713 * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
21714 gdk/gdkwindow.c (gdk_window_set_hints):
21716 Don't omit setting the properties if flags == 0 -
21717 there may be an existing set of properties there
21718 already. (Very old bug. Would it be better to
21719 delete the property instead?)
21721 * gdk/gdkselection.c (gdk_selection_property_get): Fix
21722 spelling error in comment.
21724 Wed Sep 1 14:05:30 1999 Owen Taylor <otaylor@redhat.com>
21726 * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
21727 to avoid stomping over gdk_error_warnings.
21729 * gdk/gdkimage.c (gdk_image_new): compute image->bpp
21730 as (bits_per_pixel + 7) / 8. This gives the same
21731 result as before for multiples of 8, but actually
21732 a "reasonable" value for 1bit or 4bit displays.
21734 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
21736 * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
21739 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
21741 * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
21742 discarding configure events.
21744 1999-08-18 Federico Mena Quintero <federico@redhat.com>
21746 * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
21747 refcount is greater than zero.
21749 * gdk/gdkwindow.c (gdk_window_unref): Likewise.
21751 * gdk/gdkfont.c (gdk_font_unref): Likewise.
21753 * gdk/gdkgc.c (gdk_gc_unref): Likewise.
21755 * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
21757 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
21759 * gdk/gdkproperty.c (gdk_property_get): Fix assumption
21760 that format 32 => sizeof(item) == 4. It really is
21763 Tue Jun 29 23:02:42 1999 Owen Taylor <otaylor@redhat.com>
21765 * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
21766 core dump at all on X IO errors, only core dump
21767 if --enable-debug for X errors.
21769 Thu Jun 24 17:06:23 1999 Tim Janik <timj@gtk.org>
21771 * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
21772 unknown window:" message. disabled ConfigureNotify discarding code,
21773 because it led to events being processed out of order.
21775 Thu Jun 24 12:22:02 1999 Tim Janik <timj@gtk.org>
21777 * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
21779 * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
21780 we export this function, supress error warnings and don't reset the
21781 error code in the first half of this function.
21783 * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
21784 code (instead of just -1) so gdk_error_trap_pop() reveals something
21785 actually informative about the error that happened.
21788 don't rely on gdk_error_code being -1 if an error occoured, but just
21789 gdk_error_code != 0.
21791 Thu Jun 24 11:50:07 1999 Tim Janik <timj@gtk.org>
21793 * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
21794 pointer *before* invoking the filter function, so we at least don't
21795 crash if a filter is removed that is currently executed. window filters
21796 *really* need to be made truely reentrant at some point.
21798 Mon Jun 14 11:10:15 1999 Tim Janik <timj@gtk.org>
21800 * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
21801 PropertyNotify debug messages.
21803 Wed May 5 22:51:06 1999 Owen Taylor <otaylor@redhat.com>
21805 Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
21807 * gdk/gdkim.c: Fix cut-and-paste errors for
21808 x/y and PreeditAttributes/StatusAttributes.
21810 Wed May 5 22:24:21 1999 Owen Taylor <otaylor@redhat.com>
21812 * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
21813 G_MAXINT to 2^16 to alleviate overflow problems in
21814 various window managers.
21816 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
21818 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
21821 Wed May 5 12:42:01 1999 Owen Taylor <otaylor@redhat.com>
21823 * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
21824 Initialize size_hints.x and size_hints.y because kwm
21825 brokenly pays attention to them.
21826 (Bug #1181 - Lars Heete <hel@admin.de>)
21828 Wed May 5 11:38:56 1999 Owen Taylor <otaylor@redhat.com>
21830 * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
21831 return value of gdk_list_visuals().
21832 (Bug #1193 - Morten Welinder <terra@diku.dk>)
21834 Tue May 4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
21836 * gdk/gdkim.c (gdk_im_real_open): cast the return value of
21837 XSetIMValues to (void *) when comparing to NULL, to workaround
21838 the problem of some compilers barfing since older X headers don't
21839 have the prototype for it.
21841 Mon Apr 19 10:11:12 1999 Owen Taylor <otaylor@redhat.com>
21843 * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
21844 for pseudocolor where colormap->colors was double
21847 * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
21848 color value in the hash table with the pixel filled
21849 in so when we do later hash table lookups, the color
21852 Sun May 2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
21854 * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
21857 Tue Apr 27 11:17:35 1999 Owen Taylor <otaylor@redhat.com>
21859 * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
21860 pointed out by Morten Welinder <terra@diku.dk>.
21862 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
21864 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
21865 default filter from the list
21867 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
21869 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
21870 default filter from the list
21872 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
21874 * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
21876 * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
21877 g_strdup_printf instead of calcing the length separately
21879 Tue Apr 13 02:49:33 1999 Owen Taylor <otaylor@redhat.com>
21881 * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
21882 that we don't do in many other places. (Fixing duplicate
21883 #include of config.h)
21885 * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
21886 Otherwise, #ifndef XINPUT_NONE check in the latter
21887 doesn't work. (Bug #546)
21889 Sun Apr 11 14:38:03 1999 Tim Janik <timj@gtk.org>
21891 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
21892 "None" case insensitive.
21894 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
21896 * gdk/gdkselection.c:
21897 Add error traps so if the other end of the connection
21900 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
21902 * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
21903 dest_xid field into two fields - one for the window
21904 to send in messages, one to indicate the last looked
21905 up window for caching purposes. This is needed, so
21906 that Leave messages get the correct window.
21908 Mon Apr 5 13:21:30 1999 Owen Taylor <otaylor@redhat.com>
21910 * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
21911 Fix warning created by people mucking around
21912 with the gsource API.
21914 * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
21915 Change mapping between GIOCondition and GdkInputCondition
21916 to match the way the Linux kernel does it. This should
21917 fix problems where closed pipes were no longer signalling
21918 GDK_INPUT_READ on systems with a native poll().
21920 Mon Apr 5 17:11:57 1999 Owen Taylor <otaylor@redhat.com>
21922 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
21923 explicitly for the string "None" - it is in the XPM
21924 spec and some servers treat unknown colors in odd ways
21925 (like asking the user!)
21927 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
21929 * gdk/gdkevents.c: made "->" into a "." of previous change so
21932 Thu Apr 1 18:41:25 1999 Owen Taylor <otaylor@redhat.com>
21934 * gdk/gdkevents.c (gdk_compress_exposures): Set the
21935 window field of the event structure before calling
21938 1999-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
21940 * gdk/gdk.c (gdk_init_check): Use False as the last argument to
21941 XInternAtom() here. This is a particularly Old And Nasty(tm) bug.
21943 Mon Mar 29 17:31:52 1999 Owen Taylor <otaylor@redhat.com>
21945 * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
21946 intermediate text property - prevents major memory
21947 leak when gdk_use_mb.
21948 gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
21950 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
21952 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
21953 gtk-a-higuti-990322-[0-3]
21955 * gdk/gdkfont.c (gdk_text_extents_wc): Make work when
21956 sizeof(wchar_t) != sizeof (GdkWChar)
21958 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
21959 that was causing -DX_LOCALE not to work.
21961 * gtk/gtkrc.c (gtk_rc_init):
21962 X_LOCALE will never have LC_MESSAGES defined
21964 * gdk/gdk.c (gdk_init_check):
21965 Remove --xim-preedit and --xim-status from argv properly.
21967 * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
21968 that the client window is present on the X server
21969 before we pass it to the input method.
21971 Tue Mar 9 10:46:49 1999 Owen Taylor <otaylor@redhat.com>
21973 * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
21974 if --display is specified on the command line, than
21975 the drag window will not be created on that display.
21977 Tue Mar 9 10:38:24 1999 Owen Taylor <otaylor@redhat.com>
21979 * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
21980 lookups with only_if_exists == TRUE were inserting
21981 bogus values into the atom cache.
21983 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
21985 * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
21986 then reset it to NULL.
21990 (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
21991 key for g_hash_table_remove() in both functions, this prevents us
21992 from accessing possibly uninitialized portions of a GdkColor structure
21993 where we are only interested in its pixel value.
21995 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
21997 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
21998 font hash table, if we have a GdkFontPrivate entry for this font
21999 already, simply increment its reference count, provided by Olaf Dietsche
22000 <olaf.dietsche+list.gtk@netcologne.de>.
22002 1999-09-21 Tor Lillqvist <tml@iki.fi>
22004 * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
22007 * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
22008 unused variables, leftovers from the X11 version.
22010 * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
22012 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
22013 downcase fields on X11.
22015 Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
22017 * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
22018 Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
22020 1999-09-17 Tor Lillqvist <tml@iki.fi>
22022 * gdk/win32/gdk.def: Add gdk_threads_mutex.
22024 * gtk/makefile.msc: Correct path to libintl.
22026 Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
22027 use of gint vs. int, and gint vs. gboolean in headers and
22028 definitions. Use GtkType for the *_get_type functions. Note that
22029 these changes preserve binary compatibility.
22033 * gdk/gdk.h: Fix inconsistencies: gint vs int.
22037 * gtk/gtkmenufactory.c
22038 * gtk/gtknotebook.c
22039 * gtk/gtkwidget.c: Fix inconsistencies, also gint
22042 * gtk/gtkcolorsel.[ch]
22043 * gtk/gtkcombo.[ch]
22044 * gtk/gtkdrawingarea.[ch]
22045 * gtk/gtkgamma.[ch]
22046 * gtk/gtkhandlebox.[ch]
22047 * gtk/gtkhpaned.[ch]
22048 * gtk/gtkhruler.[ch]
22050 * gtk/gtkpreview.[ch]
22051 * gtk/gtkruler.[ch]
22052 * gtk/gtksocket.[ch]
22053 * gtk/gtkstatusbar.[ch]
22054 * gtk/gtktoolbar.[ch]
22055 * gtk/gtkvbbox.[ch]
22056 * gtk/gtkvpaned.[ch]
22057 * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
22060 * gtk/gtkgamma.h: Fix bug, missing () in call of
22061 gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
22063 1999-09-14 Tor Lillqvist <tml@iki.fi>
22065 * gdk/gdkcolor.c (gdk_colormap_new)
22066 * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
22067 colormap->colors was allocated twice.
22069 * gdk/win32/gdk.c: Remove some unused stuff.
22071 * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
22074 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
22075 * gtk/gtklabel.h (gtk_label_get_type)
22076 * gtk/gtktipsquery.c (gtk_tips_query_get_type)
22077 * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
22078 in a couple of places, not guint.
22080 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
22082 * configure.in,po/et.po: added Estonian language file
22084 Wed Sep 1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
22086 * configure.in,po/da.po: added Danish file
22088 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
22090 * docs/gtkfaq.sgml: Minor FAQ Update
22092 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
22094 * docs/gtkfaq.sgml: FAQ update
22096 1999-08-27 Tor Lillqvist <tml@iki.fi>
22098 Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
22099 way to get window contents continually refreshed while resizing. I
22100 didn't like the effects myself, so it's not on by default.
22102 * gdk/win32/gdkprivate.h: New flag variable
22103 gdk_event_func_from_window_proc, FALSE by default.
22105 * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
22106 environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
22107 are passed --gdk-event-func-from-window-proc.
22109 * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
22110 and we have am event_func, call it instead of enqueing the event.
22112 1999-08-23 Tor Lillqvist <tml@iki.fi>
22114 * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
22115 Kelley: Set expose_count in GdkEventExposes correctly.
22117 * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
22118 MULTIPLE_WINDOW_CLASSES).
22120 * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
22121 for bug in NT, apparently NT *does* draw the end pixel, too, in
22122 LineTo with a one-pixel pen, so we don't have to do it ourselves.
22124 1999-08-21 Tor Lillqvist <tml@iki.fi>
22126 Improvements by Hans Breuer:
22128 * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
22130 * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
22131 CS_?REDRAW flags as they cause lots of (late) redraws when "show
22132 window contents while dragging" is turned on. Allocate at least
22133 one unique class for every GdkWindowType. If support for single
22134 window-specific icons is ever needed (eg. Dialog specific), every
22135 such window should get its own class.
22137 1999-08-19 Tor Lillqvist <tml@iki.fi>
22139 * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
22140 error that caused crashes.
22142 1999-08-17 Tor Lillqvist <tml@iki.fi>
22144 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
22145 window, use ScrollWindowEx, and call UpdateWindow. This prevents
22146 bugs when for instance part of the window was outside the
22147 display. Thanks to Philippe Colantoni for finding and fixing this.
22149 1999-08-16 Tor Lillqvist <tml@iki.fi>
22151 * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
22152 endpoint calculations which were totally wrong. (A little RTFMing
22155 * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
22156 from a separate directory, not from gettext, because of licensing
22157 issues (we want to use the LGPL version).
22159 * README.win32: Mention the intl from glibc vs from gettext issue.
22161 1999-08-13 Tor Lillqvist <tml@iki.fi>
22163 * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
22164 in the key event handling: Now AltGr chars work again. Also,
22165 now Alt-digits are passed up as well as Control-digits.
22166 Pass keypad plus and minus as normal plus and minus.
22168 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
22170 * docs/gtkfaq.sgml: FAQ Update
22172 1999-07-25 Tor Lillqvist <tml@iki.fi>
22175 * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
22178 * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
22179 OK, but getting closer. Guard against bogus tilt data from Wacom
22180 ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
22181 enable easier building without Wintab.
22183 * gdk/win32/gdkinput.h
22184 * gdk/win32/gdkevents.c
22185 * gdk/win32/gdkwindow.c: Minor changes related related to above.
22187 * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
22188 code. As we have just one visual on Win32, no sense to have it in a
22189 table, and no need for the hash table.
22191 * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
22192 better on white background.
22194 1999-07-21 Tor Lillqvist <tml@iki.fi>
22196 * README.win32: Update gcc build instructions. Mention gettext is
22199 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
22200 supported cursor size with GetSystemMetrics.
22202 * gdk/win32/gdkfont.c
22203 * gtk/gtkfontsel.c: Guard against some font weight and charset
22204 symbols being undefined (in mingw32 headers).
22206 * gdk/win32/makefile.cygwin
22207 * gtk/makefile.cygwin
22208 * gtk/gtkthemes.c: No longer need to have differently named
22209 gcc-built DLLs when using gcc-2.95 and -fnative-struct.
22211 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
22213 * docs/gtkfaq.sgml: Long awaited FAQ update.
22215 1999-07-15 Tor Lillqvist <tml@iki.fi>
22217 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
22218 it. Obscure bit manipulation needed.
22220 * gdk/win32/gdkevents.c: Logging.
22222 * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
22223 style (file name include compiler name) for theme engines.
22225 1999-07-13 Tor Lillqvist <tml@iki.fi>
22227 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
22229 * gdk/win32/gdkevents.c: Fix long-standing bug in key
22230 events. The key.string wasn't zero-terminated, still we strdup'ed
22231 it in gdk_event_copy(). Synthesize crossing events for button
22232 events before possible propagation.
22234 * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
22236 * gdk/win32/makefile.cygwin
22237 * gtk/makefile.cygwin: Use new DLL naming style for the
22240 * gdk/win32/makefile.msc
22241 * gtk/makefile.msc: Cosmetics mostly.
22243 * gtk/gtk.def: Add missing entry points.
22245 * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
22247 1999-07-09 Tor Lillqvist <tml@iki.fi>
22249 * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
22250 or height is zero. Don't print a warning if Pie or Arc fails, they
22251 always fail (?) for very narrow ellipses.
22253 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
22254 the part or the destination window corresponding to source area
22255 outside of the source drawable's boundary.
22257 * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
22258 anything if less than two points.
22260 * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
22261 return NULL. Gtk cut-and-paste inside a single program works
22262 better this way. (It always gets the clipboard contents from
22263 Windows, not from its own copy, which is cleared anyway. I can't
22264 say I fully understand what happens... Emulating the X selection
22265 and property stuff is a bit of a mess.)
22267 * gdk/win32/gdkevents.c
22268 * gdk/win32/gdkproperty.c: A bit more verbose logging.
22270 * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
22271 that never got deleted). Revamp gdk_region_shrink.
22273 * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
22276 * gtk/gtk.def: Add some missing entry points.
22278 * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
22281 1999-07-04 Tor Lillqvist <tml@iki.fi>
22283 * gdk/win32/gdkevents.c (gdk_event_translate): Handle
22284 Control-digits specially.
22286 1999-07-03 Tor Lillqvist <tml@iki.fi>
22288 * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
22290 1999-06-28 Tor Lillqvist <tml@iki.fi>
22292 * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
22293 bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
22296 1999-06-01 Jose H Mercado <jmercado@mit.edu>
22298 * gtk+.spec.in: Corrected some typos in files section.
22300 1999-06-15 Tor Lillqvist <tml@iki.fi>
22302 * README.win32: Mention using GNU gettext.
22303 * config.h.win32: Enable NLS stuff.
22304 * gtk/makefile.msc: Use GNU gettext.
22305 * gdk/win32/gdkdnd.c: Minor header reorg.
22306 * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
22308 * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
22309 * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
22311 Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
22317 * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
22319 1999-05-30 Tor Lillqvist <tml@iki.fi>
22321 * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
22322 SafeAdjustWindowRectEx. Don't override all calls to
22323 AdjustWindowRectEx by it, but use it only in two places: When
22324 creating a new top-level window and when moving a top-level
22327 Use screen coordinate rectangle, not client rectangle, in
22328 gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
22329 when we try to place a window so that the decoration (mainly,
22330 title bar) isn't visible.
22332 These changes fix the bug that showed up for instance as the
22333 GIMP's saved top-level windows moving right and down (by an amount
22334 equal to the window decoration) for each session. This bug showed
22335 up also in testgtk's "Saved Position".
22337 gdk_window_resize also redone a bit.
22339 1999-05-25 Tor Lillqvist <tml@iki.fi>
22341 * gtk/testgtkrc: Add (commented out) Windows-style theme
22344 * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
22346 1999-05-18 Tor Lillqvist <tml@iki.fi>
22348 * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
22349 gdkx.h to a gdk subdirectory, so that applications can include
22350 these with <gdk/*.h> without trouble.
22352 * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
22353 (gdk_image_destroy): Plug resource leak, some GdkImages didn't
22354 have their bitmap destroyed.
22356 * gdk/win32/gdk.def: Add gdk_root_parent.
22358 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
22364 gtk/Makefile.am: changes to compile nicely (with xlib)
22367 Sat May 1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
22373 * ltmain.sh: upgrade to libtool 1.3
22375 Fri Apr 30 13:38:16 1999 Lars Hamann <lars@gtk.org>
22378 * gtk/gtkctree.c: merges from gtk-1-2
22380 1999-04-25 Tor Lillqvist <tml@iki.fi>
22382 Support added for building using a GNU toolchain on Win32,
22383 gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
22385 * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
22386 * config.h.win32: Changes for gcc.
22387 * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
22388 * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
22389 * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
22390 * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
22391 Protect shl stuff unavaiilable with mingw32 headers.
22392 * gdk/win32/gdkevents.c: Fix typo.
22393 * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
22394 * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
22395 * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
22396 * gdk/win32/gdkprivate.h: Make up for some stuff missing from
22397 the mingw32 headers.
22398 * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
22399 * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
22400 definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
22401 * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
22402 Test for NATIVE_WIN32, not _MSC_VER.
22403 * gtk/gtkmain.c: No use warning about developer version on Win32,
22404 there aren't any non-developer versions anyhow.
22405 * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
22406 * gtk/makefile.msc: Use pthread from another directory. Minor other
22409 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
22411 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
22412 default filter from the list
22414 Mon Mar 8 12:52:53 1999 Owen Taylor <otaylor@redhat.com>
22416 * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
22417 when gtk_widget_grab_default() is called for a widget that
22418 is not within a GtkWindow.
22420 Sat Apr 10 13:52:54 BST 1999 Tony Gale <gale@gtk.org>
22422 * docs/gtk_tut.sgml, examples/clist.c: use a
22423 scrolled window in the clist example. Minor
22426 Fri Apr 2 09:19:20 BST 1999 Tony Gale <gale@gtk.org>
22428 * docs/gtk_tut.sgml: Style check from David King
22429 <dking@youvegotmail.net>
22431 1999-03-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
22433 * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
22434 compile with unknown value of GDK_WINDOWING
22436 1999-03-28 Raja R Harinath <harinath@cs.umn.edu>
22438 * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
22439 after the rule is fired.
22440 (install-exec-local): Install gdkconfig.h only if the contents are
22441 different from the currently installed gdkconfig.h.
22443 1999-03-26 Raja R Harinath <harinath@cs.umn.edu>
22445 * gdk/Makefile.am (configexecincludedir): Rename from
22446 configincludedir so that gdkconfig.h will be installed
22447 as part of `make install-exec'.
22449 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
22455 * ltmain.sh: upgrade to libtool 1.2f
22457 * autogen.sh: libtool is not required to autogen gtk+
22459 * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
22462 1999-03-18 Tor Lillqvist <tml@iki.fi>
22464 * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
22465 declaring gdk variables exported/imported from the DLL. New image
22466 type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
22467 drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
22468 GDK_DRAG_PROTO_OLE2.
22470 * gdk/gdk.h: Merge in Win32 version: Two new functions,
22471 gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
22472 declared only for the Win32 version, but could be in the X11
22473 version as well. (Needed for a Xlib-less gdk_imlib.)
22474 gdk_color_hash should have only one parameter. Declare
22475 gdk_threads_mutex with GDKVAR.
22477 * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
22478 just one parameter.
22480 * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
22481 per pixel, not bits.
22483 * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
22484 Fetch bpp (which means bits-per-pixel here) from another place on
22485 Win32. Accept also depth==32 (which we might get on Win32) with
22488 * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
22489 gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
22490 gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
22491 Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
22492 in the backend-dependent directory, not in the common gdk
22495 * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
22498 Wed Mar 17 05:06:49 1999 Tim Janik <timj@gtk.org>
22500 * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
22501 want to use the Gtk+ devel version (which is true, and yes - even i am
22502 currently working with the 1.2.x branch). so everyone reading this, you
22503 probably want to issue
22504 cvs checkout -r glib-1-2 glib
22506 cvs checkout -r gtk-1-2 gtk+
22507 as your next two comands.
22509 Wed Mar 17 02:49:32 1999 Tim Janik <timj@gtk.org>
22511 * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
22512 gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
22514 * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
22515 file. strongly deprecated the GTK_HAVE_* macros, we provide
22516 GTK_CHECK_VERSION() for people that need to check for certain
22519 * gtk/gtkcompat.h: removed this from CVS.
22520 * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
22521 idea right from the start, it just didn't seem like that back then.
22523 Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
22525 * merges from gtk-1-2:
22527 Tue Mar 16 17:43:33 1999 Tim Janik <timj@gtk.org>
22529 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
22530 item factory class has been created.
22531 (gtk_item_factory_parse_rc): likewise.
22534 keep proper references for old_active_menu_item.
22535 (gtk_menu_reparent): unset the usize of the new parent,
22536 so the menu can sanely be size requested and we don't get nasty screen
22537 artefacts upon next reparentation.
22538 (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
22539 enter notify. only synthesize enter notifies if the pointer really is
22540 inside the event window.
22541 (gtk_menu_popdown): use gtk_menu_shell_deselect().
22542 (gtk_menu_popup): move the background setting stuff into
22543 gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
22545 * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
22546 gtk_menu_shell_select_item() to select the new item.
22547 (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
22548 do the right thing for deselection as well.
22550 Sat Mar 15 20:10:33 1999 Tim Janik <timj@gtk.org>
22552 * gtk/gtkwidget.[hc]:
22553 (gtk_widget_accelerators_locked): return whether a widget's accelerators
22556 * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
22557 existing accelerators if the widget's accelerators are locked.
22559 Sat Mar 14 19:44:05 1999 Tim Janik <timj@gtk.org>
22561 * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
22563 * gtk/gtkmenu.c: truely forward key press and key release events to
22564 the menu widget from the toplevel or tearoff window. we can't simply
22565 connect to that, we need to stop further processing of the events as
22568 Sat Mar 13 13:14:17 1999 Tim Janik <timj@gtk.org>
22571 (gtk_menu_key_press): pass event->keyval, event->state to
22572 gtk_accelerator_valid, instead of event->keyval twice.
22573 refuse to install single letter accelerators for menus that use
22574 single letter shortcuts.
22576 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
22577 gtk_menu_ensure_uline_accel_group().
22579 * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
22580 which will always return an uline accel group, made
22581 gtk_menu_get_uline_accel_group() return NULL if the group isn't
22584 Mon Mar 15 01:03:27 1999 Lars Hamann <lars@gtk.org>
22586 * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
22588 * gtk/gtkclist.c (gtk_clist_column_title_passive):
22589 Leave button sensitive, trap button_press, button_release,
22590 motion_notify, enter_notify and leave_notify events instead.
22591 (gtk_clist_column_title_active): disconnect event handler.
22592 (gtk_clist_drag_data_get): fixed memory leak. Reported by
22593 Guillaume Laurent <glaurent@worldnet.fr>
22595 Wed Mar 10 23:49:55 1999 Lars Hamann <lars@gtk.org>
22597 * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
22598 width/height mixups.
22600 * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
22603 Wed Mar 10 00:11:32 1999 Tim Janik <timj@gtk.org>
22605 * gtk/testgtk.c (create_item_factory): unref the item factory after
22606 window's destruction.
22608 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
22609 count on the menu shell around the menu item's activation, since the
22610 signal emission may cause menu shell destruction.
22612 * gtk/gtkitemfactory.c:
22613 the previous code leaked one accel group per menu. we use
22614 gtk_menu_get_uline_accel_group() now to fix that, and with that
22615 also create the underline accelerator group of the menus only if
22616 required (i.e. an underline accelerator has been specified).
22617 (gtk_item_factory_construct):
22618 (gtk_item_factory_create_item): removed code that would create an
22619 extra accel group for the menu (and leak references).
22620 (gtk_item_factory_create_item): adapted the underline accelerator
22621 installation code to properly feature gtk_menu_get_uline_accel_group().
22623 * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
22624 menu->accel_group, this may return NULL if the accelerator group
22625 hasn't been set yet.
22626 added gtk_menu_get_uline_accel_group() to retrive the underline
22627 accelerator group of the menu, this will be created on demand
22628 and proper care is taken about its reference count.
22630 * gtk/gtkitemfactory.h:
22631 * gtk/gtkitemfactory.c:
22632 dumped the approach of keeping a widgets by action list on the
22633 factory since the factory<->widget destroy negotiation didn't work
22634 and would be hard to get going at all. instead we keep a list of
22635 GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
22636 persistant throughout a program's life time).
22637 also, i removed the static const gchar *key_* variables, and made
22638 them inline strings (they weren't actually used anyways).
22639 (gtk_item_factory_add_item): update ifactory->items.
22640 (gtk_item_factory_destroy): destroy ifactory->items (and remove
22641 the item factory pointer from the remaining ifactory widgets).
22642 (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
22643 list to find the widget.
22644 (gtk_item_factory_get_item): new function that works around
22645 gtk_item_factory_get_widget() limitations, this function will only
22646 return menu items, even for <Branch> entries.
22648 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
22650 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
22651 font hash table, if we have a GdkFontPrivate entry for this font
22652 already, simply increment its reference count, provided by Olaf Dietsche
22653 <olaf.dietsche+list.gtk@netcologne.de>.
22655 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
22656 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
22658 Sun Mar 7 06:13:29 1999 Tim Janik <timj@gtk.org>
22660 * gtk/gtkcontainer.c:
22661 (gtk_container_add_with_args):
22662 (gtk_container_addv):
22663 (gtk_container_add): before adding a child to a conatiner, make sure
22664 it is (default) constructed, this is neccessary because under certain
22665 circumstances the child will get relized and mapped immediatedly, in
22666 which case it has to be constructed already.
22668 Mon Mar 1 17:58:21 1999 Tim Janik <timj@gtk.org>
22670 * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
22671 values > 1 as TRUE also.
22673 1999-03-16 Tor Lillqvist <tml@iki.fi>
22675 * README.win32: New file.
22677 * configure.in: Check for lstat.
22679 * config.h.win32: Add non-definition of HAVE_LSTAT, just for
22682 * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
22684 * gtk/gtk.def: Removed CRs.
22686 * gtk/makefile.msc: Correct include path to Win32 GDK version (in
22689 * gdk/win32/makefile.msc: Correct upwards relative paths.
22691 Mon Mar 15 03:38:34 1999 George Lebl <jirka@5z.com>
22693 * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
22694 gtk_drag_highlight_expose and gtk_drag_highlight_paint since
22695 it was connecting a void function to expose_event and the int
22696 returning function to the draw signal
22698 1999-03-14 Jeff Garzik <jgarzik@pobox.com>
22701 Use correct path to libgmodule.la when ref'ing uninstalled copy
22702 of glib. (Already in stable branch, Bug #417)
22704 1999-03-15 Tor Lillqvist <tml@iki.fi>
22706 Win32 merge and general portability stuff:
22708 * acconfig.h,configure.in: Check for <sys/time.h>.
22710 * gdk/win32: New directory (actually, been there for a while).
22712 * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
22713 NATIVE_WIN32, and use these. Always case fold on Win32. No
22714 backslashed escapes on native Win32.
22716 * gtk/{gtk.def,makefile.msc}: New files.
22718 * gtk/Makefile.am: Add above new files.
22720 * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
22721 instead of <strings.h>.
22723 * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
22724 config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
22725 <unistd.h> appropriately.
22727 * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
22728 Use ABS() (from <glib.h>) instead of abs().
22730 * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
22731 of gtk (and thus glib) headers, so that WIN32 will be
22732 defined. With MS C, include <direct.h> for mkdir prototype.
22734 * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
22735 some casts, needed by MS C.
22737 * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
22740 * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
22741 <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>. Use
22742 G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
22744 * gtk/gtkmain.h: Mark variables for export/import on Win32.
22746 * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
22747 the event is not a hint, or its window is not the slider. Needed
22748 on Win32, at least.
22750 * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
22751 unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
22752 G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
22753 a subdirectory of the Windows directory as gtk system
22754 configuration directory.
22756 * gtk/gtkselection.c: No chunks on Win32.
22758 * gtk/gtksocket.c: Not implemented on Win32.
22760 * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
22762 * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
22764 * gtk/maketypes.awk: Declare variables with a macro that expands to
22765 necessary export/import magic in the case of Win32.
22767 * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
22769 1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
22771 * configure.in (gdk_wc): Move widechar tests from `glib' to here,
22772 since those were meant only for gdki18n.h.
22773 * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
22774 for widechar tests.
22775 * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
22777 1999-03-13 Tor Lillqvist <tml@iki.fi>
22779 * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
22780 gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
22782 * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
22783 installed) to CFLAGS.
22785 * gdk/Makefile.am: Add rules for gdkconfig.h.
22787 * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
22790 * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
22791 gdkx.h anyway when compiling for X11.
22792 (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
22793 general): Merge in Win32 version.
22795 * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
22796 version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
22797 expansion (if we don't have HAVE_PWD_H), allow for drive
22798 letters. UNC paths (\\server\share\...) are not handled yet. Also,
22799 included code from Craig Setera's port to Win32 (the one that uses
22800 X11, and the cygwin dll), even if it probably will be abandoned.
22802 * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
22803 the user entered one herself. This way one can complete *.h and
22804 don't get matches on any .help files, for instance.
22806 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
22808 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
22809 font hash table, if we have a GdkFontPrivate entry for this font
22810 already, simply increment its reference count, provided by Olaf Dietsche
22811 <olaf.dietsche+list.gtk@netcologne.de>.
22813 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
22814 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
22816 1999-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
22818 * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
22819 the number of calls to gdk_draw_point() (and thus to X) by
22820 clipping the points by hand.
22822 * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
22823 the clip parameter.
22824 (gtk_handle_box_paint): Only paint the handle if the expose area
22827 Sun Mar 7 18:46:37 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
22829 * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
22831 Sun Mar 7 11:43:34 1999 ape@spacetec.no (Asbjorn Pettersen)
22833 * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
22834 Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
22836 Fri Mar 5 09:12:24 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
22838 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
22839 textmode (O_TEXT) for OS/2 version.
22841 Sun Feb 28 16:46:02 1999 Stefan Jeske <stefan@gtk.org>
22843 * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to
22844 GtkSpinButton, "input" and "output", to make the output more flexible.
22845 The user has to provide a mapping between adjustment->value and the
22846 output string (and vice versa, if the spin button is editable).
22847 See testgtk for examples.
22849 Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
22851 * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
22854 * configure.in: set gtk+ version to 1.3.0.