1 2002-01-01 Tor Lillqvist <tml@iki.fi>
3 * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
4 ../gdk-pixbuf/gdk-pixbuf-csource.
6 2001-12-31 Tor Lillqvist <tml@iki.fi>
8 * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
10 (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
12 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
13 -Wall. Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
16 * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
19 * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
21 2002-01-01 Havoc Pennington <hp@pobox.com>
23 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc
26 2002-01-01 Havoc Pennington <hp@pobox.com>
28 * gtk/gtktextview.c (changed_handler): Replace call to
29 gtk_widget_size_request() that expected to actually compute the
30 request with a direct use of widget_class->size_request, so we get
31 our size request right; fixes remaining part of #63065 reported by
34 2001-12-31 Havoc Pennington <hp@pobox.com>
36 * tests/testtext.c (do_insert_and_scroll): remove backward_char
37 since we no longer have bogus newline
38 (dialog_response_callback): remove another backward_char horkage,
39 reported by Matthias Clasen #63065
41 2001-12-31 Havoc Pennington <hp@pobox.com>
43 * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
44 fix an incorrect assertion that the "valid" flag is always correct
45 in a node and add explanatory comment. This keeps me from
46 reproducing #59101, but I'm remembering that 59101 was actually
47 about incorrect pixel totals, so I'm not sure 59101 is actually
48 fixed. May just have stopped happening due to some change in
51 2001-12-31 Havoc Pennington <hp@pobox.com>
53 * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
54 selection if shift is down, bug #50939
55 (gtk_text_view_button_press_event): add double/triple click
56 selection to the current selection if shift is down
58 2001-12-31 Havoc Pennington <hp@pobox.com>
60 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
61 to use ensure_byte_offsets not ensure_char_offsets, patch
62 from Padraig O'Briain bug #67356
64 2001-12-30 Havoc Pennington <hp@pobox.com>
66 * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
67 the right values, reported by Jeff Franks
69 2001-12-30 Matthias Clasen <matthiasc@poet.de>
71 * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
73 2001-12-28 Matthias Clasen <matthiasc@poet.de>
75 * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c:
76 Minor documentation tweaks.
78 2001-12-28 Tor Lillqvist <tml@iki.fi>
80 * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
81 (unicode_classify): Don't return -1 on encountering an
82 unclassified character, but play it safe and return U_BASIC_LATIN.
84 Thu Dec 27 16:05:30 2001 Owen Taylor <otaylor@redhat.com>
86 * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
87 of misc->xpad/ypad consistent with GtkLabel. Do
88 directional flipping when interpreting misc->xalign/yalign.
89 Fix off-by-one error for negative x,y. (#67472, reported
92 Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
94 * gtk/gtkwidget.c (gtk_widget_set_style_internal):
95 Remove optimization that was causing problems because
96 we called gtk_widget_size_request() before we called
97 gtk_widget_queue_resize() so RESIZE_NEEDED was not
98 set. Optimization shouldn't mattter now that we
99 are smart about needlessly size requesting or allocating
100 widgets. (#67598, reported by Jacob Berkman)
102 Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
104 * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
105 Call gdk_window_get_pointer() on menu->bin_window not
106 menu->window, so we get the correct window for the
107 menu item. (#65213, Guillermo S. Romero)
109 Thu Dec 27 15:13:44 2001 Owen Taylor <otaylor@redhat.com>
111 * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
112 the title by setting to NULL. Move docs inline.
113 Update the title if the tearoff window already
114 exists. Code cleanup. (Fixes #65190, reported by
117 Thu Dec 27 14:04:22 2001 Owen Taylor <otaylor@redhat.com>
119 * gtk/gtksocket.c (gtk_socket_key_press_event):
120 gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
121 special handling of key presses unless we are doing
122 iter-app embedding. (Fixes #67590, Anders Carlsson)
124 Thu Dec 27 16:37:04 2001 Kristian Rietveld <kris@gtk.org>
126 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
127 (gtk_tree_model_sort_sort_level),
128 (gtk_tree_model_sort_insert_value): fix a few places where
129 I was confused between modelsort iters and other iters. This was
130 really going to happen someday ;)
132 Wed Dec 26 23:41:41 2001 Kristian Rietveld <kris@gtk.org>
134 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
135 we are unprelighted before reordering
137 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
138 need to break out of the for loop, not return (this fixed
139 the 'selection freeze' bug).
141 * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
142 be pretty stable now, though it still needs some more code
145 Wed Dec 26 12:32:31 2001 Owen Taylor <otaylor@redhat.com>
147 * docs/Changes-2.0.txt: Document the fact that
148 gtk_paned_set_handle_size() has been removed.
150 * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro,
151 since it pointed to gtk_paned_set_handle_size(), which
152 was removed. (#66760, Matt Wilson)
154 Wed Dec 26 12:28:24 2001 Owen Taylor <otaylor@redhat.com>
156 * gtk/gtkdnd.c (gtk_drag_highlight): Connect
157 gtk_drag_hightlight_expose _after_, so it works with
158 widgets that paint there entire background. (#66735)
160 Wed Dec 26 12:17:06 2001 Owen Taylor <otaylor@redhat.com>
162 * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
163 allocation to widget->allocation. (Fixes #67290,
166 Wed Dec 26 11:49:01 2001 Owen Taylor <otaylor@redhat.com>
168 (#67542, reported by Anders Carlsson)
170 * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
171 rc_style->font_desc with defaul style instead of replacing
174 * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
175 font descriptions in RC styles by calling
176 pango_font_description_merge().
178 2001-12-24 James Henstridge <james@daa.com.au>
180 * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
181 valid with both SGML and XML.
183 Sat Dec 22 12:38:03 2001 Owen Taylor <otaylor@redhat.com>
185 * configure.in: 1.3.12, interface, binary age 0.
187 * configure.in: Require new versions of Glib, Pango, ATK.
191 * configure.in: Make explicit what libtool we are executing.
194 * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
196 * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix
197 parameter names for docs.
199 Sat Dec 22 22:35:29 2001 Owen Taylor <otaylor@redhat.com>
201 * gtk/gtkwindow.c (gtk_window_realize)
202 gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
204 * gtk/gtkentry.c (gtk_entry_key_release)
205 gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
206 key release events to the input method.
208 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
209 Handle release of Control/Shift to end hex sequence.
211 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress):
212 Handle key releases as well as presses.
214 2001-12-21 Matthias Clasen <matthiasc@poet.de>
216 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
218 * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
219 gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
220 documentation about underscores and mnemonics. (#66380)
222 * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
223 cyclic reference in docs.
225 * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
226 of default value. (#65402)
228 * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale):
231 2001-12-20 Anders Carlsson <andersca@gnu.org>
233 * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
236 Tue Dec 18 16:15:55 2001 Owen Taylor <otaylor@redhat.com>
238 * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
239 (reported by Jeff Franks.)
241 Tue Dec 18 16:07:28 2001 Owen Taylor <otaylor@redhat.com>
243 * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix
244 prototype for direction_changed. (Reported by
247 2001-12-18 Padraig O'Briain <padraig.obriain@sun.com>
249 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
250 Fix typo (list->data becomes list->next)
252 2001-12-06 Havoc Pennington <hp@redhat.com>
254 Add Unicode control char menu, based on patch from Dov.
257 * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
259 (gtk_entry_enter_text): function to do "typing in text"
260 (popup_targets_received): add the Unicode menu items
262 * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
263 on Input Methods item, and add the unicode menu items.
265 * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
266 used in GtkEntry and GtkTextView - may become public later.
268 2001-12-16 Kjartan Maraas <kmaraas@gnome.org>
270 * gtk/gtkprogressbar.c: Fix a typo.
271 * gtk/gtkpaned.c: Fix a typo.
273 2001-12-15 Darin Adler <darin@bentspoon.com>
277 * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
278 g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
279 * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
280 * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
281 * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
282 * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
283 Restructure loop to get rid of uninitialized variable warning. Also
284 gives a tiny efficiency gain.
286 2001-12-15 Murray Cumming <murrayc@usa.net>
288 * Fixed first arg type of GtkScale's "format_value" signal's
291 2001-12-14 Vitaly Tishkov tvv@sparc.spb.su
292 docs/reference/gtk/tmpl/gtkcelleditable.sgml
293 gtkcelleditable -> GtkCellEditable
294 docs/reference/gtk/tmpl/gtktreesortable.sgml
295 gtktreesortable -> GtkTreeSortable
297 2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
299 * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
300 demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
301 and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
304 Thu Dec 13 22:02:41 2001 Kristian Rietveld <kris@gtk.org>
306 * gtk/gtktreeview.c (validate_visible_area): free path
309 2001-12-13 Matthias Clasen <matthiasc@poet.de>
311 * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
313 Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
315 * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
316 to find the clicked node in the tree when tree == NULL
318 2001-12-13 Anders Carlsson <andersca@gnu.org>
320 * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare
321 event->state with the default mod mask.
323 2001-12-12 jacob berkman <jacob@ximian.com>
325 * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
327 Wed Dec 12 17:22:45 2001 Owen Taylor <otaylor@redhat.com>
329 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
330 Reset the existing slave before removing it to give
331 it a chance to commit and emit "preedit_changed"
332 in case there was still a preedit string.
334 2001-12-12 Matthias Clasen <matthiasc@poet.de>
336 * gtk/gtktextlayout.c: Typo fixes
337 * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
339 * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel,
340 gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
342 * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
344 Wed Dec 12 16:43:10 2001 Jonathan Blandford <jrb@redhat.com>
346 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
347 validate_rows_timer in unrealize. Reported by Matthew Wilson.
349 Wed Dec 12 16:18:26 2001 Owen Taylor <otaylor@redhat.com>
351 * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
352 "prepainting" the menu before realizing other than
353 via gtk_style_set_background() - this was broken when
354 we added menu scroll support.
356 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
357 window in the expose event -- fixes problem with border
358 flashing during scrolling.
360 Wed Dec 12 15:11:49 2001 Owen Taylor <otaylor@redhat.com>
362 * gtk/gtksettings.c (gtk_settings_get_property): Support
363 using names/nicks for the gdk_settings values for enum valued
364 types. (#57678, reported by Anders Carlsson)
366 Wed Dec 12 15:01:33 2001 Jonathan Blandford <jrb@redhat.com>
368 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
369 with insert_page_menu. Code duplication is bad.
371 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
374 Wed Dec 12 14:27:30 2001 Owen Taylor <otaylor@redhat.com>
376 * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
379 2001-12-12 James Henstridge <james@daa.com.au>
381 * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
382 (menu_item)->accel_path first when looking up the accel path.
384 Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
386 * tests/testgtk.c (layout_expose_handler): Only draw
387 for events on the bin window.
389 Tue Dec 11 18:55:16 2001 Jonathan Blandford <jrb@redhat.com>
391 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
392 mnemonics work with notebooks.
394 Tue Dec 11 15:25:06 2001 Jonathan Blandford <jrb@redhat.com>
396 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
397 bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
398 Makes some flicker while scrolling go away.
400 2001-12-11 Michael Natterer <mitch@gimp.org>
402 * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
403 adds alpha to the pixbuf; re-load the saved pixbuf and
404 pixel-by-pixel compare it with the original one.
406 Tue Dec 11 15:39:08 2001 Soeren Sandmann <sandmann@daimi.au.dk>
408 * ChangeLog: Fix wrong ChangeLog entry
409 * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
412 2001-12-10 jacob berkman <jacob@ximian.com>
414 * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer):
415 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
416 (gdk_keyboard_grab): do not grab things if the nograb debug flag
419 * gdk/gdkinternals.h:
420 * gdk/gdk.c: add nograbs debug flag to disable grabs of the
423 Mon Dec 10 19:42:29 2001 Jonathan Blandford <jrb@redhat.com>
425 * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
426 didn't reset the timer.
428 2001-12-10 Matthias Clasen <matthiasc@poet.de>
430 * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
432 2001-12-09 Matthias Clasen <matthiasc@poet.de>
434 * gtk/gtkviewport.c: Add docs.
436 Mon Dec 10 16:21:38 2001 Jonathan Blandford <jrb@redhat.com>
438 * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
439 RBTree corruption bug--
441 2001-12-10 Anders Carlsson <andersca@gnu.org>
443 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
444 if edited_column is NULL, also grab focus before removing
447 Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
449 * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
450 denominator in the horizontal case just like we do in the vertical
451 case (why I didn't notice that there were two cases the first time
452 around is beyond me:). Also fix indentation in the vertical case.
454 2001-12-09 Anders Carlsson <andersca@gnu.org>
456 * gdk/x11/gdkevents-x11.c: Update xsettings name.
458 * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
459 gtk-dnd-drag-threshold GtkSetting.
461 * gtk/gtksettings.c (gtk_settings_class_init): Add
462 setting for dnd drag threshold.
464 2001-12-09 Matthias Clasen <matthiasc@poet.de>
466 * gtk/gtkcontainer.c: Add docs.
468 2001-12-08 Matthias Clasen <matthiasc@poet.de>
470 * gtk/gtkwidget.c: Doc markup fix.
472 * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
474 * gtk/gtktreestore.c: Typo fixes. (#66445)
476 * gtk/gtkaccelgroup.c: Misc doc markup. (#66425)
478 * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
479 to gtk_clipboard_set_with_owner(). (#66424)
481 Sat Dec 8 16:12:10 2001 Christopher Blizzard <blizzard@redhat.com>
483 * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
484 "<unknown>" if someone doesn't pass in a valid argc. (Patch from
485 Fabrice Bellet <fabrice@gnu.org>, #54127).
487 Sat Dec 8 10:04:54 2001 Jonathan Blandford <jrb@redhat.com>
489 * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
490 of places, so that people with crashy trees can just run their
491 program with GTK_DEBUG=TREE.
493 Sat Dec 8 20:57:24 2001 Kristian Rietveld <kristian@planet.nl>
495 * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
498 2001-12-08 Anders Carlsson <andersca@gnu.org>
500 * tests/testgtk.c (layout_expose_handler): Don't return TRUE
501 since then the default GtkLayout expose handler won't be called.
503 Fri Dec 7 23:42:50 2001 Jonathan Blandford <jrb@redhat.com>
505 * gtk/gtktreeview.c (validate_rows_handler): remove
508 * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
509 Singh <yosh@gimp.org> to fix bug when rendering Tree with an
512 Fri Dec 7 20:06:14 2001 Jonathan Blandford <jrb@redhat.com>
514 * gtk/gtktreeview.c (validate_visible_area): get logic right,
517 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
518 removing a node ended up with a corrupt tree. Really really nasty
520 (_gtk_rbtree_debug_spew): new debug helper function
521 (_fixup_validation): new inline function to clean up code
524 Fri Dec 7 19:34:51 2001 Owen Taylor <otaylor@redhat.com>
526 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
529 2001-12-07 Matthias Clasen <matthiasc@poet.de>
531 * gtk/gtkstyle.h: Typo fixes.
533 * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
535 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
537 Fri Dec 7 16:05:22 2001 Owen Taylor <otaylor@redhat.com>
539 * modules/input/gtkimcontextxim.c: Display the XIM
540 status callbacks with a popup window. (Patch from
541 HideToshi Tajima, #50628, somewhat modified.)
543 Fri Dec 7 12:07:15 2001 Tim Janik <timj@gtk.org>
545 * gtk/Makefile.am: each source generation rule needs to use its own
546 temporary file, to avoid clashes for parallel builds. fixed rules
547 for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
549 2001-12-07 Havoc Pennington <hp@pobox.com>
551 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
552 "cursors that are actually useful" in gdk_cursor_new() docs
554 Thu Dec 6 23:09:21 2001 Owen Taylor <otaylor@redhat.com>
556 * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
557 in computing the size of the second child.
559 Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com>
561 * gtk/gtkrange.c: Make button 1 clicks on the trough
562 do pages, button 3 steps. (Patch from Hans Breuer
565 2001-12-06 Matthias Clasen <matthiasc@poet.de>
567 * gtk/gtklabel.c: Fix docs. (#66383)
569 * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs.
572 * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
573 gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
575 * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
576 Don't emit a g_warning() about being deprecated. (#66208)
578 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
580 * gtk/gtkcontainer.c: Doc fixes.
582 * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
584 * gtk/gtkstyle.c (gtk_style_attach): Add docs.
586 2001-12-05 Sven Neumann <sven@gimp.org>
588 * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
590 * gtk/queryimmodules.c: g_dir_read_name() returns const.
592 Tue Dec 4 21:46:13 2001 HideToshi Tajima <hidetoshi.tajima@sun.com>
594 * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
597 2001-12-04 Manish Singh <yosh@gimp.org>
600 * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
603 * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
606 * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
608 2001-12-04 Havoc Pennington <hp@redhat.com>
610 * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
611 g_assert_not_reached() that was bogus, since we demand-create the
612 tag info. reported by Chris Phelps
614 Jump through assorted hoops to fix bug from Chris Phelps where
615 removing tags from the table resulted in btree trying to
618 * gtk/gtktextbuffer.c: set up mechanics of adding/removing
619 ourselves to the tag table
621 * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer)
622 (_gtk_text_tag_table_remove_buffer): private cruft to
623 let us notify buffer of disappearing tags
625 * gtk/gtktexttag.h: remove BTreeNode typedef from this public
626 header, put it in tagprivate
628 * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
629 tag_removed; it's emitted too late.
630 (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
633 Padding for ABI-compat expansion
635 * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
636 (struct _GtkTextAppearance): one pad in here too
638 * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
640 * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
641 since action signals etc. seem pretty likely
643 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
645 * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
647 * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
649 2001-12-04 Matthias Clasen <matthiasc@poet.de>
651 * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
653 * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
655 * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
657 Tue Dec 4 18:51:44 2001 Jonathan Blandford <jrb@redhat.com>
659 * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
662 Tue Dec 4 18:38:35 2001 Jonathan Blandford <jrb@redhat.com>
664 * demos/gtk-demo/main.c: (create_tree): Minor fix.
666 * docs/tree-column-sizing.txt: Update
668 * gtk/gtkrbtree.[ch]: Massive work to support validation.
670 * gtk/gtktreemodel.c: Doc fixes.
672 * gtk/gtktreeview.c: Incremental reflow added.
673 * gtk/gtktreeviewcolumn.c: ditto
674 * gtk/gtktreeviewcolumn.h: ditto
676 2001-12-04 Havoc Pennington <hp@redhat.com>
678 * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
679 "invisible" property, #65999
681 2001-12-04 Matt Wilson <msw@redhat.com>
683 * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
685 Tue Dec 4 12:16:31 2001 Owen Taylor <otaylor@redhat.com>
687 * gtk/gtksettings.c (gtk_settings_set_property_value):
688 Simplify, make more efficient and fix memory leak
689 when turning quark into a string. (#66103, HideToshi
692 * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
693 init() and unref priv->tooltips in destroy rather
694 than calling gtk_object_destroy() which has no
695 effect on memory management. (#66104, HideToshi
698 * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
699 so we free the when the object is freed. (Fixes memory
700 leak, #66096, HideToshi Tajima)
702 * gdk/gdkevents.c (gdk_synthesize_window_state): Use
703 a full GdkEvent structure to avoid reads of uninitialized/
704 invalid memory in gdk_event_put() (#65877, patch
705 from Hidetoshi Tajima)
707 Tue Dec 4 11:06:54 2001 Owen Taylor <otaylor@redhat.com>
709 * gtk/gtkmenuitem.c: Revert my last mistaken change -
710 toggle-size-request doesn't take a requisition.
712 * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
713 reference to marshaler that no longer exists.
715 Mon Dec 3 16:39:17 2001 Owen Taylor <otaylor@redhat.com>
717 Patch from Bill Haneman (with many modifications) to make
718 the focus color work on dark themes and to make the
719 focus line width configurable. (#61079, #63074)
721 * gtk/gtkwidget.c: Add style properties,
722 ::focus-widget, ::focus-line-width, and ::focus-padding.
724 * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a
725 state argument as well so we can use fg[STATE] to
726 draw instead of always drawing with black.
727 Cange paint_focus() to respect GtkWidget::focus-width
728 and GtkWidget::focus-line-pattern. Fix continuity
729 problem where the default 1-1 stipple had a blob
730 in one corner and a gap in the other. Change the
731 interpretation of x/y/width/height to be the bounding
732 box of the focus rect instead of the rectangle
733 passed to gdk_draw_rectangle.
735 * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c
736 gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c
737 gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width
738 and ::focus-line-padding.
740 * gtk/gtkentry.c: Handle :;focus-width property; cleanup
741 and remove duplicated code; fix drawing of focus rectangle
742 when interior-focus = FALSE. (#63072, #63073)
744 * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
745 gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
746 Range and TreeViewColumn will need more extensive fixing.
748 * gtk/gtkcolorsel.c: Honor focus line attributes when
749 drawing the focus on the color swatches. (#63071)
751 * gtk/gtkhsv.c: Honor focus line attributes when
752 drawing the focus for the ring and triangle.
754 * docs/widget_geometry.txt: Start at documenting how
755 various widgets are drawn.
757 * gtk/gtkbutton.c (_gtk_button_paint): Export
758 _gtk_button_paint() librarywide, so we don't have
759 duplicate a bunch of code in gtktogglebutton.c.
761 * gtk/gtktogglebutton.c: Use _gtk_button_paint().
763 Mon Dec 3 21:04:13 2001 Jonathan Blandford <jrb@redhat.com>
765 * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
768 2001-12-03 Alex Larsson <alexl@redhat.com>
770 * gtk/gtkaccellabel.c:
773 * gtk/gtkcontainer.c:
776 * gtk/gtktogglebutton.c:
779 Return FALSE from expose handlers.
781 Mon Dec 3 21:15:59 2001 Kristian Rietveld <kris@gtk.org>
783 * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
784 we use pointers, we should free the previous pointer first (if
785 it exists), before we set a new pointer. (#64726)
787 * gtk/gtktreeprivate.h: get rid of cursor_drag
789 * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check
791 (gtk_tree_view_bin_expose): don't directly return in the while
793 (gtk_tree_view_class_init): indentend expanders by default
794 (gtk_tree_view_header_focus): only give the button focus
795 if it's clickable, visible and the column is reorderable
798 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
799 create and free cursor
801 Mon Dec 3 10:23:07 2001 Owen Taylor <otaylor@redhat.com>
803 * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
804 some bugs with size requisition. (From Bill Haneman)
806 * gtk/gtkcalendar.c: Draw headers and selection in
807 base/text[SELECTED] instead of fg/bg[SELECTED].
809 * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
812 2001-12-03 Havoc Pennington <hp@pobox.com>
814 * gtk/gtktextview.c (set_window_height):
815 (set_window_width): Hmm, setter functions normally assign the new
816 value to the object field. Reported by Chris Phelps.
818 2001-11-30 jacob berkman <jacob@ximian.com>
820 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
821 signal id to 0 after we disconnect from it
823 2001-11-30 Matthias Clasen <matthiasc@poet.de>
825 * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
826 gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
827 gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
828 gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
830 * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
831 GTK_DISABLE_DEPRECATED.
833 * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
834 gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
836 Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
838 * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
839 move/resize code, removing various bad, non-functional
840 hacks. (Fixes #65048, reported by Damon Chaplin.)
842 Fri Nov 30 16:12:21 2001 Owen Taylor <otaylor@redhat.com>
844 * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix
845 bad match error when target drawable is not the
846 same depth as the root window. (#65841)
850 2001-11-29 Matthias Clasen <matthiasc@poet.de>
852 * gdk/gdkwindow.c: Typo fix.
854 Thu Nov 29 21:35:56 2001 Kristian Rietveld <kristian@planet.nl>
856 * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
857 empty menu items to behave like insensitive items (#59456)
859 * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
860 next item if the first item in the menu is a tear off item
861 (#59456-2, suggestion by Matthias Clasen)
863 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
864 (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
865 (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
866 (gtk_real_menu_shell_activate_current): add check, so empty
867 menu items behave like insensitive items (#59456)
869 * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
870 the checks more readable ...
872 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
873 (gtk_menu_shell_button_release): causes the menu to dropdown if the
874 caption is clicked again (#64977)
876 2001-11-29 Havoc Pennington <hp@redhat.com>
878 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
879 assertion here that we were at the end iterator was not correct;
880 change code to move us to the end iterator. bug #65731
882 Wed Nov 28 20:05:44 2001 Owen Taylor <otaylor@redhat.com>
884 * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove
885 improper use of g_locale_to_utf8() to convert from
886 latin-1, and do it the easy way by building the string
887 correctly in the first place.
889 Wed Nov 28 19:34:15 2001 Owen Taylor <otaylor@redhat.com>
891 * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get):
892 Convert atoms to and from atoms for properties of type XA_ATOM.
893 (#65555, patch from Hidetoshi Tajima)
895 Wed Nov 28 18:37:04 2001 Owen Taylor <otaylor@redhat.com>
897 * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter
898 to avoid problems with Objective C.
900 2001-11-28 Matthias Clasen <matthiasc@poet.de>
902 * gtk/gtkaccelmap.c: Typo fixes. (#65607)
904 * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
907 * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
909 Wed Nov 28 18:19:12 2001 Owen Taylor <otaylor@redhat.com>
911 * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
912 accounting of menu->tearoff_scrollbar width to here
913 and make sure we have the correct requisition.
915 * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
916 by using gtk_window_move().
918 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
919 the requisition to be updated by calling
920 gtk_widget_size_request() (#65440)
922 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate):
923 queue resize before calling gtk_menu_set_tearoff_state().
925 Wed Nov 28 22:20:44 2001 Kristian Rietveld <kristian@planet.nl>
927 * demos/gtk-demo/editable_cells.c: fix typo
929 * demos/gtk-demo/list_store.c (add_columns): remove call to
930 gtk_tree_view_column_set_clickable which didn't make sense
932 2001-11-28 Havoc Pennington <hp@redhat.com>
934 * gtk/gtktextview.c (gtk_text_view_paint): put the warning
935 explaining the validation error in front of the G_BREAKPOINT
937 * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
938 process updates with include_children = FALSE instead of TRUE, so
939 we redraw the range only, not the whole darn window. Making
940 GtkRange a NO_WINDOW widget had weirdly caused the text widget
941 Trace/breakpoint trap bug to become much easier to trigger.
943 Wed Nov 28 14:12:03 2001 Owen Taylor <otaylor@redhat.com>
945 * gdk/Makefile.am (gdk_public_h_sources): Remove reference
948 2001-11-28 Matthias Clasen <matthiasc@poet.de>
950 * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
952 * gdk/gdkcursor.h: Directly include the contents
953 of gdkcursors.h in the GdkCursorType enum.
955 * gdk/gdkcursors.h: Deleted.
957 * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add
960 * gdk/Makefile.am: Remove the X-derived-headers rule.
962 Tue Nov 27 20:17:55 2001 Owen Taylor <otaylor@redhat.com>
964 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
965 Notify on the ::active property _here_, not in
966 gtk_check_menu_item_set_active.
968 Mon Nov 26 19:11:18 2001 Jonathan Blandford <jrb@redhat.com>
970 * gtk/gtkcellrendererpixbuf.c
971 (gtk_cell_renderer_pixbuf_class_init): add 2 properties
972 (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
974 Sun Nov 25 21:19:02 2001 Owen Taylor <otaylor@redhat.com>
976 * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
977 comment about what is going on in this file.
979 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
982 Sun Nov 25 18:59:19 2001 Owen Taylor <otaylor@redhat.com>
984 * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size):
985 Calculate size based on the _child_ of the menu item,
986 not the menuitem. (#65005, Damon Chaplin)
988 * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
989 some extra vertical padding to the label widget ... restores
990 GTK+-1.2 spacing. (#65085, Damon Chaplin.)
992 2001-11-26 Tor Lillqvist <tml@iki.fi>
994 * demos/pixbuf-demo.c
995 * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
997 * demos/gtk-demo/main.c (read_line): No flockfile() or
998 getc_unlocked() on Win32.
1000 2001-11-25 Tor Lillqvist <tml@iki.fi>
1003 * acconfig.h: As we now use GDir, no need to check for dirent.h.
1005 Sun Nov 25 23:18:39 2001 Kristian Rietveld <kristian@planet.nl>
1007 * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
1008 when finished (#65266)
1010 Sun Nov 25 23:16:29 2001 Kristian Rietveld <kristian@planet.nl>
1012 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
1013 data after we set the property. (#65264)
1015 Sun Nov 25 23:14:06 2001 Kristian Rietveld <kristian@planet.nl>
1017 * gtk/gtkbutton.c: add destroy method so label_text gets freed
1018 if it has been allocated (#65268)
1020 Sat Nov 24 13:39:51 2001 Manish Singh <yosh@gimp.org>
1022 * gdk/linux-fb/gdkdrawable-fb2.c
1023 * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
1025 * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
1027 * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
1030 * gdk/linux-fb/gdkfbswitch.c: minor cleanups
1032 Sat Nov 24 22:05:27 2001 Kristian Rietveld <kristian@planet.nl>
1034 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
1035 deactivate menu when menu_item isn't sensitive (#61389)
1037 Sat Nov 24 15:35:26 2001 Kristian Rietveld <kristian@planet.nl>
1039 * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
1040 we return (in case of a failure here)
1042 Fri Nov 23 19:22:50 2001 Owen Taylor <otaylor@redhat.com>
1044 * gtk/gtknotebook.c: Handle events in windows other
1045 than widget->event_window properly. (#65079, reported
1048 * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
1050 Fri Nov 23 18:57:46 2001 Owen Taylor <otaylor@redhat.com>
1052 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
1053 the image at the top. (#65020, request from Seth Nickell)
1055 Fri Nov 23 18:49:53 2001 Owen Taylor <otaylor@redhat.com>
1057 * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
1058 arithmetic that was resulting in rows being drawn too low.
1059 (#65001, reported by Damon Chaplin)
1061 Fri Nov 23 18:36:42 2001 Owen Taylor <otaylor@redhat.com>
1063 * gtk/gtkrange.c (gtk_range_button_press): Offset
1064 invalidated range correctly.
1066 * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling
1067 of title window. (#65001, reported by Damon Chaplin)
1069 * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
1070 horrible hack with use of ::event_after.
1072 Thu Nov 22 15:01:03 2001 Owen Taylor <otaylor@redhat.com>
1076 * configure.in (ATK_REQUIRED_VERSION): Require
1077 GLib-1.3.11, Pango-0.22, ATK-0.7.
1079 * tests/prop-editor.c (property_widget): Restore
1080 to working as well as it did before.
1082 * gtk/gtklistitem.h: Mark deprecated since it is
1083 an integral part of GtkList.
1085 * demos/gtk-demo/demo-common.h: New header file,
1086 for a common functions not important to the meat
1089 * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
1090 function to search for a file used by the demo.
1092 * demos/*.c: Use demo_find_file.
1094 2001-11-23 Matthias Clasen <matthiasc@poet.de>
1096 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
1097 gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo
1098 fixes already mentioned in ChangeLog entry on 2001-11-14.
1100 * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
1102 2001-11-23 Hans Breuer <hans@breuer.org>
1104 * gdk/win32/gdkfont-win32.c (gdk_font_from_description) :
1105 reflect Pango API change
1107 * gtk/gtk.def : updated externals
1109 * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use
1110 g_return_val_if_fail() to avoid 'function must return a value'
1112 * gtk/gtkrc.c : added spaces to fix small coding style issues
1113 * gtk/gtkwidget.c : ... and linebreaks. Also a static for
1114 'static correctness'
1116 * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
1117 because they only can be build on win32 after applying my patch
1119 Wed Nov 21 22:55:37 2001 Tim Janik <timj@gtk.org>
1121 * gtk/gtkbutton.c (gtk_button_map): raise event window afte
1122 children, in order for the input pnly window to stay *above*
1125 Wed Nov 21 22:44:27 2001 Tim Janik <timj@gtk.org>
1127 * tests/testtreeview.c: make hackery worse ;) by checking fundamental
1128 type walks againts G_TYPE_FUNDAMENTAL_MAX.
1130 * tests/prop-editor.c: disable type hackery.
1132 Wed Nov 21 17:41:39 2001 Owen Taylor <otaylor@redhat.com>
1134 * gdk/gdkimage.c (gdk_image_get): Fix problem with
1137 Wed Nov 21 17:01:25 2001 Owen Taylor <otaylor@redhat.com>
1139 * gtk/gtkcellrenderer.h gtk/gtktreemodel.h
1140 gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
1141 trailing commas in enum declarations.
1143 Wed Nov 21 15:21:26 2001 Owen Taylor <otaylor@redhat.com>
1145 * configure.in (GTK_MICRO_VERSION): Version 1.3.11,
1146 interface, binary age 0.
1150 * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
1153 * gtk/gtkmain.h: Remove unused and misnamespaced
1154 get_gtk_win32_directory() prototype.
1156 * gdk/gdkimage.c (gdk_image_get): Fix parameter names
1159 * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
1160 gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
1163 * gdk/gdkevents.c (gdk_event_get_coords)
1164 gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
1165 gtk/gtkdnd.c (gtk_drag_set_icon_stock):
1166 Fix parameter names in docs.
1168 * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
1169 (#64961, Akira Tagoh)
1171 Wed Nov 21 11:41:29 2001 Owen Taylor <otaylor@redhat.com>
1173 * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
1175 * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
1177 * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
1179 * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
1180 back to gtk_accel_groups_from_object(), change @acceleratable
1181 parameter to gtk_accel_groups_activate() accordingly.
1183 * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
1184 left-over comment about quark return.
1186 * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
1188 * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
1189 (Patch from Matt Wilson)
1191 * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
1192 object is finalized.
1194 Tue Nov 20 21:25:08 2001 Tim Janik <timj@gtk.org>
1196 * applied patch from owen to get rid of accel map notifiers.
1197 changed things to fix reentrancy and API as discussed on gtk-devel.
1199 * gtk/gtkaccelgroup.[hc]:
1200 (gtk_accel_group_finalize): unregister this accel group from all
1202 (accel_closure_invalidate): handle invalidation of closures by
1203 disconnecting their accelerators.
1204 (quick_accel_add): move closure connection and changed notification
1205 into this function to reduce code duplication. don't emit change
1206 notification on closurers without accelerators.
1207 (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
1208 for a GtkAccelGroupEntry.
1209 (gtk_accel_group_connect): get rid of the accel_path_quark argument.
1210 (gtk_accel_group_connect_by_path): new function to add accelerators
1212 (gtk_accel_group_disconnect_closure): new function, disconnect a
1213 closure from of an accel group.
1214 (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
1215 accel_mods pair and remove them.
1216 (_gtk_accel_group_reconnect): new function that basically does
1217 gtk_accel_group_disconnect_closure() and
1218 gtk_accel_group_connect_by_path() once an accel path changed.
1219 (gtk_accel_groups_disconnect_closure): remove this, there's
1220 gtk_accel_group_disconnect_closure().
1222 * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
1224 (_gtk_accel_path_is_valid): make this non-static for
1225 gtkwidget.c and gtkaccelgroup.c assertions.
1226 (gtk_accel_map_add_notifer): removed this function.
1227 (gtk_accel_map_remove_notifer): same.
1228 (_gtk_accel_map_add_group):
1229 (_gtk_accel_map_remove_group): (un-)register accel groups, with
1230 accel paths for correct propagation.
1231 (gtk_accel_map_add_entry): return void.
1232 (gtk_accel_map_lookup): return gboolean instead of GQuark.
1234 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
1235 set accel_path on widgets.
1237 * gtk/gtkwidget.[hc]:
1238 (accel_path_changed): got rid of this, changes are handled by
1239 accel maps internally now.
1240 (_gtk_widget_set_accel_path): get things to work without notifiers.
1241 (gtk_widget_list_accel_closures): list accel closures of a widget.
1243 * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
1245 2001-11-20 Matthias Clasen <matthiasc@poet.de>
1247 * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
1249 Tue Nov 20 23:01:01 2001 Kristian Rietveld <kristian@planet.nl>
1251 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
1252 replace gboolean free_last in the function parameters with
1253 gint depth. Changes to reflect new situation.
1255 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1256 replace gboolean free_last, with gint depth, add gint current_depth.
1257 Changes to reflect new situation.
1259 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
1260 to reflect new situation
1262 * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
1264 Tue Nov 20 12:37:10 2001 Owen Taylor <otaylor@redhat.com>
1266 * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
1267 where notebook gap was double shifted by allocation.x/y
1269 * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
1272 Tue Nov 20 14:49:59 2001 Tim Janik <timj@gtk.org>
1274 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
1275 allocation to be relative to paned->allocation, now
1276 that this is a NO_WINDOW widget.
1277 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
1279 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
1280 needs to be a boxed property.
1282 Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
1284 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
1285 Use the widget's state when drawing the indicator, as
1286 in GtkCheckButton. This gives us color changes for
1287 un-prelighted checkbuttons. (#63308, Matt Wilson)
1289 Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
1291 (Fixes related to #64428, Michael Meeks)
1293 * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
1294 widget, so it gets mapped again properly when we
1297 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1298 plug->socket_window.
1300 * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
1301 socket_window to NULL, not FALSE.
1303 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1304 socket->same_app to TRUE. (#64612)
1306 Mon Nov 19 15:50:41 2001 Owen Taylor <otaylor@redhat.com>
1308 * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add
1309 gtk_fixed_set/get_has_window() to remove criticism
1310 about GTK_WIDGET_SET_FLAGS() hacks.
1312 2001-11-19 Michael Natterer <mitch@gimp.org>
1314 * gtk/gtknotebook.c: show notebook->event_window with
1315 gdk_window_show_unraised(), so it doesn't catch the events which
1316 should go to the tab widgets first.
1318 Mon Nov 19 15:30:51 2001 Jonathan Blandford <jrb@redhat.com>
1320 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
1321 "resizable" property, to get rid of the
1322 GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
1323 (gtk_tree_view_column_set_resizable): New function to set resizable.
1324 (gtk_tree_view_column_set_resizable): getter.
1326 * tests/testtreecolumns.c (add_clicked): modify for above change.
1328 * Makefile.am (install-data-hook): remove old .pc files before
1329 installing the new one. We used to symlink this, and it will
1332 2001-11-19 Havoc Pennington <hp@pobox.com>
1334 * tests/testtext.c (fill_example_buffer): put in a test for
1335 negative indentation values
1337 Mon Nov 19 14:08:18 2001 Owen Taylor <otaylor@redhat.com>
1339 * gtk/gtklabel.c (gtk_label_init): Change default for
1340 justify to GTK_JUSTIFY_LEFT. Assuming that multiline
1341 labels are most often wrapped labels, this gives better
1342 compatibility with GTK+-1.2, where justification was
1343 ignored for wrapped labesl and is a more sensible
1344 default in any case. (#64489)
1346 * gtk/gtklabel.c (gtk_label_class_init): Fix default
1347 for wrap property to FALSE.
1349 2001-11-19 jacob berkman <jacob@ximian.com>
1351 * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
1353 Mon Nov 19 13:56:45 2001 Owen Taylor <otaylor@redhat.com>
1355 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
1356 RevertToParent, not RevertToNone. (#64613,
1359 Mon Nov 19 12:28:02 2001 Owen Taylor <otaylor@redhat.com>
1361 * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
1362 and label_yalign need to be float properties to
1363 correspond to GTK+-1.2, to gtk_frame_set_label_align,
1364 and to the types of the xalign and yalign properties of GtkMisc.
1365 (#63484, Vitaly Tishkov)
1367 Mon Nov 19 12:24:30 2001 Owen Taylor <otaylor@redhat.com>
1369 * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
1370 of plug_added vfunc. (#64408, Jeff Franks)
1372 Mon Nov 19 12:07:20 2001 Owen Taylor <otaylor@redhat.com>
1374 * configure.in (deps): Undef HAVE_STDLIB_H before
1375 checking for jpeg, because jconfig.h has this
1376 in it too (%#$@!). Fix from Matthias Clasen, #64500.
1378 Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
1380 * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
1381 memory leak when retrieving atom names. (Michael Meeks,
1384 2001-11-18 Alex Larsson <alexl@redhat.com>
1386 * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
1387 Update to new Pango API.
1389 Sun Nov 18 19:47:29 2001 Owen Taylor <otaylor@redhat.com>
1391 * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
1392 GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
1393 GTK_OBJECT_DESTROYED() check macro.
1395 * gtk/gtkbindings.c (gtk_bindings_activate): Remove
1396 instances of GTK_OBJECT_DESTROYED() that weren't
1399 * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
1400 for a connection to ::destroy.
1402 Sun Nov 18 18:18:11 2001 Owen Taylor <otaylor@redhat.com>
1404 * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
1405 have been since the beginning, but as special hack,
1406 allow clearing the NO_WINDOW flag to get a window widget.
1408 Sun Nov 18 22:01:36 Kristian Rietveld <kristian@planet.nl>
1410 * gtk/gtktreestore.c: return TRUE when value changed, so
1411 row_changed is being emitted
1413 2001-11-18 Hans Breuer <hans@breuer.org>
1415 * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
1416 no label without op, even if it's a no-op.
1419 * gtk/makefile.msc.in : reflect marshaler split, some clean-up
1421 * config.h.win32.in : remove definition of HAVE_DIRENT_H
1422 * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
1423 required anymore, replace it.
1424 * gtk/queryimmodules.c : DIR -> GDir replacement, also
1425 getcwd() -> g_get_current_dir()
1427 * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
1428 Even 'noisy laugh' scolling appears to work, though I still can't
1429 claim to have fully understood what it is supposed to do ...
1431 Sat Nov 17 21:07:46 2001 Owen Taylor <otaylor@redhat.com>
1433 * gtk/gtkenums.h: Include glib-object.h instead of
1436 * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
1437 x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
1438 argument to the window_at_pointer() field of
1439 GdkPointerHooks. (Patch from Erwann Chenede)
1441 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
1444 2001-11-17 Matt Wilson <msw@redhat.com>
1446 * gtk/gtkenums.h: must include glib-object.h only
1448 Sat Nov 17 19:26:20 2001 Owen Taylor <otaylor@redhat.com>
1450 * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
1451 key bindings in order of visibility - mnemonics, then
1452 accelerators, then send key to the focus widget, then
1453 bindings on the GtkWindow.
1455 * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c:
1456 Removed the xoffset, yoffset fields of GtkLayout which were
1457 identically zero for compat with 1.2, but were no longer
1458 compatible with all uses of these fields in 1.2.
1460 * gtk/gtkwindow.c (gtk_window_set_default): Remove
1463 Sat Nov 17 19:08:13 2001 Owen Taylor <otaylor@redhat.com>
1465 * tests/testtreeview.c (gtk_tree_model_types_get_type):
1466 We no longer need to create the signals here ... they
1467 come from the interface.
1469 * gtk/maketypes.awk: Use GType, not GtkType in output.
1471 * gtk/gtktypeutils.h: Mark virtually all of this
1474 * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
1475 the only use of this function is the GtkArg using
1476 GtkCallbackMarshal, since destroy notification is
1479 Sat Nov 17 18:26:45 2001 Owen Taylor <otaylor@redhat.com>
1481 * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
1482 gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
1483 only for compatibility with GTK+-1.2; and deprecate it;
1484 put all marshalers we actually use into gtkmarshalers.list
1485 and use the _gtk_marshal_ prefix for these marshalers.
1487 2001-11-17 Murray Cumming <murrayc@usa.net>
1489 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
1490 The first parameters of the signals are now registered as
1491 GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
1493 2001-11-17 Tor Lillqvist <tml@iki.fi>
1495 * gtk-zip.sh.in: Build separate runtime and developer
1498 * gtk/gtk.def: Reflect recent accelerator-related changes.
1500 Fri Nov 16 19:44:35 2001 Owen Taylor <otaylor@redhat.com>
1502 * gtk/gtkwindow.c (gtk_window_set_default): Move
1503 notification of "has_default" to here, so it
1504 is safe to call gtk_window_set_default() instead
1505 of gtk_widget_grab_default().
1507 * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
1508 gtk_widget_grab_focus(), which then calls
1509 _gtk_widget_internal_set_focus(). This makes
1510 gtk_window_set_focus() a safe way of both setting
1511 and unsetting the focus widget.
1513 * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
1514 gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
1515 to find the toplevel.
1517 * gtk/gtkwindow.h: Move gtk_window_set_focus/default
1518 from the "internal functions" section.
1520 2001-11-16 jacob berkman <jacob@ximian.com>
1522 * tests/testgtk.c (create_radio_buttons): add some no-indicator
1525 * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
1526 initially active, also initially be depressed
1527 (gtk_radio_button_clicked): also update our depressed state
1529 Thu Nov 15 12:54:36 2001 Owen Taylor <otaylor@redhat.com>
1531 * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
1532 key press events not just to focus/window but also to
1533 intermediate widgets.
1535 * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
1536 to switch pages. (Needs some work on handling focus
1537 when switching pages.)
1539 Fri Nov 16 14:06:31 2001 Owen Taylor <otaylor@redhat.com>
1541 * gtk/gtknotebook.c: Fix child allocations to be relative to
1542 widget position and some drawing bugs.
1544 * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
1545 with reading uninitialized variable.
1547 Fri Nov 16 00:16:40 2001 Owen Taylor <otaylor@redhat.com>
1549 * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
1550 gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
1553 * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
1556 * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
1557 we are drawing in a window when drawing the paned handle.
1559 2001-11-16 Sven Neumann <sven@gimp.org>
1561 * demos/gtk-demo/appwindow.c
1562 * demos/gtk-demo/menus.c: reduce compiler warnings
1564 Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
1566 * demos/gtk-demo/main.c (button_press_event_cb): Remove
1567 unused callback to make things compile with
1568 gtk_tree_view_path_at_pos_change().
1570 Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
1572 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
1574 2001-11-15 Matthias Clasen <matthiasc@poet.de>
1576 * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
1578 Thu Nov 15 16:24:55 2001 Jonathan Blandford <jrb@redhat.com>
1580 * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
1581 to get a GdkWindow to compare event->window to.
1583 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
1584 the signal for lateral motion too, #64361
1586 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
1587 arg as it is useless, #64137
1589 Thu Nov 15 16:07:42 2001 Owen Taylor <otaylor@redhat.com>
1591 * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
1593 Thu Nov 15 14:19:34 2001 Owen Taylor <otaylor@redhat.com>
1595 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
1596 gdk_window_invalidate_maybe_recurse() for recursion.
1599 * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
1601 * gtk/gtkcontainer.c (gtk_container_expose): Call
1602 gtk_container_forall() not _foreach() to propagate,
1603 since we need to propagate exposes to internal children
1606 * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events):
1607 Remove the restriction of only being able to call these
1608 on window widgets, since we have lots of NO_WINDOW widgets
1609 with windows now; for add events, recurse over the children
1610 of widget->window to find one owned by the widget.
1612 * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
1613 window to catch events.
1615 * gtk/gtktogglebutton.[ch]: Remove the code for switching
1616 between NO_WINDOW and WINDOW widgets based on the mode.
1618 * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
1619 gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
1621 * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
1623 * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
1626 * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
1628 * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
1630 Thu Nov 15 11:59:35 2001 Owen Taylor <otaylor@redhat.com>
1632 * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
1633 "message_type" and "buttons" CONSTRUCT properties. (#64069)
1635 * tests/testsocket.c: Expand tests to add a "local passive
1636 child" (Test case for #64428)
1638 2001-11-14 jacob berkman <jacob@ximian.com>
1640 * gtk/gtkgamma.c (button_clicked_callback): create the label with
1643 2001-11-15 Sven Neumann <sven@gimp.org>
1645 * tests/testgtk.c: make it compile without warnings.
1647 2001-11-14 Alex Larsson <alexl@redhat.com>
1650 Don't recalculate the layout on each gkt_label_ensure_layout () for
1653 Wed Nov 14 17:40:23 2001 Jonathan Blandford <jrb@redhat.com>
1655 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
1656 the currently selected column when we get the column, #64380
1658 * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
1659 to cancel CellRendererText editting, #63613
1661 * gtk/gtkcellrenderertext.c: ditto
1663 * gtk/gtkcellrenderertext.h: formatting changes
1665 2001-11-14 Matthias Clasen <matthiasc@poet.de>
1667 * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
1669 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
1671 * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
1673 * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
1675 * gtk/gtklabel.c: Documentation fixes (#64452)
1677 2001-11-14 Daniel Egger <degger@fhm.edu>
1679 * gdk-pixbuf/io-xpm.c:
1680 (xpm_skip_whitespaces): Remove unused static function.
1681 (xpm_skip_string): Dito.
1682 (xpm_extract_color): Declare const variable const to avoid warnings.
1684 * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
1686 * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
1688 * gtk/gtksocket.c: Change type of mask to g_message to %ld for
1691 Wed Nov 14 15:14:48 2001 Owen Taylor <otaylor@redhat.com>
1693 * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
1694 out accidental commit of debugging timing code.
1696 2001-11-14 Havoc Pennington <hp@redhat.com>
1698 * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
1699 it doesn't move to a new line each time you press it
1701 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
1702 return value, #62987
1704 2001-11-14 Havoc Pennington <hp@redhat.com>
1706 * tests/testtextbuffer.c (main): bulk of the tests were commented
1709 * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this
1710 function work, should resolve #63426
1711 (gtk_text_iter_ends_line): return TRUE for the end iterator
1713 * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
1714 a couple things that might get cached in here.
1716 Tue Nov 13 21:00:59 2001 Jonathan Blandford <jrb@redhat.com>
1718 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
1719 "model" construct property for language bindings.
1721 * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
1722 function to let you set the column types of a GtkTreeStore for
1725 * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
1727 2001-11-13 Havoc Pennington <hp@redhat.com>
1729 * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
1730 including reference to bugzilla bug about how we should have
1731 a better way of positioning children
1733 * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
1735 * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
1736 size to side rects if they don't exist, #63438
1738 2001-11-13 Havoc Pennington <hp@redhat.com>
1740 * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
1741 properly replace selection with Return or Tab
1743 * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
1744 that didn't locate the end of the line correctly, should fix #63800
1746 2001-11-13 Havoc Pennington <hp@redhat.com>
1748 * gtk/gtktextview.c (gtk_text_view_size_request): add border width
1749 to requisition, request non-anchored children
1750 (gtk_text_view_size_allocate): handle border width, allocate
1751 non-anchored children
1752 (text_view_child_new_window): set the child as object data
1753 (gtk_text_view_move_child): allow children at negative
1754 coordinates, no reason why not
1755 (gtk_text_view_forall): make it copy the list of children before
1756 walking it, to avoid reentrancy issues
1757 (gtk_text_view_move_child): short-circuit if position is unchanged
1758 (changed_handler): only queue_resize if requisition has changed
1759 (gtk_text_view_init): don't redraw_on_allocate, since we can do
1760 a better job of invalidation ourselves
1762 * tests/testtext.c: add tests for the fixed-position children
1764 Tue Nov 13 19:51:43 2001 Tim Janik <timj@gtk.org>
1766 * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
1767 with gdk threads macro.
1769 Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org>
1771 * gtk/maketypes.awk: fix type utils generation on unix.
1773 * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
1776 * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
1777 removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
1778 gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
1779 gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
1780 gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
1781 introduced ::accel_changed signal for change notification, and
1782 gtk_accel_group_connect/disconnect to connect closures to accel groups.
1783 made gtk_accel_group_attach/detach and gtk_accel_group_activate private
1785 deprecated gtk_accel_group_ref/unref.
1787 * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
1788 to accel group changed notification and basically operate on closures.
1789 removed gtk_accel_label_get_accel_object and
1790 gtk_accel_label_set_accel_object.
1791 introduced gtk_accel_label_set_accel_closure, and for convenience,
1792 gtk_accel_label_set_accel_widget.
1794 * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
1795 which mostly moved into gtkaccelmap.[hc].
1796 removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
1797 and gtk_item_factory_print_func.
1799 * gtk/gtkmain.c: call _gtk_accel_map_init().
1801 * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
1802 that associates an accelerator path with menu items, through which
1803 persistent accelerator settings on menu items are enabled.
1805 * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
1806 paths of menu item can be default constructed to allow installation
1807 of accelerators on menu items that don't come with an accelerator
1810 * gtk/gtksettings.c: fix STRING type rc settings by special casing
1811 them appropriately in the parser.
1813 * gtk/gtksignal.[hc]: allow a class function offset of 0 for
1816 * gtk/gtkwidget.[hc]: accelerator API revamp.
1817 removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
1818 gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
1819 gtk_widget_(un)lock_accelerators.
1820 accelerators maintained through gtk_widget_add/remove_accelerator()
1821 are not runtime changable now, the correct sequence to setup a
1822 widget for runtime changable accelerators is now:
1823 gtk_accel_map_add_entry(accel_path, key, mods);
1824 _gtk_widget_set_accel_path(widget, accel_path, accel_group);
1826 * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
1827 group changes (as well as mnemonic changes) through the new signal
1830 Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org>
1832 * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
1833 GString->string conversions.
1835 Mon Nov 12 19:33:52 2001 Owen Taylor <otaylor@redhat.com>
1837 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
1838 if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
1840 2001-11-12 Matthias Clasen <matthiasc@poet.de>
1842 * gtk/gtktreeview.c: Documentation fixes. (#64377)
1844 * gtk/gtktreestore.c: Documentation fixes. (#64376)
1846 2001-11-11 Matthias Clasen <matthiasc@poet.de>
1848 * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
1849 gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c,
1850 gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.
1851 (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
1853 2001-11-10 Hans Breuer <hans@breuer.org>
1855 * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
1856 we know what we are talking about when asked for MINMAXINFO.
1857 Also some cleaning for !HAVE_DIMM_H etc.
1859 2001-11-10 Matthias Clasen <matthiasc@poet.de>
1861 * gtk/gtktreeviewcolumn.c: Fix docs for
1862 gtk_tree_view_column_set_sort_order. (#62647)
1864 * gtk/gtkcontainer.c: Fix docs for
1865 gtk_container_set_border_width. (#64139)
1867 * gtk/gtkcolorsel.c: Documentation fixes.
1869 2001-11-10 Hans Breuer <hans@breuer.org>
1871 * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
1872 don't have strcasecmp()
1874 * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need
1875 to remove the idle funcs in gtk_text_view_destroy (). To reduce
1876 code duplication wrap it in its own function and use it in
1877 gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
1879 * gdk/win32/gdkdrawable-win32.c : implement the finalize
1880 method like the X11 version does, allow to set_colormap NULL
1881 * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
1882 set_colormap, also some adaption to X11 version :
1883 (gdk_window_hide) call _gdk_window_clear_update_area
1884 (gdk_window_reparent) call _gdk_window_init_position
1886 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) :
1887 call gdk_window_resize() after all hints are set, because the
1888 window resizing process (WM_GETMINMAXINFO) takes all of them into
1891 * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
1893 * gdk/win32/gdkvisual-win32.c : register GdkVisual with
1894 sizeof (GdkVisualPrivate)
1896 * gdk/gdk.def gtk/gtk.def : upated externals
1898 * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
1899 gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
1900 from now on use make.msc from $(TOP)/glib/build/win32
1902 * gtk/stock-icons/makefile.msc : add stock_missing_image
1904 2001-11-08 Tor Lillqvist <tml@iki.fi>
1906 * README.win32: Add headers. Add section about ActiveIMM.
1908 * configure.in: Add --with-ie55 flag to specify the location of
1909 the "IE55 libs and headers" package downloadable from Microsoft,
1910 which contains, among other things, the Active IMM header dimm.h
1911 and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
1912 Require GLib 1.3.10.
1914 * config.h.win32.in: New version, produced by merging two
1915 configure-generated ones (for gcc and MSVC). Hopefully #defines
1916 the same flags that the previous, hand-written one, did.
1919 * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
1921 * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
1922 stuff. Remove unused GdkIOClosure.
1924 * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
1927 * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
1928 for uuid.lib. (Does it really have to be this hard to use an
1929 existing library with libtool? Probably I am missing something.)
1931 2001-11-08 Darin Adler <darin@bentspoon.com>
1933 * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
1934 typo where it says LEFT instead of CENTER.
1936 2001-11-07 Darin Adler <darin@bentspoon.com>
1938 * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
1939 (gtk_dialog_set_default_response): Add g_return_if_fail.
1941 Mon Nov 5 22:34:29 2001 Owen Taylor <otaylor@redhat.com>
1943 * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface):
1944 Add row_draggable() vfunc, and wrapper function.
1946 * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
1947 row_drop_possible take a GtkSelectionData, rather than
1950 * gtk/gtktreestore.c gtk/gtkliststore.c: Update for
1953 * gtk/gtktreeview.[ch]: Remove the row_draggable_func
1954 location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
1955 and rename them to enable_model_drag_source/dest.
1957 * gtk/treeviewcolumn.c: Add DND of columns between rows.
1958 Still can't drop _to_ the left tree, but other places
1961 * gtk/gtktreeview.c (unset_reorderable): Unset the
1962 reorderable property if unset/enable_model_drag_source/dest
1963 are called manually.
1965 * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible):
1966 Correct for change in depth count handling.
1968 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
1969 Pass in a expose area to gtk_tree_view_column_cell_render()
1971 2001-11-06 Havoc Pennington <hp@redhat.com>
1973 * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
1975 Tue Nov 6 10:13:16 2001 Owen Taylor <otaylor@redhat.com>
1977 * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
1979 2001-11-05 Havoc Pennington <hp@redhat.com>
1981 * gtk/gtktextview.c (gtk_text_view_paint): expose the child
1983 (gtk_text_view_realize): set parent window of child widgets
1984 (gtk_text_view_size_request): use child req to decide whether
1985 to invalidate layout, not widget->requisition
1987 * gtk/gtktextdisplay.c (render_layout_line): set
1988 shaped_width_pixels for NULL shape objects, so that we properly
1989 draw the "missing pixbuf/widget" thing
1990 (render_layout_line): don't draw the widget here
1991 (gtk_text_layout_draw): pass out a list of widgets that need exposing
1993 * demos/gtk-demo/textview.c (insert_text): add demo of child
1996 * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
1998 * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
2000 * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
2002 (gtk_text_view_value_changed): poke new X and Y into child allocations
2004 2001-11-06 Tor Lillqvist <tml@iki.fi>
2006 * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
2007 -specific directory on Windows, too (#63759).
2009 Mon Nov 5 12:46:44 2001 Owen Taylor <otaylor@redhat.com>
2011 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
2012 gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
2013 gdk/x11/gdkwindow-x11.c: Redo Xft support to go
2014 directly to Picture objects instead of using XftDraw.
2015 This fixes the problem where we weren't able to
2016 properly destroy XftDraw objects before destroying
2017 the accompanying windows, and probably improves
2018 efficiency a bit too. (#50214)
2020 Mon Nov 5 10:01:49 2001 Owen Taylor <otaylor@redhat.com>
2022 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position):
2023 Clamp max window width/height to 32767, not 32768 since
2024 we have to be able to deal with a dx/y of -32768 without
2025 getting a width of 65536 when guffaw scrolling.
2027 * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
2028 for the guffaw scrolling case, fixing some problems with
2029 copy-area case as well. Fix BadValue bug with moving windows
2032 * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
2033 clip in window structue before calling gdk_window_invalidate_region
2034 since that trims new invalidations to the window's visible
2037 * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities):
2038 Really set the static window gravity on the children, not
2039 repeatedly on the window.
2041 * gtk/testgtk.c: Add a torture test for big windows and
2042 gdk_window_scroll().
2044 Sun Nov 4 17:36:08 2001 Manish Singh <yosh@gimp.org>
2046 * acconfig.h configure.in: sigsetjmp is macroized in some places,
2047 so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
2049 Sun Nov 4 19:16:23 2001 Owen Taylor <otaylor@redhat.com>
2051 * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
2052 in terms of pango_color_parse().
2054 * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
2055 gdk_color_parse() implementations.
2057 Sun Nov 4 18:39:43 2001 Owen Taylor <otaylor@redhat.com>
2059 * gtk/gtksizegroup.c (gtk_size_group_set_mode):
2060 queue_resize_on_group with both the old and new mode, not
2061 just the new mode. (#60171, Nicolas Setton). Also, notify
2062 the "mode" property.
2064 Sun Nov 4 16:02:08 2001 Owen Taylor <otaylor@redhat.com>
2066 * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse()
2067 for use in "shallow invalidation" of a widget. (Windows belonging
2068 to the widget, but not to the widget's children)
2070 * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
2071 flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED. These flags are set
2072 up on ancestors up to the resize container on queue_resize. Size
2073 requests only actually take place if GTK_REQUEST_NEEDED, size
2074 allocations only take place if GTK_ALLOC_NEEDED or the size
2077 * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
2078 container->resize_widgets and the RESIZE_NEEDED flag since the
2079 above flags are sufficient to figure out what needs to be
2080 resized/reallocated. Remove code manipulating
2081 container->resize_widget.
2083 * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
2084 allows widgets to turn off being automatically invalidated is when
2087 * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
2088 a widget is resized or moved is "shallow" as described above -
2089 only the windows that need to be invalidated are invalidated.
2091 * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt:
2092 Make these widget's init functions call
2093 gtk_widget_set_redraw_on_allocate(widget,FALSE).
2095 * gtk/gtkwindow.c (gtk_window_configure_event): Call
2096 _gtk_container_queue_resize(), since we don't want
2097 redrawing. (Probably could be done for other
2098 calls to gtk_widget_queue_resize() in gtkwindow.c,
2099 but this is the most important one.)
2101 * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
2102 gtk_widget_queue_draw() - size_allocate() handles
2103 that as appropriate.
2105 * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
2106 of queue_clear() to avoid invalidating children.
2108 2001-11-04 jacob berkman <jacob@ximian.com>
2110 * gtk/gtkmain.c (find_module): don't free the module name until
2111 after we load the module
2113 Sat Nov 3 13:57:21 2001 Owen Taylor <otaylor@redhat.com>
2115 * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
2116 derivation instead of boxed derivation.
2118 * gtk/gtkmarshal.list: Remove some now unused marshallers.
2120 2001-11-04 Tor Lillqvist <tml@iki.fi>
2122 * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
2123 include yesterday, without really thinking), as that defeats the
2124 working of correct_libdir_prefix() (it becomes a no-op.). Add
2125 comment mentioning that. Thanks to Hans Breuer for noticing.
2127 2001-11-03 Daniel Elstner <daniel.elstner@gmx.net>
2129 * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
2130 signal argument (was GtkWidget*).
2132 * gtk/gtkwindow.c (gtk_window_frame_event),
2133 gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
2134 Fixed argument types as above, removed GTK_WINDOW casts and
2135 added some GTK_WIDGET casts instead.
2137 2001-11-03 Hans Breuer <hans@breuer.org>
2139 * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
2140 finalize to parent class to get removed from the toplevel_list.
2141 Should fix 'random' crashes of #63474.
2143 * gtk/gtktreemodelsort.c : chain finalize() to parent class
2145 2001-11-03 Tor Lillqvist <tml@iki.fi>
2147 * modules/input/Makefile.am: Use -no-undefined on Windows. Look
2148 for .dll or .so as appropriate as module suffix.
2150 * gtk-zip.sh.in: Use correct import library names.
2152 * gtk/gtk.def: Add a couple of missing entry points. (#63585)
2154 * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
2155 Windows to turn build-time paths from a gtk.immodules distributed
2156 as part of a binary package into runtime ones in the
2157 end-user-chosen installation directory.
2158 (gtk_im_module_init): Use it for module path and domain
2161 2001-11-02 Tor Lillqvist <tml@iki.fi>
2163 * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
2164 comma. Include gtkprivate.h for GTK_LIBDIR etc definitions on
2167 2001-10-30 Tor Lillqvist <tml@iki.fi>
2169 * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
2170 files. Configure on Win32 (running on Cygwin) thinks symlinks
2171 exist, but pkg-config is not necesarily a Cygwin program, and
2172 doesn't understand them.
2174 Fri Nov 2 16:45:17 2001 Jonathan Blandford <jrb@redhat.com>
2176 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
2177 a bit. I don't think it's completely correct yet, but it's
2180 Fri Nov 2 16:14:15 2001 Owen Taylor <otaylor@redhat.com>
2182 * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
2183 random + 5 for width and height. If people want padding,
2184 they should add padding. (Note the +5 isn't padding
2185 that will always appear - it just appears in the case
2186 where the widget is allocated it's requisition.)
2187 (#51018, Janet Davis)
2189 Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
2191 * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
2192 the structure for future expansion.
2194 Fri Nov 2 15:30:34 2001 Owen Taylor <otaylor@redhat.com>
2196 Patch from HideToshi Tajima (#51922)
2198 * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
2200 * gtk/modules/input/gtkimcontextxim.[ch]: Implement
2203 * gtk/modules/input/gtkimcontextxim.[ch]: If we have
2204 to destroy the input context because we change the
2205 client window or use_preedit, make sure we empty
2208 Fri Nov 2 14:55:53 2001 Owen Taylor <otaylor@redhat.com>
2210 * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
2211 gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
2212 proposed ordering of buttons with [OK] in the lower
2213 right hand corner. Patch from Gregory Merchan,
2216 Fri Nov 2 11:51:49 2001 Jonathan Blandford <jrb@redhat.com>
2218 * gtk/gtklabel.c (gtk_label_select_region_index): remove
2219 extraneous gtk_label_clear_layout (label)
2221 2001-11-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
2223 * tests/makefile.msc, gtk/makefile.msc.in: Removed
2224 -DGTK_DISABLE_COMPAT_H.
2226 * docs/Changes-2.0.txt:
2227 s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
2229 * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
2231 Fri Nov 2 10:21:03 2001 Owen Taylor <otaylor@redhat.com>
2233 * examples/**/Makefile.am: Convert to use pkg-config
2234 rather than gtk-config. (#53375, Skip Montanaro)
2236 2001-11-02 Matt Wilson <msw@redhat.com>
2238 * gtk/gtkdialog.c (find_child_by_response_id): remove totally
2239 broken unused, non-compiling, static function.
2241 Fri Nov 2 08:17:06 2001 Owen Taylor <otaylor@redhat.com>
2243 * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive):
2244 Iterate through children of the action area, not of
2245 the vbox. (#58278, Sergey Kuzminov)
2247 2001-11-01 Havoc Pennington <hp@pobox.com>
2249 * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
2250 order to remove a workaround in Nautilus that forced
2253 * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
2255 Thu Nov 1 20:09:31 2001 Owen Taylor <otaylor@redhat.com>
2257 * gtk/gtkrange.c: Patch from George Lebl to
2258 fix division by zero for full scroll bars. (#62114)
2260 Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
2262 * gtk/gtkmain.c (gtk_main_do_event): ref/unref
2263 around gtk_widget_event() if we are going to
2264 set a flag afterwards. (#63464)
2266 Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
2268 * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:
2269 Actually add the missing/broken image icon as the
2270 image for the "missing image" stock icon.
2272 Thu Nov 1 19:18:34 2001 Owen Taylor <otaylor@redhat.com>
2274 * demos/gtk-demo/stock_browser.c (do_stock_browser):
2275 Set a reasonable default height for the window.
2277 * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
2278 bug where subsequent '-' weren't converted to '_'.
2279 (#59550, Matthias Clasen)
2281 * demos/gtk-demo/appwindow.c (menu_items): Don't right
2282 justify the Help menu - just include a comment on
2283 how to do it. (#63539, Marius Andreiana)
2285 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't
2286 list GTK_ICON_SIZE_INVALID.
2288 * demos/gtk-demo/stock_browser.c: Show the biggest available
2289 size, not a fixed size. (Often reported, including #63539,
2292 Thu Nov 1 19:11:35 2001 Jonathan Blandford <jrb@redhat.com>
2294 * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
2297 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
2300 Thu Nov 1 16:54:00 2001 Owen Taylor <otaylor@redhat.com>
2302 * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
2305 Thu Nov 1 16:20:56 2001 Owen Taylor <otaylor@redhat.com>
2307 * gtk/gtkimcontext.[ch]: Add:
2308 - A ::retrieve_surrounding signal that asks the widget for
2309 context around the insertion point.
2310 - A ::delete_surrounding signal that asks the widget to
2311 delete context aroudn the insertion point.
2312 - gtk_im_context_set_context() for widgets to set context
2313 around the insertion point in response to ::retrieve_context.
2314 - gtk_im_context_get_context() for context to get context
2315 around the insertion point
2317 * gtkmarshal.list: Add BOOL:INT,INT
2319 * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
2320 set_surrounding() methods, and the ::retrieve_surrounding /
2321 ::delete_surrounding signals.
2323 * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
2324 GtkIMContext::retrieve_surrounding / ::delete_surrounding
2327 Thu Nov 1 15:45:04 2001 Jonathan Blandford <jrb@redhat.com>
2329 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
2330 it's amazing how well things work sometimes, even when they're
2333 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2334 where you could try to collapse a node w/o it having children.
2336 (gtk_tree_view_class_init): remove Shift L<->R as they already
2337 existed for expand/collapse.
2339 Thu Nov 1 12:21:31 2001 Jonathan Blandford <jrb@redhat.com>
2341 * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
2342 found by Matt Wilson.
2344 Thu Nov 1 00:44:50 2001 Jonathan Blandford <jrb@redhat.com>
2346 * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
2347 Control, and Shift|Control L<->R, #63475
2349 Wed Oct 31 18:53:51 2001 Jonathan Blandford <jrb@redhat.com>
2351 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
2352 infinite loop noticed by yosh.
2354 2001-11-01 Michael Meeks <michael@ximian.com>
2356 * gtk/gtksocket.c (gtk_socket_unrealize): unset the
2357 GTK_REALIZED flag so we don't re-enter when we are
2358 destroyed from the plug side.
2360 Wed Oct 31 18:23:47 2001 Owen Taylor <otaylor@redhat.com>
2362 * gtk/gtkoptionmenu.c (gtk_option_menu_detacher):
2363 Add a "menu" property and notify on it. (#62798,
2366 * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
2367 gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}:
2368 Fix set_text to take a gchar, not a guchar, and to have
2371 Wed Oct 31 15:31:13 2001 Manish Singh <yosh@gimp.org>
2373 * gtk/gtkstock.c: fix typo to make it compile
2375 Wed Oct 31 17:27:20 2001 Jonathan Blandford <jrb@redhat.com>
2377 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
2378 the widget is insensitive, draw the text insensitively, #63306
2380 2001-10-31 Matthias Clasen <matthiasc@poet.de>
2382 * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
2384 Wed Oct 31 16:53:48 2001 Jonathan Blandford <jrb@redhat.com>
2386 * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
2387 gtk_selection_data_set_tree_row, #60218
2388 (gtk_tree_get_row_drag_data): rename
2389 gtk_selection_data_get_tree_row, #60218
2391 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
2392 get this right, after the third try, #63122.
2394 2001-10-31 jacob berkman <jacob@ximian.com>
2396 * gdk/gdkselection.h (GDK_TARGET_STRING):
2397 (GDK_SELECTION_TYPE_STRING): these should be 31, not 3. Hooray
2398 for Xatoms (and not using the XA_* macros)!
2400 Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
2402 * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
2403 gtk_window_get_focus() getter to determine the currently
2404 focused widget within the window. (#63145, request
2405 from Damian Ivereigh)
2407 Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
2409 * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
2411 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
2412 GTK_SELECTION_NONE enum.
2413 (_gtk_tree_selection_internal_select_node): ditto
2415 * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
2418 * gtk/gtkcellrenderertoggle.c: more yummy constness.
2420 * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
2421 if mode == GTK_SELECTION_NONE
2423 Wed Oct 31 14:05:17 2001 Jonathan Blandford <jrb@redhat.com>
2425 * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
2426 "cursor_changed" signal, #62850.
2428 2001-10-31 Matt Wilson <msw@redhat.com>
2430 * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
2431 allocating the treedatalist, zero it to make sure the values are
2432 cleared from any garbage that was in this chunk.
2434 2001-10-31 Murray Cumming <murrayc@usa.net>
2436 * gtk/cellrenderertext.h: "edited" default signal handler
2437 gchar* args are now const.
2438 gtk/cellrenderertoggle.h: "toggled" default signal handler
2439 gchar* arg is now const.
2440 Also changed other signal handlers for "edited" and "toggled" to
2441 have the same signature.
2443 Tue Oct 30 19:17:57 2001 Jonathan Blandford <jrb@redhat.com>
2445 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
2446 rewrite. Static models now totally work. I'm not 100% sure about
2447 row_inserted and row_changed, but I'll get those later.
2449 2001-10-30 Sven Neumann <sven@gimp.org>
2451 * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
2452 output for configure --help.
2454 2001-10-30 Havoc Pennington <hp@pobox.com>
2456 * gtk/gtktextview.c (changed_handler): Update the IM spot location
2457 here, if text was invalidated in the visible area, because the
2458 scroll offset doesn't normally change in that case, and the mark
2459 isn't set, just implicitly moved over as text is added/removed
2461 Mon Oct 29 19:18:35 2001 Jonathan Blandford <jrb@redhat.com>
2463 * gtk/gtkseparatormenuitem.c: Code cleanup.
2464 (gtk_separator_menu_item_class_init): Fix bugs in this code.
2466 2001-10-29 jacob berkman <jacob@ximian.com>
2468 * gdk/Makefile.am (LDFLAGS):
2469 * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
2470 LDFLAGS, so put win32 flags in here
2472 Mon Oct 29 15:41:58 2001 Jonathan Blandford <jrb@redhat.com>
2474 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
2475 I can't believe this took this long to fix.
2477 Mon Oct 29 13:54:49 2001 Jonathan Blandford <jrb@redhat.com>
2479 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
2482 Mon Oct 29 12:27:51 2001 Owen Taylor <otaylor@redhat.com>
2484 * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
2485 the focus to the fileop entry for create dir / rename
2488 Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
2490 * configure.in: Don't use AC_CHECK_FILE to check for a
2491 file since it always spits warnings about cross compilation,
2492 use -f instead. It's not like we cross compile properly
2495 * configure.in (gtktargetlib): Move call to AC_PROG_CC
2496 to suppress autoconf warning.
2498 * acconfig.h: Add some missing #undefs from recent
2501 Mon Oct 29 11:31:40 2001 Owen Taylor <otaylor@redhat.com>
2503 * m4macros/gtk-2.0.m4: Don't try to use pkg-config
2504 when we didn't find it. (#62944, Eric Lemings)
2506 * m4macros/gtk-2.0.m4: Fix problem with spaces around =
2507 sign in assignment. (#63209, Arkadiusz Miskiewicz)
2509 2001-10-29 Anders Carlsson <andersca@gnu.org>
2511 * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
2512 the buttons size request before using it. Fixes #61696.
2514 2001-10-29 Tor Lillqvist <tml@iki.fi>
2516 * README.win32: Updates.
2518 * gtk-zip.sh.in: New file, used to build distribution package for
2521 * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
2522 applicable with GDKVAR.
2524 * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
2527 * gdk/win32/gdkwin32.h
2528 * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
2529 X11 headers better, and to enable gdkwin32.h to be installed and
2530 included from applications, but not the *-win32.h headers.
2532 * gdk/win32/*.c: Corresponding small changes, simplifications of
2535 * gdk/win32/gdkregion-win32.c: Remove.
2537 * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
2539 * gdk/win32/gdkfont-win32.c
2540 * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
2542 * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
2543 GDK_NONE values into hash table.
2545 * gtk/gtk.def: Update.
2547 * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
2551 * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
2552 entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
2553 GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
2554 g_win32_get_package_installation_subdirectory() with the actual
2555 DLL name saved above. Redefine above directory name macros to call
2556 these functions. Remove some ifdefs.
2558 * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
2559 variable for export on Win32) also to the _vars file.
2561 Changes for autoconfiscated build on Win32, and addition of Win32
2562 backend to the related files:
2564 * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
2565 when forming DLL name in some files. Set MS_LIB_AVAILABLE is
2566 lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
2567 PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
2568 win32 target, using pangowin32. Don't use the
2569 -export-symbols-regex option on Win32, we use .def files to list
2570 exported symbols. Check <winsock.h> (for gethostname() in
2571 gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
2572 prevent premature m4 expansion.
2574 * acconfig.h: Add HAVE_WINTAB.
2576 * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
2577 macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
2578 MS_LIB_AVAILABLE, build MS import library. Install the import
2579 libraries. If HAVE_WINTAB, link with the Wintab library.
2581 * gdk/win32/Makefile.am: Actually enable building the win32
2582 objects here, not just list all files in EXTRA_DIST. Link in the
2583 compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
2584 copy the Wintab library into the .libs directory.
2586 * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
2587 name of the GDK DLL when fetching the icon. Use the HMODULE saved
2588 in gdk_dll_hinstance by DllMain.
2590 * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
2591 build/win32/lt-compile-resource script.
2593 * gdk/win32/rc/gdk.rc.in
2594 * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
2596 * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
2597 macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
2598 file. Install import libraries.
2600 2001-10-29 Anders Carlsson <andersca@gnu.org>
2602 * gtk/gtkiconfactory.c (get_default_icons): Fix build.
2604 2001-10-28 Hans Breuer <hans@breuer.org>
2606 * gdk/gdk.c gdk/gdkevents.c
2607 gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
2608 gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
2609 gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
2610 gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
2611 gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
2612 gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
2613 gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
2614 static correct-ness, underscore prefixing of library internal
2616 (applied the undisputed and the win32 part. Of the latter
2617 I'm probably the one who will change it back again, if Owen
2618 decides that the Gdk*Impl types should not be private to Gdk)
2620 * gdk/gdk.def : added the remaining exported functions
2622 2001-10-28 Matthias Clasen <matthiasc@poet.de>
2624 * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
2625 gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
2626 gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
2628 2001-10-28 jacob berkman <jacob@ximian.com>
2630 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
2631 gtk_settings_get_default() here as that requires an X connection
2632 (which breaks doc building with no X connection) and is not
2634 (gtk_color_selection_init): delay palette loading until realize
2636 (gtk_color_selection_realize): load the palette, and initialize
2637 the global palette if it hasn't been already
2639 * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
2640 visual/cmap fields of klass->info since they are gone
2641 (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
2642 (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
2643 (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
2645 * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
2647 (gtk_preview_get_visual):
2648 (gtk_preview_get_cmap): mark as deprecated
2650 * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
2653 Sun Oct 28 09:15:39 2001 Owen Taylor <otaylor@redhat.com>
2655 * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
2656 structure to have GObject not GtkObject as
2657 parent_instance. (Jeff Franks.)
2659 2001-10-27 Matthias Clasen <matthiasc@poet.de>
2661 * gdk/x11/gdkinput.c: Typo fix.
2663 2001-10-26 Havoc Pennington <hp@pobox.com>
2665 * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
2666 update_im_spot_location here explicitly
2667 (gtk_text_view_reset_im_context): don't update the spot location
2670 2001-10-27 Anders Carlsson <andersca@gnu.org>
2672 * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
2675 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range):
2676 Clarify that we're returning a spin button in the _new function.
2679 Fri Oct 26 20:55:57 2001 Owen Taylor <otaylor@redhat.com>
2681 * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST.
2682 Unfortunately, people apparently erroneously connect
2683 to ::clicked for GtkToggleButton and expect
2684 they know what happened in the default signal handler
2685 instead of appropriately connecting to notification
2686 signal ::toggled. When the revolution comes, such
2687 people will be first against the wall.
2689 We'll just have to go back to the old less-reliable
2690 set-it-back hacks for handling model-view check
2691 buttons and radio buttons. :-(.
2693 2001-10-27 Hans Breuer <hans@breuer.org>
2695 * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
2696 gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
2697 gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
2698 gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
2699 gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
2700 gtk/gtktreestore.c gtk/gtkvbbox.c :
2701 to simplify parsing for exported functions:
2702 - made implementation signature static, when the local
2703 prototype already was
2704 - put the functions return value on it's own line
2705 - added as space between the function name and the
2708 * gtk/gtk.def : added the remaining exported functions
2710 2001-10-27 Anders Carlsson <andersca@gnu.org>
2712 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
2713 Add note about width having to be greater than 0. This fixes
2716 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start):
2717 Fix docs to say previous instead of next.
2718 (gtk_text_iter_backward_word_start): Likewise.
2719 This fixes bug #62980.
2721 * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
2722 that the valid width is in range 0-65535 pixels. Fixes bug
2725 * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
2726 a dot in the documentation. Fixes bug #62632.
2728 * gdk/x11/gdkmain-x11.c: Replace int and guint with
2729 long and gulong in some places to make the code 64-bit
2731 (_gdk_windowing_init_check): Replace gint with gulong.
2732 This patch was made by George Lebl and fixes bug #62113.
2734 * tests/testgtk.c (create_range_controls): Don't set a
2735 fixed height on the hscale widget. This fixes "bug"
2737 (create_window_states): Set up destroy signals so that
2738 all windows will be destroyed when one is. This fixes
2741 2001-10-26 Anders Carlsson <andersca@gnu.org>
2743 * gtk/gtktreeview.c:
2744 (gtk_tree_view_class_init): Create new "indent_expander"
2747 (gtk_tree_view_get_arrow_xrange): Add a tree argument
2748 to the function since the xrange can change depending
2749 on where in the tree we are.
2751 (coords_are_over_arrow): Update function call to
2752 gtk_tree_view_get_arrow_xrange.
2753 (gtk_tree_view_draw_arrow): Likewise.
2755 (gtk_tree_view_real_expand_collapse_cursor_row):
2756 Call real_{expand|collapse}_row, so that we'll have an
2759 Fri Oct 26 20:13:36 2001 Kristian Rietveld <kristian@planet.nl>
2761 * tests/Makefile.am: fixed a small typo
2763 Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
2765 * demos/gtk-demo/list_store.c (create_model): Anders
2766 Carlsson suggested to use G_N_ELEMENTS here
2768 2001-10-26 Sven Neumann <sven@gimp.org>
2770 * gtk/gtkbutton.[ch]
2771 * gtk/gtkdnd.c: fixed inline comments
2773 * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
2775 2001-10-26 Hans Breuer <hans@breuer.org>
2777 * gdk-pixbuf/gdk_pixbuf.def :
2779 * gtk/gtk.def : updated externals
2781 * gdk/win32/gdkpixmap-win32.c : removed duplicate of
2782 gdk_window_lookup implementation. It already was in
2783 gdk/win32/gdkwindow-win32.c
2785 * gdk/win32/gdkproperty-win32.c : made it compile again
2786 after GdkAtom API change
2788 * gtk/gtk/makefile.msc.in : updated
2790 Wed Oct 24 11:36:33 2001 Owen Taylor <otaylor@redhat.com>
2792 * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
2793 require GLib 1.3.10.
2797 Thu Oct 25 16:27:29 2001 Jonathan Blandford <jrb@redhat.com>
2799 * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
2801 (_gtk_rbnode_rotate_right): Ditto.
2802 (_gtk_rbtree_node_mark_invalid): New function.
2803 (_gtk_rbtree_node_mark_valid): New function.
2805 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
2806 GObject, not a GtkObject.
2807 (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
2809 (gtk_tree_model_sort_row_deleted): ditto.
2810 (gtk_tree_model_sort_{un,}ref_node): Fix.
2812 * gtk/gtktreeview.c: Protean incremental reflow support (commented
2815 * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
2818 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
2819 Important 1 line fix to fix a lot of refcounting woes.
2821 2001-10-25 Matt Wilson <msw@redhat.com>
2823 * gtk/gtktextview.c (gtk_text_view_destroy): call
2824 gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
2825 now invalidates) so that we remove our idle functions.
2826 (gtk_text_view_destroy_layout): remove the first_validate_idle as
2829 * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
2830 the 'indent' property is G_MININT to G_MAXINT. Don't use
2831 -G_MAXINT for the minimum of the 'rise' property, use G_MININT
2834 2001-10-24 Anders Carlsson <andersca@gnu.org>
2836 * gtk/gtktreeview.c:
2837 (gtk_tree_view_real_expand_row): add an animate argument
2838 (gtk_tree_view_real_collapse_row): likewise
2840 (gtk_tree_view_button_press), (gtk_tree_view_button_release),
2841 (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
2842 (gtk_tree_view_collapse_row): update functions that call
2843 real_{expand|collapse}_row to set the animate argument
2846 2001-10-24 Alex Larsson <alexl@redhat.com>
2848 * gdk/linux-fb/gdkfont-fb.c:
2849 Update to new Pango APIs
2851 * gdk/linux-fb/gdkproperty-fb.c:
2852 Update to new GdkAtom APIs
2854 * gdk/linux-fb/gdkwindow-fb.c:
2857 Mon Oct 22 20:07:21 2001 Jonathan Blandford <jrb@redhat.com>
2859 * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
2861 Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
2863 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
2864 s_path as a child path
2866 Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
2868 * gtk/gtktreemodelsort.c: more changes in an attempt to get
2869 it right. It's not yet ready for general consumption.
2871 * tests/treestoretest.c: add a button and entry for the new
2872 iter_change function
2873 (iter_change): new function, to test
2874 the row_changed signal implementation of the GtkTreeModelSort
2876 * tests/testtreesort.c: cleanups, changes to test more features
2877 of the GtkTreeModelSort at once
2879 2001-10-24 Havoc Pennington <hp@redhat.com>
2881 * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
2882 remove hack to strip off the bogus newline, since we killed the
2883 bogus newline; fixes #61779
2885 2001-10-24 Havoc Pennington <hp@redhat.com>
2887 * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
2888 create layout if we didn't have one
2889 (gtk_text_view_set_buffer): invalidate so we get the idle handlers
2890 as appropriate, avoids blanking the screen
2891 (gtk_text_view_invalidate): new function to do invalidation,
2892 containing old guts of invalidated_handler
2894 Wed Oct 24 10:29:47 2001 Owen Taylor <otaylor@redhat.com>
2896 * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
2899 Tue Oct 23 17:31:42 2001 Owen Taylor <otaylor@redhat.com>
2901 * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always
2902 set window->parent (except or the root window itself); if
2903 the window's parent is not a GdkWindow, or is a window of
2904 type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
2906 * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
2907 windows of type GDK_WINDOW_FOREIGN.
2909 2001-10-24 Havoc Pennington <hp@pobox.com>
2911 * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
2912 the front of a segment, use the "slow" technique for moving
2913 backward, so we don't mess up the any_segment field in the iter.
2916 * tests/testtextbuffer.c: add code to detect #57707, to avoid
2919 2001-10-23 Havoc Pennington <hp@redhat.com>
2921 * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
2922 if selection contains some editable text, #60975
2923 (gtk_text_view_scroll_to_iter): remove warning about scrolling
2924 prior to map; it should actually be OK to do so in many cases,
2925 it would be nice to warn about scrolling when many lines have
2926 height 0, but I don't know what to do about that. Perhaps
2927 move part of flush_scroll into this function? comment added
2930 2001-10-23 Havoc Pennington <hp@redhat.com>
2932 * gtk/gtktextview.c (changed_handler): Correctly keep the same
2933 text on the top of the screen, considering that the changed region
2934 may have overlapped the first paragraph. Should fix msw's "text
2935 widget scrolled to wrong place on map" bug, and probably some
2936 other scrolling cases as well.
2937 (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0,
2938 instead of some random value
2940 * gtk/gtktextview.c (gtk_text_view_class_init): actually override
2941 grab_focus, so #59708 is really fixed
2943 2001-10-24 Anders Carlsson <andersca@gnu.org>
2945 * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
2946 (popup_targets_received): Call append_action_signal with stock items
2948 * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
2949 (gtk_label_do_popup): Call append_action_signal with stock items
2951 * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
2952 (popup_targets_received): Call append_action_signal with stock items
2954 2001-10-23 Havoc Pennington <hp@redhat.com>
2956 * gtk/gtktextview.c (changed_handler): queue a resize here; will
2957 temporarily slow down the widget a lot, until we figure out how to
2958 optimize to avoid full redraw everytime we queue a resize.
2960 2001-10-23 Havoc Pennington <hp@redhat.com>
2962 * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
2963 0 and char_len == 0, bug #61729
2965 2001-10-23 Havoc Pennington <hp@redhat.com>
2967 * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
2968 return value, #61714 (Vitaly Tishkov)
2969 (gtk_text_iter_backward_sentence_starts): ditto
2970 (gtk_text_iter_backward_word_starts): ditto
2971 (gtk_text_iter_forward_word_ends): ditto
2972 (gtk_text_iter_forward_sentence_ends): ditto
2973 (gtk_text_iter_backward_cursor_positions): ditto
2975 2001-10-23 Havoc Pennington <hp@redhat.com>
2977 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
2978 fix from Dov Grobgeld, #61858
2980 2001-10-23 Havoc Pennington <hp@redhat.com>
2982 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
2983 Update IM spot location at appropriate times, #50626
2986 2001-10-23 Havoc Pennington <hp@redhat.com>
2988 * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
2989 on grab focus, unless it's caused by button click, #59708
2991 Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com>
2993 * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
2995 * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
2996 G_CONST_RETURN. (Murray Cumming)
2998 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
2999 Make G_CONST_RETURN.
3001 * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
3002 results of g_get_home_dir().
3004 * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
3005 copy. Storing the return from gtk_entry_get_text() is evil.
3007 * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
3008 gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
3009 gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
3010 gtk/gtksignal.c: Add const.
3012 * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
3014 * gtk/gtktreeview.c: Namespace object data keys to be safe, even
3015 if we are setting them on private widgets.
3017 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3018 Duplicate entry->text before setting it as object data.
3020 2001-10-22 Havoc Pennington <hp@redhat.com>
3022 * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
3023 up a char from the end iterator, fixes #61859 ("can't put cursor
3024 at the end of the buffer")
3026 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
3027 to work with delimiters other than newline.
3029 * tests/testtextbuffer.c: add some tests for get_chars_in_line,
3032 * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
3033 last line, since the newline is no longer counted.
3034 (gtk_text_iter_get_bytes_in_line): ditto
3036 2001-10-22 Havoc Pennington <hp@redhat.com>
3038 * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that
3039 #58290 would trigger if it reappeared, I think
3041 2001-10-22 Havoc Pennington <hp@redhat.com>
3043 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3044 add temporary code to dump btree contents on assertion failure
3047 * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
3048 assertions that we're getting the right end iter segment
3050 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3051 verify that we aren't on the end iterator after moving
3052 forward one segment - fixes return value in an obscure case.
3053 Also, some trivial code cleanup/rearranging.
3055 2001-10-22 Havoc Pennington <hp@redhat.com>
3057 * gtk/gtktextlayout.h: add a #error unless you define
3058 GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
3060 * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
3062 2001-10-22 Havoc Pennington <hp@redhat.com>
3064 * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
3067 2001-10-22 Havoc Pennington <hp@redhat.com>
3069 * gtk/gtktextview.c (gtk_text_view_get_window_type): fix
3072 2001-10-22 Havoc Pennington <hp@redhat.com>
3074 * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix
3077 Mon Oct 22 11:47:47 2001 Owen Taylor <otaylor@redhat.com>
3079 * gtk/gtklabel.c: Add cursor-position, selection-bound
3080 properties. (#62148, reported by Padraig O'Briain)
3082 * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
3083 to cursor_position. (1.3.x addition, text_position is an awful
3084 name.) Make cursor_position read-only to avoid sticky questions
3085 of interaction with selection_bound. (#62636, reported by
3088 Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com>
3090 Fixing popup menus to have "Paste" sensitized correctly. Original
3091 patches from Damian Ivereigh, much mangled.
3093 * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
3094 gtk_selection_data_targets_include_text(). (#60854)
3096 * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
3097 the clipboard has text" function gtk_clipboard_wait_is_text_available.
3100 * gtk/gtkentry.c: Only enable the paste item if the clipboard
3101 contains text. (#60973)
3103 * gtk/gtktextview.c: Only enable the paste item if the clipboard
3104 contains text. (#60975)
3106 2001-10-22 Havoc Pennington <hp@redhat.com>
3108 * gtk/gtktextview.c (gtk_text_view_class_init): rip out
3109 "height_lines" and "width_columns" properties, it doesn't make
3110 sense to set the size request on a text view really. #62103
3112 Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
3114 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
3115 g_node_depth is broken, and that it's not worth being consistent
3118 2001-10-22 Havoc Pennington <hp@redhat.com>
3120 * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
3122 (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
3123 change the two boolean args to a flags field, so we can extend
3124 to add case insensitive, regexp searches later. #61852
3126 Mon Oct 22 15:07:17 2001 Jonathan Blandford <jrb@redhat.com>
3128 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
3129 reflect reality, #62810
3131 Mon Oct 22 14:08:26 2001 Jonathan Blandford <jrb@redhat.com>
3133 * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
3135 * gtk/gtktreeview.c (size_allocate): Move to a different drawing
3136 system. Instead of having a window the size of the tree, we have
3137 a window the size of widget->allocation, and simply draw with the
3139 (coords_are_over_arrow): ditto. Move to window coordinates.
3140 (do_prelight): ditto
3141 (do_unprelight): ditto
3143 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3144 Minor fix from Kristian Rietveld to fix unsorted case.
3146 2001-10-22 jacob berkman <jacob@ximian.com>
3148 * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
3149 a PIXMAP cell (fixes crash when using PIXTEXT cells)
3151 Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
3153 * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
3154 (#58768, Vitaly Tishkov)
3156 * gtk/gtkobject.h: Deprecate with abandon.
3157 (#61942, Vitaly Tishkov, Matthias Clasen)
3159 * gtk/gtksignal.h: Deprecate everything.
3161 * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
3162 all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
3163 (#61942, Matthias Clasen)
3165 * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
3168 * gtk/gtkitemfactory.h: Deprecate compat functions
3169 for GtkMenuFactory code. (#62071)
3171 * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
3172 gdk_draw_text,gdk_draw_text_wc. (#62071)
3174 Mon Oct 22 10:12:08 2001 Owen Taylor <otaylor@redhat.com>
3176 * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
3177 g_thread_init(), we don't want to link to -lgthread if we don't
3180 Mon Oct 22 08:51:02 2001 Owen Taylor <otaylor@redhat.com>
3182 * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt:
3183 Add a function, gdk_threads_init() that must be explicitely
3184 called to enable the GDK thread mutex.
3186 2001-10-22 Jakub Steiner <jimmac@ximian.com>
3188 * gtk/stock-icons/stock_stop.png: no body parts
3190 Sun Oct 21 23:27:00 2001 Owen Taylor <otaylor@redhat.com>
3192 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
3193 problem with g_return_if_fail return value.
3195 * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
3196 virtual atom code from the gdk-multihead branch, removing the per-display
3197 part. Virtualizing atoms needs to be done now to prevent compat
3198 breakage in direct Xlib accessing code in the future. (#62208)
3200 * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
3201 gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
3203 * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
3204 an opaque pointer type so the compiler catches attempts
3205 to mingle it with X atoms.
3207 * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
3208 gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
3209 gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
3210 gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
3211 tests/testdnd.c,tests/testselection.c:
3212 Fix up for above atom changes.
3214 * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
3215 now have the ability to add custom predefines.
3217 * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
3218 Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
3219 to gtk_clipboard_get().
3221 * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
3222 for GdkAtom => pointer change.
3224 * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
3225 atoms, fix for GdkAtom => pointer change.
3227 Mon Oct 22 00:26:46 2001 Kristian Rietveld <kristian@planet.nl>
3229 * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
3230 new function spin_button_get_arrow_size() instead.
3232 * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
3233 arrow was hardcoded, it's now variable.
3237 Sat Oct 20 18:16:04 2001 Manish Singh <yosh@gimp.org>
3239 * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
3240 PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
3243 Sat Oct 20 19:38:16 2001 Owen Taylor <otaylor@redhat.com>
3245 * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
3246 in favor of g_signal_*, gtk_object_* in favor of
3249 Fri Oct 19 18:35:22 2001 Manish Singh <yosh@gimp.org>
3251 * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
3252 from GObject now, we have to use the g_object_* functions, not
3255 Fri Oct 19 22:46:54 2001 Kristian Rietveld <kristian@planet.nl>
3257 * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
3258 nailed down now (this code is not yet ready for general consumption)
3260 Fri Oct 19 13:44:51 2001 Manish Singh <yosh@gimp.org>
3262 * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
3265 Fri Oct 19 15:34:06 2001 Owen Taylor <otaylor@redhat.com>
3267 * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
3269 Fri Oct 19 15:08:30 2001 Owen Taylor <otaylor@redhat.com>
3271 * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
3272 modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
3273 imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
3274 GObject, not GtkObject. (#62621)
3276 Fri Oct 19 12:49:12 2001 Owen Taylor <otaylor@redhat.com>
3278 * tests/testsocket.c: Remove now useless include of unistd.h,
3279 fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
3281 Fri Oct 19 12:24:32 2001 Owen Taylor <otaylor@redhat.com>
3283 * gdk/linux-fb/gdkfont-fb.c: Fix up for change to
3284 Pango font API. #61933. (Untested, even for compilation.)
3286 Fri Oct 19 11:24:58 2001 Owen Taylor <otaylor@redhat.com>
3288 * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
3289 export gtk_disable_setlocale(). (Caught by Sven Neumann)
3291 2001-10-18 Havoc Pennington <hp@redhat.com>
3293 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
3295 2001-10-18 Havoc Pennington <hp@redhat.com>
3297 * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
3298 to GTK_RUN_LAST, #50239
3300 2001-10-18 HideToshi Tajima <hidetoshi.tajima@sun.com>
3302 * gtk/gtkimmodule.c (match_locale):
3303 Support "*" for all locales with least priority
3304 when to select default im module, #58201
3306 2001-10-18 Matthias Clasen <matthiasc@poet.de>
3308 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode):
3311 * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
3313 * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
3315 * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
3316 gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
3317 gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
3318 gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
3319 gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
3320 Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
3321 and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
3323 * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
3325 * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
3326 Don't restrict the width of the spinbutton entry field
3327 to 10 digits. (#58681)
3329 Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
3331 * tests/testtreeflow.c: new test program for the tree.
3333 Thu Oct 18 14:22:10 2001 Jonathan Blandford <jrb@redhat.com>
3335 * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
3336 reported by (Oleg Maiboroda), #62600
3338 2001-10-18 Michael Meeks <michael@ximian.com>
3340 * gtk/gtkentry.c (gtk_entry_set_property),
3341 (gtk_entry_get_property): impl 'text'
3342 (gtk_entry_class_init): add the 'text' prop.
3343 (gtk_entry_insert_text): notify 'text' changed.
3344 (gtk_entry_delete_text): ditto.
3346 2001-10-17 Matthias Clasen <matthiasc@poet.de>
3348 * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
3349 Documentation updates.
3351 Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
3353 * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
3354 in truncating length of text to MAX_SIZE. (Found by
3355 Padraig O'Briain, #62055)
3357 Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
3359 * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
3360 MNEMONIC_ACTIVATE; signal was changed a long time
3363 * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale):
3364 Fix wrong return statement. (Reported by HideToshi
3367 * gtk/gtklabel.h (struct _GtkLabelClass): Remove
3368 left over select_all vfunc.
3370 Tue Oct 16 15:50:03 2001 Owen Taylor <otaylor@redhat.com>
3372 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
3373 a utility function to translate coordinates relative to
3374 one widget's allocation to coordinates relative to another
3375 widget's allocation.
3377 * gtk/gtkradiobutton.c: Add a special ->focus() implementation
3379 - only accepts external focus if there is no active
3380 member of the group or the button is active.
3381 - makes arrow keys move the active button as well
3383 - make tab tab out directly.
3384 This makes a radio button group act as a single focus location.
3387 * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
3388 it was only a small optimization that didn't matter and made
3389 things more complicated.
3391 * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
3392 sorter for FOCUS_TAB as we did for the other focus directions,
3393 sort by center of widgets, not upper-left corner. (Shouldn't
3396 * gtk/gtkcontainer.c: Restructure code to remove duplicate code
3397 from the different types of focusing: encapsulate sorting the
3398 widgets for the focus direction into one routine
3399 (gtk_container_focus_sort()) and then share the work of moving the
3400 focus between the different focus directions.
3402 * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
3403 work correctly with focus chains containing non-immediate
3404 children. Sorting was being done using allocation coordinates for
3405 each widget in the focus chain, and if there were intermediate
3406 window-widgets, these allocations would not be in the same
3409 Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
3411 * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
3412 mnemonic_activate function to option menu.
3414 2001-10-15 Murray Cumming <murrayc@usa.net>
3416 * gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:
3417 Corrected the type names used in some calls to g_signal_new().
3419 Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org>
3421 * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
3422 specs, use g_pattern_spec_equal() instead of direct field accesses.
3423 upon compressing two equal paths of the same type, the resulting
3424 priority has to be the maximum.
3425 * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
3426 GtkPathPriorityType enum and make it a macro.
3428 2001-10-12 Matthias Clasen <matthiasc@poet.de>
3430 * gtk/gtkwidget.c: Fix some doc comments.
3432 Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
3434 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
3437 2001-10-11 Matthias Clasen <matthiasc@poet.de>
3439 * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
3440 Remove stale gdk backend includes.
3442 2001-10-10 Michael Meeks <michael@ximian.com>
3444 * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
3445 and value_in_list properties.
3446 (gtk_combo_set_value_in_list): notify change.
3447 (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
3449 2001-10-11 James Henstridge <james@daa.com.au>
3451 * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
3452 that gtk+ can be built with automake 1.5 while not breaking
3453 things for automake 1.4.
3455 Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com>
3457 * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
3460 * gtk/gtkmain.c (gtk_disable_setlocale): Add function
3461 to disable calling setlocale (LC_ALL, "").
3463 * gtk/gtkmain.c (gtk_set_locale): Indicate in the
3464 docs that this function is not typically useful.
3466 * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}:
3467 Automatically initialize GDK for the current locale
3468 on gdk_init(). Don't reset locale to C when
3469 XSupportsLocale() fails.
3471 * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
3472 useless checks for UTF-8 locale breakage that mattered
3475 * examples/calendar/calendar.c
3476 tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to
3479 * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
3480 gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
3482 Wed Oct 10 21:13:46 2001 Kristian Rietveld <kristian@planet.nl>
3484 * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
3488 Wed Oct 10 01:19:04 2001 Jonathan Blandford <jrb@redhat.com>
3490 * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
3491 new function, #61923
3492 (gtk_tree_selection_path_is_selected): Ditto
3494 Tue Oct 9 17:40:24 2001 Jonathan Blandford <jrb@redhat.com>
3496 * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
3497 not a GtkObject. Thanks andersca.
3499 * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
3501 Tue Oct 9 14:50:51 2001 Jonathan Blandford <jrb@redhat.com>
3503 * gtk/gtktreeviewcolumn.c
3504 (gtk_tree_view_model_sort_column_changed): fix broken code.
3506 2001-10-08 Matthias Clasen <matthiasc@poet.de>
3508 * gtk/gtkselection.c: s/succesfully/successfully/g
3510 2001-10-08 Havoc Pennington <hp@pobox.com>
3512 * demos/gtk-demo/stock_browser.c: remove unused enum
3514 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
3515 pass the current selection state of the node in to the user
3518 2001-10-06 Matthias Clasen <matthiasc@poet.de>
3520 * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to
3521 non-existent function gdk_x11_cursor_get_xid
3522 by gdk_x11_cursor_get_xcursor.
3524 Fri Oct 5 20:50:00 2001 Jonathan Blandford <jrb@redhat.com>
3526 * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
3529 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
3530 unref nodes, #okay61676
3532 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
3533 to the property; no need to clear the other columns. Also, we go
3534 to 'unsorted' if the model supports it.
3536 2001-10-05 Sven Neumann <sven@gimp.org>
3538 * demos/testpixbuf-save.c
3539 * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
3542 Fri Oct 5 19:06:07 2001 Kristian Rietveld <kristian@planet.nl>
3544 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
3545 destroy the search dialog
3547 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3548 added check to prevent creation of a search dialog if there's
3551 * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
3552 it instead of "search-dialog" (when getting/setting the search dialog
3555 2001-10-05 Jakub Steiner <jimmac@ximian.com>
3557 * gtk/stock-icons/stock_broken_image.png: broken images icon
3559 2001-10-04 Havoc Pennington <hp@pobox.com>
3563 * gtk/gtksettings.c (gtk_settings_class_init): move the F10
3564 accelerator setting here...
3566 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
3567 because we try to use it when a menu bar hasn't necessarily been
3570 2001-10-03 Havoc Pennington <hp@redhat.com>
3572 * tests/testtextbuffer.c (logical_motion_tests): fix test case,
3573 it previously verified incorrect behavior
3577 * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
3579 (_gtk_text_btree_get_iter_at_line_char): don't return lines off
3581 (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
3583 (gtk_text_iter_forward_lines): if on the last line, move to end of
3586 * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
3587 don't return a line off the end
3589 Wed Oct 3 23:47:25 Kristian Rietveld <kristian@planet.nl>
3591 * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
3592 functions to do_insert_text and do_delete_text, add signals
3593 insert_text, delete_text and changed
3595 * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
3596 and changed. Updates to match new situation.
3598 * gtk/gtkspinbutton.c: updates to match new situation
3600 * gtk/gtkoldeditable.h: remove signals changed, insert_text
3603 * gtk/gtkoldeditable.c: updates to match new situation
3605 * gtk/gtktext.c: updates to match new situation
3609 2001-10-03 Havoc Pennington <hp@redhat.com>
3611 * gtk/gtktextiter.c (test_log_attrs): allow testing the end
3614 * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
3617 * tests/testtextbuffer.c (logical_motion_tests): updates
3619 2001-10-03 jacob berkman <jacob@ximian.com>
3621 * gtk/gtkwidget.c (gtk_widget_style_get_property):
3622 * gtk/gtkstyle.c (_gtk_style_peek_property_value):
3623 * gtk/gtksettings.c (apply_queued_setting):
3624 * gtk/gtkmain.c (gtk_init_check):
3625 * gtk/gtkcontainer.c (gtk_container_child_get_property):
3628 Wed Oct 3 20:29:29 2001 Kristian Rietveld <kristian@planet.nl>
3630 * gtk/gtktreemodelsort.[ch]: preparation for surgery
3631 * tests/testtreesort.c: ditto
3633 2001-10-02 Havoc Pennington <hp@redhat.com>
3635 Throughout: assorted docs
3637 * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
3638 gdk_window_set_geometry_hints() should be used instead.
3640 * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
3643 * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
3644 seem to exist in any .c files
3646 * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs,
3647 g_return_if_fail (pixel < colormap->size).
3649 Wed Oct 3 10:42:54 2001 Owen Taylor <otaylor@redhat.com>
3651 * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
3652 NULL for @target_list to mean, use
3653 gtk_drag_dest_get_target_list (widget).
3655 * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
3656 drop could hang when calling gtk_drag_finish with
3657 success == FALSE and del == TRUE.
3659 * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
3660 drops without a matching target found would propagate
3661 to the parent widget rather than being rejected.
3663 * gtk/gtktextview.c (gtk_text_view_drag_data_received):
3664 Use text_view->dnd_mark instead of mark name to be
3665 consistent with the rest of the code.
3667 * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
3668 pendantically correct for a drop-only-in-some-places
3669 widget. (Check whether you can insert in drag_drop,
3670 not just in drag_motion ... matters in theory, and
3671 for Motif drag and drop in practice.)
3673 * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from
3674 Damian Ivereigh to not allow drops on non-editable
3677 * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
3678 text to be moved from a non-editable entry.
3680 2001-10-03 James Henstridge <james@daa.com.au>
3682 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
3683 s/width/fixed_width/ in order to get things to compile.
3685 Wed Oct 3 00:37:09 2001 Jonathan Blandford <jrb@redhat.com>
3687 * gtk/gtkcelleditable.c: docs
3689 * gtk/gtktreemodel.h: more docs.
3691 2001-10-02 Havoc Pennington <hp@redhat.com>
3693 * gdk/x11/gdkwindow-x11.c: docs
3695 * tests/testtextbuffer.c (logical_motion_tests): add sentence
3698 Tue Oct 2 20:18:32 2001 Kristian Rietveld <kristian@planet.nl>
3700 * demos/gtk-demo/Makefile.am: add editable_cells.c,
3701 list_store.c and tree_store.c
3703 * demos/gtk-demo/appwindow.c: remove tearoff item from
3704 File menu, put menubar and toolbar in handle boxes.
3706 * demos/gtk-demo/genincude.pl: various changes to support trees
3708 * demos/gtk-demo/main.c: various changes to support trees
3710 * demos/gtk-demo/stock_browser.c: changed name of demo
3711 to Stock Item and Icon Browser, so geninclude.pl doesn't see
3714 * demos/gtk-demo/editable_cells.c: new file/demo
3715 * demos/gtk-demo/list_store.c: new file/demo
3716 * demos/gtk-demo/tree_store.c: new file/demo
3718 Mon Oct 1 16:05:44 2001 Owen Taylor <otaylor@redhat.com>
3720 * gtk/gtkrc.c gtk/gtksettings.c:
3721 g_string_printfa => g_string_append_printf.
3723 Mon Oct 1 16:08:23 2001 Jonathan Blandford <jrb@redhat.com>
3725 * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
3726 and destroy handler.
3728 * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
3730 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
3731 'start_editing' flag to select_cursor_row. Bug spotted by Manish
3732 Singh <yosh@gimp.org>.
3734 2001-10-01 Matthias Clasen <matthiasc@poet.de>
3736 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
3737 g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
3739 * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
3741 Mon Oct 1 14:07:02 2001 Jonathan Blandford <jrb@redhat.com>
3743 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
3744 scroll_to_cell delayed code to happen in size_allocate.
3746 * gtk/gtkstyle.c (gtk_default_draw_expander): change
3747 prelight/normal arrow drawing.
3749 * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
3751 * gtk/gtktreestore.c: refactor.
3753 Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
3755 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
3756 patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
3757 centers the child in relation to the to indicator height.
3759 Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
3761 * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
3764 Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
3766 * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
3767 property code using g_param_spec_int and changed from
3768 g_value_get_enum to g_value_get_int instead. Probably a better way
3769 to fix the problem :-)
3771 Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
3773 * gtk/gtkcellrenderertext.c changed "weight" property type from
3774 g_param_spec_int to g_param_spec_enum.
3776 Sat Sep 29 12:25:26 2001 Manish Singh <yosh@gimp.org>
3778 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
3779 fix: s/Wether/Whether/ in reorderable property description
3781 Thu Sep 27 16:46:36 2001 Jonathan Blandford <jrb@redhat.com>
3783 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
3784 start editing when you select with a keyboard.
3786 (gtk_tree_view_button_press_event): much more graceful now.
3788 * gtk/gtkstyle.c: Draw togglebutton better.
3790 2001-09-26 Havoc Pennington <hp@redhat.com>
3792 * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
3793 of passing non-stock label in to gtk_dialog_new_with_buttons
3795 * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
3798 * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
3801 * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
3802 exist, fall back to mnemonic label, not plain label, bug #61184
3804 Wed Sep 26 19:48:01 2001 Jonathan Blandford <jrb@redhat.com>
3806 * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
3807 stupid and emitting the signal every time.
3809 * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
3811 Wed Sep 26 16:35:59 2001 Owen Taylor <otaylor@redhat.com>
3813 Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
3815 * contrib/gdk-pixbuf-xlib/Makefile.am: install
3816 gdk-pixbuf-xlib-2.0.pc.
3818 Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
3820 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
3821 problem where menmonic wasn't removed properly when
3822 setting a label when there already is a label.
3823 Also, handle setting the tab label back to the same
3824 value. (#61160, #61161)
3826 * gtk/gtkentry.c (paste_received): Patch from
3827 Damian Ivereigh to replace selection if there is
3830 2001-09-25 Darin Adler <darin@bentspoon.com>
3832 * tests/.cvsignore: Ignore new test program.
3834 2001-09-25 Havoc Pennington <hp@redhat.com>
3836 * gtk/gtktextview.c: fix for #50317
3838 2001-09-25 Havoc Pennington <hp@redhat.com>
3840 * gtk/gtktextview.c (gtk_text_view_key_press_event): use
3841 gtk_text_iter_can_insert
3843 * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
3845 * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
3846 (gtk_text_iter_can_insert): new function to fix #60282, should
3847 also fix msw's "can paste into empty buffer" bug.
3849 * gtk/gtktexttag.c (gtk_text_tag_event): change type check for
3850 "event object," #59091
3852 * gtk/gtktextbtree.c: indentation fixes
3854 * gtk/gtktextiter.c (find_by_log_attrs): fixes
3856 Tue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com>
3858 * configure.in: Version 1.3.9, interface age 0, binary age 0.
3860 * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
3864 Mon Sep 24 11:59:09 2001 Owen Taylor <otaylor@redhat.com>
3866 * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
3867 function for drawing cursors between gtkentry/gtklabel/gtktextview.
3868 Should this be public? It has a bit of an odd interface, but
3869 custom editing widgets probably should be using it.
3870 Function will draw with wider width for taller cursors, and
3871 draws a little indicator arrow to indicate directoin for split
3874 * gtk/gtktextview.c: Add a "cursor_color" property.
3876 * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
3877 gtk_text_layout_draw().
3879 * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
3880 _gtk_draw_insertion_cursor().
3882 Tue Sep 25 11:22:23 2001 Owen Taylor <otaylor@redhat.com>
3884 * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
3885 the behavior where you could turn family_set (etc) back on
3886 and get back the values you had before.
3888 * demos/gtk-demo/stock_browser.c (id_to_macro): Use
3889 g_string_ascii_up() rather than looping through the
3892 Tue Sep 25 15:32:44 2001 Jonathan Blandford <jrb@redhat.com>
3894 * gtk/gtktreeviewcolumn.c
3895 (gtk_tree_view_column_set_cell_renderer): Removed
3896 (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0); Fixes 61012.
3898 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
3899 Patch from Detlef Reichl
3901 2001-09-25 Havoc Pennington <hp@redhat.com>
3903 * tests/testtextbuffer.c (line_separator_tests): Add tests for
3904 line separators, addresses bug #57428
3906 Tue Sep 25 12:34:42 2001 Jonathan Blandford <jrb@redhat.com>
3908 * gtk/gtkentry.c: Make a GtkCellEditable
3909 (get_widget_window_size): Change to let it honor size_allocate
3910 when a CellEditable.
3912 * gtk/gtktreeview.c: M-x clean-line-ends. Lots of focus and
3914 (gtk_tree_view_set_cursor): Now you can set the cursor
3915 horizontally, as well as start editing.
3917 * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
3918 code to look more like the other check buttons.
3920 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
3921 Change the way we calculate cell size.
3923 * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
3925 * demos/gtk-demo/sizegroup.c: Add mnemonics.
3927 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
3930 * gtk/gtkcellrenderertext.c: Change to be editable.
3932 * gtk/gtkcellrenderertoggle.c: Change to be activatable.
3934 * test/testtreesort.c: Fix misspelling
3936 * test/testreecolumns.c: Add mnemonics.
3938 * test/testreeedit.c: New test program.
3940 2001-09-25 Havoc Pennington <hp@pobox.com>
3942 * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
3943 etc. docs about how these are not going to do what you want for
3944 the X/win32 ports. Futile attempt to avoid a FAQ...
3946 2001-09-24 James Henstridge <james@daa.com.au>
3948 * gtk/gtkmarshal.list (VOID): add marshal function types.
3950 * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
3951 GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
3953 (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
3954 with no-op copy/free functions.
3956 * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
3957 GtkCTreeNode get_type function.
3959 2001-09-24 Havoc Pennington <hp@redhat.com>
3961 * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
3963 Get rid of the newline-that-could-not-be-deleted; buffers may
3964 now be zero-length. Much easier to fix than expected, once
3965 I figured out the right way to do it. However, there are
3966 various subtle bugs introduced by this that will have to get
3967 sorted out. Please use bugzilla.
3969 Mon Sep 24 15:09:08 2001 Owen Taylor <otaylor@redhat.com>
3971 * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
3972 response back from the window manager if our size hasn't changed
3973 since we won't get a response back from the window manager;
3974 there was code in there to do this, but it was in the wrong
3975 place so if the hints change and the size didn't we'd expect
3978 Also, optimize the position-only-changed case by running
3979 the resize queue immediately, and clean up some comments
3982 Mon Sep 24 12:48:25 2001 Owen Taylor <otaylor@redhat.com>
3984 * gtk/gtknotebook.h: Add a compat macro that got lost.
3986 * gtk/gtktreestore.c: Doc fixes.
3988 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
3989 leak for windows that receive events after being destroyed.
3990 (#60863, Joshua N. Pritikin)
3992 * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
3993 rather than gtk_container_queue_resize().
3995 * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
3996 gtk_container_queue_resize, gtk_container_queue_resize_widgets,
3997 gtk_container_child_composite_name. (#60217.)
3999 2001-09-22 Hans Breuer <hans@breuer.org>
4001 * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
4003 Sat Sep 22 16:50:34 2001 Kristian Rietveld <kristian@planet.nl>
4005 * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
4006 weight value should be an int
4008 Sat Sep 22 15:17:41 2001 Kristian Rietveld <kristian@planet.nl>
4010 * gtk/gtkmenu.c (gtk_menu_select_item): move most code
4011 to gtk_menu_scroll_item_visible(). Only call
4012 gtk_menu_scroll_item_visible() if the menu widget has been
4013 realized. Fixes bug #55310.
4015 2001-09-21 Havoc Pennington <hp@redhat.com>
4017 * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
4018 key press to IM context if cursor isn't in an editable location;
4019 bug #58425, patch from Hidetoshi Tajima
4021 2001-09-21 Havoc Pennington <hp@redhat.com>
4025 * gtk/gtktextbtree.c (gtk_text_btree_node_destroy):
4026 (_gtk_text_btree_unref): fix up mark memory management
4028 * gtk/gtktextmark.c (mark_segment_delete_func): ditto
4030 2001-09-20 Havoc Pennington <hp@redhat.com>
4032 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
4033 try to handle alignment here, because it's done by PangoLayout
4034 after we set the layout width. Fix from Dov.
4036 2001-09-21 Hans Breuer <hans@breuer.org>
4039 * gtk/gtk.def : updated externals
4041 * gtk/gtkmain.h : define get_gtk_win32_directoty ()
4042 * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
4043 Also handle that Win32 pathes cann't be hard-coded
4045 * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
4046 module, themes etc directory calculations
4048 * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
4049 >16 bit right. The size limit within Win9x appears _not_ to be 32767
4050 but slightly smaller ...
4052 * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid
4053 >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
4055 * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
4057 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4058 handling. I'm not sure if it is better now, but at least not worse
4060 * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
4062 * gdk/win32/gdkwin32.h : reflect recent API restrictions
4064 2001-09-21 Matt Wilson <msw@redhat.com>
4066 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
4067 radio_menu_item->group to NULL after removing it from the list, as
4068 it is no longer in the group. (#60869)
4070 * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
4072 2001-09-20 Havoc Pennington <hp@pobox.com>
4074 * configure.in (PANGO_REQUIRED_VERSION)
4075 (ATK_REQUIRED_VERSION): add variables and checks for specific
4076 versions of dependencies. Previously we didn't verify the
4077 Pango or ATk versions.
4079 2001-09-09 Havoc Pennington <hp@pobox.com>
4081 * gtk/gtktextiter.c: fool with indentation
4082 (gtk_text_iter_in_range): add g_return_if_fail
4084 Thu Sep 20 17:45:54 2001 Joshua N Pritikin <vishnu@pobox.com>
4086 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
4087 ref count on new tag to be 1. Update doc. (#60836)
4089 Thu Sep 20 16:20:47 2001 Owen Taylor <otaylor@redhat.com>
4091 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
4092 call to gdk_image_new_bitmap(). (#59094, reported by
4095 Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
4097 * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
4098 day, as well as the current month and year.
4099 (#59047, reported by Vitaly Tishkov)
4101 Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
4103 * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
4104 set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
4106 Thu Sep 20 18:00:56 2001 Kristian Rietveld <kristian@planet.nl>
4108 * tests/testgtk.c (struct OptionMenuItem): get rid of it,
4110 (build_option_menu): add func argument, connect ::changed
4111 signal to option menu instead of connecting the ::activate
4112 signal to the menu items,
4114 (toplevel): get rid of RADIOMENUTOGGLED macro,
4116 (list_toggle_sel_mode), (clist_toggle_sel_mode),
4117 (ctree_toggle_line_style), (ctree_toggle_expander_style),
4118 (ctree_toggle_justify), (ctree_toggle_sel_mode),
4119 (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
4120 use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
4122 (notebook_type_changed): merged standard_notebook(),
4123 notabs_notebook(), scrollable_notebook() and borderless_notebook()
4124 into notebook_type_changed()
4126 (create_list), (create_ctree), (create_notebook),
4127 (create_progress_bar): changed OptionMenuItem arrays into
4128 gchar * arrays. Removed "Extended" item where used.
4132 2001-09-20 Sven Neumann <sven@gimp.org>
4137 * gtk/gtkselection.c
4139 * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
4141 Thu Sep 20 11:19:42 2001 Owen Taylor <otaylor@redhat.com>
4143 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
4144 a missing pango_layout_iter_free ().
4146 Thu Sep 20 11:03:51 2001 Owen Taylor <otaylor@redhat.com>
4148 * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
4149 gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
4151 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
4152 the function definition so we don't accidentally rely on
4153 the compat #define from gtk_radio_menu_item_group.
4154 (#60782, Jeff Franks)
4156 Thu Sep 20 16:51:02 2001 Kristian Rietveld <kristian@planet.nl>
4158 * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
4159 incorrect values for top, right and bottom due to cut-and-paste
4160 bug. Pointed out by Vitaly Tishkov, fixes bug #59008
4162 Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
4164 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
4165 _NET_WM_PID and WM_CLIENT_MACHINE properties on each
4166 window, not just on the client leader. (#58463)
4168 Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
4170 * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
4172 * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
4173 non-public _gtk_menu_item_set_placement.
4175 * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
4177 Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
4179 * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c
4180 gdk/linux-fb/gdkcolor-fb.c:
4181 Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
4184 Wed Sep 19 16:12:16 2001 Owen Taylor <otaylor@redhat.com>
4186 * gdk/gdkpixbuf-render.c: Allow -1 for width/height
4187 to mean "width/height of pixbuf" (Patch from Matthias Clasen,
4190 Wed Sep 19 16:01:27 2001 Owen Taylor <otaylor@redhat.com>
4192 Patch from Frank Belew #59037 for Solaris compilation.
4194 * gtk/maketypes.awk: Change syntax slightly for a call
4195 to sub(), apparently making awk on Solaris happier.
4197 * gtk/gtktreeview.c: Remove C++ comments.
4199 Wed Sep 19 15:46:29 2001 Owen Taylor <otaylor@redhat.com>
4201 * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
4202 to handle '99% of the time. (#60473, reported by Christian Rose)
4204 * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
4205 which no longer exists. (#60379, reported by Vitaly Tishkov)
4207 Wed Sep 19 11:06:24 2001 Tim Janik <timj@gtk.org>
4211 * gdk/Makefile.am: kill EXTRA_DIST clearing.
4213 Wed Sep 19 02:50:40 2001 Tim Janik <timj@gtk.org>
4215 * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
4216 as its broken in automake 1.4, add explicit object rule to
4219 * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
4220 get rid of uneccessary stamps, group stuff more logically, and build
4221 sources due to object rules. fix srcdir!=builddir.
4223 Tue Sep 18 20:47:16 2001 Owen Taylor <otaylor@redhat.com>
4225 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix
4226 incorrect parameter to compute_double_length
4227 (#58680, patch from Matthias Clasen)
4229 Fixes for compilation with Forte cc. (#59734, Derek Rafter)
4231 * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
4233 * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
4234 for GDK_RELEASE_MASK to avoid warnings with Forte.
4236 * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
4239 2001-09-18 Alex Larsson <alexl@redhat.com>
4241 * gtk/gtkcheckbutton.c:
4242 * gtk/gtkradiobutton.c:
4243 Don't draw with GTK_STATE_ACTIVE.
4247 Draw lines between rows with base_gc[GTK_STATE_NORMAL].
4249 * gtk/gtktextdisplay.c:
4250 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4251 unfocused with base_gc [GTK_STATE_ACTIVE].
4254 Add select all menu-item.
4255 Default cursor color is red.
4256 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4257 unfocused with base_gc [GTK_STATE_ACTIVE].
4259 * gtk/gtklabel.[ch]:
4260 Add keynav + menu to selectable lables.
4261 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4262 unfocused with base_gc [GTK_STATE_ACTIVE].
4265 Add drag and drop support.
4268 (This was checked in earlier)
4269 New default values for text/base SELECTED and ACTIVE
4271 Tue Sep 18 23:51:49 2001 Tim Janik <timj@gtk.org>
4273 * configure.in: up version to 1.3.8, interface age 0,
4274 binary age 0, depend on glib 1.3.8.
4276 * NEWS: 1.3.8 updates.
4278 Tue Sep 18 18:46:54 2001 Jonathan Blandford <jrb@redhat.com>
4280 * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
4283 * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
4284 reason to call it beyond emiting the two signals.
4286 * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
4289 Wed Sep 12 11:21:14 2001 Owen Taylor <otaylor@redhat.com>
4291 * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
4292 gtk/gtktextview.c tests/testgtk.c: Fix up for changes to
4293 PangoFontDescription.
4295 * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
4296 gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
4299 * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
4301 * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
4302 direct access to style->font. Deprecate gtk_style_ref/unref.
4304 * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
4305 Remove gtk_style_ref/unref with g_object_ref/unref.
4307 * gtk/gtkcalendar.c: Remove leftover macros accessing
4310 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
4313 * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of
4316 Tue Sep 18 13:51:35 2001 Jonathan Blandford <jrb@redhat.com>
4318 * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
4319 "can_activate" properties in favor of
4320 GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
4321 and GTK_CELL_RENDERER_MODE_EDITABLE
4323 Tue Sep 18 12:12:43 2001 Jonathan Blandford <jrb@redhat.com>
4325 * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
4326 editable widgets. This function is private, and should only be
4327 used by GtkTreeView.
4329 2001-09-18 Matt Wilson <msw@redhat.com>
4331 * docs/Makefile.am (EXTRA_DIST): don't use += before =
4333 * docs/faq/Makefile.am (EXTRA_DIST): likewise
4335 * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
4337 * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
4338 (EXTRA_HEADERS): likewise
4340 * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
4341 (EXTRA_HEADERS): likewise
4342 (EXTRA_DIST): likewise
4343 (CLEANFILES): likewise
4345 * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
4347 * tests/Makefile.am (EXTRA_DIST): likewise
4349 * Makefile.am (install-data-local): changed to use
4350 install-data-hook, which runs after install-pkgconfigDATA, so that
4351 the pkgconfigdir will have been created and populated first.
4353 Mon Sep 17 17:39:52 2001 Jonathan Blandford <jrb@redhat.com>
4355 * gtk/gtkcelleditable.[ch]: Add editable interface. This should
4356 be the last big GtkTreeView API change.
4358 * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
4359 replace with "activate" and "start_editing". Also, added a
4360 "can_activate" and "can_edit" property.
4362 * gtk/gtktreeviewcolumn.c: modify to use above.
4364 2001-09-16 Alexander Larsson <alla@lysator.liu.se>
4366 * gtk/gtkoptionmenu.c: Handle scroll wheel events.
4368 Fri Sep 14 22:31:25 2001 Matthias Clasen <matthiasc@poet.de>
4370 * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
4371 icon instead of one with ugly white background.
4373 Fri Sep 14 22:26:01 2001 Matthias Clasen <matthiasc@poet.de>
4375 * demos/gtk-demo/stock_browser.c (id_to_macro): make
4376 the uppercasing work. (#59550)
4378 2001-09-14 Jakub Steiner <jimmac@ximian.com>
4380 * gtk/stock-icons/dialog_error.png:
4381 * gtk/stock-icons/dialog_question.png: more road signs
4383 2001-09-13 Jakub Steiner <jimmac@ximian.com>
4385 * gtk/stock-icons/dialog_question.png:
4386 * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
4389 Wed Sep 12 19:01:05 2001 Jonathan Blandford <jrb@redhat.com>
4391 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
4392 signals to make them more clear. Also, change ::range_changed to
4394 * gtk/gtktreemodel.c: Adjust to interface change
4395 * gtk/gtktreemodel.h: ditto
4396 * gtk/gtktreemodelsort.c: ditto
4397 * gtk/gtktreestore.c: ditto
4398 * gtk/gtkliststore.c: ditto
4399 * gtk/gtktreeview.c: ditto
4400 * tests/testtreecolumns.c: ditto
4401 * gtk/gtkmarshal.list: Actually remove a marshaller!
4403 2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
4406 Add support for Ctrl+Up/Down arrow to move cursor to beginning
4407 of previous/next paragraph. If within a paragraph cursor moves to
4408 beginning of that paragraph.
4410 2001-09-12 Jakub Steiner <jimmac@ximian.com>
4412 * gtk/stock-icons/dialog_question.png: replacing the shaky
4413 question mark with a sans-serif one.
4414 * gtk/stock-icons/stock_top.png, stock_bottom.png,
4415 stock_first.png, stock_last.png: using the new style arrows
4416 * gtk/stock-icons/stock_font.png: simple one to replace the ugly
4418 * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
4420 * gtk/stock-icons/stock_zoom*: anti-aliased
4421 * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
4422 '-' with a '_', removed the wrong files
4424 Sat Sep 8 16:19:02 2001 Owen Taylor <otaylor@redhat.com>
4426 * gtk/gtkmain.c: Implement a search path for GTK+ modules.
4428 * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
4429 in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
4430 than in gtk-2.0/major.minor.micro/<type>/. This
4431 works better for a search path for modules.
4433 * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
4434 gtk_binary_version variable holding major.minor.(micro-binary_age).
4436 * modules/input/Makefile.am (moduledir): Fix installation
4437 directory to match change in lookup location.
4439 * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll
4440 suffixes. Needs to be handled in g_module_build_path().
4442 * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
4445 Tue Sep 11 13:59:12 2001 Owen Taylor <otaylor@redhat.com>
4447 * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
4448 causing RC properties not to work.
4450 2001-09-11 Jakub Steiner <jimmac@ximian.com>
4452 * gtk/stock-icons/dialog-error.png: less drastic
4453 * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
4454 "STOP" is international enough.
4455 * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
4456 * gtk/stock-icons/stock_menu_properties.png: 16x16 version
4458 Mon Sep 10 21:26:24 2001 Joshua N Pritikin <vishnu@pobox.com>
4460 * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
4461 (add|remove)_selection_clipboard symmetric. (bug #59836)
4463 * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree):
4464 Avoid SEGV for empty tree. (bug #60243)
4466 Mon Sep 10 20:47:22 2001 Tim Janik <timj@gtk.org>
4468 * tests/testgtk.c (create_idle_test): slight fix for
4469 g_object_set() not usable for nesting anymore.
4471 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
4472 * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
4473 properties, supply ::shadow_type properties instead as most
4476 2001-09-10 Alex Larsson <alexl@redhat.com>
4478 * demos/gtk-demo/stock_browser.c:
4483 * gdk/gdkrectangle.c:
4484 * gtk/gtktypeutils.c:
4485 Update to use the new g_boxed_type_register_static API.
4487 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
4489 * gtk/gtktreestore.c:
4490 Fix looping in gtk_tree_store_init() waiting for zero random int.
4492 Mon Sep 10 16:55:49 2001 Tim Janik <timj@gtk.org>
4494 * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
4495 behaviour which havoc broke. they have to default to 1.0 for
4498 * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
4500 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
4502 * gtk/gtkstyle.c (_gtk_style_peek_property_value)
4503 Amend previous change to avoid runtime error in g_param_spec_ref()
4505 Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
4507 * gtk/gtkrc.c (insert_rc_property): Fix blank line
4510 Mon Sep 10 06:50:39 2001 Owen Taylor <otaylor@redhat.com>
4512 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
4513 do a lookup immediately after creating style->property_cache,
4514 since bsearch crashes on zero length for Solaris.
4515 (Found by Padraig O'Briain.)
4517 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
4519 * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
4520 Really return NULL if not set.
4521 (gtk_widget_init): Remove unused varaible.
4523 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
4526 Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
4529 2001-09-08 Havoc Pennington <hp@pobox.com>
4531 * gtk/gtkaccelgroup.c: add docs to functions that I can imagine
4532 people might want to use
4534 2001-09-08 Havoc Pennington <hp@pobox.com>
4536 * gtk/gtkalignment.c (gtk_alignment_class_init): default
4537 xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
4539 * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
4541 * gtk/gtktextiter.c: fix docs
4542 (gtk_text_iter_spew): get rid of this
4544 * gtk/gtklayout.c: docs
4546 * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
4547 to center image and label together, instead of having image on
4548 left and label centered, patch/suggestion from Jacob
4550 * gtk/gtkdialog.c: docs
4552 Sat Sep 8 14:19:49 2001 Jonathan Blandford <jrb@redhat.com>
4554 * gtk/gtkliststore.c: Write documentation
4555 * gtk/gtktreestore.c: Write documentation
4557 Sat Sep 8 13:53:09 2001 Owen Taylor <otaylor@redhat.com>
4559 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
4560 with GArray and bsearch(), to remove dependency on a still
4561 evolving interface that we want to keep private to glib/gobject.
4563 2001-09-08 Havoc Pennington <hp@pobox.com>
4565 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
4568 * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
4570 * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
4572 * gtk/gtksocket.c (gtk_socket_steal): docs fixes
4574 * gtk/gtkscrolledwindow.h: docs fixes
4576 * gtk/gtkimage.c (gtk_image_new): docs fixes
4578 Sat Sep 8 01:49:22 2001 Owen Taylor <otaylor@redhat.com>
4580 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a
4581 false alarm constness warning with a cast.
4583 * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
4584 for the inside-gdk case.
4586 Sat Sep 8 01:44:18 2001 Jonathan Blandford <jrb@redhat.com>
4588 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
4591 * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
4592 change models, #59899
4594 2001-09-07 Havoc Pennington <hp@pobox.com>
4596 * gtk/gtkmain.c: move some docs inline
4598 2001-09-07 Havoc Pennington <hp@pobox.com>
4600 * gtk/gtk.h: tsk tsk, jrb broke the build
4602 Fri Sep 7 20:45:29 2001 Jonathan Blandford <jrb@redhat.com>
4604 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
4605 Removed 'fill' attribute. It was silly b/c that was a property of
4606 the cell renderer, anyway.
4607 (gtk_tree_view_column_render): Actually render the packed
4609 * doc/tree-column-sizing.txt: initial devel documentation.
4610 * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
4611 * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
4613 * tests/testtreefocus.c: fix up to reflect above changes.
4614 * tests/testtreeview.c: ditto
4615 * demos/gtk-demo/stock_browser.c: ditto
4617 2001-09-07 Alex Larsson <alexl@redhat.com>
4619 * gdk/linux-fb/gdkcolor-fb.c:
4620 Removed unused function.
4622 * gdk/linux-fb/gdkdrawable-fb2.c
4623 * gdk/linux-fb/gdkfont-fb.c:
4624 Use PangoLanguage functions.
4626 * gdk/linux-fb/gdkinput.c:
4627 * gdk/linux-fb/gdkselection-fb.c:
4630 * gdk/linux-fb/gdkwindow-fb.c:
4631 Fix warning. Implement gdk_window_set_icon_list() and
4632 gdk_window_get_frame_extents(). (No icon support yet though.)
4634 * gtk/gtkwindow.c (gtk_window_get_position):
4635 If window->frame is set get the extents of it instead.
4637 Fri Sep 7 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
4639 * gtk/gtkwidget.c (gtk_widget_get_default_colormap):
4640 Make the default default colormap the GdkRGB colormap,
4641 not the system colormap.
4643 * gtk/gtkinvisible.c (gtk_invisible_init)
4644 gtk/gtkwindow.c (gtk_window_init): Set the current
4645 colormap, as returned by _gtk_widget_peek_colormap()
4648 * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
4649 to GTK+. Make it return %NULL instead of the default
4650 colormap if no colormap has explicitely been pushed.
4652 * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
4653 colormaps on ancestral widgets before defaulting the
4654 the system default colormap.
4656 * docs/Changes-2.0.txt: explain colormap changes.
4658 2001-09-07 Havoc Pennington <hp@redhat.com>
4660 * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes
4663 Fri Sep 7 18:17:47 2001 Owen Taylor <otaylor@redhat.com>
4665 * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm,
4666 make gdk_set_use_xshm a noop. Remove --no-xshm command line
4667 option. If we aren't autodetecting properly, we need
4668 to fix the problem, or at least make it an environment
4669 variable setting, to avoid problems with propagating
4670 to embedded children, plugins, etc.
4672 * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
4674 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
4675 (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
4676 New function to render a pixmap and mask for a particular colormap.
4678 * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
4679 gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
4680 of internal implementation of the same.
4682 2001-09-07 Havoc Pennington <hp@redhat.com>
4684 * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
4685 debug code that seems to have caused a breakpoint in valid cases
4687 * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
4688 pointer on the first view when adding the second view, fixes
4689 crash when closing gtk-demo text test with active selection
4691 * gtk/gtktextbuffer.c
4692 (gtk_text_buffer_remove_selection_clipboard): don't leave dead
4693 clipboards in the list of clipboards - probably fixes #59836
4695 Fri Sep 7 11:51:44 2001 Owen Taylor <otaylor@redhat.com>
4697 Make gdkx.h the only installed header from gdk/x11.
4698 All structures in gdk/x11 are opaque.
4700 * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
4701 Don't install gdk{drawable,pixmap,window}-x11.h.
4703 * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
4704 Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
4705 GdkVisualClass into C files.
4707 * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
4709 * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
4710 gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
4711 Add public functions to replace previously exported direct
4713 gdk_x11_colormap_get_{xdisplay,xcolormap}
4714 gdk_x11_cursor_get_{xdisplay,xcursor},
4715 gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
4716 gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
4717 gdk_x11_gc_get_{xdisplay,ximage}
4719 * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
4720 GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
4722 Fix a number of variables and functions that were exported
4723 "accidentally" from GDK.
4725 * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
4726 gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit,
4727 gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
4728 gdk_event_notify, gdk_queued_events, gdk_queued_tail,
4729 gdk_event_new, gdk_events_queue, gdk_events_unqueue,
4730 gdk_event_queue_find_first, gdk_event_queue_remove_link,
4731 gdk_event_queue_append, gdk_event_button_generate,
4732 gdk_debug_flags, gdk_default_filters, gdk_parent_root.
4734 * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c,
4735 gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
4736 gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks,
4737 gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
4738 gdk_use_xshm, gdk_input_ignore_core.
4740 * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
4741 #defines to namespace functions into the private _gdk_
4744 * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
4745 to replace gdk_parent_root exported variable. Adjust and
4746 deprecate GDK_ROOT_PARENT().
4748 * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
4749 GDK_ROOT_PARENT usage, remove includes of port-specific
4752 * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for
4753 _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core,
4754 gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
4756 * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
4757 docs/Changes-2.0.txt: Remove gdk_wm_protocols,
4758 gdk_wm_delete_window functions, gdk_wm_take_focus,
4759 use gdk_atom_intern() instead.
4761 * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
4762 gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h}
4763 gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
4765 Unexport gdk_selection_property, just use
4766 gdk_atom_intern ("GDK_SELECTION").
4768 * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}:
4769 Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type,
4770 GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate,
4771 GdkVisualprivate, gdk_x11_gc_flush.
4773 Make a number of public exports of variables into functions
4774 to increase encapsulation.
4776 * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h
4777 gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer,
4778 move to gdkinternals.h. Add gdk_device_get_core_pointer ().
4780 * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
4781 docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code,
4784 * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
4785 docs/Changes-2.0.txt:
4786 s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
4787 s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
4788 Add gdk_x11_get_default_xdisplay().
4790 * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c
4791 win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c
4792 gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class,
4793 Don't export gdk_progclass, move --class command line
4794 option and handling to common portion of GDK.
4796 Miscellaneous fixes:
4798 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
4799 g_return_val_if_fail that should have been g_return_if_fail.
4801 * gdk/gdkinternals.h gdk/gdkprivate.h: Move
4802 gdk_synthesize_window_state() to the semi-public gdkprivate.h.
4804 * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
4807 * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO:
4808 Remove unused gdk_key_repeat_disable/restore.
4810 * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c
4811 x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
4812 Remove unused gdk_null_window_warnings variable.
4814 * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
4815 it can be retrieved from the repository; it is too far
4816 from functional to be worth having people check out;
4817 it would be easier to start from scratch, I suspect.
4819 * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
4821 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
4822 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
4823 Fix some accidentally global variables and unused global variables.
4825 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
4826 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
4827 Fix some accidentally global variables and unused global variables.
4829 Add some space for future expansion to multihead.
4831 * gdk/gdkdrawable.h: Add four reserved function pointers
4832 for future expansion of GdkDrawableClass.
4834 * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
4835 where we can put a GdkScreen * later.
4837 2001-09-07 Havoc Pennington <hp@redhat.com>
4839 * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
4840 adjustments after validating destination yrange; fixes #53918
4841 (This may cause other issues, but I hope it won't)
4843 2001-09-05 Havoc Pennington <hp@redhat.com>
4845 * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
4846 line into start line, update the character counts in parent nodes;
4847 caused a bug when end and start line had different parent nodes.
4849 2001-08-30 Havoc Pennington <hp@redhat.com>
4851 * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
4852 assertion that tag is in a table
4854 Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
4856 * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
4857 g_strcasecmp on NULL strings. (#59058)
4859 2001-09-06 Alex Larsson <alexl@redhat.com>
4863 * gtk/gtkspinbutton.c:
4864 * gtk/gtktipsquery.c:
4865 Use GtkType/GType instead of uint.
4867 Tue Sep 4 18:13:43 2001 Jonathan Blandford <jrb@redhat.com>
4869 * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
4872 * gtk/gtktreestore.c (gtk_list_store_init): ditto
4874 * gtk/gtktreesortable.c: add docs.
4876 Tue Sep 4 09:37:19 2001 Owen Taylor <otaylor@redhat.com>
4880 * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove
4883 * modules/input/Makefile.am (install-data-local): Don't
4884 run gtk-query-immodules if DESTDIR is set.
4886 * NEWS: Various additions.
4888 Tue Sep 4 03:12:25 2001 Tim Janik <timj@gtk.org>
4890 * NEWS: updates for 1.3.7 release.
4892 Mon Sep 3 18:03:56 2001 Jonathan Blandford <jrb@redhat.com>
4894 * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
4895 handle default sort feature
4897 * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
4898 new function to handle default sort.
4899 (gtk_tree_sortable_has_default_sort_func): check if default sort
4902 * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func):
4903 handle default sort feature
4905 Sun Sep 2 20:32:36 2001 Jonathan Blandford <jrb@redhat.com>
4907 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
4908 vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
4911 Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
4913 * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
4914 vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
4917 * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
4920 Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
4922 * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
4923 so that we don't eternally update the keymap after we
4924 get a change notification.
4926 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
4929 Sun Sep 2 23:27:16 2001 Kristian Rietveld <kristian@planet.nl>
4931 * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
4932 it working. It mostly works now, although there're still a few issues
4935 * tests/testtreesort.c (main): changes to have a better test
4936 application for the GtkTreeModelSort.
4938 Sun Sep 2 23:19:07 2001 Kristian Rietveld <kristian@planet.nl>
4940 * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
4943 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
4944 gpointer search_data argument to function definition and
4945 prototype, to match GtkTreeViewSearchEqualFunc typedef.
4947 Sat Sep 1 21:57:27 2001 Kristian Rietveld <kristian@planet.nl>
4949 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
4952 Fri Aug 31 20:01:23 2001 Jonathan Blandford <jrb@redhat.com>
4954 * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
4956 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
4958 Wed Aug 29 20:40:58 2001 Owen Taylor <otaylor@redhat.com>
4960 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard):
4961 Instead of always mirroring the selection to a single PRIMARY
4962 selection, allow it to be mirrored to any number of clipboards.
4964 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove,
4965 just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
4967 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
4968 GtkClipboard argument, and for paste_clipboard, the
4969 @override_location argument from @paste_primary.
4971 * gtk/gtktextview.c: Adapt to above change.
4973 2001-08-30 Havoc Pennington <hp@redhat.com>
4975 * gtk/gtktextview.c (invalidated_handler): put validate idle at
4976 resize - 2 just for flexibility
4978 2001-08-30 Havoc Pennington <hp@redhat.com>
4980 * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
4981 object from the empty-child-anchor case by drawing a little box.
4983 * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
4984 if the child anchor has no anchored widgets - fixes #59328.
4986 Also, remove bizarre deletion of preedit string that seems to have
4987 gotten in here somehow.
4989 2001-08-30 Havoc Pennington <hp@redhat.com>
4991 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
4992 to #58420 from Hidetoshi Tajima and Matthias Clasen
4994 Wed Aug 29 17:28:04 2001 Jonathan Blandford <jrb@redhat.com>
4996 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
4997 change color when the GtkTreeView loses focus.
4999 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
5002 * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
5004 2001-08-28 Havoc Pennington <hp@pobox.com>
5006 * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
5008 2001-08-28 Havoc Pennington <hp@pobox.com>
5010 * demos/gtk-demo/main.c (setup_default_icon): add default icon
5012 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
5014 (gtk_radio_button_new_with_label): warning fix
5016 * gtk/gtkdnd.c: used some random GtkImage private structs,
5017 update to reflect GtkImage changes
5019 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
5020 whether the hint is supported, just always set the icon. A task
5021 list might want to use it even if the WM doesn't, and the WM may
5022 change over time. Also, XDeleteProperty() if list == NULL.
5024 * gtk/gtkwindow.c (gtk_window_set_icon_list)
5025 (gtk_window_get_icon_list)
5026 (gtk_window_set_icon)
5027 (gtk_window_get_icon)
5028 (gtk_window_set_default_icon_list)
5029 (gtk_window_get_default_icon_list):
5032 * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
5034 * gtk/gtkimage.c: Implement property support, bug #59408
5036 * gtk/gtkcontainer.c (gtk_container_add): make the warning message
5037 on reparent-without-removing-first a bit more helpful.
5038 Let's just destroy this FAQ.
5040 Tue Aug 28 21:37:11 2001 Matthias Clasen <matthiasc@poet.de>
5042 * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
5043 instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
5045 Tue Aug 28 21:00:44 2001 Matthias Clasen <matthiasc@poet.de>
5047 * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
5048 of use_text_format to the end of the function. (#56447)
5050 Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
5052 * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
5053 only in response to an area_prepared signal.
5055 2001-08-28 Alex Larsson <alexl@redhat.com>
5057 * gtk/gtkwidget.c (gtk_widget_class_init):
5058 Make unrealize GTK_RUN_LAST.
5060 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
5062 * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
5063 with_label and with_mnemonic should create radio buttons, not
5066 Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
5068 * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
5069 * tests/treestoretest.c (make_window): ditto
5070 * demos/gtk-demo/main.c (create_tree): ditto
5071 * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
5073 Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
5075 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
5076 GTK selection types rather than GtkTreeSelectionMode.
5078 * docs/Changes-2.0: Add comment about selection change.
5080 Mon Aug 27 14:21:30 2001 Jonathan Blandford <jrb@redhat.com>
5082 * gtk/gtkenums.h (GtkSelectionMode): deprecate
5083 GTK_SELECTION_EXTENDED.
5085 * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
5086 Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
5088 * gtk/gtkctree.c: ditto
5090 * gtk/gtklist.c: ditto
5092 * gtk/gtktree.c: ditto
5094 Mon Aug 27 14:18:12 2001 Owen Taylor <otaylor@redhat.com>
5096 * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
5097 of typos in compat macros. (#59624, Skip Montaro)
5099 Sun Aug 26 20:00:00 2001 Owen Taylor <otaylor@redhat.com>
5101 * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
5104 (patch from ERDI Gergo <cactus@cactus.rulez.org>, #58920)
5106 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
5107 interface to be a standard setter from gtk_menu_item_right_justify.
5108 (gtk_menu_item_get_right_justified): a getter to go with the setter
5110 * gtk/gtkmenuitem.h: Add a deprecated compat macro for
5111 gtk_menu_item_right_justify.
5113 * demos/gtk-demo/menus.c tests/testgtk.c: Switch to
5114 gtk_menu_item_set_right_justified.
5116 2001-08-27 Jens Finke <jens@gnome.org>
5118 * gtk+.spec.in: Updated to match gpp requirements, reworked the
5119 files section to make it work with 1.3.x releases.
5121 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
5123 * gtk/gtkbutton.[ch]:
5124 Add properties for labels, mnemonics and stock items.
5125 Added C accessor functions for the properties.
5126 Removed deprecated button->child.
5128 * gtk/gtkradiobutton.c:
5129 * gtk/gtktogglebutton.c:
5130 Update to use the functions in GtkButton.
5132 * gtk/gtkcheckbutton.c:
5133 Update to use the functions in GtkButton.
5134 Changed size allocation of child. Now only gets as much
5135 space as it requests.
5138 Don't use GtkButton->child
5143 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
5146 * tests/Makefile.am:
5147 Ressurect the properties test.
5148 I don't care if it is inferior, I just want to test my property code.
5150 2001-08-25 Chema Celorio <chema@celorio.com>
5152 * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
5153 gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
5154 and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
5156 2001-08-24 Havoc Pennington <hp@pobox.com>
5158 * gtk/gtkcompat.h: remove gtk_menu_* compat defines;
5159 these are already in gtkmenu.h, and the copies
5162 Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
5164 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
5165 special-case bitmaps to allow no colormap
5166 (bitmap1): implement no-colormap bitmap-getting
5167 (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
5170 (rgb1a, rgb1): change the way we read the data out of the image,
5171 old way didn't seem to work quite right.
5173 I'm pretty sure a lot of the rgbconvert code is still broken.
5175 * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
5176 above position constraint (I really intended to do this before,
5177 don't know what's up with that)
5178 (gtk_XParseGeometry): shut up gcc
5180 * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
5181 and "0" should have been. remove the attempted 4-bytes-at-once
5182 optimization, it was totally broken.
5184 Sat Aug 25 19:02:39 2001 Owen Taylor <otaylor@redhat.com>
5186 * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
5187 on push to buttons (based on patch from Soeren Sandmann, #54720)
5189 - Add child_displacement_x/y style properties to control how far the
5190 child moves when the button is depressed.
5192 - Add non-exported function _gtk_button_set_depressed to clean
5193 up the handling of the in/out shadow and separate it frmo
5196 - Lots of code cleanup and simplification of state handling
5197 for GtkButton/GtkToggleButton.
5199 * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
5200 of button movement. testgtk + testgtkrc == test ugly GTK+, as always.
5202 Fri Aug 24 23:09:05 2001 Owen Taylor <otaylor@redhat.com>
5204 * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility
5205 and make gtk_image_new() take no arguments. The compiler will
5206 catch it, and it is vastly more useful than having
5207 gtk_image_new() be a deprecated alias for gtk_image_new_from_image().
5209 * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
5210 to add tearoff-title property (#51319, Lee Mallabone)
5212 Fri Aug 24 22:12:32 2001 Owen Taylor <otaylor@redhat.com>
5214 * gtk/gtkmenuitem.[ch]: Remove unused and useless function
5215 gtk_menu_item_configure(). (#58925)
5217 Fri Aug 24 16:03:45 2001 Jonathan Blandford <jrb@redhat.com>
5219 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
5220 "use_align" to give people the option to just make a cell visible.
5222 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
5223 we were scrolling past the end of the tree.
5225 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
5226 rename gtk_tree_view_column_pack_start_cell_renderer to
5227 gtk_tree_view_column_pack_start. Same for pack_end, and clear.
5229 Fri Aug 24 12:02:08 2001 Owen Taylor <otaylor@redhat.com>
5231 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
5232 a stray g_object_ref() left over from gtk_object_ref/sink.
5233 (Pointed out by Josh Pritikin.)
5235 Thu Aug 23 19:33:54 2001 Owen Taylor <otaylor@redhat.com>
5237 * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
5238 to gtk_container_get_children. Added deprecated compatibility
5239 macro. (Suggested by Vitaly Tishkov, #59051)
5241 * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
5244 Thu Aug 23 19:10:01 2001 Owen Taylor <otaylor@redhat.com>
5246 * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate
5247 gtk_menu_bar_append/prepend/insert, forgot to do this
5248 when we deprecated gtk_menu_append/prepend/insert.
5250 * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
5253 * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
5254 renamed by compat macro.
5256 * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
5257 gtk_font_selection_dialog_get_font(). (Suggested by
5258 Vitaly Tishkov, #59383)
5260 Thu Aug 23 18:23:31 2001 Owen Taylor <otaylor@redhat.com>
5262 * gtk/gtktexttag.c (gtk_text_tag_table_get_size):
5263 Rename from gtk_text_tag_table_size(). (#59366)
5265 Thu Aug 23 20:01:41 2001 Kristian Rietveld <kristian@planet.nl>
5267 * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
5268 gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
5269 gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
5272 Thu Aug 23 16:26:47 2001 Tim Janik <timj@gtk.org>
5274 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize):
5275 * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
5276 handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
5278 Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com>
5280 [ Patch from Sebastian Wilhelmi, 52790 ]
5282 * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
5284 * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
5285 Move compatibility macros from g[dt]kcompat.h to within
5286 #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
5288 * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
5290 * demos/Makefile.am demos/gtk-demo/Makefile.am
5291 docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
5292 tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
5294 * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
5295 testpixbuf.c}: Fix usages of deprecated functions.
5297 Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
5299 * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
5300 when changing models.
5302 Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
5304 * gtk/gtktreeview.c: Fix selection. I think it's all dandy now.
5305 We check the current event for modifiers rather than try to trap
5308 2001-08-22 Anders Carlsson <andersca@gnu.org>
5310 * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
5311 It's LIST_STORE, not LISTSTORE.
5313 Tue Aug 21 12:43:29 2001 Owen Taylor <otaylor@redhat.com>
5315 * gtk/gtk.h: Remove commented out gtkpacker reference.
5317 2001-08-21 Matthias Clasen <matthiasc@waldgeist.poet.de>
5319 * configure.in (all_loaders): Add tga loader,
5320 patch by Nicola Girardi. (#56067)
5322 Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>
5324 * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
5325 a little. More needs to be done tomorrow.
5327 Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
5329 * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
5331 Mon Aug 20 23:48:18 2001 Jonathan Blandford <jrb@redhat.com>
5333 * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
5334 reported by Kristian Rietveld <kristian@planet.nl> to handle row
5336 (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
5337 <kristian@planet.nl> to change destroy order.
5339 Mon Aug 20 11:39:44 2001 Jonathan Blandford <jrb@redhat.com>
5341 * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
5344 Sun Aug 19 03:22:59 2001 Jonathan Blandford <jrb@redhat.com>
5346 * gtk/gtkliststore.c: Fix up warnings, #58928.
5348 * gtk/gtktreeselection.h: Change signal prototype, #58647
5350 * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
5353 * gtk/gtkstyle.c: Actually prelight arrow, #50981
5355 2001-08-18 Hans Breuer <hans@breuer.org>
5357 * gdk/gdk.def : updated externals
5359 * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
5360 is required to get (at least) visible in entry fields. Some selections
5361 are really handled now - even on win32 - but copying via middle
5362 mouse button into a different app needs to wait ...
5364 * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
5365 mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
5367 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
5368 handling. I'm not sure if it is better now, but at least not worse
5370 * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
5371 with SetWindowPos () which allows more fine-tuning backing-store wise
5373 * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
5374 Also changed move/resize to be more like the X version.
5376 * gtk/gtk.def : updated externals
5378 2001-08-19 Sven Neumann <sven@gimp.org>
5381 * tests/testtreesort.c
5382 * tests/treestoretest.c: inserted some casts to get rid of compiler
5385 Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>
5387 * gtk/gtktreeviewcolumn.c
5388 (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
5390 * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
5391 (_gtk_tree_view_find_node): If *node is NULL,
5392 *tree should be NULL too.
5394 * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
5396 * tests/testtreecolumns.c: ditto
5397 * tests/testtreefocus.c: ditto
5398 * tests/testtreesort.c: ditto
5399 * tests/testtreeview.c: ditto
5400 * tests/treestoretest.c: ditto
5402 Sat Aug 18 04:34:31 2001 Jonathan Blandford <jrb@redhat.com>
5404 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
5405 signals; is_expander/is_expanded.
5407 * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
5410 * gtk/gtktreeview.c: set above properties.
5412 Sat Aug 18 23:01:33 2001 Owen Taylor <otaylor@redhat.com>
5414 * gtk/gtkwidget.h: Really remove set_default_style().
5416 * docs/Changes-2.0.txt: added a note about
5417 gtk_widget_push/pop/set_default_style.
5419 2001-08-18 Havoc Pennington <hp@pobox.com>
5421 * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
5422 hints_changed in addition to the other cases.
5423 (gtk_window_move_resize): include last position from configure
5424 notify in debug spew
5426 2001-08-18 James Henstridge <james@daa.com.au>
5428 * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
5429 second argument to the weak ref notify, cleaning up some uglyness.
5430 (gtk_accel_group_attach): remove and add the weak notifier when
5431 changing the accel groups slist.
5432 (gtk_accel_group_detach): same here.
5434 2001-08-17 Darin Adler <darin@bentspoon.com>
5436 * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
5437 missing parameters to utf8 functions to make it compile.
5439 Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
5441 * gtk/gtktreeprivate.h:
5442 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
5443 (gtk_tree_view_init), (gtk_tree_view_set_property),
5444 (gtk_tree_view_get_property), (gtk_tree_view_destroy),
5445 (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
5446 (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
5447 (gtk_tree_view_set_destroy_count_func),
5448 (gtk_tree_view_set_enable_search),
5449 (gtk_tree_view_get_enable_search),
5450 (gtk_tree_view_get_search_column),
5451 (gtk_tree_view_set_search_column),
5452 (gtk_tree_view_get_search_equal_func),
5453 (gtk_tree_view_set_search_equal_func),
5454 (gtk_tree_view_search_dialog_destroy),
5455 (gtk_tree_view_search_position_func),
5456 (gtk_tree_view_interactive_search),
5457 (gtk_tree_view_search_delete_event),
5458 (gtk_tree_view_search_button_press_event),
5459 (gtk_tree_view_search_key_press_event),
5460 (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
5461 (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
5462 * gtk/gtktreeview.h:
5463 Add heavily modified patch from Kristian Rietveld to handle
5464 interactive searching.
5466 Fri Aug 17 17:30:34 2001 Tim Janik <timj@gtk.org>
5468 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
5471 * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
5472 GtkMenuShell::selection_done, now that we have it, instead of
5473 ::deactivate so we're not tearing the menu apart and notify
5474 the user prematurely.
5476 Thu Aug 16 05:22:01 2001 Tim Janik <timj@gtk.org>
5478 * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
5479 window, clear window->need_default_position to avoid infinite loops.
5480 some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
5482 Wed Aug 15 12:36:55 2001 Tim Janik <timj@gtk.org>
5484 * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
5485 code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
5486 (gtk_tree_view_set_property): don't cast possible NULL objects.
5487 (gtk_tree_view_destroy): reset the model to NULL.
5489 * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
5490 parent_class handler.
5492 2001-08-17 Matthias Clasen <matthiasc@waldgeist.poet.de>
5494 * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
5496 2001-08-17 Anders Carlsson <andersca@gnu.org>
5498 * gtk/gtkstyle.c (create_expander_affine): Divide with floating
5499 point numbers so that the result will be floating point.
5501 2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
5503 * tests/testgtk.c (create_handle_box):
5504 (create_toolbar): Replace gtk_window_set_policy calls by
5505 gtk_window_set_resizable.
5507 2001-08-16 Jakub Steiner <jimmac@ximian.com>
5509 * gtk/stock-icons/dialog_info.png: new style bulb
5510 * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
5511 * gtk/stock-icons/dialog_warning.png: need a hand?
5512 * gtk/stock-icons/stock_add.png, stock_remove.png: I hope
5513 the aa border gets chopped off ok
5514 * gtk/stock-icons/stock_colorselector.png: using the new hand
5515 * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what
5516 this one is for, but the old icon was butt ugly.
5517 * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
5518 * gtk/stock-icons/stock*_insert_object.png: "
5519 * gtk/stock-icons/stock_index.png: using new hand icon
5520 * gtk/stock-icons/stock*_new.png: the document template being used
5522 * gtk/stock-icons/stock*_print*.png: new print and print preview
5524 * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert
5525 icons based on Tuomas' floppy image.
5526 * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
5527 * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
5528 * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
5529 * gtk/stock-icons/stock*_undelete.png: "
5530 * gtk/stock-icons/stock_preferences.png: I have a version with a
5531 document base if the sliders are no good.
5532 * gtk/stock-icons/stock_properties.png: properties
5535 * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas'
5536 (tigert@ximian.com) clipboard icons
5537 * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
5538 * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
5539 * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
5542 2001-08-16 Sven Neumann <sven@gimp.org>
5544 * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
5546 2001-08-15 Padraig O'Briain <padraig.obriain@sun.com>
5548 * gtk/gtkcellrenderertext.c:
5549 Avoid warning when specifying NULL for "attributes" property
5551 2001-08-15 Matthias Clasen <matthiasc@waldgeist.poet.de>
5553 * docs/debugging.txt: Add a warning about --enable-debug=no,
5554 some editorial changes.
5556 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
5558 * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h,
5559 gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update
5560 debugging info, remove unused debug flags. (#58330)
5562 Mon Aug 13 13:17:32 2001 Jonathan Blandford <jrb@redhat.com>
5564 * gtk/gtktreeselection.c (gtk_tree_selection_select_all):
5565 (gtk_tree_selection_select_all): Remove strict checking for rows.
5567 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
5569 * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips):
5570 Don't remove the tooltip window when the tip text changes. (#15891)
5572 Sun Aug 12 12:02:09 2001 Owen Taylor <otaylor@redhat.com>
5574 * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
5577 Sun Aug 12 10:39:12 2001 Owen Taylor <otaylor@redhat.com>
5579 * Makefile.am (EXTRA_DIST): Fix problem with trying to
5580 dist files from intl/, which is no longer there.
5582 2001-08-11 Hans Breuer <hans@breuer.org>
5584 * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
5585 gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c,
5586 gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c,
5587 gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c,
5588 gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
5589 gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
5591 * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
5592 gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
5593 GDK_TYPE_EVENT signals
5595 * gtk/gtkalignment.c : removed 'direct allocation bug',
5596 which Tim discovered while reading the patch
5598 Sat Aug 11 14:32:14 2001 Owen Taylor <otaylor@redhat.com>
5600 * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
5601 compat macros for push/pop/set_visual that were supposed
5602 to be added a long time ago, but got dropped.
5604 Fri Aug 10 16:55:53 2001 Tim Janik <timj@gtk.org>
5606 * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
5609 2001-08-07 Havoc Pennington <hp@pobox.com>
5611 * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
5613 * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
5614 some fixage is needed here, but nothing simple. Owen understands
5617 * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
5618 sizing and positioning. Also, fix bug in compute_geometry_hints
5619 (width/height confusion for setting min size).
5620 (gtk_window_move): new function
5621 (gtk_window_resize): new function
5622 (gtk_window_get_size): new function
5623 (gtk_window_get_position): new function
5624 (gtk_window_parse_geometry): new function
5626 * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
5627 (gtk_widget_get_size_request): new function
5628 (gtk_widget_get_usize): delete, that was a short-lived function
5630 (gtk_widget_set_usize): deprecate
5631 (gtk_widget_set_uposition): deprecate, make it a trivial
5632 gtk_window_move() wrapper
5633 (gtk_widget_class_init): remove x/y/width/height properties,
5634 add width_request height_request
5636 * demos/*: update to avoid deprecated functions
5638 * gtk/gtklayout.c: add x/y child properties
5640 * gtk/gtkfixed.c: add x/y child properties, and get rid of
5643 * tests/testgtk.c (create_window_sizing): lots of tweaks to window
5646 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
5647 configure events on toplevel windows are always in root window
5648 coordinates, following ICCCM spec that all synthetic events
5649 are in root window coords already, while real events are
5650 in parent window coords. Previously the code assumed that
5651 coords of 0,0 were parent window coords, which was
5654 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
5657 * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
5658 and GDK_HINT_USER_SIZE so we can set USSize and USPosition
5659 hints in gtk_window_parse_geometry()
5661 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
5662 new USER_POS USER_SIZE hints
5664 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
5666 * tests/prop-editor.c (properties_from_type): Use
5667 g_object_class_list_properties to get the param specs
5668 for a given type. (#58609)
5670 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
5672 * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
5673 free the text_aa parts. (#57549)
5675 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
5677 * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
5678 not the foreground color. (#57621)
5680 2001-08-09 Alexander Larsson <alexl@redhat.com>
5682 * gdk/win32/gdkfont-win32.c:
5683 Update to the new pango win32 api.
5685 2001-08-08 HideToshi Tajima <tajima@eng.sun.com>
5687 * gtk/gtkclipboard.c (request_text_received_func): ask apps for
5688 COMPOUND_TEXT instead of TEXT
5689 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
5690 interpret the return value of g_string_to_compound_text()
5693 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
5695 * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
5696 fail if iter is NULL. (#58347)
5698 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
5700 * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
5701 some off-by-one issues, fixing selection of line-ends. (#50323)
5703 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
5705 * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
5706 functions in order to make mouse operation work again in the
5707 color wheel. (#58604)
5709 2001-08-07 James Henstridge <james@daa.com.au>
5711 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
5712 the accelerator when the accel object is changed. Fixes bug
5715 2001-08-06 HideToshi Tajima <tajima@eng.sun.com>
5717 * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
5718 Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
5719 (gnome bugzilla #58202)
5721 2001-08-06 Havoc Pennington <hp@pobox.com>
5723 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole
5724 GDK_IS_WINDOW() branch of this was a bit screwed up, because
5725 it was expecting a GdkWindow, not a GdkWindowImplX11.
5727 Also, we were getting the window rect in screen coords
5728 and the screen rect in window coords then intersecting
5729 them; instead, get window rect in window coords.
5731 Finally, there were codepaths that resulted in a stuck server grab
5732 (when the window was fully onscreen, or on gdk_image_new()
5733 failure); make the server ungrab thing a bit more
5736 2001-08-06 Sven Neumann <sven@gimp.org>
5738 * gdk/gdkpango.c (gdk_pango_context_destroy):
5739 check if info->colormap != NULL before unref'ing it. It might have
5740 been set to NULL using gdk_pango_context_set_colormap().
5742 Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
5744 * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
5745 Fix conversion from float to int so that we don't get
5746 skew in the int => float => int roundtrip.
5747 (#58120, reported by Vitaly Tishkov). Also fix problem
5748 where if no alpha was set, the returned alpha
5749 from (say) set_current_alpha() was returned as 1, not 65535.
5751 Sun Aug 5 09:48:08 2001 Owen Taylor <otaylor@redhat.com>
5753 * gtk/gtklist.c (gtk_list_clear_items): Fix
5754 problem with selecting a new focus child.
5756 * gtk/gtklist.c (gtk_list_clear_items): Clear
5757 list->undo/list_focus_child after unparenting
5758 child, since unparenting the child can result
5759 in list->last_focus_child being set. (#58024)
5761 * Makefile.am (SUBDIRS): Add target specific pc
5762 files to DISTCLEANFILES.
5764 * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
5765 (58327, Matthias Clasen)
5767 Sat Aug 4 19:28:21 2001 Owen Taylor <otaylor@redhat.com>
5769 * tests/testgtk.c: Patch from Hans (with various modifications),
5770 to add the ability to use testgtk as a rough-and-ready
5771 benchmark. Try, 'testgtk --bench all:5' (if you want decent
5772 numbers, run without a window manager)
5774 2001-08-04 Alexander Larsson <alexl@redhat.com>
5776 * gdk/win32/gdkinput.c:
5777 Add #ifdef HAVE_WINTAB around wintab.h include.
5780 Removed marshals that have been moved to glib.
5781 Commented out plug and socket. They didn't compile for me
5784 2001-08-04 Hans Breuer <hans@breuer.org>
5786 * gtk/stocks-icons/makefile.msc : new file
5787 * gtk/makefile.msc.in : use it
5789 * gtk/gtkstyle.c : not all platforms do provide M_PI and
5790 friends, but luckily there is G_PI
5792 * gtk/gtk.def : updated
5794 * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP
5795 windows WS_POPUP, but only those without a parent. This fixes the
5796 mis-alignment between the selectable (temp, input only) window and
5797 the window text of GtkLabel.
5799 (gdk_window_show) : respect private->state when actually showing
5802 (gdk_window_set_transient_for) : Implementation from Wolfgang
5803 Sourdeau <wolfgang@contre.com> ported to 2.0 and added some
5804 error handling. Should fix #50586.
5806 * gdk/win32/gdkevents-win32.c : beautify log output
5808 2001-08-04 Michael Natterer <mitch@gimp.org>
5810 * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
5811 Need to show the image after adding it to the GtkImageMenuItem.
5812 This used to work without in testgtk because of the
5813 gtk_widget_show_all() at the end of the function.
5816 Tue Jul 31 22:59:33 2001 Tim Janik <timj@gtk.org>
5818 * gtk/gtknotebook.c (gtk_notebook_get_child_property):
5819 (gtk_notebook_set_child_property): fix finding of child's page,
5820 since we have to validly deal with labels and menus here as well.
5821 (gtk_notebook_get_child_property): fix warning.
5822 (gtk_notebook_class_init): property tab_pack is of type
5823 GTK_TYPE_PACK_TYPE (enum) not boolean.
5824 (gtk_notebook_find_child): don't always warn, we might be looking
5825 for a label or menu child.
5826 (gtk_notebook_map): fix mapping of panel.
5828 * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
5829 widget's mapped state, regardless of the value being set equals
5830 old settings, since things like REALIZED(parent) or MAPPED(parent)
5831 may have changed since the old value was set. make it an error to
5832 invoke this function on a toplevel widget.
5834 2001-07-31 Darin Adler <darin@bentspoon.com>
5838 Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
5840 * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
5843 Tue Jul 31 15:34:57 2001 Jonathan Blandford <jrb@redhat.com>
5845 * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops. Stupid
5846 scoping error pointed out by matthiasc@poet.de.
5848 2001-07-31 Sven Neumann <sven@gimp.org>
5850 * demos/gtk-demo/appwindow.c
5851 * demos/gtk-demo/item_factory.c
5852 * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
5854 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
5856 * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
5857 argument order for g_signal_has_handler_pending.
5859 Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
5861 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
5862 instead of long deprecated g_scanner_stat_mode().
5864 2001-07-29 Hans Breuer <hans@breuer.org>
5866 * gdk/makefile.msc : build in the backend dir after
5867 auto-generating files
5869 * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
5870 with code from win32-production-branch.
5872 * gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
5873 before calling DestroyWindow, which indirectly calls
5874 gdk_window_destroy_notify ()
5876 (performance patch merged from win32-production-branch)
5877 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments):
5878 Use PatBlt() instead of LineTo() when possible (solid single-pixel pen,
5879 R2_COPYPEN rop). It is claimed to be much faster.
5881 Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
5883 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
5884 add an "attributes" property to the text renderer for ATK.
5886 2001-07-26 Alex Larsson <alexl@redhat.com>
5888 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
5889 Initialize image->bits_per_pixel from the drawable, not from
5892 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
5893 Fix cast. argument is an IMPL already.
5895 2001-07-15 James Henstridge <james@daa.com.au>
5897 * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
5898 (gtk_window_remove_accel_group): same here.
5899 (gtk_window_key_press_event): same here.
5901 * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
5902 (gtk_widget_remove_accelerator): same here.
5903 (gtk_widget_remove_accelerators): same here.
5905 * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
5907 * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
5908 instead of GtkObject.
5910 * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
5913 * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
5914 pass a GObject to gtk_accel_group_entries_from_object.
5915 (gtk_item_factory_create_item): s/accel_widget/accel_object/
5917 * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
5919 * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
5921 * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
5922 GObjects can have accelerators set now. Add compatibility
5925 * gtk/gtkmarshal.list: add missing marshallers.
5927 * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
5928 accelerators on plain GObjects. gtk_accel_group_object_destroy
5929 has been converted into a weak reference, and
5930 gtk_accel_group_delete_entries is now a destroy notify for that
5933 2001-07-23 Ron Steinke <rsteinke@w-link.net>
5935 * gdk/gdkdraw.c: Added a check on the colormap depth to
5936 gdk_drawable_set_colormap()
5937 * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
5938 patch to fix colorsel and my patch to fix gdk_drawable_get_image()
5939 for pixmaps without visuals (more specifically, bitmaps)
5940 * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
5941 doesn't set a colormap with the wrong depth
5944 2001-07-22 Anders Carlsson <andersca@gnome.org>
5946 * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
5947 expander_height and expander_width properties with a single
5948 property, expander_size.
5949 (gtk_tree_view_init): Set the tab_offset to expander_size
5951 (gtk_tree_view_unrealize): Remove the expand/collapse
5952 timeout if it exists.
5953 (coords_are_over_arrow): Fix a small bug.
5954 (gtk_tree_view_motion_draw_column_motion_arrow): Use
5956 (gtk_tree_view_draw_focus): Use "treeview" instead of
5957 "add-mode" as detail when drawing the focus.
5958 (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
5959 instead of "add-mode" as detail when drawing the focus.
5960 (gtk_tree_view_deleted): If we have a node currently being
5961 expanded or collapsed, remove the timeout and set the node
5963 (gtk_tree_view_queue_draw_arrow): New function that just
5964 redraws the arrow of a node.
5965 (gtk_tree_view_draw_arrow): Use expander_size instead of
5966 expander_width/expander_height, also pass a different
5967 expander_style to gtk_paint_expander depending on the
5968 state of the node being drawn.
5969 (expand_collapse_timeout): New function for expanding
5970 or collapsing a node depending on the previous state.
5971 (gtk_tree_view_real_expand_row): Add timeout and set
5972 correct state for node being expanded.
5973 (gtk_tree_view_real_collapse_row): Add timeout and set
5974 correct state for node being collapsed.
5976 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
5977 information about the node currently being expanded or
5978 collapsed, and also a timeout id.
5980 * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
5981 with expander_style for draw_expander.
5983 * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
5985 (create_expander_affine): New function for creating an
5987 (apply_affine_on_point): New function for applying an
5989 (gtk_default_draw_expander): Modified to take expander_style
5990 instead of is_open, and to draw the rectangle rotated differently
5991 depending on the expander style.
5992 (gtk_paint_expander): Replace is_open with expander_style.
5994 * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
5996 * gtk/gtkenums.h: Add expander style enum.
5998 2001-07-21 Jonas Borgström <jonas@codefactory.se>
6000 * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
6001 value from gtk_tree_model_get_iter, the model might be empty.
6003 2001-07-20 Hans Breuer <hans@breuer.org>
6005 * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
6006 gdk/gdkinput.c like the other backends
6008 * gdk/win32/gdkinput-win32.h :
6009 * gdk/win32/gdkinput.c :
6010 * gdk/win32/gdkvisual-win32.c :
6011 * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
6012 GdkVisual GObjectification. UNTESTED for pen-devices because
6016 * gtk/gtk.def : updated externals
6018 * gtk/gtkiconfactory.c :
6019 * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL)
6020 before passing &error to functions to avoid strange crashes
6022 * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
6024 * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
6026 * gtk/makefile.msc.in : updated
6028 Thu Jul 19 15:35:32 2001 Owen Taylor <otaylor@redhat.com>
6030 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
6031 Add property support. (#51858)
6033 Thu Jul 19 14:56:33 2001 Owen Taylor <otaylor@redhat.com>
6035 * gtk/gtkaccellabel.c (gtk_accel_label_class_init)
6036 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
6037 Use Shift/Ctrl instead of Shft/Ctl. (#53807)
6039 Thu Jul 19 11:41:00 2001 Owen Taylor <otaylor@redhat.com>
6041 * gtk/gtkcolorsel.c: Add propery support (roughly
6042 based on patch from Lee Mallabone, #51014)
6044 * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
6045 deprecated, since we already g_warning() on it.
6047 Thu Jul 19 14:24:34 2001 Owen Taylor <otaylor@redhat.com>
6049 * gtk/gtkentry.c (gtk_entry_set_positions): Fix
6050 typo that sometimes caused selection not to work properly.
6052 * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
6053 entry when tabbing in. (#57743)
6055 * gtk/gtkentry.c (gtk_entry_motion_notify): If the
6056 user drags up above or down below the entry, move
6057 to the end or the beginning of the entry. (Suggestion
6058 from Jay Cox, #50940)
6060 * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
6061 a current selection, then when moving by chars or
6062 words, move to the end of the selection rather than
6063 from entry->current_pos. (Suggestion from Jay Cox,
6066 Thu Jul 19 12:14:28 2001 Owen Taylor <otaylor@redhat.com>
6068 * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
6069 set window->decorated. (Patch from Hidetoshi Tajima,
6072 Sat Jul 7 02:50:14 2001 Owen Taylor <otaylor@redhat.com>
6074 * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
6075 the widget/child realization/mapping invariants.
6077 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
6078 gtk_widget_[get/set]_child_visible() to control
6079 whether visible children of a mapped window are
6082 * docs/widget_system.txt: Updated for changes in
6083 container contract, and addition of GTK_CHILD_VISIBLE.
6085 * gtk/gtkcontainer.c: Add generic map()/unmap()
6086 functions that work for almost all containers.
6088 * gtk/gtknotebook.c gtk/gtkpacker.c: Use
6089 gtk_widget_set_child_visible() where necessary.
6091 * gtk/*.c: Remove excess map(), unmap(), and
6092 realization/mapping invariant enforcing code
6093 from many containers.
6095 Wed Jul 18 19:51:45 2001 Owen Taylor <otaylor@redhat.com>
6097 * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style):
6098 Get the foreground color from 'text', nor 'fg'. (#57568)
6100 Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com>
6102 * gtk/*.c: Patch from Matthias Clasen to remove remove
6103 all instances of g_return_if_fail (foo != NULL); that are
6104 immediately before a g_return_if_fail (GTK_IS_FOO (foo));
6105 since the second check catches the NULL anyways.
6107 Wed Jul 18 18:23:05 2001 Owen Taylor <otaylor@redhat.com>
6109 * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
6110 gtktreeview.c: Fix idles and timeouts to be properly surrounded by
6111 GDK_THREADS_ENTER()/LEAVE() pairs.
6113 * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
6114 to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
6115 pairs. (Problem found by M. Meeks)
6117 2001-07-18 Darin Adler <darin@bentspoon.com>
6119 * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
6120 that we don't get a g_warning message every time we register a new
6123 * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
6124 using pixel variable of the correct type.
6126 Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
6128 * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
6129 so that using X functions on a GdkWindow is possible, if
6132 * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
6133 and ts_origin of a GC, so that external parties can offset/restore
6134 a GC, when using gdk_window_get_internal_paint_info().
6136 2001-07-17 Darin Adler <darin@bentspoon.com>
6138 * .cvsignore: Ignore the sgml directory made by gtkdoc.
6139 * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
6140 instead of the deprecated gtk_window_set_policy.
6141 * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
6142 * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
6143 function to get rid of warning and some code too.
6144 * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
6146 * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
6148 * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
6150 * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
6151 (gdk_utf8_to_compound_text): Add missing const.
6152 * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
6153 * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
6154 cast and get rid of an unnecessary one.
6155 * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
6156 * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
6158 * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
6159 Remove unused local.
6160 * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
6162 * tests/testsocket.c: (add_child): Add cast so the printf format
6163 doesn't make us implicitly depend on what integer type
6164 gtk_socket_get_id returns.
6165 * tests/testtextbuffer.c: Add missing const.
6166 * tests/testtreefocus.c: (main): Remove unused local.
6167 * tests/treestoretest.c: (iter_remove): Remove unused local.
6168 (uppercase_value): Remove unused function.
6169 (make_window): Add statement to quiet the compiler's uninitialized
6172 Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
6177 (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
6178 (gtk_range_calc_layout): compute the new layout based on an
6179 adjustment->value being passed in as argument.
6180 (gtk_range_button_press): for button2 slider warps, first recalc
6181 the layout, then adjust the value. also, use update_slider_position()
6182 for adjusting the value, so we keep pixel quantisation at which we
6183 usually operate (upon motion or button releases). the reason for this
6184 is that, we can't change the adjustment upon button2 presses to a non
6185 quantised value and upon button2 release re-quantise the value since
6186 that'd alter the value even if we didn't get any motion events (causing
6187 unexpected scroll area warps upon release and/or slider pixel-jitter).
6188 (gtk_range_motion_notify): update the slider position from queried
6189 coordinates, not event coordinates.
6191 Fri Jul 13 09:47:52 2001 Tim Janik <timj@gtk.org>
6193 * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
6194 the default gc values are: width=0, CapBut, JoinMiter.
6196 2001-07-13 Anders Carlsson <andersca@codefactory.se>
6198 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
6199 into account the xpad and ypad when calculating the width and the
6200 height of the pixbuf cel.
6202 Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
6204 * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
6205 Rename to gtk_radio_menu_item_get_group(), add deprecated
6208 * gtk/gtkfilesel.c: Indentation fix.
6210 Thu Jul 12 17:33:00 2001 Owen Taylor <otaylor@redhat.com>
6212 * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias
6213 Hasselmann to fix warnings in compat macros.
6216 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix
6217 stupid wrong cast added in last patch.
6219 Thu Jul 12 16:51:34 2001 Owen Taylor <otaylor@redhat.com>
6221 * gtk/gtkwidget.c: Replace a couple of inappropriate calls to
6222 GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
6224 Thu Jul 12 14:06:19 2001 Owen Taylor <otaylor@redhat.com>
6226 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
6229 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
6230 NULL/FALSE return value confusion.
6232 * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
6233 problem when scrollbar completely fills range. (Patch
6234 from Matthias Clasen, #57047)
6236 Thu Jul 12 13:53:28 2001 Owen Taylor <otaylor@redhat.com>
6238 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
6239 clean up when handling events for move-resize emulation.
6240 (Problem traced down by Matthias Clasen, #57271)
6242 Thu Jul 12 13:43:27 2001 Owen Taylor <otaylor@redhat.com>
6244 * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
6245 gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
6246 gtk/gtkfontsel.c gtk/gtkhandlebox.c
6247 gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
6248 gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
6249 gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
6250 gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
6251 Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
6253 2001-07-09 Peter Williams <peterw@ximian.com>
6255 * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
6256 for when srcdir != builddir
6258 Mon Jul 9 12:50:51 2001 Jonathan Blandford <jrb@redhat.com>
6260 * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
6261 gtk_tree_model_get_iter_root.
6263 * gtk/gtkliststore.c: Add a bunch of g_return statements.
6264 (gtk_list_store_iter_n_children): Fix up.
6266 * gtk/gtktreestore.c: Add a bunch of g_return statements.
6268 Fri Jul 6 15:38:33 2001 Owen Taylor <otaylor@redhat.com>
6270 * gtk/gtkwidget.c (gtk_widget_class_init):
6271 G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
6272 restore some workingness.
6274 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix
6275 handle of window type for input-only windows.
6277 Thu Jul 5 21:53:46 2001 Owen Taylor <otaylor@redhat.com>
6279 * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
6280 Patch from Gregory Merchan to add
6281 gtk_button_box_set_secondary(), which separates
6282 the child into a separate group from the normal
6285 * gtk/gtkdialog.c: Make help buttons secondary by
6288 * gtk/gtkbbox.c: Added a child property "secondary".
6290 * gtk/testgtk.c: Turn on the help button for the
6291 color selector to check that it properly appears
6294 Mon Jul 2 01:09:37 2001 Owen Taylor <otaylor@redhat.com>
6296 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
6297 gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
6298 Add gdk_set_pointer_hooks() to allow pointer-querying to
6299 be hooked by an event record/playback system like GERD.
6302 Thu Jul 5 08:57:07 2001 Owen Taylor <otaylor@redhat.com>
6304 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
6305 in the right value of initial_emission to
6306 gtk_widget_set_style_internal (#57091)
6308 Wed Jul 4 23:17:04 2001 Owen Taylor <otaylor@redhat.com>
6310 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
6313 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
6314 with calling gtk_widget_set_style_internal() with
6315 the old style, not the new style. (#56989)
6317 Wed Jul 4 22:35:40 2001 Owen Taylor <otaylor@redhat.com>
6319 * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
6321 Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
6322 not GTK_WIDGET_GET_ANCESTOR ... see
6323 http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
6324 Indicate the best practice in the docs for gtk_widget_get_toplevel().
6326 * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
6327 so GtkPlug can give the correct signals when transforming
6328 from a child to a toplevel.
6330 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
6331 reparentation correctly.
6333 * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
6334 Propagate the previous_toplevel argument down properly.
6336 * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
6339 * gtk/gtkplug.[ch]: Add an "embedded" signal.
6341 * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
6344 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add
6345 functions gtk_plug_get_id(), gtk_socket_get_id(),
6346 to avoid the user having to worry about realization,
6349 * tests/testsocket.c: Extend to try out the new signals
6350 and gtk_plug/socket_get_id().
6352 * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
6353 setting of underline attributes.
6355 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
6356 DestroyNotify events from SubstructureNotifyMask
6358 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
6359 Switch GDK_WINDOW_TYPE (window) as needed.
6361 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
6362 allow creation of toplevel windows as children of
6365 * gtk/gtkplug.c: Remove hacks involving changing private
6366 fields of GdkWindow.
6368 * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make
6369 exactly the same signals and notification
6370 be emitted for local embedding as for inter-process
6373 2001-07-04 James Henstridge <james@daa.com.au>
6375 * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
6377 Mon Jul 2 16:53:25 2001 Owen Taylor <otaylor@redhat.com>
6379 * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
6380 XEMBED embedding add a _XEMBED_INFO property to the
6381 client with version number and a "mapped" flags.
6382 Use the mapped flag instead of the racy MapRequestEvent
6384 * gtk/gtksocket.c: Clean up the gtk_socket_steal()
6385 code to reliably set things (when the child is a passive
6386 embedder participating in the XEMBED protocol) intead
6387 of just being a hack for embedding non-participating
6388 programs. Fix various bugs and race conditions.
6390 * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
6391 work by simply making the GtkSocket the gtk parent
6392 of the GtkPlug. Set a flag in this case and make
6393 the GtkPlug work like a normal container by overriding
6394 methods such as check_resize and "chaining past" GtkWindow
6397 * gtk/gtkentry.c (gtk_entry_real_activate)
6398 gtk/gtkmain.c (gtk_propagate_event):
6399 Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
6401 * gtk/gtkwidget.c (gtk_widget_get_toplevel,
6402 gtk_widget_get_ancestor):
6403 Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
6404 might not give the expected result and recommend
6407 * tests/testsocket.c tests/testsocket_child.c
6408 tests/testsocket_common.c tests/Makefile.am: Extended
6409 to test different type of adding plugs to sockets
6410 (local,active,passive), and to test mapping/unmapping
6413 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
6414 mark the window as destroyed until after we
6415 called _gdk_windowing_window_destroy().
6416 (_gdk_windowing_window_destroy() may use GDK functions
6419 * gdk/x11/gdkinput.c: Remove the check for finalization -
6420 devices can be finalized under some circumnstances.
6422 * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix
6423 small problem with GDK_TYPE_DEVICE.
6425 2001-07-02 Havoc Pennington <hp@pobox.com>
6427 * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
6428 use constants not atoms.
6430 2001-07-02 James Henstridge <james@daa.com.au>
6432 * gtk/gtktextview.c (gtk_text_view_class_init): same here for
6433 PANGO_TYPE_TAB_ARRAY.
6435 * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
6436 for PANGO_TYPE_TAB_ARRAY.
6438 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
6439 s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
6441 * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
6442 the file. Remove Pango types from defs -- they are now defined in
6445 Mon Jul 2 06:35:10 2001 Tim Janik <timj@gtk.org>
6447 * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
6449 * gtk/gtkobject.c (gtk_object_destroy): invoke
6450 g_object_run_dispose().
6455 * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
6458 Sat Jun 30 20:44:48 2001 Owen Taylor <otaylor@redhat.com>
6460 * gtk/gtktypeutils.c (gtk_type_class): Remove
6461 change check for GTK_TYPE_OBJECT derivation to
6462 G_TYPE_OBJECTS - it's Tim-approved to use this
6463 for arbitary objects.
6465 * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
6466 prefix gtk_container_dequeue_resize_handler().
6468 * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
6469 to the hierarachy_changed signal, since you otherwise
6470 have to always keep that around.
6472 * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
6473 for extra argument to hierarchy_changed.
6475 Tue Jun 26 19:39:03 2001 Owen Taylor <otaylor@redhat.com>
6477 * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
6478 for style to mean "revert to default style"
6480 * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
6481 gtk_widget_restore_default_style): Make this functions
6482 deprecated aliases for gtk_widget_set_style (widget, NULL).
6484 * gtk/gtkwidget.[ch]: Remove:
6485 gtk_widget_set_default_style ()
6486 gtk_widget_push_style ()
6487 gtk_widget_pop_style ()
6488 These functions interact are overriden by RC files, and
6489 thus virtually useless, and complicated.
6491 Fri Jun 22 18:49:48 2001 Owen Taylor <otaylor@redhat.com>
6493 * gtk/gtkrc.c: Add a GtkRcContext structure to hold
6494 most of the previous global variables in gtkrc.c. This is
6495 in preparation for multi-head, since each screen can
6496 have different GtkSettings and RC information.
6500 * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
6501 GtkSettings parameter to GtkRcStyle::parse.
6503 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c:
6504 Add two new settings gtk-theme-name, gtk-key-theme-name,
6505 for RC files that are loaded by name after reading
6506 the default RC files.
6508 * gtk/gtkrc.c: Allow priorities for styles, as wll as
6511 * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
6512 and use it by default for RC files loaded via
6513 gtk-theme-name, gtk-key-theme-name.
6515 * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
6516 gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string)
6517 tests/testgtkrc: Require pathnames to be absolute.
6519 * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
6520 the source when parsing, since the operation of looking up a
6521 pixmap from an RC file depends on the parsing context.
6523 * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
6524 reset RC styles on all widgets when files are reparsed.
6526 * tests/testgtk.c (create_rc_file)
6527 gtk/gtkwindow.c (gtk_window_read_rcfiles):
6528 Simplify, now that gtk_rc_reparse_all() resets styles on
6531 * gtk/gtkmain.c (gtk_get_default_language): Fix broken
6534 * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
6535 GtkSettings argument.
6537 * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
6538 gtk_settings_get_global().
6540 * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
6541 to get the appropriate GtkSettings for a widget. (For now,
6542 just gets the default GtkSetttings.)
6544 * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
6545 gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
6548 * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
6549 getting a style for a path without actually having a widget.
6550 (Allows using a style for a subpart of a widget, for
6553 * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
6554 the RC files to be reloaded for just one GtkSettings
6555 (not sure how useful this really is.)
6557 * gtk/gtkrc.h: Deprecate
6558 gtk_rc_add_widget_name/widget_class/class_style
6560 2001-06-30 Alex Larsson <alexl@redhat.com>
6562 * gdk/linux-fb/gdkinput-none.c:
6563 * gdk/linux-fb/gdkinput.c:
6564 * gdk/linux-fb/gdkinputprivate.h:
6565 Convert GdkDevice to a GObject.
6567 * linux-fb/gdkprivate-fb.h:
6568 * linux-fb/gdkvisual-fb.c:
6569 Convert GdkVisual to a GObject.
6571 2001-06-29 Alex Larsson <alexl@redhat.com>
6576 * gdk/x11/gdkvisual-x11.c:
6577 Convert GdkVisual to a GObject.
6581 * gdk/x11/gdkinputprivate.h:
6582 * gdk/x11/gdkinput-gxi.c:
6583 * gdk/x11/gdkinput-none.c:
6584 * gdk/x11/gdkinput-x11.c:
6585 * gdk/x11/gdkinput-xfree.c:
6586 * gdk/x11/gdkinput.c:
6587 Convert GdkDevice to a GObject.
6589 Fri Jun 29 22:13:28 2001 Jonathan Blandford <jrb@redhat.com>
6591 * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
6592 to just plain new, fixing the number of columns, and column types
6595 * gtk/gtkliststore.c (gtk_list_store_new): ditto.
6597 * gtk/gtkcellrenderertext.c
6598 (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
6599 height to a specific font.
6601 * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
6603 * tests/*c: change to work with new store models.
6605 2001-06-29 Havoc Pennington <hp@redhat.com>
6607 * Throughout: fixes to compile with G_DISABLE_COMPAT
6608 (s/g_signal_connectc/g_signal_connect/,
6609 s/g_signal_newc/g_signal_new/,
6610 s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
6612 Fri Jun 29 03:14:16 2001 Jonathan Blandford <jrb@redhat.com>
6614 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
6615 add path argument to selection callbacks.
6617 Fri Jun 29 00:13:34 2001 Jonathan Blandford <jrb@redhat.com>
6619 * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
6620 walk through a model in a depth first manner, with the option to
6623 Fri Jun 8 18:52:10 2001 Jonathan Blandford <jrb@redhat.com>
6625 * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
6626 <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
6627 column and follow it when draged, rather than a location in the
6628 view. "expander_column" property and drawing functions changed
6629 accordingly. Fixes bug #55942.
6631 (gtk_tree_view_{set,get}_expander_column): Now works with a
6632 GtkTreeViewColumn* instead of int.
6634 Thu Jun 28 22:53:18 2001 Owen Taylor <otaylor@redhat.com>
6636 * gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init().
6638 2001-06-28 Havoc Pennington <hp@pobox.com>
6640 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
6641 image data to the screen, using a server grab to avoid race
6644 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
6645 check for NULL return from gtk_image_new_from_stock(), it never
6647 (gtk_item_factory_create_item): fix bug where we parsed the stock
6648 ID as an inline pixbuf
6650 * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
6652 * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
6653 support (should be using binding set here)
6655 * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
6656 support (should be using binding set here)
6658 * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
6661 * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
6663 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
6665 * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
6667 * gtk/gtkimcontextsimple.c
6668 (gtk_im_context_simple_filter_keypress): keypad
6670 * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
6672 * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
6674 * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
6676 * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
6677 should be binding-setted)
6679 * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
6681 * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
6683 * gtk/gtkcalendar.c: numeric keypad fixes
6685 * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
6688 * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
6691 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
6692 clip the render area to the drawable's clip region in advance,
6693 so we don't get data from the server that we don't need.
6695 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
6696 check return value of gdk_pixbuf_get_from_drawable(), fall back
6697 to bilevel alpha if we can't get the pixbuf to composite against.
6699 * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
6701 * gdk/gdkimage.c (gdk_image_get_colormap): add
6702 gdk_image_set_colormap, gdk_image_get_colormap
6704 * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
6705 take a region of the image, instead of converting the entire
6708 * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
6709 keybinding signal. Add default bindings for it. Add default
6710 handler for show_help that shows the tooltip for the widget.
6712 * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
6713 "close" keybinding signal, remove key press handler.
6715 * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
6716 it's not our usual practice to leave a deprecated function around
6717 with a runtime warning, plus we don't want it to appear in docs,
6718 plus if we make them yellow no one will want to change them
6721 Thu Jun 28 23:53:31 2001 Tim Janik <timj@gtk.org>
6723 * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
6724 GTK_WIDGET_REALIZE() for resize queueing.
6726 * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
6727 GTK_WIDGET_REALIZE() for post event delivery destruction upon
6730 * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
6731 sompensate for former (pre-2.0) connect_after() facility.
6732 (gtk_widget_send_expose):
6733 (gtk_widget_event): assert the widget is realized, since event delivery
6734 to non-realized widgets is essentially a bug. event handlers should
6735 be able to unconditionally rely on widget->window (unless they
6736 emit events on their own which can trigger widget destruction).
6737 (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
6738 logic. event delivery happens as follows:
6739 a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
6740 b) if !was_handled in (a) and the widget is still realized, emit event-
6741 specific signal (RUN_LAST handler). returns was_handled.
6742 c) emission of GtkWidget::event-after for notification if the widget is
6743 still realized (regardless of was_handled from previous stages, no
6744 class handler). no return value.
6745 d) was_handled gets passed on to caller, to determine further
6746 propagation. if the widget got unrealized meanwhile, was_handled
6747 is returned as TRUE.
6749 * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
6750 gdk_event_get_coords().
6752 Thu Jun 28 17:18:41 2001 Tim Janik <timj@gtk.org>
6754 * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
6755 age 0, binary age 0. depend on glib 1.3.7.
6757 * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
6759 * gtk/gtkmenubar.c: same here.
6761 * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
6763 * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
6765 * gtk/gtkentry.c (gtk_entry_focus_in): same here.
6767 * gtk/gtkmenubar.c (add_to_window): likewise.
6769 * gtk/gtktextbtree.c: and here...
6771 * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
6773 * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
6775 * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
6777 * gtk/gtktreeviewcolumn.c:
6778 (_gtk_tree_view_column_set_tree_view): yet again.
6780 * demos/gtk-demo/images.c (progressive_timeout): demonstrate
6781 signal connections without g_signal_connect_data().
6783 * demos/gtk-demo/stock_browser.c (do_stock_browser): second
6786 * demos/testpixbuf.c (main): running out of equality phrases for the
6787 ChangeLog, but had to adapt connections here as well.
6789 * demos/testanimation.c (progressive_timeout): and for the fun of it,
6790 tackled this the same way.
6792 * tests/testtext.c (create_view): ok, it's becoming a pain at this
6793 point, but had enough enery for one more fix.
6795 * tests/testtreecolumns.c (main): stand up man, do your work!
6797 * tests/testtreeview.c (set_columns_type): ok, this is the last file i
6798 fix, either that's been all of it or CVS gtk is broken yet again.
6800 2001-06-29 James Henstridge <james@daa.com.au>
6802 The following changes correspond to bug #56812
6804 * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
6807 * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
6810 2001-06-19 Havoc Pennington <hp@pobox.com>
6812 * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
6813 for mapping a window without fooling with stacking order, but
6814 updating the "withdrawn" flag
6816 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
6817 filtering as soon as possible, moving move resize and wmspec_check
6818 handling after the event filter. Make default filter apply to all
6819 events, not just those with no GdkWindow wrapped around the X
6820 window. Fix a FIXME about how the window could be a pixmap using
6821 RTTI; this of course assumes GDK_IS_WINDOW() is optimized.
6823 Also, be robust against events not on a known GdkWindow.
6825 * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
6826 gdk_x11_ungrab_server): export reference-counted server grabs, so
6827 other people can grab server over a GDK function that also does
6830 Wed Jun 27 19:40:31 2001 Jonathan Blandford <jrb@redhat.com>
6832 * gtk/gtktreeviewcolumn.c
6833 (gtk_tree_view_column_pack_start_cell_renderer): New function to
6834 reflect that you can (hypothetically) pack cell renderers into a
6836 (gtk_tree_view_column_pack_end_cell_renderer): ditto.
6837 (gtk_tree_view_column_cell_is_visible): Move more functionality to
6839 (gtk_tree_view_column_cell_can_focus): Move more functionality to
6842 * gtk/gtktreeview.c: Move to use new column-packing code.
6843 (gtk_tree_view_real_expand_row): remove totally braindead code.
6844 (gtk_tree_view_real_collapse_row): ditto.
6846 2001-06-27 Kjartan Maraas <kmaraas@gnome.org>
6848 * gtk/gtktreeviewcolumn.c: Fix a typo.
6850 2001-06-26 Joel Becker <jlbec@evilplan.org>
6852 * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
6853 at the end of the file
6855 2001-06-26 Havoc Pennington <hp@redhat.com>
6857 * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
6859 2001-06-26 Havoc Pennington <hp@redhat.com>
6861 * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
6864 Tue Jun 26 12:59:28 2001 Jonathan Blandford <jrb@redhat.com>
6866 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
6867 stupid missing statement
6869 * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
6870 private function for ATK. It notifies you of how many _visible_
6871 children are deleted when a node is deleted. Should be used by
6874 Tue Jun 26 11:06:34 2001 Owen Taylor <otaylor@redhat.com>
6876 * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
6877 Use new pango_context_get_metrics() to fix problems
6878 with font lists in descriptions. (#56184, reported by
6881 Tue Jun 26 10:04:30 2001 Tim Janik <timj@gtk.org>
6883 * gtk/gtkiconfactory.c:
6884 * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
6885 item factory so inlined pixbufs actually work.
6887 2001-06-25 Havoc Pennington <hp@redhat.com>
6889 * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
6890 s/RESIZEABLE/RESIZABLE/
6892 * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
6894 2001-06-25 Alexander Larsson <alexl@redhat.com>
6897 Added --enable-fbmanager. This is some experimental code
6898 that lets several GtkFB apps coordinate their access to the
6902 Added ENABLE_FB_MANAGER.
6904 * gdk/linux-fb/Makefile.am:
6905 Added gdkfbmanager and gdkfbswitch.
6907 * gdk/linux-fb/gdkkeyboard-fb.c:
6908 * gdk/linux-fb/gdkmouse-fb.c:
6909 * gdk/linux-fb/gdkprivate-fb.h:
6910 Split device init and open so that
6911 they can be opened and closed while switched
6914 * gdk/linux-fb/gdkmain-fb.c:
6915 Add the basic manager communication.
6917 * gdk/linux-fb/gdkrender-fb.c:
6918 Don't update to the shadow fb if we're
6919 blocked by the fb manager.
6921 Sun Jun 24 22:15:16 2001 Owen Taylor <otaylor@redhat.com>
6923 * docs/Changes-2.0.txt: Add note about child property
6926 Sun Jun 24 21:34:32 2001 Owen Taylor <otaylor@redhat.com>
6928 * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
6929 drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
6931 * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
6932 with un'reffing wrong list reported by Jeff Franks.
6934 * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
6936 * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
6937 for the default icon. Remove inline XPM.
6939 * gtk/gtkstock.h gtk/gtkiconfactory.c:
6940 Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
6941 is used for GTK_STOCK_DND, but it is a bit too small.)
6943 * gtk/stock-icons/stock_dnd_multiple.png
6944 gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
6946 * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
6947 TRUE when starting a drag. In other cases, we are
6948 just observing. (#52995)
6950 * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add
6951 function to set the icon for a drag from a GdkPixbuf
6954 * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}):
6955 Likewise, for drag sources.
6957 * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
6958 (Now should be done using the stock system.)
6960 Sun Jun 24 12:06:47 2001 Owen Taylor <otaylor@redhat.com>
6962 * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size):
6963 Removed - didn't work and not particularly useful anyways
6966 Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com>
6968 * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
6969 introduced last night that was making things decidedly not work.
6971 * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
6972 so that we have getter/setter pairing everywhere it makes
6975 * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
6976 Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
6977 deprecated compat macro. (#55516)
6979 * gtk/gtklabel.[ch]: Add functions
6980 gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
6981 gtk_label_set_label(), which mirror the property API for GtkLabel.
6982 Make gtk_label_get_attributes() only reflect the attributes
6983 set by gtk_label_set_attributes.
6985 * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
6986 from gtk_notebook_set_page().
6988 Sat Jun 23 18:02:46 2001 Owen Taylor <otaylor@redhat.com>
6990 * configure.in: Fix tests for XShm.h.
6992 * gdk/x11/gdkimage-x11.c: Cleanup error handling in
6993 gdk_image_new() by use of goto, properly use g_object_unref().
6995 Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
6997 * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
6998 calls, as GdkImage is an object. these should be g_obejct_unref()
6999 instead but that won't work because of the g_error() statement
7000 in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
7001 to spot these places.
7003 Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
7005 * modules/input/gtkimcontextxim.c: Fixup some problems with
7006 text length handling in error cases.
7008 * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
7009 a bit to make test actually warn on attempt to allocation
7010 a negative size. (#56101, Matthias Clasen)
7012 Fri Jun 22 14:06:08 2001 Jonathan Blandford <jrb@redhat.com>
7014 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7015 noticed by Brian Cameron.
7016 (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
7019 2001-06-22 Hans Breuer <hans@breuer.org>
7021 * gdk/gdk.def : updated externals
7023 * gdk/win32/gdkdrawable-win32.c : corrected some casts
7026 * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
7027 to translate coordinates to the internal > 16 bit system
7028 Try to handle WM_WINDOWPOSCHANGED to get better performance for
7029 when moving/resizing
7031 * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
7032 and gdk_keymap_get_direction (). The latter is untested for
7035 * gtk/gtk.def : updated externals
7037 * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
7038 from pango_language_from_string (), not an already freed pointer
7040 * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be
7041 binary (-kb) to be useable on windoze
7043 2001-06-21 Alexander Larsson <alexl@redhat.com>
7045 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
7046 Update to new PangoLanguage changes.
7048 * gtk/gtkwindow-decorate.c:
7049 * gtk/gtkwindow.[ch]:
7050 Added setting argument to gtk_window_set_has_frame ()
7052 Thu Jun 21 13:42:01 2001 Owen Taylor <otaylor@redhat.com>
7054 * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
7055 the case without XKB properly.
7057 * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
7058 unused gtk_rc_auto_parse variable.
7060 * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
7061 Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
7062 longer needed with GdkPixbuf.
7064 * gtk/gtkrc.c (_gtk_rc_init): Make private.
7066 Fri Jun 15 16:26:12 2001 Owen Taylor <otaylor@redhat.com>
7068 * gtk/gtkentry.h: Mark deprecated functions with
7069 GTK_DISABLE_DEPRECATED.
7071 Mon Jun 11 18:15:16 2001 Owen Taylor <otaylor@redhat.com>
7073 * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
7075 * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
7077 * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
7078 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
7079 gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
7080 gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
7081 to recent changes in Pango.
7083 * tests/testgtk.c: Set language tags with gtk_label_set_markup()
7084 to test whether the basic engine honors them.
7086 Thu Jun 21 02:13:40 2001 Tim Janik <timj@gtk.org>
7088 * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
7089 gtk_container_child_get_property().
7091 Wed Jun 20 19:19:15 2001 Jonathan Blandford <jrb@redhat.com>
7093 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
7094 (gtk_tree_view_move_cursor_page_up_down): implement.
7096 Wed Jun 20 05:32:05 2001 Tim Janik <timj@gtk.org>
7098 * gtk/gtkspinbutton.c: make maximum digits compile time configurable
7099 via MAX_DIGITS and up to 20. 5 was just ridiculously small.
7100 don't use automatic fixed size buffer for printf-ing floats, doubles
7101 can expand to really _huge_ strings, use g_strdup_printf() instead.
7103 Wed Jun 20 04:28:24 2001 Tim Janik <timj@gtk.org>
7105 * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
7106 construct property in 1.2 and still needs to be.
7108 * gtk/gtkwidget.c: "composite_child" is not a settable property.
7110 Tue Jun 19 19:13:19 2001 Jonathan Blandford <jrb@redhat.com>
7112 * gtk/gtkliststore.c (gtk_list_store_clear):
7113 * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
7116 Mon Jun 18 02:00:49 2001 Tim Janik <timj@gtk.org>
7118 * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
7121 * gtk/gtk.h: disabled GtkPacker compilation.
7123 * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
7125 * gtk/gtknotebook.c:
7127 * gtk/gtkbox.c: ported this over to child properties.
7129 * gtk/gtksettings.c: fetch class properties via
7130 g_object_class_list_properties().
7132 * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
7133 child arg interface. use gobjectnotifyqueue.c for child property
7136 * gtk/gtkwidget.[hc]: provide necessary means for container child
7137 properties, i.e. ::child_notify signal,
7138 gtk_widget_freeze_child_notify(),
7139 gtk_widget_child_notify(),
7140 gtk_widget_thaw_child_notify().
7142 * tests/testgtk.c: removed inferior property handling code, for
7143 property editing, a generic module should be used, and GLE
7144 coincidentally fullfills that purpose.
7146 * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
7147 needs to be adapted to g_object_class_list_properties() before this
7150 Mon Jun 18 20:06:10 2001 Jonathan Blandford <jrb@redhat.com>
7152 * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
7153 test if a node is expanded.
7155 Mon Jun 18 19:41:38 2001 Jonathan Blandford <jrb@redhat.com>
7157 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7158 where collapsing a selected row would result in the cursor/anchor
7161 Fri Jun 15 18:53:48 2001 Jonathan Blandford <jrb@redhat.com>
7163 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
7164 gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.
7165 * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
7166 Now I can really reorder/sort all Store widgets. treesorttest
7167 seems to just work now.
7168 * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
7169 testtreesort worked through a big coincidence all this time.
7170 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
7172 * tests/testtreecolumns.c: Big 'ol warning at the top letting
7173 people know that this code should never ever ever be copied.
7175 2001-06-15 Jonas Borgström <jonas@codefactory.se>
7177 * gtk/gtkwindow.h: Fixed a small typo, it should be
7178 GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
7181 2001-06-14 Havoc Pennington <hp@redhat.com>
7185 * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
7186 GTK_DISABLE_DEPRECATED
7188 Thu Jun 14 19:21:27 2001 Jonathan Blandford <jrb@redhat.com>
7190 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops. Forgot
7191 this a couple months ago. Now GtkTreeStore sort of sorts. I'll
7192 finish it off tonight, though it basically works now when it's a
7193 list. Also, I have a sinking feeling neither GtkTreeStore or
7194 GtkListStore actually resort when adding a new item. I'll look
7197 2001-06-14 Havoc Pennington <hp@redhat.com>
7199 * demos/gtk-demo/main.c (load_file): fix bug identified by
7200 warnings I just added to gtktextbuffer
7202 2001-06-14 Havoc Pennington <hp@redhat.com>
7204 * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
7206 * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
7208 * gtk/gtktextbtree.c: don't leak node data all over the place.
7210 * demos/gtk-demo/main.c (main): create fontify tags for the right
7213 * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
7214 to mention tags in the same table can't have the same name,
7215 suggested by Skip Montanaro
7217 2001-06-11 Havoc Pennington <hp@redhat.com>
7219 * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning
7220 for trying to add two tags with same name to the tag table
7222 * demos/gtk-demo/main.c (main): fix colors ;-)
7224 `Fri Jun 8 17:56:52 2001 Owen Taylor <otaylor@redhat.com>
7226 * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
7227 that allows grouping together multiple windows so that grabs
7228 within that set of windows only affect those windows.
7230 * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
7231 signal for notification when a widget becomes shadowed
7232 by a grab or is no longer shadowed by a grab.
7234 * gtk/gtkwidget.c (gtk_widget_propagate_state)
7235 gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
7236 insenstive widgets to maintain a grab.
7238 2001-06-14 Alexander Larsson <alexl@redhat.com>
7240 * docs/README.linux-fb:
7241 Add some example config files that can be used with the URW fonts.
7243 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
7244 Set up the color ramps for DirectColor mode.
7246 2001-06-11 Havoc Pennington <hp@redhat.com>
7250 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
7252 * gdk/linux-fb/gdkwindow-fb.c:
7253 Unify shaped window code and make it repaint the area that used
7254 to be part of the shape, but isn't anymore.
7256 2001-06-11 Havoc Pennington <hp@redhat.com>
7260 * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
7262 * gtk/Makefile.am: glib_genmarshal already contains top_builddir
7264 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
7266 * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
7267 Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
7268 passes zero instead, so do we.
7270 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
7272 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
7273 Deep copy dash_list too.
7274 (_gdk_fb_gc_new): Set default cap_style before
7277 2001-06-12 Alexander Larsson <alla@lysator.liu.se>
7279 * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
7280 gdk_keymap_get_direction): New functions.
7282 Tue Jun 12 12:41:27 2001 Jonathan Blandford <jrb@redhat.com>
7284 * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
7285 gtk_tree_model_get_flags by adding a second flag for atk.
7287 * gtk/gtktreemodel.c: make cursor behavior interact better with
7290 Mon Jun 11 12:43:08 2001 Jonathan Blandford <jrb@redhat.com>
7292 * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
7293 expand_row/collapse_row to be 2 signals each -- test_expand_row
7294 and row_expanded as well as test_collapse_row and row_collapsed.
7296 2001-06-10 Anders Carlsson <andersca@codefactory.se>
7298 * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
7299 signal name to be changed instead of selection_changed.
7301 2001-06-08 Havoc Pennington <hp@redhat.com>
7303 * gtk/gtkentry.c (gtk_entry_class_init): add read-only
7304 "scroll_offset" property for notification when the layout offsets
7306 (gtk_entry_adjust_scroll): add notify for scroll_offset
7307 (gtk_entry_layout_index_to_text_index): function to compensate for
7308 preedit string when doing coordinate stuff on the entry's layout
7309 (gtk_entry_text_index_to_layout_index): inverse function
7310 (gtk_entry_get_layout_offsets): hook to get current position of
7312 (gtk_entry_get_layout): hook to get the layout itself.
7314 * gtk/gtklabel.c (gtk_label_get_layout): new function
7316 Fri Jun 8 19:49:29 2001 Jonathan Blandford <jrb@redhat.com>
7318 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
7320 (gtk_tree_view_focus): Fix merge conflict.
7322 Fri Jun 8 18:41:30 2001 Jonathan Blandford <jrb@redhat.com>
7324 * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
7325 clean up cursor handling.
7327 2001-06-08 Havoc Pennington <hp@redhat.com>
7329 * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
7332 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
7335 2001-06-08 Alex Larsson <alexl@redhat.com>
7337 * gtk/gtkcompat.h.in:
7338 Added compat macros for all old GTK_TYPE_GDK_xxx types.
7341 2001-06-08 Havoc Pennington <hp@redhat.com>
7343 * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
7346 2001-06-08 Havoc Pennington <hp@redhat.com>
7348 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
7349 don't call g_list funcs on GSList
7351 * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
7352 gtk_container_focus(), since some widgets have focusable locations
7353 which are not other widgets. These widgets should not have to be
7354 containers just to manage the focus. For example, GtkHSV is
7355 currently a container for no good reason. Also, this cleans
7356 up the "if (is_container && is_sensitive && is_drawable)
7357 container_focus ()" mess in widget implementations.
7359 * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
7360 function, and have it just call gtk_widget_child_focus().
7362 * gtk/gtkhsv.c: derive from widget not container
7364 Throughout: fix to reflect GtkContainer::focus change
7366 Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
7368 * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
7369 range. Fix bug #55921
7371 * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
7374 Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
7376 * gdk/gdkkeys.[ch]: Add a direction-changed signal,
7377 and gdk_keymap_get_current_direction().
7379 * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
7380 gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
7381 the current locked group, use it to set the keymap
7384 * gtk/gtksettings.c: Add a new gtk-split-cursor setting
7385 to determine whether we draw a split cursor or use
7386 a jumping cursor based on the current direction.
7388 * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
7389 Obey the split cursor setting.
7391 Fri Jun 8 11:57:50 2001 Owen Taylor <otaylor@redhat.com>
7393 * gtk/gtkimmulticontext.c (activate_cb): Only activate
7394 when toggling on, not when toggling off... (#55906)
7396 Wed Jun 6 10:37:07 2001 Owen Taylor <otaylor@redhat.com>
7398 * gtk/gtkwidget.c (gtk_widget_set_double_buffered):
7399 s/gdk_window_begin_paint/gdk_window_begin_paint_region/
7400 in docs. (#55812, Vitaly Tishkov)
7402 2001-06-08 Anders Carlsson <andersca@codefactory.se>
7404 * demos/gtk-demo/main.c (create_tree): Changed signal name from
7405 selection_changed to changed in signal connection to GtkTreeSelection,
7406 also used g_signal_connectc since GtkTreeSelection is now a GObject.
7408 Thu Jun 7 18:25:42 2001 Jonathan Blandford <jrb@redhat.com>
7410 * gtk/gtktreeselection.c: Now it's a GObject instead of a
7411 GtkObject. The GtkTreeSelection::selection_changed signal is now
7412 the GtkTreeSelection::changed signal.
7414 * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
7417 * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
7420 2001-06-07 Havoc Pennington <hp@redhat.com>
7422 * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
7424 2001-06-07 Havoc Pennington <hp@redhat.com>
7426 * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
7427 (not tested yet because with absolute path to srcdir I can't build
7428 atk, but it was broken anyway so this may help)
7430 2001-06-07 Havoc Pennington <hp@redhat.com>
7432 * configure.in: output m4macros/Makefile
7434 Wed Jun 6 21:59:16 2001 Jonathan Blandford <jrb@redhat.com>
7436 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
7437 buttons. Fixes #55460 reported by matthiasc@poet.de.
7439 Wed Jun 6 21:18:54 2001 Jonathan Blandford <jrb@redhat.com>
7441 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
7442 expansion/collapsing so it only happens in one place.
7443 (gtk_tree_view_real_expand_row): ditto.
7445 2001-06-07 Havoc Pennington <hp@redhat.com>
7447 * tests/Makefile.am: add missing -I flag
7449 * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
7451 * configure.in: use pkg-config to see if GModule is
7452 supported; fix to properly turn on included loaders
7453 when GModule isn't supported; don't use AC_CHECK_LIB
7454 when libs are not installed yet
7456 * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
7458 * Makefile.am (SUBDIRS): add m4macros subdir
7460 * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
7463 Wed Jun 6 19:31:11 2001 Jonathan Blandford <jrb@redhat.com>
7465 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
7466 reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
7468 Wed Jun 6 20:01:38 2001 Jonathan Blandford <jrb@redhat.com>
7471 (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
7472 bindings to expand and collapse rows.
7473 (gtk_tree_view_real_select_cursor_parent): New key binding.
7474 (gtk_tree_view_real_toggle_cursor_row): New key binding.
7476 * gtk/gtkmarshal.list: new
7477 marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
7479 2001-06-06 Havoc Pennington <hp@redhat.com>
7481 * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
7483 * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
7484 Down to move visually rather than logically, since it confuses
7485 people. Add -/+ and Ctrl--/+ bindings for logical movement.
7487 2001-06-06 Alex Larsson <alexl@redhat.com>
7489 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
7490 Fix up error messages.
7492 Wed Jun 6 10:34:42 2001 Owen Taylor <otaylor@redhat.com>
7494 * gtk/gtktooltips.h: Include gtkwidget.h
7495 (#55798, Karl Nelson)
7497 * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
7498 a valid latin-1 character. (Marc Lehmann, #35467)
7500 * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment.
7501 (Marc Lehmann, #35467)
7503 2001-06-05 Alex Larsson <alexl@redhat.com>
7505 * demos/gtk-demo/appwindow.c (do_appwindow):
7506 Don't swap the order of the args to gtk_widget_destroyed.
7508 * tests/testgtk.c (destroy_properties):
7509 Don't crash when the properties window is destroyed.
7511 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
7512 Use with_mnemonics to handle the case of stock items with
7513 underscores in them.
7515 2001-06-05 Havoc Pennington <hp@redhat.com>
7517 * gtk/gtktextiter.c (gtk_text_iter_order): rename from
7518 gtk_text_iter_reorder
7520 2001-06-05 Havoc Pennington <hp@redhat.com>
7522 * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
7524 2001-06-05 Havoc Pennington <hp@redhat.com>
7526 * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value
7527 to the range that was set
7529 * gtk/gtkrange.c: add value_changed signal, primarily
7530 intended for use with GtkScale
7531 (gtk_range_set_increments): new function
7532 (gtk_range_set_range): new function with weird name
7533 (gtk_range_set_value): new function
7534 (gtk_range_get_value): new function
7536 * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename
7537 from gtk_spin_button_get_value_as_float(). Compat #define
7538 added for get_value_as_float.
7540 * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
7542 * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
7544 Tue Jun 5 14:57:18 2001 Jonathan Blandford <jrb@redhat.com>
7546 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
7548 Mon Jun 4 12:41:25 2001 Owen Taylor <otaylor@redhat.com>
7550 * gtk/gtkwidget.h: Deprecate gtk_widget_set().
7552 * tests/testgtk.c (create_tooltips): Remove usage of
7555 2001-06-05 Havoc Pennington <hp@redhat.com>
7557 * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
7559 Applying patch from Jeff Franks, with function docs added.
7561 * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
7562 remove call to set_mnemonic_widget, change docs a bit.
7564 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
7567 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
7570 * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
7572 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
7574 (gtk_radio_button_new_with_mnemonic_from_widget): new function
7576 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
7579 * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
7582 * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on
7583 auto-selection of mnemonic widget.
7585 Mon Jun 4 15:05:24 2001 Jonathan Blandford <jrb@redhat.com>
7587 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
7588 Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
7589 (gtk_tree_view_column_set_min_width): ditto.
7591 Tue Jun 5 11:04:06 2001 Owen Taylor <otaylor@redhat.com>
7593 * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS):
7594 s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
7596 Mon Jun 4 12:50:11 2001 Owen Taylor <otaylor@redhat.com>
7598 * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
7601 2001-06-04 Havoc Pennington <hp@pobox.com>
7603 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
7604 r eleases for buttons 6, 7
7606 2001-06-04 Havoc Pennington <hp@redhat.com>
7608 * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
7609 (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
7612 2001-06-04 Havoc Pennington <hp@redhat.com>
7614 * gtk/gtktextview.c (gtk_text_view_size_request): handle case
7615 where text_view->layout == NULL by assuming its size is 0,
7616 i.e. same as if we haven't done any reflow. Reported by
7617 Hidetoshi Tajima #55448
7619 2001-06-04 Havoc Pennington <hp@redhat.com>
7621 * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
7622 and 7 for scroll left/right, from Thomas Broyer
7624 2001-05-10 Havoc Pennington <hp@redhat.com>
7626 * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
7627 we need to parse the xsetting as if it were an RC file string.
7629 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
7630 value of palette from settings, not from static variable
7632 * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
7633 xsettings translation table
7635 * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because
7636 hardcoding the toolbar style conflicts with new customizable
7637 toolbar style philosophy
7638 (gtk_toolbar_class_init): add settings for default toolbar style;
7639 these are used unless the app specifically forces a toolbar style
7641 * gtk/gtksettings.c (settings_install_property_parser): only
7642 return at the start if we warn and parser == NULL
7644 * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
7645 palette changed handler so we don't notify dead color selections
7647 * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
7648 xthickness/ythickness of 0 or 1 properly
7649 (gtk_default_draw_resize_grip): clear the background behind the
7650 resize grips, and align to bottom right if we square the
7653 * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on
7654 statusbar label to 1, so it doesn't make toplevels resize oddly
7655 (gtk_statusbar_size_request): add grip size to request
7656 (gtk_statusbar_size_allocate): hack so the hbox still works with
7657 the grip size in the request
7659 * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix
7660 bug where showing all on a toplevel makes the toolbar
7661 button text appear despite the toolbar mode
7663 * gtk/gtkmenubar.c: add internal padding style property
7665 * gtk/gtktoolbar.c: Add internal padding style property; add
7666 shadow type style property
7668 * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
7669 state; and put Container::border_width outside the frame
7671 * gtk/gtktextview.c: don't draw focus rectangle if we're in
7672 interior focus mode, we just use blinking cursor
7674 2001-06-04 Havoc Pennington <hp@redhat.com>
7676 * configure.in: Make gdk-pixbuf have same version number as GTK
7678 2001-06-04 Havoc Pennington <hp@redhat.com>
7680 * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on
7681 digits greater than 6. If there actually are limits (which there
7682 likely aren't), should clamp to them not warn.
7683 (gtk_spin_button_new_with_range): don't take log of 0
7684 (gtk_spin_button_size_request): use digits to compute size
7685 request, rather than step increment.
7687 * tests/testgtk.c (create_spins): test larger values of digits
7689 * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
7690 font on map not expose, so we don't get weirdness during scrolling
7692 2001-06-04 Havoc Pennington <hp@redhat.com>
7694 * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
7695 Sam Solon, bug #54577, update value even if not drawable.
7697 2001-06-04 Havoc Pennington <hp@redhat.com>
7699 * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
7700 SCROLL_LEFT, reported by Thomas Broyer.
7702 2001-06-04 Havoc Pennington <hp@redhat.com>
7704 * gtk/gtkrange.c (gtk_range_adjustment_value_changed):
7705 Process updates immediately, to prevent funny lag effect
7706 when scrolling, at some mild potential efficiency cost.
7708 2001-06-04 Havoc Pennington <hp@redhat.com>
7710 * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
7711 slider on the click.
7713 2001-06-03 Havoc Pennington <hp@pobox.com>
7715 * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
7716 hscale/vscale details, so we can use it for scrollbar as well.
7718 * tests/testgtk.c (reformat_value): honor digits from GtkScale
7720 * gtk/gtkenums.h (GtkTroughType): Remove this enum
7721 (GtkScrollType): add START and END from GtkTroughType
7723 * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
7726 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
7727 gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
7728 gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
7729 gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
7730 gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
7732 Notable changes in the process:
7734 - stepper_size style property is the height for vertical
7735 ranges, width for horizontal; the other dimension matches
7737 - add ability to do NeXT-style steppers (and several other styles
7738 that don't make any sense)
7739 - added min_slider_length, fixed_slider_length properties to
7741 - cleaned some private (or at least useless) functions out of
7743 - moved bindings to GtkScale from subclasses, even arrow keys,
7744 since blind users don't know scale orientation.
7745 - change move_slider action signal to use new GtkScrollType,
7746 remove GtkTroughType argument
7747 - digits rounds the values a range will input to the given
7748 number of decimals, but will not try to force adjustment
7749 values set by other controllers. That is, we no longer
7750 modify adjustment->value inside a value_changed handler.
7751 - added getters for GtkScale setters
7752 - middle-click begins a slider drag
7754 Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com>
7756 * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
7757 getting the focus code to work.
7758 (gtk_tree_view_class_init): Add a bunch of keybindings.
7760 * gtk/gtktreeviewcolumn.c
7761 (gtk_tree_view_column_set_cell_data_func):
7762 s/GtkCellDataFunc/GtkTreeCellDataFunc.
7763 (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
7764 of "properties_changed" to help justify the death of the latter
7767 * tests/testtreefocus.c (main): Let some columns be focussable to
7770 2001-06-01 Havoc Pennington <hp@redhat.com>
7772 * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
7774 * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
7775 overwrite in overwrite mode if we already deleted the selection
7776 and replaced it with new text.
7778 * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
7779 selection to an empty range, clear the clipboard if we owned it.
7780 (gtk_label_set_selectable): give up selection if we become
7782 (gtk_label_state_changed): override state changed to unselect text
7784 (get_text_callback): add paranoia check that indexes aren't
7785 outside of label->text
7786 (gtk_label_select_region): make -1 for start_offset mean "end of
7787 label," for consistency with GtkEditable
7789 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
7790 GTK_DIALOG_NO_SEPARATOR flag
7792 Fri Jun 1 11:47:11 2001 Owen Taylor <otaylor@redhat.com>
7794 * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix
7795 notifications on non-existant "enable_arrow_keys".
7796 (#53753, Skip Montanaro)
7798 Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
7800 * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
7803 * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
7804 of allocation argument be GDK_TYPE_RECTANGLE.
7806 Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
7808 * gtk/gtkoptionmenu.c: Account for the fact that the border
7809 width is _outside_ the window. (Fixes #54585, bug found
7812 Wed May 30 15:56:30 2001 Owen Taylor <otaylor@redhat.com>
7814 * gtk/gtksettings.c (gtk_settings_get_property): Validate
7815 value from GDK settings against parameter spec.
7817 * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
7818 to temporary values and use g_value_transform(), since
7819 thinking that GValue was going to be easy or efficient
7820 to use was, of course, a mistake.
7822 * gtk/gtksettings.c: Add cursor blink setting.
7824 * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
7826 * gtk/gtkentry.c: Add cursor blinking.
7828 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
7829 cursor blink global settings.
7831 * gtk/gtkentry.c (gtk_entry_button_press): Add notification
7832 for :text_position in places where it is missing.
7834 Tue May 29 18:17:11 2001 Owen Taylor <otaylor@redhat.com>
7836 * autogen.sh (have_libtool): Fix GNU sedism (#55430)
7838 Tue May 29 17:40:29 2001 Owen Taylor <otaylor@redhat.com>
7840 * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
7841 not pkg-config. (#51032)
7843 * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
7844 (fixes #51952, James Henstridge)
7846 2001-05-27 Alexander Larsson <alla@lysator.liu.se>
7848 * gtk/gtkstock.h (GTK_STOCK_GO_UP):
7849 Rename to the more correct gtk-go-up.
7851 * gtk/stock-icons/stock_menu_sort_ascending.png:
7854 * gtk/stock-icons/stock_menu_sort_descending.png:
7855 Changed to show descending instead of ascending.
7857 * gtk/gtkiconfactory.c:
7858 Added menu size icon to sort ascending.
7860 * gtk/stock-icons/Makefile.am:
7861 Added stock_menu_sort_ascending.png.
7863 * gtk/gtkseparatormenuitem.c:
7864 Use correct typenames.
7866 Sun May 20 20:07:35 2001 Tim Janik <timj@gtk.org>
7868 * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
7869 gulong as in GSignal.
7871 Fri May 25 19:04:17 2001 Jonathan Blandford <jrb@redhat.com>
7873 * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
7874 instances of GtkCellRenderer in code (all but dnd icon code).
7875 Virtualized in GtkTreeViewColumn. Now I need to move focus in
7876 there, and I can do multiple Cells per column.
7878 * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
7880 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
7881 when model was unreffed prior to removing the row reference.
7883 2001-05-25 Havoc Pennington <hp@redhat.com>
7885 * gtk/gtkiconfactory.c: fix so that default icons are created if
7886 you call gtk_stock_list_ids()
7888 * demos/gtk-demo/stock_browser.c (create_model): sort stock items
7891 2001-05-25 Havoc Pennington <hp@redhat.com>
7893 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
7894 set can render without falling back to missing image icon
7896 * gtk/gtktextview.c (gtk_text_view_size_request): request full
7897 size of text, instead of random values
7899 * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
7900 size of tree view, instead of random values
7902 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
7903 image in an appropriate size
7905 * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
7906 etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
7908 Throughout: fix GTK_STOCK_BUTTON_ instances
7910 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
7911 gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
7912 Add a bunch of new stock items/icons
7914 * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
7915 new function, convenience for inserting columns with a data func
7917 * gtk/gtkiconfactory.c: keep a list of all existing icon factories
7918 (_gtk_icon_factory_list_ids): use list of all factories to
7919 generate a list of all known IDs
7921 * gtk/gtkstock.c (gtk_stock_list_ids): replace
7922 gtk_stock_list_items() with a function that returns all IDs known
7923 including those for GtkIconFactory.
7925 2001-05-25 Hans Breuer <hans@breuer.org>
7927 * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
7928 work -> check boxes and radio buttons are drawn now, even on win9x.
7929 Improved line settings a bit, still no clue how to get really dotted
7930 lines on win9x, on NT it's PS_ALTERNATE.
7932 * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for
7933 GDK_HINT_MIN_SIZE as well
7935 * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
7937 * gtk/gtk.def : updated
7939 * gtk/gtktreeprivate.h : change column_drop_func to be a function
7940 pointer not a function pointer pointer
7942 * tests/testdnd.c : include <stdlib.h> for putenv prototype
7944 * tests/testsocket.c : made it compile on win32 again
7946 * tests/makefile.msc : one more test-app uses prop-editor.obj
7948 2001-05-22 Havoc Pennington <hp@pobox.com>
7950 * gtk/gtkbin.c (gtk_bin_get_child): New function
7952 Wed May 23 20:07:53 2001 Owen Taylor <otaylor@redhat.com>
7954 * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
7955 to ignore when doing compose processing.
7957 2001-05-22 Joe Shaw <joe@ximian.com>
7959 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle):
7960 Simplify as suggested by Havoc. Just get the last iter and work
7961 backward to the tag instead of getting a line and working back from
7962 there. Fixes passing in an invalid offset to
7963 iter_init_from_byte_offset().
7965 Tue May 22 16:25:27 2001 Jonathan Blandford <jrb@redhat.com>
7967 * gtk/gtktreeview*.h:
7970 Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
7971 macros to all objects.
7973 Tue May 22 15:13:52 2001 Jonathan Blandford <jrb@redhat.com>
7975 * gtk/gtkcellrenderertext.c
7976 (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
7977 with very large (TM) amounts of text. May be moved to
7978 GtkCellRenderer in the future, though I'm not sure it wants to be
7981 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
7982 More sanity brought to this class. I like it.
7984 * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
7985 case. Kids, don't try this at home.
7987 * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
7988 convenience function.
7990 * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
7992 2001-05-21 Alexander Larsson <alexl@redhat.com>
7995 Added properties. Based on patch by Lee Mallabone.
8001 * gtk/gtktextview.c:
8002 Converted GtkArg to GParam. Based on patches by John Margaglione.
8004 * tests/Makefile.am:
8006 Add a property editor to testtext.
8008 Mon May 21 11:29:21 2001 Owen Taylor <otaylor@redhat.com>
8010 * gtk/gtk{h,v,}paned.c: Only show the separator if
8012 * configure.in: Fixed reversed conditional causing all image
8013 libraries to be linked in.
8015 2001-05-21 Joe Shaw <joe@ximian.com>
8017 * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
8018 that top_y needs to be >= 0.
8020 2001-05-11 Havoc Pennington <hp@pobox.com>
8022 * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
8023 losing connection to the X server.
8025 Sun May 20 13:59:20 2001 Owen Taylor <otaylor@redhat.com>
8027 * configure.in: Start checks for X from pangox/pangoxft
8028 CFLAGS to avoid duplicate libraries.
8030 * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
8032 * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
8035 2001-05-18 Alexander Larsson <alexl@redhat.com>
8037 * gtk/gtkspinbutton.c:
8038 Convert GtkArgs to GParams. Based on patch by John Margaglione.
8039 Also do size request reasonable for MAXDOUBLE. Previously it printed
8040 the limits to a buffer and overran it. Instead do it using log10() and
8041 limit the width to 10 digits.
8043 * gtk/gtkwidget.c (gtk_widget_get_property):
8044 Correctly handle setting the parent property to NULL.
8046 Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
8048 * gtk/gtktextview.c (gtk_text_view_style_set): Reset
8049 style attributes even if the widget isn't realized.
8051 * demos/gtk-demo/main.c: Use a slightly smaller font.
8053 Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
8055 * gtk/gtkcontainer.c: Remove reallocate-redraws property.
8056 This is something that only a widget writer would ever want
8059 * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
8060 gtk_signal_emit_by_name().
8062 * gtk/gtkviewport.c: Fix some warnings.
8064 * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
8065 allowing the requisitions of multiple widgets to be grouped
8068 * tests/testgtk.c: Add GtkSizeGroup test
8070 * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
8072 * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
8075 * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
8077 2001-04-28 Martin Baulig <baulig@suse.de>
8079 * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
8080 to gtk_image_menu_item_set_icon() and made it work if there's already
8082 (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
8083 (gtk_image_menu_item_new_with_label): New function.
8085 Thu May 17 16:20:04 2001 Jonathan Blandford <jrb@redhat.com>
8087 * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
8088 highlighting code!!!! The result is okay so long as you don't try
8089 to stress it. It also highlights a bug in the TextView so it's in
8090 an unproportional font right now until it's fixed.
8092 *demos/gtk-demo/*.c: Clean up code a bit to make it
8093 ugly-parser(TM) friendly. (-:
8095 2001-05-17 Joe Shaw <joe@ximian.com>
8097 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
8098 that x_offset and y_offset must be >= 0. Clip the cursor being drawn
8099 if it is only partially onscreen.
8101 Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
8103 * gtk/gtkentry.c: Make logical motion and deletion by graphemes,
8106 * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
8107 are not zero or one; that is, when graphemes of multiple characters
8110 * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
8113 2001-05-17 Alexander Larsson <alla@lysator.liu.se>
8116 Add properties, based on patch by Lee Mallabone.
8118 * gtk/gtknotebook.c:
8120 Convert from GtkArg to GParam, based on patch by John Margaglione.
8124 * gtk/gtkhscrollbar.c:
8125 * gtk/gtkvscrollbar.c:
8127 Move adjustment property to GtkRange.
8130 Setup mnemonics on property changes
8132 * gtk/gtkwidget.c (gtk_widget_get_property):
8133 GdkExtensionMode is an enum, not a flag. Set it with
8134 g_value_set_enum ().
8136 * tests/prop-editor.c:
8137 Better propery editor.
8140 Add new property test. Pass zero to the property editor to
8141 get properties from all derived types.
8143 Sun May 13 12:01:12 2001 Owen Taylor <otaylor@redhat.com>
8145 * autogen.sh (have_automake): Require libtool-1.4,
8148 * acinclude.m4: Remove libtool macros.
8150 * gdk-pixbuf/Makefile.am: Add dependencies to loade
8153 * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
8156 * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
8157 libgdk.la for libgtk.
8159 * modules/input/Makefile.am: Make modules have full
8162 Wed May 16 14:06:01 2001 Jonathan Blandford <jrb@redhat.com>
8164 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
8165 #54699 where paths weren't being checked for correctness.
8167 Tue May 15 20:13:24 2001 Jonathan Blandford <jrb@redhat.com>
8169 * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
8170 in any order you wan, whether or not the column is added to the
8171 tree, or the tree is realized. Yay!
8173 * gtk/gtktreeviewcolumn.c
8174 (gtk_tree_view_column_setup_sort_column_id_callback): handle
8175 sorting columns a lot saner
8177 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
8178 new function to actually set wether or not a column is
8181 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
8184 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
8185 Fix nasty bug where we were showing the button just before
8186 realizing it. As a result, the parent window was
8187 tree_view->window instead of tree_view->priv->header_window.
8189 * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
8190 to let you easily reorder a list or tree.
8192 2001-05-15 Alexander Larsson <alla@lysator.liu.se>
8194 * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
8195 from args to properties.
8197 Tue May 15 10:11:59 2001 Owen Taylor <otaylor@redhat.com>
8199 * gtk/gtkpreview.c: Apply patch from John Margaglione converting
8200 from args to properties. (#51957)
8202 * gtk/gtkscale.c (gtk_scale_class_init): Move install property
8203 calls to after ->set_property call.
8205 Mon May 14 14:56:21 2001 Owen Taylor <otaylor@redhat.com>
8207 * tests/prop-editor.c: Block against redundant changes.
8209 * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
8212 Sun May 13 18:40:04 2001 Owen Taylor <otaylor@redhat.com>
8214 * gdk/gdkpixmap.h: Remove creative formatting.
8216 Thu May 10 19:22:28 2001 Owen Taylor <otaylor@redhat.com>
8218 * gtk/gtktogglebutton.c: Patch from John Margaglione converting to
8219 property API. (#51669)
8221 * gtk/gtkscale.c: Patch from John Margaglione converting to
8222 property API. (#51891)
8224 * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
8225 to property API. (#50985)
8227 Fri May 11 20:13:44 2001 Tim Janik <timj@gtk.org>
8229 * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
8230 buffering state across expose event, so we still call end_paint().
8232 2001-05-11 Alexander Larsson <alexl@redhat.com>
8234 * gtk/gtkhsv.c (paint_triangle):
8235 Expose the ring in the triangle at the correct place when
8236 exposing just a part of the triangle.
8238 * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
8239 Return FALSE, or window focusing will not work.
8241 2001-05-11 Havoc Pennington <hp@pobox.com>
8243 * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
8246 * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
8249 Fri May 11 02:53:57 2001 Tim Janik <timj@gtk.org>
8251 * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
8252 propagate exposes to NULL child.
8254 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
8255 against not having one of the scrollbars.
8257 * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
8258 we don't keep a mnemonic window if we have no mnemonic installed.
8260 Fri May 11 01:05:00 2001 Tim Janik <timj@gtk.org>
8262 * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
8263 it has the _important_ side effect of initializing a class.
8265 2001-05-10 Alexander Larsson <alexl@redhat.com>
8267 * gdk/linux-fb/gdkprivate-fb.h:
8268 Make sure you can compile out the implementation/wrapper assert
8271 * gdk/linux-fb/gdkdrawable-fb2.c:
8272 Check implementation/wrappers, initialize type for pixmap dummys.
8274 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8275 Hide the cursor if reading from the screen.
8277 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8278 Fix sign bug in tiling code.
8280 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
8281 Handle background pixmaps.
8283 Wed May 9 15:27:22 2001 Jonathan Blandford <jrb@redhat.com>
8285 * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
8286 function to let user control where columns are dragged.
8288 * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
8291 Wed May 9 09:08:44 2001 Jonathan Blandford <jrb@redhat.com>
8293 * gtk/gtktreeview.c (gtk_tree_view_class_init): New
8294 "columns_changed" signal.
8295 (gtk_tree_view_motion_draw_column_motion_arrow): Change column
8296 motion code to draw arrows to the side if indicator is outside the
8298 (gtk_tree_view_map_expanded_rows): Implement.
8300 2001-05-07 Alexander Larsson <alexl@redhat.com>
8302 * demos/testpixbuf-save.c:
8303 * demos/testpixbuf-drawable.c:
8304 Include gdkfb.h on linux-fb.
8306 2001-05-07 Alexander Larsson <alexl@redhat.com>
8308 * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
8309 New function for getting toplevel window at position.
8310 (gdk_drag_find_window): Use get_toplevel_window () instead
8311 of gdk_window_get_pointer(). (gdk_drag_status): Use
8312 correct context for getting window.
8314 * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
8315 g_strdup the atom name.
8317 * gdk/linux-fb/gdkwindow-fb.c:
8320 * gtk/gtkdnd.c (gtk_drag_source_handle_event):
8321 Add code for changing cursor on linux-fb backend (same as
8324 2001-05-07 Federico Mena Quintero <federico@ximian.com>
8326 * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
8327 present before doing anything with it. Patch from Håvard Kvålen
8328 <havardk@netcom.no>. Fixes Ximian bugzilla #2492 (OK, the bug
8329 report was not for the development branch of GTK+, but it applies
8332 2001-05-04 Havoc Pennington <hp@redhat.com>
8334 * configure.in: fix some shell typos
8336 * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
8338 * gtk/gtkimage.c: handle animations
8340 * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
8341 border_width * 2, not just border_width
8343 * gtk/gtkscale.c: add "format_value" signal to allow people
8344 to override the way values are drawn.
8345 (gtk_scale_get_value_size): fix width/height mistake,
8346 and compute size from actual displayed text, not
8349 * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in
8352 * tests/testtext.c: Add "Remove all tags" menu item for testing
8354 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
8356 * demos/gtk-demo/main.c (main): add hack so we can find modules
8357 without installing gtk
8359 * demos/gtk-demo/textview.c (insert_text): demo font scaling
8361 * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
8363 (gtk_cell_renderer_text_set_property): remove some bogus
8366 * gtk/gtktexttag.c: add "scale" property which is a font scaling
8369 * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
8372 * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
8373 gtk_text_iter_is_first
8375 2001-01-06 Hans Breuer <hans@breuer.org>
8377 * gdk/gdk.def : updated exports
8379 * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
8380 gdk won't compile anymore
8382 * gdk/win32/gdkevents-win32.c : initialize ret_val when
8383 processing GDK_FILTER functions, initialize event.key->hardware_keycode.
8384 Improved gdk_flush () to not only do pending drawing operations
8385 but also process all currently pending events. This should make
8386 the behaviour more similar to the X11 version.
8388 * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
8389 option needs to be set even if there is no GDK_GC_BACKGROUND.
8390 (gdk_win32_hdc_get) : use predraw_set_background () independent
8391 of value_mask. This allows to draw dashed lines leaving the original
8394 * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
8395 after processing, because we can't reuse it as the X11 version does.
8397 * gtk/gtk.def : updated exports
8399 * gtk/makefile.msc.in : added ATK, removed all test apps. (I
8400 would like to get rid of this file again, and use straight
8401 makefile.msc again, as the other Gtk+ subdirs do)
8403 * test/makefile.msc (new file) : build the test apps here
8405 2001-05-05 ERDI Gergo <cactus@cactus.rulez.org>
8407 * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
8408 strike-through setting
8409 (gdk_draw_layout_line_with_colors): Render strike-through
8411 Sat May 5 10:06:24 2001 Owen Taylor <otaylor@redhat.com>
8415 * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
8419 * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
8422 Sat May 5 09:18:30 2001 Owen Taylor <otaylor@redhat.com>
8424 * demos/gtk-demo/images.c (progressive_timeout): Fix
8427 * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
8428 out FIXME warning; just too annoying.
8430 2001-05-04 Alex Larsson <alla@lysator.liu.se>
8432 * gdk/linux-fb/gdkcolor-fb.c:
8433 Better error messages.
8435 * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
8436 Initialize abs_x and abs_y.
8438 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8439 Correct handling of stipple offset.
8441 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
8442 Treat directcolor framebuffers as truecolor.
8444 Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
8446 * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
8447 dependency on Atk for accessibility support.
8449 * configure.in **/Makefile.am: Major reworking of substituted
8450 variables for CFLAGS/LIBS to make a lot more sane and
8451 keep the the compile/link lines a bit shorter.
8453 * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
8455 Thu May 3 08:10:54 2001 Owen Taylor <otaylor@redhat.com>
8457 * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
8458 value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
8459 use _gtk_boolean_handled_accumulator.
8461 Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
8463 * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
8464 to fix things so clicking inside selection leaves cursor
8465 at point where clicked. (#50324)
8467 * gtk/gtksettings.c (gtk_settings_class_init): Restore
8468 sane value for default double click time.
8470 * tests/testtext.c (test_init): Really path to input modules.
8472 2001-05-03 Sven Neumann <sven@convergence.de>
8474 * demos/testpixbuf-save.c: include target-specific headers as
8475 done in testpixbuf-drawable.c
8477 Wed May 2 20:36:38 2001 Owen Taylor <otaylor@redhat.com>
8479 * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
8480 new_text_length appropriately when we run into the
8481 size limit for the entry. (#53445, reported by Jeff Franks)
8483 * tests/testgtk.c (create_entry): Remove most of the
8484 property toggle buttons. Replace with a "Props" button
8485 that brings up a property editor.
8487 * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
8488 Split the property editor code out for reuse, improve.
8490 Wed May 2 17:26:22 2001 Owen Taylor <otaylor@redhat.com>
8492 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
8493 trap errors around calls to XSetInputFocus since we have
8494 no way of knowing reliably whether we are viewable or
8497 Tue May 1 09:21:23 2001 Jonathan Blandford <jrb@redhat.com>
8499 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8500 fix bug in dropping columns. Moving columns now basically works
8501 modula some fine tuning.
8503 Tue May 1 19:09:21 2001 Jonathan Blandford <jrb@redhat.com>
8505 * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
8506 autoscroll support. It mostly works, but could use some fine
8508 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8509 Actually move the column.
8511 Mon Apr 30 20:29:27 2001 Owen Taylor <otaylor@redhat.com>
8513 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c
8514 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
8515 New default theme! A slighly improved version of the 2.0 Raleigh
8516 theme, with Windows-esque focus/drawing default.
8517 (GtkWidget::interior_focus defaults to TRUE.)
8519 * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
8521 2001-04-30 Havoc Pennington <hp@pobox.com>
8523 * tests/testtext.c (line_numbers_expose): fix to work with
8524 gtk_paint_layout change
8526 Mon Apr 30 19:18:07 2001 Owen Taylor <otaylor@redhat.com>
8528 * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
8529 gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
8530 gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
8531 use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
8533 * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
8534 with GtkWidget::interior_focus = TRUE better.
8536 * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
8537 ::default_outside_border for more flexibility.
8539 * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove
8540 G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
8541 change that had to be made with g_object_get.
8543 Sun Apr 29 20:13:40 2001 Jonathan Blandford <jrb@redhat.com>
8545 * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
8546 (gtk_tree_view_move_column_after): Clean up interface.
8548 Sun Apr 29 03:02:02 2001 Tim Janik <timj@gtk.org>
8551 * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
8554 * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
8558 (gtk.defs): generate enum portions with glib-mkenums.
8559 (gtktypebuiltins_evals.c): generate this with glib-mkenums.
8560 got rid of makeenums.pl and makeenums.awk in distributed tarballs.
8562 * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
8565 * docs/Changes-2.0.txt: keep a note on signal handlers now
8566 not getting emitted during the emission they were connected within.
8568 2001-04-28 Havoc Pennington <hp@pobox.com>
8570 * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
8572 2001-04-24 Havoc Pennington <hp@redhat.com>
8574 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line):
8575 (gtk_text_layout_move_iter_to_next_line): fix these two for
8576 invisible text, lots of other stuff still hosed.
8578 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
8579 new function, replaces the get/set palette stuff. This function
8580 is intended for use by libgnomeui which should set the hook to a
8581 thing which sets the palette in GConf, and we need the
8582 GConf-to-xsettings proxy which will result in the change being
8583 propagated back to the GTK app.
8585 * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning
8586 about unusable signals that it may be because the signal has
8589 * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
8590 style, otherwise gtkrc.c won't know to create a new GtkStyle for
8592 (gtk_widget_modify_color_component): call
8593 gtk_widget_modify_style() so the rc style will get copied.
8594 (gtk_widget_modify_font): ditto
8596 * gtk/gtkrc.c: make a couple variables static
8598 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
8599 help button by default, since it does nothing
8601 * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
8604 * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
8605 so we can have tooltips
8607 * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
8610 * gdk/gdkimage.h: mark gdk_image_new_bitmap with
8611 GDK_ENABLE_BROKEN, because its memory behavior is completely
8614 * gtk/gtknotebook.c: remove key press handler, replace with
8615 binding set, add numeric keypad support
8617 * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
8619 * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
8621 * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
8622 addition to plain Delete
8624 * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
8625 GDK_KP_Enter in addition to GDK_Return
8627 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
8628 activate on entry instead of key press
8629 (gtk_font_selection_on_clist_key_press): get
8630 rid of this signal handler, not needed with new font sel.
8632 * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
8633 no-longer-needed emit_stop_by_name(), just return TRUE
8635 * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
8636 cruft, this widget is no longer focusable.
8638 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
8639 gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
8640 move_slider action signal, add binding set for vscale/hscale, in
8641 the process support numeric keypad
8643 * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings;
8644 make GDK_Return and GDK_KP_Enter activate the entry via
8645 binding set, instead of hardcoded.
8647 Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
8649 * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
8650 code. Some documentation added.
8652 2001-04-27 Havoc Pennington <hp@redhat.com>
8654 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
8656 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
8658 * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
8659 line/para separators
8660 (gtk_entry_create_layout): set single paragraph mode on the layout
8662 * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
8663 spacing between the image and label; instead, inside a button box
8664 the button will get extra space that will go there, but if people
8665 configure button box for 0 chubbiness, then there's no spacing.
8667 * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
8668 and min/max size style properties, so people can tune their
8671 * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
8674 * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
8675 space_style, and button_relief into style properties, remove
8676 functions for setting them
8678 * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop
8681 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
8682 types from gtk_widget_style_get
8684 * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
8685 with a style property.
8687 * gdk/x11/gdkevents-x11.c: namespace the settings
8689 * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
8691 * gtk/gtksettings.c (gtk_settings_class_init): remove code with
8692 side effects from inside g_assert(), so that G_DISABLE_ASSERT can
8693 be used. Also, translate doc strings for settings. Also, namespace
8694 the double-click-time property. Also, remove bell properties crap.
8696 2001-04-27 Sven Neumann <sven@gimp.org>
8698 * Makefile.am: before creating links, check if pkg-config files
8699 exist for the default target. Otherwise link to the pkg-config files
8700 that got installed with this build.
8702 Thu Apr 26 19:11:46 2001 Jonathan Blandford <jrb@redhat.com>
8704 * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
8705 dragging code. Revealed some (potential) GdkWindow bugs.
8707 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
8708 _gdk_window_init_position to the end of reparent to fix the case
8709 of reparenting when new_x != old_x and new_y != old_y.
8711 Thu Apr 26 10:54:50 2001 Owen Taylor <otaylor@redhat.com>
8713 * gtk/gtkentry.c (strstr_len): Fix optimization that
8714 was correct for the use here, but completely incorrect
8717 Thu Apr 26 10:40:41 2001 Owen Taylor <otaylor@redhat.com>
8719 * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
8720 until patch adding gtk_window_set_size() is recommitted.
8722 * **Makefile.am configure.in gdk/x11/gdkim-11.c
8723 gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
8724 gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
8727 Wed Apr 25 12:16:36 2001 Owen Taylor <otaylor@redhat.com>
8729 * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for
8730 window == NULL in a number of cases.
8732 * tests/testdnd.c: Set module path for gdk-pixbuf.
8734 Thu Apr 19 16:11:07 2001 Owen Taylor <otaylor@redhat.com>
8736 * gtk/Makefile.am xembed.h: File containing #defines
8737 for XEMBED protocol.
8739 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]:
8741 - Change protocol from old plug/socket specific protocol
8743 - Various fixes to work with GTK+-2.0
8745 Still quite a bit of work to do here to handle initiation
8746 from the socket side (as specified by XEMBED), to handle
8747 the more advanced features of XEMBED, and to figure out
8748 a good way to handle same-app embedding with less overhead
8749 than using full XEMBED.
8751 Wed Apr 18 16:04:28 2001 Owen Taylor <otaylor@redhat.com>
8753 * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
8754 track of whether the toplevel has the focus; only send
8755 focus-in events to the focus widget when the window
8756 actually has the focus.
8758 2001-04-25 Havoc Pennington <hp@pobox.com>
8760 * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
8761 were still in the header
8763 2001-04-24 Alexander Larsson <alexl@redhat.com>
8765 * gtk/gtkclist.[ch]:
8767 When there is a row highlighted for D'n'D it must alse
8768 be painted hightlighted on exposes. Otherwise exposes from
8769 the icon being dragged will mess up the hightlight.
8772 Don't recenter selected font when exposing the font family
8773 clist. This means you can now actually scroll the font family
8776 * gtk/gtknotebook.c:
8777 Fix focus movement on scrolling tabs that are placed on the left
8780 2001-04-21 Havoc Pennington <hp@pobox.com>
8782 * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
8783 empty/invisible lines.
8785 * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
8786 (gtk_text_iter_set_visible_line_index): new functions to set
8787 indexes excluding invisible text
8789 * gtk/gtktextlayout.c (line_display_iter_to_index): get visible
8792 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
8793 (gtk_text_iter_get_visible_line_offset): new functions to
8794 get indexes excluding invisible text
8796 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
8797 bunch of extra padding that served no purpose
8799 * gtk/gtkdialog.c: Make all the spacings configurable via style
8800 properties, for chubbiness configuration in themes
8802 * tests/testtext.c: fix path to the immodules.
8804 Mon Apr 23 18:57:03 2001 Jonathan Blandford <jrb@redhat.com>
8806 * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
8807 got munched by #endif.
8809 * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
8811 * gtk/gtktreeview.c: Refactored code to clean up a number of
8814 * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
8815 values to make consistent with other functions. Spotted by Jeff
8816 Franks <jcf@tpg.com.au>.
8818 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
8819 declaration spotted by Jeff Franks <jcf@tpg.com.au>.
8821 2001-04-23 Sven Neumann <sven@gimp.org>
8825 * gtk/gtksocket.c: on request of Owen, reverted my last change
8826 and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
8828 2001-04-23 Sven Neumann <sven@gimp.org>
8830 * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
8831 compile for non-X11 targets again
8833 2001-04-20 Alexander Larsson <alexl@redhat.com>
8835 * gtk/gtkcolorsel.[ch]:
8836 API Change. Take GdkColor arguments instead of gdouble *.
8837 Leave the old gtk_color_selection_set_color for compatibility,
8838 but marked deprecated.
8839 Do correct rounding when converting RGB <-> HSV.
8841 * gtk/gtkcolorseldialog.c:
8843 Use new GtkColorSelection API.
8846 Fix problem selecting colors in triangle when Hue is 330.
8847 Fix some black dots around the HSB triangle.
8850 return FALSE from the focus_in_event handler to fix focus problems.
8852 2001-04-18 Havoc Pennington <hp@redhat.com>
8854 * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
8855 set, so keybindings are configurable
8856 (gtk_window_activate_default): Change to activate the focus widget
8857 instead if there's a focus widget, to be consistent with the
8858 behavior that previously existed in key_press_event
8860 2001-04-18 Havoc Pennington <hp@redhat.com>
8862 * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
8864 2001-04-18 Havoc Pennington <hp@redhat.com>
8868 * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
8871 * gtk/gtktext.c: Use base/text instead of bg/fg throughout
8873 * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
8875 * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
8877 * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
8878 to blue for base, in addition to bg
8880 2001-04-18 Havoc Pennington <hp@redhat.com>
8882 * tests/testgtk.c (create_image): allow shrinking the image window
8883 to test that we clip to allocation.
8885 * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
8888 * gtk/gtkenums.h: move GtkWrapMode in here, #50472
8890 Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
8892 * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
8893 mode on shm segments to 0600. We'll see who complains.
8895 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
8896 _gdk_windowing_window_destroy() AFTER recursing through
8899 * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
8900 testsocket_child on X.
8902 * tests/testsocket[_child].c: Fix uses of
8903 gtk_window_get_default_accel_group().
8905 [ Merge patch from Ramiro Estrugo <ramiro@eazel.com> from gtk-1-2 ]
8907 * gdk/gdkimage.c: (gdk_image_get):
8908 Deal with the possibility that XGetImage() might return NULL.
8909 Allocate the GdkImagePrivate structure only after XGetImage()
8910 succeeds in order not to dereference a NULL ximage pointer. This
8911 prevents a core dump when XGetImage() fails - which is unlikely,
8912 but can happen due to race conditions accessing the geometries of
8913 drawables. An x error will still be triggered, but the gdk image
8914 wrapper at least wont seg fault.
8916 2001-04-18 Havoc Pennington <hp@redhat.com>
8918 * gtk/gtkimage.c: fix to properly queue resizes when the image is
8921 * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
8922 if the insertion point isn't editable
8924 * demos/gtk-demo/images.c: Added a GtkImage demo
8926 * demos/gtk-demo/drawingarea.c: drawing area demo
8928 * demos/gtk-demo/menus.c (create_menu): cleanups
8930 Wed Apr 18 12:15:52 2001 Owen Taylor <otaylor@redhat.com>
8932 * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h
8933 gdk/x11/gdkevents-x11.c: Introduce an extra child
8934 of toplevel windows that serves to hold the focus to
8935 avoid events being delivered to embedded windows.
8937 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
8938 some extra variables to clean up code and reduce the
8941 * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
8942 guint for 1 bit bit fields, not gboolean.
8944 Wed Apr 18 10:04:23 2001 Owen Taylor <otaylor@redhat.com>
8946 * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
8947 not TRUE. (Fixes #52925)
8949 Tue Apr 17 18:05:34 2001 Owen Taylor <otaylor@redhat.com>
8955 * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
8958 Tue Apr 17 13:47:12 2001 Owen Taylor <otaylor@redhat.com>
8960 * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
8962 * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
8963 names to compatibility #defines so docs work.
8965 * gtk/gtkenums.h: Remove GtkMenuFactoryType
8967 * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
8969 * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
8971 * tests/testgtkrc: No magenta cursors, please.
8973 * README.in INSTALL.in HACKING README.cvs-commits: Updated.
8975 * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
8977 Mon Apr 16 14:38:41 2001 Owen Taylor <otaylor@redhat.com>
8979 * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
8980 grabs, since they are no longer necessary.
8982 * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
8983 by signal_connect() and call gtk_button_pressed() rather
8984 than signal_connect_after().
8986 * tests/testgtk.c: Restore radio menu items to combos
8987 since they'll look OK with Raleigh, and it is easier
8988 than finishing the process of removing them that was
8991 2001-04-16 Hans Breuer <hans@breuer.org>
8994 * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
8996 * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
8997 we are interested in the functions return value not the function address
8998 * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
9000 * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
9002 2001-04-14 Hans Breuer <hans@breuer.org>
9005 * gdk/makefile.msc : updated
9007 * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is
9008 "fill with tile" do so with new helper function gdk_win32_draw_tiles
9009 (the testgtk::text backgound pixmap is drawn again)
9010 Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect
9012 * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
9014 * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
9015 Not sure if the returned settings have the right unit, because I couldn't
9016 find any docs for the X version ...
9019 * gtk/makefile.msc.in : updated
9021 Thu Apr 12 17:41:17 2001 Owen Taylor <otaylor@redhat.com>
9023 * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
9024 wording problems. (Compared to version from Johannes Stezenbach to
9027 Thu Apr 12 21:04:26 2001 Tim Janik <timj@gtk.org>
9029 * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
9032 2001-04-12 Anders Carlsson <andersca@codefactory.se>
9034 * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
9037 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
9039 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
9040 are unsigned insts, therefore use g_value_set_uint.
9041 (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
9043 Sun Apr 8 05:36:06 2001 Jonathan Blandford <jrb@redhat.com>
9045 * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
9047 * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
9050 * gtk/gtktreeview.c: New functions to allow initial column
9053 * gtk/gtktreeviewcolumn.c: Initial column dragging support.
9055 * tests/testtreefocus.c: give dave some love.
9057 * tests/testtreesort.c: Modify test to check really long samples.
9059 2001-04-11 Alexander Larsson <alexl@redhat.com>
9061 * gtk-2.0.m4: Pass pkg-config options
9062 before the other args so it works even if
9063 POSIXLY_CORRECT is set.
9065 Mon Apr 9 19:02:07 2001 Tim Janik <timj@gtk.org>
9067 * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
9070 2001-04-04 Denis Oliver Kropp <dok@convergence.de>
9072 * gtk/gtkcalendar.c (gtk_calendar_button_press):
9073 check for action_func != NULL
9075 2001-04-04 Sven Neumann <sven@gimp.org>
9077 * tests/testgtk.c (test_init): corrected path to gtk.immodules
9079 Wed Apr 4 09:18:18 2001 Tim Janik <timj@gtk.org>
9081 * Released Gtk+-1.3.3.
9083 Wed Apr 4 07:42:23 2001 Tim Janik <timj@gtk.org>
9085 * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
9087 Wed Apr 4 04:13:18 2001 Tim Janik <timj@gtk.org>
9089 * gtk/stock-icons/Makefile.am: stay in builddir and read/write
9090 files to/from source dir. (if we don't stay in builddir, we
9091 can't reach make-inline-pixbuf.
9093 * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
9096 * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
9099 Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
9101 * gtk/gtktreemodelsort.h: removed set_sort_column, as it was
9102 moved to the GtkTreeSortable interface.
9104 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
9105 Make more efficient (fixes #50262).
9107 Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
9111 * configure.in: Remove support for uninstalled glib.
9113 * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
9114 so as not to stop emission.
9116 * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
9117 is no longer supported.
9119 * Makefile.am gtk/Makefile.am tests/*: Moved all tests
9120 into tests, change build order to build modules before
9123 * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
9126 Tue Apr 3 13:52:57 2001 Tim Janik <timj@gtk.org>
9128 * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
9129 and gtk_item_factory_dump_rc() GtkPatternSpec argument to
9130 GPatternSpec. this is actually unlikely to cause breakage in
9131 third-party apps since except for gle, pretty much ever caller
9134 * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
9136 * *.c: use g_pattern_*() API.
9138 * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
9140 * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
9141 directions aren't passed in.
9143 * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
9144 functionality to be usable from gtkstyle.c as well, give precedence
9145 for conversion to user-supplied parsers.
9146 s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
9148 * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
9149 _gtk_settings_parse_convert() for rcporperty value conversion.
9151 2001-04-03 Alexander Larsson <alexl@redhat.com>
9153 * gdk/linux-fb/gdkevents-fb.c:
9154 Add empty gdk_setting_get().
9156 Tue Apr 3 05:09:07 2001 Tim Janik <timj@gtk.org>
9158 * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
9161 * gtk/makeenums.pl: touch this so enum files get remade.
9163 Mon Apr 2 19:36:57 2001 Jonathan Blandford <jrb@redhat.com>
9165 * gtk/gtktreestore.c (gtk_tree_store_init): Bug fix to make trees
9166 work again when not sorted.
9168 * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
9169 and "expand_row" signal, closing bug 52578.
9171 * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
9174 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
9177 Mon Apr 2 18:18:07 2001 Owen Taylor <otaylor@redhat.com>
9179 * gdk/gdkevents.h: Add GdkEventSetting event for notification
9180 of changes to system settings, gdk_setting_get() to retrieve
9181 a single system setting.
9183 * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
9184 to the draft XSETTINGS mechanism.
9186 * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
9189 * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
9190 of GDK settings changes to the GtkSettings object.
9192 * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
9193 double-click-timeout property to GDK.
9195 * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
9196 Define GDK boxed types here.
9198 * gdk/Makefile.am gdk/makeenums.pl: Generate source files
9199 gdk/gdkenumtypes.[ch] for enum definitions.
9201 * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
9202 * gtk/gtk-boxed.defs: Comment out GDK types
9203 * gtk/gtktypeutils.h: Remove GDK types
9204 * gtk/Makefile.am: No longer scan GDK headers for enumerataions
9206 Mon Apr 2 16:41:08 2001 Owen Taylor <otaylor@redhat.com>
9208 * Applied patch from Ron Steinke to add signal accumulators
9209 so that signals with the convention 'TRUE return means
9210 handled' stop emission on a TRUE return.
9212 * gtk/gtkmain.[ch]: Add private accumulator
9213 _gtk_boolean_handled_accumulator, used throughout GTK+.
9215 * gtk/gtkspinbutton.c: Add accumulator for ::output.
9217 * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
9219 * gtk/gtkwidget.c: Add accumulators for event signals,
9220 ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
9221 for ::mnemonic-activate.
9223 * gtk/gtkwindow.c: Add accumulator for ::frame_event
9225 Mon Apr 2 16:24:21 2001 Owen Taylor <otaylor@redhat.com>
9227 * gtk/gtkwidget.c: Add missing include.
9229 Mon Apr 2 16:56:15 2001 Jonathan Blandford <jrb@redhat.com>
9231 * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
9234 * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
9235 "changed" signal to "range_changed".
9237 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
9238 removing a tree from one model would remove all trees from that
9240 * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
9241 changed signal instead.
9243 Mon Apr 2 16:13:58 2001 Owen Taylor <otaylor@redhat.com>
9245 * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
9246 chaining up to parent impl, since we have a INPUT_ONLY
9249 * gtk/gtkentry.[ch]: Add a cursor_color property to set the
9250 foreground color for the cursor.
9252 Mon Apr 2 15:06:13 2001 Owen Taylor <otaylor@redhat.com>
9254 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference
9255 param spec when caching property values, since we unref it
9256 later when we free the style.
9258 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
9259 values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
9261 Mon Apr 2 10:47:57 2001 Owen Taylor <otaylor@redhat.com>
9263 * gtk/gtkwidget.c (gtk_widget_class_init): Fix
9264 G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
9267 Mon Apr 2 00:51:11 2001 Owen Taylor <otaylor@redhat.com>
9269 [ First pass at adding style properties. Still needs some definite
9272 * gtk/gtkbutton.c: Add ::default_spacing style property.
9274 * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
9275 ::indicator_spacing style properties.
9277 * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
9280 * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
9281 rather than a normal property.
9283 * gtk/gtkwidget.c: Add an ::interior_focus style property to
9284 draw focus inside buttons, in the Windows/Java Metal/etc. style.
9286 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
9287 Honor ::interior_focus.
9289 * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is
9292 * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
9293 Add ::slider_width, ::trough_border, ::stepper_size,
9294 ::stepper_spacing style properties.
9296 * gtk/gtkscale.[ch] Add ::slider-length style property.
9298 2001-04-02 Alexander Larsson <alexl@redhat.com>
9300 * gdk/linux-fb/gdkwindow-fb.c:
9301 Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
9302 warnings that were spewed on startup.
9304 * gtk/gtkwindow-decorate.c:
9305 gtk_window_reposition -> _gtk_window_reposition
9307 Sun Apr 1 21:37:22 2001 Owen Taylor <otaylor@redhat.com>
9309 * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9310 Add boxed type for GtkRequistion. Use it for ::size-request.
9312 * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9313 Add a new GtkBorder structure useful for geometry properties
9314 for widgets. Add corresponding GTK_TYPE_BORDER.
9316 * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
9317 Support automatic parser selection like
9318 gtk_settings_install_property_parser().
9320 * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
9321 functionality for use by gtk_widget_class_install_style_property.
9322 Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
9324 Sun Apr 1 20:48:59 2001 Owen Taylor <otaylor@redhat.com>
9326 * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
9327 g_param_spec_unichar().
9329 Sun Apr 1 23:41:37 2001 Tim Janik <timj@gtk.org>
9331 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
9332 _NET window managers.
9334 * gtk/gtkmenufactory.[hc]: cvs removed those files now.
9336 Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
9338 * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
9339 bad needs to be nuked, not just deprecated.
9341 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
9344 * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
9346 * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
9349 * docs/Changes-2.0.txt: updates.
9351 Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
9353 * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
9354 for (i = 0; i < 100; i ++)
9355 g_print ("I will confirm it compile before committing\n");
9357 Sun Apr 1 00:52:06 2001 Jonathan Blandford <jrb@redhat.com>
9359 * gtk/gtktreestore.c: Initial work on implementing the
9360 GtkTreeSortable interface. Basicaly a big cut'n'paste job.
9362 Sun Apr 1 03:28:14 2001 Tim Janik <timj@gtk.org>
9364 * gtk/gtkwidget.c: fixed a bunch of notifications, added
9365 reference counts around emissions where the widget is used afterwards.
9366 added freeze/thaws around multiple properties being notified.
9367 (_gtk_widget_get_aux_info): cleanups.
9369 * gtk/gtksettings.c (gtk_settings_install_property): provide
9370 default parsing functions for gdkcolor, enums and flags.
9372 * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
9374 backed out gtk_window_get_location(), gtk_window_set_location(),
9375 gtk_window_get_size() and gtk_window_set_size(), these
9376 have to be sorted out wrg x/y/width/height/default_with/default_height
9378 kept a flag in GtkWindowGeometryInfo to handle user
9379 resetting default sizes.
9380 cleaned up ZVT comments.
9381 bunch of assorted bug fixes, notification fixes.
9382 (_gtk_window_reposition): make this a really internal function.
9384 * gtk/testgtk.c: fixups.
9386 2001-03-31 Hans Breuer <hans@breuer.org>
9388 * config.h.win32.in : disable USE_MMX for msvc build cause
9389 the assembler doesn't fit and is out of my scope. Disable
9390 USE_GMODULE for msvc build as wel. The right way to share
9391 binaries on win32 would be to use libtiff.dll etc. To reduce
9392 installation hassles IMO it's better to include all fileformats
9393 builtin to gdk-pixbuf
9395 * gdk-pixbuf/makefile.msc : new file
9397 * gdk/gdk.def : updated
9399 * gdk/win32/gdkevents-win32.c : don't erase the background if
9400 .no_bg is set. It improves the scrolling (e.g. of testgtk main
9402 * gdk/win32/gdkgeometry-win32.c : added comment about the above
9404 * gdk/win32/gdkwindow-win32.c : added three new functions like
9405 the X version. Only one is implemented, because the other two
9406 "gdk_window_begin_(resize|move)_drag" got no docs and appear to
9407 be default behaviour on win32 anyway ...
9409 * gtk/gtk.def : updated
9411 * gtk/makefile.msc.in : update for new files, use glib-genmarshal
9412 from where it was built and add an additional rule to automagically
9413 build gtkmarshal.[hc]
9415 * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
9416 before array access for the current entry isn't finished
9418 * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
9419 use g_return_val_if_fail
9421 * gtk/testgtk.c (window_controls) : don't use the *wrong* size
9422 for the static array, but let the compiler calculate it. It
9423 makes me wonder if gcc isn't capable to catch bugs like this ...
9425 2001-03-31 James Henstridge <james@daa.com.au>
9427 * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
9428 constant "-1" in the aux info structure.
9430 2001-03-30 Alexander Larsson <alexl@redhat.com>
9432 * gtk/gtkbutton.c (gtk_button_get_property):
9436 * gtk/gtkcontainer.c:
9438 * gtk/gtkhscrollbar.c:
9441 * gtk/gtkprogress.c:
9442 * gtk/gtkprogressbar.c:
9445 * gtk/gtkviewport.c:
9447 * gtk/gtkvscrollbar.c:
9449 Property patches, based on patches from John Margaglione and Lee Mallabone.
9451 Thu Mar 29 21:20:38 2001 Mike Kestner <mkestner@ameritech.net>
9453 * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
9454 adjustment. Cleaned redundant preconditions (spin != NULL). Added
9455 inline API function docs.
9456 (gtk_spin_button_new_with_range): New convenience constructor.
9457 (gtk_spin_button_set_increments): New adjustment helper.
9458 (gtk_spin_button_set_range): New adjustment helper.
9460 * gtk/testgtk.c : added test of the new convenince constructor and
9461 value_changed signals.
9463 Thu Mar 29 20:20:38 2001 Jonathan Blandford <jrb@redhat.com>
9465 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
9466 listen to the reorder signal.
9468 Wed Mar 28 20:30:26 2001 Owen Taylor <otaylor@redhat.com>
9470 * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
9471 to get the aux info structure fo the widget.
9473 * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
9476 [ Patch from Havoc Pennington <hp@redhat.com> ]
9478 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
9479 to get the size of the window manager frame, basically the same
9480 code that gdk_window_get_root_origin() had
9481 (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
9483 * gtk/gtkwindow.c (gtk_window_set_default_size): use
9484 gdk_window_resize() if the window is realized and resizeable
9486 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
9487 typo so that setting gravity works
9489 * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
9490 allocation if auto_shrink is on, even if the default size
9493 * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
9496 Thu Mar 29 16:29:12 2001 Jonathan Blandford <jrb@redhat.com>
9498 * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
9499 reordering/sorting work. Now pretty much works.
9501 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
9502 reorder mostly work. Still need to get the parity correct.
9504 * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
9505 signal, so I can listen for the sort_column_changed signal so I
9506 can change my "sort_indicator" property. Cool.
9508 Wed Mar 28 00:03:10 2001 Owen Taylor <otaylor@redhat.com>
9510 [ Patch from Havoc Pennington, hp@redhat.com ]
9512 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
9513 Add functions gdk_window_begin_resize_drag/begin_move_drag
9514 to start resizing or moving a toplevel window. This
9515 is done either using the _NET_WM_MOVERESIZE protocol,
9516 or, if that isn't present, by emulation.
9518 * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
9519 to export the above to GTK+-land.
9521 * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
9523 * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
9524 Move this function into gdkwindow, since we need it
9525 when implementing fallback resizing.
9527 * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
9528 Fix typo when setting gravity.
9530 * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
9531 Add an optional (but on by default) resize grip for resizing
9534 01-03-29 Alexander Larsson <alexl@redhat.com>
9536 * gtk/gtktooltips.c (gtk_tooltips_event_handler):
9537 Don't return TRUE from the event handler, that blocks all
9538 event signals on the tooltip widget. Now you can press buttons
9541 Wed Mar 28 19:20:43 2001 Owen Taylor <otaylor@redhat.com>
9543 * gtk/testtext.c (create_buffer): Add missing NULL on
9546 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
9547 c-n-p problem with INCONSISTENT property.
9549 [ Patch from Havoc Pennington <hp@redhat.com> ]
9551 * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
9554 * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
9555 signal as a hook for extending the default popup menu
9557 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
9558 use radio menu items for the input method menuitems
9560 * gtk/gtkimcontextsimple.c (check_hex): do better validation of
9561 inserted unicode from Ctrl-Shift-hex input method
9563 * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
9564 validatation here, already done at GtkTextBuffer level.
9566 * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
9567 popup_menu run action signal and Shift+F10 and Menu keybindings.
9569 * gtk/gtkentry.c: implement a default handler for popup_menu
9571 * gtk/gtktextview.c: implement a default handler for popup_menu
9573 * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
9576 * gtk/gtklabel.c: remove "trailer" cruft
9578 Wed Mar 28 17:27:12 2001 Jonathan Blandford <jrb@redhat.com>
9580 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
9581 handle reordering of trees. Seems to mostly work w/ the exception
9584 * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
9587 Wed Mar 28 21:12:37 2001 Tim Janik <timj@gtk.org>
9589 * gtk/gtkwidget.h: c++ fixes.
9591 Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
9593 * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
9596 Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
9598 * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
9599 Nils Barth fixing event return values. (#51041)
9601 * gtk/gtkwidget.c: Fix some return values for default
9604 * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
9605 return values for trough_keys functions.
9607 * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
9608 value for add_accelerator (shoudl have been a void
9611 * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
9612 Fix return type of EVENT.
9614 * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
9615 signal return a boolean.
9617 Tue Mar 27 22:07:44 2001 Jonathan Blandford <jrb@redhat.com>
9619 * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
9622 * tests/testtreesort.c (main): fix spelling.
9624 Tue Mar 27 20:55:29 2001 Jonathan Blandford <jrb@redhat.com>
9626 * gtk/gtkliststore.c: More work on implementing sortable
9629 Mon Mar 26 15:48:45 2001 Owen Taylor <otaylor@redhat.com>
9631 * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
9632 reference the widgets in the resulting list. (#11821)
9633 This makes this consistent with gtk_container_children.
9635 * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
9636 uses of gtk_window_list_toplevels.
9638 Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
9640 * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
9641 a virtual function to set whether the IM context should use
9642 the preedit string. (#51922)
9644 Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
9646 * gdk/gdkpango.h: Remove stale FIXME comment.
9648 2001-03-26 Alexander Larsson <alla@lysator.liu.se>
9650 * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
9651 Fixed bug that returned NULL if a filename was selected.
9653 2001-03-24 Havoc Pennington <hp@pobox.com>
9655 * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
9656 to contain the word "theme"
9658 2001-03-24 Havoc Pennington <hp@pobox.com>
9660 * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
9661 slower but finer-grained
9662 (gtk_hsv_focus): get initial focus on the ring or triangle
9663 according to tab direction
9665 * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
9667 2001-03-23 Havoc Pennington <hp@pobox.com>
9669 * gtk/gtkhsv.c: make this somewhat key-navigable
9671 * gtk/gtkfontsel.c: mnemonics
9673 * gtk/gtkgamma.c: mnemonics
9675 * gtk/gtkcolorsel.c: add mnemonics to labels
9677 2001-03-22 Havoc Pennington <hp@pobox.com>
9679 Applied big patch from Seth Lytle to fix event handler return
9680 values, slightly modified.
9682 * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
9684 (gtk_calendar_key_press): return TRUE for GDK_space triggers
9687 * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
9688 (gtk_clist_button_release): return TRUE if handled
9690 * gtk/gtkcolorsel.c (mouse_release):
9696 fixed return type (void to gboolean), return TRUE,
9697 added GTK_SIGNAL_FUNC cast
9699 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
9700 (void to gboolean), and return TRUE
9701 (gtk_combo_button_release): changed return value to TRUE after
9702 gtk_grab_add on combo->popwin
9704 * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
9707 * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
9710 * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
9711 press/release and motion that trigger act
9713 * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
9715 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
9718 * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
9719 (gtk_list_button_release): return TRUE if selection
9721 * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
9724 * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
9725 (gtk_menu_shell_button_release): chain parent_menu_shell retval
9727 * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
9729 (gtk_notebook_button_release): return TRUE if we do anything
9731 * gtk/gtkspinbutton.c (gtk_spin_button_button_press):
9732 (gtk_spin_button_button_release): return TRUE or chained retval
9734 * gtk/gtktext.c (gtk_text_button_press):
9735 (gtk_text_button_release): return TRUE
9736 (gtk_text_key_press): remove redundant retval code
9738 * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
9740 (gtk_tree_item_subtree_button_click): changed type to gint, and return
9743 * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
9746 2001-03-23 Havoc Pennington <hp@redhat.com>
9748 * gtk/testgtk.c: fix warnings
9750 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
9752 * gtk/gtktextview.c: fix warnings
9754 * gtk/gtktext.c (find_cursor_at_line): fix warning
9756 * gtk/gtkselection.c (gtk_selection_notify): fix warning
9758 * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
9761 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
9764 * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
9766 * gtk/gtkfontsel.c: fix warning
9768 * gtk/gtkcolorsel.c: fix warnings
9770 2001-03-23 Havoc Pennington <hp@redhat.com>
9772 * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
9774 * gtk/gtkbox.c: Apply property patch from Lee Mallabone
9776 * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
9777 and deprecated gtk_check_menu_item_set_show_toggle().
9779 * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
9781 * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
9783 * gtk/gtkframe.c: Apply property patch from Lee Mallabone
9785 2001-03-23 Havoc Pennington <hp@redhat.com>
9787 * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
9790 Fri Mar 23 16:13:43 2001 Jonathan Blandford <jrb@redhat.com>
9792 * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
9795 * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
9796 set_cell to set_value
9798 * gtk/gtkliststore.c (gtk_list_store_set_value): change from
9799 set_cell to set_value
9801 Thu Mar 22 19:27:34 2001 Jonathan Blandford <jrb@redhat.com>
9803 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
9805 * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
9808 * gtk/gtktreeview.c: Addition of initial sortable support.
9810 * gtk/gtktreestore.c: Addition of initial sortable support.
9812 * gtk/gtkliststore.c: Addition of initial sortable support.
9814 * gtk/gtkmarshal.list: yet another marshaller.
9816 * gtk/gtktreedatallist.[ch]: shared code between the store models
9817 for handling sorting headers.
9819 2001-03-22 Havoc Pennington <hp@redhat.com>
9821 * gtk/gtkcontainer.c (gtk_container_set_focus_chain):
9822 (gtk_container_unset_focus_chain): Add ability to override the
9823 focus chain for a container explicitly
9825 Thu Mar 22 13:01:44 2001 Tim Janik <timj@gtk.org>
9827 * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
9828 added PROP_MNEMONIC_WIDGET.
9830 * gtk/gtkwindow.c (gtk_window_activate_mnemonic):
9831 (gtk_window_remove_mnemonic):
9832 (gtk_window_add_mnemonic): fixed assertions.
9833 (gtk_window_activate_mnemonic): constrain modifier checks to those
9834 permitted by gtk_accelerator_get_default_mod_mask().
9835 got rid of gtk_window_get_default_accel_group().
9837 * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
9838 activatable widgets either by focussing or a warning.
9839 added a signal accumulator to ::activate_mnemonic which stops the
9840 emission once a handler returned TRUE.
9842 2001-03-22 Havoc Pennington <hp@pobox.com>
9844 * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
9845 the stock item label
9847 * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
9849 * gtk/gtkstock.c (builtin_items): add mnemonics where missing
9851 * demos/gtk-demo/*.c: Add mnemonics all over the place
9853 * gtk/gtklabel.h: mark parse_uline deprecated
9855 2001-03-21 Alexander Larsson <alexl@redhat.com>
9857 * gtk/gtkitemfactory.[ch]:
9858 Add support for stock and normal imagemenuitems.
9861 Add some tests for mnemonics, stock toolbars, stock
9862 and image menuitems in itemfactory and gdk_window_scroll.
9864 2001-03-21 Alexander Larsson <alexl@redhat.com>
9866 * gtk/gtkbutton.[ch]:
9868 Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
9869 removed accel_group argument. Renamed gtk_button_new_accel() to
9870 gtk_button_new_with_mnemonic() and removed accel_group argument.
9872 * gtk/gtkcheckbutton.[ch]:
9873 New function gtk_check_button_new_with_mnemonic().
9876 Override activate_mnemonic and just grab focus.
9878 * gtk/gtkitemfactory.c:
9879 Don't add menu uline accel group, instead use mnemonics support.
9881 * gtk/gtklabel.[ch]:
9882 New support for mnemonics.
9884 * gtk/gtkmarshal.list:
9885 Needed BOOLEAN:BOOLEAN for activate_mnemonic.
9889 Use mnemonics instead of accel groups for uline
9890 support in menu items.
9891 Removed gtk_menu_get_uline_accel_group() and
9892 gtk_menu_ensure_uline_accel_group().
9894 * gtk/gtkmenuitem.c:
9895 Override activate_mnemonic to handle switching between
9896 menu items if there are collisions.
9898 * gtk/gtknotebook.c:
9899 Connect to activate_mnemonic on the tab_label, so that
9900 activating it switches to that notebook page.
9902 * gtk/gtkwidget.[ch]:
9903 Add activate_mnemonic signal. New function
9904 gtk_widget_activate_mnemonic() to emit it.
9905 Default implementation does activate/grab_focus.
9907 * gtk/gtkwindow.[ch]:
9908 Add support for mnemonics in windows.
9910 gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
9911 gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
9914 Update to function name changes.
9916 2001-03-21 Alexander Larsson <alexl@redhat.com>
9918 * gtk/gtkimagemenuitem.[c]:
9919 Add gtk_image_menu_item_new_from_stock()
9921 Tue Mar 20 15:00:43 2001 Jonathan Blandford <jrb@redhat.com>
9923 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
9924 Fix buglet in meeting.
9926 2001-03-19 Havoc Pennington <hp@redhat.com>
9928 * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
9929 add a bunch of accessor functions. This is because we have
9930 reasonable expectations of extending what fields it contains in
9933 * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
9936 * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
9939 Mon Mar 19 15:53:36 2001 Owen Taylor <otaylor@redhat.com>
9941 * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
9942 handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
9944 * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
9945 gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
9946 gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
9947 gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
9948 Change float to double everywhere with the exception of 0<->1.0 alignment
9951 2001-03-19 Tor Lillqvist <tml@iki.fi>
9953 * gdk/win32/gdkdrawable-win32.c
9954 * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
9957 * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
9960 2001-03-18 Tor Lillqvist <tml@iki.fi>
9962 * gdk/win32/gdkevents-win32.c (print_window_state): New function.
9963 print_event_state, print_event): Use preprocessor macro to make
9964 code more compact. Print also GDK_WINDOW_STATE events.
9965 (synthesize_crossing_events): Remove the old #ifdeffed-out code.
9968 * gtk/makefile.mingw.in: Update.
9970 * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
9971 to catch also Cygwin.
9973 Sun Mar 18 01:15:30 2001 Tim Janik <timj@gtk.org>
9975 * gtk/gtkspinbutton.[hc]: added rc-style argument
9976 GtkSpinButton::shadow_type.
9977 removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
9978 and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
9981 * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
9983 * gtk/gtkwidget.c: quark cleanups.
9985 * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
9986 scanner with appropriate configuration, renamed GtkRcStyleClass.clone
9987 to create_rc_style() (we don't do cloning in standard OO sense).
9988 added per rc style properties.
9990 * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
9991 property values and for caching those. some cleanups.
9993 * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
9995 * gtk/gtksettings.[hc]: new file for global rc-file properties
9996 (at least currently, should get extended to support X properties
9997 and other communication mechanisms).
9999 * gtk/gtkwidget.[hc]: added style property support:
10000 (gtk_widget_class_install_style_property_parser): install style
10001 property pspec with parser function for rc-file values other
10002 than LONG, DOUBLE or STRING.
10003 (gtk_widget_class_install_style_property): same as above without
10004 parser (parsers are going to be needed quite infrequently).
10005 (gtk_widget_style_get_property): retrive style property value.
10006 (gtk_widget_style_get_valist): same as above with varargs support,
10007 has NOCOPY semantics.
10008 (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
10010 Fri Mar 16 18:24:53 2001 Jonathan Blandford <jrb@redhat.com>
10012 * demos/gtk-demo/main.c (row_activated_cb): modified to use
10013 "row_activated" signal.
10015 * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
10016 stupidity. Lets actually pass in the row with this signal...
10018 Fri Mar 16 18:01:17 2001 Jonathan Blandford <jrb@redhat.com>
10020 * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
10022 * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
10024 * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
10025 everything into the ::destroy function, and freed a lot more.
10027 2001-03-16 Havoc Pennington <hp@redhat.com>
10029 * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
10030 instead of gint16, to avoid overflow issues, since sizes > 16-bit
10033 2001-03-16 Havoc Pennington <hp@redhat.com>
10035 * Applied patch from Nils Barth (bug # 51041) to
10036 replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
10039 2001-03-15 Havoc Pennington <hp@redhat.com>
10041 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs
10042 for properties to set on the tag.
10044 * gtk/testtext.c: fixups to reflect create_tag change
10046 * gtk/gtktexttag.c (gtk_text_tag_set_property):
10047 background/foreground stipple are objects, not boxed.
10049 * demos/gtk-demo/textview.c: intellihancing
10051 Fri Mar 16 11:38:42 2001 Jonathan Blandford <jrb@redhat.com>
10053 * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
10054 braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
10056 2001-03-16 Alexander Larsson <alexl@redhat.com>
10058 * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
10059 Fix sign error with queued region translations.
10061 2001-03-15 HideToshi Tajima <tajima@happy>
10063 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
10064 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
10065 * gtk/gtkentry.c (update_im_cursor_location):
10066 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
10067 * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
10068 set_cursor_pos to set_cursor_location in GtkInputContext class
10070 Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
10072 * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
10073 the location of the cell relative to its area.
10074 * gtk/gtkcell*: modified for above change
10075 * gtk/gtktreeview.c: modified for above change.
10077 Wed Mar 14 13:58:32 2001 Jonathan Blandford <jrb@redhat.com>
10079 * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
10080 (gtk_tree_view_finalize): actually unref the model. Thanks to
10081 Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
10083 2001-03-14 Havoc Pennington <hp@redhat.com>
10085 * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
10087 * gtk/gtk.h: remove gtkdata.h
10089 * gtk/Makefile.am: remove gtkdata
10091 * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
10092 not "disconnect" on the adjustments.
10094 * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
10097 * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
10100 * configure.in: handle case where X render exists, but Pango lacks
10103 2001-03-15 Alexander Larsson <alexl@redhat.com>
10105 * gtk/gtktoolbar.[ch]:
10106 New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
10107 to add stock items to toolbars.
10110 Remove ../gdk/gdkim.h from gdk_headers.
10112 2001-03-15 Sven Neumann <sven@gimp.org>
10114 * gdk/gdkim.h: removed
10117 * gdk/x11/gdkim-x11.c: do not include gdkim.h
10119 2001-03-14 HideToshi Tajima <tajima@happy.sunsoft.eng.sun.com>
10121 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
10122 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
10123 * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
10124 set_cursor_pos() virtual method
10126 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
10127 (gtk_im_context_xim_set_cursor_pos): add implementation for
10128 set_cursor_pos() method
10130 * gtk/gtkentry.c (recompute_idle_func): set current cursor
10131 position to input methods
10133 Mon Mar 12 21:02:08 2001 Jonathan Blandford <jrb@redhat.com>
10135 * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
10138 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
10140 (_gtk_tree_data_list_alloc): use g_mem_chunk.
10141 (_gtk_tree_data_list_node_to_value): Fix to switch on
10142 G_TYPE_FUNDAMENTAL.
10143 (_gtk_tree_data_list_value_to_node): Fix to switch on
10144 G_TYPE_FUNDAMENTAL.
10145 (_gtk_tree_data_list_node_copy): Fix to switch on
10146 G_TYPE_FUNDAMENTAL.
10148 2001-03-12 Havoc Pennington <hp@redhat.com>
10150 * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione
10151 to convert to new property API. Also, change default_width and
10152 default_height get_property to return 0 as the flag value for
10153 "unset"; -1 is not a valid value for these fields.
10155 2001-03-12 Havoc Pennington <hp@redhat.com>
10157 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
10158 enum with registration for icon sizes, instead of strings.
10160 * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h,
10161 gtkwidget.c: Fix to reflect GtkIconSize
10163 2001-03-12 Alexander Larsson <alexl@redhat.com>
10165 Make GtkFB compile and link.
10167 * gdk/linux-fb/gdkdrawable-fb2.c:
10168 window->mapped to GDK_WINDOW_IS_MAPPED().
10170 * gdk/linux-fb/gdkwindow-fb.c:
10171 window->mapped to GDK_WINDOW_IS_MAPPED().
10172 Added gdk_window_shape_combine_region.
10173 Added assorted placeholders for unimplemented new GdkWindow API calls.
10175 2001-03-12 Alexander Larsson <alexl@redhat.com>
10177 * gtk/gtkfilesel.c:
10178 Add more test when converting filenames from/to utf-8.
10179 Don't allow entering text in the filename entry which isn't allowed in
10180 a filename. Just beep instead.
10182 2001-03-12 Alexander Larsson <alexl@redhat.com>
10185 Scroll using gdk_window_scroll(). Don't wait for exposes.
10186 Move the column headers in an order that makes them flash less.
10188 2001-03-10 Hans Breuer <hans@breuer.org>
10190 * gdk/gdk.def : updated
10192 * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
10193 to offseting the clip_mask at the right place
10195 * gdk/win32/gdkwindow-win32.c : don't create background brushes
10196 for all the gdkClasses, especially not for the input_only case.
10197 Otherwise flickering wont be avoidable, because we don't get
10198 WM_ERASEBKGND message for these windows.
10200 * gdk/win32/gdkevents-win32.c : initialize event->expose.region
10201 and fixed massive redraw problems apparently triggered by Alexanders
10202 recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
10203 but it seems to work quite well :-)
10205 * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
10208 Sat Mar 10 12:15:31 2001 Jonathan Blandford <jrb@redhat.com>
10210 * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
10211 (gtk_list_store_set_cell): Fix a stupid typo.
10213 Fri Mar 9 20:36:21 2001 Jonathan Blandford <jrb@redhat.com>
10215 * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
10216 select_all not work if you're in SINGLE mode (it doesn't make that
10217 much sense, anyway.)
10219 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
10220 handle types more sanely.
10221 (_gtk_tree_data_list_value_to_node): handle types more sanely.
10222 (_gtk_tree_data_list_node_copy): handle types more sanely.
10224 * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
10225 GValue better. Converts the type as well.
10227 * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
10228 GValue better. Converts the type as well.
10230 Wed Mar 7 20:47:41 2001 Owen Taylor <otaylor@redhat.com>
10232 * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
10233 gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c
10234 gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
10235 gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
10237 * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
10240 2001-03-09 Hans Breuer <hans@breuer.org>
10242 * gdk/gdk.def : updated
10244 * gdk/win32/gdkevents-win32.c : don't ask input_only windows
10247 * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
10250 * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
10251 removing and implemented Havoc's GdkWindow state functions;
10252 stick/unstick only as no-op, cause I don't know how to emulate
10255 * gtk/gtk.def : updated
10257 * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
10259 * gtk/gtktypeutils.c : #include <string.h>
10261 * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
10263 Fri Mar 9 09:31:55 2001 Tim Janik <timj@gtk.org>
10265 * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
10266 GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
10269 2001-03-09 Alexander Larsson <alexl@redhat.com>
10271 * docs/Changes-2.0.txt:
10272 Document expose event->region change and that gtk_widget_event
10273 doesn't allow passing expose events.
10276 Add region to expose event.
10279 Handle event->region in gdk_event_copy() and gdk_event_free().
10281 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
10282 Generate expose_event->region when creating expose events.
10284 * gdk/x11/gdkevents-x11.c:
10285 Generate expose events with regions when translating X events.
10287 * gtk/gtkcontainer.[ch]:
10288 Default expose handler that propagates expose events to NO_WINDOW
10289 children. New function gtk_container_propagate_expose()
10291 * gtk/gtkwidget.[ch]:
10292 Moved gtk_widget_event implementation to gtk_widget_event_internal.
10293 gtk_widget_event calls gtk_widget_event_internal but doesn't allow
10294 expose events. New function gtk_widget_send_expose() to send expose
10295 events. New function gtk_widget_region_intersect() to calculate
10296 window/region intersections.
10298 * gtk/gtkmain.c (gtk_main_do_event):
10299 Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
10300 Use gtk_widget_send_expose() to send expose events.
10305 * gtk/gtkimagemenuitem.c:
10310 Remove expose handler, using the default container implementation
10314 * gtk/gtkcheckbutton.c:
10315 * gtk/gtkeventbox.c:
10317 * gtk/gtkhandlebox.c:
10319 * gtk/gtklistitem.c:
10321 * gtk/gtkmenubar.c:
10322 * gtk/gtkmenuitem.c:
10323 * gtk/gtknotebook.c:
10324 * gtk/gtkoptionmenu.c:
10326 * gtk/gtkscrolledwindow.c:
10327 * gtk/gtktogglebutton.c:
10328 * gtk/gtktoolbar.c:
10329 * gtk/gtktreeitem.c:
10330 * gtk/gtkviewport.c:
10331 Chain expose handler to parent class handler. Use
10332 gtk_container_propagate_expose() to propagate exposes.
10334 * gtk/gtkclist.c (check_exposures):
10335 * gtk/gtktext.c (process_exposes):
10336 Use gtk_widget_send_expose instead of gtk_widget_event.
10338 Thu Mar 8 19:40:28 2001 Jonathan Blandford <jrb@redhat.com>
10340 * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
10342 Thu Mar 8 19:18:27 2001 Jonathan Blandford <jrb@redhat.com>
10344 * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
10345 unref the nodes. Fixes bug #50058.
10347 * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
10348 "::ref_iter" to "::ref_node".
10349 (gtk_tree_model_unref_node): change "::unref_iter" to
10350 "::unref_node". Fixes bug #50064.
10352 Thu Mar 8 17:40:09 2001 Jonathan Blandford <jrb@redhat.com>
10354 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
10355 support for invisible cells.
10356 (gtk_tree_view_bin_expose): ditto
10358 Thu Mar 8 16:36:00 2001 Jonathan Blandford <jrb@redhat.com>
10360 * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
10363 * tests/testtreefocus.c (main): New test file.
10365 * tests/testtreeview.c: update to latest glib changes.
10367 * tests/testtreecolumns.c: update to latest glib changes.
10369 Thu Mar 8 18:13:20 2001 Tim Janik <timj@gtk.org>
10371 * gtk/testgtk.c: re-enabled event watcher emission hooks.
10373 Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org>
10375 * *.c: added accumulator data argument to g_signal_newc()
10378 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model):
10379 * gtk/gtktreeview.c (gtk_tree_view_setup_model):
10380 * gtk/treestoretest.c (make_window):
10381 s/g_signal_connect/g_signal_connectc/.
10383 * gtk/gtktextbuffer.c: completed signal arg fixups,
10384 they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
10386 Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com>
10388 * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
10391 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a
10392 ::hierarchy-changed signal when a widget changes
10393 from anchored to unanchored or vice versa.
10395 gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
10396 Use a private flag to keep track of this efficiently.
10398 2001-03-07 Havoc Pennington <hp@redhat.com>
10400 * gtk/testgtk.c (create_spins): uglify so that size request gets
10403 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
10404 request on values for upper/lower, completes #6152
10406 Wed Mar 7 20:07:22 2001 Owen Taylor <otaylor@redhat.com>
10408 * Makefile.am: Remove gtk-config-2.0 again.
10409 (Grrrr, pkg-config. And stops make loops.)
10411 Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
10413 * gtk/gtksignal.[hc]: removed old emission hook API.
10415 * docs/Changes-2.0.txt: fixed sections.
10417 * gtk/gtktextbuffer.c: signal arg fixups.
10419 2001-03-07 Havoc Pennington <hp@redhat.com>
10421 * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
10423 * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
10424 here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
10425 of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
10426 validation and the redraw which is higher priority than the
10429 2001-03-07 Havoc Pennington <hp@redhat.com>
10431 * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
10432 (gtk_entry_set_property): remove trailer
10434 * gtk/gtkentry.c (gtk_entry_set_width_chars):
10435 (gtk_entry_get_width_chars): new functions, to set size request to
10436 a given number of characters
10438 * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
10440 * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
10441 (gtk_dialog_get_has_separator): new function
10442 (run_delete_handler): fix to not emit "response" signal
10443 because we already did in the delete event handler installed
10444 at dialog creation time.
10446 * gtk/gtkdialog.h: add a has_separator property,
10447 add GTK_DIALOG_NO_SEPARATOR flag
10449 2001-03-07 Havoc Pennington <hp@redhat.com>
10451 * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
10452 off decorations for a window.
10454 * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
10457 * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function
10458 to get location of PangoLayout inside the label, closes #51198
10460 * gtk/testgtk.c (create_bbox): fix up button box usage
10462 * gtk/testcalendar.c (create_calendar): fix up button box usage
10464 * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
10466 * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
10468 * gtk/gtkhbbox.h: deprecations
10470 * gtk/gtkvbbox.h: deprecations
10472 * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
10473 emulate deprecated gtk_button_box_get_spacing
10475 * gtk/gtkbbox.h: deprecate some useless functions, remove entirely
10476 the "set global default" functions
10477 (struct _GtkButtonBox): remove "spacing" field, use the one from
10480 * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
10482 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
10483 render the icon, return the missing image icon.
10485 * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
10486 image icon if the load fails.
10488 * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
10489 when no image is found; should be the Netscape "missing image"
10490 icon eventually but for now is a random image
10492 * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the
10493 role for the session manager
10495 * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
10497 * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
10498 GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
10500 * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
10502 Wed Mar 7 13:24:57 2001 Tim Janik <timj@gtk.org>
10504 * gtk/*.c: marshaller fixes.
10506 * gtk/gtkmarshal.list: extreme cleanup.
10508 * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
10509 param spec for now.
10511 * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
10514 * gtk/gtktypeutils.[hc]: updates to GLib API changes.
10515 special cased autogenerated boxed types from gtktypebuiltins_ids.c
10516 which are not reference counted:
10517 GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
10518 PangoFontDescription, GtkTreeIter and GtkTreePath.
10520 Thu Mar 1 03:58:56 2001 Tim Janik <timj@gtk.org>
10522 * gtk/gtktreeselection.h:
10523 * gtk/gtktreemodel.c:
10524 * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
10525 file should be included directly, and gobject/gmarshal.h
10526 as well as gtk/gtkmarshal.h even can't be included directly.
10528 * Makefile.am: grr, install gtk-config-2.0.
10533 * gtk/gtkitemfactory.c: use g_object_connect() instead of
10534 passing "*signal*::*" args to gtk_widget_set().
10536 * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
10538 * gtk/*.c: removed trailer arg from property setters and getters.
10541 2001-03-07 Alexander Larsson <alexl@redhat.com>
10543 * gtk/gtklabel.c (set_markup): Removed warning
10545 Tue Mar 6 19:59:12 2001 Jonathan Blandford <jrb@redhat.com>
10547 * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
10548 field to allow you to hide cell renderers.
10550 * gtk/gtkcellrenderer.c: Add support for invisible cells.
10552 * gtk/gtktreeview.c: Add support for invisible cells.
10554 Tue Mar 6 17:25:07 2001 Jonathan Blandford <jrb@redhat.com>
10556 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
10557 Add "clicked" signal back to columns.
10559 * ChangeLog: remove conflict markers.
10561 Tue Mar 6 10:45:45 2001 Owen Taylor <otaylor@redhat.com>
10563 * gtk/gtkbutton.c: Add animation of activation by, on
10564 activate, pressing the button, and adding a timeout that
10565 releases the button after 250ms or on key release and
10566 emits ::clicked. (#51501)
10568 * gtk/gtkdialog.c: Bit of a hack - for buttons in the
10569 action area, we connect to ::clicked instead of ::activate
10570 so the dialog stays up through the animation.
10572 Mon Mar 5 16:38:15 2001 Owen Taylor <otaylor@redhat.com>
10574 * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
10575 check the ignore_enter flag for the menu shell that
10576 the item is actually a child of, not for attached
10579 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
10581 * gtk/gtkmain.c (gtk_propagate_event): Only do special
10582 special key-press grab handling for widgets within
10583 GtkWindows. Otherwise, fall through to normal case.
10585 This prevents key events being sent twice to GtkInvisible
10586 widgets, which can cause all sorts of mischief.
10588 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
10590 * gtk/gtkmain.c (gtk_propagate_event): When a grab
10591 widget is in effect, give the grab widget a first
10592 crack at KEY_PRESS/RELEASE events. (#424)
10594 2001-03-06 James Henstridge <james@daa.com.au>
10596 * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
10597 offset for the window_state_event to point at window_state_event
10598 rather than no_expose_event.
10600 Mon Mar 5 19:10:15 2001 Jonathan Blandford <jrb@redhat.com>
10602 * gtk/gtkimmodule.h: fix busted /* comment */
10604 Mon Mar 5 15:07:05 2001 Jonathan Blandford <jrb@redhat.com>
10606 * gtk/gtktreeview.c: Apply patch from John Margaglione to add
10609 Mon Mar 5 14:55:19 2001 Jonathan Blandford <jrb@redhat.com>
10611 * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
10612 add object properties.
10614 * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
10615 to add object properties.
10617 * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
10620 * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
10621 add object properties.
10623 * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
10626 Mon Mar 5 14:38:54 2001 Jonathan Blandford <jrb@redhat.com>
10628 * gtk/gtktreemodel.c: renamed "child_toggled" to
10629 "has_child_toggled".
10631 * gtk/gtktreeview.c: Handle removing columns better. Updated to
10632 handle new signal name.
10634 * gtk/gtktreestore.c: Updated to handle new signal name.
10635 * gtk/gtklisttore.c: Updated to handle new signal name.
10636 * gtk/gtktreemodelsort.c: Updated to handle new signal name.
10638 2001-03-05 Alexander Larsson <alexl@redhat.com>
10640 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
10641 Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
10643 2001-03-05 Michael Natterer <mitch@gimp.org>
10645 * gtk/gtklabel.c: Made the "parent_class" pointer static. The
10646 pixbuf-engine coincidentially also failed to make one of it's
10647 parent_class pointers static, causing overwriting of GtkLabel's
10648 parent_class pointer in pixbuf_style_class_init().
10649 (Will commit the fix to the pixbuf-engine too).
10651 2001-03-05 Alexander Larsson <alexl@redhat.com>
10654 Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
10655 New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
10656 gdk_window_set_icon_list for net wmspec functionality.
10658 * gdk/x11/gdkwindow-x11.c:
10659 Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
10660 Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
10661 gdk_window_set_icon_list.
10662 Added gdk_wmspec_change_state helper function and used it in the code.
10663 Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
10665 * gtk/gtkdialog.c (gtk_dialog_init):
10666 Set GDK_WINDOW_TYPE_HINT_DIALOG.
10668 * gtk/gtkhandlebox.c (gtk_handle_box_realize):
10669 Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
10672 new function gtk_window_set_type_hint.
10673 On realize, set type hint and modal hint.
10676 Added type_hint field and gtk_window_set_type_hint.
10678 2001-03-05 Alexander Larsson <alexl@redhat.com>
10680 * gtk/gtklabel.[ch]:
10681 Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
10682 New function gtk_label_get_accel_keyval () to get the underline accelerator
10683 of the label. Setting the label pattern overrides other attributes.
10685 Mon Mar 5 14:51:10 MET 2001 Sven Neumann <sven@gimp.org>
10687 * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
10688 Added missing initializers to gtk_rc_style_init().
10690 Sun Mar 04 07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
10692 * gtk/gtktextview.c: fixed bug #51097 about setting
10693 gtk_text_view_set_border_window_size() if the widget is
10696 Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
10698 * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
10700 * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
10701 comment. Won't do to have duplicated doc comments between
10702 the platform subdirs.
10704 Sat Mar 3 16:26:33 2001 Owen Taylor <otaylor@redhat.com>
10706 * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c
10707 gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
10709 Detectable auto-repeat - make a repeating key generate
10710 press/press/press/release instead of press/release pairs.
10712 If we have Xkb and XkbSetDectableAutoRepeat supports
10713 that, we do it that way. Otherwise, when we get
10714 a release event, we check ahead with XPending to see
10715 if the next key is a KeyPress with the same keycode
10716 and timestamp. (Not 100% reliable, but pretty close.)
10718 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
10720 * gtk/gtkmain.c (gtk_propagate_event): Only do special
10721 special key-press grab handling for widgets within
10722 GtkWindows. Otherwise, fall through to normal case.
10724 This prevents key events being sent twice to GtkInvisible
10725 widgets, which can cause all sorts of mischief.
10727 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
10729 * gtk/gtkmain.c (gtk_propagate_event): When a grab
10730 widget is in effect, give the grab widget a first
10731 crack at KEY_PRESS/RELEASE events. (#424)
10733 Sat Mar 3 15:39:49 2001 Owen Taylor <otaylor@redhat.com>
10735 * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
10736 to extend the selection. (Roughly based on patch
10737 from Jay Cox, #50939)
10739 * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
10740 to properly handle previous GDK_BUTTON_PRESS.
10741 (Patch from Jay Cox, #50938)
10743 * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
10744 '\0' back along with the deleted text. (#51148)
10746 Mon Jan 22 14:31:29 2001 Owen Taylor <otaylor@redhat.com>
10748 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
10749 the group when extracting it from the X keyboard event.
10751 * modules/input/Makefile.am modules/input/imipa.c:
10752 Simple module for entering IPA. (Do we need a
10753 gtk-stupid-input-tricks CVS module?)
10755 Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
10757 * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
10760 * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
10762 * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
10763 is no focus widget for the dialog currently, grab the focus as well
10766 * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
10767 the action area's children to iterate through, not the
10770 Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
10772 * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
10773 Add plug-socket tests. (Won't work worth a darn until I commit
10774 the rest of the plug-socket changes, but no reason these
10775 can't go into CVS now.)
10777 2001-03-02 Havoc Pennington <hp@redhat.com>
10779 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
10780 _gdk_region_get_xrectangles()
10782 * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
10784 * gtk/testgtk.c (create_shapes): add test for shape_combine_region
10786 * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
10787 function, contributed by Ron Steinke
10789 * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
10790 gdk_net_wm_supports
10792 * gdk/gdkregion-generic.c (gdk_region_get_rectangles):
10793 New function, contributed by Ron Steinke
10795 * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function,
10796 used to line up the text in the entry when using the entry for
10797 editable sheet cell hacks
10799 * gtk/testgtk.c (create_entry): test the activate_default setting
10802 * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to
10803 cause the entry to activate the default button for a dialog when
10805 (gtk_entry_get_activates_default): new function
10807 Wed Feb 28 19:10:43 2001 Owen Taylor <otaylor@redhat.com>
10809 * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
10810 Hwang to move call to sync_selection() up a few lines
10811 to before the row list is modified, to fix crash when
10812 removing rows in the undo_selection list.
10814 (Test case provided by Daniel Elstner:
10816 http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
10818 Fri Feb 23 15:06:48 2001 Owen Taylor <otaylor@redhat.com>
10820 * gtk/gtktree.c (gtk_tree_class_init): Do the setting
10821 of tree->root_tree in parent_set rather than _map(),
10822 fixing #50892 in a bit better manner.
10824 Thu Feb 22 17:07:58 2001 Owen Taylor <otaylor@redhat.com>
10826 * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
10828 Tue Feb 2 11:22:33 2001 Jody Goldberg <jgoldberg@home.com>
10830 * gtk/gtkstyle.c : Remove duplicate fwd decl for
10831 gtk_default_draw_shadow.
10833 ue Feb 20 11:40:58 2001 Owen Taylor <otaylor@redhat.com>
10835 * gdk/gdkimage.c (gdk_image_new): Remove excess
10836 warning, make warnings more verbose, treat a error
10837 in shmat as permanent, and don't try again.
10838 (#51163, Ed Randall.)
10840 Mon Feb 19 20:15:28 2001 Owen Taylor <otaylor@redhat.com>
10842 * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
10843 delay for the first click before starting to scroll.
10844 (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
10846 * gtk/gtktext.c: GtkText should have I-beam cursor.
10847 (based on gtk-enf-990513-1.patch, Eric Fisher.)
10849 Mon Feb 19 16:42:19 2001 Owen Taylor <otaylor@redhat.com>
10851 * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
10852 cleanup to remove some references to unused
10853 ->xoffset, ->yoffset.
10855 Mon Feb 19 14:20:36 2001 Owen Taylor <otaylor@redhat.com>
10857 * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
10858 mask. (#51039, fix from Martin Maierhofer)
10860 Fri Feb 16 20:09:42 2001 Owen Taylor <otaylor@redhat.com>
10862 * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
10863 for unshifted + and shifted = for non-us keyboards.
10864 Make <Control>+ and <Control>- work as well as
10865 <Control>KP_Plus, <Control>KP_Minus for recursive
10866 open/close. (#2682, René Seindal)
10868 Fri Feb 16 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
10870 * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
10871 the active menu item before deactivating the menu,
10872 so gtk_menu_popdown doesn't change the history. (#50964)
10874 Fri Feb 16 15:55:22 2001 Owen Taylor <otaylor@redhat.com>
10876 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
10877 draw lines with text_gc rather than black_gc.
10878 (Patch from Vlad Harchev <hvv hippo ru>, #50926)
10880 Thu Mar 1 19:50:56 2001 Jonathan Blandford <jrb@redhat.com>
10882 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
10883 Move handling of buttons fully in gtktreeviewcolumn. This code is
10884 less interrelated then it was, but it still requires the
10885 GtkTreeView to map it.
10887 * test/testtreecolumn.c: Now I can add a column to one view,
10888 remove it, add it to the another view, remove it, then re-add it
10889 to the first. Nifty.
10891 Thu Mar 1 13:14:27 GMT 2001 Tony Gale <gale@gtk.org>
10893 * docs/tutorial/gtk-tut.sgml: Minor corrections
10895 Wed Feb 28 16:36:46 2001 Jonathan Blandford <jrb@redhat.com>
10897 * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
10900 2001-02-28 Havoc Pennington <hp@redhat.com>
10902 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
10904 (gtk_widget_draw_focus): remove this function; we could instead
10905 make it just gtk_widget_draw(), but in most cases I think the
10906 result would be broken user code, so think it's better to have
10907 that code not compile and get fixed
10908 (gtk_widget_draw_default): ditto
10910 * gtk/gtkwidget.c: Add default handlers for focus_in_event and
10911 focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
10913 * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
10914 widgets lose/get the default, instead of calling draw_default
10916 * docs/Changes-2.0.txt: note about all this
10918 Then fixed every widget in GTK, I won't list all the filenames.
10920 Tue Feb 27 19:32:53 2001 Jonathan Blandford <jrb@redhat.com>
10922 * gtk/gtktreemodel.c (deleted_callback): Proxy out to
10923 _gtk_tree_row_reference_deleted.
10924 (inserted_callback): Proxy out to
10925 _gtk_tree_row_reference_inserted.
10926 (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
10927 get around signal emission ordering problem.
10929 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
10930 fix to work with SINGLE
10931 (_gtk_tree_selection_internal_select_node): Major sanitization on
10932 selections. SINGLE now seems to work.
10934 * tests/Makefile.am: add testtreecolumn.c:
10936 * tests/testtreecolumn.c: New test. Mostly points out selection
10937 bugs currently, but will test columns later.
10939 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
10940 selection bug. I hate touching this code -- it's scary.
10942 2001-02-26 Havoc Pennington <hp@redhat.com>
10944 * gtk/testgtk.c: test the window state stuff
10946 * gtk/gtkwindow.c (gtk_window_present): new function, makes a
10947 window come to the user's attention as if it were just created
10948 (gtk_window_iconify): new function
10949 (gtk_window_deiconify): new function
10950 (gtk_window_stick): new function
10951 (gtk_window_unstick): new function
10952 (gtk_window_maximize): new function
10953 (gtk_window_unmaximize): new function
10955 * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
10957 * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
10959 * gdk/x11/gdkevents-x11.c: create window state events when
10961 (gdk_wmspec_supported): new function
10963 * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
10964 iconification before showing the window
10965 (gdk_window_deiconify): new function
10966 (gdk_window_stick): new function
10967 (gdk_window_unstick): new function
10968 (gdk_window_maximize): new function
10969 (gdk_window_unmaximize): new function
10971 * gdk/gdkwindow.c: store the window state in the window;
10972 change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
10974 (gdk_window_get_state): return the current window state
10976 * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
10977 (gdk_event_get_state): handle GDK_WINDOW_STATE
10978 (gdk_synthesize_window_state): function to create the window state
10981 * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
10982 event, for changes to "window state" such as maximized, sticky,
10985 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
10988 * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function,
10989 finds out if we support a given WM spec hint
10991 Tue Feb 27 13:37:38 GMT 2001 Tony Gale <gale@gtk.org>
10993 * docs/faq/gtk-faq.sgml: New question re memory leaks.
10995 2001-02-25 Hans Breuer <hans@breuer.org>
10997 * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
10998 cause we want to loose those prototypes only in the latter case
11000 * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
11001 GdkPixmapImplWin32 because it itsn't derived from it. Use the
11002 impl member variable instead
11004 * gtk/gtk.def : updated
11007 * gtk/gtkmenus.c : include <string.h> for memset ()
11009 * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
11010 for everthing built here, but for gtk-x.x.dll only. This solves
11011 problem of indifferent gtk type definitions
11013 Sat Feb 24 20:11:39 2001 Jonathan Blandford <jrb@redhat.com>
11015 * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
11017 Fri Feb 23 17:50:13 2001 Jonathan Blandford <jrb@redhat.com>
11019 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
11020 column that is exposed.
11022 (_gtk_tree_view_update_size): Changed name from set_size, and
11023 changed function to do more work, and not force people calling it
11024 to figure out the size. Simplifies a lot of code elsewhere.
11026 2001-02-23 Alexander Larsson <alexl@redhat.com>
11028 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
11029 return solid masks for xpms that have no transparent color.
11030 This makes the ..._create_from_xpm... API backwards
11033 2001-02-23 Tor Lillqvist <tml@iki.fi>
11035 * README.win32: Update. Mention the gtk-1-3-win32-production
11038 * gdk/win32/bdfcursor.c: New file. A program that generates
11039 xcursors.h. Thanks to Stefan Ondrejicka.
11041 * gdk/win32/xcursors.h: New file, contains the X cursor font in a
11044 * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
11046 * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
11047 function, uses xcursors.h.
11048 (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
11049 cursor from inline data instead of using LoadCursor() to generate
11050 it from a resource.
11052 * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
11053 event, must check the Windows message for mouse button state, as
11054 the GDK event state might not have been built if it is
11055 undelivered. Remove one goto.
11057 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
11058 SetCursor() if the current cursor as returned by GetCursor() is
11059 the window's previous cursor. The ChildWindowFromPoint() test
11060 apparently didn't work correctly.
11062 * gdk/win32/rc/*.cur: Remove.
11064 * gdk/win32/rc/gdk.rc.in: Remove cursors.
11066 * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
11068 * gtk/makefile.{mingw,msc}.in: Updates.
11070 Wed Feb 21 20:56:50 2001 Jonathan Blandford <jrb@redhat.com>
11072 * gtk/gtktreemodel.h: add functions for signal emission.
11074 * gtk/gtktreestore.c: move to use above functions instead of
11077 * gtk/gtkliststore.c: ditto
11079 Wed Feb 21 15:41:34 2001 Jonathan Blandford <jrb@redhat.com>
11081 * gtk/gtktreestore.c: removed signals. Moved to inherit from
11082 GObject instead of GtkObject.
11084 * gtk/gtkliststore.c: ditto.
11086 * gtk/gtktreemodelsort.c: ditto.
11088 * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
11089 GtkTreeModelIface, instead of in each model.
11091 2001-02-21 Havoc Pennington <hp@redhat.com>
11093 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
11094 unbreak this function
11096 * gtk/gtkentry.c: apply patch from Lee Mallabone to add object
11099 * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
11102 * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object
11105 * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
11106 mean unset the max length
11108 Wed Feb 21 14:23:05 2001 Jonathan Blandford <jrb@redhat.com>
11110 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
11111 Changed name to be set_cell_data_func to make it clear what
11112 the functino does. Close bug #51069.
11114 Tue Feb 20 16:49:00 2001 Jonathan Blandford <jrb@redhat.com>
11116 * gtk/testgtk.c (main): Remove turning on of profiling malloc,
11117 have memory actually freed. Keeps box running longer.
11119 2001-02-21 Alexander Larsson <alexl@redhat.com>
11121 * gtk/gtkseparatormenuitem.[ch]:
11122 Added new menu separator item. The drawing and size handling
11123 is still done in GtkMenuItem, but the API is a bit more sane.
11126 Add gtkseparatormenuitem.[ch].
11129 Add gtkseparatormenuitem.h.
11132 * gtk/gtkmenufactory.c:
11133 * gtk/gtktextview.c:
11134 Use the new API for menu separators.
11136 * demos/gtk-demo/menus.c (create_menu):
11137 Add some GtkSeparatorMenuItem demo code.
11139 2001-02-20 Havoc Pennington <hp@redhat.com>
11141 * gtk/gtkaspectframe.c: Convert to new property API, patch from
11144 * gtk/gtkarrow.c: Convert to new property API, patch from
11147 Tue Feb 20 14:26:41 2001 Jonathan Blandford <jrb@redhat.com>
11149 * tests/testtreeview.c (toggled_callback): fix to reflect change
11150 in GtkTreeModelStore.
11152 Tue Feb 20 12:16:12 2001 Jonathan Blandford <jrb@redhat.com>
11154 * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
11155 function to create an icon set from a pixbuf.
11157 2001-02-20 Alexander Larsson <alexl@redhat.com>
11159 * gtk/gtkcellrenderertext.[ch]:
11160 Add a "markup" property.
11162 * gtk/treestoretest.c:
11163 Use the markup property, remove some leftover stuff from
11164 GtkTreeModelMapping.
11166 2001-02-20 Alexander Larsson <alexl@redhat.com>
11168 * gtk/gtklabel.c (gtk_label_set_selectable):
11169 Queue a redraw if the selectable setting was changed.
11171 2001-02-20 Alexander Larsson <alexl@redhat.com>
11173 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
11174 Actually copy the whole gc, not just the public parts.
11176 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
11177 GDK_WINDOW_TEMP are not toplevel. Fixes selectable
11180 2001-02-19 Havoc Pennington <hp@pobox.com>
11182 * gdk/gdkwindow.c: docs
11184 * gdk/gdkrgb.c: docs
11186 * gdk/gdkregion-generic.c: docs
11188 * gdk/gdkgc.c (gdk_gc_set_values): docs
11190 * gdk/gdkdraw.c: docs
11192 * gdk/gdkdrawable.h: deprecate drawable get/set data
11194 Mon Feb 19 20:37:35 2001 Jonathan Blandford <jrb@redhat.com>
11196 * demos/gtk-demo/dialog.c: Add simple new demo.
11198 2001-02-19 Havoc Pennington <hp@redhat.com>
11200 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
11201 insert_child_anchor signal, bug #50245
11203 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
11204 from create_child_anchor, so the anchor is passed in
11206 * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
11207 (_gtk_widget_segment_new): have the child anchor object passed in,
11208 instead of creating it.
11210 * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
11211 to gtk_text_buffer_get_modified
11213 2001-02-19 Havoc Pennington <hp@redhat.com>
11215 * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
11216 changed GLib without fixing GTK
11218 * gtk/gtkrange.h: Rename all the stupid implementation detail
11219 functions to have an underscore in front. Most of them should
11220 probably just go away, but for starters don't export them.
11223 2001-02-19 Havoc Pennington <hp@redhat.com>
11225 * gdk/gdkcolor.h: test was backward, so deprecated functions were
11226 excluded by default
11228 * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
11229 clean up the old code a bit
11231 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
11234 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
11235 draw inconsistent state
11237 * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
11238 (create_menu): add inconsistent test
11240 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
11242 (gtk_check_menu_item_get_inconsistent): new function
11243 (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
11244 state (using etched in for now)
11246 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
11247 draw inconsistent state
11249 * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
11250 function, used when the user has selected a range of stuff in
11252 (gtk_toggle_button_get_inconsistent): accessor for that
11253 (gtk_toggle_button_paint): draw inconsistent state (etched in?
11254 don't know what else to do)
11256 2001-02-19 Hans Breuer <hans@breuer.org>
11258 * gtk/gtk.def : updated exported symbols
11260 * gtk/makefile.msc.in : updated
11262 * gtk/gtkstyle.c (gtk_style_realize) : gets called without
11263 a colormap, when invoked from testgtk::entry. I'm not sure where
11264 the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
11265 avoids immediate crashing ...
11267 * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
11270 * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
11271 0 parameter. At least msvc doesn't like macros with var args.
11272 I simply removed the extra 0, was it a feature or a typo ?
11274 * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
11275 removed the extra indirection from the GtkTreeViewColumnFunc parameter,
11276 because the value assignment to the internal struct wasn't working.
11277 I'm not absolutely sure. The problem could have been resolved by
11278 changing the "func" declartion in the struct, but was the pointer
11279 to the function pointer intended ?
11281 * gtk+/gtk/gtktreedatalist.c : include gboxed.h
11283 * gdk/gdk.def : updated exported symbols
11285 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
11286 only use SetDIBitsToDevice if there is a palette at the drawable
11287 and the image is GDK_VISUAL_PSEUDO_COLOR
11289 * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
11291 * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
11293 * gdk/*/makefile.msc : updated
11295 2001-02-19 Havoc Pennington <hp@redhat.com>
11297 * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
11298 GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
11300 * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
11301 (gdk_key_repeat_restore): nuke
11303 * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
11304 (gdk_init_check): no atexit func
11306 * gdk/gdkrgb.h: mark some stuff deprecated
11308 * gdk/gdkcolor.h: mark some stuff deprecated
11310 * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
11312 * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
11314 2001-02-16 Havoc Pennington <hp@redhat.com>
11316 * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
11319 * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
11320 steps, and add Ctrl-arrow shortcuts for paging visually as with
11321 HScale, since Page Up and Page Down move logically.
11323 * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
11324 GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
11326 * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
11328 (gtk_range_scroll): handle the visual steps
11330 * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
11333 * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
11334 steps, not the logical ones.
11336 * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
11337 (scroll_vertical): handle up/down steps
11339 2001-02-19 Alexander Larsson <alexl@redhat.com>
11341 * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
11342 Copy data and free data with free().
11344 * gdk-pixbuf/gdk-pixbuf.c:
11345 * gdk-pixbuf/io-jpeg.c:
11346 * gdk-pixbuf/io-png.c:
11347 Use g_try_malloc/g_free instead malloc/free.
11349 * gdk-pixbuf/test-gdk-pixbuf.c:
11350 Must... initialize... gobject...
11352 * gdk-pixbuf/pixops/timescale.c:
11353 * gtk/gtkcalendar.c:
11354 Use g_malloc instead of malloc.
11356 2001-02-19 Alexander Larsson <alla@lysator.liu.se>
11359 Comment out property assignments, these don't work yet.
11361 2001-02-17 Havoc Pennington <hp@pobox.com>
11363 * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
11366 2001-02-17 Havoc Pennington <hp@pobox.com>
11368 * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
11369 shadowed variables that had broken size request in some cases,
11370 leading to bogus tooltips (#50996)
11372 2001-02-06 Jon K Hellan <hellan@acm.org>
11374 Implement fast browsing of tooltips, bug #50619
11376 * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
11379 * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
11380 use_sticky_delay and last_popdown.
11381 (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
11383 (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
11385 (gtk_tooltips_recently_shown): New static function. Return true
11386 if < sticky_delay has elapsed since last popdown.
11387 (gtk_tooltips_event_handler): Display window after sticky_delay
11388 (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
11389 since last popdown.
11391 2001-02-17 Havoc Pennington <hp@pobox.com>
11393 * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
11394 instead of (). #6394
11396 * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
11397 G_CONST_RETURN, make it return by reference, #50473
11399 Sat Feb 17 06:47:27 2001 Tim Janik <timj@gtk.org>
11401 * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
11402 generated ENTER_NOTIFY event with 0, otherwise not explicitely
11403 setup fields contain garbage (e.g. subwindow, breaking
11404 gdk_drawable_ref() upon event copy).
11405 (gtk_menu_stop_navigating_submenu_cb): same here.
11407 * gtk/gtklist.c (gtk_list_vertical_timeout):
11408 * gtk/gtklist.c (gtk_list_horizontal_timeout):
11409 * gtk/gtkclist.c (vertical_timeout):
11410 * gtk/gtkclist.c (horizontal_timeout): change direct assignment
11411 default-zero-intialization for unions to memset(,0,), as unions are
11412 not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
11413 has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
11415 * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
11416 g_closure_sink() warning.
11418 * gtk/gtktreemodel.c (gtk_tree_model_get_valist):
11419 * gtk/gtktreestore.c (gtk_tree_store_set_valist):
11420 * gtk/gtkliststore.c (gtk_list_store_set_valist):
11421 fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
11423 Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com>
11425 * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
11426 gtk_*_store_get, and moved to GtkTreeModel.
11428 * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
11430 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
11432 * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
11434 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
11437 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
11438 freeze/thaw notify between setting all the properties for a cell.
11440 * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
11442 2001-02-15 Havoc Pennington <hp@redhat.com>
11444 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
11445 the X coordinates so they're with respect to the line, rather than
11446 with respect to the layout.
11448 * gtk/gtkalignment.c: Convert to new property API, patch from Lee
11451 * gtk/testgtk.c (create_range_controls): add vscale tests,
11454 * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix
11457 * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
11459 * gtk/gtktextiter.h (gtk_text_iter_is_last): rename
11460 gtk_text_iter_is_end
11462 * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
11463 rename gtk_text_buffer_get_end_iter
11465 * gtk/testgtk.c (create_labels): Add test for selectable
11467 * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
11468 the selection stuff. This code is kind of broken since it doesn't
11469 use the theme engine.
11471 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
11472 fix infinite loop and y offset problem
11473 (gdk_draw_layout_line_with_colors): fix foreground color handling
11475 * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag
11476 that makes the label selectable.
11478 * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
11479 layout when the style is set, since fonts etc. could have changed.
11481 Fri Feb 16 14:22:05 2001 Jonathan Blandford <jrb@redhat.com>
11483 * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
11485 * gtk/gtktreemodelsimple.[ch]: removed.
11487 2001-02-16 Alexander Larsson <alexl@redhat.com>
11489 * gtk/gtktreemodelmapping.[ch]:
11490 New files. Implement GtkTreeModelMapping.
11493 Add gtktreemodelmapping.[ch].
11496 Add gtktreemodelmapping.h
11498 * gtk/treestoretest.c:
11499 Test the GtkTreeModelMapping
11501 Tue Feb 13 13:16:09 2001 Jonathan Blandford <jrb@redhat.com>
11503 * demos/gtk-demo/panes.c (create_pane_options): If we're going to
11504 have a demo, we might as well pass in real values. Thanks to
11505 clahey for pointing this out.
11507 2001-02-14 Havoc Pennington <hp@pobox.com>
11509 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
11510 "static" to a private function
11511 (gtk_image_menu_item_class_init): remove destroy handler,
11512 add "image" object property
11514 2001-02-13 Alexander Larsson <alla@lysator.liu.se>
11516 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
11517 Add a shortcut if the window and the current clip_region doesn't
11518 overlap. This is needed when there are a lot of windows in a
11519 window. The layout test in testgtk is a good test.
11521 * gdk/linux-fb/gdkwindow-fb.c:
11524 2001-02-13 Sven Neumann <sven@convergence.de>
11526 * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
11528 2001-02-13 Alexander Larsson <alexl@redhat.com>
11530 * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
11531 Don't reference last_cursor if it is null. Fixes crash when rotating
11532 the screen before having moved the mouse.
11534 * gdk/linux-fb/gdkcc-fb.c: Zapp!
11536 * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
11538 * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw
11539 when using 90 or 270 degrees rotation.
11541 2001-02-12 Havoc Pennington <hp@pobox.com>
11543 * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where
11544 it always set the foreground, even if we were only using
11546 (gdk_draw_layout_line_with_colors): new function, allow
11548 (gdk_draw_layout_with_colors): new function, allow override
11550 (gdk_pango_layout_line_get_clip_region): function to get the clip
11551 region for a logical text range
11552 (gdk_pango_layout_get_clip_region): get the clip region for a
11555 * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
11556 (gdk_colormap_new): fix call to gdk_colormap_sync() so it has
11557 the right number of arguments.
11559 * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
11560 enhance the function to check that node data corresponds to a
11561 view still belonging to the tree.
11563 * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the
11565 (gtk_tree_view_inserted): ditto
11566 (gtk_tree_view_child_toggled): ditto
11568 * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
11569 simplify this code.
11571 * gtk/gtkcellrenderertext.c (get_layout): fix leak of
11574 * demos/gtk-demo/main.c (load_file): Fix leak of a GString
11576 * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
11578 * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
11579 size in the size request
11580 (gtk_menu_bar_size_allocate): consider toggle size here
11582 * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
11583 that displays a widget in the toggle slot
11585 * gtk/testgtk.c: test GtkImageMenuItem
11587 * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
11589 * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
11590 request and allocation
11592 * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
11594 * gtk/gtkcheckmenuitem.c
11595 (gtk_check_menu_item_toggle_size_request): ditto
11597 Mon Feb 12 23:43:30 2001 Owen Taylor <otaylor@redhat.com>
11599 * gtk/Makefile.am (gdk_headers): Remove gdkcc.h
11602 * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
11603 and refuse to initialize GTK+ if they fail.
11605 Mon Feb 12 15:02:07 2001 Owen Taylor <otaylor@redhat.com>
11607 * configure.in: Add check for gtk-doc version.
11609 Thu Feb 8 17:18:26 2001 Owen Taylor <otaylor@redhat.com>
11611 * gtk/gtklabel.c (gtk_label_size_request): Fix bug
11612 where the xpad/ypad was only being used on one side!
11614 2001-02-11 Tor Lillqvist <tml@iki.fi>
11616 * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
11617 function, copied from X11 version.
11619 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
11620 DestroyCursor failures. The reason for the problem (despite the
11621 inconsistent messages from GetLastError()) was that
11622 DestroyCursor() cannot be called while a cursor is set in a
11623 window. Set the new cursor first and then destroy the old one.
11624 Thanks to jpe@archaeopteryx.com.
11626 * gdk/win32/gdkcc-win32.c: Remove.
11628 * gdk/win32/Makefile.am: Remove from here, too.
11631 * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
11634 * gtk/makefile.mingw.in: Updates.
11636 2001-02-08 Havoc Pennington <hp@redhat.com>
11638 * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
11639 add a widget to a bin that already has a child.
11641 * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
11643 * docs/Changes-2.0.txt: note that GdkColorContext is gone.
11645 * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
11647 * gdk/gdk.h: remove gdkcc.h
11649 * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
11651 * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
11652 GdkPixbuf, since the previous implementation was GdkColorContext
11655 * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
11657 Thu Feb 8 19:00:00 2001 Jonathan Blandford <jrb@redhat.com>
11659 * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
11662 2001-02-08 Havoc Pennington <hp@redhat.com>
11664 * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
11667 2001-02-08 Havoc Pennington <hp@redhat.com>
11669 * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
11672 * demos/gtk-demo/main.c (create_tree): adjust to changes in text
11675 * demos/pixbuf-demo.c (timeout): remove deprecated
11678 * demos/testpixbuf-save.c (main): remove deprecated
11679 gtk_drawing_area_size
11681 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
11682 buttons even if the model isn't setup. gtk_tree_view_check_dirty()
11683 at the start of the allocation.
11684 (gtk_tree_view_check_dirty): handle column->button == NULL, handle
11685 unsetup or NULL model.
11687 * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
11688 even/odd/sorted cells in the tree view.
11690 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11693 * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
11694 backgrounds with draw_flat_box using different detail for even/odd
11697 * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
11698 row, so we can draw the alternating colors thing
11700 * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
11701 property from a synonym property, notify for the synonym.
11702 Also, nuke the background_gdk_set and foreground_gdk_set synonyms
11703 (gtk_text_tag_get_property): Always return the font, even if
11704 all its fields aren't set
11706 * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
11707 store the attr list; it leaves us with no way to change attributes
11708 in _render according to the render flags, and no way to implement
11709 get_property. Instead store all the specific text attributes.
11710 Separate whether an attribute is enabled from its value. Sync all
11711 properties with GtkTextTag, make them all consistent, etc.
11713 * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
11714 renderers can highlight the sort row/column
11716 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
11717 accessor functions to get values; this has the side effect of
11718 showing up which accessor functions were missing. Added those.
11720 * gtk/gtktreeviewcolumn.h: Replace set_justification with
11721 set_alignment, to be consistent with GtkLabel, GtkMisc
11723 * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
11726 * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
11728 * gtk/gtktreesortable.h: updates in here
11730 2001-02-07 Sven Neumann <sven@convergence.de>
11732 * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
11733 pango dimensions after painting the background. We used to draw
11734 gigantic flat boxes here.
11736 Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
11738 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
11739 error introduced with earlier commit) (pointed out by
11742 Mon Feb 5 12:25:06 2001 Owen Taylor <otaylor@redhat.com>
11744 * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
11745 which are no longer necessary.
11747 Mon Feb 5 13:22:54 GMT 2001 Tony Gale <gale@gtk.org>
11749 * docs/faq/gtk-faq.sgml: s/MISK/MISC/
11751 2001-02-04 Tor Lillqvist <tml@iki.fi>
11754 * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
11755 Provide dummy implementations.
11757 Sun Feb 4 07:55:17 2001 Tim Janik <timj@gtk.org>
11759 * gtk/gtksignal.h: removed gtk_signal_init() compat define.
11761 * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
11762 GTypeDebugFlags debug_flags and pass it on to g_type_init ();
11763 deprecated this function.
11765 * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
11768 Sun Feb 4 07:45:45 2001 Tim Janik <timj@gtk.org>
11770 * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
11772 2001-02-03 Havoc Pennington <hp@pobox.com>
11774 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
11775 Mikael Hermansson with patch from Mikael (if there was a toggle
11776 start one after the first character in the range, this function
11777 was broken). Bug #50380
11779 Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
11781 * configure.in: Remove confusing comment about X11.
11783 Fri Feb 2 19:21:23 2001 Owen Taylor <otaylor@redhat.com>
11785 * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
11786 regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
11788 Fri Feb 2 18:31:54 2001 Owen Taylor <otaylor@redhat.com>
11790 * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
11791 it breaks things on BSD. If you want to compile GTK+ with
11792 -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE
11793 when configuring, since GTK+ simply can't be "pure ANSI"
11794 in the header files it uses. (#8170, Greg Hudson)
11796 2001-02-02 Havoc Pennington <hp@redhat.com>
11798 * gtk/gtkwindow.c: docs
11800 * gtk/gtkwidget.c: docs
11801 (gtk_widget_set_colormap): add a reference to the colormap
11802 (gtk_widget_get_default_colormap): add a reference to the colormap
11804 * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
11806 * gtk/gtktextiter.c: docs
11808 * gtk/gtkmain.c (gtk_propagate_event): docs
11810 * gtk/gtkpaned.c (gtk_paned_get_position): docs
11811 (gtk_paned_set_position): docs
11813 * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
11814 sort interface, no implementation yet.
11816 * demos/testpixbuf.c (new_testrgb_window): replace
11817 gtk_drawing_area_size() with gtk_widget_set_usize()
11819 * demos/testpixbuf-drawable.c (main): ditto
11821 * gtk/testgtk.c: remove use of GtkStatusbarMsg
11823 * gtk/gtktextbuffer.c: docs
11825 * gtk/gtkstock.c: docs
11827 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
11829 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
11831 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
11833 * gtk/gtkimage.c: add some docs in here
11834 (gtk_image_size_request): change name of
11835 gtk_widget_render_stock_icon
11836 (gtk_image_get_icon_set): don't dup returned string
11837 (gtk_image_get_icon_set): don't dup returned string
11839 * gtk/gtkwidget.c (gtk_widget_render_icon): rename from
11840 gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
11841 and gtkiconfactory.h functions
11843 * gtk/gtkiconfactory.c: add some docs in here
11845 * gtk/gtkmain.c (gtk_get_default_language): document
11846 (gtk_get_current_event): document
11847 (gtk_get_current_event_state): document
11848 (gtk_get_event_widget): document
11850 * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
11852 * gtk/gtkcontainer.c: Add some documentation
11853 (gtk_container_add): give a more explanatory warning on adding an
11854 already-parented widget, this is kind of a FAQ and also a common
11855 typo that's easier to debug with a nice warning
11857 * gtk/gtkcellrenderertoggle.c
11858 (gtk_cell_renderer_toggle_get_active): remove, I was on crack
11859 adding this, it's useless
11860 (gtk_cell_renderer_toggle_set_active): remove
11861 (gtk_cell_renderer_toggle_get_radio): add
11863 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
11864 the NULL cell renderer, that doesn't make any sense to me.
11866 * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
11867 demo code should never use deprecated features.
11869 * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
11870 code should never use deprecated features.
11872 * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
11873 gtk_widget_queue_clear_area deprecated
11875 * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
11878 * gtk/gtklabel.h: mark gtk_label_get() deprecated
11880 * gtk/gtkimage.h: mark the legacy GtkImage functions that took
11881 a GdkImage deprecated, replaced by new consistently-named
11884 * gtk/gtkmain.h: Mark gtk_exit() deprecated
11886 * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
11888 * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string
11891 * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file,
11892 so it won't appear in docs and confuse people.
11894 * gtk/gtkprogressbar.h: Mark all the old methods deprecated
11896 * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
11897 macros deprecated. (can't mark the type itself deprecated, since
11898 GtkProgressBar is not deprecated and we need the type decl to use
11901 * gtk/gtkpixmap.h: Mark deprecated
11903 * gtk/gtkoldeditable.h: Mark deprecated
11905 * gtk/gtklist.h: Mark deprecated
11907 * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used
11908 for anything anymore.
11910 * gtk/gtkctree.h: Mark deprecated
11912 * gtk/gtkclist.h: Mark deprecated
11914 * gtk/gtkpreview.h: Mark deprecated
11916 * gtk/gtkpacker.h: Mark deprecated
11918 * gtk/gtktipsquery.h: Mark deprecated
11920 * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
11922 * gtk/gtkvruler.h: Add comment that it will move out of GTK
11924 * gtk/gtkhruler.h: Add comment that it will move out of GTK
11926 * gtk/gtkruler.h: Add comment that it will move out of GTK
11928 * gtk/gtkgamma.h: Add comment that it will move out of GTK
11930 * gtk/gtkcurve.h: Add comment that it will move out of GTK
11932 Fri Feb 2 17:16:09 2001 Owen Taylor <otaylor@redhat.com>
11934 * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
11935 gdk_colormap_sync private since it was never exported
11938 * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
11939 colormap->colors[] for StaticGray, StaticColor colormaps.
11941 * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
11942 was being used as if it was image->bits_per_pixel.
11944 * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
11945 for the image in the GdkImage structure since it isn't
11946 reconstructable, and we need it to handle packed types
11948 * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
11949 the assumption that on Win32 image->bits_per_pixel == image->depth,
11952 * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
11954 * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
11955 warning message if no converter can be found.
11957 Fri Feb 2 15:09:51 2001 Owen Taylor <otaylor@redhat.com>
11959 * gtk/fnmatch.c (FOLD): Fix problem with passing signed
11960 chars to isupper() / tolower(). (#567)
11962 * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
11963 to clear up 64-bit warnings. (#567)
11965 Fri Feb 2 12:26:50 2001 Owen Taylor <otaylor@redhat.com>
11967 * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
11968 a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
11970 * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
11971 since some people set $(libdir) separately. (#1290, David Kaelbling)
11973 Thu Feb 1 18:25:46 2001 Owen Taylor <otaylor@redhat.com>
11975 * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
11976 defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
11977 MAXPATHLEN, but the code here depends on a fixed value.)
11980 Wed Jan 31 22:01:04 2001 Owen Taylor <otaylor@redhat.com>
11982 * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
11983 where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
11985 Wed Jan 31 21:20:39 2001 Owen Taylor <otaylor@redhat.com>
11987 * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
11988 viewable there is no way that moving the node will cause the
11989 focus row to become not viewable, so omit check on the visibility
11990 of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
11992 Wed Jan 31 20:38:17 2001 Owen Taylor <otaylor@redhat.com>
11994 * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
11995 selection before inserting new text.
11997 Wed Jan 31 18:49:33 2001 Owen Taylor <otaylor@redhat.com>
11999 * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
12000 Make the sensitivity of the reparented child track that of
12001 the original parent menu item. (#34218, David Hodson)
12003 * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
12004 the case where the current item is destroyed properly.
12006 * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
12007 some edge cases with child-less menuitems.
12009 Wed Jan 31 17:16:13 2001 Owen Taylor <otaylor@redhat.com>
12011 * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
12012 key pop down window. (#12074, Jon K Hellan)
12014 Wed Jan 31 16:21:42 2001 Owen Taylor <otaylor@redhat.com>
12016 * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
12017 toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan)
12018 The solution here isn't perfect - you get an extraneous
12019 emission of "toggle", which could conceivably confuse an app,
12020 but better than the current situation. LXR search seems to
12021 indicate that no apps in GNOME CVS connect to "toggle".
12023 Wed Jan 31 15:46:13 2001 Owen Taylor <otaylor@redhat.com>
12025 * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
12026 gtk_public_h_sources to directly here to avoid warning when
12027 building srcdir != builddir. (#9656)
12029 Tue Jan 30 19:49:02 2001 Owen Taylor <otaylor@redhat.com>
12031 * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
12032 handlers in gtkrange.c return the proper values (TRUE == handled)
12035 This is just the tip of the iceberg, but gtkrange.c is the
12036 most common place where the propagation is problematical,
12037 and also a place where it is almost certainly safe to change
12038 this in the stable branch.
12040 (You don't want right click popups on a range control or anything...)
12042 Tue Jan 30 18:57:59 2001 Owen Taylor <otaylor@redhat.com>
12044 * gtk/gtktext.c (clear_focus_area): We need to clear the focus
12045 area on focus out, even if a background pixmap isn't set.
12048 Tue Jan 30 18:24:10 2001 Owen Taylor <otaylor@redhat.com>
12050 * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
12051 to deal with setting the shape properly when scrolling arrows are
12052 turned on, but not visible because there is sufficient space.
12055 Tue Jan 30 16:39:25 2001 Owen Taylor <otaylor@redhat.com>
12057 * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
12058 items with submenus, destroy the item along with the submenu.
12059 (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...'
12062 * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
12065 Tue Jan 30 15:51:25 2001 Owen Taylor <otaylor@redhat.com>
12067 * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
12068 the focus widget sometimes wasn't drawn with the default if there
12069 was no default widget.
12071 * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
12072 unreference pixmaps.
12074 * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
12075 for some extra safety.
12077 Mon Jan 29 19:00:01 2001 Owen Taylor <otaylor@redhat.com>
12079 * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
12080 the text of a cell to the old pointer value better, by
12081 copying the new text before freeing the old text. Some code
12082 cleanup. (#8079, Karl Nelson)
12084 Mon Jan 29 16:50:19 2001 Owen Taylor <otaylor@redhat.com>
12086 * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
12087 gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
12089 Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
12091 * gtk/gtkmenu.c (gtk_menu_remove): When removing an
12092 item from a menu, check to see if it matches
12093 menu->old_active_menu_item, and if so, unref and clear
12094 old_active_menu_item (Patch from Pavel Cisler)
12096 * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset
12097 menu_shell->active_menu_item, if it is the child being
12098 removed. (Patch based on that of Gene Ragan, #50337)
12100 2001-01-31 Alexander Larsson <alla@lysator.liu.se>
12102 * gdk/linux-fb/gdkselection-fb.c:
12103 * gdk/linux-fb/gdkcolor-fb.c:
12104 * gdk/linux-fb/gdkdrawable-fb2.c:
12105 * gdk/linux-fb/gdkfont-fb.c:
12106 * gdk/linux-fb/gdkim-fb.c:
12107 * gdk/linux-fb/gdkinput.c:
12108 * gdk/linux-fb/gdkkeyboard-fb.c:
12109 * gdk/linux-fb/gdkmain-fb.c:
12110 * gdk/linux-fb/gdkrender-fb.c:
12111 A bunch of whitespace cleanup.
12113 2001-01-30 Havoc Pennington <hp@pobox.com>
12115 * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in
12116 #ifdef GTK_ENABLE_BROKEN.
12118 * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
12119 GTK_ENABLE_BROKEN just before including the broken headers.
12121 * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
12122 deprecated types registered.
12124 * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
12125 we have to test the broken stuff.
12127 * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
12129 2001-01-30 Havoc Pennington <hp@redhat.com>
12131 * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
12132 here where prev pointer was set to the wrong thing
12134 * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
12135 (gtk_tree_path_is_descendant): new function
12137 * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
12139 (gtk_list_store_get_iter): don't modify iter if we can't get the
12142 * gtk/gtkliststore.h (struct _GtkListStore): cache the length
12144 * gtk/gtktreednd.h: add virtual function row_drop_possible() to
12147 * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
12148 was causing segfault
12150 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
12153 * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
12155 * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
12157 (gtk_list_store_iter_children): ditto
12158 (gtk_list_store_iter_nth_child): ditto
12159 (gtk_list_store_iter_nth_child): ditto
12160 (gtk_list_store_iter_parent): ditto
12162 * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
12163 on iter->user_data != NULL instead of silently accepting it.
12164 (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
12165 we are returning TRUE.
12166 (gtk_tree_store_iter_children): ditto
12167 (gtk_tree_store_iter_nth_child): ditto
12168 (gtk_tree_store_iter_parent): ditto
12169 (gtk_tree_store_insert): remove handling of parent->user_data ==
12170 NULL, replace with parent == NULL
12172 * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
12173 and a comment explaining things
12175 * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
12176 interface support to GtkTreeStore.
12178 * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
12179 FALSE if no prev, fix
12181 * gtk/gtktreeview.c (set_source_row): use a row reference
12182 (set_dest_row): use a row reference
12184 Sat Jan 27 15:52:02 2001 Jonathan Blandford <jrb@redhat.com>
12186 * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
12187 stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
12188 (gtk_tree_selection_select_iter): The same as above.
12190 2001-01-26 Havoc Pennington <hp@redhat.com>
12192 * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
12193 which holds a handle to a specific row (particular set of values
12194 in the model, i.e. pointer-identity row).
12196 * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
12197 use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
12198 Still need to use it for the src/dest row saved on the drag context.
12200 2001-01-26 Havoc Pennington <hp@redhat.com>
12202 * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
12204 * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
12205 not offset by TREE_VIEW_HEADER_HEIGHT
12206 (gtk_tree_view_tree_to_widget_coords): fix to not offset by
12207 TREE_VIEW_HEADER_HEIGHT
12209 * configure.in (included_loaders): for me, --with-included-loaders
12210 generates the error "the specified loader yes does not exist",
12211 i.e. the arg defaults to "yes", so change test for value ""
12212 to test for value "yes", and include all loaders in that case.
12214 * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
12216 * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
12217 handle TREE_VIEW_VERTICAL_SEPARATOR
12218 (gtk_tree_view_bin_expose): fix to consider the row offset as
12219 pointing halfway into vertical separator.
12220 (gtk_tree_view_draw_node_focus_rect): ditto
12222 * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
12223 --gtk-debug=updates, which causes gdk_window_set_debug_updates
12224 (TRUE) to be called.
12226 * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
12227 debug mode where the invalid region is colored in on invalidate,
12228 so you can see the flicker and know whether your redraw code is
12231 * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
12232 tree window coordinates (clip rect is in tree window coords)
12234 * gtk/Makefile.am: add gtktreednd.[hc]
12236 * gtk/gtkliststore.c: implement gtktreednd interfaces.
12238 * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
12239 drag-and-drop data operations on a model (so we can set up tree
12240 drag-and-drop automatically)
12242 * gtk/testgtk.c: Add a window to change sensitivity in the
12243 GtkLabel test; add a way to change the entry frame in GtkEntry
12246 * gtk/gtkentry.c (gtk_entry_set_has_frame):
12247 (gtk_entry_get_has_frame): new functions to remove the frame
12249 (gtk_entry_size_request): shrink requisition if no frame
12250 (gtk_entry_draw_focus): don't draw frame if no frame
12252 * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
12253 checks inside a cell renderer
12254 (gtk_default_draw_option): ditto for options
12256 * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
12257 children from the alignment, not the button
12258 (gtk_tree_view_column_init): ref/sink the column, to emulate
12259 GObject refcounting.
12261 * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
12263 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12264 Use theme functions to draw the toggles
12266 * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
12268 * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
12269 GdkPangoAttrEmbossed to use in rendering insensitive text
12271 * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
12273 * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
12274 using new GDK features
12276 2001-01-24 Alexander Larsson <alexl@redhat.com>
12279 Splitted gtk_image_clear into gtk_image_clear() and
12280 gtk_image_reset(). Call gtk_image_clear() in ::destroy
12283 * gtk/gtklabel.c (set_markup):
12286 * gtk/gtktextlayout.c:
12287 Always free display->shaped_objects.
12289 * gtk/testgtk.c (create_clist):
12290 Don't leak custom style.
12292 2001-01-23 Alexander Larsson <alexl@redhat.com>
12294 * gtk/gtkcolorsel.c (grab_color_at_mouse):
12295 Don't leak image. Simplify using gdk_colormap_query_color().
12296 (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
12298 * linux-fb/gdkcolor-fb.c:
12299 Implemented gdk_colormap_query_color.
12301 2001-01-23 Alexander Larsson <alexl@redhat.com>
12303 * linux-fb/gdkcursor-fb.c:
12304 Don't leak built-in cursors.
12306 * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
12307 Don't leak tmp_points.
12309 * linux-fb/gdkfont-fb.c (gdk_font_from_description):
12310 Don't modify desc. Don't leak font if the PangoFont
12313 * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
12316 * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
12319 2001-01-20 Havoc Pennington <hp@pobox.com>
12321 * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
12322 from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to
12325 2001-01-22 Havoc Pennington <hp@redhat.com>
12327 * demos/testanimation.c: fix to reflect gdk-pixbuf changes
12329 * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
12331 * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
12332 Remove, move back to gdk-pixbuf
12334 * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
12335 to all the word functions
12337 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
12338 before doing anything on NULL layout or if we don't have the focus
12340 * gtk/testtext.c (fill_example_buffer): "justification"
12342 * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
12343 to be called "justification" not "justify"
12345 * demos/gtk-demo/textview.c (create_tags): "justification"
12347 * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
12349 2001-01-22 Alexander Larsson <alexl@redhat.com>
12351 * gdk/gdkwindow.c (gdk_window_invalidate_region):
12352 Don't leak visible_region. Use visible_region instead of region.
12354 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12355 Don't do extra gdk_drawable_ref(). This is not X.
12356 (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
12357 gdk_fb_focused_window is ref:ed.
12358 (gdk_fb_window_send_crossing_events): Watch out for destroyed
12361 2001-01-22 Alexander Larsson <alexl@redhat.com>
12363 * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
12364 Don't leak the PangoFontDescriptor.
12366 Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
12368 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
12370 (gtk_tree_view_scroll_to_cell): Make work when not realized.
12371 (gtk_tree_view_realize): add scroll_to support
12372 (gtk_tree_view_finalize): add a finalize method. Populate.
12373 (gtk_tree_view_insert_column): ref and sink the column.
12374 (gtk_tree_view_append_column): ref and sink the column.
12375 (gtk_tree_view_queue_draw_node): New function to handle redrawing
12376 individual nodes. Should make the code much more efficient, if
12379 2001-01-19 Havoc Pennington <hp@redhat.com>
12381 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12382 byte_offset variable was being used to mean both "offset into
12383 layout" and "offset into buffer line" which was no longer true
12384 with addition of preedit string; fix
12386 2001-01-19 Havoc Pennington <hp@redhat.com>
12388 * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
12390 * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
12393 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
12396 * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
12397 scroll_to_cell, matches TextView scroll functions better
12398 (gtk_tree_view_tree_to_widget_coords): new function
12399 (gtk_tree_view_widget_to_tree_coords): new function
12400 (gtk_tree_view_get_visible_rect): new function
12401 (gtk_tree_view_get_path_at_pos): accept negative coordinates
12402 (gtk_tree_view_draw_node_focus_rect): new function moved from
12403 draw_focus, also, use width of bin_window as width of the focus
12405 (gtk_tree_view_expand_row): fix bug where it didn't recognize
12406 already-expanded rows
12407 (gtk_tree_view_get_cell_rect): new function
12408 (gtk_tree_view_get_path_at_pos): return the click position
12409 relative to the passed-in cell
12410 (gtk_tree_view_set_expander_column): new function
12412 * configure.in: remove gtk-config-2.0 chmod
12414 * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
12415 and properly handle drags with targets we don't understand
12416 (gtk_text_view_drag_end): don't stop scrolling, the source isn't
12418 (gtk_text_view_drag_drop): stop scrolling here though, and set the
12421 * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
12423 (gtk_drag_dest_get_target_list): new function
12424 (gtk_drag_dest_set_target_list): new function
12426 * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
12428 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
12429 related to drag-and-drop
12431 2001-01-19 Alexander Larsson <alexl@redhat.com>
12433 * gdk/linux-fb/gdkprivate-fb.h:
12434 Define EMULATE_GDKFONT.
12435 Add extra pango_font stuff to GfkFontPrivate.
12437 * gdk/linux-fb/gdkdrawable-fb2.c:
12438 * gdk/linux-fb/gdkfont-fb.c:
12439 If EMULATE_GDKFONT defined, implement a slow lame GdkFont
12440 emulation using PangoFont.
12442 2001-01-17 Havoc Pennington <hp@pobox.com>
12444 * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
12445 all the non-deprecated set_foo functions. Added missing object
12446 properties, and added g_object_notify() to setters.
12449 2001-01-18 Tor Lillqvist <tml@iki.fi>
12452 * gtk/gtkrc.c: (Win32) Use the new
12453 g_win32_get_package_installation_(sub)directory() functions.
12455 * config.h.win32.in: New file.
12457 * config.h.win32: Removed.
12459 * configure.in: Output config.h.win32.
12461 * Makefile.am: Add it to EXTRA_DIST.
12463 * gtk/gtk.def: Update.
12465 Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
12467 * gtk/gtklabel.c (gtk_label_size_request): Set the
12468 attributes onto the PangoLayout even if they are newly
12469 created from label->pattern.
12471 Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
12473 * gdk/x11/gdkdnd-x11.c: Remove unused variable.
12475 * gtk/gtkdnd.c: Encapsulate storing and retrieving info
12476 structures in functions. Fixes bug where gtk_dataset_*
12477 was accidentally still being used in one place, causing
12478 every dest side event to be treated independently.
12480 * gtk/gtkdnd.c: Remove last vestages of handling
12481 ::draw (fixes warning)
12483 * gtk/gtkentry.[ch]: Add drag and drop support.
12485 * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
12486 new function gtk_check_drag_threshhold() for checking
12487 to check if (dx,dy) has exceeded the threshhold for starting
12488 a drag and use it everywhere.
12490 Mon Jan 8 11:58:05 2001 Owen Taylor <otaylor@redhat.com>
12492 * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
12493 add -I{includedir}/gtk-2.0.
12495 * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
12496 gdk/gdk-pixbuf.h: Doc fixups.
12498 * gtk/gtkobject.h: Remove trailing , from enum
12500 2001-01-17 Alexander Larsson <alexl@redhat.com>
12502 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
12503 Doh! Mixed up x and y.
12505 * gdk/linux-fb/gdkglobals-fb.c:
12506 Removed gdk_fb_pointer_grab_window_events,
12507 added _gdk_fb_pointer_grab_owner_events and
12508 _gdk_fb_keyboard_grab_owner_events.
12510 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
12511 Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
12512 crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
12513 (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
12514 Send crossing events after ungrab finished.
12515 (gdk_keyboard_grab): Set ..._owner_events
12516 (type_masks): Move out of function.
12517 (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
12518 gdk_fb_keyboard_event_window): New functions, return the
12519 window an event should be targeted at. Handles grabs and
12520 event propagation. Can return NULL.
12521 (gdk_event_make): Remove event_mask checking. Now always
12524 * gdk/linux-fb/gdkkeyboard-fb.c:
12525 * gdk/linux-fb/gdkproperty-fb.c:
12526 * gdk/linux-fb/gdkselection-fb.c:
12527 Use new event_window/gdk_event_make() behaviour.
12529 * gdk/linux-fb/gdkmouse-fb.c:
12530 Use new event_window/gdk_event_make() behaviour.
12531 Only send motion events if in the same window.
12532 If grabbed, use cursor from window if sibling of grabbed
12533 window, and cursor from grabbed window otherwise.
12535 * gdk/linux-fb/gdkprivate-fb.h:
12536 Update gdk_fb_window_send_crossing_events, gdk_event_make
12537 and grab varaible declarations. Add gdk_fb_*_event_window().
12539 * gdk/linux-fb/gdkwindow-fb.c:
12540 Use new event_window/gdk_event_make() behaviour.
12541 Keep correct track of focus window.
12542 (gdk_window_set_events): Set all specific button motion masks
12543 if GDK_BUTTON_MOTION_MASK set.
12545 * gtk/gtkdnd.c (gtk_drag_update):
12546 Free info->last_event if gdk_drag_motion returned FALSE.
12548 2001-01-16 Tor Lillqvist <tml@iki.fi>
12550 * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
12551 Eliminate redraws when input-only windows are shown or
12552 hidden. Thanks to jpe@archaeopteryx.com.
12554 Tue Jan 16 13:13:13 GMT 2001 Tony Gale <gale@gtk.org>
12556 * docs/faq/gtk-faq.sgml: FAQ update:
12557 - Update to bugzilla
12558 - Add GTK+ and security/SUID/SGID
12561 2001-01-16 Alexander Larsson <alla@lysator.liu.se>
12563 * gdk/linux-fb/gdkdnd-fb.c:
12566 2001-01-15 Havoc Pennington <hp@pobox.com>
12568 * tests/testtreeview.c: add test stuff for CellRendererToggle
12570 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
12573 * gtk/gtkcellrenderertoggle.c: distinguish different event types,
12574 only toggle on button press (would do release like GtkButton, but
12575 we'd need implicit grab code for treeview cells)
12577 2001-01-16 Tor Lillqvist <tml@iki.fi>
12579 * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
12581 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
12582 GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
12584 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
12585 to g_{locale,filename}_{to,from}_utf8 to match current API.
12587 * gtk/makefile.msc.in (gtk_OBJECTS)
12588 * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
12590 * gtk/gtk.def: Update.
12592 2001-01-15 Tor Lillqvist <tml@iki.fi>
12594 * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
12595 implementaion that more closely mimics the events that an X server
12596 would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
12597 GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
12598 with nested preview widgets, for instance, more responsive when
12599 you move the mouse quickly into them.
12600 (find_window_for_pointer_event): Make it actually compile.
12601 (gdk_event_translate): Set send_event to the value of
12602 InSendMessage (). This doesn't really mean the same as X11's
12603 send_event flag, but is close enough, says jpe@archaeopteryx.com
12605 2001-01-15 Alexander Larsson <alexl@redhat.com>
12607 * gdk/linux-fb/gdkdnd-fb.c:
12608 Implemented drag and drop.
12609 Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
12610 when it tries to free and then copy the same event (info->last_event).
12611 I am not sure about why this happens, but will continue looking.
12613 2001-01-15 Alexander Larsson <alexl@redhat.com>
12615 * gdk/linux-fb/gdkwindow-fb.c:
12616 Use gdk_window_invalidate_rect instead of
12617 gdk_window_invalidate_rect_clear to minimise flashing.
12618 When hiding windows you need to clear the root window though.
12620 2001-01-15 Alexander Larsson <alexl@redhat.com>
12622 * gdk/linux-fb/gdkdrawable-fb2.c:
12623 For optization, add an full_shapes argument to gdk_fb_clip_region.
12624 If this is false, only the cliprects of the shapes are used.
12626 * gdk/linux-fb/gdkprivate-fb.h:
12627 Export gdk_fb_window_peek_shape.
12628 Add full_shapes to gdk_fb_clip_region.
12630 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
12631 When moving a window, don't clear everything under the it, just the
12632 root window. Makes stuff faster and flash less.
12633 (gdk_window_get_pointer): Correctly handle offseted shapes, due to
12634 USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
12635 offset of the shape.
12638 2001-01-12 Havoc Pennington <hp@redhat.com>
12640 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the
12641 current invalid region, fixes redraw bug while scrolling the
12644 * gtk/gtktextview.c, gtk/gtktextview.h:
12645 Rearrange the scrolling/validation/etc. code in a major way,
12646 so it seems to make sense to me. Probably isn't genuinely that
12647 much better, but...
12649 * gtk/gtktexttag.c (set_fg_color): fix name of property used for
12652 * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
12654 2001-01-12 Alexander Larsson <alla@lysator.liu.se>
12656 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
12657 Hide mouse pointer while rotation. Show it afterwards.
12659 2001-01-12 Alexander Larsson <alexl@redhat.com>
12661 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
12662 windows in consideration when generating clip region.
12664 * gdk/linux-fb/gdkfb.h:
12665 Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
12667 * gdk/linux-fb/gdkprivate-fb.h:
12668 Add shape to GdkWindowFBDatat.
12669 exported gdk_fb_window_get_abs_shape().
12670 removed gdk_fb_draw_lines declaration.
12672 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
12673 Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
12674 send focus changes when there is a grabbed window.
12675 (gdk_window_get_pointer): Handle shaped windows.
12676 (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
12677 (gdk_fb_window_peek_shape): Returns the shape for a window,
12678 handles GDK_FB_USE_CHILD_SHAPE.
12679 (gdk_fb_window_get_abs_shape): Returns the shape of the window,
12680 offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
12681 (gdk_window_shape_combine_mask): Implement.
12683 * gtk/gtkwindow-decorate.c:
12684 HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
12685 setting the shape of a window makes the window transparent.
12687 2001-01-11 Havoc Pennington <hp@redhat.com>
12689 * gtk/gtktreemodelsimple.h: Oops, broke some macros
12691 2001-01-10 Havoc Pennington <hp@redhat.com>
12693 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
12694 add this function, bug 40251
12696 * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
12699 2001-01-11 Alexander Larsson <alexl@redhat.com>
12702 Added ENABLE_SHADOW_FB
12705 Added --disable-shadowfb
12707 * gdk/linux-fb/gdkcursor-fb.c:
12708 Update shadowfb when updating cursor
12710 * gdk/linux-fb/gdkdrawable-fb2.c:
12711 Added wrappers for shadowfb that calls the normal drawable
12712 methods, but calls gdk_shadow_fb_update(bounding box) when
12713 GdkWindows are drawed to.
12714 Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
12715 which also returns the bounding box.
12717 * gdk/linux-fb/gdkfb.h:
12718 Added GdkFBAngle type and gdk_fb_set_rotation declaration.
12720 * gdk/linux-fb/gdkgeometry-fb.c:
12721 Update shadowfb when scrolling window.
12723 * gdk/linux-fb/gdkglobals-fb.c:
12724 Add _gdk_fb_screen_angle.
12726 * gdk/linux-fb/gdkkeyboard-fb.c:
12727 Test code for screen rotation. Shift-F2 in the xlate driver
12728 rotates the screen.
12730 * gdk/linux-fb/gdkmain-fb.c:
12731 Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
12733 * gdk/linux-fb/gdkmouse-fb.c:
12734 Use fb_width/height instead of modeinfo.xres/yres.
12736 * gdk/linux-fb/gdkprivate-fb.h:
12737 Added fb_men, fb_width, fb_height & fb_stride. When using
12738 shadow fb these can differ from the framebuffer stuff.
12739 Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
12740 gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
12741 _gdk_fb_screen_angle. Removed CM, RP.
12743 * gdk/linux-fb/gdkrender-fb.c:
12744 Added code for shadowfb handling and screen rotation using
12747 * gdk/linux-fb/gdkwindow-fb.c:
12748 Use fb_mem, fb_stride, fb_width, fb_height.
12749 Added recompute_rowstride to reset the rowstride of all windows.
12750 Added gdk_fb_recompute_all() which recomputes rootwindow size,
12751 window abs positions and window rowstrides. Usefull when the
12752 rotation has changed.
12754 Thu Jan 11 13:16:50 GMT 2001 Tony Gale <gale@gtk.org>
12756 * docs/faq/gtk-faq.sgml: update to make web site updating easier
12758 2001-01-10 Havoc Pennington <hp@redhat.com>
12760 * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
12761 where sibling == iter
12762 (gtk_tree_store_insert_after): handle sibling == iter
12763 (gtk_tree_store_prepend): remove stamp checks
12764 (gtk_tree_store_insert_before): ditto
12765 (gtk_tree_store_append): ditto
12766 (gtk_tree_store_get_path): ditto
12767 (gtk_tree_store_get_value): ditto
12768 (gtk_tree_store_iter_has_child): ditto
12769 (gtk_tree_store_iter_n_children): ditto
12770 (gtk_tree_store_iter_nth_child): ditto
12771 (gtk_tree_store_insert_after): ditto
12772 (gtk_tree_store_is_ancestor): ditto
12773 (gtk_tree_store_iter_depth): ditto
12774 (gtk_tree_store_insert_before): assert that sibling's parent is
12775 the same as the passed-in parent
12776 (gtk_tree_store_insert_after): assert that sibling's parent is
12777 the same as the passed-in parent
12780 * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience
12781 function to get the first iterator in a model
12783 * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
12784 conventionally the "root" in this sense is just NULL afaict.
12786 * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
12787 where sibling == iter
12788 (gtk_list_store_insert_after): handle case where sibling == iter
12790 * tests/testtreeview.c (run_automated_tests): fairly lame basic
12791 automated tests for ListStore, TreeStore
12793 * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
12794 (gtk_list_store_insert): update tail pointer, and fix it to work
12795 (gtk_list_store_insert_before): update tail pointer, and fix it to work
12796 (gtk_list_store_append): use tail to be faster
12797 (gtk_list_store_prepend): fix it, update tail pointer
12798 (gtk_list_store_insert_after): fix it, update tail pointer
12800 * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for
12803 2001-01-09 Havoc Pennington <hp@redhat.com>
12805 * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
12806 is NULL due to a pending resize
12808 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
12809 column width to values less than 1
12811 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
12812 width to be between min/max width, and still set the width
12813 even if autosize is turned on, so the tree view can use this
12814 function in order to autosize.
12815 (gtk_tree_view_column_init): set initial width to 1 not 0
12817 * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
12818 setter function to modify column width, so we get notification
12819 (gtk_tree_view_insert_iter_height): ditto
12820 (gtk_tree_view_calc_size): ditto
12821 (gtk_tree_view_check_dirty): ditto
12823 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
12824 properties to change all the interesting attributes of the tree
12826 (gtk_tree_view_column_set_header_clickable): rename set_clickable
12827 (gtk_tree_view_column_get_clickable): add
12828 (gtk_tree_view_column_set_cell_renderer): don't unset the current
12829 attributes; assume a cell renderer with equivalent object
12830 properties has been swapped in. Do g_object_notify().
12831 (gtk_tree_view_column_set_visible): g_object_notify
12832 (gtk_tree_view_column_get_sizing): rename from get_col_type
12833 (gtk_tree_view_column_set_sizing): g_object_notify
12834 (gtk_tree_view_column_set_width): add g_object_notify
12835 (gtk_tree_view_column_set_min_width): ditto
12836 (gtk_tree_view_column_set_max_width): ditto
12837 (gtk_tree_view_column_set_title): ditto
12838 (gtk_tree_view_column_set_clickable): ditto
12839 (gtk_tree_view_column_set_widget): ditto
12840 (gtk_tree_view_column_set_justification): ditto
12842 2001-01-09 Havoc Pennington <hp@redhat.com>
12844 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
12845 there are no rows in the model
12847 * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
12848 NULL, then return the start of the list
12850 * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
12851 if we can't get any rows from an empty model
12853 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
12854 extraneous * after function pointer typedef usage
12856 * Makefile.am: don't specify full path to cp and rm
12858 * gtk/gtkcellrenderertextpixbuf.c
12859 (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
12860 NULL before dereferencing, fixes a segfault that happened from
12863 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
12864 use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
12865 and reindent the function
12866 (gtk_cell_renderer_pixbuf_get_size): indentation
12868 * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
12870 (gtk_dialog_add_buttons_valist): add g_return_if_fail
12871 (gtk_dialog_set_default_response): New function, to set default
12873 (gtk_dialog_set_response_sensitive): New function, to set
12874 sensitivity of buttons
12876 * gtk/gtkcellrendererpixbuf.c
12877 (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
12878 (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
12880 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
12881 handle any G_TYPE_OBJECT subclass, not just the base class, and
12883 (_gtk_tree_data_list_value_to_node): ditto
12885 * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if
12888 * gtk/gtkmain.c: add GTK_DEBUG_TREE
12890 * gtk/gtkdebug.h: add GTK_DEBUG_TREE
12892 2001-01-09 Tor Lillqvist <tml@iki.fi>
12894 * gdk/win32/gdkevents-win32.c: Implement better mouse
12895 capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
12896 (find_window_for_pointer_event): New function.
12897 (gdk_event_translate): Use it when handling mouse events.
12899 2001-01-09 Alexander Larsson <alla@lysator.liu.se>
12902 Added --with-included-loaders option
12904 * gdk-pixbuf/Makefile.am:
12905 * gdk-pixbuf/gdk-pixbuf-io.c:
12906 Add support for including selected gdk-pixbuf loaders only.
12908 * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
12909 gtk_window_set_has_frame):
12910 Added inline documentation.
12912 * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
12913 * docs/reference/gdk/tmpl/windows.sgml:
12914 Added inline documentation.
12916 Mon Jan 8 14:42:06 2001 Jonathan Blandford <jrb@redhat.com>
12918 * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
12919 realizing buttons that have already been realized.
12921 Mon Jan 8 14:06:29 2001 Jonathan Blandford <jrb@redhat.com>
12923 * tests/testtreeview.c (main): Show menu items before adding to
12926 * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
12927 around if we kill them.
12929 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12930 Return if we pass in a NULL model.
12932 2001-01-08 Havoc Pennington <hp@redhat.com>
12934 * tests/testtreeview.c: hack on this some
12936 * gtk/gtktreestore.c (gtk_tree_store_setv): rename
12937 gtk_tree_store_set_valist, v is for arrays, valist for varargs
12939 (gtk_tree_store_getv): rename gtk_tree_store_get_valist
12941 * gtk/gtkliststore.h: Add varargs set() and get() convenience
12944 2001-01-08 Alexander Larsson <alexl@redhat.com>
12946 * gtk/gtkwindow-decorate.[hc]:
12948 New files. Contains an implementation of a minimal WM for
12952 Add the possibility for GtkWindows to specify a frame. This
12953 is used for the window decoration code, but could concievably
12954 be used for X programs too (xmms style windows).
12955 GtkWindow->frame is the toplevel window if the window is framed.
12956 The signal frame_event gets all events that are targeted to
12958 (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
12961 Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
12962 Call out to gtkwindow-decorate.c for WM support in linx-fb.
12964 2001-01-08 Alexander Larsson <alexl@redhat.com>
12966 * docs/README.linux-fb:
12967 Correct filename ~/.pangoft2_aliases
12970 Added new function gdk_window_get_decorations.
12972 * gdk/linux-fb/gdkfb.h:
12973 Removed _gdk_window_get_decorations declaration.
12974 Renamed _gdk_window_set_child_handler to
12975 gdk_fb_window_set_child_handler.
12977 * gdk/linux-fb/gdkwindow-fb.c:
12978 Renamed _gdk_window_set_child_handler to
12979 gdk_fb_window_set_child_handler.
12981 * gdk/x11/gdkwindow-x11.c:
12982 New function gdk_window_get_mwm_hints().
12983 Implemented gdk_window_get_decorations.
12985 * docs/reference/gdk/tmpl/windows.sgml:
12986 * docs/reference/gdk/gdk-sections.txt:
12987 Added gdk_window_get_decorations docs.
12989 2001-01-08 Alexander Larsson <alla@lysator.liu.se>
12991 * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
12992 gdk_fb_window_find_focus, gdk_fb_send_focus_change,
12993 gdk_fb_window_send_crossing_events):
12994 Possibly send focus events when the mouse moves from one
12997 2001-01-07 Tor Lillqvist <tml@iki.fi>
12999 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
13000 gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
13001 to match current API.
13003 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
13004 environment variable is set, don't call g_error when on a
13005 palettized (PseudoColor) display. Some people want to use GTK+
13006 in 256-colour mode even though works only partially.
13010 * gtk/makefile.mingw.in: Update.
13012 2001-01-05 Havoc Pennington <hp@redhat.com>
13014 * tests/testtreeview.c: hack on this a bit
13016 * gtk/gtktextlayout.c (gtk_text_layout_class_init):
13017 s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
13019 * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS):
13020 was spelled incorrectly
13021 (GTK_IS_TREE_MODEL_SIMPLE): ditto
13023 * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
13024 from gtk_tree_view_set_headers_active
13026 * gtk/gtktexttag.c:
13027 (gtk_text_tag_get_property): handle PROP_DIRECTION
13028 (gtk_text_tag_set_property): g_object_notify when we toggle the _set
13029 properties, bug 40235
13031 * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
13032 forward_to_line_end
13034 Fri Jan 5 16:16:29 2001 Owen Taylor <otaylor@redhat.com>
13036 * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
13037 modules/input/gtkimcontextxim.c: Adapt to new prototypes
13038 for unicode,locale,filename conversion functions.
13040 2001-01-05 Havoc Pennington <hp@redhat.com>
13042 * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
13043 broken if called on the first position in the buffer.
13045 * gtk/gtktextlayout.c (line_display_index_to_iter): fix
13046 forward_to_delimiters to be called only if we aren't already at
13049 2001-01-05 Havoc Pennington <hp@redhat.com>
13051 * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
13053 2001-01-05 Alexander Larsson <alexl@redhat.com>
13055 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
13056 colormap in here. Sync from X port.
13057 (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
13059 (gdk_fb_clip_region): Comment out g_warning about empty clip region.
13060 This happens now and then, and i don't think it is a bug.
13061 (gdk_fb_draw_polygon): Correctly add extra point if startpoint
13063 (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
13066 * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
13067 some of the fields filled in at least.
13069 * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
13070 miLineArcD is no more, remove it from the function definition.
13072 2001-01-04 Havoc Pennington <hp@redhat.com>
13074 * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
13077 * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
13078 user_data instead of tree_node
13080 * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
13081 TREE_VIEW_COLUMN_SIZE
13083 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
13084 "size" field to "width" finishes bug 40061
13086 * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
13087 for bitfields, bug 40268
13089 2001-01-04 Havoc Pennington <hp@redhat.com>
13093 s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
13095 s/GtkModelSimple/GtkTreeModelSimple/g;
13096 s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
13097 s/gtk_model_simple/gtk_tree_model_simple/g;
13098 s/gtkmodelsimple/gtktreemodelsimple/g;
13100 s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
13102 s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
13103 s/column_set_col_type/column_set_sizing/g;
13105 s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
13106 s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
13108 s/GtkCellRendererType/GtkCellRendererState/g;
13110 * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
13111 (gtk_cell_renderer_toggle_class_init): change "state" property to
13112 "active", to match GtkToggleButton
13113 (gtk_cell_renderer_toggle_get_active): new function, bug
13115 (gtk_cell_renderer_toggle_set_active): new function
13116 (gtk_cell_renderer_toggle_set_property): route changes to toggle
13117 state through gtk_cell_renderer_set_active
13119 Thu Jan 4 15:46:18 2001 Jonathan Blandford <jrb@redhat.com>
13121 * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
13122 temporarily until they work again. Brought up to date with
13123 changes in the model.
13124 * gtk/gtkmodelsimple.h: Brought up to date with changes in the
13127 2001-01-04 Havoc Pennington <hp@redhat.com>
13129 * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
13130 equal to the line length, then position iterator before paragraph
13131 separators. Fixes crash reported by Mikael Hermansson when
13132 pressing left arrow from the start of a line.
13134 * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
13135 about byte indexes off the end
13136 (iter_set_from_char_offset): add g_error about char offsets
13139 2001-01-03 Havoc Pennington <hp@redhat.com>
13141 * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
13143 * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use
13144 of private functions; remove inclusion of private headers.
13146 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this
13147 function, so we don't need private functions in gtktextdisplay.c
13149 * gtk/gtktextiterprivate.h: underscore-ification
13151 * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
13152 to instead say "only useful to implement widgets"
13154 * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
13155 GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
13156 GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
13158 * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
13159 This function was completely broken
13161 * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
13163 * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
13165 * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
13167 * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
13169 * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
13171 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
13173 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
13176 * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
13179 * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
13180 Progress on bug 40103. Add draw_layout to draw a PangoLayout.
13181 (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
13182 which were not implemented.
13184 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
13185 insert_pixbuf signal. Rename delete_text to delete_range since it
13186 also deletes pixbufs and child anchors. This almost closes bug
13187 40245 (still need to deal with child anchors)
13189 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
13190 insert_pixbuf, change signal names as appropriate, change types of
13191 signals taking marks/tags to have the specific type, not just
13194 * gtk/gtkmain.c (gtk_get_current_event_state): Add this function;
13197 * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
13198 unnecessary remove_contents() call
13199 (gtk_option_menu_class_init): add a "changed" signal, closes
13201 (gtk_option_menu_update_contents): emit "changed" if the
13202 active menu item changes
13204 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
13205 cast to GtkObject, reported by Jonas Borgstrom
13206 (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
13207 we can't do stuff with side effects in finalize. Instead, spew a
13208 warning if the loader isn't closed.
13210 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
13211 colormap in here, non-X ports probably need to sync to this change
13213 * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove
13214 assertion that colormap != NULL, you can set the colormap to NULL
13217 * Makefile.am: remove gtk-config-2.0
13219 * configure.in: Use pkg-config to locate GLib. Remove
13220 separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
13221 and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
13222 Use pkg-config to locate Pango. Output correct Pango libs to
13223 gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
13225 * Makefile.am (pkgconfig_DATA): install only target-specific pc
13227 (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
13230 * gtk+-2.0.pc.in (Requires): require the GDK for the current target
13233 2001-01-03 Alexander Larsson <alla@lysator.liu.se>
13236 Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
13238 Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
13240 * gtk/gtktextlayout.c
13241 (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
13242 variable when moving back onto a single line.
13244 2001-01-01 Havoc Pennington <hp@redhat.com>
13246 * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13248 * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13250 * configure.in (LIBTOOL_EXPORT_OPTIONS): define
13251 LIBTOOL_EXPORT_OPTIONS with options to control symbol export
13253 2001-01-01 Havoc Pennington <hp@redhat.com>
13255 * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
13257 * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for
13260 * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug
13262 (gtk_text_attributes_copy_values): rename from
13263 gtk_text_attributes_copy
13264 (gtk_text_attributes_copy): a more standard GTK copy function,
13265 which returns a new object
13267 2001-01-01 Havoc Pennington <hp@redhat.com>
13269 * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
13271 * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
13272 don't fill in tree_view->priv->selection, kind of an unexpected
13275 * gtk/gtkcellrenderertext.c: Remove definition of _ and include
13278 * gtk/gtkcellrenderer.c: Remove definition of _ and include
13280 (gtk_cell_renderer_get_property): remove calls to g_value_init
13282 * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
13285 * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
13286 and include gtkintl.h
13287 (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
13290 * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
13292 (_gtk_tree_selection_new_from_with_view): rename, return
13294 (_gtk_tree_selection_set_tree_view): rename with uscore
13295 (gtk_tree_selection_get_selected): fill in the "model" out param
13296 first, so it gets filled in even if we return at the top of the
13298 (gtk_tree_selection_real_select_all): add a comment and an else{}
13299 to clarify this a bit
13300 (gtk_tree_selection_real_unselect_all): add the same else{}
13302 * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
13303 set_tree_view to have underscore prefixes, move them to the
13304 private header, fix return type of new_with_tree_view
13305 (struct _GtkTreeSelection): mark struct
13308 * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
13309 GtkTreeModelFlags, not a guint
13310 (gtk_tree_path_prev): return gboolean not gint
13311 (gtk_tree_path_up): return gboolean not gint
13313 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
13314 return GtkTreeModelFlags, not a guint
13316 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
13317 that child model is non-null before unrefing it
13318 (g_value_int_compare_func): make this a qsort compare func, not
13319 a boolean predicate
13321 * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
13322 (add -umn to the end), and mark it unimplemented
13323 (gtk_tree_model_sort_resort): remove, this wasn't implemented, and
13324 I don't see what it's for - doesn't the model always sort itself?
13325 (gtk_tree_model_sort_set_compare): this had the wrong signature
13327 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
13328 Fix the docs to say that it destructively replaces existing
13329 attributes (previously said that it added attributes).
13330 (gtk_tree_view_column_set_visible): canonicalize bool before
13331 equality testing. Also, check for realization before
13332 hiding/showing the tree_column->window; if this window could exist
13333 before realization, then it's busted and needs fixing, we can't
13334 create GDK resources pre-realization. Also, remove
13335 superfluous queue_resize(), since set_size() does that for us.
13336 (gtk_tree_view_column_set_col_type): check realization before
13337 using tree_column->window
13339 * gtk/gtktreedatalist.c: fix filename in copyright notice
13341 2000-12-31 Havoc Pennington <hp@pobox.com>
13343 * gtk/gtktextview.c: Rearrange all the
13344 scroll-while-dragging-or-selecting code to be different, not
13345 necessarily better. ;-)
13346 (gtk_text_view_scroll_to_mark): Change this
13347 function to take within_margin as a fraction instead of a pixel
13348 value, and to take alignment arguments (indicating where to align
13349 the mark inside the visible area)
13351 * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
13354 * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
13355 behavior so that offsets past the end of the line are not
13356 allowed, and an offset equal to the line length moves the iterator
13358 (gtk_text_iter_set_line_index): make parallel change
13359 (gtk_text_iter_get_bytes_in_line): add this function
13361 * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
13362 of byte indexes off the end of the line; byte index at the end of
13363 the line now returns FALSE and doesn't fill in the requested
13364 values, byte index past the end of the line is an error. Also,
13365 don't allow -1 offset anymore, since its meaning is unclear.
13367 This change exposes some bug in visual cursor motion, where we
13368 end up with a huge invalid byte index; needs fixing. Symptom of
13369 bug is a crash when you hit up arrow.
13371 (_gtk_text_line_char_locate): match the change to byte_locate
13373 * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
13374 from start of line properly. fixes bug reported by Mikael
13375 Hermansson where backspace would delete all text before the
13378 2000-12-30 Tor Lillqvist <tml@iki.fi>
13380 * gdk/win32/gdkwindow-win32.c
13381 (gdk_window_impl_win32_get_visible_region): New function, as in
13383 (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
13384 instead of duplicating the same code here.
13386 * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
13387 GDK_COLORMAP macro.
13389 * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
13391 (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
13394 * gtk/gtk.def: Update.
13396 * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
13398 2000-12-30 Havoc Pennington <hp@pobox.com>
13400 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
13401 colormap on input only windows, to avoid special cases all over
13402 the code for these windows.
13404 2000-12-26 Tor Lillqvist <tml@iki.fi>
13406 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
13407 we are on a palettized display ("PseudoColor" in X11), as the code
13408 for that doesn't work anyway, and never has.
13410 2000-12-22 Alexander Larsson <alexl@redhat.com>
13412 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
13413 Don't use isprint() for chars > 255.
13415 2000-12-21 Havoc Pennington <hp@redhat.com>
13417 * tests/testtreeview.c: more work
13419 2000-12-21 Alexander Larsson <alexl@redhat.com>
13421 * docs/README.linux-fb:
13422 Update the docs to the new pangoft2 way.
13424 2000-12-21 Alexander Larsson <alexl@redhat.com>
13427 For linux-fb get the pangoft2 cflags and libs. This needs a recent
13429 Remove modules/linux-fb/Makefile.
13431 * gdk/linux-fb/gdkdrawable-fb2.c:
13432 Render glyphs using freetype.
13434 * gdk/linux-fb/gdkfb.h:
13435 Add new fb-specific functions needed for managing windows.
13437 * gdk/linux-fb/gdkmain-fb.c:
13438 Remove gdk_font_init/fini() calls.
13440 * gdk/linux-fb/gdkpango-fb.c:
13441 Remove old implementation. Use pangoft2 instead.
13443 * gdk/linux-fb/gdkprivate-fb.h:
13444 Remove PangoFBFont and related stuff.
13446 * gdk/linux-fb/gdkwindow-fb.c:
13447 Implement drawable->get_visible_region.
13448 Implement support for _gdk_window_set_child_handler () and
13449 _gdk_window_get_decorations().
13451 * modules/Makefile.am:
13452 Remove linux-fb subdir.
13454 * modules/linux-fb/*:
13457 2000-12-20 Jonathan Blandford <jrb@redhat.com>
13459 * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
13460 calls, as they are no longer needed.
13462 * gtk/gtktreemodelsort.c: Fix up the comparison code.
13464 * gtk/gtktreemodel.h: Start work on ::reordered signal. Need to
13465 figure out how to emit a signal on an interface.
13467 2000-12-20 Havoc Pennington <hp@redhat.com>
13469 * tests: new directory to contain tests, gtk/test* should move
13470 here sometime (with appropriate on-cvs-server hackery)
13472 * tests/testtreeview.c, tests/Makefile.am: a test
13474 * configure.in (AC_OUTPUT): add tests/Makefile
13476 * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
13477 and "invisible_set" which were missing
13479 * gtk/gtkrbtree.h: some cheesy indentation fix
13481 2000-12-20 Alexander Larsson <alexl@redhat.com>
13483 * gtk/gtkinvisible.c (gtk_invisible_realize):
13484 Attach the style to the window so that the style it is not
13485 leaked when unrealizing the window.
13487 2000-12-18 Havoc Pennington <hp@redhat.com>
13489 * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
13490 begin/end user action where appropriate
13491 (gtk_text_view_commit_handler): add begin/end user action
13493 * gtk/gtktextbuffer.c: add begin/end user action signals, and
13494 bracket interactive operations with begin/end user action pair.
13496 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
13497 "interactive" arg from insert_text and delete_text signals.
13498 Add begin_user_action, end_user_action signals
13499 (gtk_text_buffer_begin_user_action):
13500 (gtk_text_buffer_end_user_action): New functions to delimit
13501 a user-visible action
13503 * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
13506 2000-12-18 Havoc Pennington <hp@redhat.com>
13508 * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
13509 was pretty non-working.
13511 * gtk/testtext.c (fill_file_buffer): make this a bit more robust
13512 by passing the length to g_utf8_validate().
13514 2000-12-16 Havoc Pennington <hp@pobox.com>
13516 * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c:
13517 Port to GObject, can go back in gdk-pixbuf after setting up
13518 a gdk-pixbuf-marshal.h header over there.
13520 * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
13521 (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
13523 (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
13525 (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
13526 here, do it when we create the buttons later
13527 (gtk_tree_view_realize_buttons): add some g_return_if_fail
13528 (gtk_tree_view_map): paranoia checks that column->button is shown
13530 (gtk_tree_view_size_request): only request visible children.
13531 Move header size calculation in here, for cleanliness, and
13532 to maintain invariants for child widgets if we eventually
13533 let users set different children inside the buttons
13534 (gtk_tree_view_map_buttons): factor out code to map buttons,
13535 since it was being called several times
13536 (gtk_tree_view_size_allocate_buttons): move_resize the drag
13537 windows instead of just moving them; their height may change
13538 if we allow random widgets in there, or the theme changes.
13539 (gtk_tree_view_size_allocate): move button size allocation
13540 above emitting the scroll signals, to ensure a sane state when we
13542 (gtk_tree_view_button_release): remove queue_resize after
13543 tree_view_set_size(), set_size() will handle any resize queuing
13545 (gtk_tree_view_focus_in): just queue a draw, don't fool with
13547 (gtk_tree_view_focus): use gtk_get_current_event() and
13548 gdk_event_get_state()
13549 (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
13550 (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
13552 (gtk_tree_view_create_button): show the button here
13553 (gtk_tree_view_button_clicked): actually emit the clicked signal
13555 (_gtk_tree_view_set_size): return right away if the size is
13556 unchanged, as a cheesy optimization
13557 (gtk_tree_view_setup_model): rename set_model_realized to
13558 setup_model to match the flag that indicates whether we've
13560 (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
13561 exist, because set_scroll_adjustment does that and it shouldn't
13562 matter what order you call these in
13563 (gtk_tree_view_get_vadjustment): ditto
13564 (gtk_tree_view_set_headers_visible): canonicalize the bool,
13566 (gtk_tree_view_set_headers_visible): call
13567 gtk_tree_view_map_buttons() instead of using cut-and-paste code
13568 (gtk_tree_view_append_column): clarify whether the return value
13569 is the count of columns before or after, and do the increment
13570 separately from the return statement so you can tell from the code.
13571 (gtk_tree_view_remove_column): ditto
13572 (gtk_tree_view_insert_column): ditto
13573 (gtk_tree_view_get_column): remove g_return_if_fail for columns
13574 outside the existing range, the docs say that outside-range
13575 columns are allowed, so we handle them as documented. (Presumably
13576 this allows a nice loop with column != NULL as test.)
13577 (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments
13578 mean (left/right/center etc.).
13579 (gtk_tree_view_collapse_all): only queue a draw if we're mapped
13580 (gtk_tree_view_expand_row): add docs
13581 (gtk_tree_view_collapse_row): add docs
13583 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
13584 function to emit the clicked signal on a column
13586 * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
13588 (gdk_event_get_time): don't treat GDK_SCROLL
13589 as a button event, remove default case from switch so gcc
13590 will whine if we don't explicitly handle all event types
13592 * gtk/gtktreeselection.h: added some FIXME
13594 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
13595 "columns" to "n_columns" and "column" to "columns" for clarity
13597 2000-12-16 Havoc Pennington <hp@pobox.com>
13599 * gtk/gtktextiter.c: General cleanup of the log attr iteration
13600 stuff. This should make e.g. the delete key work again in the
13602 (gtk_text_iter_forward_cursor_positions): handle negative count
13603 (gtk_text_iter_backward_cursor_positions): handle negative count
13604 (gtk_text_iter_forward_word_ends): handle negative count
13605 (gtk_text_iter_backward_word_starts): handle negative count
13607 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
13608 gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
13609 gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
13610 GObject. No doubt will cause breakage.
13612 * demos/gtk-demo/textview.c: remove hacks around
13613 non-GObject-ification of the text objects
13615 * demos/gtk-demo/main.c (main): use g_object_set() to manipulate
13618 2000-12-14 Havoc Pennington <hp@pobox.com>
13620 * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
13621 that we have Xrender
13623 Thu Dec 14 20:22:31 2000 Owen Taylor <otaylor@redhat.com>
13625 * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
13626 Add two virtualized functions gdk_drawable_get_clip_region - to
13627 get the clip region when drawing.
13629 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
13630 use invalidate_region.
13632 * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
13635 * acconfig.h configure.in: Check for Xft. For now, assume
13636 that if Xft is found, Pango was compiled with Xft support
13639 * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add
13640 gdk_colormap_query_color().
13642 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
13643 with Xft if appropriate.
13645 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
13646 a pangoxft context if we have XFT and the environment
13647 variable GD_USE_XFT is set.
13649 * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
13650 and also possibly an XftDraw structure.
13652 * gtk/gtkfontsel.c: Handle the case where the font from the
13653 style doesn't match any of the fonts a bit better.
13655 * gtk/testgtk.c: Add tabs between directional segments for
13656 hebrew/arabic test. (Not really necessary, just a little
13659 2000-12-14 Havoc Pennington <hp@redhat.com>
13661 * gtk/testtext.c (fill_file_buffer): fix unicode validation when
13664 2000-12-14 Havoc Pennington <hp@redhat.com>
13666 * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
13667 unused call to get_last_line()
13669 * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
13670 here until boxed is working (and maybe after that - we should
13671 really not gratuitously break old code)
13673 * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
13674 specific types for font_desc and tabs args, move them to
13675 GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
13676 fixed. Move GdkColor args to GTK_TYPE_POINTER also.
13678 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
13679 use GTK_TYPE_POINTER for signal signatures as a hack-around
13681 * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
13684 * gtk/gtktextlayout.c (line_display_iter_to_index):
13686 (line_display_index_to_iter): make static
13688 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
13689 to marshal a string not a boxed
13691 * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
13693 * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
13694 since the UTF-8 isn't validated yet
13696 * gtk/gtktextsegment.c (char_segment_check_func): don't require
13697 lines to end in '\n'
13699 * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
13700 forward_to_delimiters, and grapheme boundaries
13701 (gtk_text_view_delete_from_cursor): properly handle non-newline
13702 delimiters, and grapheme boundaries
13704 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
13705 to gtk_text_iter_forward_to_delimiters, and make it work properly
13706 if empty lines end with a character other than '\n'
13708 * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
13711 2000-12-15 Tor Lillqvist <tml@iki.fi>
13713 * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
13716 * gdk/gdk.def: Update.
13718 * gdk/win32/gdkmain-win32.c
13719 * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
13720 gdkmain-win32.c here.
13722 * gdk/win32/makefile.mingw.in (all): No need to make
13723 gdk-win32res.o here, the makefile one step up will call us to make
13726 * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
13729 * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
13731 * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
13732 call to g_source_add().
13734 * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
13735 leak. Thanks to Andreas Kemnade.
13737 2000-12-13 Havoc Pennington <hp@pobox.com>
13739 * gtk/gtktextbtree.h: Remove double _ in front of some functions
13741 * gtk/gtktext*.[hc]: update accordingly
13743 2000-12-13 Havoc Pennington <hp@pobox.com>
13745 * gtk/gtktextbtree.h: Put _ in front of every function in this
13748 * gtk/gtktext*.[hc]: update to reflect renamed btree functions
13750 2000-12-13 Alex Larsson <alexl@redhat.com>
13752 * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
13753 Add support for ps2 intellimouse.
13755 * gdkkeyboard-fb.c:
13756 Move shift-F1 repaint handling to xlate handler only.
13758 * docs/README.linux-fb:
13760 Document the new refresh keys.
13762 Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
13764 * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
13766 * gtk/gtkbox.c: change property types from (u)long to (u)int for
13767 ::position and ::padding.
13769 * gtk/gtkcontainer.c: make ::border_width an INT property.
13771 * gtk/gtkpacker.c: make ::position an INT property.
13773 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
13774 guard against NULL h/v scrollbars, since this is used at construction
13777 * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
13778 internal gtk_clist_constructor().
13780 * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
13781 gtk_ctree_constructor().
13783 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
13784 ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
13786 * docs/reference/Makefile.am: fun stuff, disabled docs generation
13787 again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
13789 * gtk/gtkwidget.[hc]:
13790 removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
13791 and gtk_widget_get().
13792 (gtk_widget_new): use g_object_new_valist().
13793 (gtk_widget_set): use g_object_set_valist().
13795 * gtk/gtkobject.[hc]:
13796 removed gtk_object_arg_get_info(), gtk_object_getv(),
13797 gtk_object_query_args(), gtk_object_newv(),
13798 gtk_object_class_add_signals(),
13799 gtk_object_class_user_signal_new(),
13800 gtk_object_class_user_signal_newv(),
13801 gtk_object_arg_set(), gtk_object_arg_get(),
13802 gtk_object_args_collect(),
13803 gtk_object_default_construct(),
13804 gtk_object_constructed(),
13805 GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
13806 removed nsignals, signals and n_args members from GtkObjectClass.
13807 (gtk_object_new): use g_object_new_valist().
13808 (gtk_object_set): use g_object_set_valist().
13809 (gtk_object_get): use g_object_get_valist().
13811 * gtk/gtkcompat.h: define gtk_object_default_construct().
13813 * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
13816 * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
13817 fucntions, cleaned up method assignments (make sure your structures
13818 are setup properly before calling out). removed all GTK_CONSTRUCTED
13821 Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
13823 * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
13824 off-by-one error in checks. (Dave Lambert)
13826 2000-12-12 Alexander Larsson <alexl@redhat.com>
13828 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
13829 Don't free gdk_fb_keyboard twice.
13831 Tue Dec 12 08:24:42 2000 Tim Janik <timj@gtk.org>
13835 (create_statusbar): get rid of object_signal:: GtkObject argument uses,
13836 use GObject swapped_signal:: properties instead.
13838 * gtk/gtkcellrenderertoggle.c:
13839 * gtk/gtkcellrenderertextpixbuf.c:
13840 * gtk/gtkcellrenderertext.c:
13841 * gtk/gtkcellrendererpixbuf.c:
13842 * gtk/gtkcellrenderer.c:
13843 * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
13844 missing warnings for invalid property ids, install properties
13845 with g_object_class_install_property() now.
13848 (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
13850 Wed Oct 25 14:17:43 2000 Owen Taylor <otaylor@redhat.com>
13852 * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
13853 to determine if a window is the focus widget within
13856 * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
13859 * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling
13860 of the case where the container CAN_FOCUS to here instead
13861 of having it in each individual move-the-focus place.
13863 * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
13864 focusing to be geometric in a much more obvious sense. Arrowing
13865 around is still non-intuitive because it isn't perfect and
13866 because entries, etc, grab the arrow keys, but it at least
13867 usually will do what you expect now.
13869 * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
13872 * gtk/gtknotebook.c: Change tabs to be a single item in
13873 the focus chain. Make movement of focus on tabs with arrow
13876 * gtk/gtknotebook.c (gtk_notebook_find_child): Add
13877 CHECK_FIND_CHILD macro to give informative error messages
13878 instead of silent returns.
13880 * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT
13881 flag since we handle GdkReturn on the tabs.
13883 * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
13884 windows rather than sending expose events directly.
13886 * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure
13887 definition for GtkNotebookPage into .c file, since it is private.
13889 * gtk/testgtk.c (create_notebook): Add option for
13890 testing borderless notebook.
13892 * gtk/testgtk.c (page_switch): Removed egregious poking
13893 around in GTK+ internals.
13895 * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
13897 * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
13898 properly through gtk_clist_focus. Make the title headers a
13899 single item in the tab-focus chain, and make left-right wrap
13902 * gtk/gtkwindow.c (gtk_window_focus): Add a custom
13903 focus method so that wrapping around works properly.
13905 * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() -
13906 that is handled for the widget now.
13908 Mon Dec 11 11:41:12 2000 Owen Taylor <otaylor@redhat.com>
13910 * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
13911 widgets as TOPLEVEL.
13913 * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
13914 TOPLEVEL widgets are containers.
13916 * gtk/gtkinvisible.h: Remove useless include.
13918 2000-12-11 Havoc Pennington <hp@redhat.com>
13920 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
13921 Handle chopping off \r\n and 0x2029 in addition to \n before
13922 passing to PangoLayout
13924 * gtk/gtkimcontextsimple.c
13925 (gtk_im_context_simple_get_preedit_string):
13926 return an empty string if no match is pending
13928 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
13929 assertion that the returned preedit string was sane
13931 * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
13932 s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
13933 s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
13935 Mon Dec 11 10:02:26 2000 Owen Taylor <otaylor@redhat.com>
13937 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize):
13938 Fix up finalizer to chain to its parent.
13940 2000-12-11 Alexander Larsson <alexl@redhat.com>
13942 * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
13943 Clearified the difference between the keyboard types. Wrote a note
13944 about the magic sysrq key to get out of raw mode.
13946 2000-12-09 James Henstridge <james@daa.com.au>
13948 * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
13949 member to hold masks for detecting the start of a protocol packet.
13950 (mouse_devs): add packet start masks for ps2 and ms device types.
13951 Left the mask for fidmour blank, as I have no idea what it should
13953 (handle_mouse_io): skip bytes until we get to the start of a
13954 packet. My Logitech mouse seems to be passing an extra NULL pad
13955 byte, and GPM does a similar thing here.
13956 (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
13957 this is the ms mouse driver.
13958 (gdk_fb_mouse_ms_packet): fix up button handling, which was
13959 completely broken except for button1. It was checking the wrong
13960 bit in the packet for the status of the right mouse button, and
13961 wrongly assuming right == button2 rather than 3. I fixed that and
13962 also added support for middle button (button2).
13964 2000-12-08 Havoc Pennington <hp@redhat.com>
13966 * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
13967 that cause a segfault on text insertion
13969 * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix
13972 * gtk/gtktextiter.c (test_log_attrs): use
13973 _gtk_text_buffer_get_line_log_attrs to speed things up a bit
13975 * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs):
13976 Get log attrs for a line, using a cache stored on the buffer
13978 * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
13979 reported by Jeff Franks
13981 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
13983 * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
13984 /dev/ttyS0 -> /dev/mouse
13986 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
13988 * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
13989 Added dummy gdk_fontset_load.
13991 2000-12-08 Alexander Larsson <alexl@redhat.com>
13993 * docs/README.linux-fb:
13994 * docs/Makefile.am:
13995 Initial GtkFB docs.
13997 * gdk/linux-fb/Makefile.am:
13998 Define GDK_DATA_PREFIX.
14000 * gdk/linux-fb/gdkmain-fb.c:
14002 Change default display to /dev/fb0.
14004 * gdk/linux-fb/gdkpango-fb.c:
14005 Add $(prefix)/share/fonts/ to font path.
14007 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14009 * gdk/linux-fb/gdkkeyboard-fb.c:
14010 New file containing the abstracted keyboard driver. Most code
14011 taken from gdkinput-ps2.c
14013 * gdk/linux-fb/gdkinput-ps2.c:
14016 * gdk/linux-fb/Makefile.am:
14017 Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
14019 * gdk/linux-fb/gdkcolor-fb.c:
14020 display->fb was renamed to display->fb_fd.
14022 * gdk/linux-fb/gdkcursor-fb.c:
14023 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14025 * gdk/linux-fb/gdkinput.c:
14026 Moved gdk_input_init here from gdkinput-ps2.c
14028 * gdk/linux-fb/gdkmain-fb.c:
14029 display->fb was renamed to display->fb_fd.
14030 Now the tty and the console is opened here instead
14031 of in the keyboard driver. Also check GDK_VT to see what
14033 Move gdk_beep () here from gdkinput-ps2.c
14034 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14036 * gdk/linux-fb/gdkmouse-fb.c:
14038 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14039 Return correct keyboard modifiers.
14040 GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
14042 * gdk/linux-fb/gdkprivate-fb.h:
14043 Add tty and vt info to display.
14044 Add orignal modeinfo storage to display
14045 Update global functions
14047 * gdk/linux-fb/gdkwindow-fb.c:
14048 Added gdk_fb_window_find_focus().
14049 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14051 2000-12-07 Havoc Pennington <hp@pobox.com>
14053 * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of
14054 function, noticed by Alex
14056 2000-12-06 Elliot Lee <sopwith@redhat.com>
14058 * configure.in: Detect freetype properly
14060 * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
14063 2000-12-06 Alexander Larsson <alexl@redhat.com>
14065 * gdk/linux-fb/Makefile.am:
14068 * gdk/linux-fb/gdkmouse-fb.c:
14069 New file. Abstracted the mouse drivers a bit.
14071 * gdk/linux-fb/gdkcursor-fb.c:
14072 The cursor hide/show functions was moved here from gdkinput-ps2.c.
14074 * gdk/linux-fb/gdkinput-ps2.c:
14075 Removed old mouse handling code. Moved cursor handling code
14076 to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
14077 gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
14078 gdk_mouse_get_info.
14080 * gdk/linux-fb/gdkmain-fb.c:
14081 Pass NULL pointers for x,y in gdk_mouse_get_info call.
14083 * gdk/linux-fb/gdkprivate-fb.h:
14084 Removed public gdk_fb_find_common_ancestor, added and renamed
14085 functions for the new mouse handling code.
14087 * gdk/linux-fb/gdkwindow-fb.c:
14088 Moved gdk_fb_window_send_crossing_events here. added global
14089 variable gdk_fb_window_containing_pointer. made
14090 gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
14091 renamed to gdk_mouse_get_info.
14093 2000-12-06 Alexander Larsson <alexl@redhat.com>
14095 * gdk/linux-fb/gdkevents-fb.c:
14096 Update to match latest gmain/gsource changes.
14098 * gdk/linux-fb/gdkinput-ps2.c:
14099 Bogus gdk_keymap_get_entries_for_keycode implementation so that
14100 it links. Will be implemented later.
14102 2000-12-03 Havoc Pennington <hp@pobox.com>
14104 * gdk/Makefile.am: add gdkkeys.[hc]
14106 * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
14107 files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
14109 * acconfig.h, configure.in: add checks and command line options
14112 * gdk/x11/gdkkeys-x11.c: Implement the above functions
14114 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
14115 and group in the key event
14117 * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
14118 field with the low-level hardware key code, and a group
14119 field with the keyboard group
14121 * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
14122 and declare a couple globals used for keymap handling
14124 * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
14125 hold down Shift-Control and type a hex number to get a Unicode
14126 character corresponding to the hex number
14127 (gtk_im_context_simple_get_preedit_string): Fix cursor position
14128 (return bytes not chars)
14130 2000-12-05 Elliot Lee <sopwith@redhat.com>
14132 * gdk/gdkcolor.h: Make GdkColor specify element sizes
14133 to avoid waste on 64-bit platforms.
14135 Tue Dec 5 15:49:31 2000 Owen Taylor <otaylor@redhat.com>
14137 * INSTALL: Fix link to PNG home, remove reference
14140 * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
14142 * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
14145 * gtk/gtkcheckmenuitem.c: Permanently turn on
14146 always_show_toggle.
14148 * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to
14149 be NULL. (Vladimir Klebanov, #26545)
14151 * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
14152 some signed/unsigned comparison problems. (#6510,
14155 * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
14156 return type to boolean (Oskar Liljeblad, #18648)
14158 2000-12-05 Alexander Larsson <alexl@redhat.com>
14160 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
14161 Remove bogus colormap setting.
14163 2000-12-05 Alexander Larsson <alexl@redhat.com>
14165 * gdk/linux-fb/gdkcolor-fb.c:
14166 More complete colormap handling. Now GdkRGB work in 8 bpp modes.
14168 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
14171 Tue Dec 5 13:17:53 GMT 2000 Tony Gale <gale@gtk.org>
14173 * docs/tutorial/gtk-tut.sgml: DND updates
14175 2000-12-05 Alexander Larsson <alla@lysator.liu.se>
14177 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14178 Remove old debug g_warning().
14179 (gdk_fb_draw_drawable): The src argument can be either a wrapper
14180 or an implementation, just pass the implementation to draw_drawable_2.
14182 * gdk/linux-fb/gdkprivate-fb.h:
14183 Added GDK_IS_DRAWABLE_IMPL_FBDATA()
14185 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14186 clear and invalidate area when window is destroyed.
14187 (send_map_events): Remove old commented out code.
14189 2000-12-05 Alexander Larsson <alexl@redhat.com>
14191 * gdk/linux-fb/gdkpango-fb.c:
14192 Use italic instead of oblique in font aliases.
14194 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
14195 _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
14196 other unsupported functions.
14198 2000-12-04 Havoc Pennington <hp@redhat.com>
14200 * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
14202 * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
14204 * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
14206 * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary
14207 hack to avoid infinite loops (synthetic expose event) -
14208 Owen has more appropriate fixes in a branch he'll check in later.
14210 * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
14211 separator, CR, and CRLF as line ends
14213 * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
14214 into lines using pango_find_paragraph_boundary(); other bits of
14215 the widget are still going to be broken if the boundary isn't '\n'
14218 2000-12-04 Alexander Larsson <alexl@redhat.com>
14220 * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
14223 * gdk/linux-fb/gdkpango-fb.c:
14224 Copied some 26.6 scaling macros from pango to clean up the rounding.
14225 (pango_fb_font_get_glyph_info): Correct sign on x value.
14227 * gdk/linux-fb/gdkprivate-fb.h:
14228 Removed unreferenced external functions.
14230 * modules/linux-fb/Makefile.am: Use ` instead of '.
14232 * modules/linux-fb/basic.c:
14233 Remove dead code. In particular the dummy lang engine which broke all
14234 pango layouts in GtkFB. Don't include tables-big.i anymore.
14236 * modules/linux-fb/tables-big.i:
14237 Upgrade to latest version from pango. Left for reference, basic_ranges
14240 2000-12-04 Havoc Pennington <hp@redhat.com>
14242 Fix bugs Alex found:
14244 * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
14247 * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
14249 * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
14251 * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw()
14252 implementation in here, apparently the expose() implementation was
14255 2000-12-04 Alexander Larsson <alexl@redhat.com>
14257 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14258 Return positive descent.
14260 2000-12-02 Havoc Pennington <hp@pobox.com>
14262 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
14265 * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
14266 calls gdk_window_process_updates() to push the exposes through
14267 (gtk_widget_class_init): No more draw signal, no
14268 gtk_widget_real_draw()
14270 * gtk/gtkbin.c (gtk_bin_draw): remove
14272 * gtk/gtkbox.c (gtk_box_draw): remove
14274 * gtk/gtkbutton.c (gtk_button_draw): remove
14276 * gtk/gtkcalendar.c (gtk_calendar_draw): remove
14278 * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
14280 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
14282 * gtk/gtkclist.c (gtk_clist_draw): remove
14284 * gtk/gtkentry.c (gtk_entry_draw): remove
14286 * gtk/gtkeventbox.c (gtk_event_box_draw): remove
14288 * gtk/gtkfixed.c (gtk_fixed_draw): remove
14290 * gtk/gtkframe.c (gtk_frame_draw): remove
14292 * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
14294 * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
14296 * gtk/gtklayout.c (gtk_layout_draw): remove
14298 * gtk/gtklist.c (gtk_list_draw): remove
14300 * gtk/gtklistitem.c (gtk_list_item_draw): remove
14302 * gtk/gtkmenu.c (gtk_menu_draw): remove
14304 * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
14306 * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
14308 * gtk/gtknotebook.c (gtk_notebook_draw): remove
14310 * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
14312 * gtk/gtkpacker.c (gtk_packer_draw): remove
14314 * gtk/gtkrange.c (gtk_range_draw): remove
14316 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
14318 * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
14320 * gtk/gtktable.c (gtk_table_draw): remove
14322 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
14324 * gtk/gtktext.c (gtk_text_draw): remove
14326 * gtk/gtktextview.c (gtk_text_view_draw): remove
14328 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
14330 * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
14332 * gtk/gtktree.c (gtk_tree_draw): remove
14334 * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
14336 * gtk/gtktreeview.c (gtk_tree_view_draw): remove
14338 * gtk/gtkviewport.c (gtk_viewport_draw): remove
14340 * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
14342 * gtk/gtkvscale.c (gtk_vscale_draw): remove
14344 * gtk/gtkwindow.c (gtk_window_draw): remove
14346 2000-20-01 Anders Carlsson <andersca@gnu.org>
14348 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
14349 a GtkToggleButton is both insensitive and active, it was being
14350 drawn by the GtkButton draw handler which doesn't check the
14351 state. Now it's calling gtk_toggle_button_paint instead.
14353 2000-12-01 Havoc Pennington <hp@redhat.com>
14355 * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
14356 dangling pointers to the appearance attributes from the
14359 * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
14360 width/height to mean "full width/height of drawable"
14362 * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
14363 click to select word/line
14365 * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
14366 when getting log attrs. Get a slice, so that pixmaps and stuff
14367 are properly handled.
14369 * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
14370 paste into the selection (replaces selection now, previously
14371 crashed or added to selection). Reveals longstanding btree bug -
14372 select multiple lines, middle-click on the selection, boom. This
14373 isn't related to my changes though.
14375 * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
14376 PangoLogAttrs changes
14377 (gtk_entry_move_backward_word): ditto
14379 * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
14380 functions return bool whether the iter moved onto a
14381 dereferenceable position.
14383 * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
14384 functions for motion in terms of display lines.
14386 * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
14387 get the buffer a mark is inside
14389 2000-12-01 Alexander Larsson <alexl@redhat.com>
14391 * gdk/linux-fb/Makefile.am:
14392 * modules/linux-fb/Makefile.am:
14393 Freetype 2 final uses freetype-config
14395 * gdk/linux-fb/gdkpango-fb.c:
14396 Upgrade to use Freetype 2 final.
14397 More flexible support for font aliases, this also fixes a bug with
14398 GtkFontSelector, as the aliases must be visible in the font/family list,
14399 or GtkFontSelector reads uninitialized memory.
14401 2000-11-30 Hidetoshi Tajima <tajima@eng.sun.com>
14403 * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
14404 XGetIMValues to properly terminate variable argument list, and do
14405 NULL return check for ic_values and xim_styles.
14407 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
14408 Restore preedit state after XmbResetIC().
14410 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
14411 XvaCreateNestedList() should take XvaNestedList, but not
14414 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
14415 preedit_draw_callback, preedit_caret_callback): Match
14416 "preedit-changed" signal name to "preedit_changed" to be
14417 consistent to the spec.
14419 * gtk/gtkimcontextsimple.c (check_table):
14420 Match "preedit-changed" to "preedit_changed" to be consistent
14423 Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
14425 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
14426 gc->clip_region == NULL>
14428 2000-11-30 Tor Lillqvist <tml@iki.fi>
14430 Changes by Hans Breuer:
14432 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
14433 Dont't use negative width and height as max_hints. This fixes
14434 Owen's recent testgtk changes for win32.
14436 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
14437 gdk_win32_hdc_release): These are exported and may be called with
14438 other drawable types than our GdkDrawableImplWin32 (?).
14440 * gdk/gdkwindow.c: Backing store appears to work on Windows now,
14441 so always #define USE_BACKING_STORE.
14443 * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
14444 of printf for debugging output.
14446 * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
14448 * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
14450 * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
14453 * gtk/gtktexttypes.h: Ditto.
14455 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
14456 (GDK_VoidSymbol) also if in case of arg check failure.
14458 * gtk/gtkimcontextsimple.c
14459 (gtk_im_context_simple_get_preedit_string): Don't assign cursor
14460 position to the pointer, but to the variable it points to.
14462 * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
14464 * gtk/gtk.def: Updates.
14466 2000-11-29 Elliot Lee <sopwith@redhat.com>
14468 * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
14469 GTK_TYPE_TREE_MODEL.
14471 2000-11-29 Alexander Larsson <alexl@redhat.com>
14473 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
14474 Set the size of the font from the description.
14475 (gdk_text_width): Gross hack that calculates the width
14476 of text by text_length * size/2. This is necessary because
14477 GtkLabel does some ugly gtk_string_width call to calculate
14479 (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
14481 Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
14483 * docs/tutorial/gtk-tut.sgml: DND updates
14485 2000-11-29 Alexander Larsson <alexl@redhat.com>
14487 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
14488 If you pass width or height == 0 to gdk_window_clear_area they
14489 should be calculated from the window size.
14491 2000-11-29 Alexander Larsson <alexl@redhat.com>
14493 * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
14494 a grab, but no grab-cursor, use the cursor from the grabbed
14495 window. (gdk_fb_window_send_crossing_events): Send normal
14496 enter/leave notifications if grab and owner_events == TRUE.
14498 2000-11-29 Alexander Larsson <alexl@redhat.com>
14500 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14501 Do implicit button grabs, even if the window doesn't
14503 (gdk_fb_window_send_crossing_events): If there is a
14504 grab, only the grabbed window gets normal enter/leave
14505 notifications. On ungrab go from grabbed window to current.
14506 Don't send any notification to b when propagating from c -> b.
14507 If setting a grab on window, don't set prev_window.
14508 (handle_mouse_input): Send enter/leave events to the window the
14509 mouse is over, not the grabbed one.
14511 2000-11-28 Elliot Lee <sopwith@redhat.com>
14513 * gdk/gdkregion-generic.c: Zap warning.
14514 * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
14515 * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
14517 2000-11-28 Alexander Larsson <alla@lysator.liu.se>
14519 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
14520 The cursor should be hidden if it is part of either the
14521 source or destination region. Not only if it is in both.
14522 (gdk_window_set_transient_for): Silence warnings.
14524 2000-11-28 Alexander Larsson <alexl@redhat.com>
14526 * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
14527 The default mode in X is Pie Arcs, therefore that is
14530 2000-11-28 Alexander Larsson <alexl@redhat.com>
14532 * gdk/linux-fb/gdkinput-ps2.c:
14533 Implement correct EnterNotify/LeaveNotify:
14534 (gdk_fb_window_send_crossing_events): New function that sends
14535 all GdkCrossingEvents from the last mouse-window to the specified
14537 (gdk_fb_window_visibility_crossing): Removed function.
14538 (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
14539 (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
14540 instead of gdk_window_get_pointer() for better readability.
14542 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
14543 gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
14545 * gdk/linux-fb/gdkprivate-fb.h:
14546 removed gdk_fb_window_visibility_crossing, added
14547 gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
14549 gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
14550 New function that finds the least common ancestor of two windows.
14551 (gdk_window_show, gdk_window_hide):
14552 Use gdk_fb_window_send_crossing_events.
14553 (gdk_fb_window_move_resize): Send configure events to toplevel
14554 windows. Use gdk_fb_window_send_crossing_events.
14556 2000-11-27 Havoc Pennington <hp@redhat.com>
14558 * gtk/gtkprivate.h (enum): Remove a trailing comma
14560 2000-11-27 Federico Mena Quintero <federico@helixcode.com>
14562 * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
14563 the "changed" callback of the adjustment. We need to redraw the
14564 spin button's arrows when the adjustment's range changes.
14565 (adjustment_changed_cb): Draw the arrows.
14566 (gtk_spin_button_value_changed): Draw the arrows.
14568 2000-11-23 Alexander Larsson <alexl@redhat.com>
14570 * gdk/linux-fb/gdkselection-fb.c:
14571 Initial selection implementation.
14573 * gtk/gtkselection.c:
14574 if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
14575 requestor in gtk_selection_request.
14577 * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
14578 Added gdk_selection_property atom.
14580 * gdk/linux-fb/gdkprivate-fb.h:
14581 Export _gdk_selection_window_destroyed.
14582 Removed mask_off_x/y from GdkCursorPrivateFB.
14583 Removed hbearing, added top, left to PangoFBGlyphInfo.
14585 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14586 Call _gdk_selection_window_destroyed
14587 (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
14588 the root window has been created.
14589 (static_dx_hack, static_dy_hack, compare_draw_rects,
14590 gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
14591 in region. They are already sorted. Instead just traverse them in
14592 reverse if draw_direction < 0.
14594 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14595 Double-clicks must be sent after the normal button_press.
14596 (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
14598 * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
14599 Pass _gdk_fb_screen_gc instead of NULL.
14601 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
14602 Initialize gdk_selection_property.
14603 (gdk_event_make): Remove unused code.
14605 * gdk/linux-fb/gdkcursor-fb.c:
14606 Make the pixmap for the cursor the same size as the mask. Also remove
14607 the mask_off_x/y fields in GdkCursorPrivateFB and combine
14608 _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
14609 Now the whole cursor is visible.
14611 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14612 Fix bug where xdest+height instead of ydest+height was used
14613 to calculate if the source and dest overlapped. This fixes the
14614 redraw bug when the main window in testgtk was scrolled when
14615 partially covered by a tall window.
14616 Copy rectangles in region in order depending on draw_direction.
14617 Also moved the draw_direction flipping of start_y and end_y into
14618 the gc functions, as this might not be what all of them want.
14619 (gdk_fb_draw_lines): Support dashed lines.
14620 (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
14621 so that the text is positioned correctly (was 1 pixel high).
14623 gdk/linux-fb/gdkgc-fb.c:
14624 Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
14625 all lines were drawn a pixel to short. Also checked the default of
14626 the rest of the values, and they're the same as X now.
14628 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
14629 Clean up pixel positioning of the glyphs. Just use bgy->top and
14630 bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
14631 to all divisions to get correct rounding behaviour.
14633 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
14634 gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
14635 Moved start_y/end_y flip into draw_drawable implementations.
14636 Flip also x rendering when draw_direction < 0.
14637 Remove unneccesary multiply with draw_direction.
14639 Wed Nov 22 14:11:19 GMT 2000 Tony Gale <gale@gtk.org>
14641 * docs/tutorial/gtk-tut.sgml:
14642 - get rid of gtk_toggle_button_toggled FUD
14643 - start DND section - needs work - based on:
14644 http://wolfpack.twu.net/docs/gtkdnd/
14646 2000-11-22 Alexander Larsson <alexl@redhat.com>
14648 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14649 Correct calculation of font metrics. Now GtkEntrys have sane
14652 2000-11-22 Alexander Larsson <alexl@redhat.com>
14655 Add new type GdkSpan
14657 * docs/reference/gdk/gdk-sections.txt,
14658 docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
14660 Implement and document gdk_region_spans_intersect_foreach.
14662 * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
14663 Add new file gdkrender-fb.c which contains all core
14665 Add gdk_fb_fill_rectangle_generic (old rectangle code) and
14666 gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
14667 (optimized rectangle fillers).
14669 * gdk/linux-fb/gdkdrawable-fb2.c:
14670 Move all rendering code to gdkrender-fb.c.
14671 Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
14672 Use the new span intersection functions in gdk_fb_fill_spans.
14673 gdk_fb_draw_rectangle() clips filled rectangles and calls
14674 gc->fill_rectangle with the result.
14675 gdk_fb_fill_spans() gets extra argument "sorted".
14677 * gdk/linux-fb/gdkevents-fb.c:
14678 Remove unused includes and defines.
14679 New function gdk_fb_get_time() to get correct time for events.
14681 * gdk/linux-fb/gdkinput-ps2.c:
14682 Use gdk method of generating multiple-clicks (gdk_event_button_generate)
14683 Make sure to set the time of all events.
14685 * gdk/linux-fb/gdkmain-fb.c:
14686 Use gdk_fb_get_time ().
14688 * gdk/linux-fb/gdkprivate-fb.h:
14689 New virtual GC calls: fill_span & fill_rectangle.
14690 Export gdk_fb_get_time().
14691 gdk_fb_fill_spans() gets extra argument "sorted".
14693 * gdk/linux-fb/mi*.c:
14694 Use GdkSpan instead of GdkRectangle.
14695 Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
14696 from XFree 4 source)
14698 2000-11-22 <jrb@redhat.com>
14700 * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
14701 reversing the order in an if statement will do. Doing so managed
14702 to make the treemodelsort half work. Other half will follow after
14703 I get the insert function fully fixed.
14705 2000-11-21 Elliot Lee <sopwith@redhat.com>
14706 * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
14707 more than 2 bits. Besides, I need to implement an evil hack. :)
14709 Tue Nov 21 14:17:51 GMT 2000 Tony Gale <gale@gtk.org>
14711 * docs/tutorial/gtk-tut.sgml: minor corrections
14713 2000-11-20 Jonathan Blandford <jrb@redhat.com>
14714 * gtk/gtktreemodelsort.h: Add convertion functions to let you
14715 convert to and from relative path's and iters.
14717 * gtk/treestoretest.c: move to having a sorted/unsorted view. Start
14718 testing sorting functions a bit better. Currently broken -- will
14721 2000-11-20 Havoc Pennington <hp@redhat.com>
14723 * gtk/gtkwidget.c: Documented a bunch of functions in here
14724 (gtk_widget_realize): Warn if you try to realize
14725 a widget with no parent that isn't a toplevel
14726 (gtk_widget_intersect): return a gboolean
14728 2000-11-20 Havoc Pennington <hp@redhat.com>
14730 * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
14731 gtk/testtext.c: Semi-finish widget embedding. Need guffaw
14732 scrolling to be implemented in GDK to finish. Also, right now
14733 we just size_allocate all children on every layout change,
14734 which is pretty lame. Test commented out of testtext.c,
14735 until it works better.
14737 2000-11-20 Alexander Larsson <alla@lysator.liu.se>
14739 * gdk/linux-fb/gdkdrawable-fb2.c:
14740 Removed unused arguments from gdk_fb_drawable_get_pixel().
14742 * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
14743 Renamed fidur specific mouse packet data in MouseDevice to
14744 generic. Used it in ps2 mouse handling code to avoid blocking
14747 Sat Nov 18 18:00:17 2000 Jonathan Blandford <jrb@redhat.com>
14749 * demos/gtk-demo/main.c: Changed to have the list become
14750 non-italic when the demo window is destroyed through an external
14751 event (like a close button). Doing so found three bugs in the
14754 * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
14756 * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
14757 we actually set the cell.
14759 * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
14761 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
14762 free a leaked path. Thanks memprof.
14764 Sat Nov 18 11:58:17 2000 Owen Taylor <otaylor@redhat.com>
14766 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix
14767 off-by-one error when destroying allocated segments
14768 on failure. (Elliot)
14770 Sat Nov 18 11:45:09 2000 Owen Taylor <otaylor@redhat.com>
14772 * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
14773 memleaks found by Evan Martin.
14775 Fri Nov 17 20:14:20 2000 Owen Taylor <otaylor@redhat.com>
14779 * NEWS: Updates for 1.3.2
14781 2000-11-17 Tor Lillqvist <tml@iki.fi>
14783 * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
14784 but in general for window system specific events.
14787 * gtk/makefile.mingw.in
14788 * gtk/makefile.msc.in: Update.
14790 * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
14792 Thu Nov 16 16:11:39 2000 Owen Taylor <otaylor@redhat.com>
14794 * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
14795 distribute gtk.immodules.
14797 * gtk/Makefile.am (install-data-local): Don't install the
14798 gtk.immodules file created for the uninstalled modules;
14799 instead run gtk-query-immodules after install
14801 Wed Nov 15 21:51:31 2000 Owen Taylor <otaylor@redhat.com>
14803 * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
14804 -rpath to the right install location.
14806 * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
14809 * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
14812 2000-11-15 Havoc Pennington <hp@pobox.com>
14814 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
14815 patch from Mikael Hermansson to temporarily stop blinking while
14816 the user is using the keyboard to type or navigate.
14818 Also, when blinking, stay on for longer than we stay off. Also,
14819 return from start_cursor_blink if !cursor_visible, to save
14820 checking that flag all over the place before we call
14821 start_cursor_blink.
14823 Thu Nov 16 01:25:51 2000 Robert Brady <robert@suse.co.uk>
14825 * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
14826 only contain a "fontset" line, which is now ignored.
14828 * gtk/gtkentry.c (gtk_entry_button_release): Make
14829 double-click-to-select-word work.
14831 Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
14833 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
14834 Don't move back one char when we are actually at the end of the
14837 2000-11-15 Robert Brady <robert@suse.co.uk>
14839 * modules/input/iminuktitut.c (inuktitut_compose_seqs):
14842 * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
14843 bind_textdomain_codeset.
14845 (gtk_init_check): Make the warning about translating default:LTR
14848 Wed Nov 15 18:39:40 2000 Owen Taylor <otaylor@redhat.com>
14850 * **/Makefile.am : remove unecessary rules for win32-specific
14851 config-substituted targets. If you want these rules, use
14852 --enable-maintainer-mode (called automatically by autogen.sh).
14853 Stops a lot of unneccessary make-time warnings.
14855 * gtk/gtktext{layout,display}.c: Factor in total width as
14856 well as screen when figuring alignment for word-wrap as well as
14857 no wrap; this is necessary to handle lines that cannot be wrapped
14860 2000-11-15 Havoc Pennington <hp@redhat.com>
14862 * gtk/testtext.c: Implement essential color cycling feature
14864 2000-11-15 Havoc Pennington <hp@redhat.com>
14866 * gtk/gtktextview.c (changed_handler): Invalidate the side windows
14867 when we invalidate the main window.
14869 * gtk/testtext.c (create_view): Get rid of text_changed_callback,
14870 GtkTextView will now invalidate the side windows for us when text
14873 Wed Nov 15 16:02:20 2000 Owen Taylor <otaylor@redhat.com>
14875 * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
14876 unconditionally, since we may need to update the horizontal
14877 scrollbars even if the height didn't change.
14879 * gtk/gtktextlayout.c (add_preedit_attrs): Always get
14880 the extra attrs, since some of them affect size.
14882 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
14883 x_offset correctly.
14885 2000-11-15 Havoc Pennington <hp@redhat.com>
14887 * gtk/gtktextlayout.c (set_para_values): If indent is negative,
14888 don't move the first line out into the margin, instead move the
14889 whole paragraph in order to make space for the first line within
14892 2000-11-15 Havoc Pennington <hp@redhat.com>
14894 * gtk/gtktextview.c (changed_handler): offset redraw rect by
14895 xoffset in addition to yoffset, so horizontal scrolling doesn't
14898 2000-11-15 Havoc Pennington <hp@redhat.com>
14900 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
14902 (render_layout_line): fix reversed test that caused weird
14903 underlines to get drawn
14905 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
14907 * gdk/linux-fb/gdkprivate-fb.h:
14910 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
14912 * gdk/linux-fb/gdkprivate-fb.h:
14913 Added virtual functions set_pixel, get_color,
14914 fill_span and draw_drawable to the GC.
14915 Added global _gdk_fb_screen_gc to use instead of
14916 NULL when drawing to the screen.
14917 Added _gdk_fb_gc_calc_state() prototype.
14919 * gdk/linux-fb/gdkgc-fb.c:
14920 Call _gdk_fb_gc_calc_state() on any gc state change.
14922 * gdk/linux-fb/gdkglobals-fb.c:
14923 Add _gdk_fb_screen_gc
14925 * gdk/linux-fb/gdkdrawable-fb2.c:
14926 _gdk_fb_gc_calc_state() calculates best functions
14927 for the GC state and depth.
14928 Moved bpp specialized code to separate functions.
14929 Added optimized 24 bpp AA draw_drawable.
14931 * gdk/linux-fb/gdkevents-fb.c:
14932 Silence gcc warning.
14934 * gdk/linux-fb/gdkimage-fb.c:
14935 Use _gdk_fb_screen_gc
14937 * gdk/linux-fb/gdkwindow-fb.c:
14938 Init and use _gdk_fb_screen_gc
14940 * gdk/linux-fb/mitypes.h:
14941 Remove unused types.
14943 2000-11-14 Havoc Pennington <hp@pobox.com>
14945 * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
14948 2000-11-14 Havoc Pennington <hp@pobox.com>
14950 * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
14952 * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
14953 unknown char, no real reason we were using a variable.
14954 Remove gtk_text_unknown_char variable. Fix all the text widget
14957 * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC,
14958 since the Unicode spec seems to prefer that character for our
14961 Wed Nov 15 02:18:01 2000 Robert Brady <robert@suse.co.uk>
14963 * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return
14964 value of g_getenv() isn't freeable, so g_strdup it.
14966 * modules/input/inuktitut.c: Inuktitut input method.
14968 * modules/input/Makefile.am: Build this.
14970 2000-11-14 Elliot Lee <sopwith@redhat.com>
14972 * gtk/Makefile.am: Install gtk.immodules, needed for operation
14975 Tue Nov 14 20:13:06 2000 Owen Taylor <otaylor@redhat.com>
14977 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
14978 reversed > that was causing Home to go to end of previous line.
14980 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
14981 modified-keypresses (leave for bindings.)
14983 * modules/input/Makefile.am: Remove useless -export-dynamic
14984 from module LDFLAGS.
14986 2000-11-14 Havoc Pennington <hp@redhat.com>
14988 * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
14991 * gtk/gtktextdisplay.c (render_layout_line): Take rise into
14992 account. Also, render rise, underline, background, etc. for
14993 pixbufs as well as text. Also, draw underlines one pixel higher.
14995 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
14996 PangoAttribute for the rise, so it gets drawn properly. Also,
14997 add the GtkTextAppearance attribute for pixbuf/widget segments
14998 as well; we should go ahead and have rise, underline, background,
14999 stipple work for those
15001 * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
15004 2000-11-15 Tor Lillqvist <tml@iki.fi>
15006 * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
15008 * gtk/gtk.def: Update.
15010 * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
15012 (gtk_rc_get_im_module_file): Use run-time installation directory
15015 * gdk/win32/rc/gdk.rc: Remove.
15016 * gdk/win32/rc/gdk.rc.in: New file.
15017 * gdk/win32/rc/Makefile.am: New file
15018 * gdk/win32/Makefile.am: Corresponding changes.
15020 * gtk/gtk.rc: Remove.
15021 * gtk/gtk-win32.rc.in: New file.
15022 * gtk/Makefile.am: Corresponding changes.
15024 * configure.in: Corresponding changes.
15026 * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
15027 has a built gtkcompat.h. Developers using CVS code on Win32 can
15028 hand-edit it from gtkcompat.h.in.
15030 * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
15031 gtkcompat.h from gtkcompat.h.win32.
15033 2000-11-14 Havoc Pennington <hp@redhat.com>
15035 * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
15036 to default to GDK_ACTION_MOVE if the drag is within a single
15037 widget. Defaults to GDK_ACTION_COPY between widgets.
15039 Mon Nov 13 14:43:48 2000 Owen Taylor <otaylor@redhat.com>
15041 * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
15043 * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
15045 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
15048 * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
15050 * configure.in (GTK_VERSION): Up to 1.3.2
15052 * modules/input/Makefile.am (im_xim_la_SOURCES): Add
15055 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
15056 missing doc comment.
15058 2000-11-14 Alexander Larsson <alexl@redhat.com>
15060 * modules/linux-fb/basic.c:
15061 Use the glib iconv wrappers.
15063 2000-11-13 Havoc Pennington <hp@pobox.com>
15065 * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
15068 * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
15069 scroll the GdkWindows before realization.
15071 2000-11-13 Havoc Pennington <hp@redhat.com>
15073 * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
15074 where GC didn't always get updated properly
15076 * demos/gtk-demo/textview.c (create_tags): Use subattributes
15077 of fonts instead of setting the entire font
15079 * gtk/testtext.c (fill_example_buffer): Use "size" instead of
15080 setting entire font
15082 * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
15084 * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
15085 a bunch of individually-settable font attributes. You can still
15086 use the "font" and "font_desc" args, they just set all the font
15087 attributes at once.
15089 2000-11-13 Elliot Lee <sopwith@redhat.com>
15091 * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
15093 Mon Nov 13 14:29:32 2000 Jonathan Blandford <jrb@redhat.com>
15095 * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
15096 * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
15098 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
15101 2000-11-13 Havoc Pennington <hp@redhat.com>
15103 * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of
15106 * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
15109 * gtk/testtext.c: Test pixels above/below/inside paragraphs
15112 * gtk/gtktextview.c: Implement object args and setters/getters for
15113 all the aspects of the GtkTextAttributes that are not set from
15114 GtkWidget attributes. This is spacing, justification, margins,
15117 (gtk_text_view_set_arg)
15118 (gtk_text_view_get_arg): implement get/set for editable, wrap mode
15120 (gtk_text_view_class_init): Add args for justify, left_margin,
15121 right_margin, indent, and tabs
15124 * gtk/gtktextlayout.c (set_para_values): fix to display indent
15127 * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute,
15128 replace with indent attribute
15130 * gtk/gtktextlayout.c (set_para_values): multiply indent by
15133 * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
15134 rearranging code to do that
15135 (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
15136 i.e. don't subtract the top_margin first, just to keep
15137 all margin-futzing in one place.
15139 * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
15141 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
15142 special case of last line, Pango now handles this itself.
15143 (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the
15145 (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
15146 (find_display_line_above): wasn't moving the byte index as it
15147 iterated over lines, so always returned byte 0. Also, port to use
15149 (find_display_line_below): same problem as
15150 find_display_line_above. Also, port to use PangoLayoutIter.
15152 2000-11-13 Alexander Larsson <alexl@redhat.com>
15154 * gdk/linux-fb/*.[ch]:
15155 Massive reindent to gtk+ standard. My hands hurt.
15157 * gdk/linux-fb/gdkcolor-fb.c:
15158 Move GdkColorPrivateFB from inherited to windowing_data
15160 * gdk/linux-fb/gdkcursor-fb.c:
15161 _gdk_cursor_new_from_pixmap made static
15163 * gdk/linux-fb/gdkdnd-fb.c:
15164 GdkDragContextPrivate moved to windowing_data
15166 * gdk/linux-fb/gdkdrawable-fb2.c:
15167 Removed endian.h, use glib endianness macros instead
15168 Some cleanups in the usage of GDK_DRAWABLE_FBDATA
15169 and GDK_DRAWABLE_IMPL_FBDATA
15171 * gdk/linux-fb/gdkfont-fb.c:
15172 Add empty gdk_font_load(). Needed for linking of Gtk+.
15174 * gdk/linux-fb/gdkimage-fb.c:
15175 Removed endian.h, use glib endianness macros instead
15176 Moved GdkImagePrivateFB to windowing_data
15177 gdk_image_new_bitmap didn't always allocate enough
15180 * gdk/linux-fb/gdkinput-ps2.c:
15181 Added semi-working support for MS serial mice.
15183 * gdk/linux-fb/gdkprivate-fb.h:
15184 s/GdkWindowPrivate/GdkWindowObject/
15185 Removed GdkWindowPrivate typedef
15186 s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
15187 Removed GDK_DRAWABLE_P
15188 Move GdkColorPrivateFB from inherited to windowing_data
15189 Moved GdkImagePrivateFB to windowing_data
15191 * gdk/linux-fb/gdkvisual-fb.c:
15192 Removed some unused debug code.
15194 * gdk/linux-fb/gdkwindow-fb.c:
15195 Use stock cursors instead of including X headers.
15196 s/GdkWindowPrivate/GdkWindowObject/
15198 * gdk/linux-fb/mitypes.h:
15199 Removed unused types.
15201 * modules/linux-fb/basic.c:
15202 Use the pango fribidi wrappers.
15204 2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
15206 * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
15207 gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
15208 gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
15209 gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
15210 GEqualFunc where applicable.
15212 * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
15213 pango_font_description_equal as changed in pango.
15215 * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
15217 * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
15219 * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
15221 * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
15223 * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
15225 * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
15227 * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
15228 gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
15230 * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
15231 gtk_rc_styles_compare -> gtk_rc_styles_equal.
15233 2000-11-12 Havoc Pennington <hp@pobox.com>
15235 * demos/gtk-demo/Makefile.am (democodedir): change demo install
15236 dir to datadir/gtk+-2.0/demo
15238 * demos/gtk-demo/textview.c: Text widget demo; reveals all
15239 sorts of text widget and Pango font bugs. Urgh.
15241 * demos/gtk-demo/Makefile.am (demos): Add textview.c
15243 * demos/gtk-demo/main.c (create_tree): Add instructions at top of
15244 tree that you should double click to see the demo. Fix
15245 types of variables to reflect changed return values from
15246 GtkTreeStore and GtkTreeViewColumn constructors.
15248 * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
15249 newly-created buffer to prepare for GObject semantics
15251 * gtk/testtext.c: don't leak the buffer with GObject semantics
15253 * gtk/testtextbuffer.c: ditto
15255 2000-11-12 Havoc Pennington <hp@pobox.com>
15257 Rename this testgtk to gtk-demo to avoid confusion, and
15258 install it so people can use it as a supplement to
15261 * demos/gtk-demo: Moved from demos/testgtk
15263 * demos/testgtk: Removed
15265 * configure.in: make Makefile in gtk-demo
15267 * demos/gtk-demo/Makefile.am: Install sample source to
15268 datadir/gtk-demo (maybe there's a better place?), and
15269 rename the binary to gtk-demo
15271 * demos/gtk-demo/main.c (load_file): Load installed sample
15272 source if source isn't found in pwd.
15274 2000-11-09 Havoc Pennington <hp@pobox.com>
15276 * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char"
15277 argument to set the char displayed when visibility == FALSE
15278 (gtk_entry_create_layout): If !entry->visible, replace
15279 all chars with the "invisible char"
15281 * gtk/testgtk.c: Test the invisible_char deal
15283 Mon Nov 13 02:16:33 2000 Robert Brady <robert@suse.co.uk>
15285 * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
15286 can't get a native font in the right encoding.
15288 Mon Nov 13 00:09:29 2000 Robert Brady <robert@suse.co.uk>
15290 * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
15293 Sun Nov 12 19:11:42 2000 Owen Taylor <otaylor@redhat.com>
15295 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
15296 Fix warning when moving between paragraphs.
15298 * gtk/gtkentry.[ch]: Change move => move_cursor,
15299 delete => delete_from_cursor, insert => insert_at_cursor
15301 Sun Nov 12 22:52:51 2000 Robert Brady <robert@suse.co.uk>
15303 * modules/input/imviqr.c: A vietnamese VIQR-based input method.
15305 * modules/input/imthai-broken.c: A Thai input method for use if
15306 Thai keys are really generating Latin1 keysyms.
15308 * modules/input/Makefile.am: Build these.
15310 Sun Nov 12 22:15:35 2000 Robert Brady <robert@suse.co.uk>
15312 * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
15313 g_filename_{to,from}_utf8 now takes an extra parameter.
15315 * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
15316 strftime into UTF-8.
15318 (column_from_x, gtk_calendar_paint_day_names): Support RTL
15321 (gtk_calendar_paint_day_names): Draw day names in the right
15324 Sun Nov 12 14:10:09 2000 Owen Taylor <otaylor@redhat.com>
15326 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
15327 problem with using result of g_get_charset() backwards -
15328 pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
15330 * gtk/gtkwindow.c (gtk_window_compute_hints): Support
15331 negative min_width/height and max_width/height to
15332 mean "requisition"; this allows setting a window
15333 to be user-resizable in only one direction easily.
15335 * gtk/testgtk.c (create_main_window): Remove hard-coded
15336 usize - set a default size in the vertical direction.
15338 Sun Nov 12 13:33:01 2000 Owen Taylor <otaylor@redhat.com>
15340 * gtk/gtkrange.c: Add some missing casts. Support
15341 2 and 3 button clicks on the arrows to mean
15342 "move by pages" and "jump to end". (Like gtkspinbutton)
15344 2000-11-12 Hans Breuer <Hans@Breuer.Org>
15346 * gdk/win32/makefile.msc : reflect build module changes
15348 * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
15349 from GdkPixmap*, cast implementation member instead.
15351 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
15352 passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src
15353 maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
15354 more Gdi functions return value checking.
15355 (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
15356 GdkImagePrivateWin32 *.
15358 * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
15359 menus useable again. Add #pragma message to keep reminded on this issue.
15360 (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
15361 windows. This allows to enable backing store on Win32!
15363 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
15364 in drawable is of impl type. Correct specific type checks appropriate.
15366 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check
15367 GDK_WINDOW_DESTROYED before allocating new resources.
15369 * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
15371 * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
15372 (gdk_window_foreign_new) initialize parent handle.
15373 (gdk_window_destroy_notify) add GDK_IS_WINDOW check
15375 * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
15376 Let the GDI invalidate the window on MoveWindow call to fix scrolling
15377 problems (e.g. main buttons in testgtk).
15379 Sat Nov 11 23:07:30 2000 Owen Taylor <otaylor@redhat.com>
15381 * gtk/gtkentry.c (gtk_entry_key_press): Call
15382 gtk_widget_activate for GDK_Return.
15384 * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
15385 of preedit cursor position.
15387 Sun Nov 5 04:24:53 2000 Owen Taylor <otaylor@redhat.com>
15389 * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
15392 Tue Sep 19 10:54:22 2000 Owen Taylor <otaylor@redhat.com>
15394 * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
15395 out support for multiple locales; that simple doesn't
15396 work reliably with current Xlib
15398 * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
15399 gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
15400 Add support for positioning the cursor within the preedit string.
15402 Mon Sep 18 23:56:32 2000 Owen Taylor <otaylor@redhat.com>
15404 * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
15405 at XIM input method module.
15407 * gtk/gtktextview.c: Check for bindings after passing
15408 events to im context filter.
15410 Mon Sep 18 11:50:51 2000 Owen Taylor <otaylor@redhat.com>
15412 * gtk/gtktextlayout.c (add_preedit_attrs): Handle
15413 empty attribute lists properly.
15415 Sun Sep 17 10:08:16 2000 Owen Taylor <otaylor@redhat.com>
15417 * gtk/queryimmodules.c (main): Return non-zero exit
15418 status if errors were encountered querying any
15421 * modules/input/Makefile.am (moduledir): remove
15422 leftover bin program target.
15424 * docs/make-todo: Fix typo in error message.
15426 Sat Sep 16 14:04:30 2000 Owen Taylor <otaylor@redhat.com>
15428 * configure.in: Add modules/input/Makefile
15430 Sat Sep 16 14:01:52 2000 Owen Taylor <otaylor@redhat.com>
15432 * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
15433 don't include gtkthemes.h.
15435 * gtk/testgtk.c gtk/testtext.c: Set environment variables
15438 * gtk/Makefile.am: Add new .c and .h files, build
15439 gtk-query-immodules and use it to create a gtk.immodules
15440 file for use of test programs.
15442 * gtk/gtkpreview.c: remove extra blank line.
15444 Sat Sep 16 13:21:04 2000 Owen Taylor <otaylor@redhat.com>
15446 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
15447 Add the ability to add extra tables beyond the default
15448 one, and also the ability to have compose sequences
15449 that are prefixes of other compose sequences.
15451 * gtk/gtkimcontextsimple.c: Export a preedit string which
15452 consists of possible candidates for keystrokes that have
15453 been entered but not yet committed.
15455 * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
15456 gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
15458 * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
15459 Add a function to add input-method switching menu items
15462 * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
15463 when switching input methods.
15465 * gtk/gtkimcontextsimple.[ch]: Change the format of
15466 the compose table to allow compose tables of different
15467 lengths / sequence.
15469 Sat Sep 16 13:05:48 2000 Owen Taylor <otaylor@redhat.com>
15471 * gtk/gtkimmodule.[ch]: Support routines for loading
15472 GtkIMContext implementations dynamically at runtime.
15474 * modules/input/imcyrillic-translit.c: A sample input
15475 method (based on GtkIMContextSimple with an extra table),
15476 which demonstrates preedit strings and the module
15477 system for input modules
15479 * gtk/queryimmodules.c: Program to query the available
15480 input modules and write the results into a file.
15482 * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
15483 extra config options "im_module_file" (cache file for
15484 input method modules), and "im_module_path" - path
15485 to look for modules when generating cache file.
15487 This doesn't scale.
15489 Sat Sep 16 13:09:06 2000 Owen Taylor <otaylor@redhat.com>
15491 * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
15492 generic code from gtkthemes into a new abstraction
15493 GtkModule which has the logic for implementing
15494 a loadable module which implements a number of
15497 Sat Sep 16 13:07:13 2000 Owen Taylor <otaylor@redhat.com>
15499 * gtk/gtkeditable.[ch]: Convert GtkEditable from
15500 a class into an interface
15502 * gtk/gtkoldeditable.[ch]: Move the old editable
15503 implementation into here, so legacy widgets can
15504 still rely on the implemenation. GtkOldEditable
15505 exports GtkEditable. Make selection handling
15506 code use new text conversion functions (and
15507 handle UTF-8 as a side-effect). Use GtkClipboard
15510 * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
15511 Adopt to match above changes.
15513 * gtk/gtkentry.[ch]: Implement GtkEditable directly,
15514 avoid GtkOldEditable implementation. Restructure
15515 to reduce number of places that modify state directly.
15516 Move to GtkBindingSet. Display the preedit string.
15517 Queue recomputation of PangoLayout and scroll position
15518 to improve effiency of doing complex changes naively.
15519 Add a menu with cut/copy/paste and input method selection.
15521 Thu Sep 14 22:11:05 2000 Owen Taylor <otaylor@redhat.com>
15523 * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
15524 to set preedit string and attributes; display preedit string by
15525 inserting string and attributes at cursor when creating the
15526 GtkTextLineDisplay.
15528 * gtk/gtktextlayout.c: Move all conversions between byte
15529 positions in PangoLayout and GtkTextIter into new functions
15530 line_display_iter_to_index/index_to_iter that properly
15531 handle the preedit string.
15533 * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
15534 it to return const char * (eventually will end up
15535 as GCONST char *, most likely.)
15537 * gtk/gtktextview.[ch]: Handle the preedit string, call
15538 gtk_im_context_reset() as necessary, add a menu to switch
15541 * gtk/gtktextlayout.[ch]: Remove useless
15542 gtk_text_layout_get_log_attrs() function.
15544 2000-11-11 Tor Lillqvist <tml@iki.fi>
15547 * gtk/gtk.def: Update.
15549 * gdk/win32/*.c: Add last argument to g_type_register_static()
15552 * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
15554 * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
15555 generated by older wheel mouse drivers. Get the correct y
15556 coordinate from WM_MOUSEWHEEL messages.
15558 * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
15559 gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
15560 gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
15561 Debugging functions.
15563 * gdk/win32/gdkprivate-win32.h: Declare them.
15565 * gdk/win32/gdkinput-win32.h: Add declaration for
15566 gdk_input_window_destroy().
15568 * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
15570 Fri Nov 10 19:06:41 2000 Jonathan Blandford <jrb@redhat.com>
15572 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
15573 function to help handle keeping things in sync.
15575 Fri Nov 10 12:10:34 2000 Jonathan Blandford <jrb@redhat.com>
15577 * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
15580 * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
15581 (gtk_list_store_class_init): use the new BOXED marshallers.
15583 * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
15584 new_with_values to new_with_types.
15585 (gtk_tree_store_get_column_type): add this.
15586 (gtk_tree_store_class_init): use the new BOXED marshallers.
15588 * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
15589 mirror some POINTER marshallers.
15591 Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com>
15593 * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
15594 allow more interesting iterators. Also, made the lifecycle of
15595 iterators more explicit.
15597 * gtk/gtktreemodelsort.[ch]: New model for sorting.
15599 * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
15602 2000-11-09 Alexander Larsson <alexl@redhat.com>
15604 * demos/testgtk/menus.c:
15605 Changes to make the new testgtk compile after
15606 gtk_menu_append was removed.
15608 * gdk/linux-fb/gdkdrawable-fb2.c
15609 (gdk_fb_get_depth, gdk_fb_get_visual,
15610 gdk_drawable_impl_fb_class_init): Implement
15611 these drawable functions. Now GtkImages work again.
15613 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
15615 * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
15617 * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
15618 gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
15619 Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
15620 GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
15622 2000-11-08 Havoc Pennington <hp@pobox.com>
15624 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
15625 visible_set args, don't know where these had gone, I thought they
15628 * gtk/testtext.c: Add a menu item to apply invisibility tag;
15629 now we can test the feature and see that it's totally broken.
15631 2000-11-08 Havoc Pennington <hp@pobox.com>
15633 Make DND copy pixbufs and tags when source and target share a
15636 * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
15637 in-process GTK_TEXT_BUFFER_CONTENTS target
15638 (gtk_text_view_drag_data_received): Paste from
15639 GTK_TEXT_BUFFER_CONTENTS if we receive it.
15641 2000-11-08 Alexander Larsson <alexl@redhat.com>
15643 * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
15646 * gtk/gtkmenu.c: Add support for scrolling menus.
15647 Remove gtk_menu_append/prepend/insert, these have been moved to
15648 gtkcompat.h as #defines.
15650 * gtk/gtkcompat.h.in:
15651 Add compatibility #defines for gtk_menu_append/prepend/insert
15653 * gtk/gtkmenu.h: Add data needed for scrolling menus.
15654 GtkMenuPositionFunc gets an extra argument push_in.
15655 gtk_menu_append/prepend/insert removed.
15657 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
15658 positioning behaviour to fit to scrolling menus.
15660 * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
15661 into menuitem->submeny. That is wrong, and broke torn
15662 off submenus of torn off menus, since they were unrealized
15663 when the first menu was unrealized.
15665 * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
15666 gtk_menu_shell_select_item() since these need to be overridden in
15669 * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
15670 positioning behaviour to fit to scrolling menus.
15671 (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
15672 the current item so that it is prelighted when the menu pops up.
15673 This is a workaround to the fact that the menu doesn't get the
15674 initial enter event (due to grabs).
15676 * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
15677 s/gtk_menu_append/gtk_menu_shell_append/
15679 * gtk/gtknotebook.c:
15680 s/gtk_menu_insert/gtk_menu_shell_insert/
15682 * gtk/testgtk.c (create_menu, create_menus):
15683 Create the first menu with 50 items so that menu scrolling
15687 Patch from Jonathan Blandford <jrb@redhat.com>
15689 * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
15690 system to handle size requests. First, we ask what the size of
15691 the toggle is. Then, when allocating the size, we allocate the
15692 toggle_size first. This way we can have multiple menu-item
15693 classes w/o needing a seperate class for each.
15695 * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
15696 * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
15698 * gtk/gtkcheckmenuitem.c
15699 (gtk_check_menu_item_toggle_size_request): New function to handle
15700 the toggle size-request.
15702 2000-11-07 Havoc Pennington <hp@redhat.com>
15704 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
15705 Half-ass somewhat fix this function, so that scrolling to the
15706 insertion point works. Pango hacking is in the future to really
15709 * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
15710 length of data, no longer used.
15712 * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
15713 method contents in here, get rid of destroy method
15714 (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
15715 that were backward. Remove debug spew.
15716 (cut_or_copy): Make the clipboard work with insert_range to
15717 preserve tags and pixbufs, not just the primary selection.
15719 2000-11-07 Havoc Pennington <hp@redhat.com>
15721 * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename
15722 to gtk_text_mark_get_visible
15724 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
15725 bug that was generating an invalid iterator
15727 * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
15728 ensure_char_offsets() in front of code placing the iter in an
15731 * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
15732 make override_location arg const
15733 (paste): Replace the selection if we paste into the
15736 * gtk/gtkselection.h: Remove "GtkSelectioData"
15737 (struct _GtkSelectionData): move the definition here.
15739 * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
15740 Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
15742 * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
15744 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
15745 (gtk_text_buffer_insert_range_interactive): implement
15746 (gtk_text_buffer_get_tags): Remove, replaced by
15747 gtk_text_iter_get_tags()
15749 * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
15750 limit parameter, to avoid infinite linear scan.
15751 (gtk_text_iter_backward_search): Add search limit
15752 (gtk_text_iter_forward_find_char): Add search limit
15753 (gtk_text_iter_backward_find_char): Add search limit
15755 2000-11-07 Alexander Larsson <alla@lysator.liu.se>
15757 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
15758 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
15759 gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
15760 gdk/linux-fb/gdkwindow-fb.c:
15761 use g_object_new() instead of g_type_create_instance() which
15762 is a private function for fundamental type implementations.
15764 * gdk/linux-fb/gdkinput-ps2.c:
15765 Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
15766 instead just store the current modifier state. Add a (somewhat broken)
15767 keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
15768 Rename exported function gdk_input_ps2_get_mouseinfo to
15769 gdk_input_get_mouseinfo.
15771 * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
15772 gdk/linux-fb/gdkwindow-fb.c:
15773 gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
15776 2000-11-02 Havoc Pennington <hp@redhat.com>
15778 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
15779 use stock buttons. Should be 100% source compatible, appropriate
15780 filesel fields now point to dialog->vbox and dialog->action_area.
15781 On the bizarre side, dialog->action_area and filesel->action_area
15782 are not the same widget.
15783 (gtk_file_selection_init): Put some padding around the selection
15784 entry, so it isn't touching the GtkDialog separator.
15786 * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
15787 use stock buttons, etc. Should also be source compatible.
15788 Set the dialog default title in _init not _new().
15790 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
15791 Use stock buttons; don't put a button box inside the existing
15792 dialog button box. Don't bother with push/pop colormap anymore.
15794 * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
15795 specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
15796 for message dialog, and necessary for the font selection and color
15797 selection with help and apply buttons.
15799 * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
15800 to the created button widget. Set GTK_CAN_DEFAULT on the button.
15801 (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
15802 between buttons, put less padding around the action area.
15803 (gtk_dialog_run): Exit on unmap rather than on destroy.
15804 This will also exit the loop if the widget is hidden.
15805 (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
15806 instead of GTK_RESPONSE_NONE; since we're already adding a bunch
15807 of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
15808 special-case delete event.
15810 * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
15813 Sun Nov 5 05:32:39 2000 Tim Janik <timj@gtk.org>
15815 * gtk/testgtk.c (uposition_stop_configure): provide a toggle
15816 button to temporarily disable position recording in the
15817 "saved position" test.
15819 Sat Nov 4 05:37:17 2000 Tim Janik <timj@gtk.org>
15821 * gtk/gtkthemes.c: added compat code that temporarily implements
15822 GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
15823 going to be revamped by owen's upcoming GtkModule patches, but
15824 untill then people want gtk to build, right? ;)
15826 2000-11-04 Havoc Pennington <hp@pobox.com>
15828 * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
15831 * docs/Changes-2.0.txt: Add note about
15832 gtk_container_get_toplevels()
15834 * gtk/gtktextview.h: formatting
15836 * gtk/gtktextview.c: don't start descriptions with "Returns",
15839 Sat Nov 4 10:12:27 2000 Owen Taylor <otaylor@redhat.com>
15841 * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
15842 look for glib-2.0.m4 not glib.m4. (Ali Abdin)
15844 2000-11-03 Havoc Pennington <hp@redhat.com>
15846 * gtk/gtktexttagtable.c: Docs
15847 (gtk_text_tag_table_size): return a signed int
15849 * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
15850 (gtk_text_tag_event): make the event_object a GObject
15852 * gtk/gtktextview.c: Write API docs for all functions.
15854 * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
15855 for gtk_text_view_get_window_type() called on one of the private
15858 * gtk/gtktextview.c: Instead of accessing text_view->buffer
15859 directly, call get_buffer() which demand-creates a default
15860 buffer. So gtk_text_view_new() can be used to create a view with a
15861 default buffer in it, if you just want an empty text box users can
15862 put data in. Useful for GUI builders also.
15864 2000-11-03 Pablo Saratxaga <pablo@mandrakesoft.com>
15866 * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
15867 the charset encodign portion MUST be in lowercase.
15868 * gtk/gtkrc.az: added file for Azeri language
15870 2000-11-03 Havoc Pennington <hp@redhat.com>
15872 Get widgets working on the btree/buffer side. Display of them
15873 still doesn't work.
15875 * gtk/gtktextview.c: start implementing child widget stuff
15877 * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
15879 * gtk/gtktextlayout.c: handle embedded widgets
15881 * gtk/gtktextdisplay.c: handle embedded widgets
15883 * gtk/gtktextchild.c: Implement all the child anchor goo
15885 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
15888 * gtk/gtktextbtree.c: Add child anchor table to the btree struct
15889 (insert_pixbuf_or_widget_segment): abstract out common portions of
15890 creating a child anchor or a pixbuf segment.
15891 (gtk_text_btree_create_child_anchor): new function
15892 (gtk_text_btree_unregister_child_anchor): new function
15894 * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
15895 allocate_child signal on GtkTextLayout
15897 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
15899 (gtk_text_iter_get_child_anchor): new function
15901 * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
15902 default handler for the changed signal, which calls
15903 gtk_text_buffer_set_modified(), instead of just always emitting
15904 changed then calling set_modified() manually. I guess this is
15905 maybe more flexible. It seems logical.
15907 Fri Nov 3 08:58:38 2000 Tim Janik <timj@gtk.org>
15909 * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
15912 * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
15914 Thu Nov 2 14:10:51 2000 Owen Taylor <otaylor@redhat.com>
15916 * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
15917 been marked static.
15919 2000-11-02 Havoc Pennington <hp@redhat.com>
15921 * gtk/testgtk.c (create_labels): had a test backward
15923 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
15924 fields, so the dest GC ends up with the correct clip origin,
15925 etc. Fixes a bug where colored labels didn't redraw
15928 2000-11-02 Alexander Larsson <alexl@redhat.com>
15930 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
15931 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
15932 gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
15933 Add last argument to t_type_register_static call.
15935 * gdk/linux-fb/gdkdrawable-fb2.c:
15936 Add last argument to t_type_register_static call.
15937 export the get_image drawable virtual function.
15939 * gdk/linux-fb/gdkimage-fb.c:
15940 Add last argument to t_type_register_static call.
15941 rename gtk_image_get to _gdk_fb_get_image and
15942 export it for use by gdkdrawable-fb2.
15944 * gdk/linux-fb/gdkprivate-fb.h:
15945 export _gdk_fb_get_image.
15947 * gdk/linux-fb/gdkselection-fb.c:
15948 Add new api call stubs.
15951 Missing ( in linux-fb part.
15953 * modules/linux-fb/Makefile.am:
15954 Must link with gdk_pixbuf or get unresolved symbol.
15956 2000-11-01 Havoc Pennington <hp@pobox.com>
15958 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use
15959 GTK_TYPE_TEXT_ITER and BOXED marshallers
15961 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
15963 * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
15965 * gtk/gtk-boxed.defs: add GtkTextIter
15967 * gtk/gtkmarshal.list: Add marshallers for text widget that
15968 properly use OBJECT and BOXED
15970 2000-11-01 Havoc Pennington <hp@redhat.com>
15972 * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
15974 * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
15975 before returning it.
15977 2000-11-01 Havoc Pennington <hp@redhat.com>
15979 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
15980 Clip the rectangle to be rendered to the drawable, since
15981 get_from_drawable() requires a region within the drawable
15983 2000-11-01 Havoc Pennington <hp@redhat.com>
15985 * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
15988 Wed Oct 25 20:10:57 2000 Owen Taylor <otaylor@redhat.com>
15990 * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
15993 2000-11-01 Havoc Pennington <hp@pobox.com>
15995 * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
15997 (gtk_label_finalize): unref the attr list if any.
15999 * gtk/testgtk.c (create_get_image): close test on second click
16000 (make_message_dialog): close dialog if it exists
16002 * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
16004 * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
16007 * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
16008 from Pango markup format
16009 (gtk_label_set_markup_with_accel): ditto but with accelerator
16012 * gtk/gtkimage.c (gtk_image_expose): reformatting.
16014 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
16015 reflect current state of GDK - use gdk_drawable_get_colormap, etc.
16016 Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to
16017 call gdk_window_get_origin().
16019 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16020 implement GDK_PIXBUF_ALPHA_FULL
16022 Wed Nov 1 03:43:42 2000 Tim Janik <timj@gtk.org>
16024 * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
16025 g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
16026 g_signal_handlers_disconnect_matched to block/unblock and disconnect
16027 multiple handlers respectively, instead of only treating the
16028 first handler found (bug reported by owen).
16030 Mon Oct 30 19:23:50 2000 Jonathan Blandford <jrb@redhat.com>
16032 * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
16034 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
16036 * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
16037 gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
16038 gtk/gtktreeviewcolumn.h: Fixed inline docs.
16040 * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
16041 widget. Needs writing someday.
16043 * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
16046 2000-10-30 Havoc Pennington <hp@redhat.com>
16048 * gtk/gtktextview.h, gtk/gtktextview.c:
16049 Rename delete_at_cursor delete_from_cursor, and
16050 move to move_cursor.
16052 2000-10-30 Havoc Pennington <hp@redhat.com>
16054 * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
16055 gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
16056 gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
16057 gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
16058 gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
16059 gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
16060 gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
16061 gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
16062 gtktexttypes.h, gtktextview.c, gtktextview.h:
16064 Massive reindentation and reformatting. Arg alignment and comments
16065 still need fixing in various places.
16067 2000-10-30 Havoc Pennington <hp@redhat.com>
16069 * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
16070 to be named insert_at_cursor and delete_at_cursor so C++ can
16073 2000-10-28 Tor Lillqvist <tml@iki.fi>
16075 * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
16076 to get a double directory separator in case the home directory
16077 ends with one. This would cause trouble especially on Windows,
16078 where the path will be confused with the syntax for an an UNC
16079 (network share) path \\server\share\path.
16080 (gtk_rc_add_initial_default_files): Ditto.
16082 Sat Oct 28 02:33:09 2000 Robert Brady <robert@suse.co.uk>
16084 * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
16086 * gtk/gtktextview.c: Use correct marshallers.
16088 Fri Oct 27 17:56:26 2000 Jonathan Blandford <jrb@redhat.com>
16090 * gtk/gtkliststore.c: Not sure how this ever worked. Fixed it to
16091 use new iter stuff, and added all the appropriate signals et al.
16093 * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
16094 code is internal to gtk only.
16096 2000-10-28 Tor Lillqvist <tml@iki.fi>
16099 * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
16100 glib-genmarshal etc.
16102 Fri Oct 27 20:15:00 2000 Tim Janik <timj@gtk.org>
16104 * gtk/Makefile.am: added dependancies for testtextbuffer which broke
16107 Fri Oct 27 18:51:44 2000 Tim Janik <timj@gtk.org>
16109 * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
16111 2000-10-27 Robert Brady <robert@suse.co.uk>
16113 * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic),
16114 en_GB (British), ia (Interlingua).
16116 2000-10-26 Havoc Pennington <hp@redhat.com>
16118 * gtk/gtktextiter.c (my_strrstr): fix constness warning
16121 nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
16123 * gtk/gtktextsegment.c (char_segment_new): rename
16124 (_char_segment_new_from_two_strings): rename
16125 (_toggle_segment_new): rename
16127 * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
16128 (make_clipboard_widget): make it static
16129 (text_get_func): static
16130 (text_clear_func): static
16132 * gtk/gtkcolorsel.c (adjustment_changed): make this function
16134 (hex_changed): make it static
16135 (hsv_changed): make it static
16136 (opacity_entry_changed): make it static
16138 * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
16139 (toggle_segment_check_func): rename with _gtk
16141 * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
16142 (_widget_segment_new): rename
16143 (_widget_segment_add): rename
16144 (_widget_segment_remove): rename
16145 (_widget_segment_ref): rename
16146 (_widget_segment_unref): rename
16148 * gtk/gtktextmark.c (_mark_segment_new): Rename
16149 _gtk_mark_segment_new
16151 2000-10-26 Havoc Pennington <hp@redhat.com>
16153 * gtk/gtkmarshal.list: add new marshallers used by the text widget
16154 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
16157 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
16160 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
16161 gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
16162 license on these files.
16164 * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
16167 * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to
16168 runtime random number different for each tree, instead of
16169 a constant I made up.
16171 Thu Oct 26 07:36:16 2000 Tim Janik <timj@gtk.org>
16173 * gtk/Makefile.am: buncha cleanups, kludged build sources
16174 dependencies with a Makefile: oldest-source-stamp dependancy
16175 for the moment. automake is really fighting us here, with
16176 intentionally not allowing user-defined rules or dependancies
16177 prior to it's -include $(DEP_FILES) statement. sucks rocks!
16179 * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
16180 to public headers. tehy have a comment stating that they are
16181 "semi-public" aren't included by gtk.h and if enums popup there,
16182 they can be /*< skip >*/-ed.
16184 * gtk/gtktextlayout.h:
16185 * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
16186 added LGPL... <SIGH>
16188 Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com>
16190 * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
16191 GtkTreeIter. Added iterators everywhere.
16193 * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
16195 * gtk/gtktreeviewselection.c: Changed to use the iterators.
16197 * gtk/gtktreestore.c: Changed to use the iterators.
16199 * gtk/gtkliststore.c: Commented out the code. Will convert to
16200 iterators tomorrow.
16202 * gtk/gtkmodelsimple.c: Commented out the code. Will convert to
16203 iterators tomorrow.
16205 * gtk/treestoretest.c: Changed to use iterators.
16207 * demos/testgtk/main.c: Moved to use the new iterator system.
16209 Thu Oct 26 02:10:32 2000 Tim Janik <timj@gtk.org>
16211 * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
16212 localization misbehaviour.
16214 * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
16215 a useless type without copy/free.
16217 * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
16218 of GTK_TYPE_CTREE_NODE.
16220 Thu Oct 26 00:51:52 2000 Tim Janik <timj@gtk.org>
16223 (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
16226 * gtk/gtk-boxed.defs (GtkSelectionData): specify
16227 gtk_selection_data_copy and gtk_selection_data_free
16228 do GtkSelectionData work as params in signals.
16230 Wed Oct 25 20:47:41 2000 Tim Janik <timj@gtk.org>
16232 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
16233 implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
16234 couldn't they at least give it a non-standard name?
16236 * gtk/gtktextlayout.c: arg! yet another implementation of
16237 gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
16239 * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
16240 gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
16241 home. now i know this _is_ a conspiracy.
16243 * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
16246 * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
16247 (gtk_accel_group_create_add): marshaller signature fixups.
16249 * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
16250 pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
16252 * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
16255 Tue Oct 24 23:59:21 2000 Tim Janik <timj@gtk.org>
16257 * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
16258 due to the signal system changes, it wouldn't build currently. to
16261 * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
16263 * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
16264 so it needs gtk_marshal_VOID__ENUM() instead of
16265 gtk_marshal_NONE__UINT().
16267 * gdk/gdk*.c: adapted type registration functions.
16269 * gtk/gtkbindings.c:
16270 * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
16273 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
16276 (gtk_object_destroy):
16277 (gtk_object_shutdown): fixed recursion guards. basically we have to
16278 catch the case where any of GObject.shutdown() or gtk_object_destroy()
16279 is called during ::destroy, and avoid recursion there.
16281 * gtk/gtktypeutils.c:
16282 * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
16283 boxed_copy/boxed_free. this needs a more general solution based on a
16284 publically installed code-generator utility.
16286 * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
16287 glib's gobject has support for that now.
16288 define GtkSignalMarshaller in terms of GSignalCMarshaller.
16290 Mon Oct 23 09:36:42 2000 Tim Janik <timj@gtk.org>
16292 * gtk/gtksignal.[hc]:
16293 * gtk/gtkmarshal.[hc]:
16294 * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
16295 compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
16296 removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
16299 * *.c: marshaller name fixups.
16301 * gtk/gtkmarshal.list: added a comment briefing the format.
16303 Sun Oct 22 23:14:39 2000 Tim Janik <timj@gtk.org>
16305 * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
16306 compatibility macros here now. more specifically, most of
16307 the API is preserved (yes, _most_, nonwithstanding the
16308 following exceptions listed, the API is stil lHUGE ;)
16309 things that got removed completely:
16310 GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
16311 gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
16312 gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
16313 gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
16314 gtk_signal_remove_emission_hook().
16315 non-functional functions variants:
16316 gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
16317 the GtkCallbackMarshal argument to gtk_signal_connect_full() is
16318 not supported anymore.
16319 (gtk_signal_compat_matched): new internal function to aid
16320 implementation of the compatibility macros, it provides
16321 functionality to block/unblock/disconnect handlers based
16324 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
16326 * *.c: adaptions to new type registration API signatures.
16328 Fri Oct 20 15:26:33 2000 Tim Janik <timj@gtk.org>
16330 * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
16332 2000-10-25 Robert Brady <robert@suse.co.uk>
16334 * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
16335 gdk_property_delete): If window == NULL, assume the root window.
16336 (restoring the behaviour that was in 1.2).
16338 * gtk/testtext.c (save_buffer): Allow creation of new files when
16341 (fill_file_buffer): Don't die if a UTF-8 sequence is split across
16344 2000-10-25 Tor Lillqvist <tml@iki.fi>
16346 * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
16348 * gdk/win32/gdkdrawable-win32.c
16349 * gdk/win32/gdkimage-win32.c
16350 * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
16353 * gdk/win32/gdkcc-win32.c
16354 * gdk/win32/gdkcolor-win32.c
16355 * gdk/win32/gdkfont-win32.c
16356 * gdk/win32/gdkinput-win32.c
16357 * gdk/win32/gdkmain-win32.c
16358 * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
16360 2000-10-24 Havoc Pennington <hp@redhat.com>
16362 * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
16363 it a static function
16365 * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
16366 redraw text when a tag is applied to it.
16368 * gtk/gtktexttag.c (gtk_text_tag_affects_size)
16369 (gtk_text_tag_affects_nonsize_appearance): private functions to
16370 see if a tag requires various kinds of redraw/layout to be queued
16373 * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
16375 * gtk/testtext.c (fill_example_buffer): Put the cursor
16376 at the start of the buffer, so search works by default
16378 * gtk/gtktextiter.c (lines_match): init match_start always
16380 * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
16381 function, get iter at a line + a byte index
16383 * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
16384 to set byte position within a line
16385 (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
16387 2000-10-23 Havoc Pennington <hp@redhat.com>
16389 * gtk/testtext.c: Re-enable the "find" dialog
16391 * gtk/testgtk.c: Add test for gdk_drawable_get_image
16393 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
16394 the arguments to gdk_draw_drawable were in the wrong order
16395 (gdk_window_paint_init_bg): This function was ignoring the
16396 init_region, instead of clipping to it, so the entire backing
16397 pixmap was cleared on every begin_paint()
16398 (gdk_window_begin_paint_region): Hmm, the same list-walking bug
16399 was in here again, the loop kept using the same GtkWindowPaint
16401 (gdk_window_begin_paint_region): Fix a bug where we had two
16402 x_offset instead of x_offset and y_offset
16404 * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
16405 before we get the image.
16406 (gdk_draw_drawable): get the composite before we draw the drawable.
16407 (gdk_drawable_real_get_composite_drawable): default
16408 get_composite_drawable implementation that returns the drawable
16411 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
16412 get_composite_drawable virtual function
16414 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
16417 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
16418 make this work if the source drawable is a GdkDrawableImplX11
16419 instead of a public drawable type. This is really broken; the
16420 problem is that GdkDrawable needs a virtual method get_xid(), but
16421 of course that doesn't work in practice. Enter RTTI.
16423 Also, improve mismatched depth message.
16425 * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
16428 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
16429 install _gdk_x11_get_image as our implementation of get_image
16431 * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
16432 _gdk_x11_get_image and export for use in gdkdrawable-x11.c
16434 * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
16435 gdk_drawable_get_image
16437 * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
16439 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
16442 * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
16443 trailing semicolon after for loop
16445 Mon Oct 23 12:07:57 2000 Owen Taylor <otaylor@redhat.com>
16447 * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
16448 where font_desc for widget's context lagged widget's font_desc by
16451 2000-10-22 Tor Lillqvist <tml@iki.fi>
16453 * gdk/win32/gdkgc-win32.c
16454 * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
16456 * gtk/makefile.mingw.in
16457 * gtk/gtk.def: Updates.
16459 * gtk/testgtk.c: sleep() is called _sleep in MS's C
16462 * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
16464 * gtk/makefile.msc: Remove
16466 * gtk/makefile.msc.in: New file, like makefile.mingw.in.
16468 * gtk/Makefile.am: Add it.
16470 * configure.in: Generate it.
16472 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
16473 * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
16474 something even if not implemented, to satisfy picky MSVC.
16476 Patches by Hans Breuer:
16478 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
16479 SetBkMode() and SetTextAlign() before calling
16480 pango_win32_render().
16482 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
16483 Set hcliprgn to NULL after destroying it.
16484 (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
16486 * gdk/win32/gdkgeometry-win32.c
16487 (_gdk_windowing_window_queue_antiexpose): More effective
16490 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
16491 depth as default, not the visual's.
16493 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
16494 against empty title.
16496 * gdk/win32/gdkprivate-win32.h: Define a helper macro,
16497 IMAGE_PRIVATE_DATA.
16499 * gdk/win32/gdkimage-win32.c: Use it.
16501 2000-10-22 Robert Brady <robert@suse.co.uk>
16503 * configure.in: Check for bind_textdomain_codeset
16505 * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset
16506 present, make use of it.
16508 Add a translatable string "default:LTR" which, if translated
16509 to "default:RTL", will cause the default direction to be
16512 * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget
16513 direction if marked as flippable.
16515 * gtk/gtkhscale.c: Mark widget as flippable.
16517 2000-10-04 Havoc Pennington <hp@redhat.com>
16519 * gtk/testgtk.c (create_buttons): create some stock buttons
16520 with the default accel group
16521 (create_image): test some new GtkImage features
16522 (make_message_dialog): test GtkMessageDialog
16523 (create_modal_window): fix someone's bizzarro indentation
16525 * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement
16526 GTK_WIN_POS_CENTER_ON_PARENT.
16527 Add "destroy with parent" setting, which means the window goes
16528 away with its transient parent.
16529 (gtk_window_get_default_accel_group): get the default accel group
16531 (gtk_window_set_destroy_with_parent): set/unset destroy with
16533 (gtk_window_read_rcfiles): invalidate icon set caches
16534 after reloading rcfiles
16536 * gtk/gtkenums.h (GtkWindowPosition): add
16537 GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog
16538 on its parent window when the dialog is mapped for the first time.
16540 * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add
16541 a simple message dialog class
16543 * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event
16544 handler to emit response signal, and maybe later it would
16545 honor a hide_on_delete flag - though that isn't there yet.
16546 Set border width on the vbox to 2, so we get some padding.
16547 Use a button box for the action area.
16548 (gtk_dialog_key_press): synthesize a delete event if Esc
16549 is pressed and the GtkWidget key press handler didn't
16550 handle the escape key.
16551 (gtk_dialog_new_with_buttons): new function creates a dialog
16552 with some default buttons in it.
16553 (gtk_dialog_add_action_widget): add an activatable widget
16554 as a button in the dialog - you can also add a non-activatable
16555 widget by accessing the action area directly.
16556 (gtk_dialog_add_button): add a simple button - stock ID or
16557 label - to the action area
16558 (gtk_dialog_response): emit response signal
16559 (gtk_dialog_run): block waiting for the dialog, return
16560 the response. Override normal delete_event behavior, so that
16561 delete_event does nothing inside gtk_dialog_run().
16563 * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
16564 emitted when an action widget is clicked or the dialog gets
16567 * gtk/gtk.h: add gtkmessagedialog.h
16569 * gtk/Makefile.am: add gtkmessagedialog.[hc]
16571 2000-10-18 Havoc Pennington <hp@redhat.com>
16573 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
16574 where any number of empty lines would get skipped
16576 * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
16579 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
16580 warning about invalid iterators (explain more thoroughly)
16581 (gtk_text_iter_in_region): rename gtk_text_iter_in_range
16583 * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
16586 * demos/*.c: Add error handling
16588 * gtk/gtktextbuffer.c: don't modify const iterators
16590 * gtk/gdk-pixbuf-loader.c: Add full error handling here
16592 * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
16595 * gtk/gtkiconfactory.c: Update to reflect addition of error
16596 handling to gdk-pixbuf loaders
16598 Wed Oct 18 11:14:05 2000 Owen Taylor <otaylor@redhat.com>
16600 * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
16601 move to new modularized testgtk.
16603 2000-10-17 Jonathan Blandford <jrb@redhat.com>
16605 * gtk/gtktreeview.c: Draw the arrows correctly.
16607 * gtk/gtktreemodel.c: Added user docs.
16609 * gtk/gtk.h: remove gtktreedatalist.h.
16611 * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
16612 parent when generating my type.
16614 * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
16615 POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
16617 2000-10-16 Jonathan Blandford <jrb@redhat.com>
16619 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
16620 GtkTreeModel from object to interface.
16622 2000-10-16 Havoc Pennington <hp@redhat.com>
16624 * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing
16627 2000-10-16 Jonathan Blandford <jrb@redhat.com>
16629 * gtk/gtktreeselection.c: Add API documentation to all public
16632 * gtk/gtktreeviewcolumn.c: Added API documentation to all public
16635 2000-10-15 Jonathan Blandford <jrb@redhat.com>
16637 * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
16638 proposed by Guy Harris <gharris@flashcom.net>. Also, added API
16639 docs to all public functions.
16641 * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
16642 gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
16643 gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
16644 gtk/gtktreemodel.h, gtk/gtktreeselection.c,
16645 gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
16648 2000-10-14 Robert Brady <robert@suse.co.uk>
16650 * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
16652 2000-10-12 Jonathan Blandford <jrb@redhat.com>
16654 * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
16655 values other then G_TYPE_STRING.
16656 * gtk/gtktreeselection.c: Minor commenting updates.
16657 * gtk/gtktreeview.c: Format updates.
16659 2000-10-09 Tor Lillqvist <tml@iki.fi>
16661 * README.win32: Update.
16663 * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
16664 lines that had been deleted by mistake (?).
16666 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
16667 also the case fg==white and bg==black (but still not randomly
16668 coloured cursors). Thanks to Wolfgang Sourdeau.
16670 * gdk/win32/*.c: Silence gcc -Wall.
16672 * gtk/gtk.def: Add missing entry points.
16674 Fixes by Hans Breuer:
16677 * gdk/win32/makefile.msc: Update.
16679 * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
16680 some MSVC thing, presumably), cause breakpoint on failures. Add
16681 GDK_NOR case. Call g_log_set_always_fatal.
16683 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
16684 should be pased by reference.
16686 * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
16688 * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
16690 * gdk/win32/gdkevents-win32.c
16691 * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
16693 * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
16694 implementation object.
16696 * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
16699 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
16700 Use the wrapper object.
16702 2000-10-06 Havoc Pennington <hp@redhat.com>
16704 * Makefile.am (SRC_SUBDIRS): contrib subdir
16706 * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
16707 so it can be used in Xlib version
16709 * demos/testpixbuf.c (update_timeout): error checking from 1.0
16712 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
16713 change from 1.0 tree that returns first frame of animation
16714 if the loaded file is an animation.
16716 * contrib: add new directory to hold stuff that comes with GTK+
16717 but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
16719 * configure.in: add contrib/*
16721 2000-10-05 Havoc Pennington <hp@redhat.com>
16723 * demos/testpixbuf-save.c: add pixbuf save test
16725 * demos/Makefile.am: add testpixbuf-save.c
16727 2000-10-05 Jonathan Blandford <jrb@redhat.com>
16729 * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
16730 GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
16731 * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
16732 * gtk/gtktreeselection.[ch]: Replaced
16733 "node_selected"/"node_unselected" signal with "selection_changed"
16736 2000-10-04 Jonathan Blandford <jrb@redhat.com>
16738 * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
16741 2000-10-04 Jonathan Blandford <jrb@redhat.com>
16743 * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
16746 Wed Oct 4 15:52:15 2000 Owen Taylor <otaylor@redhat.com>
16748 * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
16749 Move list pointer forwards before removing item from
16750 list. (Crash reported by Salmaso Raffaele)
16752 * gdk/gdkwindow.h: Remove spurious trailing ,
16754 * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
16755 dependencies on uninstalled libraries, sorry folks.
16757 2000-10-04 Havoc Pennington <hp@redhat.com>
16759 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
16760 gtk/gtkiconfactory.c: Fix copyrights
16762 * demos/testpixbuf.c: add inline pixbuf test
16764 Mon Sep 25 15:05:17 2000 Owen Taylor <otaylor@redhat.com>
16766 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
16767 Add gdk_window_iconify.
16769 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
16770 (gdk_window_set_geometry_hints): Add win_gravity
16771 to geometry structure.
16773 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
16774 Implement _NET_WM_PING.
16776 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
16777 Set _NET_WM_PID on the client leader.
16779 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
16780 Handle UTF-8 better.
16782 * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
16783 UTF-8 better, set _NET_WM_NAME as well. Only set
16784 icon name if it hasn't previously been explicitely
16787 2000-10-03 Havoc Pennington <hp@redhat.com>
16789 * gtk/testtextbuffer.c: clean up trailing whitespace,
16790 add extensive tests for tag toggle iteration.
16792 * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
16795 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
16796 optimize case where the tag root is on level 1
16797 (gtk_text_line_previous_could_contain_tag): attempt to implement
16798 (gtk_text_line_next_could_contain_tag): Abstract out node_compare
16801 * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
16802 Implement this, though not very efficiently.
16804 * gtk/gtktextiterprivate.h: reformat
16806 * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
16809 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
16810 this to properly revalidate the iterators.
16812 * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
16813 properly at the end of the line (and therefore on empty lines)
16815 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
16816 maybe we should return a value...
16818 2000-10-03 Tor Lillqvist <tml@iki.fi>
16820 * config.h.win32: Guard definition of alloca(). glib.h now handles
16824 * gtk/gtk.def: Add new entry points.
16826 Changes just to make GTK+ build without errors on Win32. No hope
16827 of it working in its current state, though...:
16829 * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings. Add
16830 some functions from the X11 backend, just to make GTK+ build.
16832 * gdk/makefile.mingw.in
16833 * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
16834 number. Add new object files.
16836 * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
16837 GetMessageTime to get timestamp (where on X11 uses
16838 gdk_x11_get_server_time()).
16840 2000-10-02 Havoc Pennington <hp@pobox.com>
16842 * gtk/gtktextview.c: text_window_* weren't static and should have
16844 Start work on child widgets; not yet complete, syncing to
16847 * gtk/gtktextchild.h: change this to contain a public interface,
16848 starting work on child interfaces.
16849 * gtk/gtktextchildprivate.h: move private interfaces here
16851 * gtk/Makefile.am: update to reflect gtktextchildprivate.h
16853 * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
16854 gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c,
16855 gtk/gtktextmark.c: copyright notices
16857 * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
16860 * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
16863 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
16866 2000-09-30 Havoc Pennington <hp@pobox.com>
16868 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
16869 NULL start/end pointers
16871 * gtk/gtktextbuffer.c: Write some docs
16872 (gtk_text_buffer_get_selection_bounds): Allow start/end to be
16873 NULL, so you can just check whether there's a selection.
16875 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to
16876 cleanup_line or segments_changed ourselves, it gets done
16879 * gtk/gtktextmark.h:
16880 s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
16882 * gtk/gtktextsegment.h: Clean up some indentation and naming mess
16884 * gtk/gtktextmark.c: delete some more old Tk cruft
16886 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
16887 mark before removing it, so we can emit MARK_DELETED with a valid
16889 (gtk_text_buffer_mark_set): hold ref across signal emission
16891 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
16892 whining about attempts to delete special marks
16894 * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
16895 underscore, since it's internal.
16897 * gtk/gtktextbuffer.h: Remove find_string prototype, this is
16898 now implemented in terms of iterators in gtktextiter.h
16900 * gtk/gtktextbuffer.c (gtk_text_buffer_set_text):
16901 New function, destructively sets contents of buffer. Also
16902 a convenient way to clear the buffer by setting text to ""
16904 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
16905 multiline string literal
16907 * gtk/testtext.c (text_changed_callback): Redraw line numbers if
16910 * gtk/gtktextiter.c (forward_char): Return FALSE if new location
16911 is not dereferenceable
16912 (gtk_text_iter_forward_lines): fix return value
16914 2000-09-29 Havoc Pennington <hp@redhat.com>
16916 * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
16918 * gtk/gtktextview.c: Implement drag thresholding; change functions
16919 that set border window size to have nicer name
16920 (gtk_text_view_mark_set_handler): Fix this to have the
16923 * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
16925 * gtk/testtext.c: Update with API changes, put line numbers on
16928 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
16931 * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
16932 pixbuf; delete a big block of #if 0 Tk code
16934 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
16935 insert_pixmap with insert_pixbuf
16937 2000-09-29 Martin Baulig <baulig@suse.de>
16939 * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
16940 confusion with the GdkPixbuf of the GNOME 1.x platform.
16942 2000-09-29 Havoc Pennington <hp@pobox.com>
16944 * gtk/gtktextview.c: Implement the side windows.
16946 * gtk/testtext.c: Implement simple line numbering in the
16947 left side window; seems to make scrolling sloooow. Oops.
16948 Also, cursor blink is for some reason causing redraws
16949 of the line numbers. Should investigate...
16951 2000-09-28 Havoc Pennington <hp@redhat.com>
16953 * gtk/gtktextview.c: Set up infrastructure to deal with lots of
16954 scrolling child windows, and draw focus rectangle properly.
16956 (gtk_text_view_buffer_to_window_coords):
16957 Coordinate transformation to deal with all these freaking windows
16959 (gtk_text_view_window_to_buffer_coords): transform the other way
16961 * gtk/testtext.c (create_buffer): Update to match Pango API change
16963 * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
16965 (foreach_unref): don't emit remove signal from finalize, just
16966 set tag's parent to NULL
16968 2000-09-26 Havoc Pennington <hp@redhat.com>
16970 * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
16973 2000-09-26 Havoc Pennington <hp@redhat.com>
16975 * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
16976 headers into the private header list
16978 * Makefile.am (pkgconfig_DATA): install pkg-config files
16980 * configure.in: add pkg-config files
16982 * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
16984 * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
16985 outstanding icon caches on theme change.
16987 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
16990 (GtkIconSource): Specification for creating a pixbuf
16991 appropriate for a direction/state/size triplet from
16992 a source pixbuf or filename
16994 (GtkIconSet): List of GtkIconSource objects that are used to
16995 create the "same" icon (e.g. an OK button icon), and cache for
16998 (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
16999 up the icon set for a given stock ID. GTK maintains a stack of
17000 GtkIconFactory to search, and applications or libraries can add
17001 additional icon factories on top of the stack
17003 * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
17004 the set of GtkIconSource specified for a given stock ID into
17005 a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
17006 RcStyle, under the specified stock ID.
17008 * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
17009 render_icon used to derive a GdkPixbuf from a GtkIconSource.
17010 This allows people to theme how prelight, insensitive, etc. are
17013 (gtk_style_lookup_icon_set): Look up a stock ID in the list of
17014 icon factories for a style, and return the resulting
17017 (gtk_style_render_icon): Render an icon using the render_icon
17018 method in the GtkStyleClass.
17020 * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
17021 Use the style for a given widget to look up a stock ID, get the
17022 icon set, and render an icon using the render_icon method
17025 * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
17026 (contains information about a stock item), the built-in stock item
17027 IDs, and functions to add/lookup stock items.
17029 * gtk/stock-icons/*: Stock icons that come with GTK
17031 * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
17032 a button based on a GtkStockItem
17033 (gtk_button_new_accel): Takes a uline string and accel group, and
17034 installs the accelerator.
17036 * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
17037 image-display widget.
17039 2000-09-25 Havoc Pennington <hp@redhat.com>
17041 * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
17043 * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data):
17044 Fix a bug when removing node data, we didn't properly
17045 re-splice the linked list after removing the data.
17047 * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through
17048 GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
17050 * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
17052 * gtk/gtktextlayout.c (set_para_values): Set tab array
17053 for the layout from the GtkTextTag.
17055 * gtk/gtktexttypes.h: delete tab and search cruft,
17056 remove g_convert() in favor of GLib version
17058 * gtk/gtktexttypes.c: remove tab implementation from here,
17061 * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement
17062 tab stuff using new PangoTabArray from Pango
17064 * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
17065 unused border_width stuff
17067 Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
17069 * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
17070 glib) and now useless utf_to_latin1() latin1_to_utf()
17072 * gtk/gtktextview.[ch]: Change ::move_insert and
17073 ::delete_text action signals to ::move and ::delete;
17074 create the signals with the right enumeration type,
17075 not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
17076 C-v bindings, change Home, End to move to beginning/end
17077 of line, Add C-Home C-End to move to beginning/end
17078 of buffer. Change ::cut_text to ::cut_clipboard, etc;
17079 combine ::scroll_text into ::move; use new GtkSelectionData
17080 functions to simplify DND text handling.
17082 * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
17083 deletion enumerations here, rename enumeration values to
17084 be consistently plural.
17086 * gtk/gtktextbuffer.c: Use new clipboard interfaces
17087 for cut/copy/paste and primary selection.
17089 * gtk/gtktextbuffer.[ch]: Remove excess time and
17090 'interactive' arguments from cut/copy/paste;
17091 rename cut to cut_clipboard, etc; remove
17092 gtk_text_buffer_get_clipboard_contents().
17094 * gtk/gtktextlayout.[ch]: Add
17095 gtk_text_layout_move_iter_to_line_end() to move the iter to
17098 * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
17099 Functions to set or get a UTF-8 string on the selection
17102 * gtk/gtkclipboard.[ch]: New, simplified selection handling
17105 * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
17106 created widgets - one of these is useless if we don't.
17108 * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
17109 a public function clear all targets registered for the
17112 * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
17113 Never call gtk_widget_realize() - that was just asking
17114 for bizarre side-effects.
17116 * gtk/gtkselection.c (gtk_selection_owner_set): Call
17117 gdk_selection_owner_set even if the widget is the
17118 same so that we reliably update the timestamp on
17121 * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
17122 gdk_x11_get_server_time() function.
17124 * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
17125 gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
17126 Add some tricky filtering on serial numbers for
17127 selection clear events to fix up long-standard
17128 race condition FIXME's in gtkselection.c.
17130 * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
17131 routines to convert from utf8 to compound text or
17132 STRING and from a text property to UTF-8.
17134 * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
17135 a convenience function gdk_get_current_event_time().
17137 * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
17138 and free selection_data->data properly
17140 Sat Sep 9 10:23:53 2000 Owen Taylor <otaylor@redhat.com>
17142 * gtk/gtkthemes.c: Remove some unecessary includes.
17144 2000-09-08 Jonathan Blandford <jrb@redhat.com>
17146 * gtk/gtktextdisplay.c
17147 * gtk/gtktextlayout.c
17150 * gtk/testtext.c: Change the overstrike property to strikethrough,
17151 to closer match pango.
17153 Fri Sep 8 14:28:00 2000 Owen Taylor <otaylor@redhat.com>
17155 * gtk/gtktextview.c: Fix up visibility so that focus,
17156 cursor_visible and blink interact properly. Reenable cursor blink
17157 which had been roughly disabled. Make blink and focus
17160 * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
17161 Add a flag for whether to display insertion cursor and
17162 a function to set the flag.
17164 * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
17165 get_line_y() to get_line_yrange(), to be a bit more generally
17168 Thu Sep 07 20:54:33 2000 George Lebl <jirka@5z.com>
17170 * gtk/gtkmenu.c: in gtk_menu_set_submenu_navigation_region
17171 do stop_navigating_submenu, to clear last timeout properly.
17172 Also in gtk_menu_motion_notify move ignore_enter above
17173 the conditional to make it always happen as suggested by Owen
17175 2000-09-07 Tor Lillqvist <tml@iki.fi>
17177 * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
17179 * gdk/win32/gdkwin32.h: Add more definitions missing from the free
17182 * gdk/win32/gdkprivate-win32.h: Add a couple of missing
17185 * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
17186 (gdk_win32_get_colormap): A line had been deleted by mistake.
17188 * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
17189 (gdk_event_translate): Handle more virtual keycodes to be able to
17190 generate GDK events for Control-comma, Control-period, etc.
17192 * gtk/gtk.def: Add some missing entry points.
17194 Thu Sep 7 11:47:02 2000 Owen Taylor <otaylor@redhat.com>
17196 * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
17197 Doc comment fixing. (Mostly non-matching parameter names.)
17199 * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
17200 comments a little to avoid looking like a doc comment.
17202 * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
17203 GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
17204 conversions be changed to GError?)
17206 * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT):
17207 Move private #defines into .c file.
17209 * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
17210 order of argument addition, remove duplicates.
17212 * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
17213 parent class is FrameClass, not BinClass.
17215 * gtk/gtk.h: Add gtkinvisible, which was missing.
17216 (It's occasionalyl useful for client apps, if seldom.)
17218 * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
17221 Wed Sep 6 09:53:15 2000 Owen Taylor <otaylor@redhat.com>
17223 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
17224 coordinates when creating window, instead of GDK-space
17225 coordinates. (Avoid BadValue on too large windows.)
17227 2000-09-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
17229 * configure.in (use_mmx_asm): Remove conftest* after use along the
17230 lines of AC_TRY_COMPILE.
17232 * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
17233 of g_dirname, which is deprecated.
17234 (gtk_rc_parse_any): Removed calls to
17235 g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
17237 * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
17238 Removed calls to g_hash_table_{freeze,thaw}, as they are
17241 * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
17242 instead of g_basename.
17244 2000-09-04 Elliot Lee <sopwith@redhat.com>
17246 * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
17249 Sun Sep 03 00:47:08 2000 George Lebl <jirka@5z.com>
17251 * gtk/gtkwidget.h: Add some documenting comments about
17252 GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
17253 just as owen said on irc.
17255 * gtk/gtkwindow.c (gtk_window_set_default): Don't blindly
17256 set HAS_DEFAULT. Only set it if there isn't another window
17257 holding it (a focus window which RECEIVES_DEFAULT) and only unset
17258 it if the widget is not the focused window with RECEIVES_DEFAULT.
17259 This fixes weird double default bugs in dialogs which has things
17260 call gtk_window_set_default at times.
17262 Fri Sep 1 22:39:07 2000 Owen Taylor <otaylor@redhat.com>
17264 * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
17265 Nils Barth and David Santiago to improve submenu
17266 navigation. The patch does this by creating a triangular
17267 region from the point where the pointer leaves the
17268 menu to the submenu. While the pointer is in
17269 that region and a timeout has not expired, events
17270 that would cause the active submenu to change are
17273 Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
17275 * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
17276 moving a toplevel window immediately after sizing it would
17277 result in it being sized back to the old size since
17278 impl->width, impl->height aren't updated until we hear
17279 back from the server. There is still a (longstanding) bug
17280 here that gdk_window_get_size() will give the wrong size
17281 until we do hear back.
17283 2000-08-31 Havoc Pennington <hp@redhat.com>
17285 * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
17286 gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c,
17287 gtk/gtktexttagprivate.h, gtk/gtktextview.c:
17288 Rename GtkTextStyleValues to GtkTextAttributes
17290 2000-08-31 Havoc Pennington <hp@pobox.com>
17292 * gtk/gtktextbtree.c (GtkTextBTree): cache end line,
17293 for rapid testing whether an iterator is the end iterator
17294 (gtk_text_btree_new): init end line cache
17295 (gtk_text_line_is_last): use fast cached line to
17296 see if we're the last line.
17297 (get_last_line): use cached line here too, should
17298 speed up some random unrelated code.
17300 2000-08-30 Havoc Pennington <hp@pobox.com>
17302 * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
17305 * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
17306 delete_text signals. This allows the signals to be used for
17309 * gtk/gtktextbuffer.c: Change signal handler signatures;
17310 provide "interactive" argument when emitting insert_text or
17311 delete_text signal.
17313 2000-08-30 Havoc Pennington <hp@pobox.com>
17315 * gtk/gtktextbuffer.c: Docs
17317 Fri Aug 25 12:16:15 2000 Owen Taylor <otaylor@redhat.com>
17319 * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
17320 from switch statements, since Tor removed the enumeration
17323 * gdk/x11/gdkimage-x11.c (gdk_image_get):
17324 s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
17326 2000-08-29 Elliot Lee <sopwith@redhat.com>
17327 * */*.h: Use G_GNUC_CONST.
17329 2000-08-27 Havoc Pennington <hp@pobox.com>
17331 * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
17332 minor indentation fixes, inserted some FIXME about stuff I
17333 realized was broken while documenting it.
17334 (gtk_text_iter_get_pixmap): allow out params to be NULL, following
17337 Tue Aug 22 12:33:24 2000 Owen Taylor <otaylor@redhat.com>
17339 * gtk/testgtk.c (create_styles): Fix double free of
17342 Mon Aug 21 22:39:18 2000 Owen Taylor <otaylor@redhat.com>
17344 * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
17346 * gtk/testgtk.c (create_styles): Add a test for modifying
17347 the style through gtk_widget_modify_*.
17349 * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
17350 a function to get the current modifier style.
17352 * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
17353 of the passed in GtkRcStyle instead of ref'ing it.
17355 * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
17357 2000-08-20 Tor Lillqvist <tml@iki.fi>
17360 * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
17361 shared memory image+pixmap GdkImage type, or
17362 gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
17363 I am dropping that.
17365 * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
17366 actually call gtk_init_abi_check(), passing also
17367 sizeof(GtkWindow). Ditto for gtk_init_check().
17370 * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
17371 New functions, used to check that the GTK+-using code has been
17372 compiled using the correct compiler and switches. In particular,
17373 with gcc one has to use the -fnative-struct switch as GTK+ is
17374 compiled with that.
17376 Fri Aug 18 17:27:46 2000 Owen Taylor <otaylor@redhat.com>
17378 * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
17379 ->prev fields when merging lists. (Found simultaneously
17380 by Pawel Salek and Jakub Jelinek)
17382 2000-08-12 Tor Lillqvist <tml@iki.fi>
17385 * gtk/gtk.def: Add missing entries.
17387 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
17388 OUT_TT_ONLY_PRECIS, try to get a TrueType font.
17390 * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
17391 function. Dummy implementation at this point.
17393 * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
17394 rules. Undefine GTK_COMPILATION when compiling the test programs.
17396 * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
17398 2000-08-11 Tor Lillqvist <tml@iki.fi>
17400 * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
17401 to convert back and forth from UTF-8 and the "system" (or "current
17402 locale") charset when necessary. Indentation/spacing cleanup.
17404 2000-08-10 Havoc Pennington <hp@redhat.com>
17406 * Makefile.am (snapshot): Change the format of the snapshot
17407 version to match glib
17409 * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
17410 from EXTRA_DIST since it doesn't seem to exist
17412 2000-08-10 Tor Lillqvist <tml@iki.fi>
17414 * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
17415 version of the directory name (not the UTF-8 one) when building
17416 the path name to stat().
17418 2000-08-03 Elliot Lee <sopwith@redhat.com>
17420 * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
17421 PANGO_ATTR_SHAPE set.
17423 Thu Aug 3 09:17:06 2000 Owen Taylor <otaylor@redhat.com>
17425 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
17426 Peter Osterlund to simplify the code while keeping the
17427 functionality the same.
17429 Wed Aug 2 14:57:38 2000 Owen Taylor <otaylor@redhat.com>
17431 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
17432 is_viewable() test further inside the function, since removing the
17433 window from the redraw list without clearing ->update_area
17434 was also very broken.
17436 2000-08-02 Tor Lillqvist <tml@iki.fi>
17438 * configure.in: Check for <unistd.h>.
17440 2000-08-01 Martin Baulig <baulig@suse.de>
17442 * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
17443 to display the message that this is a development version of GTK+.
17445 Mon Jul 31 18:37:36 2000 Owen Taylor <otaylor@redhat.com>
17447 * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
17448 was depending on widget->allocation instead of the width of text_area,
17449 which was incorrect for subclasses like GtkSpinButton.
17451 * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
17452 with width == 1 tests that should be width == -1.
17454 Mon Jul 31 16:45:48 2000 Owen Taylor <otaylor@redhat.com>
17456 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken,
17457 (broken, Elliot, every single window blank on X) custom code with call
17458 to gdk_window_is_viewable() which a) prevents code duplicate and
17461 2000-07-31 Elliot Lee <sopwith@redhat.com>
17463 * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
17464 to get the GDK_PARENT_ROOT() macro to work.
17465 * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
17466 * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
17467 of, windows that aren't shown.
17468 * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
17469 pointer grab stuff.
17471 Mon Jul 31 13:53:16 BST 2000 Tony Gale <gale@gtk.org>
17473 * docs/gtkfaq.sgml docs/gtk-faq.sgml:
17474 s/gtk_main_iteration/g_main_iteration/
17476 Did this already in change:
17477 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
17478 don't know how it got reverted.
17480 2000-07-31 Stanislav Brabec <utx@penguin.cz>
17482 * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
17483 gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
17485 * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
17488 2000-07-30 Pablo Saratxaga <pablo@mandrakesoft.com>
17490 * configure.in,po/{sp,sr}.po: Added Serbian files
17492 2000-07-30 Tor Lillqvist <tml@iki.fi>
17494 * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
17496 * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
17497 Remove the g_pipe_readable_msg stuff. Not needed with new GLib
17498 GIOChannel implementation.
17500 * gdk/win32/gdkinput.c
17501 * gdk/win32/gdkpango-win32.c: Update license name here, too.
17503 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
17504 definition to match prototype.
17506 * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
17508 2000-07-27 Elliot Lee <sopwith@redhat.com>
17510 * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
17511 function, to allow handling image formats that cannot be detected
17512 by looking at content alone.
17514 Thu Jul 27 13:13:21 BST 2000 Tony Gale <gale@gtk.org>
17516 * docs/tutorial/*.gif *.jpg *.eps
17517 Update these to the same look-n-feel.
17518 Why does including images in DocBook suck so badly?
17520 Thu Jul 27 05:06:29 2000 Tim Janik <timj@gtk.org>
17522 * gtk/gtktable.c: applied patch from Phil Thompson
17523 <phil@river-bank.demon.co.uk> that enables space settings for
17524 the last row/columns as well.
17526 Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org>
17528 * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
17529 updates the license headers to the GNU Lesser General Public License,
17530 as well as updating the copyright year to 2000.
17532 2000-07-26 Robert Brady <rwb197@zepler.org>
17534 * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
17535 and po/Makefile, was installing and looking for them under gtk20
17536 and gtk2 respectively.
17538 2000-07-25 Havoc Pennington <hp@redhat.com>
17540 * gtk/testtext.c: Comment out some stuff that depends on the rest
17543 2000-07-25 Havoc Pennington <hp@redhat.com>
17545 * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
17548 2000-07-25 Havoc Pennington <hp@redhat.com>
17550 * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
17553 * gtk/gtktextview.h: To be consistent with usage of "line"
17554 throughout the API to mean "newline-terminated thingy", change
17555 MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
17558 (GtkTextView): Add flags for default editability, and whether to
17559 show the cursor. Add functions to get/set that. Add
17561 (gtk_text_view_get_iter_location): new function
17563 * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
17565 (g_convert): Add g_convert temporarily, will go in glib in a bit
17567 * gtk/gtktexttagtable.h: include gtktexttag.h, and define
17568 GtkTextTagTableForeach instead of brokenly using GHFunc.
17569 Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
17571 * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
17572 moved to public header.
17574 * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
17575 "invisible", since "elide" was a bad name.
17576 (gtk_text_tag_get_priority): Added
17578 (GtkTextStyleValues): put this in public header, along with
17579 functions to use it.
17581 * gtk/gtktextmarkprivate.h: Include more headers, since we no
17582 longer include gtktextbtree.h.
17584 * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
17585 gtk_text_mark_deleted
17587 * gtk/gtktextlayout.h: Don't include the "really private" headers,
17588 only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
17589 to make this possible. Now we only need to install
17590 gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
17591 (However the Makefile.am isn't changed yet because of the
17592 logistics of merging gtk-hp-patches piecemeal)
17594 * gtk/gtktextiterprivate.h: include btree header, so it compiles;
17595 rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
17596 gtk_text_iter_get_line is now used in the public API for a
17599 * gtk/gtktextiter.h: Clean up function names to be more
17600 consistent. Always call char offset "offset" and byte index
17601 "index". A "line" is always a line number.
17603 (gtk_text_iter_is_last): new function, more efficient than
17604 the existing way to check
17605 (gtk_text_iter_is_first): new function, also more efficient
17607 (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
17609 (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from
17610 gtk_text_iter_forward_char, etc.
17612 (gtk_text_iter_forward_to_tag_toggle): Renamed from
17613 forward_find_tag_toggle, since this isn't a linear search
17615 (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
17617 (gtk_text_iter_forward_search, gtk_text_iter_backward_search):
17618 New functions, search for a buffer substring.
17620 * gtk/gtktextbuffer.h: Add fields to store whether a paste is
17621 interactive and default editable (since we need to store that info
17622 until we receive the selection data).
17624 Remove all the _at_char and at_line etc. versions of functions;
17625 only have iterator versions.
17627 Add _interactive() versions of functions, that consider the
17628 editability of text. (FIXME add interactive flag to the
17629 insert/delete signals per Darin's suggestion)
17631 (gtk_text_buffer_get_tag_table): new function, demand-creates the
17632 tag table if necessary
17634 Remove declaration of gtk_text_buffer_get_iter_from_string
17636 (_gtk_text_buffer_get_btree): private/internal function, added.
17639 * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
17640 (gtk_text_line_is_last): new function
17642 2000-07-25 Havoc Pennington <hp@redhat.com>
17644 * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
17645 using GtkProgressBar. See Changes-2.0.txt for details.
17647 * gtk/gtkprogressbar.c: Add object arguments "fraction" and
17648 "pulse_step" which are the equivalent of
17649 gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
17652 * gtk/gtkprogress.h (struct _GtkProgress): Add a field
17653 (use_text_format) to mark whether text set on the progress bar is
17654 a format string. Deprecate entire GtkProgress interface.
17656 * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
17657 (gtk_progress_build_string): make this a no-op if use_text_format
17660 * docs/Changes-2.0.txt: Describe progress bar changes.
17662 2000-07-25 Tor Lillqvist <tml@iki.fi>
17664 * Makefile.am: Include the build directory.
17666 * configure.in: Generate build/Makefile, build/win32/Makefile,
17667 gdk/, gdk/win32/, and gtk/makefile.mingw.
17669 * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
17670 Add GETTEXT_PACKAGE.
17673 * gtk/gtk.def: Updates.
17676 * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
17677 need them any longer.
17679 * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
17681 * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
17682 PANGOWIN32_LIBS and gdk_pixbuf.
17684 * gdk/win32: Compiles, but no doubt doesn't work at all.
17686 * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
17688 * gdk/win32/gdkinput.c: New file, temporarily.
17690 * gdk/win32/gdkinput-win32.h: New file
17692 * gdk/win32/gdkinputprivate.h: Remove.
17694 * gdk/win32/gdkpango-win32.c: New file.
17696 * gtk/makefile.mingw.in: New file
17698 * gtk/makefile.cygwin: Removed
17700 * gtk/Makefile.am: Update accordingly.
17702 * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
17703 made externally visible.
17705 * gtk/gtkmain.c: Use it.
17707 * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
17710 * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
17712 2000-07-24 Elliot Lee <sopwith@redhat.com>
17713 * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
17714 individual backends already.
17715 * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
17716 again. Yes, there really is a good reason for this, if you are using the gdkregion
17717 internals, and if you're not, why do you care?
17718 * gdk/gdkwindow.c: Fix inverted condition
17719 * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
17720 * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
17721 * gtk/gtkrange.c: Redraw trough when moving.
17722 * gtk/gtktypeutils.c: Fix warning by adding const cast.
17723 * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
17725 2000-07-23 Tor Lillqvist <tml@iki.fi>
17727 * configure.in: Check for mkstemp and sigsetjmp. Output
17728 gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
17730 More work on GDK for Win32. Still in an intermediate state.
17732 * gdk/makefile.cygwin
17733 * gdk/win32/makefile.cygwin: Removed.
17735 * gdk/makefile.mingw.in
17736 * gdk/win32/makefile.mingw.in: New files.
17739 * gdk/win32/Makefile.am: Generate and distribute them.
17741 * gdk/win32/gdkwindow-win32.h
17742 * gdk/win32/gdkdrawable-win32.h
17743 * gdk/win32/gdkpixmap-win32.h: New files.
17745 * gdk/win32/gdkcolor-win32.c
17746 * gdk/win32/gdkcursor-win32.c
17747 * gdk/win32/gdkdrawable-win32.c
17748 * gdk/win32/gdkgc-win32.c
17749 * gdk/win32/gdkimage-win32.c
17750 * gdk/win32/gdkprivate-win32.h
17751 * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
17752 Rename fields and variables called xcursor, xid, etc (these names
17753 were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
17755 Sat Jul 22 17:41:26 2000 Owen Taylor <otaylor@redhat.com>
17757 * gtk/gtkentry.[ch]: Fix some problems with vertical
17760 * gtk/gtkentry.c (gtk_entry_find_position): Fix
17761 char/byte confusion.
17763 Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
17765 * gtk/gtktextview.c (changed_handler): Fix bug where
17766 redraw wasn't being done properly when height of
17767 dirty region changed.
17769 * demos/Makefile.am: Remove various references to
17772 Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
17774 * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
17775 PangoAttrShape to reserve space for pixmaps, add
17776 GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
17777 in the display functions.
17779 * gtk/testgtk.c (create_layout): Set some more exotic
17780 scrolled window options
17782 * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
17783 Add function to set the shadow type of a window, to allow
17784 putting a shadow around widgets such as GtkLayout or GnomeCanvas
17785 which don't draw their own frame.
17787 Fri Jul 21 16:34:42 BST 2000 Tony Gale <gale@gtk.org>
17789 * docs/tutorial/package-db-tutorial.sh: New file for
17790 packaging DocBook format tutorial
17792 Fri Jul 21 14:23:51 BST 2000 Tony Gale <gale@gtk.org>
17794 * docs/tutorial/gtk-tut.sgml: Minor updates
17796 * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
17798 2000-07-19 Tor Lillqvist <tml@iki.fi>
17800 * gtk/gtksignal.c: Fix C++ comment.
17802 * gtk/gtkimmulticontext.c
17803 * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
17804 don't return value from void functions.
17806 * gtk/gtk.def: Add gtk_rc_style_unref.
17808 2000-07-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
17810 * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
17811 gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
17812 gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
17813 gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
17814 gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
17815 gtk/gtktypeutils.h: Include files outside of the extern "C"
17816 block. Makes some C++ compiler happy. Reported by Denis Vakatov
17817 <vakatov@peony.nlm.nih.gov>.
17819 Wed Jul 19 14:07:57 BST 2000 Tony Gale <gale@gtk.org>
17821 * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
17822 Completes first pass. Hurrah!
17824 Tue Jul 18 17:17:55 BST 2000 Tony Gale <gale@gtk.org>
17826 * docs/tutorial/gtk-tut.sgml: More clean ups.
17828 Mon Jul 17 18:52:38 2000 Owen Taylor <otaylor@redhat.com>
17830 * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
17831 paint the background of the text area which was accidentally
17832 removed at some point.
17834 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]:
17836 - Move most of the functionality from the theme vtable
17837 into GtkRcStyleClass and GtkStyleClass. The moved
17838 vtable functions were changed a bit in the move to
17839 work better in their new home.
17841 - Get rid of the engine and engine_data fields from
17842 GtkRcStyle and GtkStyle; instead the theme
17843 engine derives theme-specific subclasses of GtkRcStyle
17846 - Add extra dlsym() found entry point to themes,
17847 theme_create_rc_style().
17849 * gtk/gtkstyle.c: Copy xthickness, ythickness fields
17850 in gtk_style_real_copy.
17852 * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
17853 to register a type associated with an engine. (The engine
17854 won't be unloaded as there is an instance of the type.)
17857 Mon Jul 17 18:19:06 BST 2000 Tony Gale <gale@gtk.org>
17859 * docs/tutorial/gtk-tut.sgml: Clean ups.
17861 Mon Jul 17 13:59:29 BST 2000 Tony Gale <gale@gtk.org>
17863 * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
17864 of cleaning up to do.
17866 2000-07-15 Tor Lillqvist <tml@iki.fi>
17868 * gdk/testgdk.c: New file, quick hack to test backends for
17869 pixel-by-pixel correctness of the most simple graphic operations.
17871 Fri Jul 14 20:30:25 2000 Owen Taylor <otaylor@redhat.com>
17873 * Really release 1.3.1
17875 * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
17878 Fri Jul 14 18:40:39 2000 Owen Taylor <otaylor@redhat.com>
17882 Fri Jul 14 16:21:26 2000 Owen Taylor <otaylor@redhat.com>
17884 * gtk/gtktextlayout.c: use FALSE for size_only most
17885 of the time when calling gtk_text_layout_get_line_display()
17886 to avoid causing double reshapes when a redraw follows
17889 Tue Jul 11 11:13:40 2000 Owen Taylor <otaylor@redhat.com>
17891 * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
17892 appropriate region and gdk_window_process_updates() so trough
17893 updating doesn't lag behind the window being scrolled.
17895 * gdk/gdkgc.c: Make parent_class pointer static.
17897 Sun Jul 9 21:31:23 2000 Owen Taylor <otaylor@redhat.com>
17899 * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
17900 include <string.h>.
17902 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
17903 cut-and-paste error in computing memory offset for 4 channels.
17905 Fri Jul 14 14:05:02 2000 Owen Taylor <otaylor@redhat.com>
17907 * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
17908 gtk_rc_append_default_pixmap_path(), since it wasn't
17909 adding an interesting path and we don't have a meaningful
17910 default for this value.
17912 Fri Jul 14 12:22:49 2000 Owen Taylor <otaylor@redhat.com>
17914 * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
17915 gtk-config to gtk-config-2.0 move gtk_.m4 to
17918 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
17919 gdk/Makefile.am demos/Makefile.am: Change
17920 library names to libgtk-1.3.la, etc, so that we
17921 can distinguish gtk-1.2 and gtk-2.0 on the linkline.
17923 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
17924 gdk/Makefile.am gdk/x11/Makfile.am
17925 Move include files into /usr/include/gtk-2.0,
17926 /usr/lib/gtk-2.0/include/
17928 * autogen.sh acconfig.h configure.in gtk/gtkmain.c
17929 gtk/gtkintl.h: Change package for gettext from
17930 gtk+ to gtk20. Put hack in autogen.sh to modify
17931 po/Makefile.in.in after gettextize to make this
17934 * gtk+.spec: Some updates, not tested.
17936 * gdk-pixbuf/Makefile.am: Move loaders into
17937 $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
17939 * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
17940 $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
17941 to THEMENAME/gtk-2.0/. Move engine directory to
17942 $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
17944 2000-07-12 Tor Lillqvist <tml@iki.fi>
17946 Win32 changes, still doesn't build though.
17948 * gdk/makefile.cygwin
17949 * gdk/win32/makefile.cygwin
17950 * gtk/makefile.cygwin: Updates.
17952 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
17953 default values for fg and bg pixel as X11 does (0 and 1), not
17954 black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
17955 Use 0 for pen width by default (treated as 1 anyway later, but for
17956 apps that might check the value in the GdkGC).
17957 (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
17958 interface to gdk_gc_predraw and _postdraw.
17960 * gdk/win32/gdkwin32.h
17961 * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
17963 * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
17964 extraneous semicolon.
17966 * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
17968 * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
17969 not the Win32 bitspixel value.
17971 * gdk/win32/gdkcc-win32.c:
17972 * gdk/win32/gdkcolor-win32.c
17973 * gdk/win32/gdkprivate-win32.h
17974 * gdk/win32/gdkwin32.h: Changes to make compilable, with new
17975 GDK object structure.
17977 Tue Jul 11 20:59:35 2000 Tim Janik <timj@gtk.org>
17979 * docs/tutorial/gtk_tut_12.es.sgml (name):
17980 * docs/tutorial/gtk_tut_it.sgml (name):
17981 * docs/tutorial/gtk_tut_fr.sgml (name):
17982 * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
17983 outdated email adress: s/timj@psynet.net/timj@gtk.org/.
17985 Tue Jul 11 13:10:57 BST 2000 Tony Gale <gale@gtk.org>
17987 * docs/faq/gtk-faq.sgml: Cleanup indenting and various
17990 Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org>
17992 * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
17993 a bug here, never been here and never fixed anything ;(
17994 (don't segfault if tree->root_tree is NULL, which happens prior
17995 to widget realization, but puke instead).
17997 Tue Jul 11 06:38:42 2000 Tim Janik <timj@gtk.org>
17999 * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
18000 add the necessary tokens.
18002 * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
18003 (gtk_rc_style_to_style): copy thicknesses.
18004 (gtk_rc_init_style): apply thicknesses.
18005 (gtk_rc_parse_style): parse xthickness and ythickness.
18007 * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
18009 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new):
18011 (_gdk_windowing_window_init):
18012 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new):
18013 (gdk_pixmap_create_from_data):
18014 (gdk_bitmap_create_from_data):
18016 * gdk/x11/gdkimage-x11.c (gdk_image_get):
18018 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new):
18019 * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new):
18020 * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
18021 (gdk_colormap_get_system):
18022 (gdk_colormap_new):
18023 * gdk/gdkwindow.c (gdk_window_init):
18024 * gtk/gtkstyle.c (gtk_style_new):
18025 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
18026 * gdk/gdkpixmap.c (gdk_pixmap_init):
18027 * gtk/gtkrc.c (gtk_rc_style_new):
18028 use g_object_new() instead of g_type_create_instance() which
18029 is a private function for fundamental type implementations.
18031 Thu Jul 6 16:12:14 2000 Owen Taylor <otaylor@redhat.com>
18033 * configure.in: Add check for db2html
18035 Thu Jul 6 14:53:05 2000 Owen Taylor <otaylor@redhat.com>
18037 * gtk/gtktypeutils.c (gtk_type_init): Add a temporary
18038 hack to set glib_debug_objects based on gtk_debug_flags.
18040 Thu Jul 6 14:12:13 2000 Owen Taylor <otaylor@redhat.com>
18042 * INSTALL.in: Update the Prerequisites section.
18044 * Makefile.am demos/Makefile.am docs/Makefile.am
18045 docs/tutorial/Makefile.am gdk/x11/Makefile.am
18046 gdk/linux-fb/Makefile.am: Dist fixes
18048 Thu Jul 6 12:26:03 2000 Owen Taylor <otaylor@redhat.com>
18050 * NEWS: 10,000 foot view of 1.3.1 changes.
18052 Thu Jul 6 11:54:03 2000 Owen Taylor <otaylor@redhat.com>
18054 * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
18055 gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
18056 gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
18057 gdk/x11/gdkmain-x11.c:
18059 Patch from George Lebl to add a GdkGrabStatus enumeration to use
18060 as a return value of gdk_*_grab(). Previously, we just
18061 returned the X11 values directly.
18063 Thu Jul 6 11:27:44 2000 Owen Taylor <otaylor@redhat.com>
18065 * gdk/x11/Makefile.am: Patch from George Lebl to
18066 install all the headers in the right place.
18068 Tue Jul 4 13:13:01 BST 2000 Tony Gale <gale@gtk.org>
18070 * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
18071 initial conversion to DocBook.
18073 2000-07-04 Tor Lillqvist <tml@iki.fi>
18075 * README.win32: Improve a bit.
18077 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
18078 WM_SYSCHAR, and other changes to get handling of Alt+nnn or
18079 Alt+0nnn on the numpad (used to enter characters by numeric code
18080 from current DOS or ANSI codepage) working correctly, as in other
18083 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
18084 same argument validity tests as in X11 version.
18085 (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
18087 * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
18088 definitions in case missing from headers.
18090 * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
18091 destroy the window-specific cursor.
18092 (RegisterGdkClass): Use the global gdk_ProgInstance instead of
18093 calling GetModuleHandle(NULL).
18094 (gdk_window_set_cursor): Reworked to always copy the passed cursor
18095 with CopyCursor before setting it as the window-specific
18096 cursor. It is OK for the caller to destroy the GdkCursor (and thus
18097 also its Windows cursor) after calling this function. Destroy any
18098 previous window-specific cursor.
18100 Mon Jul 3 17:54:49 2000 Owen Taylor <otaylor@redhat.com>
18102 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
18103 font charset is iso8859-1, not iso-8859-1.
18105 Mon Jul 3 17:08:14 2000 Owen Taylor <otaylor@redhat.com>
18107 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
18108 Use g_get_charset() instead of g_get_codeset().
18110 * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h:
18111 Comment out some strdup'ing functions to keep timj
18112 happy until we finish fighting this out.
18114 Mon Jul 3 14:24:16 2000 Owen Taylor <otaylor@redhat.com>
18116 * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
18117 <= width or height.
18119 * gtk/gtktable.c (gtk_table_attach): Fix missed merge
18120 from 1.2 for parent/child states.
18122 * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
18125 * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
18126 event structures, replace with a generic axes field. Replace
18127 deviceid/sourec with GdkDevice *device.
18129 * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
18130 to extract particular axis use value from event. (Also
18131 can be used for normal X/Y.)
18133 * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
18134 allow for arbitrary number of axes, namespace everything
18135 as gdk_device_*. Replace guint32 deviceid with GdkDevice *
18138 * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}:
18139 Get rid of the gdk_input_vtable setup if favor of simply
18140 defining the functions in gdkinput-none/gxi/xfree.c in
18141 a similar fashion to the way that the port structure is
18144 * gtk/gtkdnd.c: Fix fields of synthesized button press event
18145 for new event structures.
18147 * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
18148 new device interfaces.
18150 Sun Jul 2 18:19:50 2000 Owen Taylor <otaylor@redhat.com>
18152 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
18153 set the initial text.
18155 * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
18156 gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
18157 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
18158 gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
18160 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18161 pango_layout_set_font_description to simplify.
18163 Sun Jul 2 17:43:41 2000 Owen Taylor <otaylor@redhat.com>
18165 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18166 pango_layout_set_font_description to simplify.
18168 Sun Jul 2 17:06:40 2000 Owen Taylor <otaylor@redhat.com>
18170 * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
18171 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
18172 pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
18174 * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
18175 PANGO_PIXELS() macro.
18177 Sun Jul 2 15:24:41 2000 Owen Taylor <otaylor@redhat.com>
18179 * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
18180 that returns a PangoContext owned by the widget and updated to
18181 match future changes in the widget. Also, make
18182 gtk_widget_create_pango_layout() use this context. If we ever
18183 add a ::changed signal to PangoContext, this will make things
18184 much more convenient.
18186 * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
18187 in the appropriate places instead of destroying the layouts and
18190 * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
18191 in a few strategic places.
18193 Sun Jul 2 14:37:58 2000 Owen Taylor <otaylor@redhat.com>
18195 * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call
18196 gtk_widget_size_request() on reparented child, if one. Otherwise,
18197 queue_resize() on the child never results in it getting size-requested
18200 * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
18201 in option menus, so that (with luck) people won't copy it into
18202 their apps in the future.
18204 * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
18205 to gtk_option_menu_calc_size. This isn't perfect, but should fix
18206 a lot of problems with changing the size of the menu's menu
18207 items after adding it to the option menu.
18209 * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
18211 * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
18212 the text direction for a widget changes.
18214 * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
18215 ::direction_changed to get rid of various hacks.
18217 Sun Jul 2 13:19:12 2000 Owen Taylor <otaylor@redhat.com>
18219 * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
18222 Sun Jul 2 13:06:26 2000 Owen Taylor <otaylor@redhat.com>
18224 * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
18225 flag to the structure. Do not call XFreePixmap on pixmaps created
18226 by gdk_pixmap_foreign_new().
18228 Sun Jul 2 12:45:50 2000 Owen Taylor <otaylor@redhat.com>
18230 * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
18231 value using GdkRGB functionality given GdkColormap and GdkColor.
18232 (name not final, waiting for inspiration.)
18234 * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
18235 set the foreground/background of a GC using the GC's colormap
18236 and GdkRGB. (name not final, waiting for inspiration.)
18238 * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
18239 gdk_rgb_get_cmap(), put #define in gdkcompat.h.
18241 * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
18242 gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
18243 purely a function of the corresponding colormap. Make
18244 gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
18246 * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
18247 gdk_pixbuf_*create_from_xpm_* in terms of
18248 gdk_pixbuf_new_from_xpm_data(), move into platform independent
18251 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
18252 advantage of the new draw_rgb_32_image_dithalign.
18254 * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
18256 * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
18257 on each created GC.
18259 * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
18261 * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
18262 which we initialize from the drawable when the GC is created,
18263 if the drawable has a colormap.
18265 * gdk/x11/gdkgc-x11.c: include string.h for memset.
18267 * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
18269 * gtk/gtklayout.[ch]: Remove unsed configure serial member.
18271 Sat Jul 1 16:28:32 2000 Owen Taylor <otaylor@redhat.com>
18273 * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
18274 actually returning expose events, make sure to set
18275 the count field properly.
18277 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
18278 accidentally reintroced bug which always cleared
18279 the graphics_exposures value.
18281 Wed Jun 28 18:03:09 BST 2000 Tony Gale <gale@gtk.org>
18283 * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
18285 Wed Jun 28 17:49:05 BST 2000 Tony Gale <gale@gtk.org>
18287 * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
18289 Wed Jun 28 13:31:55 BST 2000 Tony Gale <gale@gtk.org>
18291 * docs/faq/gtk-faq.sgml: Start of Section 6.
18293 Mon Jun 26 19:37:04 2000 Owen Taylor <otaylor@redhat.com>
18295 * configure.in: Put 1.3.1 in warning message, not 1.3.0.
18297 (Fixes problem with drawing childless frames. Pointed out
18298 by and a first patch from Anders)
18300 * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
18301 compute a child_allocation, even if we don't have a child.
18303 * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
18304 Always chain to the parent's impl, even if we don't have a child.
18306 Mon Jun 26 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
18308 * gdk/gdkrgb.c: If possible, create only a single shm segment and
18309 use multiple parts of it instead of creating a bunch of separate
18310 segments, since the maximum number of segments per system is not
18311 large. (This might be worth backporting to GTK+-1.2.x if we make a
18314 * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
18315 structure in preparation for per-colormap GdkRGB.
18317 * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
18318 to False when we get EINVAL from shmget so that the caller of
18319 gdk_image_new can retry with a smaller segment size.
18321 Mon Jun 26 13:01:16 BST 2000 Tony Gale <gale@gtk.org>
18323 * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
18325 Fri Jun 23 17:54:23 2000 Tim Janik <timj@gtk.org>
18327 * configure.in: make the current version number 1.3.1 (binary age 0,
18330 * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
18331 gtkcompat.h is all we want.
18333 * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
18334 GLib primitive types. fixed g_type_register_fundamental() argument
18337 * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
18340 * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
18341 object code cleanup, comment trigraph fixes, etc...
18343 2000-06-23 Havoc Pennington <hp@redhat.com>
18345 * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark
18346 instead of making up a bogus name for first_para_mark
18348 * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow
18351 Thu Jun 22 17:43:51 BST 2000 Tony Gale <gale@gtk.org>
18353 * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
18355 2000-06-21 Havoc Pennington <hp@pobox.com>
18357 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
18358 we didn't check window->bg_pixmap != GDK_NO_BG.
18360 * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
18363 Thu Jun 22 14:02:19 BST 2000 Tony Gale <gale@gtk.org>
18365 * docs/faq/gtk-faq.sgm: Move file to here.
18366 TODO: Update Makfile.am
18368 Thu Jun 22 13:41:09 BST 2000 Tony Gale <gale@gtk.org>
18370 * docs/gtk-faq.sgm: Add Section 2
18372 Thu Jun 22 08:43:45 BST 2000 Tony Gale <gale@gtk.org>
18374 * docs/gtk-faq.sgm: New file. Start of DocBook
18375 version of the FAQ.
18377 Wed Jun 21 23:04:17 2000 Owen Taylor <otaylor@redhat.com>
18379 * configure.in (GDK_PIXBUF_MAJOR): Define version
18380 numbers for GDK_PIXBUF_*, as they get substituted
18381 into a header file. Need to consider versioning
18382 for gdk-pixbuf more carefully later.
18384 2000-06-21 Raja R Harinath <harinath@cs.umn.edu>
18386 Work with srcdir != builddir.
18387 * demos/testanimation.c: Don't include "gdk-pixbuf.h". Use
18388 <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
18389 * demos/testpixbuf.c: Likewise.
18390 * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
18391 * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h". Use
18393 * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h". Don't include
18395 * demos/Makefile.am (INCLUDES): Remove unneeded directories.
18397 Wed Jun 21 19:45:02 2000 Owen Taylor <otaylor@redhat.com>
18399 * TODO.xml: Change 1.4 version numbers to 2.0.
18401 Wed Jun 21 19:29:08 2000 Owen Taylor <otaylor@redhat.com>
18403 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
18404 fixups to GTK+ standard.
18406 Wed Jun 21 16:38:13 2000 Owen Taylor <otaylor@redhat.com>
18408 * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
18411 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
18412 fixups for GObject.
18414 * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
18415 gdk-pixbuf with GDK dependencies moved into GDK.
18417 * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
18418 move gdk-pixbuf-loader here until GObject has signals.
18420 * demos/: New directory of demos. Move demos from
18423 * demos/pixbuf-init.c: Small bit of code to check for
18424 loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
18425 set GDK_PIXBUF_MODULEDIR appropriately.
18427 * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
18428 define which no longer makes sense.
18430 2000-06-21 Havoc Pennington <hp@redhat.com>
18432 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
18433 gtk_get_default_language
18435 * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language):
18436 new function to get the default language
18438 * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c:
18439 s/gtk_text_view_style_values/gtk_text_style_values/
18441 * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
18442 Add a "language" field to tags.
18444 (gtk_text_tag_set_arg): Fix bug in setting
18445 "bg_full_height_set" tag.
18447 2000-06-21 Havoc Pennington <hp@redhat.com>
18449 * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
18452 * gtk/gtktexttypes.c: Remove UTF functions, use glib
18453 stuff instead when possible.
18455 * gtk/gtktexttypes.h: Delete some unused constants
18457 * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
18458 testtextbuffer.c: use glib instead of custom unicode routines
18460 Wed Jun 21 12:50:58 2000 Owen Taylor <otaylor@redhat.com>
18462 * docs/es/: Removed mistakenly added generated sgml
18464 * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
18465 Remove outdated info files.
18467 * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
18468 Moved tutorial files into subdir
18470 * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
18473 * docs/man/gtk_button.pod: Remove. (contents will be
18474 integrated into gtk-reference button page.)
18476 * configure.in docs/Makefile.am docs/tutorial/Makefile.am
18477 docs/faq/Makefile.am: Adjust for new organization
18479 2000-06-21 Christopher Blizzard <blizzard@redhat.com>
18481 * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
18482 not $(MKINSTALLDIRS)
18484 Wed Jun 21 12:24:28 2000 Owen Taylor <otaylor@redhat.com>
18486 * gtk/testgtk.c (create_text): Finish the job Elliot started
18487 of removing font setting test for text widget. (Since text widget
18488 and GdkFont are not deprecated, and cause portability problems.)
18490 Wed Jun 21 11:41:43 2000 Owen Taylor <otaylor@redhat.com>
18492 * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
18493 gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
18494 Remove use of libunicode in favor of new GLib functions.
18496 * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
18497 nano-x, framebuffer. The X11 include is just a hack until we get
18498 the necessary functions in gdkcolor.h, so there is no reason to
18499 add other includes of platforms.
18501 * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert
18502 window bigger than the screen change.
18504 * gtk/testgtk.c: Revert some random changes from Elliot
18505 that had no particular point and were causing testgtkrc
18506 not to function correctly.
18508 * gdk/gdkregion-generic.h: Revert change from Elliot. Just
18509 because GdkSegment and GdkRegionBox have the same fields,
18510 it doesn't mean that 'typedef GdkSegment GdkRegionBox'
18511 results in clearer code.
18513 * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
18514 gdk_input_translate_coordinates): Fix missed GdkObjectification
18516 2000-06-18 Elliot Lee <sopwith@redhat.com>
18518 * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
18519 * gtk/gtk{plug,socket}.h: Missed commits from previous.
18521 2000-06-20 Havoc Pennington <hp@redhat.com>
18523 * modules/linux-fb/Makefile.am: Make this compile
18524 without framebuffer enabled
18526 * gdk/linux-fb/Makefile.am: Add conditional to not build
18527 framebuffer unless specified in configure
18529 * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
18530 the size of the target instead of source if -1 was passed for
18533 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
18534 width/height confusion.
18536 2000-06-19 Havoc Pennington <hp@redhat.com>
18538 * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
18539 GDK_DRAWABLE_XID. In the future, we probably want to make it
18540 faster with G_DISABLE_CHECKS turned on.
18542 2000-06-14 Havoc Pennington <hp@redhat.com>
18544 * gdk/Makefile.am: add gdkpixmap.c
18546 * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
18547 s/gdk_image_init/_gdk_windowing_image_init
18549 * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
18552 * gdk/gdkcolor.h: make GdkColormap a GObject subclass
18554 * gdk/gdkcompat.h: remove GdkWindowType compat, since
18555 GdkWindowType is now non-deprecated;
18556 change gdk_window_get_type() compat to be
18557 gdk_window_get_window_type().
18559 * gdk/gdkdnd.h: make GdkDragContext a GObject.
18561 * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
18562 virtual GObject. Make all functions call into the vtable.
18563 Move gdk_image_put() guts in here. Remove GdkDrawableType
18564 and gdk_drawable_get_type(), these are now GdkWindow-specific.
18565 draw_image, get_depth, get_size, set_colormap, get_colormap,
18566 get_visual added to the vtable.
18568 * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
18569 GObject. Virtualize everything.
18570 (gdk_gc_new_with_values): remove check for destroyed window,
18571 because now GdkWindow::create_gc will check this.
18572 (gdk_gc_set_values): New function to set GC values, this
18573 was already implemented but wasn't in the header
18575 * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
18577 * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
18578 _gdk_window_draw_image(), remove _gdk_windowing_window_class,
18579 remove _gdk_window_class; add _gdk_window_impl_get_type() and
18580 _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
18581 _gdk_windowing_window_init, rename gdk_image_init to
18582 _gdk_windowing_image_init.
18584 * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
18585 (gdk_draw_layout): Remove check for destroyed window,
18586 because all the drawable methods already check it.
18588 * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
18589 Add gdkpixmap.c which contains implementation of GdkDrawable
18590 virtual table (by chaining to a platform-specific implementation
18593 * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
18594 GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
18595 GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
18596 GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
18597 GdkColormapPrivate.
18599 * gdk/gdktypes.h: #include <glib-object.h>
18601 * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
18602 Move most functionality to platform-specific implementation
18603 object. GdkWindow itself now handles the backing store, then
18604 chains to the platform-specific implementation.
18605 (gdk_window_get_window_type): return GdkWindowType of the window.
18606 (gdk_window_peek_children): New routine, returns the children of
18608 (gdk_window_get_children): Was in X11-specific code and did
18609 XQueryTree. Changed to simply return a copy of window->children;
18610 so it can go in cross-platform code.
18612 * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
18614 * gdk/x11/gdkcolor-x11.c: implement X-specific parts of
18615 GdkColormap; just changed to use the new private data instead
18616 of casting to GdkColormapPrivate.
18618 * gdk/x11/gdkcursor-x11.c: added a couple typechecks to
18621 * gdk/x11/gdkdnd-x11.c: Change the way we access private fields
18622 (private data member in the GObject).
18623 (xdnd_manager_source_filter): Function had broken
18624 error handling, fix it (use gdk_error_trap_push).
18626 * gdk/x11/gdkdrawable-x11.c: This file now implements
18627 a base class for GdkWindowImplX11/GdkPixmapImplX11. This
18628 base class is purely for the convenience of the X port,
18629 and not part of the interface to cross-platform GDK.
18631 * gdk/x11/gdkevents-x11.c: Reflect various renamings.
18633 * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
18634 specific to X, and returned by the create_gc virtual method
18635 of GdkDrawableImplX11.
18636 (gdk_x11_gc_set_dashes): Change this to take an array of gint8
18637 rather than gchar, this was also changed in the GdkGC vtable.
18638 (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
18639 mask is 0, return immediately, instead of checking every flag.
18640 This is faster, and keeps us from segfaulting if values is NULL
18641 and the mask contains some nonzero flags.
18643 * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
18646 * gdk/x11/gdkglobals-x11.c: change type of grab window, since
18647 GdkWindowPrivate is gone.
18649 * gdk/x11/gdkim-x11.c: rename things that got renamed.
18651 * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
18652 remove the image_put stuff that got transferred to GdkDrawable.
18654 * gdk/x11/gdkinput.c: renamings
18656 * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
18658 * gdk/x11/gdkpixmap-x11.c: GObject conversion
18660 * gdk/x11/gdkprivate-x11.h: indentation fixes
18662 * gdk/x11/gdkproperty-x11.c: renamings
18664 * gdk/x11/gdkselection-x11.c: renamings
18666 * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
18667 implements the platform-specific "impl" object.
18668 Moved gdk_window_get_children to gdk/gdkwindow.c
18670 * gdk/x11/gdkx.h: Remove all the private structs and private datas
18671 that no longer exist. Add declaration of GdkGCX11 object here.
18672 Fix all the macros to still work.
18674 * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
18675 GdkDragContext from the boxed types since they are now GObjects.
18677 * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
18678 moved xthickness/ythickness into the instance. GtkStyleClass
18679 functions are now in the standard vtable for GtkStyle, so you have
18680 to create a GObject subclass to write a theme engine.
18681 (gtk_style_copy): fixed a leaked PangoFontDescription
18682 (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
18683 can be the standard GObject function.
18686 s/style->klass->[xy]thickness/style->[xy]thickness
18687 s/pango_layout_unref/g_object_unref/
18689 * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
18691 * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
18692 accessing GDK internals.
18694 * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
18695 accessing GDK internals.
18697 2000-06-18 Elliot Lee <sopwith@redhat.com>
18699 * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
18701 * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
18702 problem by calculating event position relative to the trough
18703 rather than the slider.
18704 * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
18706 * gdk/gdkgc.h: Add GDK_NOR.
18708 * configure.in, Makefile.am: Add modules top level dir
18709 * configure.in: Only use pangox library if building x11 target.
18710 * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
18712 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
18714 * gtk/gtkcolorsel.c: Change private class member to be named
18715 private_data throughout the file.
18717 * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
18718 private_data to avoid clashing with keyword.
18720 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
18722 * gdk/gdkdnd.h: Add comment to remove warning.
18724 Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
18726 * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
18727 Byelorussian language; changed the Makefile and file names
18730 Mon Jun 12 16:58:40 2000 Owen Taylor <otaylor@redhat.com>
18732 * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
18733 rather than gdk_window_hide; this makes things work
18734 correctly if the window is programmatically hidden while
18737 Sun Jun 11 12:46:19 2000 Owen Taylor <otaylor@redhat.com>
18739 * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
18740 cut and paste typo where wrong pixmap was being
18741 unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
18743 Sun Jun 11 10:22:36 2000 Owen Taylor <otaylor@redhat.com>
18745 * gtk/gtkselection.c (gtk_selection_bytes_per_item):
18746 Add helper function to compute format / bytes
18747 relationship. Use in a couple places to fix up
18748 errors which assume 8 * format.
18750 * gtk/gtkselection.c (gtk_selection_request): Use 32
18751 rather than 8 * sizeof (GdkAtom), to work correctly
18754 Thu Jun 8 21:54:51 2000 Christopher Blizzard <blizzard@redhat.com>
18756 * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
18758 (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
18761 * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
18762 checking macros return NULL since the function has a return value.
18764 Wed Jun 7 15:44:42 2000 Owen Taylor <otaylor@redhat.com>
18766 * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
18767 GTK+ from building at all.
18769 * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
18771 Mon Jun 5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
18773 * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
18774 gtk/Makefile.am: make it possible to configure gtk for different
18775 targets on the same platform. The library name is now
18776 libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
18777 flag. Only the x11 target compiles right now.
18778 * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
18779 gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
18780 * gdk/nanox/gdk*generic*: delete generic region code.
18781 * gdk/linux-fb/gdk*generic*: delete generic region code.
18782 * README.nanox: update information.
18784 Tue Jun 6 10:53:59 2000 Owen Taylor <otaylor@redhat.com>
18786 * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
18787 prepend not append. (Pointed out by Brett Hall.)
18789 Tue Jun 6 01:59:57 2000 Owen Taylor <otaylor@redhat.com>
18791 * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
18793 Mon Jun 5 16:00:09 2000 Owen Taylor <otaylor@redhat.com>
18795 * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
18796 need this later, and this makes sure that the atexit for
18797 glib gets called after that for GDK, so atexits are
18798 properly ordered for object leak checking.
18800 * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
18802 * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call
18803 pango_x_shutdown_display()
18805 * gtk/simple.c (main): Close window on destroy.
18807 Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
18809 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
18810 to treat initial creation different from setting with
18811 regards to the graphics-exposures parameter, so add a parameter
18812 indicating whether this is initial or not.
18814 Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
18816 * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
18817 to sort of work by adding an extra return_exposes arg
18818 to gdk_event_translate() - it might be better to simply
18819 deprecate the function altogether and force people to rewrite
18820 without it. gdk_window_scroll() handles most of it, and where
18821 gdk_window_scroll() doesn't work, simply redrawing more does.
18823 * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
18826 * gtk-config.in: Include PANGO_CFLAGS/LIBS.
18828 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
18829 bunch of pretty much useless /* Print debugging info */ comments
18830 which had drifted away from the code they were commenting.
18832 2000-06-02 Havoc Pennington <hp@pobox.com>
18834 * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
18835 is in working order.
18837 * gtk/testtext.c: Change to reflect anonymous mark API
18839 * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
18841 * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
18842 field, which was unused.
18844 * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
18847 * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*
18849 * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
18850 flag on the insertion point and selection bound
18852 Throughout, use GtkTextMark instead of GtkTextLineSegment, and
18853 make mark-manipulation functions take a GtkTextMark* instead of a
18856 * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to
18857 GtkTextMarkBody; will be used to detect attempts to delete
18858 the permanent marks (insert and selection bound)
18860 * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer
18862 Fri Jun 2 12:56:01 2000 Owen Taylor <otaylor@redhat.com>
18864 * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
18867 * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event):
18868 Honor DOUBLE_BUFFRED_FLAG
18870 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
18871 function to set the DOUBLE_BUFFERED flag.
18873 * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
18874 or not exposes done on the widget should be double-buffered.
18876 * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
18877 to be what would be expected. (Fixes problem with a
18878 g_return_if_fail() validating a TextDirection enumeration)
18880 Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
18882 * gtk/gtkwidget.c: Remove all references to
18883 offscreen flag which was no longer used.
18885 * gtk/gtkprivate.h (enum): Remove unused flags and compress.
18887 * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
18888 for non-null label_widget->parent.
18890 * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
18891 which no longer was used.
18893 * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
18895 * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
18896 for null arguments.
18898 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
18899 check for destroyed windows.
18901 Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
18903 * gtk/gtkimmulticontext.c: Add a finalize method and unref
18904 the slave context there.
18906 * gtk/gtkinvisible.[ch]: Make reference counting behavior
18907 identical to GtkWindow.
18909 Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
18911 * Makefile.am gdk/gdkpango.c: Copy the layout render function from
18912 pangox to here, so we can write them independent of rendering
18913 system, using GDK primitives.
18915 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
18916 gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
18917 since we have a rendering-system independent implementation in
18918 terms of draw_glyphs().
18920 * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
18921 function to render a single line.
18923 * gdk/x11/gdkpango.c: Move the guts of this file mostly
18924 into ../gdkpango.c, which simplifies things, since we
18925 don't have to deal with raw X gc's.
18927 Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
18929 * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
18930 get the logical attributes for a given GtkTextLine.
18932 Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
18934 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
18935 g_locale_get_codeset() to g_get_codeset() change.
18937 Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
18939 * gtk/testcalendar.c (calendar_font_selection_ok): Use font
18942 * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
18945 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
18946 redoing (vastly simplifying) for Pango. Still needs quite
18947 a bit of work. (Size selection is currently poor. List of
18948 predefined sizes is not a good idea, since all of these
18949 sizes won't necessarily be distinct.)
18951 Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
18953 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
18954 CODESET results for LANG=C.
18956 Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
18958 * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
18959 which takes a stringized pango font description;
18960 ignore the older 'font' and 'fontset' declarations.
18962 * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
18963 field with a GdkFont derived via gdk_font_from_description(),
18964 for compatibility. (Should we just remove it entirely?
18965 Probably too much compatibility breakage, but people
18966 should be migrating to the new Pango stuff as quickly
18969 Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
18971 * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
18973 Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
18975 * gtk/gtkcalender.c: Roughly pango-ized. Really needs
18976 redoing; there are some bugs in size allocation right
18977 now, the semi-existant distinction between header / day
18978 fonts was removed, but, with Pango, could actually
18979 be made functional in a nice way.
18981 * gtk/testcalender: Move calender from examples into this
18982 directory as a test program. (We really need to restrcture
18983 testgtk into a whole directory full of tests for every
18984 widget or functionality group, separated into multiple .c
18987 Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
18989 * gtk/testgtk.c (file_exists): Fix stupid typo that
18990 was keeping RC file from being loaded.
18992 * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
18995 Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
18997 * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
18998 Add function to load a GdkFont from a PangoFontDescription.
19000 2000-05-29 Tor Lillqvist <tml@iki.fi>
19002 * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
19003 variable should be of type GdkEventPrivate.
19005 Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
19007 * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
19008 to have any widget for the label, use a GtkLabel widget
19009 to display the text. (Based partially on a patch from
19012 (Quite a bit of code reorganization - strip 90% of the
19013 guts out of gtkaspectframe and add a single virtual
19014 func to GtkFrameClass - compute_child_allocation.)
19016 Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
19018 * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
19019 (Removed clist->row_center_offset field because caching
19020 it wasn't saving time or code, added private function
19021 _gtk_clist_create_cell_layout()).
19023 Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
19025 * gtk/gtkaccellabel.c: Pangoized.
19027 * gtk/[hv]ruler.c: Pangoized
19029 Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
19031 * gtk/gtkfilesel.c (gtk_file_selection_init):
19032 Use gtk_clist_set_column_auto_resize() to remove need
19033 need for manual column width computations.
19035 Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
19037 * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
19038 ensuring Pango correctness, and considerably simplifying the
19041 * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
19043 * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
19044 getting of numbers of lines.
19046 * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
19047 to the actual requested width of the lable, not to the wrap
19050 * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
19052 * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
19053 gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
19055 * gtk/gtktextview.c: Fix structure inheritance.
19057 * gtk/gtkprogressbar.c: Pangoize.
19059 Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
19061 * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
19064 * gtk/gtktextlayout.c (find_display_line_above): Fixed
19065 bug with computing line tops.
19067 * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
19069 Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
19071 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
19072 and y_offset coordinates to do what we need now. (The offset between
19073 buffer and layout coordinates has been reintroduced, but is a
19074 bit different than before.)
19076 * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
19077 handle the adjustments ourselves, and scroll as necessary using
19078 the new gdk_window_scroll().
19080 The advantage of this is that when we are incrementally revalidating,
19081 we are essentially rearranging things around the visible portion
19082 of the screen. With the old setup, the visible portion of the
19083 screen was moved around in the layout, so scrolling and redrawing
19084 to track that caused jumping of the display. Since we now
19085 control the scrolling ourselves, we can suppress this and
19086 only redraw when things actually change.
19088 Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
19090 * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
19091 the region not just redisplay it after-all, since we store the
19092 cursors in the LineDisplay. (Ugly interactions here between
19093 GtkLayout and GtkTextBTree here.)
19095 * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
19097 Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
19099 * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
19100 Added function to scroll contents of a window while keeping the
19101 window constant. Works by XCopyArea or guffaw-scrolling depending
19102 on the details of how the window is set up. (guffaw-scrolling
19103 still needs to be filled in.)
19105 Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
19107 * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
19108 move the debugging that was tied to a global variable
19111 * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
19113 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
19114 validated flag, in line data instead of setting height/width to
19115 -1. This allows us to perform operations with partially invalid
19116 buffer (using the old size for invalid lines) and thus to do
19117 incremental vaidation. Keep height/width aggregates up to date
19118 when deleting text and rebalancing the tree.
19120 * gtk/gtktextbtree.[ch]: Add functions validate a line
19121 (gtk_text_btree_validate_line), and to validate up
19122 to a number of pixels (gtk_text_btree_validate).
19124 * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
19125 that indicates that something is changed and a revalidation
19126 pass is needed. Change ::need_repaint to ::changed, and
19127 make it take old and new yranges instead of a rectangle.
19129 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
19130 the line_data_destroy() function from
19131 gtk_text_btree_add_view() to a virtual function in
19134 * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
19135 since we are handling partial repaints in a different fashion
19138 * gtk/gtktextbtree.[ch]: Only repaint the changed portion
19139 of the selection instead of queueing a repaint on the
19142 * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
19143 get_selection_bounds() down to btree, make the function
19144 in buffer a wrapper around the btree function.
19146 * gtk/gtktextlayout.[ch]: Add functions to check if the
19147 layout is valid and to recompute either a range of pixels
19148 aroudn a line or a certain total number of pixels.
19150 * gtk/gtktextlayout.[ch]: Cache a single line display;
19151 now that we only redraw the needed portions, the hit rate
19152 for this cache is quite high.
19154 * gtk/gtktextview.[ch]: Keep track of the first paragraph
19155 on the screen so that when re-laying-out the buffer, we can
19156 keep the same place. This requires connecting to ::value_changed
19159 * gtk/gtktextview.[ch]: Add idle functions to revalidate
19160 the buffer after we receive an ::invalidated signal.
19162 Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
19164 * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
19165 to max of allocation and layout size, not just to the
19168 * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
19169 Invalidate window so it gets redrawn properly.
19171 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
19172 to mean the entire window.
19174 * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
19175 into public header.
19177 Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
19179 * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
19180 to get the name of a mark.
19182 * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
19183 to find the paragraph from a y position.
19185 Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
19187 * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
19188 nodes have width/height >= 0, not > 0.
19190 Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
19192 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
19193 Add a size_only flag, so when we only need the size, we don't create
19194 useless appearance attributes.
19196 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
19197 duplicate setting of font description.
19199 * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
19201 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
19203 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
19204 EXTRA_DIST. It does not work well when the file that
19205 everything depends on is not in the tarball.
19207 Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
19209 * gtk/testgtk.c: Some hacks and fixes so that it basically
19210 works when not sitting in the GTK+ build tree.
19212 2000-05-03 Havoc Pennington <hp@redhat.com>
19214 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
19215 Properly determine the ordering of the tag root and the current
19216 line within the tree. Previous algorithm only worked if the tag
19217 root's immediate parent was the common root of both the current
19218 line and the tag root.
19220 Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
19222 * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
19225 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
19226 the widget text directional dynamically.
19228 * gtk/gtktextview.[ch]: Added functions to get and set default
19231 Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
19233 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
19234 in cursor location computation.
19236 Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
19238 * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
19239 vadjusment values properly when layout gets smaller.
19241 * gtk/gtktextview.c (need_repaint_handler): Areas being
19242 passed in are far completely inaccurate, and sometimes
19243 too small, so, for now, just queue a redraw on the
19244 whole visible region.
19246 2000-04-25 Havoc Pennington <hp@redhat.com>
19248 * gtk/gtktextbtree.c (summary_destroy): new function to
19249 destroy tag summary nodes
19250 (gtk_text_line_next_could_contain_tag): this function was
19251 totally broken if the line passed in wasn't below the tag
19253 (gtk_text_btree_first_could_contain_tag): In the tag == NULL
19254 "wildcard" case, we have to do a linear scan. Blah.
19255 (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
19256 we have to do the linear scan
19257 (tag_removed_cb): When a tag is removed from the tag table,
19258 remove the GtkTextTagInfo node from the btree.
19259 (gtk_text_btree_spew): Implement the spew function, for
19260 our debugging pleasure.
19262 Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
19264 * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
19265 a problem with referring to the wrong buffer.
19267 * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
19269 * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
19270 font description to gtk_style_new() - otherwise things
19271 don't work without a .gtkrc file.
19273 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
19274 tags table if we create it ourself, too.
19276 * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
19277 it was conflicting with XKB modifiers.
19279 * gtk/gtktextview.[ch]: Add simple support for
19282 Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
19284 * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
19285 with deletion from last commit.
19287 Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
19289 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
19290 in the context from the current locale.
19292 * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
19293 context, not hardcoded value.
19295 * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
19298 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
19300 * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
19301 attributes - that doesn't handle partial-glyph selection
19302 properly. Instead use new pango_layout_line_get_x_ranges()
19303 functionality to draw the selection.
19305 * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
19306 now properly handles out-of-range coordinates.
19308 * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
19310 * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
19313 * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
19314 for paragraphs opposite to the base direction of the widget.
19316 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
19318 * gtk/gtktextlayout.c: Don't split segments on marks, since that
19319 causes Arabic words to reshape as you cursor through.
19321 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
19322 cursor position when moving vertically with the arrow keys and
19323 scrolling with page-up/page-down. (Arrow keys save only the X,
19324 scrolling saves both X and Y.)
19326 This means you can line-up / line-down or page-up / page-down
19327 without losing your place, and also that moving vertically
19328 with the cursor keys keeps the same X position, not the same
19331 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
19332 arrow keys move by display lines, not paragraphs.
19334 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
19336 * gtk/gtklayout.c: Make sure that the bin window is at least
19337 as big as the allocation. (Should we also make sure that the
19338 bin window is big enough to completely cover widget->window?)
19340 * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
19341 function to get the onscreen rectangle.
19343 * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
19344 for offsets in window coordinates.
19346 Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
19348 * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
19351 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
19352 from the widget direction.
19354 * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
19355 Add a "direction" attribute.
19357 * gtk/gtktextview.c: global s/tkxt/text_view/.
19359 * gtk/testtext.c: Added long block of text in Arabic, to test out
19360 the direction attributes. (Some problems with the shaping system
19361 for arabic become obvious - like the fact the cursor splits words
19362 into unjoined pieces.)
19364 Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
19366 * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
19368 * gtk/gtktextlayout.c: Fix up alignment.
19370 * gtk/testtext.c: Add some tests for centering, wrapping.
19372 Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
19374 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19375 Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
19376 If we wrote GTK+-specific layout-render function this could just replace
19377 the draw_layout() operation in the vtable.
19379 * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
19380 pango_layout_get_cursor_pos() and use that function.
19382 * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
19383 is a non-static symbol.
19385 * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
19386 with gtk_text_btree_find_line_by_y()
19388 * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
19389 renderer that handles GtkTextAppearance attributes.
19391 * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
19393 - Move the values in the style that don't affect geometry into a
19394 GtkTextAppearance structure.
19395 - Change underline to take a PangoUnderline and "font" a string
19396 representation of a font description
19397 - Add a "font_desc" attribute which takes a FontDescription structure.
19399 * gtk/gtktextlayout.[ch]:
19401 - Get rid of the display-line list per each line. Instead, we
19402 generate, on demand, a GtkTextLineDisplay structure which]
19403 contains a PangoLayout * and other necesary information
19404 (offsets, cursor locations) for displaying a paragraph.
19405 - Get rid of the code to wrap lines, create display chunks,
19406 etc. Instead, we just go through a paragraph and convert
19407 it into the necessary inputs to a PangoLayout.
19408 - Implement a new attribute type, GtkTextAttrAppearance. This
19409 holds a GtkTextAppearance, and is used to pass colors,
19410 stipple, etc, through from the layout to the display without
19411 having to use lots and lots of individual attributes.
19412 - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
19413 in terms of PangoLayout functions.
19415 * gtk/gtktextview.c:
19417 - Handle passing the necessary PangoContext to the layout
19418 - Some fixups in painting to deal with the automatic backing store
19419 and offsetting of GTK+-1.4
19420 - Add a style_set handler so that the default style reacts
19421 properly to theme changes.
19423 * gtk/gtktext?*.[ch]: Random code-style fixes.
19425 * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
19427 Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
19429 * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
19430 in original form preparatory to Pango-ization and gdkimcontext-ization.
19432 Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
19434 * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
19435 so that we can derive from gtkimcontext in language bindings properly.
19437 Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
19439 * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
19440 Add a compose table including (almost) all the compose combinations
19441 from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
19442 data in the XIM implementation.
19444 * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
19445 Moved functions to convert keyvalues from and to unicode here from
19446 the win32 port and made them public.
19448 Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
19450 * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
19452 Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
19454 * gtk/gtkimcontext.[ch]: Base class for new input context system
19456 * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
19457 the real input context implementation to be loaded from modules
19458 and switched on the fly.
19460 * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
19461 context that just does direct keysymbol => unicode translation.
19463 * gtk/gtkentry.[ch]: Start switching editing over to using
19464 GtkInputContext. (No handling of preedit yet.)
19466 Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
19468 * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
19469 many substitutions. (klass should not be subsituted.)
19471 Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
19473 * configure.in: Add checks for Pango
19475 * configure.in docs/Makefile.am: Add test for sgml2html
19476 and allow 'make dist' without building html, but print out
19477 warnings in that case. (For making snapshots)
19479 * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
19480 Add Pango libraries and C flags
19482 * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19483 Add function (gdk_draw_layout) to draw a pango layout.
19485 * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
19486 for getting Pango contexts for GDK.
19488 * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
19490 * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
19493 * gtk/gtkentry.c: Hack in simple Hebrew input with direct
19494 keysym => unicode translations. More languages can be added
19495 here, but real input-method support is needed.
19497 * docs/Changes-1.4.txt: Added note about entry behavior.
19499 * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
19500 to set the reading direction for a widget and the global direction.
19501 Add test which allows toggling the global direction. Two private
19502 flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
19504 * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
19505 gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
19507 * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
19509 * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
19510 underlining now handled by Pango.
19512 * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
19513 to RCStyle and Style. (Having both this and the old font name and GdkFont
19516 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
19517 convenience functions for creating contexts and layouts for widgets.
19519 * gtk/testgtk.c: Enhance label tests with multilingual labels.
19521 2000-05-29 Jonathan Blandford <jrb@redhat.com>
19523 * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
19524 titles to be active, even if they aren't visible.
19525 (gtk_clist_column_titles_passive): Ditto.
19527 2000-05-21 Nils Barth <nils_barth@post.harvard.edu>
19531 * gtktypeutils.h: Spelling/grammar fixes in comments.
19533 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
19535 * gdk/nanox/*.h: add missing header files.
19537 Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
19539 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
19540 send_event to TRUE.
19541 (gtk_drawing_area_size): queue a resize.
19543 Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
19545 * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
19546 the handlers, also invalidate them. bug nailed down by Karl Nelson
19547 <kenelson@ece.ucdavis.edu>.
19549 Fri May 19 06:49:23 2000 Tim Janik <timj@gtk.org>
19551 * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
19552 "(nil)" foundries, patch from Grigorios Magklis.
19554 * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
19555 on non-available fonts, based on a patch by Grigorios Magklis
19556 <maglis@cs.rochester.edu>.
19558 2000-05-18 Elliot Lee <sopwith@redhat.com>
19560 * gdk/x11/gdkregion-generic.c: If a region does not have any
19561 rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
19562 instead of GDK_OVERLAP_RECTANGLE_IN.
19564 2000-05-17 Jonathan Blandford <jrb@redhat.com>
19566 * gtk/gtklayout.c (gtk_layout_map): Remove references to
19567 OFFSCREEN, as it is no longer necessary.
19569 Wed May 17 10:52:12 2000 Owen Taylor <otaylor@redhat.com>
19571 * gtk/gtkcolorsel.c: Patch from David Santiago
19572 <mrcooger@cyberverse.com> to change things so that the
19573 indicator of the active palette entry is done independently,
19574 not via the focus, since it should always be visible.
19576 2000-05-17 Tor Lillqvist <tml@iki.fi>
19578 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
19579 refcount leaks as in the X11 backend.
19581 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
19584 * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
19585 backend. Add _gdk_windowing_window_destroy().
19587 * gtk/gtkcolorsel.c: Include correct backend-specific header.
19588 Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
19589 either, but these probably do exist on nanox?)
19591 * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
19592 which isn't necessarily defined by <math.h>.
19594 * gtk/gtkobject.c (gtk_object_init): Don't go up the class
19595 ancestry past GtkObject.
19597 * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
19600 * gtk/gtk.def: Update corresponding to recent changes.
19602 * gtk/makefile.{cygwin,msc}: Updates.
19604 Fri May 12 18:46:51 2000 Owen Taylor <otaylor@redhat.com>
19606 * docs/Changes-1.4.txt: A bit of editing.
19608 * gdk/gdkwindow.c (_gdk_window_clear_update_area)
19609 * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
19610 to clear the update area for the window, and clear it
19611 when hiding a window.
19613 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
19614 if window destroyed.
19616 * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
19618 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
19619 gdk_window_destroy() to the generic code, since there was a lot of
19620 window-system-independent logic it in. Add a function:
19622 _gdk_window_destroy()
19624 to the internal API to destroy a window without unreferencing it.
19627 _gdk_windowing_window_destroy()
19629 That does the windowing-system-dependent part of destroying
19632 Fri May 12 11:07:41 2000 Owen Taylor <otaylor@redhat.com>
19634 * gtk/testgtk.c: Fix various memory leaks of pixmaps.
19636 Fri May 12 11:06:10 2000 Owen Taylor <otaylor@redhat.com>
19638 * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
19639 Make gtk_widget_shape_combine_mask() keep a reference count on
19640 the pixmap since it keeps it around.
19642 Fri May 12 10:53:29 2000 Owen Taylor <otaylor@redhat.com>
19644 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
19647 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
19648 leak with event filters.
19650 Thu May 11 14:29:44 2000 Owen Taylor <otaylor@redhat.com>
19652 * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
19653 signal handlers with the right data arguments. (Fixes
19654 some warnings when a widget was repeatedly set as a drag
19657 * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
19658 window so we can avoid avoid setting the DND properties on the
19659 toplevel window repeatedly.
19661 2000-05-13 Tor Lillqvist <tml@iki.fi>
19663 * gdk/win32/gdkwin32.h: Define more message types missing from
19666 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
19667 call gdk_window_destroy_notify(). It was never called. This
19668 probably meant that the GdkWindow was never freed. Thanks Owen for
19671 * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
19672 window as destroyed before calling DestroyWindow(). DestroyWindow()
19673 causes a call to the window procedure (gdk_WindowProc), which
19674 calls gdk_event_translate(), which calls
19675 gdk_window_destroy_notify(), which gets confused unless the window
19676 is set as destroyed.
19678 * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
19679 this function to indicate it's win32 only. Put inside #ifdef
19682 * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
19683 debugging function. (gdk_event_translate:) Add a default branch
19684 that uses the above function to print debug messages with all
19685 Windows messages symbolically.
19687 * gdk/win32/gdkprivate-win32.h: Declare it, and
19688 gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
19690 Fri May 12 20:07:32 2000 Tim Janik <timj@gtk.org>
19692 * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
19693 public header file.
19695 Fri May 12 17:13:32 2000 Tim Janik <timj@gtk.org>
19697 * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
19699 * gtk/gtktext.c: made the adjustments no-construct args, simply
19700 provide default adjustments.
19701 (gtk_text_destroy): release adjustments.
19703 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
19704 adjustment argument non-construct.
19706 * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
19707 instead of in finalize.
19708 (gtk_progress_get_text_from_value):
19709 (gtk_progress_get_current_text):
19710 (gtk_progress_set_value):
19711 (gtk_progress_get_percentage_from_value):
19712 (gtk_progress_get_current_percentage):
19713 (gtk_progress_set_percentage):
19714 (gtk_progress_configure): ensure an adjustment is present.
19716 Thu May 11 01:24:08 2000 Tim Janik <timj@gtk.org>
19718 * gtk/gtkcolorsel.[hc]:
19719 * gtk/gtkcolorseldialog.[hc]:
19720 * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
19721 their parent implementation, use bit fields for boolean values, don't
19722 create unused widgets, usage of glib types, braces go on their own
19723 lines, function argument alignment, #include directives etc. etc. etc..
19725 * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
19727 Wed May 10 23:29:52 2000 Tim Janik <timj@gtk.org>
19729 * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
19731 * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
19734 * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
19736 (gtk_combo_destroy): don't keep a pointer to a destroyed window.
19738 * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
19739 to NULL when the toplevel is getting destroyed.
19740 (gtk_menu_set_tearoff_state): same here for the tearoff_window.
19741 (gtk_menu_destroy):
19742 (gtk_menu_init): store the information of whether we have to
19743 readd the initial child ref_count during destruction in a new
19744 GtkMenu field needs_destruction_ref_count.
19746 * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
19747 here, those reading: learn from my mistake! ;)
19748 in order for set_?adjustment to support a default adjustemnt if
19749 invoked with an adjustment pointer of NULL, the code read (pseudo):
19750 if (v->adjustment) unref (v->adjustment);
19751 if (!adjustment) adjustment = adjustment_new ();
19752 if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
19753 now imagine the first unref to actually free the old adjustment and
19754 adjustment_new() creating a new adjustment from the very same memory
19755 portion. here, the latter comparision will unintendedly fail, and
19756 all hell breaks loose.
19757 (gtk_viewport_set_hadjustment):
19758 (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
19759 after unreferencing it.
19761 * gtk/gtkcontainer.[hc]: removed toplevel registration
19762 functions: gtk_container_register_toplevel(),
19763 gtk_container_unregister_toplevel() and
19764 gtk_container_get_toplevels() which had wrong semantics
19765 anyways: it didn't reference and copy the list.
19767 * gtk/gtkwindow.c: we take over the container toplevel registration
19768 bussiness now. windows are registered across multiple destructions,
19769 untill they are finalized. the initial implicit reference count
19770 users are holding on windows is removed with the first destruction
19772 (gtk_window_init): ref & sink and set has_user_ref_count, got
19773 rid of gtk_container_register_toplevel() call. add window to
19775 (gtk_window_destroy): unref the window if has_user_ref_count
19776 is still set, got rid of call to
19777 gtk_container_unregister_toplevel().
19778 (gtk_window_finalize): remove window from toplevel list.
19779 (gtk_window_list_toplevels): new function to return a newly
19780 created list with referenced toplevels.
19781 (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
19783 * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
19784 adjustment a non-construct arg.
19785 * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
19786 * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
19787 * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
19789 * gtk/gtkrange.c: added some realized checks.
19790 (gtk_range_destroy): get rid of the h/v adjustments in the
19791 destroy handler instead of finalize. remove timer.
19792 (gtk_range_get_adjustment): demand create adjustment.
19794 * gtk/gtkviewport.c: made h/v adjustment non-construct args.
19795 we simply create them on demand now and get rid of them in
19796 the destroy handler.
19797 (gtk_viewport_destroy): get rid of the h/v adjustments in the
19798 destroy handler instead of finalize.
19799 (gtk_viewport_get_hadjustment):
19800 (gtk_viewport_get_vadjustment):
19801 (gtk_viewport_size_allocate): demand create h/v adjustment
19804 * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
19805 gtk_widget_real_destroy () functionality.
19806 (gtk_widget_real_destroy): reinitialize with a new style, instead
19807 of setting widget->style to NULL.
19809 Fri May 5 13:02:09 2000 Tim Janik <timj@gtk.org>
19811 * gtk/gtkcalendar.c:
19812 * gtk/gtkbutton.c: ported _get_type() implementation over to
19813 GType, either to preserve memchunks allocation facilities,
19814 or because Gtk+ 1.0 GtkTypeInfo was still being used.
19816 * gtk/gtkobject.[hc]: derive from GObject. ported various functions
19817 over. prepare for ::destroy to be emitted multiple times.
19818 removed reference tracer magic. chain into GObjectClass.shutdown()
19819 to emit ::destroy signal.
19821 * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
19824 * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
19831 * gtk/gtkargcollector.c:
19832 * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
19833 not being a fundamental anymore, and to work with the new
19834 type system (nuked fundamental type varargs clutter).
19836 * gtk/*.c: install finalize handlers in the GObjectClass
19837 part of the class structure.
19838 changed direct GTK_OBJECT()->klass accesses to
19840 changed direct object_class->type accesses to GTK_CLASS_TYPE().
19842 * gtktypeutils.[hc]: use the reserved fundamental ids provided by
19843 GType. made most of the GTK_*() type macros and Gtk* typedefs
19844 simple wrappers around macros and types provided by GType.
19845 most notably, a significant portion of the old API vanished:
19848 GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
19849 GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
19852 GTK_TYPE_C_CALLBACK,
19856 gtk_type_set_varargs_type(),
19857 gtk_type_get_varargs_type(),
19858 gtk_type_check_object_cast(),
19859 gtk_type_check_class_cast(),
19860 gtk_type_describe_tree(),
19861 gtk_type_describe_heritage(),
19863 gtk_type_children_types(),
19864 gtk_type_set_chunk_alloc(),
19865 gtk_type_register_enum(),
19866 gtk_type_register_flags(),
19867 gtk_type_parent_class().
19868 replacements, where available are described in ../docs/Changes-1.4.txt.
19869 implemented compatibility functions for the remaining API.
19871 * configure.in: depend on glib 1.3.1, use gobject module.
19873 Thu May 11 12:39:50 2000 Owen Taylor <otaylor@redhat.com>
19875 * TODO.xml: Various updates to current status.
19877 Wed May 10 20:25:04 2000 Owen Taylor <otaylor@redhat.com>
19879 * gtk.m4: Print out version when test succeeds.
19881 Wed May 10 16:38:17 2000 Owen Taylor <otaylor@redhat.com>
19883 * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
19884 gtk/gtkhsv.[ch]: Color selection dialog rewrite.
19886 (Original triangle color selector from Simon Budig
19887 <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
19888 from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
19889 Santiago <mrcooger@cyberverse.com>)
19891 * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
19892 out into a separate widget.
19894 * gtk/testgtk.c: Add some checkbuttons for toggling palette
19895 and opacity controls.
19897 Wed May 10 16:08:09 2000 Owen Taylor <otaylor@redhat.com>
19899 * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that
19900 snuck in prematurely.
19902 2000-05-07 Tor Lillqvist <tml@iki.fi>
19904 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
19905 had deleted a ! operator by mistake, which caused
19906 GDK_SELECTION_CLEAR events never to be generated, which caused
19907 only the first copy to the clipboard from an gtkeditable to
19908 actually cause a copy to the Windows clipboard.
19910 2000-05-06 Tor Lillqvist <tml@iki.fi>
19912 * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
19913 compilation, too. Current mingw gcc distributions include the
19914 necessary headers. Also the necessary IIDs are now in mingw
19915 headers/libraries, and own definitions unnecessary.
19917 More hacking on OLE2 DND, still doesn't work though, and thus
19920 * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
19923 Sat, 6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
19925 * gdk/nanox/*: nano-X port work in progress.
19926 * gdk/simple.c: simple test for Gdk.
19927 * README.nanox: notes about the port: read this first!
19928 * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
19931 Fri May 5 11:18:47 2000 Owen Taylor <otaylor@redhat.com>
19933 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
19934 gdk_window_clear() into common code, implement in terms of
19935 gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
19936 not redirected to the backing rectangle.
19938 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
19940 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
19941 EXTRA_DIST. It does not work well when the file that
19942 everything depends on is not in the tarball.
19944 Tue Apr 25 22:20:41 2000 Owen Taylor <otaylor@redhat.com>
19946 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
19947 with recursion where process_updates() is called from
19948 an expose handler. (GtkTextView is highly broken in
19949 doing this, but it should work, so it is a nice test
19952 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
19954 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
19955 handle the case where updates are queued during processing of
19958 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
19960 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
19961 window is on gdk_display - use that instead of segfaulting.
19963 Thu May 4 02:04:46 2000 Tim Janik <timj@gtk.org>
19965 * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
19966 broken and require an empty arg, give it to them.
19968 Fri Apr 28 19:34:32 2000 Tim Janik <timj@gtk.org>
19970 * gtk/gtklabel.h: indentation fixes.
19972 2000-05-02 Tor Lillqvist <tml@iki.fi>
19974 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
19975 draw too narrow or too low arcs, they seem to fail, at least with
19976 some display drivers.
19978 * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
19980 Large changes to the Win32 backend, partially made necessary by
19981 the changes to the backend-independent internal
19982 structures. Attempts to implement similar backing store stuff as
19983 on X11. The current (CVS) version of the Win32 backend is *not* as
19984 stable as it was before the no-flicker branch was merged. A
19985 zipfile with that version is available from
19986 http://www.gimp.org/win32/. That should be use by "production"
19987 code until this CVS version is usable. (But note, the Win32
19988 backend has never been claimed to be "production quality".)
19990 * README.win32: Add the above comment about versions.
19992 * gdk/gdkwindow.c: Don't use backing store for now on Win32.
19994 * gdk/gdk.def: Update.
19996 * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
19997 presumably be replaced by some more better mechanism as 1.4 gets
19998 closer to release shape.
20000 * gdk/makefile.{cygwin,msc}: Update.
20002 * gdk/win32/*.c: Correct inclusions of the backend-specific and
20003 internal headers. Change code according to changes in these. Use
20004 gdk_drawable_*, not gdk_window_* where necessary.
20006 * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
20009 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
20010 to interpret single characters as UTF-8. Thanks to Hans Breuer.
20011 Use correct function name in warning messages.
20013 * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
20014 GSourceFuncs gdk_event_prepare and gdk_event_check.
20015 (gdk_event_get_graphics_expose): Do implement, use
20016 PeekMessage. Thanks to Hans Breuer.
20017 (event_mask_string): Debugging function to print an GdkEventMask.
20018 (gdk_pointer_grab): Use it.
20020 * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
20021 (old) book I used claimed was Hangul actually is CJK Unified
20022 Ideographs Extension A. Also, Hangul Syllables were missing.
20025 * gdk/win32/gdkgc-win32.c: Largish changes.
20027 * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
20028 g_win32_getlocale() from GLib, and not setlocale() to get current
20031 * gdk/win32/gdkprivate-win32.h
20032 * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
20033 gdkwin32.h, similarily as in the X11 backend.
20035 * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
20036 assignment was used instead of equals in if test. Thanks to Hans
20039 * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
20042 * gdk/win32/makefile.{cygwin,msc}
20043 * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
20044 path to the Win32 headers that works also with the mingw compiler.
20046 * gtk/gtkstyle.c: Include <string.h>.
20048 2000-04-26 Havoc Pennington <hp@redhat.com>
20050 * gtk/gtklabel.c (gtk_label_get_text): Add this function,
20051 replacing the broken gtk_label_get ()
20053 2000-04-15 Havoc Pennington <hp@pobox.com>
20055 * gdk/gdkdnd.h: clean up enum format, remove extra comma,
20056 this keeps scanner scripts from getting confused.
20058 * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
20059 data, rather than void
20061 2000-04-15 Tor Lillqvist <tml@iki.fi>
20063 * gtk/gtkclist.c (gtk_clist_motion)
20064 * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
20065 with is_hint FALSE, get x and y from the event. They used to be
20066 used uninitialised. The Win32 backend never sends motion events
20067 marked as hints. This for instance fixes the annoying file and
20068 font selector behaviour in the Win32 version.
20070 2000-04-14 Tor Lillqvist <tml@iki.fi>
20072 * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
20073 gtk_private_n_signals variables, they are used by some software,
20076 * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
20077 installation directory from the Registry, where the installer
20078 should have put it.
20080 Fri Apr 7 17:19:27 2000 Owen Taylor <otaylor@redhat.com>
20082 * gdk/x11/Makefile.am: Fix problem with installation directory for
20085 * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
20086 <mrcooger@cyberverse.com> so that when selecting menus with the
20087 mouse, the first item will not be selected, but when selecting
20088 with an accelerator, or navigating left-right on a menubar with
20089 the menus popped up, the first item will be selected.
20091 2000-04-05 Dan Damian <dand@dnttm.ro>
20093 * configure.in: Added "ro" to ALL_LINGUAS.
20095 Wed Apr 5 00:08:36 2000 Owen Taylor <otaylor@redhat.com>
20097 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
20100 * Makefile.am (EXTRA_DIST): Fix typo.
20102 * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
20103 to catch gdkconfig.h
20105 * gtk/gtkitemfactory.c: Added FIXME.
20107 2000-03-30 Jonathan Blandford <jrb@redhat.com>
20109 * gtk/gtkpaned.c (gtk_paned_get_position): oops.
20110 s/return_if_fail/return_val_if_fail/g and add a return value.
20112 Mon Mar 27 20:56:14 2000 Owen Taylor <otaylor@redhat.com>
20114 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up
20117 * gdk/gdkinput.h: Fix missing line from merge.
20119 Mon Mar 27 20:39:49 2000 Owen Taylor <otaylor@redhat.com>
20121 * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
20122 instead of gdkprivate.h.
20124 Sun Mar 12 15:19:24 2000 Owen Taylor <otaylor@redhat.com>
20126 * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
20127 parent class to correctly be GtkDialogClass.
20129 Thu Feb 24 23:58:21 2000 Owen Taylor <otaylor@redhat.com>
20131 * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
20132 toplevel windows and their immediate children by their parents,
20133 since the size of toplevel windows is out of our immediate
20134 control and we don't get any real benefit from trying to track
20135 this size for clipping.
20137 * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
20138 for input_only windows.
20140 * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
20141 to fix some hacks and make sure that we don't try to set the
20142 background of input only windows.
20144 Thu Feb 24 18:11:46 2000 Owen Taylor <otaylor@redhat.com>
20146 * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
20147 the _really_ internal stuff, and leave gdkprivate.h for the fake private
20148 stuff that we've traditionally exposed.
20150 * gdk/**.c: Use gdkinternals.h where appropriate.
20152 * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
20153 not include gdkprivate-x11.h, move all stuff of conceivable public
20154 interest into gdkx.h; keep all really private stuff in
20155 uninstalled header gdkprivate-x11.h.
20157 * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
20158 image->image_put on windows through a new function _gdk_window_draw_image()
20159 to allow us to do backing store for images. (Sort of ugly)
20161 * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
20162 contexts locally so that we can offset them properly when drawing
20163 onto backing pixmaps.
20165 * gdk/gdkinput.h: Reindented
20167 * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
20168 pixmap or color for the window, so we can properly initialize
20169 our double-buffer pixmaps, and also so that we temporarily set
20170 a background of None while scrolling.
20172 * gdk/gdkregion.h: Revise region boolean operators to have an
20173 interface that is actually convenient - switch from creating new
20174 regions on every op, to "methods" that modify existing regions
20175 (A = A OP B). 3 argument forms which allow dest == src, would also
20176 be possible, but the current interfaces seem to map nicely
20177 onto what needs to be done. (There is quite a lot of region
20180 * gdk/gdkregion.h: Add constructor from rectangle and a copy
20183 * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
20184 gdkpoly-generic.h: Copy region code from Xlib, switch it over
20185 to 32 bit coordinates, modify it to be mostly GTK+ style
20186 and to have interfaces that match gdkregion.h.
20188 * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
20189 double-buffered drawing. gdk_window_begin_paint_{rect,region}()
20190 create a backing pixmap and redirect all drawing to
20191 that backing pixmap until a matching gdk_window_end_paint().
20193 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
20194 Create a special drawable class for GtkWindow's that
20195 redirects the drawing to the backing pixmap as necessary
20196 and then calls the real operations in _gdk_windowing_window_class.
20198 * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
20199 Store invalid region for each window. Generate expose events for invalid
20200 region in an idle. This replaces both the expose compression
20201 and the redrawing queuing in GTK+. It is both more efficient and
20202 simpler than either one individually and far more so then the
20205 * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
20206 Emulate 32 bit coordinates for windows with 16 bit coordinates
20207 by offsetting drawing, guffaw scrolling techniques and
20208 mapping/unmapping child windows as necessary.
20210 * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
20211 where, when invalid regions are processed, the region is stored,
20212 and if expose events come in that are detectably duplicate
20213 the processed exposes (by comparison of event serial numbers),
20214 the stored region is subtracted out of those exposes.
20216 * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
20217 regions newly exposed when scrolling or resizing windows.
20218 This, combined with forcing processesing of queued invalidated
20219 regions, gives nice flicker-free scrolling.
20221 * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
20222 invalidated regions after every scroll.
20224 * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
20225 emulation in GDK. Its, for all practical purposes just a
20226 GtkViewport/GtkFixed hybrid now.
20228 * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
20229 (16-bit) structures as necessary instead of just casting.
20231 * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
20232 in terms of the structures from gdkregion-generic.c, using appropriate
20233 offsets from GDK to X11 coordinates. Cache clip mask and
20234 origin and ts origin locally and only flush to the server
20235 when drawing, to avoid constantly setting and resetting these
20236 values when offsetting GC's for scrolling and backing pixmaps.
20238 * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
20240 * gtk/gtkcontainer.c: Call process_all_updates at end
20241 of resizing to reduce flicker. (Avoids having redraw
20242 lag arbitrarily behind resize under some circumstances)
20244 * gtk/gtkentry.c: Remove old backing store code, and simply take
20245 advantage of the new backing store capabilities of GDK.
20247 * gtk/gtkmain.c: Simple implementation of widget backing
20248 store - simply push a paint while handling each expose.
20249 (Should really be configurable widget for widget.)
20251 * gtk/gtkwidget.c: Remove all the old complicated redraw
20252 code, and simply invalidate the GDK windows from
20253 gdk_window_queue_clear(), etc. (Sigh, so much carefully
20254 debugged complexity ... gone to the winds.)
20256 Remove all the code for suppressing expose events while
20257 resizes are pending; this isn't needed since the invalid
20258 areas won't be processed until after the resizes are
20259 processed, since they are in a lower priority idle.
20261 Thu Feb 24 15:37:41 2000 Owen Taylor <otaylor@redhat.com>
20263 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
20264 and height of dest rectangle for non-intersecting rectangles.
20266 Sun Feb 20 16:47:31 2000 Owen Taylor <otaylor@redhat.com>
20268 * gtk/gtkwidget.h: Make GtkAllocation just a typedef
20271 Sun Feb 20 11:27:00 2000 Owen Taylor <otaylor@redhat.com>
20273 * gdk/gdk{events,image,private,types,window}.h
20274 gdk/x11/gdkinputprivate.h: Change all coordinates
20275 from int16 to int. Also, Change width and height from
20276 unsigned to signed to avoid all the stupid C
20279 Sat Feb 19 12:01:53 2000 Owen Taylor <otaylor@redhat.com>
20281 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
20282 Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
20283 Add some more detailed checking.
20285 * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
20286 New function to retrieve the depth of a drawable.
20288 * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
20289 field, reorder fields to save memory.
20291 Mon Dec 13 14:06:03 1999 Owen Taylor <otaylor@redhat.com>
20293 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
20294 of the background image instead of scaling the background down to
20297 * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
20298 which temporarily set slider to wrong size.
20300 * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
20303 Wed Nov 17 18:36:05 1999 Owen Taylor <otaylor@redhat.com>
20305 2000-03-23 Jonathan Blandford <jrb@redhat.com>
20307 * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
20309 2000-03-17 Tor Lillqvist <tml@iki.fi>
20311 * gdk/win32/gdkevents-win32.c: Remove the #ifndef
20312 USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
20314 * gdk/win32/gdkfont-win32.c
20315 * gdk/win32/gdkproperty-win32.c
20316 * gdk/win32/gdkselection-win32.c
20317 * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
20320 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
20322 * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
20324 Mon Mar 13 18:37:55 2000 Owen Taylor <otaylor@redhat.com>
20326 * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
20327 is called without trapping X errors.
20329 Fri Feb 25 10:48:53 2000 Owen Taylor <otaylor@redhat.com>
20331 * gtk/gtkrc.*: Fix problem where stray '"' characters found their
20332 way into the fontset lists.
20334 Tue Feb 22 08:52:52 2000 Tim Janik <timj@gtk.org>
20336 * gtk/gtkthemes.h: add extern "C" scope.
20338 Mon Feb 21 20:16:42 2000 Lars Hamann <lars@gtk.org>
20340 * gtk/gtkclist.c: applied patch from Guy Harris <guy@netapp.com>
20341 to make appends to the list constant. (gtk-guy-990901-0.patch)
20343 Mon Feb 14 22:50:10 2000 Tim Janik <timj@gtk.org>
20345 * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
20346 for the typename hash table.
20348 Mon Feb 14 15:01:23 2000 Owen Taylor <otaylor@redhat.com>
20350 * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
20351 to make sure we never divide by zero.
20352 (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
20354 Mon Feb 14 12:29:38 2000 Owen Taylor <otaylor@redhat.com>
20356 * gtk/gtkfontsel.c: Apply patch from
20357 SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
20358 better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
20360 Also, some cleanups in atom handling.
20362 Sun Feb 13 08:02:21 2000 Tim Janik <timj@gtk.org>
20364 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
20367 Fri Feb 11 02:19:32 2000 Tim Janik <timj@gtk.org>
20369 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate):
20370 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate):
20371 * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
20372 more guint wrap-around bugs before going to bed.
20374 Thu Feb 10 16:16:35 2000 Tim Janik <timj@gtk.org>
20376 * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
20377 guint wrap arounds in allocation.width.
20379 * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
20380 process untill we fit the allocation given.
20382 Tue Feb 8 09:38:29 2000 Tim Janik <timj@gtk.org>
20385 (gtk_widget_unrealize): guard widget access with ref/unref
20386 around signal emission.
20387 (gtk_widget_hide): same here, but also check its destroyed
20388 state before queueing a resize.
20390 Tue Feb 8 03:05:55 2000 Tim Janik <timj@gtk.org>
20392 * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
20393 of gtk_default_insensitive_bg as insensitive base color.
20395 * gtk/gtktext.c (gtk_text_style_set): set the background color according
20396 to the widget's state.
20397 (gtk_text_realize): same here.
20398 (gtk_text_state_changed): same here.
20399 (draw_bg_rect): compare background color against base[] from
20400 GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
20402 Mon Feb 7 04:01:55 2000 Tim Janik <timj@gtk.org>
20404 * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
20405 grabs are active, unless a delete event is send to the toplevel
20406 of the currently grab holding widget.
20408 Sun Feb 6 10:13:15 2000 Owen Taylor <otaylor@redhat.com>
20410 * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
20411 debugging g_print's.
20413 Fri Feb 4 15:54:54 2000 Owen Taylor <otaylor@redhat.com>
20415 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
20416 ever make the scrolled-window requisition ever depend on the
20417 visibility state of the scrollbars for the AUTOMATIC policy.
20418 This breaks the GTK+ requisition model, and causes loops.
20420 Fri Feb 4 15:09:12 2000 Owen Taylor <otaylor@redhat.com>
20422 * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
20423 the default font to avoid problems with XFree86-4.0 where the
20424 default charset is iso10646-1, not iso8859-1.
20426 Thu Feb 3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
20432 * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
20434 * gtk/Makefile.am: minor cosmetic consistency tweak
20436 Thu Feb 3 14:46:01 2000 Owen Taylor <otaylor@redhat.com>
20438 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
20439 the activate_time to 0, so that we handle a quick
20440 press/release press/release properly and don't suppress
20441 the second release. (Red Hat bug #7545)
20443 Wed Feb 2 22:25:17 2000 Tim Janik <timj@gtk.org>
20445 * gtk/gtkctree.c (row_delete):
20446 (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
20447 bugs with destruction notifier, *always* update internal
20448 structures *before* calling user code.
20450 Sun Jan 30 20:10:52 2000 Lars Hamann <lars@gtk.org>
20452 A few more fixes for bug #5487, #2051, #2677.
20454 (gtk_clist_button_press): Reset clist->anchor to -1 if event->type is
20455 not GDK_BUTTON_PRESS.
20456 (resync_selection): resync only if selection_mode is
20457 GTK_SELECTION_EXTENDED
20458 * gtk/gtkctree.c (resync_selection): same here
20460 Sun Jan 30 12:29:20 2000 Owen Taylor <otaylor@redhat.com>
20462 * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
20463 gdk_drag_get_selection() and gtk_menu_detach().
20465 [ From Jeroen Ruigrok/Asmodai ]
20467 Sat Jan 29 10:11:56 2000 Owen Taylor <otaylor@redhat.com>
20469 * gtk/gtknotebook.c (gtk_notebook_size_request):
20470 page->tab_label can be NULL.
20472 2000-01-25 Havoc Pennington <hp@pobox.com>
20474 * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
20477 * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
20479 * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
20481 * gdk/gdkproperty.c (gdk_property_get): return boolean
20483 * gdk/gdkinput.c (gdk_input_set_mode): return boolean
20485 * gdk/gdkim.c (gdk_im_ready): return boolean
20487 * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
20489 * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
20490 glib clash, should fix glib)
20492 * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
20493 (gdk_get_show_events): return gboolean, and canonicalize
20496 * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
20497 colormap is private
20498 (gdk_colors_alloc): gboolean whether to be contiguous
20499 (gdk_color_equal): return gboolean since we are a predicate
20500 and not a qsort() (this looks semi-wrong due to glib breakage,
20501 IMO glib should be fixed)
20503 * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
20504 (gdk_get_use_xshm): return gboolean
20505 (gdk_pointer_is_grabbed): return gboolean
20507 * gdk/gdk.h: Change prototypes to match all the above changes,
20508 and re-run egtk-format-protos as required.
20510 Fri Jan 28 12:28:17 2000 Owen Taylor <otaylor@redhat.com>
20512 * gtk/gtkctree.c (resync_selection):
20513 * gtk/gtkclist.c (resync_selection):
20515 Return immediately if clist->drag_pos < 0. This is a workaround
20516 for the corrupt state that the clist gets into when a
20517 GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
20519 Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
20521 * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
20522 variable from recent commit.
20524 Thu Jan 27 15:22:09 2000 Owen Taylor <otaylor@redhat.com>
20526 * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
20528 Thu Jan 27 18:00:55 2000 Tim Janik <timj@gtk.org>
20530 * gtk/Makefile.am: prefix all autogenerated source that get build in
20531 $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
20532 in builddir. since we subsequently cd into srcdir for autogeneration,
20533 the paths have to be stripped from the target file names, thusly we
20534 use $(@F) as target names now.
20535 put a comment about configure.in's --disable-rebuilds option,
20536 which can be used for non-writable source directories, for development
20537 setups though, srcdir has to be *writable*.
20539 hu Jan 27 00:15:03 2000 Owen Taylor <otaylor@redhat.com>
20541 * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
20542 Finish the job of allowing event to be NULL.
20543 (Fixes bug #4283, reported by Chris Blizzard)
20545 * gtk/gtkentry.c (entry_adjust_scroll): When calculating
20546 things so that the cursor appears on screen, properly
20547 take into account INNER_BORDER.
20548 (Fixes bug #4754, reported by Antonio Campos)
20550 Wed Jan 26 23:12:28 2000 Owen Taylor <otaylor@redhat.com>
20552 * gtk/gtknotebook.c (gtk_notebook_map): Don't
20553 show the tab_label unless it itself is visible.
20555 gtk/gtknotebook.c (gtk_notebook_size_request):
20556 Do a better job of making sure that the visibility
20557 of the tab label corresponds to whether it should
20560 Wed Jan 26 21:17:03 2000 Owen Taylor <otaylor@redhat.com>
20562 * gtk/gtkoptionmenu.c (gtk_option_menu_position):
20563 Use the requisition, not the allocation, since the
20564 allocation has not necessarily been computed yet.
20565 (Pointed out by Eugene Osintsev)
20567 Wed Jan 26 19:44:25 2000 Owen Taylor <otaylor@redhat.com>
20569 * gtk/gtkstyle.c (gtk_style_new): Dont' set
20570 style/base[GTK_STATE_INSENSITIVE] both to
20571 gtk_default_insensitive_bg!
20572 (Bug #2187, reported by Jonathan Blandford)
20574 * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
20575 Add Alt_L, Alt_R to list of invalid accelerators.
20576 (Bug #3736, reported by Vlad Harchev)
20578 Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
20580 * gtk/gtkfilesel.c (open_ref_dir): Fix several
20581 bugs which occured after an attempt to open
20582 invalid home directory left cmpl_state->reference_dir == NULL.
20584 - completion on files in home directory didn't work
20585 - completion on an empty string caused segfault
20587 (Bug #3678, reported by Steve Ratcliffe)
20589 * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
20590 cut and paste error that was causing scales to
20591 be incorrectly positioned.
20593 patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
20595 2000-01-27 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
20597 * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
20598 when checking for dcgettext, if we've found we needed
20601 Wed Jan 26 18:06:07 2000 Owen Taylor <otaylor@redhat.com>
20603 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
20604 queue_clear on NO_WINDOW widgets during a reparent,
20605 since at that point the window and widget heirarchies
20606 are out of sync. This stops crashing in some cases
20607 (the scrolled window reparent test, for instance), and
20608 _probably_ won't cause drawing errors.
20610 * gtk/testgtk.c: Make the reparenting-a-scrolled-window
20611 test do what it was supposed to do and be robust against
20612 window closings, etc. (Bug #2443)
20614 Wed Jan 26 16:56:54 2000 Owen Taylor <otaylor@redhat.com>
20616 * gtk/gtkentry.c: Fix return values on mouse events.
20617 (Bug #2686, Sky <seb_sky@yahoo.com>)
20619 * gtk/genmarshal.pl: Fix up handling of FOREIGN.
20620 (pointed out by George Lebl)
20622 * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
20623 (From Ettore Perazzoli <ettore@helixcode.com>)
20625 Mon Jan 24 10:44:48 2000 Owen Taylor <otaylor@redhat.com>
20627 * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
20628 clicks between rows or outside calender area correctly.
20629 (Patch from Damon Chaplin)
20631 * gtk/gtkclist.c (gtk_clist_set_row_data_full):
20632 * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full):
20633 Call destroy function when overwriting existing data.
20634 (Pointed out by Damon Chaplin)
20636 Tue Jan 25 09:55:41 2000 Owen Taylor <otaylor@redhat.com>
20638 * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
20639 which was causing problems on various systems with Xmu.
20640 This hasn't been needed for a very long time.
20643 Sun Jan 23 22:27:36 2000 Owen Taylor <otaylor@redhat.com>
20645 * gdk/gdki18n.h: Include <ctype.h> when defining
20646 gdk_isw* in terms of is* as a fallback.
20647 (Bug #4106 - Dan Winship <danw@MIT.EDU>)
20649 Sun Jan 23 22:12:36 2000 Owen Taylor <otaylor@redhat.com>
20651 * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
20652 realize the widget when it is size allocated!
20655 * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
20656 Removed unused call to gdk_window_get_size() that
20657 showed up when the above was fixed.
20659 Sat Jan 22 15:44:30 2000 Owen Taylor <otaylor@redhat.com>
20661 * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
20662 fix up widget->window when the widget is a
20663 NO_WINDOW container widget.
20665 Sat Jan 22 12:40:48 2000 Owen Taylor <otaylor@redhat.com>
20667 * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
20668 to account for the fact that feof() does _not_
20669 return TRUE on errors, and thus avoid infinite loops
20670 when trying to use gdk_pixmap_create_from_xpm()
20671 on unreadable values.
20673 Fri Jan 21 18:32:43 2000 Owen Taylor <otaylor@redhat.com>
20675 * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
20677 Fri Jan 21 16:24:08 2000 Owen Taylor <otaylor@redhat.com>
20679 * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
20680 gdk_gc_set_dashes to take gint8 instead of gchar to
20681 make it clearer that it is _not_ a NULL terminated string.
20683 * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
20684 gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
20685 gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
20688 Thu Dec 30 04:51:05 1999 Tim Janik <timj@gtk.org>
20690 * gtk/gtkvscale.c (gtk_vscale_pos_background):
20691 * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
20692 background size relative to our allocation, guard against small
20693 allocations, we may have not yet been size allocated.
20695 Thu Dec 2 10:59:14 1999 Owen Taylor <otaylor@redhat.com>
20697 * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
20698 not just version == 3. We implement all 3 + most of 4 -
20699 (we don't support matching text/plain;charset=iso-8859-1
20700 to a dest that expects text/plain). We'll still advertise
20701 3 to be safe, but any client implementing version >= 3
20702 must interoperate with 3.
20704 Tue Mar 14 11:53:31 2000 Owen Taylor <otaylor@redhat.com>
20706 * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
20707 background and gc members, add a warning in gtk_tooltips_set_color()
20708 indicating that this function is deprecated.
20710 Thu Mar 9 22:10:56 GMT 2000 Tony Gale <gale@gtk.org>
20712 * docs/gtkfaq.sgml: FAQ Update:
20713 - Minor cleanups (Emmanuel, me)
20715 I need to add a new signal to a GTK+ widget. Any idea? (timj)
20716 How can I retrieve the text from a GtkMenuItem? (timj)
20717 How do I validate/limit/filter the input to a GtkEntry? (me)
20718 Memory does not seem to be released when I free the list
20719 nodes I've allocated (timj)
20721 2000-03-07 Tor Lillqvist <tml@iki.fi>
20723 * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
20724 (gdk_win32_gdi_failed) New function for reporting errors from GDI,
20725 for which it is no use to call GetLastError onWin9x.
20726 (gdk_other_api_failed) New function, for general error
20727 reporting without calling GetLastError.
20728 (gdk_win32_api_failed) OTOH, this function always calls
20729 GetLastError. (gdk_win32_last_error_string) Remove this function,
20730 GLib has the equivalent now.
20732 * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
20733 call them with function name, file name and line number in the
20736 * gdk/win32/*.c: Use the new macros for reporting errors from GDI
20739 * gtk/gtk.def: Add some missing entry points.
20741 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
20742 gtk_paned_set_gutter_size, which don't exist any longer, as void.
20744 Fixes by Hans Breuer:
20746 * gdk/makefile.msc: Update for debugging.
20748 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
20749 implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
20750 PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
20753 * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
20756 * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
20758 * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
20760 2000-03-04 Tor Lillqvist <tml@iki.fi>
20762 * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
20763 just pixel value of background colour.
20765 * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
20766 containing code snippet previously duplicated in a couple of
20769 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
20770 gdk_colormap_color.
20772 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
20773 GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
20774 events for autorepeated Shift, Control and Alt keys. Use
20775 gdk_colormap_color.
20777 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
20778 pointer is inside the window the cursor of which we are setting,
20779 call SetCursor immediately.
20781 * gdk/win32/makefile.cygwin
20782 * gtk/makefile.cygwin: If we don't have the build number stamp
20785 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
20786 gtk_paned_set_gutter_size as empty.
20788 * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
20790 Tue Feb 29 13:10:00 GMT 2000 Tony Gale <gale@gtk.org>
20792 * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
20793 gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
20794 docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
20795 docs/gtk_tut.sgml docs/gtk.texi TODO:
20797 Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
20799 Sat Feb 26 11:46:25 GMT 2000 Tony Gale <gale@gtk.org>
20801 * gtk/gtkcalendar.c: Implement num_marked_dates,
20802 and don't emit mutiple day_selected signals on
20805 2000-02-25 Jonathan Blandford <jrb@redhat.com>
20807 * docs/make-todo (lineno): let title and logo be configurable so
20808 that GNOME can use this script too.
20810 * TODO.xml: added logourl and a title
20812 Fri Feb 25 11:12:00 2000 Owen Taylor <otaylor@redhat.com>
20814 * TODO.xml: Added some UI items, and an explanatory
20815 comment at the top of the file.
20817 Thu Feb 24 09:07:28 2000 Tim Janik <timj@gtk.org>
20819 * TODO.xml: some updates, added abunch of new entries.
20820 a note for those fiddeling with this file, when done
20822 $ ./docs/make-todo TODO.xml >/dev/null
20823 and correct output errors before comitting changes.
20825 Wed Feb 23 22:59:50 2000 Owen Taylor <otaylor@redhat.com>
20827 * TODO.xml: Added XML-structured TODO file.
20828 * docs/make-todo: python script to turn TODO.xml into
20831 2000-02-23 Jonathan Blandford <jrb@redhat.com>
20833 * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
20834 the function to let it draw the seven dots, instead of the old,
20835 much maligned, method.
20836 (draw_dot): New function to draw a dot.
20838 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
20839 to draw the handle inside the border width as opposed to outside.
20840 Use paint function instead of gdk_draw_point.
20842 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
20843 to draw the handle inside the border width as opposed to outside.
20844 Use paint function instead of gdk_draw_point.
20846 * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
20847 Change indenting to be more GTK like.
20849 Wed Feb 23 10:54:14 GMT 2000 Tony Gale <gale@gtk.org>
20851 * docs/gtk_tut.sgml: New section on GtkCalendar
20852 * examples/calendar: Update example code
20854 Tue Feb 22 13:54:12 GMT 2000 Tony Gale <gale@gtk.org>
20856 * docs/gtkfaq.sgml: FAQ Update
20858 2000-02-19 Anders Carlsson <andersca@gnu.org>
20860 * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
20861 to prevent the scroll event to be propagated upwards.
20863 Fri Feb 18 14:37:29 2000 Owen Taylor <otaylor@redhat.com>
20865 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
20866 OwnerGrabButtonMask from button entries for
20867 GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
20869 * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
20870 to the event mask (which will result in button/press release
20871 being added to the event mask on Unix) so scrolling works
20872 for layouts in scroll windows.
20874 * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
20876 Patch from Anders Carlsson <andersca@gnu.org> to add
20879 * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
20880 scrolling to the "Test Scrolling" part of testgtk.
20882 * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
20884 * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
20885 it against GDK_SCROLL.
20887 * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
20888 way of mouse wheel scrolling.
20890 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
20892 * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
20894 * gtk/gtkmain.c: Removed previous mouse wheel hack.
20896 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
20897 gdk_event_mask_table.
20899 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added
20900 GdkEventScroll handler.
20902 * gdk/gdkevents.h: Added GdkEventScroll structure.
20904 Thu Feb 17 17:10:12 2000 Owen Taylor <otaylor@redhat.com>
20906 * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
20907 and Anders Carlsson to change the Paned widgets so that they
20908 can be dragged from anywhere along the length. Also change
20909 the way that this is drawn to make this apparent.
20911 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
20912 from George Lebl to check that option_menu->menu is present
20913 before getting history.
20915 2000-02-14 Tor Lillqvist <tml@iki.fi>
20917 * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
20918 before the assertion for non-NULL segment list.
20920 * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
20921 Seems that pattern brushes *must* be 8x8 pixels! At least on my
20922 machine, but it might be display driver dependent. Sigh, so make
20923 sure the stipple is that size. Does Windows suck or what?
20925 * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
20928 2000-02-13 Havoc Pennington <hp@pobox.com>
20930 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
20932 (gdk_cursor_new): init refcount to 1
20934 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
20936 2000-02-13 Tor Lillqvist <tml@iki.fi>
20938 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
20939 so that we don't have to do unnecessary settings to the HDC.
20941 * gdk/win32/gdkdrawable-win32.c
20942 * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
20945 * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
20946 the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
20947 GDI paths, call WidenPath to get the outline of the stroken path,
20948 and then fill the outline (with the brush that was built from the
20951 * gdk/win32/gdkgc-win32.c: Factor out common code from
20952 _gdk_win32_gc_new and gdk_win32_gc_set_values into
20953 gdk_win32_gc_values_to_win32values. Use correct colour for
20954 SetBkColor() (Until now the code actually used a random colour in
20955 the call to SetBkColor()... but that didn't show up as not many
20956 GDI APIs use the background colour. Pattern (opaque stippled)
20959 * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
20960 gdk_win32_api_failed): New functions for error logging.
20962 * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
20963 WIN32_API_FAILED to call them, passing function or file name and
20966 * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
20968 * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
20969 GdkColor for foreground and background in GdkGCWin32Data.
20971 * gdk/makefile.cygwin: Link in the resource object separately.
20973 * gdk/win32/rc/gdk.rc
20974 * gtk/gtk.rc (New file)
20975 * gdk/win32/makefile.cygwin
20976 * gtk/makefile.cygwin: Update build number in DLLs automatically,
20979 Sun Feb 13 08:54:45 2000 Tim Janik <timj@gtk.org>
20981 * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
20982 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
20983 * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
20984 * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
20985 parameters given and cursor->ref_count. coding style fixups.
20987 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
20990 * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
20991 fix up widget macros and add _GET_CLASS() variant.
20993 * gtk/*.c: some GtkType fixups.
20995 2000-02-09 Tor Lillqvist <tml@iki.fi>
20997 * gdk/win32/gdkproperty-win32.c
20998 * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
21001 2000-02-04 Tor Lillqvist <tml@iki.fi>
21003 * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
21004 g_filename_to_utf8 to convert the font names Windows gives us from
21005 whatever is the default codepage to UTF-8.
21006 (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
21007 in the other direction.
21009 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
21010 error in debugging output.
21012 2000-02-02 Tor Lillqvist <tml@iki.fi>
21014 * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
21015 and height parameters to gdk_window_clear_area(). Not minus one.
21017 Wed Feb 2 11:58:05 2000 Owen Taylor <otaylor@redhat.com>
21019 * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
21020 checks if the widget passed to gtk_drag_get_data() was not the
21023 2000-02-01 Tor Lillqvist <tml@iki.fi>
21025 * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
21026 g_filename_from_utf8 functions (which were added a moment ago to
21027 GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
21030 gtk_file_selection_get_filename returns the filename in the C
21031 runtime encoding. It calls g_filename_from_utf8, but copies the
21032 returned string to a static buffer, which is returned. I think
21033 this is better than returning the result from g_filename_from_utf8
21034 directly, which would mean all apps that use it would have to free
21035 the return value. Or should this function care about this issue at
21036 all? Maybe a new function with clearly defined semantics.
21038 * gtk/gtkfilesel.h: Add comment about
21039 gtk_file_selection_get_filename returning the filename in the C
21040 runtime's encoding.
21044 * gdk/makefile.{cygwin,msc}
21045 * gtk/gtk.def: Updates.
21047 * gdk/gdkcursor-win32.c: Initialise refcount.
21049 2000-01-31 Yuan-Chung Cheng <platin@linux.org.tw>
21051 * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
21053 2000-01-30 Havoc Pennington <hp@pobox.com>
21055 * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
21058 * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
21060 * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
21061 implemented in platform-specific code
21063 * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
21065 * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
21066 underscore in front
21068 * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
21069 put an underscore in front
21071 * gdk/gdkcursor.c: new file, implements
21072 gdk_cursor_ref/gdk_cursor_unref
21074 * gdk/gdkcursor.h: Refcount GdkCursor
21076 * gdk/gdkcompat.h (gdk_cursor_destroy): compat
21078 2000-01-29 Tor Lillqvist <tml@iki.fi>
21081 * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
21083 Tue Jan 25 11:43:21 2000 Owen Taylor <otaylor@redhat.com>
21085 * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
21086 structures to properly inherit from GtkWidget not GtkBin.
21088 Sun Jan 23 20:28:24 2000 Owen Taylor <otaylor@redhat.com>
21090 * gtk+.spec.in: Added lib/gtk+/include/* to %files
21091 (bug #5178 - Peter Wainright)
21093 * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
21094 so that it will be installed.
21095 (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
21097 Fri Jan 21 16:29:28 2000 Owen Taylor <otaylor@redhat.com>
21099 * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
21100 for the GtkStyleClass vtable const.
21102 * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
21103 take a const string argument like GtkTranslateFunc. This will
21104 require changes in use code.
21106 2000-01-19 Tor Lillqvist <tml@iki.fi>
21108 * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
21109 semantics (to mimic the X11 backend, which just calls XClearArea)
21110 is to check for zero width (and height), and in that case use the
21111 window's width minus x (height minus y). This fixes for instance
21112 some redraw problems with gtkclist, which were easily noticeable
21113 in the gtk file selection widget.
21115 (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
21118 2000-01-13 Tor Lillqvist <tml@iki.fi>
21122 * gdk/x11/Makefile.am
21123 * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
21125 * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
21128 2000-01-09 Tor Lillqvist <tml@iki.fi>
21130 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
21131 WM_MOVE for iconified or invisible windows. This fixes various
21132 problems when minimising windows. Thanks to Bernd Herd.
21134 2000-01-05 Tor Lillqvist <tml@iki.fi>
21136 * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
21137 backend's draw_lines method, not draw_points.
21139 2000-01-02 Tor Lillqvist <tml@iki.fi>
21141 * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
21142 before Owen's reorganisation: Don't have queued_events and
21143 queued_tail statics in this file, but use gdk_queued_events and
21144 gdk_queued_tail. This makes exposure event compression work again.
21146 (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
21149 1999-12-30 Tor Lillqvist <tml@iki.fi>
21151 * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
21152 gdkkeysyms.h to get the GDK_* keysym constants that are needed by
21153 gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
21154 doesn't do anything.
21156 * gdk/gdk.def: Add gdk_xid_table_insert.
21158 * gdk/win32/gdkprivate-win32.h
21159 * gdk/win32/gdkevents-win32.c
21160 * gdk/win32/gdkinput-win32.c
21162 * gdk/win32/gdkwindow-win32.c: Remove the superfluous
21163 extension_events field in the GdkWindowWin32Data struct. Use only
21164 the extension_events field in GdkWindowPrivate. Previously one was
21165 set, and the other one tested, which broke tablet
21166 functionality. Thanks to Keishi Suenaga for pointing this out.
21168 1999-12-18 Tor Lillqvist <tml@iki.fi>
21170 * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
21171 When handling a single character (text length == 1), don't handle
21172 it as if it was UTF-8.
21174 1999-12-11 Tor Lillqvist <tml@iki.fi>
21176 * Makefile.am: Distribute README.win32.
21179 * gdk/win32/Makefile.am: Distribute Win32 files.
21181 * gdk/makefile.msc: New file.
21183 * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
21186 * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
21187 gdk_error_code as GDKVAR, as they are referred outside GDK.
21189 * gdk/win32/makefile.msc: Update.
21191 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
21192 tweaks. Check only if at least one of those Unicode subrange bits
21193 we care for is set. If no code page bits are set, guess (wildly)
21194 based on the charset.
21196 * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
21198 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
21204 * gtk/gtkselection.c
21206 * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
21207 appropriate. There must be a cleaner way to handle this?
21209 * gtk/gtkrc.c: Must include windows.h on Win32.
21211 * gtk/testgtk.c: No need to include gdkx.h.
21213 * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
21215 1999-12-07 Tor Lillqvist <tml@iki.fi>
21217 * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
21218 the rbearing is set to the same as the width, but this should be
21221 1999-12-06 Tor Lillqvist <tml@iki.fi>
21223 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
21224 function. If Windows doesn't tell us what Unicode subranges a font
21225 covers, guesstimate based on the codepages it covers. This will
21226 hopefully help those Windows versions or fonts that don't give us
21227 any useful Unicode subrange information with GetTextCharsetInfo.
21228 Call this function in gdk_font_load_internal.
21230 * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
21233 Fri Dec 3 14:09:50 1999 Owen Taylor <otaylor@redhat.com>
21235 * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
21236 New function, long needed.
21238 Wed Dec 1 22:35:43 1999 Owen Taylor <otaylor@redhat.com>
21240 * gdk/gdkproperty.h x11/gdkproperty.c: Change
21241 only_if_exists argument of gdk_atom_intern to
21244 1999-11-25 Tor Lillqvist <tml@iki.fi>
21246 * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin):
21247 Fix two copy&paste errors.
21249 * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
21252 * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
21253 GdkWin32SingleFont struct.
21255 * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
21256 subranges of loaded fonts. Clear font signature first, in case
21257 GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
21258 ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
21260 * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
21261 Unoffset clip region.
21263 1999-11-23 Tor Lillqvist <tml@iki.fi>
21265 * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
21266 event->any.window before calling filter functions.
21268 Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
21270 * gtk/gtkgamma.h: Adapt cast macros to standard.
21272 [ Merges from 1.2 ]
21274 Tue Nov 16 10:15:54 1999 Owen Taylor <otaylor@redhat.com>
21276 * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
21277 If translation does not include a '/', use entire
21278 translation instead of crashing.
21280 Sun Oct 31 22:21:11 1999 Tim Janik <timj@gtk.org>
21282 * docs/gtk_tut.sgml:
21283 s/gtk_accel_group_attach/gtk_window_add_accel_group/.
21285 Sat Oct 30 09:09:09 1999 Owen Taylor <otaylor@redhat.com>
21287 * gtk/gtkselection.c (gtk_target_list_remove): Use
21288 g_list_remove_link, not g_list_remove.
21290 [ From Geert Bevin <gbevin@thunderstorms.org> ]
21292 Sun Oct 24 07:41:40 1999 Tim Janik <timj@gtk.org>
21294 * gtk/gtkclist.c (real_undo_selection): commented out g_print()
21295 statement upon unselection (how the heck did that slip in?).
21297 Sat Oct 23 03:03:08 1999 Tim Janik <timj@gtk.org>
21299 * gtk/gtktext.c (gtk_text_freeze):
21300 (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
21301 in frozen state (and aparently crashes). patch provided by Anders
21302 Melchiorsen <and@kampsax.dtu.dk>.
21304 Sat Oct 23 02:53:20 1999 Tim Janik <timj@gtk.org>
21306 * fix insensitive default/focus widget activation,
21307 reported by Matt Goodall <mgg@isotek.co.uk>.
21309 * gtk/gtkwindow.c (gtk_window_key_press_event):
21310 (gtk_window_activate_default):
21311 (gtk_window_activate_focus):
21312 return handled=FALSE for actiavtion of insensitive default
21313 widgets. return handled=TRUE for activation of insensitive
21314 focus widgets. don't activate in either case.
21316 Tue Oct 19 09:55:08 1999 Owen Taylor <otaylor@redhat.com>
21318 * gtk-config.in (lib_gtk): Switch order of @x_cflags@
21319 and $glib_cflags to match library order and in the
21320 theory that an old version of GLib is more likely to
21321 be in the include directory for X then vice-versa.
21324 Tue Oct 19 09:46:49 1999 Owen Taylor <otaylor@redhat.com>
21326 * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE
21327 to determine the locale for fontsets, not LC_MESSAGES;
21328 the user may want English messages with a handling
21329 for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
21330 will still be broken) (Bug #2891)
21332 Tue Oct 19 20:36:42 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
21334 * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
21336 Tue Oct 19 12:15:13 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
21338 * gtk/gtkrc.ko: Changed the Korean default fontset.
21340 Fri Oct 8 02:32:47 1999 Owen Taylor <otaylor@redhat.com>
21342 * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
21343 where when scrolling to the left or top double exposes
21344 were done, causing major slowdowns.
21346 Thu Oct 7 18:31:55 1999 Owen Taylor <otaylor@redhat.com>
21348 * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
21349 names to lowercase and alphanumeric, before looking
21352 * gtk/Makefile.am: Install codeset variant gtkrc files
21353 with normalized names.
21355 Thu Oct 7 22:52:42 1999 Tim Janik <timj@gtk.org>
21357 * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
21358 popup menus when the menu is already visible, but its parent
21359 is still hidden, (happens after tornoff window got hidden).
21361 Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
21363 * gtk/Makefile.am (install-data-local): Fix
21364 a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
21365 deleted, causing error messages on install.
21367 Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
21369 * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
21370 the handle as well, since we now sometimes ignore
21371 exposes on the handle while resizing.
21373 Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
21375 * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
21376 extra g_free introduced in one of the last one or two
21379 Wed Oct 6 16:38:36 1999 Owen Taylor <otaylor@redhat.com>
21381 * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
21382 consistent, put each style that a gtkrc.* file creates
21383 in a unique namespace, remove old files before installing.
21385 Wed Oct 6 14:31:16 1999 Owen Taylor <otaylor@redhat.com>
21387 * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
21388 gtk_rc_init is called multiple times. (Yes, people who
21389 do that have bugs in their code.)
21391 Tue Oct 5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
21393 * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
21394 Remove it since it's generated by the Makefile anyway
21396 Tue Oct 5 02:43:41 1999 Owen Taylor <otaylor@redhat.com>
21398 * gdk/gdkinputcommon.h (gdk_input_device_new): Free
21399 device->info.axes for core pointer.
21401 Thu Sep 30 13:55:25 1999 Owen Taylor <otaylor@redhat.com>
21403 * gtk/testgtk.c (destroy_idle_test): Rename idle to
21404 idle_id, to deal with obsolete, broken C libraries.
21406 Mon Sep 27 02:50:15 1999 Owen Taylor <otaylor@redhat.com>
21408 * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
21409 allocation->x/y twice!
21411 * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
21412 consistent with gtk_vscale_pos_trough().
21414 Sun Sep 26 19:44:34 1999 Owen Taylor <otaylor@redhat.com>
21416 * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
21417 be queueing a resize on a toplevel container between
21418 the time we show it and when we map it. So, we need
21419 to test GTK_WIDGET_VISIBLE() for toplevels, and only
21420 use GTK_WIDGET_DRAWABLE() for child windows.
21422 Thu Sep 23 16:41:03 1999 Owen Taylor <otaylor@redhat.com>
21424 * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS
21427 Fri Sep 24 00:51:45 1999 Tim Janik <timj@gtk.org>
21429 * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
21430 container DRAWABLE (instead of VISIBLE), so we don't queue
21431 resizes on non-toplevel containers.
21433 Sun Sep 19 18:13:31 1999 Owen Taylor <otaylor@redhat.com>
21435 * gtk/gtkselection.[ch]: Make the data argument
21438 Sat Sep 18 21:27:40 1999 Owen Taylor <otaylor@redhat.com>
21440 * gtk/gtkwindow.c: Try to behave sensibly if
21441 the focus widget is the window itself. (Should
21442 we allow this at all?)
21444 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
21446 * gtk/gtkwidget.c (gtk_widget_set_sensitive):
21447 * gtk/gtknotebook.c (gtk_notebook_set_scrollable):
21448 * gtk/gtknotebook.c (gtk_notebook_set_show_border):
21449 * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
21450 in prototypes and implementations consistent (Tomas Ogren).
21452 * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
21453 before the widget is unparented (reported by damon).
21455 * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
21456 since we provide unsigned data anyways.
21458 Thu Sep 16 21:32:01 1999 Owen Taylor <otaylor@redhat.com>
21460 * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
21461 the call to gtk_tooltips_layout_text() until later.
21463 * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
21464 Call gtk_widget_ensure_style() before using the style.
21466 Wed Sep 15 02:52:19 1999 Owen Taylor <otaylor@redhat.com>
21468 * gtk/gtkwidget.c (gtk_widget_event): Added workaround
21469 for old widgets that don't propagate draws to all
21470 children. (Namely gnome-dock for gnome-libs <= 1.0.16)
21472 Tue Sep 14 19:22:19 1999 Tim Janik <timj@gtk.org>
21474 * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
21475 for a redraw but just the widget that requested the resize.
21477 Tue Sep 14 18:29:47 1999 Tim Janik <timj@gtk.org>
21479 * gtk/gtkcontainer.c: added new widget level method
21480 gtk_container_set_reallocate_redraws() and a GtkContainer flag
21481 reallocate_redraws : 1 to reflect the setting, exported this through
21482 the argument system as a boolean ::reallocate_redraws.
21484 * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
21485 on the widget because the allocation changes, do so as well for
21486 widget->parent if the parent has reallocate_redraws set to TRUE.
21487 with that containers requesting reallocation redraws get automatically
21488 redrawn if their children changed allocation (this unfortunately
21489 affects also other children that didn't change allocation, but we
21490 cannot work around that before 1.3).
21492 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
21494 * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
21495 _and_ height are >0 (not _or_).
21497 * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
21498 instead of gtk_container_queue_resize(), which is a core gtk internal
21499 function (must have been on crack when i queued that).
21501 * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
21502 we can check more reliably if we want to discard expose events.
21503 * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
21506 * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
21507 we simply trust these events. for deciding whether to discard exposes,
21508 check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
21510 Mon Sep 13 15:01:21 1999 Owen Taylor <otaylor@redhat.com>
21512 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21513 queues of areas that are completely off screen.
21515 * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
21516 logic for handleboxes.
21518 * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
21519 check on width/height.
21521 Mon Sep 13 02:22:47 1999 Tim Janik <timj@gtk.org>
21523 * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
21524 we are fine with using $@ the way we do (if we actually encounter
21525 brokeness with $@ in VPATH builds because of additional path prefixes,
21526 we need to use $(@F) actually).
21528 Mon Sep 13 01:34:53 1999 Tim Janik <timj@gtk.org>
21530 * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
21531 short lived bugs, that would allow language bindings to do surgeries
21534 Fri Sep 10 15:22:50 1999 Owen Taylor <otaylor@redhat.com>
21536 * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
21537 where comparison was being done against an uninitialized
21538 value causing intermittant results depending on
21539 compiler flags. Also make it clearer that we aren't
21540 ever initializing the child as 0x0 (though this will
21541 be caught in gtk_widget_size_allocate())
21543 Fri Sep 10 10:06:56 1999 Owen Taylor <otaylor@redhat.com>
21545 * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
21546 gtk_window_unset_transient_for() call after we do checks
21547 involving the old transient parent.
21548 [ From Lance Capser <lmc@cyberhighway.net> ]
21550 1999-09-07 Raja R Harinath <harinath@cs.umn.edu>
21552 * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
21555 Mon Sep 6 00:11:56 1999 Lars Hamann <lars@gtk.org>
21557 * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
21558 no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
21560 1999-09-03 Raja R Harinath <harinath@cs.umn.edu>
21562 * gtk/Makefile.am (gen_sources): Improve VPATH builds.
21563 `$@' is valid only in the build dir, not after we've done
21564 `cd $srcdir'. Also use `test -f' instead of less portable
21567 Fri Sep 3 15:59:56 1999 Owen Taylor <otaylor@redhat.com>
21569 * gtk/gtktext.c (correct_cache_insert): Rewrite
21570 for simplicity, and hopefully correctness.
21571 (Fixes bug #1322, which was a segfault when
21572 on some insertions with the properties around
21573 the insertion set up just wrong.)
21575 * gtk/gtktext.c (gtk_text_adjustment): When we receive
21576 a "changed" signal, clamp the new value to the adjustment
21577 bounds to avoid segfaulting if someone tries to change
21578 the adjustment to a bogus value. (Bug #1795)
21580 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
21582 * gtk/gtkmain.c: Ignore unexpected destroy notifies
21583 for children, for toplevel windows handle them
21586 * gtk/gtkplug.c: Add an unrealize handler so that
21587 we unref plug->socket_window when we are done
21590 Fri Sep 3 14:52:54 1999 Owen Taylor <otaylor@redhat.com>
21592 * gtk/gtktext.c (clear_area): Fix stupid signedness
21593 problem that was causing background to sometimes
21596 Fri Sep 3 12:26:33 1999 Owen Taylor <otaylor@redhat.com>
21598 [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
21600 * gtk/gtkmenu.c (gtk_menu_position): Make
21601 sure we never position menus with negative x, y,
21602 since gtk_widget_set_uposition() can't handle that.
21604 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
21605 Modify the positioning code a bit so that we always
21606 put the top-left corner onscreen. (This is for
21607 UI reasons, gtk_menu_position() now takes care of
21608 gtk_widet_set_uposition() brokeness.)
21610 Fri Sep 3 03:06:30 1999 Tim Janik <timj@gtk.org>
21612 * gtk/Makefile.am: fixed up things for -jx, x > 1.
21614 Sun Sep 5 08:48:51 1999 Owen Taylor <otaylor@redhat.com>
21616 * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
21617 RC style that is passed in. The lack of the ref
21618 before was a bug. If people worked around this
21619 bug, this will introduce a slight memory leak
21620 in their code. The code should typically look like:
21622 rc_style = gtk_rc_style_new ();
21624 gtk_widget_modify_style (widget, rc_style);
21625 gtk_rc_style_unref (rc_style);
21627 * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
21628 the style if it was already set.
21630 * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
21631 style if it was set before.
21633 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
21635 * gtk/testgtk.c (main): Add a check to see if we
21636 are being run from the correct directory and
21637 to quit nicely if we are not.
21639 * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
21642 Thu Sep 2 23:00:03 1999 Tim Janik <timj@gtk.org>
21644 * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
21647 queue resizes unconditionally (gtk_widget_queue_resize will figure
21648 what to do if the window is not realized).
21649 (gtk_window_move_resize): only recenter the window
21650 for GTK_WIN_POS_CENTER_ALWAYS.
21651 (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
21652 the same way as GTK_WIN_POS_CENTER.
21654 Thu Sep 2 22:39:27 1999 Tim Janik <timj@gtk.org>
21656 * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
21657 with (!(info->last_flags & GDK_HINT_POS)) instead of
21658 (!info->last_flags & GDK_HINT_POS).
21660 * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
21661 new_height unconditionally, because we use these values even if
21662 !default_size_changed && !hints_changed.
21663 comented the (default_size_changed || hints_changed) case with
21664 respect to resize rejects from the window manager.
21666 * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
21667 in the zvt condition hack, since this includes the window hints, set
21668 the hints after the handling_resize case.
21670 * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
21671 window is initially shown with to the geometry.
21673 Thu Sep 2 07:38:56 1999 Tim Janik <timj@gtk.org>
21675 * gtk/gtkwindow.c (gtk_window_move_resize):
21676 s/size_changed/default_size_changed/g so i know what's
21677 really going on (frying brain on smaller flame now).
21679 Thu Sep 2 05:47:47 1999 Tim Janik <timj@gtk.org>
21681 * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
21682 we have size_changed upon handling_resize. this is a gross
21683 workaround for the broken zvt widget and should be removed in
21684 1.3 again (search for FIXME).
21685 Owen provided an accurate comment for this:
21687 /* We could be here for two reasons
21688 * 1) We coincidentally got a resize while handling
21690 * 2) Our computation of size_changed was completely
21691 * screwed up, probably because one of our children
21692 * is broken. It's probably a zvt widget.
21694 * For 1), we could just go ahead and ask for the
21695 * new size right now, but doing that for 2)
21696 * might well be fighting the user (and can even
21697 * trigger a loop). Since we really don't want to
21698 * do that, we requeue a resize in hopes that
21699 * by the time it gets handled, the child has seen
21700 * the light and is willing to go along with the
21701 * new size. (this happens for the zvt widget, since
21702 * the size_allocate() above will have stored the
21703 * requisition corresponding to the new size in the
21706 * This doesn't buy us anything for 1), but it shouldn't
21707 * hurt us too badly, since it is what would have
21708 * happened if we had gotten the configure event before
21709 * the new size had been set.
21712 Wed Sep 1 20:46:11 1999 Owen Taylor <otaylor@redhat.com>
21714 * gtk/gtkrc.c: deal properly with the fact that RC
21715 style lists may include rc styles more than once.
21717 * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
21718 unused static function.
21720 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
21721 stack of directories of RC files currently being
21722 parsed and implicitely add them to pixmap path.
21724 This fixes a bug where the directory would get
21725 appended then overwritten by pixmap_path declarations.
21727 (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
21729 * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
21730 theme's exit function. (Patch from Peter Wainwright,
21733 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
21734 Add a destroy() handler to take care of removing
21735 group for menu item. (Fixes bug #1197)
21737 * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
21738 in warning message.
21740 Wed Sep 1 21:27:42 1999 Tim Janik <timj@gtk.org>
21742 * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
21743 roundtrip to figure window's width and height, since we know that
21744 anyways from widget->allocation.
21746 Wed Sep 1 12:37:44 1999 Owen Taylor <otaylor@redhat.com>
21748 * gtk/gtkwindow.c (gtk_window_move_resize): Compute
21749 the hints after we request the new size.
21751 Wed Sep 1 10:38:37 1999 Owen Taylor <otaylor@redhat.com>
21753 * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
21754 GTK_WIDGET_REALIZED() assertion - we can compute the
21755 hints before we are realized.
21757 * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
21758 hint changing so that we have a value of hints_changed
21759 when we decide whether to constrain the window size.
21761 * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
21763 * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
21764 change back to G_MAXINT.
21766 Wed Sep 1 06:54:59 1999 Tim Janik <timj@gtk.org>
21768 * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
21769 new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
21770 contain uncluttered values.
21771 (gtk_window_compute_hints): simply assert that window is realized
21772 and that geometry_info is valid, since we rely on this anyways.
21773 (gtk_window_constrain_size): major cleanups to the code.
21774 if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
21775 for the base size, instead of the minimums. use 32767 as max width
21776 and height (like in gtkwindow.c) instead of G_MAXINT.
21778 Wed Sep 1 04:41:25 1999 Tim Janik <timj@gtk.org>
21780 * cleaned up the GtkContainer.need_resize flag handling mess, we
21781 only need to force resize requests when we were prematurely
21782 realized, or our widget tree was modified when we were temporarily
21783 hidden. handling these cases directly upon showing the window (i.e.
21784 while the GdkWindow is still unmapped) avoids the need to wait for
21785 a configure event response and therefore makes the GUI more snappier
21786 and avoids blank windows during the roundtrip.
21790 (gtk_widget_show): don't queue resizes on toplevels, they know how
21791 to deal with matters.
21793 * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
21794 flag directly for not visible resize containers and spare us unecessary
21798 (gtk_window_realize): if we need to enforce premature size allocation,
21799 queue a container resize so we are correctly resized later on.
21801 (gtk_window_size_request):
21802 don't freak around with the ->need_resize flag,
21803 gtk_container_queue_resize() will care about that.
21805 handle initial resizing issues here, we can handle matters better in
21806 this place, especially since we know that our GdkWindow is still
21808 (gtk_window_move_resize):
21809 don't care about ->need_resize at all.
21810 handle size changes properly that occoured while we waited for a
21813 Tue Aug 31 15:58:46 1999 Owen Taylor <otaylor@redhat.com>
21815 * gtk/gtkwidget.c (gtk_widget_set_uposition):
21816 * gtk/gtkwindow.[hc] (gtk_window_reposition):
21817 Move the hint setting code from gtk_widget_set_uposition
21818 to here; set the hints so that we respect any previously
21819 set geometry hints.
21821 * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
21822 change the window hints here or move the window here,
21823 let that happen in gtk_window_move_resize().
21825 Tue Aug 31 06:58:52 1999 Tim Janik <timj@gtk.org>
21827 * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
21828 to already queued resizes (and therefore redraws) on a widget, check
21829 its anchestry as well.
21831 * gtk/gtkcontainer.c:
21832 (gtk_container_queue_resize): clear resize widgets for resize
21833 containers before aborting prematurely. this is especially important
21834 for toplevels which may need imemdiate processing or their resize
21835 handler to be queued.
21836 (gtk_container_dequeue_resize_handler): added new internal function for
21839 * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
21840 configure event, take possible changes in window position into account
21842 if we request a new window size, queue up a resize handler that will
21843 last until the configure event response arrives.
21844 combined the ->need_resize case (initial show) with the general size
21845 (hints) changed case and added even more comments.
21846 if !auto_shrink, only revert to the old allocation if the new size
21847 is smaller than the current allocation.
21849 Tue Aug 31 11:55:20 1999 Owen Taylor <otaylor@redhat.com>
21851 * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
21852 gtk_window_set_geometry_hints
21853 gtk_window_set_default_size):
21854 When hints are set, queue a resize so that the hints will
21855 be eventually reset on the toplevel.
21857 * gtk/gtkwindow.c (gtk_window_show): Use
21858 gtk_window_compute_default_size(). Clear the need_resize flag
21859 on the initail map so that we don't unnecessarily trigger the
21862 * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
21863 into separate functions. Compare the hints we are setting
21864 with what we set last time so that we can accurately
21865 tell when we need to reset the hints.
21867 * gtk/gtkwindow.c (gtk_window_compute_default_size): New
21868 function to figure out the size from requisition
21871 * gtk/gtkwindow.c (gtk_window_constrain_size): Function
21872 from fvwm to constrain a size to the geometry hints.
21874 * gtk/gtkwindow.c (gtk_window_compare_hints): New function
21875 to compare two sets of geometry hints.
21877 * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
21878 from gtk_window_set_hints(), just compute the hints,
21881 * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
21882 code from gtk_window_move_resize() to separate function,
21885 Tue Aug 31 13:05:03 1999 Owen Taylor <otaylor@redhat.com>
21887 * gtkrc.h: Move the ref_count member out of the GtkRcStyle
21888 structure into a new private structure.
21890 * gtkrc.c: Split GtkRcStyle into public/private.
21891 In the private part, add a list of pointers to the
21892 RcStyle lists this RcStyle participates in.
21894 * gtkrc.c: When a RcStyle is free, remove all
21895 lists referencing it from the
21896 realized_style_ht hash, and free those lists.
21898 * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
21899 gtk_rc_init(), since that adds the default styles
21900 to the list of parsed RC files again.
21902 * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
21904 Thu Aug 26 14:14:42 1999 Tim Janik <timj@gtk.org>
21906 * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
21907 checks that ensure that a widget's allocation is at least 1 in width
21908 and height. (GNOME note: this doesn't affect old panel code anymore,
21909 because GtkSocket will request width and height of at least 1 since
21912 * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
21913 allocated yet (happens if the user realizes the window prematurely),
21914 size request and allocate it.
21915 (gtk_window_size_allocate): guard against guint underflows.
21917 Wed Aug 25 19:01:36 1999 Lars Hamann <lars@gtk.org>
21919 * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
21920 in gtk_built_sources, so gtk.defs gets built prior to all other
21923 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
21926 invoke indent on gtkmarshal.*.
21927 rewrote source generation rules, use COPYING as oldest source tag for
21928 a piggyback rule to generate all sources from (don't touch it ;).
21929 major cleanups, strip spaces on build rules for GNU Make.
21931 * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
21932 source and target files from commandline arguments. don't invoke indent.
21934 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
21936 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
21937 notebook after switch to avoid drawing problems.
21938 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
21940 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
21942 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
21944 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
21946 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
21947 notebook after switch to avoid drawing problems.
21948 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
21950 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
21952 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
21954 Wed Aug 18 09:20:10 1999 Tim Janik <timj@gtk.org>
21957 we use window->need_resize from configure_event now, to indicate that
21958 the gtkwindow should keep its allocation (e.g. because the user resized
21959 the window through window manager handles). resize_count is now reliably
21960 used to figure whether we got the allocation we requested from the
21962 configure events get queued as resizes now, the real stuff (size
21963 computation and allocation) now only goes on in gtk_window_move_resize().
21964 GtkWindow's requisition now contains its *real* requisition (like all
21965 other widgets), *not* taking usize into account.
21966 geometry_info->last_{width|height} is now updated from set_hints() only
21967 so it always contains the last hints we set for the window manager.
21968 made some event handlers return TRUE instead of FALSE.
21969 the overall code should be much more straight forward now, and the
21970 significant code portions are accompanied by comments now.
21971 (gtk_window_set_hints):
21972 removed requisition argument and made it
21973 fetch the requisition through gtk_widget_get_child_requisition.
21974 we also don't move the gdkwindow here anymore, gtk_window_move_resize()
21977 ensure that the widget is realized before calling
21978 gtk_container_check_resize() (and thus gtk_window_move_resize()), also
21979 ensure that we got properly size requested and allocated before
21981 (gtk_window_configure_event):
21982 ignore plain window moves, or reallocate the widget tree through the
21983 resize queue otherwise.
21984 (gtk_window_move_resize):
21985 mostly rewrote this function to figure window manager hints more
21986 reliably, coalesce window moves and resizes to reduce configure events
21987 and do actuall size allocations.
21989 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
21991 * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
21992 that have a resize pending, because a redraw is already queued for them.
21994 * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
21995 hack to clear resize_widgets.
21997 * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
21998 for resize containers prior to size allocation. (this is also a bit
21999 ugly, but avoids side effects for stopped emissions and is thus more
22001 (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
22003 * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
22004 function from gtk_tooltips_expose, as we connect to ::expose_event
22007 1999-08-18 Federico Mena Quintero <federico@redhat.com>
22009 * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
22011 (gtk_target_list_unref): Likewise.
22013 * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
22015 Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com>
22017 * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
22018 guard against division by zero. (Fixes bug #1339)
22020 Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com>
22022 * gtk/gtkentry.c (gtk_move_{forward,backward}_word):
22023 Prevent the trivial leak of information of allowing
22024 word motion when the entry is not visible.
22026 Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com>
22028 * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
22029 modality to error dialog as well as confirmation dialogs.
22030 (Bug #1803, reported by Rosanna Wing Sze Yuen)
22032 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
22034 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
22036 (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
22038 * gtk/Makefile.am (install-data-local): Solaris apparently
22039 has various troubles with ln -f; use rm first instead.
22040 (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
22042 1999-07-30 Raja R Harinath <harinath@cs.umn.edu>
22044 * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
22045 use `cp' followed by `rm' (the `rm' was already there).
22047 July 30, 1999 Elliot Lee <sopwith@redhat.com>
22049 * configure.in: Fix autoconf warnings about cross compilation by
22050 trying to provide sane defaults for AC_TRY_RUN.
22051 * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
22052 put them into $(srcdir) when generated. Also add a dependency of
22053 gtksignal.h on gtkmarshal.h for -j builds.
22054 * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
22056 Wed Jul 28 09:29:19 1999 Owen Taylor <otaylor@redhat.com>
22058 * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
22059 GDK_THREADS_{LEAVE,ENTER} pair.
22060 (From Paul Fisher <pnfisher@redhat.com>)
22062 Fri Jul 23 01:00:15 1999 Tim Janik <timj@gtk.org>
22064 * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
22065 width and height are always >0 (owen).
22067 Fri Jul 23 00:00:47 1999 Tim Janik <timj@gtk.org>
22069 * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
22070 change that assured that a widget's allocated with and height are
22071 always >1, since this breaks *buggy* panel code. unfortunately this
22072 back-breaks the gimp's color selector.
22074 * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
22075 allocation is always >0 in width and height, before sending the
22076 configure event; this is a *gross* hack to get the gimp back to work.
22078 * marked both cases with TODO-1.3
22080 Wed Jul 21 15:47:39 1999 Owen Taylor <otaylor@redhat.com>
22082 * gtk/gtktext.c: Don't display wrap indicators when
22083 text is not editable and word wrap is on.
22085 Wed Jul 21 08:21:40 1999 Tim Janik <timj@gtk.org>
22087 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
22088 option menus here as they are not derived from menu shell, assure that
22089 the option menu has a menu we can add items to.
22091 Tue Jul 20 23:29:48 1999 Tim Janik <timj@gtk.org>
22093 * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
22094 width/height to (gint) before calculations and check against < 0 to
22095 avoid guint wraparounds.
22097 Sun Jul 18 00:35:49 1999 Tim Janik <timj@gtk.org>
22099 * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
22100 width and height is never zero. sanity check both dimensions against
22101 32767 and issue a warning if the allocation is greater than that.
22103 Wed Jul 7 15:03:30 1999 Owen Taylor <otaylor@redhat.com>
22105 * gtk/gtkmain.c (gtk_events_pending): Unlock around call
22106 to g_main_pending() as well.
22108 Wed Jul 7 14:59:01 1999 Owen Taylor <otaylor@redhat.com>
22110 * gtk/gtkmain.c (gtk_main_iteration): Unlock around
22111 call to g_main_iteration() - since that will regrab
22112 GTK+ lock to process events.
22114 Thu Jul 1 15:01:55 1999 Owen Taylor <otaylor@redhat.com>
22117 - Regularize with the rest of GTK+ by making widget->requisition
22118 not reflect the set_usize()
22119 - Always recompute geometry hints, then check if they
22120 changed before sending them to the X server. The
22121 previous checks for changes would fail in a number
22124 Thu Jul 1 11:55:59 1999 Owen Taylor <otaylor@redhat.com>
22126 * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
22128 Wed Jun 30 19:26:36 1999 Owen Taylor <otaylor@redhat.com>
22132 - Instantaneously update on modifier key presses
22133 - Allow cancellation of the drag with Escape.
22135 Tue Jun 29 17:04:09 1999 Owen Taylor <otaylor@redhat.com>
22137 * gtk/testgtk.c (create_handle_box): Set the policy
22138 to auto_shrink - otherwise the appearance is rather
22139 strange when flipping between horizontal and vertical.
22141 Mon Jun 28 09:29:52 1999 Tim Janik <timj@gtk.org>
22143 * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
22144 (gtk_window_set_default_size): don't change a value if it's < 0.
22147 Sun Jun 27 11:00:33 1999 Tim Janik <timj@gtk.org>
22149 * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
22151 Mon Jun 28 12:08:25 1999 Owen Taylor <otaylor@redhat.com>
22153 * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
22154 add an extra "/" when concating "/" + filename.
22155 (From Matt Grossman <mattg@oz.net>)
22157 Mon Jun 28 10:57:12 1999 Owen Taylor <otaylor@redhat.com>
22159 * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
22160 for fg_gc if we set it for drawing pixmap.
22162 Tue Jun 15 12:45:12 1999 Owen Taylor <otaylor@redhat.com>
22164 Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
22166 * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
22167 already set, call old engine's destroy function and
22168 unref the old engine.
22170 Thu Jun 10 17:59:38 1999 Tim Janik <timj@gtk.org>
22172 * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
22174 Wed Jun 9 15:13:16 1999 Tim Janik <timj@gtk.org>
22176 * gtk/gtkaccelgroup.h: mark certain functions as internal.
22178 Wed Jun 9 13:48:28 1999 Tim Janik <timj@gtk.org>
22180 * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
22181 expand behaviour changed.
22183 * gtk/gtklabel.c (gtk_label_set_pattern):
22184 (gtk_label_set_justify):
22185 (gtk_label_set_line_wrap):
22186 don't bother invoking queue_clear, the reallocation does
22187 that for us, always free_words so the upcoming resize will
22188 relayout the label's contents.
22190 Wed Jun 9 12:50:48 1999 Tim Janik <timj@gtk.org>
22192 * applied argument implementation patches from Elena Devdariani
22195 * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
22196 ::space_style, ::relief
22197 * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
22198 * gtk/gtkpreview.c: ::expand
22199 * gtk/gtkpaned.c: ::handle_size, ::gutter_size
22200 * gtk/gtknotebook.c: ::homogeneous
22201 * gtk/gtklabel.c: ::wrap
22202 * gtk/gtklist.c: ::selection_mode
22203 * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
22204 * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
22205 * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
22206 * gtk/gtkclist.c: ::sort_type
22207 * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
22208 * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
22210 Tue Jun 1 23:38:38 1999 Owen Taylor <otaylor@redhat.com>
22212 * gtk/gtkstyle.c: Removed ill-thought-out part of last
22215 Tue Jun 1 23:30:09 1999 Owen Taylor <otaylor@redhat.com>
22217 * gtk/gtkstyle.c (gtk_style_attach): Get the reference
22218 counting right when we have to attach a new style
22219 for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
22221 * gtk/gtkstyle.c: Documented the refcounting
22222 peculularities of gtk_style_attach.
22224 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
22226 * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
22229 * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
22230 of GTK_TOPLEVEL for creating the window.
22232 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
22234 * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
22235 the last argument (reported by Per Winkvist).
22237 Tue May 25 13:13:12 1999 Owen Taylor <otaylor@redhat.com>
22239 Fixes for invisible XOR lines (Frank Loemker
22240 <floemker@TechFak.Uni-Bielefeld.DE>)
22242 * gtk/gtkclist.c (gtk_clist_realize): Always use
22243 a non-zero pixel for GDK_XOR.
22245 * gtk/gtkvpaned.c gtk/gtkhpaned.c:
22246 Use GDK_INVERT instead of GDK_XOR.
22248 Wed May 12 21:56:40 1999 Lars Hamann <lars@gtk.org>
22250 * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
22251 signals if h/voffsets differ from adjustment values.
22252 Reportet by Jerome Bolliet <bolliet@in2p3.fr>
22254 Mon May 10 04:20:41 1999 Tim Janik <timj@gtk.org>
22256 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
22257 ::selection-done emissions up to the topmost menu shell.
22259 Fri May 7 10:15:14 1999 Owen Taylor <otaylor@redhat.com>
22261 * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
22262 the user data on the window before destroying it.
22264 * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
22265 unrealize handler to take care of destroying
22266 notebook->panel properly.
22267 (Bug #1198 - Morten Welinder <terra@diku.dk>)
22269 * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
22270 of g_new and g_realloc to stop memory leak. (Actually,
22271 we could just use g_realloc(), but I'm not 100% sure
22273 (Bug #1196 - Morten Welinder <terra@diku.dk>)
22275 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
22277 * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
22279 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
22282 * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
22283 with bin/button confusion.
22285 Thu May 6 04:53:26 1999 Tim Janik <timj@gtk.org>
22287 * gtk/testgtk.c: in the ItemFactory test, link radio items together,
22288 and show how preselection of radio items is done.
22290 Sun May 2 13:31:14 1999 Tim Janik <timj@gtk.org>
22292 * gtk/gtktreeitem.c (gtk_tree_item_set_subtree):
22293 * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
22294 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
22295 * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
22296 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add):
22297 * gtk/gtktable.c (gtk_table_attach):
22298 * gtk/gtklist.c (gtk_list_insert_items):
22299 * gtk/gtkmenushell.c (gtk_menu_shell_insert):
22300 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu):
22301 * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add):
22302 * gtk/gtkbin.c (gtk_bin_add):
22303 * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end):
22304 * gtk/gtkfixed.c (gtk_fixed_put):
22305 * gtk/gtklayout.c (gtk_layout_put):
22306 general fixups to container_add logic. always realize child if
22307 child->parent is realized, only map the child and queue a resize
22308 if child and child->parent are both visible.
22310 Fri Apr 30 09:02:28 1999 Tim Janik <timj@gtk.org>
22312 * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
22313 instead of gtk_container_foreach to walk and unrealize children, so
22314 composite children get also unrealized.
22315 (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
22316 (gtk_widget_map): assert that the widget is visible (basic constrain).
22317 (gtk_widget_real_map): assert that the widget is realized (basic
22320 Fri Apr 29 00:53:20 1999 Tim Janik <timj@gtk.org>
22322 * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
22324 Tue May 4 09:32:08 1999 Owen Taylor <otaylor@redhat.com>
22326 * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
22327 file for iso-8859-2 locales.
22329 * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
22331 Tue Apr 27 16:38:32 1999 Owen Taylor <otaylor@redhat.com>
22333 * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
22334 (Pointed out by andy@rz.uni-karlsruhe.de and others).
22335 Remove some suspicious and useless lines.
22337 Tue May 4 08:44:08 1999 Owen Taylor <otaylor@redhat.com>
22339 * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use
22340 width,height = 0, 0 to mean - here to edge of window,
22341 instead of -1, -1, since the former is all we support.
22343 Tue May 4 08:34:43 1999 Owen Taylor <otaylor@redhat.com>
22345 * gtk/gtkmain.c (gtk_main): Correctly free list nodes
22346 when removing from quit_functions list.
22348 Tue Apr 27 14:17:16 1999 Tim Janik <timj@gtk.org>
22350 * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
22352 Tue Apr 27 18:23:35 1999 Owen Taylor <otaylor@redhat.com>
22354 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
22355 When redrawing characters on non-visible entry, use appropriate
22356 '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
22358 Tue Apr 27 01:31:40 1999 Lars Hamann <lars@gtk.org>
22360 * gtk/gtkclist.c (drag_dest_cell): compute destination cell
22361 from drag coordinates.
22362 (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
22363 use drag_dest_cell.
22365 * gtk/gtktree (drag_dest_cell)
22366 (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
22369 Wed Apr 21 21:26:11 1999 Tim Janik <timj@gtk.org>
22371 * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
22372 translate_* fields.
22373 (gtk_item_factory_finalize): invoke translate_notify independant from
22375 (gtk_item_factory_set_translate_func): likewise.
22376 (gtk_item_factory_destroy): only remove ifactory pointer from those
22377 widgets that belong to us (stupid me).
22379 Mon Apr 19 12:05:31 1999 Owen Taylor <otaylor@redhat.com>
22381 * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
22382 rc_style list when lookup succeeeds.
22384 Thu Apr 15 01:11:24 1999 Lars Hamann <lars@gtk.org>
22386 * gtk/gtkctree.c (resync_selection):
22387 * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
22388 * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
22391 Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
22393 * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
22394 Add some missing GDK_THREADS_ENTER()/LEAVE around
22395 timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
22397 Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
22399 * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
22400 rather than emit_by_name.
22402 * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
22403 on the widget across multiple signal emissions.
22404 (gtk_editable_delete_text): same here.
22405 (gtk_editable_class_init): set widget_class->activate_signal after
22406 editable_signals[ACTIVATE] has been created.
22408 Wed Apr 7 22:59:47 1999 Owen Taylor <otaylor@redhat.com>
22410 * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
22411 position here prematurely -- we might not have the
22412 right ->min_position and ->max_position yet.
22414 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
22416 * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
22417 Add error traps so if the other end of the connection
22420 * gtk/gtkselection.c (gtk_selection_notify): Clean
22421 up properly when selection property retrieval fails.
22423 * gtk/gtkselection.c (gtk_selection_request): Correctly
22424 reject SelectionRequest notifies where the handler
22427 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
22429 * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
22430 when we've previously highlighted.
22432 * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
22433 emit two "drag_leave" signals for Motif drops.
22435 * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
22436 back the correct status messages when dropping from
22437 Motif onto a proxy window that is rejecting the
22440 Sat Mar 27 23:32:13 1999 Tim Janik <timj@gtk.org>
22442 * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
22443 the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
22444 to compare two argument values. added gtk_arg_to_valueloc() to set a
22445 variable from an arg through its location (pointer).
22447 * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
22448 gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
22449 as gfloat*, uchars are collected as guchar*, ints are collected as
22452 Mon Mar 29 17:45:47 1999 Owen Taylor <otaylor@redhat.com>
22454 * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
22455 Include <string.h> instead of <strings.h>.
22457 * gtk/gtkstyle.c: Fix double include of gtkthemes.h
22458 (actually, a lot more duplicate includes occur if
22459 you trace through the sequence of #include's)
22460 gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
22462 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
22464 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
22465 gtk-a-higuti-990322-[0-3]
22467 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
22468 that was causing -DX_LOCALE not to work.
22470 * gtk/gtkrc.c (gtk_rc_init):
22471 X_LOCALE will never have LC_MESSAGES defined
22473 Thu Mar 25 12:38:31 1999 Tim Janik <timj@gtk.org>
22475 * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
22476 g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
22478 * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
22479 left/right as well (gtk-michael-980726-0.patch.gz).
22481 * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
22482 for pointer values, use gchar instead of char. fixed uline allocation
22483 leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
22484 chunks instead of G_ALLOC_ONLY.
22485 (gtk_label_size_request): always alter requisition as passed and leave
22486 widget->requisition alone.
22487 (gtk_label_set_text): allow NULL strings.
22488 (gtk_label_new): likewise.
22490 Wed Mar 24 09:24:03 1999 Tim Janik <timj@gtk.org>
22492 * gtk/gtkdrawingarea.[hc]: type/macro fixups.
22494 Mon Mar 22 05:51:34 1999 Tim Janik <timj@gtk.org>
22496 * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
22497 *and* mapped (i.e. drawable).
22498 (gtk_bin_expose): only send exposes to drawable children.
22500 * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
22501 (gtk_box_expose): only send exposes to drawable children.
22503 * gtk/gtkhscale.c (gtk_hscale_draw):
22504 * gtk/gtkvscale.c (gtk_vscale_draw):
22505 hm, this is an ugly one. we first compute the size of our trough area
22506 here (window relative) and then check intersection with the draw_area
22507 which is parent relative because we're a NO_WINDOW widget, so we need
22508 to offset the trough area by allocation.x and allocation.y before the
22509 check. (this must not be done for the background area though, since
22510 that's already computed parent relative).
22512 Mon Mar 22 00:41:39 1999 Lars Hamann <lars@gtk.org>
22514 * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
22515 unrealize title buttons.
22517 Fri Mar 19 00:00:22 1999 Lars Hamann <lars@gtk.org>
22519 * gtk/gtkclist.c (gtk_clist_column_title_passive)
22520 (gtk_clist_column_title_active):
22521 only connect/disconnect to GtkWidgetClass::event to block mouse events.
22523 * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout):
22524 zero initialize event, removed superfluous gdk_window_get_pointer call
22526 * gtk/gtklist.c (gtk_list_vertical_timeout)
22527 (gtk_list_horizontal_timeout): removed superfluous
22528 gdk_window_get_pointer call
22530 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
22532 * plugging problems reported by "Bruce Mitchener, Jr."
22533 <bruce@puremagic.com> due to a purify session.
22537 (gtk_style_unref): assert ref_count to be > 0.
22539 * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
22541 (gtk_clist_set_shift): likewise.
22543 * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
22546 * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
22547 event before sending it and set send_event to TRUE (which needs to
22548 be done for *all* synthesized events).
22549 (gtk_list_vertical_timeout): likewise.
22551 * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
22554 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
22555 to TRUE when synthesizing events.
22557 [ *** end of merges from 1.2 *** ]
22559 1999-11-21 Tor Lillqvist <tml@iki.fi>
22561 * gdk/gdkconfig.h: Remove, as this is a file generated by configure
22562 (or copied from gdkconfig.h.win32 on Win32, sigh).
22564 * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
22566 * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
22568 * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
22570 * gdk/gdkconfig.h.win32: New file.
22572 * gdk/win32/makefile.cygwin: Build just a static archive here.
22574 * gdk/makefile.cygwin: New file. Get the win32-specific stuff
22575 for the DLL from the static archive built above.
22577 * gdk/gdk.def: Moved here from the win32 subdirectory.
22579 * gdk/win32/*: Adapt for the changed private struct organisation.
22581 * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
22583 Sun Nov 21 16:44:35 1999 Stefan Jeske <stefan@gtk.org>
22585 * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support
22586 for wheel mice (buttons 4 and 5).
22588 1999-11-18 Tor Lillqvist <tml@iki.fi>
22590 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
22591 drawables use just the pixel field in the foreground and
22592 background GdkColor of the GdkGC.
22594 gdk_gc_set_{fore,back}ground() are called in the GIMP with
22595 GdkColors containing uninitialized (red,green,blue) fields, and
22596 just the pixel field filled in, and furthermore in the
22597 visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
22598 It thus turns out that we really don't need to have the full
22599 GdkColor for fg and bg in GdkGCWin32Data after all. Will change
22600 it later to have just the pixel values.
22602 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
22604 * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
22606 Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
22608 * docs/gtkfaq.sgml: threads example from Erik Mouw.
22609 New question on GtkLabel background colors.
22611 * docs/gtk_tut.sgml:
22612 - Correct the example code callback
22613 function definitions.
22614 - Update the gtkdial example code, from Frans van Schaik.
22615 - Update setselection.c to current API.
22617 * examples/Makefile examples/*/*.c: Update to code
22618 listed in tutorial.
22620 1999-11-10 Tor Lillqvist <tml@iki.fi>
22622 * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
22623 subrange table (from the "Developing International Software for
22624 WIndows 95 and Windows NT" book) was missing the Hangul syllable
22625 block... Get the loaded font's charset correctly.
22627 (Note that this, and the other *-win32.c files, still really are
22628 the old ones, the win32 subdirectory is not ready for compilation
22629 yet after the reorg.)
22631 Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
22633 * gtk/gtkclist.c: Fix off-by-one bug in parameter
22636 Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
22638 * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
22639 on results of XQueryDeviceState().
22641 Mon Nov 8 16:40:43 1999 Owen Taylor <otaylor@redhat.com>
22643 * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
22644 we need to accesss only ->children. We need an accessor
22647 * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
22648 DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
22649 to get rid of gdkx.h include.
22651 * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
22652 and random references to 'None'.
22654 * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
22655 Get rid of unused #include <gdk/gdkx.h>
22657 * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
22658 gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
22661 1999-11-08 Tor Lillqvist <tml@iki.fi>
22663 * gdk/win32/gdkdraw.c
22664 * gdk/win32/gdkfont.c
22665 * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
22666 following yesterday's changes. (Unrelated to Owen's reorg.)
22668 Mon Nov 8 16:18:25 1999 Owen Taylor <otaylor@redhat.com>
22670 * gdk/x11/gdkinput-gxi.c: Add missing include,
22671 fix GdkWindowPrivate => GdkDrawablePrivate.
22673 * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
22675 * gdk/x11/Makefile.am (xinput_sources): Add missing
22676 backslash to fix building with --with-xinput=none
22678 Mon Nov 8 14:47:04 1999 Owen Taylor <otaylor@redhat.com>
22680 Move all X specific code into the x11/ directory.
22681 Aside from shuffling things around, did the following:
22683 * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
22684 gdk_arg_context_* - a simple argument parsing system
22685 in the style of popt.
22687 * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
22688 gdk/x11/gdkprivate-x11.h:
22689 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
22690 add ->klass and ->klass_data fields. The klass_data
22691 field points to an auxilliary structure that is
22692 windowing system dependent.
22694 * gdk/gdkfont.c: Make most of the measurement functions
22695 simply wrappers around gdk_text_extents().
22697 * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
22698 _gdk_font_strlen() function that hides the weird
22699 behavior in gtk+-1.[02] where a string is interpreted
22700 differently for 8-bit and 16-bit fonts.
22702 * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
22703 to store common code for synthesizing double/triple
22706 * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
22707 Make all the function that modify an existing GC
22708 simply wrappers around gdk_gc_set_values().
22710 * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
22711 for throwing out later.
22713 * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
22714 GdkImagePrivate and GdkColormapPrivate to have a
22715 windowing system dependent part (GdkFontPrivateX etc.)
22716 that "derives" from the system-independent part.
22718 * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
22719 Got rid of the included-source-files for XInput in
22720 favor of automake conditionals. (Which didn't exist
22721 when XInput support was originally added.)
22723 * gdk/gdkrgb.c: Remove the visual id from the debugging
22724 statements since that is X11 specific; print out
22725 type/depth info instead.
22728 Wed Nov 3 18:14:49 1999 Owen Taylor <otaylor@redhat.com>
22730 * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
22731 loading duplicates of hashed fonts.
22733 * gdk/gdk.c (gdk_keysym_convert_case): rename
22734 gdk_XConvertCase to gdk_keysym_convert_case, allow
22735 results to be NULL in the GTK+ style.
22737 * gdk/gdkcompat.h: Started compatibility header
22740 1999-11-07 Tor Lillqvist <tml@iki.fi>
22742 * gdk/win32/gdkprivate.h: New font private structures, related to
22745 * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
22746 gdk_font_list_free(). On X11, will just be wrappers to
22747 XListFonts() and XFreeFontNames(). On Win32, the code previously
22748 in gtkfontsel.c is now here.
22750 New function gdk_font_xlfd_create(). On X11 will get the FONT
22751 property of the font (for GDK_FONT_FONTs), or call
22752 XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
22753 builds a XLFD style name from the font information in the LOGFONT
22756 New function gdk_font_xlfd_free(), which correspondingly frees the
22757 string returned by gdk_font_xlfd_create().
22759 Implement fontsets on Win32. Add a function that iterates over a
22760 wide char string and calls a callback function for each substring
22761 of wide chars from the same Unicode subrange (and thus probably
22762 available in the same real font).
22764 Improve the XLFD emulation a bit.
22766 * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
22768 * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
22769 Beta3, WM_IME_CHAR messages don't seem to contain the composed
22770 multi-byte char as with the Active IMM on Win9x. Oh well, handle
22771 WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
22772 ImmGetCompositionStringW() to get the composed Unicode chars.
22774 * gdk/win32/gdkgc.c
22775 * gdk/win32/gdkdraw.c: Changes needed because of the font private
22778 * gdk/win32/gdk.def: Add the new functions.
22780 1999-11-04 Tor Lillqvist <tml@iki.fi>
22782 * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
22783 get the Platform SDK to get <dimm.h>.
22785 * gdk/win32/gdkevents.c: More event handling fixes and
22786 simplification. Never generate motion events with is_hint true. We
22787 used to do that on bogus grounds earlier. Windows sends
22788 WM_MOUSEMOVE messages on button events even if the mouse hasn't
22789 moved, ignore these.
22791 * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
22793 * gdk/win32/gdkglobals.c
22794 * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
22795 the TrackMouseEvent function, and use it.
22797 * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
22798 char before calling WideCharToMultiByte in order to get a string
22799 for the window title.
22801 * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
22803 * gdk/win32/gdk.def: Remove obsolete functions.
22805 * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
22806 /nodefaultlib and /defaultlib switches.
22808 * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
22810 1999-10-31 Tor Lillqvist <tml@iki.fi>
22812 * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
22815 * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
22816 same type as GdkWChar, especially on Win32.
22818 * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
22820 * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
22821 before passing to Windows GDI for drawing etc. Convert to the
22822 system default codepage before passing to Windows as window
22825 * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
22826 support changing input locale on the fly.
22828 * gdk/win32/gdkevent.c: Support input language (keyboard locale)
22829 on-the-fly changes. Convert incoming characters from the current
22830 codepage to Unicode (and then to a UTF-8 multi-byte string) based
22831 on the current input language. Use keysym<->Unicode mapping tables
22832 and functions borrowed from xterm sources.
22834 Support IMEs (Input Method Editors) for CJK languages. On non-CJK
22835 editions of Win9x, use the ActiveX-based Active IMM (Input Method
22836 Manager) if available. IMEs and the Active IMM are available under
22837 the disguise of Chinese, Korean and Japanese support for IE and
22838 Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
22839 support is present in all editions (as long as you install it).
22841 Call DispatchMessage from gdk_events_queue() (and thus
22842 gdk_WindowProc()), instead of duplicating the code in
22845 Reworked the grab handling and propagation code, factored out
22846 duplicated code snippets into separate functions. Other cleanups,
22849 * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
22850 the <dimm.h> header describing the Active IMM.
22852 * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
22853 just do the same as for "single" fonts.
22855 * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
22856 gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
22857 the new keysyms from gdkkeysyms.h.
22859 * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
22860 fontset, so that gtkentry uses wide characters.
22862 * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
22863 GTk+'s system directory "gtk+", not "gtk".
22865 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
22867 * docs/gtkfaq.sgml: FAQ update
22869 1999-10-21 Tor Lillqvist <tml@iki.fi>
22871 * gdk/win32/gdkprivate.h: Add more font private data.
22873 * gdk/win32/gdkfont.c
22874 * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
22875 fonts and strings. Now works much better. You still have to
22876 have a correct font selected, though. No fontset emulation yet.
22878 1999-10-19 Tor Lillqvist <tml@iki.fi>
22880 * gtk/maketypes.awk: Use G_OS_WIN32.
22882 * gtk/gtk.def: Add some missing entry points. Also some non-public
22883 ones, but PyGTK porter claims to need them.
22885 * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
22886 built-in type generation.
22888 1999-10-14 Tor Lillqvist <tml@iki.fi>
22890 * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
22891 GDK_FONT_FONT fonts (which is all we have for now, we don't
22892 emulate fontsets). The X11 version uses plain XDrawString in that
22893 case, too. The string passed to gdk_draw_text_wc seems to be in
22894 fact (at least, when used by gtkentry and gtktext) either in a
22895 single-byte charset, or a DBCS. Not Unicode.
22897 This fixes the problem in gtkfontsel, where even if you had
22898 selected a font with a non-Latin1 charset (windows-greek, for
22899 instance), the preview still used Latin-1 glyphs.
22901 * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
22902 use GetTextExtentPoint32W, use GetTextExtentPoint32A.
22903 (gdk_font_load): Recognize the demibold etc weights, even if we
22904 don't have the corresponding constants in the headers.
22905 (gdk_font_hash_insert): Use same hash mechanism as in the X11
22906 version. Should save font resources a bit, when we don't have
22907 multiple HFONTs for the same font.
22909 * gdk/win32/gdkprivate.h: Add the names field as in the X11
22912 1999-10-11 ERDI Gergo <cactus@cactus.rulez.org>
22914 * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
22917 1999-10-09 ERDI Gergo <cactus@cactus.rulez.org>
22919 * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
22920 layout support (as mentioned on
22921 http://www.jcinteractive.com/gnome-ui/software/widgets/)
22923 Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
22926 * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
22928 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
22930 * configure.in (ALL_LINGUAS): Added Galician (gl)
22932 1999-10-05 Tor Lillqvist <tml@iki.fi>
22934 * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
22936 * gdk/win32/gdkcompat.c: New file, actually provide an
22937 implementation for the deprecated functions. (Just temporarily.)
22939 * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
22941 * gtk/makefile.{cygwin,msc}: Update gdk_headers.
22943 * gdk/win32/gdk.def gtk/gtk.def: Updates.
22945 1999-10-05 Kjartan Maraas <kmaraas@online.no>
22947 * configure.in: Added "uk" to ALL_LINGUAS.
22949 Mon Oct 4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
22951 * configure.in: correct checking for BeOS check
22956 * gtk/gtkitemfactory.c
22958 * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
22960 Mon Oct 4 16:16:53 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
22962 * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
22963 encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
22964 languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
22967 Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com>
22969 * gtk/gtkwidget.c (gtk_reset_shapes_recurse):
22970 Fix a reference to window_private->destroyed.
22972 * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
22973 (ugly) setting of an internal GdkWindow member to use
22974 a _slightly_ cleaner macro.
22976 * gdk/gdkprivate.h: Split GdkWindowPrivate into
22977 GdkDrawablePrivate and GdkWindowPrivate.
22978 Add extra macros for accessing GDK_DRAWABLE_ components.
22980 * *.[ch]: Massive adjustments for the above, use the
22981 new macros in a lot of places.
22983 Sun Oct 3 15:16:24 1999 Owen Taylor <otaylor@redhat.com>
22985 * gdk/gdktypes.h: Make GdkDrawable the base type,
22988 Sun Oct 3 15:08:44 1999 Owen Taylor <otaylor@redhat.com>
22990 * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
22992 Sun Oct 3 14:26:15 1999 Owen Taylor <otaylor@redhat.com>
22994 * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
22996 Sun Oct 3 14:16:23 1999 Owen Taylor <otaylor@redhat.com>
22998 * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
22999 gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
23001 * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
23003 * docs/gtk-config.1: Now autogenerated.
23004 * docs/Changes-1.4.txt: started
23006 1999-10-03 Tor Lillqvist <tml@iki.fi>
23008 * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
23009 to #ifdef also here.
23011 * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
23012 Owen did to the X11 backend.
23014 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
23015 ScrollWindowEx when blitting inside a window, it can't be correct
23016 in the general case.
23018 * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
23019 WM_GETMINMAXINFO is easier.
23021 * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
23022 depth equal to the bitspixel value, not the visual's depth.
23024 * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
23025 to 24 even if the bitspixel value is 32.
23027 * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
23028 need to check for depth==32 when bpp==32, depth will always be 24.
23030 Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com>
23032 * docs/Changes-1.4.txt: Started
23034 * gtk/Makefile.am (gdk_headers): Include all the new headers.
23036 * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
23038 * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
23041 * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
23042 header to gdkinputprivate.h.
23044 * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
23045 unused since before 1.2.
23047 1999-09-30 Tor Lillqvist <tml@iki.fi>
23049 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
23050 expand possible hex escapes in the font family (put there by
23051 logfont_to_xlfd if the font name isn't a legal XLFD font family,
23052 mainly if it contains slashes). (gtk_font_selection_create_xlfd):
23053 On Win32, add hex escapes here, too.
23055 Wed Sep 29 19:55:35 1999 Owen Taylor <otaylor@redhat.com>
23057 * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
23058 to #ifdef GDK_WINDOWING_X11.
23060 [ Merges from gtk-1-2 ]
23062 Wed Sep 8 07:13:29 1999 Tim Janik <timj@gtk.org>
23064 * configure.in: fixed "GNU Make" check to pass with new make version
23067 Fri Sep 3 16:04:41 1999 Tim Janik <timj@gtk.org>
23069 * gtk-config.in (--version): don't echo @GTK_VERSION@, but
23070 @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
23071 AM_PATH_GTK() macros don't get confused by the -pre1.
23073 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
23075 * configure.in (REBUILD): Change check for perl5
23076 to check explicitely for v >= 5.002. (5.001
23077 does not work with our scripts.)
23079 Wed Aug 25 15:45:46 1999 Tim Janik <timj@gtk.org>
23081 * configure.in: evaluate $PERL for the perl version check. added
23082 --disable-rebuilds to give the user an option to completely disable
23083 any source autogeneration rules.
23085 Mon Aug 23 23:16:14 1999 Tim Janik <timj@gtk.org>
23087 * configure.in: evaluate $ac_make when checking for GNU Make.
23089 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
23091 * docs/Makefile.am: added generation.txt.
23093 * Makefile.am: require automake 1.4, build README from README.in and
23094 INSTALL from INSTALL.in in dist-hook.
23097 * INSTALL.in: new files to autogenerate README and INSTALL from.
23099 * configure.in: figure whether we have GNU Make
23101 * docs/generation.txt: minor additions/corrections.
23103 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
23105 * docs/gtkfaq.sgml: FAQ Update
23107 July 30, 1999 Elliot Lee <sopwith@redhat.com>
23109 * configure.in: Fix autoconf warnings about cross compilation by
23110 trying to provide sane defaults for AC_TRY_RUN.
23112 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
23115 * ltmain.sh: upgrade to libtool 1.3.3
23117 Thu Jul 8 11:30:18 1999 Owen Taylor <otaylor@redhat.com>
23119 * INSTALL: Indicate that the --with-glib= configure
23120 time flag is unsupported.
23122 Mon Jul 5 20:36:03 1999 Owen Taylor <otaylor@redhat.com>
23124 * docs/generation.txt: Added a file that gives
23125 documenation about the autogeneration process for
23126 various autogenerated files.
23128 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
23130 * configure.in (LIBS): Look for libgmodule in the
23133 Thu Jun 17 13:57:31 1999 Owen Taylor <otaylor@redhat.com>
23135 * docs/gtk_tut.sgml: Removed references to
23136 code examples in my directory on gtk.org as
23137 they should all be in the tutorial now.
23139 * docs/gtk_tut.sgml: Added sources for dial-test
23140 and scribble-xinput programs that were previously
23143 Fri Jun 4 00:08:59 1999 Owen Taylor <otaylor@redhat.com>
23145 * TODO: Added entry about menu keyboard navigation, removed
23146 some finished items.
23148 Mon May 31 00:11:24 1999 Owen Taylor <otaylor@redhat.com>
23150 * acinclude.m4: Standardize on func_dgettext
23151 not func_gettext, so that the checks for dgettext
23152 actually are paid attention to.
23154 Wed May 5 10:47:54 1999 Owen Taylor <otaylor@redhat.com>
23156 * configure.in (LIBS): Add $INTLLIBS into $LIBS
23157 directly, rather than repeating the checks for
23160 * INSTALL: Added information about gettext and
23163 * acinclude.m4 (LIBM): Check for dgettext, not
23164 just gettext. This should hopefully fix things wrt
23165 systems with old versions of GNU gettext installed.
23167 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
23169 * configure.in (LIBS): Look for libgmodule in the
23172 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23174 * autogen.sh: add --enable-maintainer-mode
23176 * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
23178 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
23180 * docs/gtk-config.1.in:
23182 configure.in: gtk-config is now generated.
23184 * docs/gtk-config.1: Removed, now generated.
23186 Thu Sep 23 17:59:59 1999 Tim Janik <timj@gtk.org>
23188 * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
23189 handle CreateNotify itself, still put out a debuging message for
23190 --gdk-debug=events. made the ReparentNotify debugging message more
23192 wrap xcoords translation for ConfigureEvents into an error trap,
23193 a destroy event may already be pending, and in that case, the
23194 actuall coordinate values are not at all critical.
23196 Sat Sep 18 22:24:15 1999 Owen Taylor <otaylor@redhat.com>
23198 * gdk/gdkcc.c: Stop leaking the color_hash all over
23199 the place. Simplify and improve the logic.
23201 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
23203 * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
23204 for prototypes and function implementations consistent (reported
23207 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
23209 * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
23210 send_event set in debugging output.
23211 (gdk_compress_exposures): default initialize the event so we don't
23212 operate on bogus values (namely send_event).
23214 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
23216 * gdk/gdkwindow.c: When we receive an unexpected
23217 destroy notify on one of our windows, don't just
23218 warn about it, also mark our windows as destroyed.
23220 Sun Sep 5 08:10:53 1999 Owen Taylor <otaylor@redhat.com>
23222 * gdk/gdkfont.c (gdk_font_hash_insert): Add
23223 name => font and name => fontset hashes. The
23224 name => fontset hash is a _big_ win since we
23225 weren't previously caching fontsets at all and loading
23226 fontsets is expensive. The name => font hash
23227 is less of a win, but it does save us from doing
23228 repeated XQueryFont calls on the same font.
23230 * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
23231 list so we can remove font/fontset from hash.
23233 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
23235 * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
23236 and slightly confusing test. [ XInternAtom (,,TRUE)
23237 will never return None ].
23239 Sat Sep 4 08:39:26 1999 Owen Taylor <otaylor@redhat.com>
23241 * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
23242 gdk/gdkwindow.c (gdk_window_set_hints):
23244 Don't omit setting the properties if flags == 0 -
23245 there may be an existing set of properties there
23246 already. (Very old bug. Would it be better to
23247 delete the property instead?)
23249 * gdk/gdkselection.c (gdk_selection_property_get): Fix
23250 spelling error in comment.
23252 Wed Sep 1 14:05:30 1999 Owen Taylor <otaylor@redhat.com>
23254 * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
23255 to avoid stomping over gdk_error_warnings.
23257 * gdk/gdkimage.c (gdk_image_new): compute image->bpp
23258 as (bits_per_pixel + 7) / 8. This gives the same
23259 result as before for multiples of 8, but actually
23260 a "reasonable" value for 1bit or 4bit displays.
23262 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
23264 * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
23267 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
23269 * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
23270 discarding configure events.
23272 1999-08-18 Federico Mena Quintero <federico@redhat.com>
23274 * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
23275 refcount is greater than zero.
23277 * gdk/gdkwindow.c (gdk_window_unref): Likewise.
23279 * gdk/gdkfont.c (gdk_font_unref): Likewise.
23281 * gdk/gdkgc.c (gdk_gc_unref): Likewise.
23283 * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
23285 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
23287 * gdk/gdkproperty.c (gdk_property_get): Fix assumption
23288 that format 32 => sizeof(item) == 4. It really is
23291 Tue Jun 29 23:02:42 1999 Owen Taylor <otaylor@redhat.com>
23293 * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
23294 core dump at all on X IO errors, only core dump
23295 if --enable-debug for X errors.
23297 Thu Jun 24 17:06:23 1999 Tim Janik <timj@gtk.org>
23299 * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
23300 unknown window:" message. disabled ConfigureNotify discarding code,
23301 because it led to events being processed out of order.
23303 Thu Jun 24 12:22:02 1999 Tim Janik <timj@gtk.org>
23305 * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
23307 * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
23308 we export this function, supress error warnings and don't reset the
23309 error code in the first half of this function.
23311 * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
23312 code (instead of just -1) so gdk_error_trap_pop() reveals something
23313 actually informative about the error that happened.
23316 don't rely on gdk_error_code being -1 if an error occoured, but just
23317 gdk_error_code != 0.
23319 Thu Jun 24 11:50:07 1999 Tim Janik <timj@gtk.org>
23321 * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
23322 pointer *before* invoking the filter function, so we at least don't
23323 crash if a filter is removed that is currently executed. window filters
23324 *really* need to be made truely reentrant at some point.
23326 Mon Jun 14 11:10:15 1999 Tim Janik <timj@gtk.org>
23328 * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
23329 PropertyNotify debug messages.
23331 Wed May 5 22:51:06 1999 Owen Taylor <otaylor@redhat.com>
23333 Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
23335 * gdk/gdkim.c: Fix cut-and-paste errors for
23336 x/y and PreeditAttributes/StatusAttributes.
23338 Wed May 5 22:24:21 1999 Owen Taylor <otaylor@redhat.com>
23340 * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
23341 G_MAXINT to 2^16 to alleviate overflow problems in
23342 various window managers.
23344 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
23346 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
23349 Wed May 5 12:42:01 1999 Owen Taylor <otaylor@redhat.com>
23351 * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
23352 Initialize size_hints.x and size_hints.y because kwm
23353 brokenly pays attention to them.
23354 (Bug #1181 - Lars Heete <hel@admin.de>)
23356 Wed May 5 11:38:56 1999 Owen Taylor <otaylor@redhat.com>
23358 * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
23359 return value of gdk_list_visuals().
23360 (Bug #1193 - Morten Welinder <terra@diku.dk>)
23362 Tue May 4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
23364 * gdk/gdkim.c (gdk_im_real_open): cast the return value of
23365 XSetIMValues to (void *) when comparing to NULL, to workaround
23366 the problem of some compilers barfing since older X headers don't
23367 have the prototype for it.
23369 Mon Apr 19 10:11:12 1999 Owen Taylor <otaylor@redhat.com>
23371 * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
23372 for pseudocolor where colormap->colors was double
23375 * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
23376 color value in the hash table with the pixel filled
23377 in so when we do later hash table lookups, the color
23380 Sun May 2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
23382 * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
23385 Tue Apr 27 11:17:35 1999 Owen Taylor <otaylor@redhat.com>
23387 * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
23388 pointed out by Morten Welinder <terra@diku.dk>.
23390 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
23392 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23393 default filter from the list
23395 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
23397 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23398 default filter from the list
23400 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
23402 * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
23404 * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
23405 g_strdup_printf instead of calcing the length separately
23407 Tue Apr 13 02:49:33 1999 Owen Taylor <otaylor@redhat.com>
23409 * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
23410 that we don't do in many other places. (Fixing duplicate
23411 #include of config.h)
23413 * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
23414 Otherwise, #ifndef XINPUT_NONE check in the latter
23415 doesn't work. (Bug #546)
23417 Sun Apr 11 14:38:03 1999 Tim Janik <timj@gtk.org>
23419 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
23420 "None" case insensitive.
23422 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
23424 * gdk/gdkselection.c:
23425 Add error traps so if the other end of the connection
23428 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
23430 * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
23431 dest_xid field into two fields - one for the window
23432 to send in messages, one to indicate the last looked
23433 up window for caching purposes. This is needed, so
23434 that Leave messages get the correct window.
23436 Mon Apr 5 13:21:30 1999 Owen Taylor <otaylor@redhat.com>
23438 * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
23439 Fix warning created by people mucking around
23440 with the gsource API.
23442 * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
23443 Change mapping between GIOCondition and GdkInputCondition
23444 to match the way the Linux kernel does it. This should
23445 fix problems where closed pipes were no longer signalling
23446 GDK_INPUT_READ on systems with a native poll().
23448 Mon Apr 5 17:11:57 1999 Owen Taylor <otaylor@redhat.com>
23450 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
23451 explicitly for the string "None" - it is in the XPM
23452 spec and some servers treat unknown colors in odd ways
23453 (like asking the user!)
23455 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23457 * gdk/gdkevents.c: made "->" into a "." of previous change so
23460 Thu Apr 1 18:41:25 1999 Owen Taylor <otaylor@redhat.com>
23462 * gdk/gdkevents.c (gdk_compress_exposures): Set the
23463 window field of the event structure before calling
23466 1999-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
23468 * gdk/gdk.c (gdk_init_check): Use False as the last argument to
23469 XInternAtom() here. This is a particularly Old And Nasty(tm) bug.
23471 Mon Mar 29 17:31:52 1999 Owen Taylor <otaylor@redhat.com>
23473 * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
23474 intermediate text property - prevents major memory
23475 leak when gdk_use_mb.
23476 gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
23478 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
23480 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23481 gtk-a-higuti-990322-[0-3]
23483 * gdk/gdkfont.c (gdk_text_extents_wc): Make work when
23484 sizeof(wchar_t) != sizeof (GdkWChar)
23486 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23487 that was causing -DX_LOCALE not to work.
23489 * gtk/gtkrc.c (gtk_rc_init):
23490 X_LOCALE will never have LC_MESSAGES defined
23492 * gdk/gdk.c (gdk_init_check):
23493 Remove --xim-preedit and --xim-status from argv properly.
23495 * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
23496 that the client window is present on the X server
23497 before we pass it to the input method.
23499 Tue Mar 9 10:46:49 1999 Owen Taylor <otaylor@redhat.com>
23501 * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
23502 if --display is specified on the command line, than
23503 the drag window will not be created on that display.
23505 Tue Mar 9 10:38:24 1999 Owen Taylor <otaylor@redhat.com>
23507 * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
23508 lookups with only_if_exists == TRUE were inserting
23509 bogus values into the atom cache.
23511 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
23513 * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
23514 then reset it to NULL.
23518 (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
23519 key for g_hash_table_remove() in both functions, this prevents us
23520 from accessing possibly uninitialized portions of a GdkColor structure
23521 where we are only interested in its pixel value.
23523 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
23525 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
23526 font hash table, if we have a GdkFontPrivate entry for this font
23527 already, simply increment its reference count, provided by Olaf Dietsche
23528 <olaf.dietsche+list.gtk@netcologne.de>.
23530 1999-09-21 Tor Lillqvist <tml@iki.fi>
23532 * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
23535 * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
23536 unused variables, leftovers from the X11 version.
23538 * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
23540 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
23541 downcase fields on X11.
23543 Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23545 * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
23546 Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
23548 1999-09-17 Tor Lillqvist <tml@iki.fi>
23550 * gdk/win32/gdk.def: Add gdk_threads_mutex.
23552 * gtk/makefile.msc: Correct path to libintl.
23554 Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
23555 use of gint vs. int, and gint vs. gboolean in headers and
23556 definitions. Use GtkType for the *_get_type functions. Note that
23557 these changes preserve binary compatibility.
23561 * gdk/gdk.h: Fix inconsistencies: gint vs int.
23565 * gtk/gtkmenufactory.c
23566 * gtk/gtknotebook.c
23567 * gtk/gtkwidget.c: Fix inconsistencies, also gint
23570 * gtk/gtkcolorsel.[ch]
23571 * gtk/gtkcombo.[ch]
23572 * gtk/gtkdrawingarea.[ch]
23573 * gtk/gtkgamma.[ch]
23574 * gtk/gtkhandlebox.[ch]
23575 * gtk/gtkhpaned.[ch]
23576 * gtk/gtkhruler.[ch]
23578 * gtk/gtkpreview.[ch]
23579 * gtk/gtkruler.[ch]
23580 * gtk/gtksocket.[ch]
23581 * gtk/gtkstatusbar.[ch]
23582 * gtk/gtktoolbar.[ch]
23583 * gtk/gtkvbbox.[ch]
23584 * gtk/gtkvpaned.[ch]
23585 * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
23588 * gtk/gtkgamma.h: Fix bug, missing () in call of
23589 gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
23591 1999-09-14 Tor Lillqvist <tml@iki.fi>
23593 * gdk/gdkcolor.c (gdk_colormap_new)
23594 * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
23595 colormap->colors was allocated twice.
23597 * gdk/win32/gdk.c: Remove some unused stuff.
23599 * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
23602 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
23603 * gtk/gtklabel.h (gtk_label_get_type)
23604 * gtk/gtktipsquery.c (gtk_tips_query_get_type)
23605 * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
23606 in a couple of places, not guint.
23608 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23610 * configure.in,po/et.po: added Estonian language file
23612 Wed Sep 1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23614 * configure.in,po/da.po: added Danish file
23616 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
23618 * docs/gtkfaq.sgml: Minor FAQ Update
23620 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
23622 * docs/gtkfaq.sgml: FAQ update
23624 1999-08-27 Tor Lillqvist <tml@iki.fi>
23626 Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
23627 way to get window contents continually refreshed while resizing. I
23628 didn't like the effects myself, so it's not on by default.
23630 * gdk/win32/gdkprivate.h: New flag variable
23631 gdk_event_func_from_window_proc, FALSE by default.
23633 * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
23634 environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
23635 are passed --gdk-event-func-from-window-proc.
23637 * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
23638 and we have am event_func, call it instead of enqueing the event.
23640 1999-08-23 Tor Lillqvist <tml@iki.fi>
23642 * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
23643 Kelley: Set expose_count in GdkEventExposes correctly.
23645 * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
23646 MULTIPLE_WINDOW_CLASSES).
23648 * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
23649 for bug in NT, apparently NT *does* draw the end pixel, too, in
23650 LineTo with a one-pixel pen, so we don't have to do it ourselves.
23652 1999-08-21 Tor Lillqvist <tml@iki.fi>
23654 Improvements by Hans Breuer:
23656 * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
23658 * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
23659 CS_?REDRAW flags as they cause lots of (late) redraws when "show
23660 window contents while dragging" is turned on. Allocate at least
23661 one unique class for every GdkWindowType. If support for single
23662 window-specific icons is ever needed (eg. Dialog specific), every
23663 such window should get its own class.
23665 1999-08-19 Tor Lillqvist <tml@iki.fi>
23667 * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
23668 error that caused crashes.
23670 1999-08-17 Tor Lillqvist <tml@iki.fi>
23672 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
23673 window, use ScrollWindowEx, and call UpdateWindow. This prevents
23674 bugs when for instance part of the window was outside the
23675 display. Thanks to Philippe Colantoni for finding and fixing this.
23677 1999-08-16 Tor Lillqvist <tml@iki.fi>
23679 * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
23680 endpoint calculations which were totally wrong. (A little RTFMing
23683 * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
23684 from a separate directory, not from gettext, because of licensing
23685 issues (we want to use the LGPL version).
23687 * README.win32: Mention the intl from glibc vs from gettext issue.
23689 1999-08-13 Tor Lillqvist <tml@iki.fi>
23691 * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
23692 in the key event handling: Now AltGr chars work again. Also,
23693 now Alt-digits are passed up as well as Control-digits.
23694 Pass keypad plus and minus as normal plus and minus.
23696 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
23698 * docs/gtkfaq.sgml: FAQ Update
23700 1999-07-25 Tor Lillqvist <tml@iki.fi>
23703 * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
23706 * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
23707 OK, but getting closer. Guard against bogus tilt data from Wacom
23708 ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
23709 enable easier building without Wintab.
23711 * gdk/win32/gdkinput.h
23712 * gdk/win32/gdkevents.c
23713 * gdk/win32/gdkwindow.c: Minor changes related related to above.
23715 * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
23716 code. As we have just one visual on Win32, no sense to have it in a
23717 table, and no need for the hash table.
23719 * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
23720 better on white background.
23722 1999-07-21 Tor Lillqvist <tml@iki.fi>
23724 * README.win32: Update gcc build instructions. Mention gettext is
23727 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
23728 supported cursor size with GetSystemMetrics.
23730 * gdk/win32/gdkfont.c
23731 * gtk/gtkfontsel.c: Guard against some font weight and charset
23732 symbols being undefined (in mingw32 headers).
23734 * gdk/win32/makefile.cygwin
23735 * gtk/makefile.cygwin
23736 * gtk/gtkthemes.c: No longer need to have differently named
23737 gcc-built DLLs when using gcc-2.95 and -fnative-struct.
23739 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
23741 * docs/gtkfaq.sgml: Long awaited FAQ update.
23743 1999-07-15 Tor Lillqvist <tml@iki.fi>
23745 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
23746 it. Obscure bit manipulation needed.
23748 * gdk/win32/gdkevents.c: Logging.
23750 * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
23751 style (file name include compiler name) for theme engines.
23753 1999-07-13 Tor Lillqvist <tml@iki.fi>
23755 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
23757 * gdk/win32/gdkevents.c: Fix long-standing bug in key
23758 events. The key.string wasn't zero-terminated, still we strdup'ed
23759 it in gdk_event_copy(). Synthesize crossing events for button
23760 events before possible propagation.
23762 * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
23764 * gdk/win32/makefile.cygwin
23765 * gtk/makefile.cygwin: Use new DLL naming style for the
23768 * gdk/win32/makefile.msc
23769 * gtk/makefile.msc: Cosmetics mostly.
23771 * gtk/gtk.def: Add missing entry points.
23773 * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
23775 1999-07-09 Tor Lillqvist <tml@iki.fi>
23777 * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
23778 or height is zero. Don't print a warning if Pie or Arc fails, they
23779 always fail (?) for very narrow ellipses.
23781 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
23782 the part or the destination window corresponding to source area
23783 outside of the source drawable's boundary.
23785 * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
23786 anything if less than two points.
23788 * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
23789 return NULL. Gtk cut-and-paste inside a single program works
23790 better this way. (It always gets the clipboard contents from
23791 Windows, not from its own copy, which is cleared anyway. I can't
23792 say I fully understand what happens... Emulating the X selection
23793 and property stuff is a bit of a mess.)
23795 * gdk/win32/gdkevents.c
23796 * gdk/win32/gdkproperty.c: A bit more verbose logging.
23798 * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
23799 that never got deleted). Revamp gdk_region_shrink.
23801 * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
23804 * gtk/gtk.def: Add some missing entry points.
23806 * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
23809 1999-07-04 Tor Lillqvist <tml@iki.fi>
23811 * gdk/win32/gdkevents.c (gdk_event_translate): Handle
23812 Control-digits specially.
23814 1999-07-03 Tor Lillqvist <tml@iki.fi>
23816 * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
23818 1999-06-28 Tor Lillqvist <tml@iki.fi>
23820 * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
23821 bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
23824 1999-06-01 Jose H Mercado <jmercado@mit.edu>
23826 * gtk+.spec.in: Corrected some typos in files section.
23828 1999-06-15 Tor Lillqvist <tml@iki.fi>
23830 * README.win32: Mention using GNU gettext.
23831 * config.h.win32: Enable NLS stuff.
23832 * gtk/makefile.msc: Use GNU gettext.
23833 * gdk/win32/gdkdnd.c: Minor header reorg.
23834 * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
23836 * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
23837 * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
23839 Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
23845 * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
23847 1999-05-30 Tor Lillqvist <tml@iki.fi>
23849 * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
23850 SafeAdjustWindowRectEx. Don't override all calls to
23851 AdjustWindowRectEx by it, but use it only in two places: When
23852 creating a new top-level window and when moving a top-level
23855 Use screen coordinate rectangle, not client rectangle, in
23856 gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
23857 when we try to place a window so that the decoration (mainly,
23858 title bar) isn't visible.
23860 These changes fix the bug that showed up for instance as the
23861 GIMP's saved top-level windows moving right and down (by an amount
23862 equal to the window decoration) for each session. This bug showed
23863 up also in testgtk's "Saved Position".
23865 gdk_window_resize also redone a bit.
23867 1999-05-25 Tor Lillqvist <tml@iki.fi>
23869 * gtk/testgtkrc: Add (commented out) Windows-style theme
23872 * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
23874 1999-05-18 Tor Lillqvist <tml@iki.fi>
23876 * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
23877 gdkx.h to a gdk subdirectory, so that applications can include
23878 these with <gdk/*.h> without trouble.
23880 * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
23881 (gdk_image_destroy): Plug resource leak, some GdkImages didn't
23882 have their bitmap destroyed.
23884 * gdk/win32/gdk.def: Add gdk_root_parent.
23886 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
23892 gtk/Makefile.am: changes to compile nicely (with xlib)
23895 Sat May 1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
23901 * ltmain.sh: upgrade to libtool 1.3
23903 Fri Apr 30 13:38:16 1999 Lars Hamann <lars@gtk.org>
23906 * gtk/gtkctree.c: merges from gtk-1-2
23908 1999-04-25 Tor Lillqvist <tml@iki.fi>
23910 Support added for building using a GNU toolchain on Win32,
23911 gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
23913 * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
23914 * config.h.win32: Changes for gcc.
23915 * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
23916 * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
23917 * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
23918 * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
23919 Protect shl stuff unavaiilable with mingw32 headers.
23920 * gdk/win32/gdkevents.c: Fix typo.
23921 * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
23922 * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
23923 * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
23924 * gdk/win32/gdkprivate.h: Make up for some stuff missing from
23925 the mingw32 headers.
23926 * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
23927 * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
23928 definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
23929 * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
23930 Test for NATIVE_WIN32, not _MSC_VER.
23931 * gtk/gtkmain.c: No use warning about developer version on Win32,
23932 there aren't any non-developer versions anyhow.
23933 * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
23934 * gtk/makefile.msc: Use pthread from another directory. Minor other
23937 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
23939 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23940 default filter from the list
23942 Mon Mar 8 12:52:53 1999 Owen Taylor <otaylor@redhat.com>
23944 * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
23945 when gtk_widget_grab_default() is called for a widget that
23946 is not within a GtkWindow.
23948 Sat Apr 10 13:52:54 BST 1999 Tony Gale <gale@gtk.org>
23950 * docs/gtk_tut.sgml, examples/clist.c: use a
23951 scrolled window in the clist example. Minor
23954 Fri Apr 2 09:19:20 BST 1999 Tony Gale <gale@gtk.org>
23956 * docs/gtk_tut.sgml: Style check from David King
23957 <dking@youvegotmail.net>
23959 1999-03-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
23961 * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
23962 compile with unknown value of GDK_WINDOWING
23964 1999-03-28 Raja R Harinath <harinath@cs.umn.edu>
23966 * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
23967 after the rule is fired.
23968 (install-exec-local): Install gdkconfig.h only if the contents are
23969 different from the currently installed gdkconfig.h.
23971 1999-03-26 Raja R Harinath <harinath@cs.umn.edu>
23973 * gdk/Makefile.am (configexecincludedir): Rename from
23974 configincludedir so that gdkconfig.h will be installed
23975 as part of `make install-exec'.
23977 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
23983 * ltmain.sh: upgrade to libtool 1.2f
23985 * autogen.sh: libtool is not required to autogen gtk+
23987 * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
23990 1999-03-18 Tor Lillqvist <tml@iki.fi>
23992 * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
23993 declaring gdk variables exported/imported from the DLL. New image
23994 type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
23995 drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
23996 GDK_DRAG_PROTO_OLE2.
23998 * gdk/gdk.h: Merge in Win32 version: Two new functions,
23999 gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
24000 declared only for the Win32 version, but could be in the X11
24001 version as well. (Needed for a Xlib-less gdk_imlib.)
24002 gdk_color_hash should have only one parameter. Declare
24003 gdk_threads_mutex with GDKVAR.
24005 * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
24006 just one parameter.
24008 * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
24009 per pixel, not bits.
24011 * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
24012 Fetch bpp (which means bits-per-pixel here) from another place on
24013 Win32. Accept also depth==32 (which we might get on Win32) with
24016 * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
24017 gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
24018 gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
24019 Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
24020 in the backend-dependent directory, not in the common gdk
24023 * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
24026 Wed Mar 17 05:06:49 1999 Tim Janik <timj@gtk.org>
24028 * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
24029 want to use the Gtk+ devel version (which is true, and yes - even i am
24030 currently working with the 1.2.x branch). so everyone reading this, you
24031 probably want to issue
24032 cvs checkout -r glib-1-2 glib
24034 cvs checkout -r gtk-1-2 gtk+
24035 as your next two comands.
24037 Wed Mar 17 02:49:32 1999 Tim Janik <timj@gtk.org>
24039 * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
24040 gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
24042 * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
24043 file. strongly deprecated the GTK_HAVE_* macros, we provide
24044 GTK_CHECK_VERSION() for people that need to check for certain
24047 * gtk/gtkcompat.h: removed this from CVS.
24048 * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
24049 idea right from the start, it just didn't seem like that back then.
24051 Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
24053 * merges from gtk-1-2:
24055 Tue Mar 16 17:43:33 1999 Tim Janik <timj@gtk.org>
24057 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
24058 item factory class has been created.
24059 (gtk_item_factory_parse_rc): likewise.
24062 keep proper references for old_active_menu_item.
24063 (gtk_menu_reparent): unset the usize of the new parent,
24064 so the menu can sanely be size requested and we don't get nasty screen
24065 artefacts upon next reparentation.
24066 (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
24067 enter notify. only synthesize enter notifies if the pointer really is
24068 inside the event window.
24069 (gtk_menu_popdown): use gtk_menu_shell_deselect().
24070 (gtk_menu_popup): move the background setting stuff into
24071 gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
24073 * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
24074 gtk_menu_shell_select_item() to select the new item.
24075 (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
24076 do the right thing for deselection as well.
24078 Sat Mar 15 20:10:33 1999 Tim Janik <timj@gtk.org>
24080 * gtk/gtkwidget.[hc]:
24081 (gtk_widget_accelerators_locked): return whether a widget's accelerators
24084 * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
24085 existing accelerators if the widget's accelerators are locked.
24087 Sat Mar 14 19:44:05 1999 Tim Janik <timj@gtk.org>
24089 * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
24091 * gtk/gtkmenu.c: truely forward key press and key release events to
24092 the menu widget from the toplevel or tearoff window. we can't simply
24093 connect to that, we need to stop further processing of the events as
24096 Sat Mar 13 13:14:17 1999 Tim Janik <timj@gtk.org>
24099 (gtk_menu_key_press): pass event->keyval, event->state to
24100 gtk_accelerator_valid, instead of event->keyval twice.
24101 refuse to install single letter accelerators for menus that use
24102 single letter shortcuts.
24104 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
24105 gtk_menu_ensure_uline_accel_group().
24107 * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
24108 which will always return an uline accel group, made
24109 gtk_menu_get_uline_accel_group() return NULL if the group isn't
24112 Mon Mar 15 01:03:27 1999 Lars Hamann <lars@gtk.org>
24114 * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
24116 * gtk/gtkclist.c (gtk_clist_column_title_passive):
24117 Leave button sensitive, trap button_press, button_release,
24118 motion_notify, enter_notify and leave_notify events instead.
24119 (gtk_clist_column_title_active): disconnect event handler.
24120 (gtk_clist_drag_data_get): fixed memory leak. Reported by
24121 Guillaume Laurent <glaurent@worldnet.fr>
24123 Wed Mar 10 23:49:55 1999 Lars Hamann <lars@gtk.org>
24125 * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
24126 width/height mixups.
24128 * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
24131 Wed Mar 10 00:11:32 1999 Tim Janik <timj@gtk.org>
24133 * gtk/testgtk.c (create_item_factory): unref the item factory after
24134 window's destruction.
24136 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
24137 count on the menu shell around the menu item's activation, since the
24138 signal emission may cause menu shell destruction.
24140 * gtk/gtkitemfactory.c:
24141 the previous code leaked one accel group per menu. we use
24142 gtk_menu_get_uline_accel_group() now to fix that, and with that
24143 also create the underline accelerator group of the menus only if
24144 required (i.e. an underline accelerator has been specified).
24145 (gtk_item_factory_construct):
24146 (gtk_item_factory_create_item): removed code that would create an
24147 extra accel group for the menu (and leak references).
24148 (gtk_item_factory_create_item): adapted the underline accelerator
24149 installation code to properly feature gtk_menu_get_uline_accel_group().
24151 * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
24152 menu->accel_group, this may return NULL if the accelerator group
24153 hasn't been set yet.
24154 added gtk_menu_get_uline_accel_group() to retrive the underline
24155 accelerator group of the menu, this will be created on demand
24156 and proper care is taken about its reference count.
24158 * gtk/gtkitemfactory.h:
24159 * gtk/gtkitemfactory.c:
24160 dumped the approach of keeping a widgets by action list on the
24161 factory since the factory<->widget destroy negotiation didn't work
24162 and would be hard to get going at all. instead we keep a list of
24163 GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
24164 persistant throughout a program's life time).
24165 also, i removed the static const gchar *key_* variables, and made
24166 them inline strings (they weren't actually used anyways).
24167 (gtk_item_factory_add_item): update ifactory->items.
24168 (gtk_item_factory_destroy): destroy ifactory->items (and remove
24169 the item factory pointer from the remaining ifactory widgets).
24170 (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
24171 list to find the widget.
24172 (gtk_item_factory_get_item): new function that works around
24173 gtk_item_factory_get_widget() limitations, this function will only
24174 return menu items, even for <Branch> entries.
24176 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
24178 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24179 font hash table, if we have a GdkFontPrivate entry for this font
24180 already, simply increment its reference count, provided by Olaf Dietsche
24181 <olaf.dietsche+list.gtk@netcologne.de>.
24183 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24184 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24186 Sun Mar 7 06:13:29 1999 Tim Janik <timj@gtk.org>
24188 * gtk/gtkcontainer.c:
24189 (gtk_container_add_with_args):
24190 (gtk_container_addv):
24191 (gtk_container_add): before adding a child to a conatiner, make sure
24192 it is (default) constructed, this is neccessary because under certain
24193 circumstances the child will get relized and mapped immediatedly, in
24194 which case it has to be constructed already.
24196 Mon Mar 1 17:58:21 1999 Tim Janik <timj@gtk.org>
24198 * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
24199 values > 1 as TRUE also.
24201 1999-03-16 Tor Lillqvist <tml@iki.fi>
24203 * README.win32: New file.
24205 * configure.in: Check for lstat.
24207 * config.h.win32: Add non-definition of HAVE_LSTAT, just for
24210 * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
24212 * gtk/gtk.def: Removed CRs.
24214 * gtk/makefile.msc: Correct include path to Win32 GDK version (in
24217 * gdk/win32/makefile.msc: Correct upwards relative paths.
24219 Mon Mar 15 03:38:34 1999 George Lebl <jirka@5z.com>
24221 * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
24222 gtk_drag_highlight_expose and gtk_drag_highlight_paint since
24223 it was connecting a void function to expose_event and the int
24224 returning function to the draw signal
24226 1999-03-14 Jeff Garzik <jgarzik@pobox.com>
24229 Use correct path to libgmodule.la when ref'ing uninstalled copy
24230 of glib. (Already in stable branch, Bug #417)
24232 1999-03-15 Tor Lillqvist <tml@iki.fi>
24234 Win32 merge and general portability stuff:
24236 * acconfig.h,configure.in: Check for <sys/time.h>.
24238 * gdk/win32: New directory (actually, been there for a while).
24240 * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
24241 NATIVE_WIN32, and use these. Always case fold on Win32. No
24242 backslashed escapes on native Win32.
24244 * gtk/{gtk.def,makefile.msc}: New files.
24246 * gtk/Makefile.am: Add above new files.
24248 * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
24249 instead of <strings.h>.
24251 * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
24252 config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
24253 <unistd.h> appropriately.
24255 * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
24256 Use ABS() (from <glib.h>) instead of abs().
24258 * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
24259 of gtk (and thus glib) headers, so that WIN32 will be
24260 defined. With MS C, include <direct.h> for mkdir prototype.
24262 * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
24263 some casts, needed by MS C.
24265 * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
24268 * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
24269 <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>. Use
24270 G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
24272 * gtk/gtkmain.h: Mark variables for export/import on Win32.
24274 * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
24275 the event is not a hint, or its window is not the slider. Needed
24276 on Win32, at least.
24278 * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
24279 unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
24280 G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
24281 a subdirectory of the Windows directory as gtk system
24282 configuration directory.
24284 * gtk/gtkselection.c: No chunks on Win32.
24286 * gtk/gtksocket.c: Not implemented on Win32.
24288 * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
24290 * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
24292 * gtk/maketypes.awk: Declare variables with a macro that expands to
24293 necessary export/import magic in the case of Win32.
24295 * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
24297 1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
24299 * configure.in (gdk_wc): Move widechar tests from `glib' to here,
24300 since those were meant only for gdki18n.h.
24301 * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
24302 for widechar tests.
24303 * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
24305 1999-03-13 Tor Lillqvist <tml@iki.fi>
24307 * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
24308 gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
24310 * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
24311 installed) to CFLAGS.
24313 * gdk/Makefile.am: Add rules for gdkconfig.h.
24315 * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
24318 * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
24319 gdkx.h anyway when compiling for X11.
24320 (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
24321 general): Merge in Win32 version.
24323 * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
24324 version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
24325 expansion (if we don't have HAVE_PWD_H), allow for drive
24326 letters. UNC paths (\\server\share\...) are not handled yet. Also,
24327 included code from Craig Setera's port to Win32 (the one that uses
24328 X11, and the cygwin dll), even if it probably will be abandoned.
24330 * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
24331 the user entered one herself. This way one can complete *.h and
24332 don't get matches on any .help files, for instance.
24334 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
24336 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24337 font hash table, if we have a GdkFontPrivate entry for this font
24338 already, simply increment its reference count, provided by Olaf Dietsche
24339 <olaf.dietsche+list.gtk@netcologne.de>.
24341 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24342 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24344 1999-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
24346 * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
24347 the number of calls to gdk_draw_point() (and thus to X) by
24348 clipping the points by hand.
24350 * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
24351 the clip parameter.
24352 (gtk_handle_box_paint): Only paint the handle if the expose area
24355 Sun Mar 7 18:46:37 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
24357 * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
24359 Sun Mar 7 11:43:34 1999 ape@spacetec.no (Asbjorn Pettersen)
24361 * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
24362 Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
24364 Fri Mar 5 09:12:24 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
24366 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
24367 textmode (O_TEXT) for OS/2 version.
24369 Sun Feb 28 16:46:02 1999 Stefan Jeske <stefan@gtk.org>
24371 * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to
24372 GtkSpinButton, "input" and "output", to make the output more flexible.
24373 The user has to provide a mapping between adjustment->value and the
24374 output string (and vice versa, if the spin button is editable).
24375 See testgtk for examples.
24377 Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
24379 * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
24382 * configure.in: set gtk+ version to 1.3.0.