1 2001-04-11 Alexander Larsson <alexl@redhat.com>
3 * gtk-2.0.m4: Pass pkg-config options
4 before the other args so it works even if
5 POSIXLY_CORRECT is set.
7 Mon Apr 9 19:02:07 2001 Tim Janik <timj@gtk.org>
9 * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
12 2001-04-04 Denis Oliver Kropp <dok@convergence.de>
14 * gtk/gtkcalendar.c (gtk_calendar_button_press):
15 check for action_func != NULL
17 2001-04-04 Sven Neumann <sven@gimp.org>
19 * tests/testgtk.c (test_init): corrected path to gtk.immodules
21 Wed Apr 4 09:18:18 2001 Tim Janik <timj@gtk.org>
23 * Released Gtk+-1.3.3.
25 Wed Apr 4 07:42:23 2001 Tim Janik <timj@gtk.org>
27 * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
29 Wed Apr 4 04:13:18 2001 Tim Janik <timj@gtk.org>
31 * gtk/stock-icons/Makefile.am: stay in builddir and read/write
32 files to/from source dir. (if we don't stay in builddir, we
33 can't reach make-inline-pixbuf.
35 * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
38 * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
41 Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
43 * gtk/gtktreemodelsort.h: removed set_sort_column, as it was
44 moved to the GtkTreeSortable interface.
46 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
47 Make more efficient (fixes #50262).
49 Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
53 * configure.in: Remove support for uninstalled glib.
55 * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
56 so as not to stop emission.
58 * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
59 is no longer supported.
61 * Makefile.am gtk/Makefile.am tests/*: Moved all tests
62 into tests, change build order to build modules before
65 * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
68 Tue Apr 3 13:52:57 2001 Tim Janik <timj@gtk.org>
70 * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
71 and gtk_item_factory_dump_rc() GtkPatternSpec argument to
72 GPatternSpec. this is actually unlikely to cause breakage in
73 third-party apps since except for gle, pretty much ever caller
76 * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
78 * *.c: use g_pattern_*() API.
80 * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
82 * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
83 directions aren't passed in.
85 * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
86 functionality to be usable from gtkstyle.c as well, give precedence
87 for conversion to user-supplied parsers.
88 s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
90 * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
91 _gtk_settings_parse_convert() for rcporperty value conversion.
93 2001-04-03 Alexander Larsson <alexl@redhat.com>
95 * gdk/linux-fb/gdkevents-fb.c:
96 Add empty gdk_setting_get().
98 Tue Apr 3 05:09:07 2001 Tim Janik <timj@gtk.org>
100 * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
103 * gtk/makeenums.pl: touch this so enum files get remade.
105 Mon Apr 2 19:36:57 2001 Jonathan Blandford <jrb@redhat.com>
107 * gtk/gtktreestore.c (gtk_tree_store_init): Bug fix to make trees
108 work again when not sorted.
110 * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
111 and "expand_row" signal, closing bug 52578.
113 * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
116 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
119 Mon Apr 2 18:18:07 2001 Owen Taylor <otaylor@redhat.com>
121 * gdk/gdkevents.h: Add GdkEventSetting event for notification
122 of changes to system settings, gdk_setting_get() to retrieve
123 a single system setting.
125 * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
126 to the draft XSETTINGS mechanism.
128 * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
131 * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
132 of GDK settings changes to the GtkSettings object.
134 * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
135 double-click-timeout property to GDK.
137 * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
138 Define GDK boxed types here.
140 * gdk/Makefile.am gdk/makeenums.pl: Generate source files
141 gdk/gdkenumtypes.[ch] for enum definitions.
143 * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
144 * gtk/gtk-boxed.defs: Comment out GDK types
145 * gtk/gtktypeutils.h: Remove GDK types
146 * gtk/Makefile.am: No longer scan GDK headers for enumerataions
148 Mon Apr 2 16:41:08 2001 Owen Taylor <otaylor@redhat.com>
150 * Applied patch from Ron Steinke to add signal accumulators
151 so that signals with the convention 'TRUE return means
152 handled' stop emission on a TRUE return.
154 * gtk/gtkmain.[ch]: Add private accumulator
155 _gtk_boolean_handled_accumulator, used throughout GTK+.
157 * gtk/gtkspinbutton.c: Add accumulator for ::output.
159 * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
161 * gtk/gtkwidget.c: Add accumulators for event signals,
162 ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
163 for ::mnemonic-activate.
165 * gtk/gtkwindow.c: Add accumulator for ::frame_event
167 Mon Apr 2 16:24:21 2001 Owen Taylor <otaylor@redhat.com>
169 * gtk/gtkwidget.c: Add missing include.
171 Mon Apr 2 16:56:15 2001 Jonathan Blandford <jrb@redhat.com>
173 * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
176 * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
177 "changed" signal to "range_changed".
179 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
180 removing a tree from one model would remove all trees from that
182 * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
183 changed signal instead.
185 Mon Apr 2 16:13:58 2001 Owen Taylor <otaylor@redhat.com>
187 * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
188 chaining up to parent impl, since we have a INPUT_ONLY
191 * gtk/gtkentry.[ch]: Add a cursor_color property to set the
192 foreground color for the cursor.
194 Mon Apr 2 15:06:13 2001 Owen Taylor <otaylor@redhat.com>
196 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference
197 param spec when caching property values, since we unref it
198 later when we free the style.
200 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
201 values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
203 Mon Apr 2 10:47:57 2001 Owen Taylor <otaylor@redhat.com>
205 * gtk/gtkwidget.c (gtk_widget_class_init): Fix
206 G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
209 Mon Apr 2 00:51:11 2001 Owen Taylor <otaylor@redhat.com>
211 [ First pass at adding style properties. Still needs some definite
214 * gtk/gtkbutton.c: Add ::default_spacing style property.
216 * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
217 ::indicator_spacing style properties.
219 * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
222 * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
223 rather than a normal property.
225 * gtk/gtkwidget.c: Add an ::interior_focus style property to
226 draw focus inside buttons, in the Windows/Java Metal/etc. style.
228 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
229 Honor ::interior_focus.
231 * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is
234 * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
235 Add ::slider_width, ::trough_border, ::stepper_size,
236 ::stepper_spacing style properties.
238 * gtk/gtkscale.[ch] Add ::slider-length style property.
240 2001-04-02 Alexander Larsson <alexl@redhat.com>
242 * gdk/linux-fb/gdkwindow-fb.c:
243 Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
244 warnings that were spewed on startup.
246 * gtk/gtkwindow-decorate.c:
247 gtk_window_reposition -> _gtk_window_reposition
249 Sun Apr 1 21:37:22 2001 Owen Taylor <otaylor@redhat.com>
251 * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
252 Add boxed type for GtkRequistion. Use it for ::size-request.
254 * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
255 Add a new GtkBorder structure useful for geometry properties
256 for widgets. Add corresponding GTK_TYPE_BORDER.
258 * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
259 Support automatic parser selection like
260 gtk_settings_install_property_parser().
262 * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
263 functionality for use by gtk_widget_class_install_style_property.
264 Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
266 Sun Apr 1 20:48:59 2001 Owen Taylor <otaylor@redhat.com>
268 * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
269 g_param_spec_unichar().
271 Sun Apr 1 23:41:37 2001 Tim Janik <timj@gtk.org>
273 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
274 _NET window managers.
276 * gtk/gtkmenufactory.[hc]: cvs removed those files now.
278 Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
280 * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
281 bad needs to be nuked, not just deprecated.
283 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
286 * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
288 * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
291 * docs/Changes-2.0.txt: updates.
293 Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
295 * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
296 for (i = 0; i < 100; i ++)
297 g_print ("I will confirm it compile before committing\n");
299 Sun Apr 1 00:52:06 2001 Jonathan Blandford <jrb@redhat.com>
301 * gtk/gtktreestore.c: Initial work on implementing the
302 GtkTreeSortable interface. Basicaly a big cut'n'paste job.
304 Sun Apr 1 03:28:14 2001 Tim Janik <timj@gtk.org>
306 * gtk/gtkwidget.c: fixed a bunch of notifications, added
307 reference counts around emissions where the widget is used afterwards.
308 added freeze/thaws around multiple properties being notified.
309 (_gtk_widget_get_aux_info): cleanups.
311 * gtk/gtksettings.c (gtk_settings_install_property): provide
312 default parsing functions for gdkcolor, enums and flags.
314 * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
316 backed out gtk_window_get_location(), gtk_window_set_location(),
317 gtk_window_get_size() and gtk_window_set_size(), these
318 have to be sorted out wrg x/y/width/height/default_with/default_height
320 kept a flag in GtkWindowGeometryInfo to handle user
321 resetting default sizes.
322 cleaned up ZVT comments.
323 bunch of assorted bug fixes, notification fixes.
324 (_gtk_window_reposition): make this a really internal function.
326 * gtk/testgtk.c: fixups.
328 2001-03-31 Hans Breuer <hans@breuer.org>
330 * config.h.win32.in : disable USE_MMX for msvc build cause
331 the assembler doesn't fit and is out of my scope. Disable
332 USE_GMODULE for msvc build as wel. The right way to share
333 binaries on win32 would be to use libtiff.dll etc. To reduce
334 installation hassles IMO it's better to include all fileformats
335 builtin to gdk-pixbuf
337 * gdk-pixbuf/makefile.msc : new file
339 * gdk/gdk.def : updated
341 * gdk/win32/gdkevents-win32.c : don't erase the background if
342 .no_bg is set. It improves the scrolling (e.g. of testgtk main
344 * gdk/win32/gdkgeometry-win32.c : added comment about the above
346 * gdk/win32/gdkwindow-win32.c : added three new functions like
347 the X version. Only one is implemented, because the other two
348 "gdk_window_begin_(resize|move)_drag" got no docs and appear to
349 be default behaviour on win32 anyway ...
351 * gtk/gtk.def : updated
353 * gtk/makefile.msc.in : update for new files, use glib-genmarshal
354 from where it was built and add an additional rule to automagically
355 build gtkmarshal.[hc]
357 * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
358 before array access for the current entry isn't finished
360 * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
361 use g_return_val_if_fail
363 * gtk/testgtk.c (window_controls) : don't use the *wrong* size
364 for the static array, but let the compiler calculate it. It
365 makes me wonder if gcc isn't capable to catch bugs like this ...
367 2001-03-31 James Henstridge <james@daa.com.au>
369 * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
370 constant "-1" in the aux info structure.
372 2001-03-30 Alexander Larsson <alexl@redhat.com>
374 * gtk/gtkbutton.c (gtk_button_get_property):
378 * gtk/gtkcontainer.c:
380 * gtk/gtkhscrollbar.c:
384 * gtk/gtkprogressbar.c:
389 * gtk/gtkvscrollbar.c:
391 Property patches, based on patches from John Margaglione and Lee Mallabone.
393 Thu Mar 29 21:20:38 2001 Mike Kestner <mkestner@ameritech.net>
395 * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
396 adjustment. Cleaned redundant preconditions (spin != NULL). Added
397 inline API function docs.
398 (gtk_spin_button_new_with_range): New convenience constructor.
399 (gtk_spin_button_set_increments): New adjustment helper.
400 (gtk_spin_button_set_range): New adjustment helper.
402 * gtk/testgtk.c : added test of the new convenince constructor and
403 value_changed signals.
405 Thu Mar 29 20:20:38 2001 Jonathan Blandford <jrb@redhat.com>
407 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
408 listen to the reorder signal.
410 Wed Mar 28 20:30:26 2001 Owen Taylor <otaylor@redhat.com>
412 * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
413 to get the aux info structure fo the widget.
415 * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
418 [ Patch from Havoc Pennington <hp@redhat.com> ]
420 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
421 to get the size of the window manager frame, basically the same
422 code that gdk_window_get_root_origin() had
423 (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
425 * gtk/gtkwindow.c (gtk_window_set_default_size): use
426 gdk_window_resize() if the window is realized and resizeable
428 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
429 typo so that setting gravity works
431 * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
432 allocation if auto_shrink is on, even if the default size
435 * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
438 Thu Mar 29 16:29:12 2001 Jonathan Blandford <jrb@redhat.com>
440 * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
441 reordering/sorting work. Now pretty much works.
443 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
444 reorder mostly work. Still need to get the parity correct.
446 * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
447 signal, so I can listen for the sort_column_changed signal so I
448 can change my "sort_indicator" property. Cool.
450 Wed Mar 28 00:03:10 2001 Owen Taylor <otaylor@redhat.com>
452 [ Patch from Havoc Pennington, hp@redhat.com ]
454 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
455 Add functions gdk_window_begin_resize_drag/begin_move_drag
456 to start resizing or moving a toplevel window. This
457 is done either using the _NET_WM_MOVERESIZE protocol,
458 or, if that isn't present, by emulation.
460 * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
461 to export the above to GTK+-land.
463 * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
465 * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
466 Move this function into gdkwindow, since we need it
467 when implementing fallback resizing.
469 * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
470 Fix typo when setting gravity.
472 * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
473 Add an optional (but on by default) resize grip for resizing
476 01-03-29 Alexander Larsson <alexl@redhat.com>
478 * gtk/gtktooltips.c (gtk_tooltips_event_handler):
479 Don't return TRUE from the event handler, that blocks all
480 event signals on the tooltip widget. Now you can press buttons
483 Wed Mar 28 19:20:43 2001 Owen Taylor <otaylor@redhat.com>
485 * gtk/testtext.c (create_buffer): Add missing NULL on
488 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
489 c-n-p problem with INCONSISTENT property.
491 [ Patch from Havoc Pennington <hp@redhat.com> ]
493 * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
496 * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
497 signal as a hook for extending the default popup menu
499 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
500 use radio menu items for the input method menuitems
502 * gtk/gtkimcontextsimple.c (check_hex): do better validation of
503 inserted unicode from Ctrl-Shift-hex input method
505 * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
506 validatation here, already done at GtkTextBuffer level.
508 * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
509 popup_menu run action signal and Shift+F10 and Menu keybindings.
511 * gtk/gtkentry.c: implement a default handler for popup_menu
513 * gtk/gtktextview.c: implement a default handler for popup_menu
515 * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
518 * gtk/gtklabel.c: remove "trailer" cruft
520 Wed Mar 28 17:27:12 2001 Jonathan Blandford <jrb@redhat.com>
522 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
523 handle reordering of trees. Seems to mostly work w/ the exception
526 * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
529 Wed Mar 28 21:12:37 2001 Tim Janik <timj@gtk.org>
531 * gtk/gtkwidget.h: c++ fixes.
533 Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
535 * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
538 Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
540 * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
541 Nils Barth fixing event return values. (#51041)
543 * gtk/gtkwidget.c: Fix some return values for default
546 * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
547 return values for trough_keys functions.
549 * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
550 value for add_accelerator (shoudl have been a void
553 * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
554 Fix return type of EVENT.
556 * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
557 signal return a boolean.
559 Tue Mar 27 22:07:44 2001 Jonathan Blandford <jrb@redhat.com>
561 * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
564 * tests/testtreesort.c (main): fix spelling.
566 Tue Mar 27 20:55:29 2001 Jonathan Blandford <jrb@redhat.com>
568 * gtk/gtkliststore.c: More work on implementing sortable
571 Mon Mar 26 15:48:45 2001 Owen Taylor <otaylor@redhat.com>
573 * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
574 reference the widgets in the resulting list. (#11821)
575 This makes this consistent with gtk_container_children.
577 * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
578 uses of gtk_window_list_toplevels.
580 Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
582 * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
583 a virtual function to set whether the IM context should use
584 the preedit string. (#51922)
586 Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
588 * gdk/gdkpango.h: Remove stale FIXME comment.
590 2001-03-26 Alexander Larsson <alla@lysator.liu.se>
592 * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
593 Fixed bug that returned NULL if a filename was selected.
595 2001-03-24 Havoc Pennington <hp@pobox.com>
597 * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
598 to contain the word "theme"
600 2001-03-24 Havoc Pennington <hp@pobox.com>
602 * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
603 slower but finer-grained
604 (gtk_hsv_focus): get initial focus on the ring or triangle
605 according to tab direction
607 * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
609 2001-03-23 Havoc Pennington <hp@pobox.com>
611 * gtk/gtkhsv.c: make this somewhat key-navigable
613 * gtk/gtkfontsel.c: mnemonics
615 * gtk/gtkgamma.c: mnemonics
617 * gtk/gtkcolorsel.c: add mnemonics to labels
619 2001-03-22 Havoc Pennington <hp@pobox.com>
621 Applied big patch from Seth Lytle to fix event handler return
622 values, slightly modified.
624 * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
626 (gtk_calendar_key_press): return TRUE for GDK_space triggers
629 * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
630 (gtk_clist_button_release): return TRUE if handled
632 * gtk/gtkcolorsel.c (mouse_release):
638 fixed return type (void to gboolean), return TRUE,
639 added GTK_SIGNAL_FUNC cast
641 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
642 (void to gboolean), and return TRUE
643 (gtk_combo_button_release): changed return value to TRUE after
644 gtk_grab_add on combo->popwin
646 * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
649 * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
652 * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
653 press/release and motion that trigger act
655 * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
657 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
660 * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
661 (gtk_list_button_release): return TRUE if selection
663 * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
666 * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
667 (gtk_menu_shell_button_release): chain parent_menu_shell retval
669 * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
671 (gtk_notebook_button_release): return TRUE if we do anything
673 * gtk/gtkspinbutton.c (gtk_spin_button_button_press):
674 (gtk_spin_button_button_release): return TRUE or chained retval
676 * gtk/gtktext.c (gtk_text_button_press):
677 (gtk_text_button_release): return TRUE
678 (gtk_text_key_press): remove redundant retval code
680 * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
682 (gtk_tree_item_subtree_button_click): changed type to gint, and return
685 * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
688 2001-03-23 Havoc Pennington <hp@redhat.com>
690 * gtk/testgtk.c: fix warnings
692 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
694 * gtk/gtktextview.c: fix warnings
696 * gtk/gtktext.c (find_cursor_at_line): fix warning
698 * gtk/gtkselection.c (gtk_selection_notify): fix warning
700 * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
703 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
706 * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
708 * gtk/gtkfontsel.c: fix warning
710 * gtk/gtkcolorsel.c: fix warnings
712 2001-03-23 Havoc Pennington <hp@redhat.com>
714 * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
716 * gtk/gtkbox.c: Apply property patch from Lee Mallabone
718 * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
719 and deprecated gtk_check_menu_item_set_show_toggle().
721 * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
723 * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
725 * gtk/gtkframe.c: Apply property patch from Lee Mallabone
727 2001-03-23 Havoc Pennington <hp@redhat.com>
729 * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
732 Fri Mar 23 16:13:43 2001 Jonathan Blandford <jrb@redhat.com>
734 * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
737 * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
738 set_cell to set_value
740 * gtk/gtkliststore.c (gtk_list_store_set_value): change from
741 set_cell to set_value
743 Thu Mar 22 19:27:34 2001 Jonathan Blandford <jrb@redhat.com>
745 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
747 * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
750 * gtk/gtktreeview.c: Addition of initial sortable support.
752 * gtk/gtktreestore.c: Addition of initial sortable support.
754 * gtk/gtkliststore.c: Addition of initial sortable support.
756 * gtk/gtkmarshal.list: yet another marshaller.
758 * gtk/gtktreedatallist.[ch]: shared code between the store models
759 for handling sorting headers.
761 2001-03-22 Havoc Pennington <hp@redhat.com>
763 * gtk/gtkcontainer.c (gtk_container_set_focus_chain):
764 (gtk_container_unset_focus_chain): Add ability to override the
765 focus chain for a container explicitly
767 Thu Mar 22 13:01:44 2001 Tim Janik <timj@gtk.org>
769 * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
770 added PROP_MNEMONIC_WIDGET.
772 * gtk/gtkwindow.c (gtk_window_activate_mnemonic):
773 (gtk_window_remove_mnemonic):
774 (gtk_window_add_mnemonic): fixed assertions.
775 (gtk_window_activate_mnemonic): constrain modifier checks to those
776 permitted by gtk_accelerator_get_default_mod_mask().
777 got rid of gtk_window_get_default_accel_group().
779 * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
780 activatable widgets either by focussing or a warning.
781 added a signal accumulator to ::activate_mnemonic which stops the
782 emission once a handler returned TRUE.
784 2001-03-22 Havoc Pennington <hp@pobox.com>
786 * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
789 * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
791 * gtk/gtkstock.c (builtin_items): add mnemonics where missing
793 * demos/gtk-demo/*.c: Add mnemonics all over the place
795 * gtk/gtklabel.h: mark parse_uline deprecated
797 2001-03-21 Alexander Larsson <alexl@redhat.com>
799 * gtk/gtkitemfactory.[ch]:
800 Add support for stock and normal imagemenuitems.
803 Add some tests for mnemonics, stock toolbars, stock
804 and image menuitems in itemfactory and gdk_window_scroll.
806 2001-03-21 Alexander Larsson <alexl@redhat.com>
808 * gtk/gtkbutton.[ch]:
810 Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
811 removed accel_group argument. Renamed gtk_button_new_accel() to
812 gtk_button_new_with_mnemonic() and removed accel_group argument.
814 * gtk/gtkcheckbutton.[ch]:
815 New function gtk_check_button_new_with_mnemonic().
818 Override activate_mnemonic and just grab focus.
820 * gtk/gtkitemfactory.c:
821 Don't add menu uline accel group, instead use mnemonics support.
824 New support for mnemonics.
826 * gtk/gtkmarshal.list:
827 Needed BOOLEAN:BOOLEAN for activate_mnemonic.
831 Use mnemonics instead of accel groups for uline
832 support in menu items.
833 Removed gtk_menu_get_uline_accel_group() and
834 gtk_menu_ensure_uline_accel_group().
837 Override activate_mnemonic to handle switching between
838 menu items if there are collisions.
841 Connect to activate_mnemonic on the tab_label, so that
842 activating it switches to that notebook page.
844 * gtk/gtkwidget.[ch]:
845 Add activate_mnemonic signal. New function
846 gtk_widget_activate_mnemonic() to emit it.
847 Default implementation does activate/grab_focus.
849 * gtk/gtkwindow.[ch]:
850 Add support for mnemonics in windows.
852 gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
853 gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
856 Update to function name changes.
858 2001-03-21 Alexander Larsson <alexl@redhat.com>
860 * gtk/gtkimagemenuitem.[c]:
861 Add gtk_image_menu_item_new_from_stock()
863 Tue Mar 20 15:00:43 2001 Jonathan Blandford <jrb@redhat.com>
865 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
866 Fix buglet in meeting.
868 2001-03-19 Havoc Pennington <hp@redhat.com>
870 * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
871 add a bunch of accessor functions. This is because we have
872 reasonable expectations of extending what fields it contains in
875 * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
878 * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
881 Mon Mar 19 15:53:36 2001 Owen Taylor <otaylor@redhat.com>
883 * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
884 handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
886 * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
887 gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
888 gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
889 gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
890 Change float to double everywhere with the exception of 0<->1.0 alignment
893 2001-03-19 Tor Lillqvist <tml@iki.fi>
895 * gdk/win32/gdkdrawable-win32.c
896 * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
899 * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
902 2001-03-18 Tor Lillqvist <tml@iki.fi>
904 * gdk/win32/gdkevents-win32.c (print_window_state): New function.
905 print_event_state, print_event): Use preprocessor macro to make
906 code more compact. Print also GDK_WINDOW_STATE events.
907 (synthesize_crossing_events): Remove the old #ifdeffed-out code.
910 * gtk/makefile.mingw.in: Update.
912 * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
913 to catch also Cygwin.
915 Sun Mar 18 01:15:30 2001 Tim Janik <timj@gtk.org>
917 * gtk/gtkspinbutton.[hc]: added rc-style argument
918 GtkSpinButton::shadow_type.
919 removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
920 and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
923 * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
925 * gtk/gtkwidget.c: quark cleanups.
927 * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
928 scanner with appropriate configuration, renamed GtkRcStyleClass.clone
929 to create_rc_style() (we don't do cloning in standard OO sense).
930 added per rc style properties.
932 * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
933 property values and for caching those. some cleanups.
935 * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
937 * gtk/gtksettings.[hc]: new file for global rc-file properties
938 (at least currently, should get extended to support X properties
939 and other communication mechanisms).
941 * gtk/gtkwidget.[hc]: added style property support:
942 (gtk_widget_class_install_style_property_parser): install style
943 property pspec with parser function for rc-file values other
944 than LONG, DOUBLE or STRING.
945 (gtk_widget_class_install_style_property): same as above without
946 parser (parsers are going to be needed quite infrequently).
947 (gtk_widget_style_get_property): retrive style property value.
948 (gtk_widget_style_get_valist): same as above with varargs support,
949 has NOCOPY semantics.
950 (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
952 Fri Mar 16 18:24:53 2001 Jonathan Blandford <jrb@redhat.com>
954 * demos/gtk-demo/main.c (row_activated_cb): modified to use
955 "row_activated" signal.
957 * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
958 stupidity. Lets actually pass in the row with this signal...
960 Fri Mar 16 18:01:17 2001 Jonathan Blandford <jrb@redhat.com>
962 * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
964 * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
966 * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
967 everything into the ::destroy function, and freed a lot more.
969 2001-03-16 Havoc Pennington <hp@redhat.com>
971 * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
972 instead of gint16, to avoid overflow issues, since sizes > 16-bit
975 2001-03-16 Havoc Pennington <hp@redhat.com>
977 * Applied patch from Nils Barth (bug # 51041) to
978 replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
981 2001-03-15 Havoc Pennington <hp@redhat.com>
983 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs
984 for properties to set on the tag.
986 * gtk/testtext.c: fixups to reflect create_tag change
988 * gtk/gtktexttag.c (gtk_text_tag_set_property):
989 background/foreground stipple are objects, not boxed.
991 * demos/gtk-demo/textview.c: intellihancing
993 Fri Mar 16 11:38:42 2001 Jonathan Blandford <jrb@redhat.com>
995 * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
996 braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
998 2001-03-16 Alexander Larsson <alexl@redhat.com>
1000 * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
1001 Fix sign error with queued region translations.
1003 2001-03-15 HideToshi Tajima <tajima@happy>
1005 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
1006 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
1007 * gtk/gtkentry.c (update_im_cursor_location):
1008 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
1009 * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
1010 set_cursor_pos to set_cursor_location in GtkInputContext class
1012 Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
1014 * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
1015 the location of the cell relative to its area.
1016 * gtk/gtkcell*: modified for above change
1017 * gtk/gtktreeview.c: modified for above change.
1019 Wed Mar 14 13:58:32 2001 Jonathan Blandford <jrb@redhat.com>
1021 * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
1022 (gtk_tree_view_finalize): actually unref the model. Thanks to
1023 Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
1025 2001-03-14 Havoc Pennington <hp@redhat.com>
1027 * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
1029 * gtk/gtk.h: remove gtkdata.h
1031 * gtk/Makefile.am: remove gtkdata
1033 * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
1034 not "disconnect" on the adjustments.
1036 * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
1039 * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
1042 * configure.in: handle case where X render exists, but Pango lacks
1045 2001-03-15 Alexander Larsson <alexl@redhat.com>
1047 * gtk/gtktoolbar.[ch]:
1048 New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
1049 to add stock items to toolbars.
1052 Remove ../gdk/gdkim.h from gdk_headers.
1054 2001-03-15 Sven Neumann <sven@gimp.org>
1056 * gdk/gdkim.h: removed
1059 * gdk/x11/gdkim-x11.c: do not include gdkim.h
1061 2001-03-14 HideToshi Tajima <tajima@happy.sunsoft.eng.sun.com>
1063 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
1064 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
1065 * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
1066 set_cursor_pos() virtual method
1068 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
1069 (gtk_im_context_xim_set_cursor_pos): add implementation for
1070 set_cursor_pos() method
1072 * gtk/gtkentry.c (recompute_idle_func): set current cursor
1073 position to input methods
1075 Mon Mar 12 21:02:08 2001 Jonathan Blandford <jrb@redhat.com>
1077 * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
1080 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
1082 (_gtk_tree_data_list_alloc): use g_mem_chunk.
1083 (_gtk_tree_data_list_node_to_value): Fix to switch on
1085 (_gtk_tree_data_list_value_to_node): Fix to switch on
1087 (_gtk_tree_data_list_node_copy): Fix to switch on
1090 2001-03-12 Havoc Pennington <hp@redhat.com>
1092 * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione
1093 to convert to new property API. Also, change default_width and
1094 default_height get_property to return 0 as the flag value for
1095 "unset"; -1 is not a valid value for these fields.
1097 2001-03-12 Havoc Pennington <hp@redhat.com>
1099 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
1100 enum with registration for icon sizes, instead of strings.
1102 * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h,
1103 gtkwidget.c: Fix to reflect GtkIconSize
1105 2001-03-12 Alexander Larsson <alexl@redhat.com>
1107 Make GtkFB compile and link.
1109 * gdk/linux-fb/gdkdrawable-fb2.c:
1110 window->mapped to GDK_WINDOW_IS_MAPPED().
1112 * gdk/linux-fb/gdkwindow-fb.c:
1113 window->mapped to GDK_WINDOW_IS_MAPPED().
1114 Added gdk_window_shape_combine_region.
1115 Added assorted placeholders for unimplemented new GdkWindow API calls.
1117 2001-03-12 Alexander Larsson <alexl@redhat.com>
1120 Add more test when converting filenames from/to utf-8.
1121 Don't allow entering text in the filename entry which isn't allowed in
1122 a filename. Just beep instead.
1124 2001-03-12 Alexander Larsson <alexl@redhat.com>
1127 Scroll using gdk_window_scroll(). Don't wait for exposes.
1128 Move the column headers in an order that makes them flash less.
1130 2001-03-10 Hans Breuer <hans@breuer.org>
1132 * gdk/gdk.def : updated
1134 * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
1135 to offseting the clip_mask at the right place
1137 * gdk/win32/gdkwindow-win32.c : don't create background brushes
1138 for all the gdkClasses, especially not for the input_only case.
1139 Otherwise flickering wont be avoidable, because we don't get
1140 WM_ERASEBKGND message for these windows.
1142 * gdk/win32/gdkevents-win32.c : initialize event->expose.region
1143 and fixed massive redraw problems apparently triggered by Alexanders
1144 recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
1145 but it seems to work quite well :-)
1147 * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
1150 Sat Mar 10 12:15:31 2001 Jonathan Blandford <jrb@redhat.com>
1152 * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
1153 (gtk_list_store_set_cell): Fix a stupid typo.
1155 Fri Mar 9 20:36:21 2001 Jonathan Blandford <jrb@redhat.com>
1157 * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
1158 select_all not work if you're in SINGLE mode (it doesn't make that
1159 much sense, anyway.)
1161 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
1162 handle types more sanely.
1163 (_gtk_tree_data_list_value_to_node): handle types more sanely.
1164 (_gtk_tree_data_list_node_copy): handle types more sanely.
1166 * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
1167 GValue better. Converts the type as well.
1169 * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
1170 GValue better. Converts the type as well.
1172 Wed Mar 7 20:47:41 2001 Owen Taylor <otaylor@redhat.com>
1174 * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
1175 gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c
1176 gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
1177 gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
1179 * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
1182 2001-03-09 Hans Breuer <hans@breuer.org>
1184 * gdk/gdk.def : updated
1186 * gdk/win32/gdkevents-win32.c : don't ask input_only windows
1189 * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
1192 * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
1193 removing and implemented Havoc's GdkWindow state functions;
1194 stick/unstick only as no-op, cause I don't know how to emulate
1197 * gtk/gtk.def : updated
1199 * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
1201 * gtk/gtktypeutils.c : #include <string.h>
1203 * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
1205 Fri Mar 9 09:31:55 2001 Tim Janik <timj@gtk.org>
1207 * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
1208 GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
1211 2001-03-09 Alexander Larsson <alexl@redhat.com>
1213 * docs/Changes-2.0.txt:
1214 Document expose event->region change and that gtk_widget_event
1215 doesn't allow passing expose events.
1218 Add region to expose event.
1221 Handle event->region in gdk_event_copy() and gdk_event_free().
1223 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
1224 Generate expose_event->region when creating expose events.
1226 * gdk/x11/gdkevents-x11.c:
1227 Generate expose events with regions when translating X events.
1229 * gtk/gtkcontainer.[ch]:
1230 Default expose handler that propagates expose events to NO_WINDOW
1231 children. New function gtk_container_propagate_expose()
1233 * gtk/gtkwidget.[ch]:
1234 Moved gtk_widget_event implementation to gtk_widget_event_internal.
1235 gtk_widget_event calls gtk_widget_event_internal but doesn't allow
1236 expose events. New function gtk_widget_send_expose() to send expose
1237 events. New function gtk_widget_region_intersect() to calculate
1238 window/region intersections.
1240 * gtk/gtkmain.c (gtk_main_do_event):
1241 Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
1242 Use gtk_widget_send_expose() to send expose events.
1247 * gtk/gtkimagemenuitem.c:
1252 Remove expose handler, using the default container implementation
1256 * gtk/gtkcheckbutton.c:
1257 * gtk/gtkeventbox.c:
1259 * gtk/gtkhandlebox.c:
1261 * gtk/gtklistitem.c:
1264 * gtk/gtkmenuitem.c:
1265 * gtk/gtknotebook.c:
1266 * gtk/gtkoptionmenu.c:
1268 * gtk/gtkscrolledwindow.c:
1269 * gtk/gtktogglebutton.c:
1271 * gtk/gtktreeitem.c:
1272 * gtk/gtkviewport.c:
1273 Chain expose handler to parent class handler. Use
1274 gtk_container_propagate_expose() to propagate exposes.
1276 * gtk/gtkclist.c (check_exposures):
1277 * gtk/gtktext.c (process_exposes):
1278 Use gtk_widget_send_expose instead of gtk_widget_event.
1280 Thu Mar 8 19:40:28 2001 Jonathan Blandford <jrb@redhat.com>
1282 * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
1284 Thu Mar 8 19:18:27 2001 Jonathan Blandford <jrb@redhat.com>
1286 * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
1287 unref the nodes. Fixes bug #50058.
1289 * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
1290 "::ref_iter" to "::ref_node".
1291 (gtk_tree_model_unref_node): change "::unref_iter" to
1292 "::unref_node". Fixes bug #50064.
1294 Thu Mar 8 17:40:09 2001 Jonathan Blandford <jrb@redhat.com>
1296 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
1297 support for invisible cells.
1298 (gtk_tree_view_bin_expose): ditto
1300 Thu Mar 8 16:36:00 2001 Jonathan Blandford <jrb@redhat.com>
1302 * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
1305 * tests/testtreefocus.c (main): New test file.
1307 * tests/testtreeview.c: update to latest glib changes.
1309 * tests/testtreecolumns.c: update to latest glib changes.
1311 Thu Mar 8 18:13:20 2001 Tim Janik <timj@gtk.org>
1313 * gtk/testgtk.c: re-enabled event watcher emission hooks.
1315 Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org>
1317 * *.c: added accumulator data argument to g_signal_newc()
1320 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model):
1321 * gtk/gtktreeview.c (gtk_tree_view_setup_model):
1322 * gtk/treestoretest.c (make_window):
1323 s/g_signal_connect/g_signal_connectc/.
1325 * gtk/gtktextbuffer.c: completed signal arg fixups,
1326 they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
1328 Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com>
1330 * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
1333 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a
1334 ::hierarchy-changed signal when a widget changes
1335 from anchored to unanchored or vice versa.
1337 gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
1338 Use a private flag to keep track of this efficiently.
1340 2001-03-07 Havoc Pennington <hp@redhat.com>
1342 * gtk/testgtk.c (create_spins): uglify so that size request gets
1345 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
1346 request on values for upper/lower, completes #6152
1348 Wed Mar 7 20:07:22 2001 Owen Taylor <otaylor@redhat.com>
1350 * Makefile.am: Remove gtk-config-2.0 again.
1351 (Grrrr, pkg-config. And stops make loops.)
1353 Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
1355 * gtk/gtksignal.[hc]: removed old emission hook API.
1357 * docs/Changes-2.0.txt: fixed sections.
1359 * gtk/gtktextbuffer.c: signal arg fixups.
1361 2001-03-07 Havoc Pennington <hp@redhat.com>
1363 * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
1365 * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
1366 here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
1367 of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
1368 validation and the redraw which is higher priority than the
1371 2001-03-07 Havoc Pennington <hp@redhat.com>
1373 * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
1374 (gtk_entry_set_property): remove trailer
1376 * gtk/gtkentry.c (gtk_entry_set_width_chars):
1377 (gtk_entry_get_width_chars): new functions, to set size request to
1378 a given number of characters
1380 * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
1382 * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
1383 (gtk_dialog_get_has_separator): new function
1384 (run_delete_handler): fix to not emit "response" signal
1385 because we already did in the delete event handler installed
1386 at dialog creation time.
1388 * gtk/gtkdialog.h: add a has_separator property,
1389 add GTK_DIALOG_NO_SEPARATOR flag
1391 2001-03-07 Havoc Pennington <hp@redhat.com>
1393 * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
1394 off decorations for a window.
1396 * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
1399 * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function
1400 to get location of PangoLayout inside the label, closes #51198
1402 * gtk/testgtk.c (create_bbox): fix up button box usage
1404 * gtk/testcalendar.c (create_calendar): fix up button box usage
1406 * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
1408 * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
1410 * gtk/gtkhbbox.h: deprecations
1412 * gtk/gtkvbbox.h: deprecations
1414 * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
1415 emulate deprecated gtk_button_box_get_spacing
1417 * gtk/gtkbbox.h: deprecate some useless functions, remove entirely
1418 the "set global default" functions
1419 (struct _GtkButtonBox): remove "spacing" field, use the one from
1422 * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
1424 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
1425 render the icon, return the missing image icon.
1427 * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
1428 image icon if the load fails.
1430 * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
1431 when no image is found; should be the Netscape "missing image"
1432 icon eventually but for now is a random image
1434 * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the
1435 role for the session manager
1437 * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
1439 * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
1440 GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
1442 * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
1444 Wed Mar 7 13:24:57 2001 Tim Janik <timj@gtk.org>
1446 * gtk/*.c: marshaller fixes.
1448 * gtk/gtkmarshal.list: extreme cleanup.
1450 * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
1453 * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
1456 * gtk/gtktypeutils.[hc]: updates to GLib API changes.
1457 special cased autogenerated boxed types from gtktypebuiltins_ids.c
1458 which are not reference counted:
1459 GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
1460 PangoFontDescription, GtkTreeIter and GtkTreePath.
1462 Thu Mar 1 03:58:56 2001 Tim Janik <timj@gtk.org>
1464 * gtk/gtktreeselection.h:
1465 * gtk/gtktreemodel.c:
1466 * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
1467 file should be included directly, and gobject/gmarshal.h
1468 as well as gtk/gtkmarshal.h even can't be included directly.
1470 * Makefile.am: grr, install gtk-config-2.0.
1475 * gtk/gtkitemfactory.c: use g_object_connect() instead of
1476 passing "*signal*::*" args to gtk_widget_set().
1478 * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
1480 * gtk/*.c: removed trailer arg from property setters and getters.
1483 2001-03-07 Alexander Larsson <alexl@redhat.com>
1485 * gtk/gtklabel.c (set_markup): Removed warning
1487 Tue Mar 6 19:59:12 2001 Jonathan Blandford <jrb@redhat.com>
1489 * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
1490 field to allow you to hide cell renderers.
1492 * gtk/gtkcellrenderer.c: Add support for invisible cells.
1494 * gtk/gtktreeview.c: Add support for invisible cells.
1496 Tue Mar 6 17:25:07 2001 Jonathan Blandford <jrb@redhat.com>
1498 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
1499 Add "clicked" signal back to columns.
1501 * ChangeLog: remove conflict markers.
1503 Tue Mar 6 10:45:45 2001 Owen Taylor <otaylor@redhat.com>
1505 * gtk/gtkbutton.c: Add animation of activation by, on
1506 activate, pressing the button, and adding a timeout that
1507 releases the button after 250ms or on key release and
1508 emits ::clicked. (#51501)
1510 * gtk/gtkdialog.c: Bit of a hack - for buttons in the
1511 action area, we connect to ::clicked instead of ::activate
1512 so the dialog stays up through the animation.
1514 Mon Mar 5 16:38:15 2001 Owen Taylor <otaylor@redhat.com>
1516 * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
1517 check the ignore_enter flag for the menu shell that
1518 the item is actually a child of, not for attached
1521 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
1523 * gtk/gtkmain.c (gtk_propagate_event): Only do special
1524 special key-press grab handling for widgets within
1525 GtkWindows. Otherwise, fall through to normal case.
1527 This prevents key events being sent twice to GtkInvisible
1528 widgets, which can cause all sorts of mischief.
1530 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
1532 * gtk/gtkmain.c (gtk_propagate_event): When a grab
1533 widget is in effect, give the grab widget a first
1534 crack at KEY_PRESS/RELEASE events. (#424)
1536 2001-03-06 James Henstridge <james@daa.com.au>
1538 * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
1539 offset for the window_state_event to point at window_state_event
1540 rather than no_expose_event.
1542 Mon Mar 5 19:10:15 2001 Jonathan Blandford <jrb@redhat.com>
1544 * gtk/gtkimmodule.h: fix busted /* comment */
1546 Mon Mar 5 15:07:05 2001 Jonathan Blandford <jrb@redhat.com>
1548 * gtk/gtktreeview.c: Apply patch from John Margaglione to add
1551 Mon Mar 5 14:55:19 2001 Jonathan Blandford <jrb@redhat.com>
1553 * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
1554 add object properties.
1556 * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
1557 to add object properties.
1559 * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
1562 * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
1563 add object properties.
1565 * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
1568 Mon Mar 5 14:38:54 2001 Jonathan Blandford <jrb@redhat.com>
1570 * gtk/gtktreemodel.c: renamed "child_toggled" to
1571 "has_child_toggled".
1573 * gtk/gtktreeview.c: Handle removing columns better. Updated to
1574 handle new signal name.
1576 * gtk/gtktreestore.c: Updated to handle new signal name.
1577 * gtk/gtklisttore.c: Updated to handle new signal name.
1578 * gtk/gtktreemodelsort.c: Updated to handle new signal name.
1580 2001-03-05 Alexander Larsson <alexl@redhat.com>
1582 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
1583 Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
1585 2001-03-05 Michael Natterer <mitch@gimp.org>
1587 * gtk/gtklabel.c: Made the "parent_class" pointer static. The
1588 pixbuf-engine coincidentially also failed to make one of it's
1589 parent_class pointers static, causing overwriting of GtkLabel's
1590 parent_class pointer in pixbuf_style_class_init().
1591 (Will commit the fix to the pixbuf-engine too).
1593 2001-03-05 Alexander Larsson <alexl@redhat.com>
1596 Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
1597 New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
1598 gdk_window_set_icon_list for net wmspec functionality.
1600 * gdk/x11/gdkwindow-x11.c:
1601 Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
1602 Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
1603 gdk_window_set_icon_list.
1604 Added gdk_wmspec_change_state helper function and used it in the code.
1605 Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
1607 * gtk/gtkdialog.c (gtk_dialog_init):
1608 Set GDK_WINDOW_TYPE_HINT_DIALOG.
1610 * gtk/gtkhandlebox.c (gtk_handle_box_realize):
1611 Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
1614 new function gtk_window_set_type_hint.
1615 On realize, set type hint and modal hint.
1618 Added type_hint field and gtk_window_set_type_hint.
1620 2001-03-05 Alexander Larsson <alexl@redhat.com>
1622 * gtk/gtklabel.[ch]:
1623 Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
1624 New function gtk_label_get_accel_keyval () to get the underline accelerator
1625 of the label. Setting the label pattern overrides other attributes.
1627 Mon Mar 5 14:51:10 MET 2001 Sven Neumann <sven@gimp.org>
1629 * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
1630 Added missing initializers to gtk_rc_style_init().
1632 Sun Mar 04 07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
1634 * gtk/gtktextview.c: fixed bug #51097 about setting
1635 gtk_text_view_set_border_window_size() if the widget is
1638 Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
1640 * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
1642 * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
1643 comment. Won't do to have duplicated doc comments between
1644 the platform subdirs.
1646 Sat Mar 3 16:26:33 2001 Owen Taylor <otaylor@redhat.com>
1648 * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c
1649 gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
1651 Detectable auto-repeat - make a repeating key generate
1652 press/press/press/release instead of press/release pairs.
1654 If we have Xkb and XkbSetDectableAutoRepeat supports
1655 that, we do it that way. Otherwise, when we get
1656 a release event, we check ahead with XPending to see
1657 if the next key is a KeyPress with the same keycode
1658 and timestamp. (Not 100% reliable, but pretty close.)
1660 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
1662 * gtk/gtkmain.c (gtk_propagate_event): Only do special
1663 special key-press grab handling for widgets within
1664 GtkWindows. Otherwise, fall through to normal case.
1666 This prevents key events being sent twice to GtkInvisible
1667 widgets, which can cause all sorts of mischief.
1669 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
1671 * gtk/gtkmain.c (gtk_propagate_event): When a grab
1672 widget is in effect, give the grab widget a first
1673 crack at KEY_PRESS/RELEASE events. (#424)
1675 Sat Mar 3 15:39:49 2001 Owen Taylor <otaylor@redhat.com>
1677 * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
1678 to extend the selection. (Roughly based on patch
1679 from Jay Cox, #50939)
1681 * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
1682 to properly handle previous GDK_BUTTON_PRESS.
1683 (Patch from Jay Cox, #50938)
1685 * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
1686 '\0' back along with the deleted text. (#51148)
1688 Mon Jan 22 14:31:29 2001 Owen Taylor <otaylor@redhat.com>
1690 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
1691 the group when extracting it from the X keyboard event.
1693 * modules/input/Makefile.am modules/input/imipa.c:
1694 Simple module for entering IPA. (Do we need a
1695 gtk-stupid-input-tricks CVS module?)
1697 Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
1699 * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
1702 * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
1704 * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
1705 is no focus widget for the dialog currently, grab the focus as well
1708 * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
1709 the action area's children to iterate through, not the
1712 Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
1714 * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
1715 Add plug-socket tests. (Won't work worth a darn until I commit
1716 the rest of the plug-socket changes, but no reason these
1717 can't go into CVS now.)
1719 2001-03-02 Havoc Pennington <hp@redhat.com>
1721 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
1722 _gdk_region_get_xrectangles()
1724 * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
1726 * gtk/testgtk.c (create_shapes): add test for shape_combine_region
1728 * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
1729 function, contributed by Ron Steinke
1731 * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
1734 * gdk/gdkregion-generic.c (gdk_region_get_rectangles):
1735 New function, contributed by Ron Steinke
1737 * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function,
1738 used to line up the text in the entry when using the entry for
1739 editable sheet cell hacks
1741 * gtk/testgtk.c (create_entry): test the activate_default setting
1744 * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to
1745 cause the entry to activate the default button for a dialog when
1747 (gtk_entry_get_activates_default): new function
1749 Wed Feb 28 19:10:43 2001 Owen Taylor <otaylor@redhat.com>
1751 * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
1752 Hwang to move call to sync_selection() up a few lines
1753 to before the row list is modified, to fix crash when
1754 removing rows in the undo_selection list.
1756 (Test case provided by Daniel Elstner:
1758 http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
1760 Fri Feb 23 15:06:48 2001 Owen Taylor <otaylor@redhat.com>
1762 * gtk/gtktree.c (gtk_tree_class_init): Do the setting
1763 of tree->root_tree in parent_set rather than _map(),
1764 fixing #50892 in a bit better manner.
1766 Thu Feb 22 17:07:58 2001 Owen Taylor <otaylor@redhat.com>
1768 * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
1770 Tue Feb 2 11:22:33 2001 Jody Goldberg <jgoldberg@home.com>
1772 * gtk/gtkstyle.c : Remove duplicate fwd decl for
1773 gtk_default_draw_shadow.
1775 ue Feb 20 11:40:58 2001 Owen Taylor <otaylor@redhat.com>
1777 * gdk/gdkimage.c (gdk_image_new): Remove excess
1778 warning, make warnings more verbose, treat a error
1779 in shmat as permanent, and don't try again.
1780 (#51163, Ed Randall.)
1782 Mon Feb 19 20:15:28 2001 Owen Taylor <otaylor@redhat.com>
1784 * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
1785 delay for the first click before starting to scroll.
1786 (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
1788 * gtk/gtktext.c: GtkText should have I-beam cursor.
1789 (based on gtk-enf-990513-1.patch, Eric Fisher.)
1791 Mon Feb 19 16:42:19 2001 Owen Taylor <otaylor@redhat.com>
1793 * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
1794 cleanup to remove some references to unused
1795 ->xoffset, ->yoffset.
1797 Mon Feb 19 14:20:36 2001 Owen Taylor <otaylor@redhat.com>
1799 * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
1800 mask. (#51039, fix from Martin Maierhofer)
1802 Fri Feb 16 20:09:42 2001 Owen Taylor <otaylor@redhat.com>
1804 * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
1805 for unshifted + and shifted = for non-us keyboards.
1806 Make <Control>+ and <Control>- work as well as
1807 <Control>KP_Plus, <Control>KP_Minus for recursive
1808 open/close. (#2682, René Seindal)
1810 Fri Feb 16 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
1812 * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
1813 the active menu item before deactivating the menu,
1814 so gtk_menu_popdown doesn't change the history. (#50964)
1816 Fri Feb 16 15:55:22 2001 Owen Taylor <otaylor@redhat.com>
1818 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
1819 draw lines with text_gc rather than black_gc.
1820 (Patch from Vlad Harchev <hvv hippo ru>, #50926)
1822 Thu Mar 1 19:50:56 2001 Jonathan Blandford <jrb@redhat.com>
1824 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
1825 Move handling of buttons fully in gtktreeviewcolumn. This code is
1826 less interrelated then it was, but it still requires the
1827 GtkTreeView to map it.
1829 * test/testtreecolumn.c: Now I can add a column to one view,
1830 remove it, add it to the another view, remove it, then re-add it
1831 to the first. Nifty.
1833 Thu Mar 1 13:14:27 GMT 2001 Tony Gale <gale@gtk.org>
1835 * docs/tutorial/gtk-tut.sgml: Minor corrections
1837 Wed Feb 28 16:36:46 2001 Jonathan Blandford <jrb@redhat.com>
1839 * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
1842 2001-02-28 Havoc Pennington <hp@redhat.com>
1844 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
1846 (gtk_widget_draw_focus): remove this function; we could instead
1847 make it just gtk_widget_draw(), but in most cases I think the
1848 result would be broken user code, so think it's better to have
1849 that code not compile and get fixed
1850 (gtk_widget_draw_default): ditto
1852 * gtk/gtkwidget.c: Add default handlers for focus_in_event and
1853 focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
1855 * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
1856 widgets lose/get the default, instead of calling draw_default
1858 * docs/Changes-2.0.txt: note about all this
1860 Then fixed every widget in GTK, I won't list all the filenames.
1862 Tue Feb 27 19:32:53 2001 Jonathan Blandford <jrb@redhat.com>
1864 * gtk/gtktreemodel.c (deleted_callback): Proxy out to
1865 _gtk_tree_row_reference_deleted.
1866 (inserted_callback): Proxy out to
1867 _gtk_tree_row_reference_inserted.
1868 (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
1869 get around signal emission ordering problem.
1871 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
1872 fix to work with SINGLE
1873 (_gtk_tree_selection_internal_select_node): Major sanitization on
1874 selections. SINGLE now seems to work.
1876 * tests/Makefile.am: add testtreecolumn.c:
1878 * tests/testtreecolumn.c: New test. Mostly points out selection
1879 bugs currently, but will test columns later.
1881 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
1882 selection bug. I hate touching this code -- it's scary.
1884 2001-02-26 Havoc Pennington <hp@redhat.com>
1886 * gtk/testgtk.c: test the window state stuff
1888 * gtk/gtkwindow.c (gtk_window_present): new function, makes a
1889 window come to the user's attention as if it were just created
1890 (gtk_window_iconify): new function
1891 (gtk_window_deiconify): new function
1892 (gtk_window_stick): new function
1893 (gtk_window_unstick): new function
1894 (gtk_window_maximize): new function
1895 (gtk_window_unmaximize): new function
1897 * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
1899 * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
1901 * gdk/x11/gdkevents-x11.c: create window state events when
1903 (gdk_wmspec_supported): new function
1905 * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
1906 iconification before showing the window
1907 (gdk_window_deiconify): new function
1908 (gdk_window_stick): new function
1909 (gdk_window_unstick): new function
1910 (gdk_window_maximize): new function
1911 (gdk_window_unmaximize): new function
1913 * gdk/gdkwindow.c: store the window state in the window;
1914 change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
1916 (gdk_window_get_state): return the current window state
1918 * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
1919 (gdk_event_get_state): handle GDK_WINDOW_STATE
1920 (gdk_synthesize_window_state): function to create the window state
1923 * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
1924 event, for changes to "window state" such as maximized, sticky,
1927 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
1930 * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function,
1931 finds out if we support a given WM spec hint
1933 Tue Feb 27 13:37:38 GMT 2001 Tony Gale <gale@gtk.org>
1935 * docs/faq/gtk-faq.sgml: New question re memory leaks.
1937 2001-02-25 Hans Breuer <hans@breuer.org>
1939 * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
1940 cause we want to loose those prototypes only in the latter case
1942 * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
1943 GdkPixmapImplWin32 because it itsn't derived from it. Use the
1944 impl member variable instead
1946 * gtk/gtk.def : updated
1949 * gtk/gtkmenus.c : include <string.h> for memset ()
1951 * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
1952 for everthing built here, but for gtk-x.x.dll only. This solves
1953 problem of indifferent gtk type definitions
1955 Sat Feb 24 20:11:39 2001 Jonathan Blandford <jrb@redhat.com>
1957 * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
1959 Fri Feb 23 17:50:13 2001 Jonathan Blandford <jrb@redhat.com>
1961 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
1962 column that is exposed.
1964 (_gtk_tree_view_update_size): Changed name from set_size, and
1965 changed function to do more work, and not force people calling it
1966 to figure out the size. Simplifies a lot of code elsewhere.
1968 2001-02-23 Alexander Larsson <alexl@redhat.com>
1970 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
1971 return solid masks for xpms that have no transparent color.
1972 This makes the ..._create_from_xpm... API backwards
1975 2001-02-23 Tor Lillqvist <tml@iki.fi>
1977 * README.win32: Update. Mention the gtk-1-3-win32-production
1980 * gdk/win32/bdfcursor.c: New file. A program that generates
1981 xcursors.h. Thanks to Stefan Ondrejicka.
1983 * gdk/win32/xcursors.h: New file, contains the X cursor font in a
1986 * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
1988 * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
1989 function, uses xcursors.h.
1990 (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
1991 cursor from inline data instead of using LoadCursor() to generate
1994 * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
1995 event, must check the Windows message for mouse button state, as
1996 the GDK event state might not have been built if it is
1997 undelivered. Remove one goto.
1999 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
2000 SetCursor() if the current cursor as returned by GetCursor() is
2001 the window's previous cursor. The ChildWindowFromPoint() test
2002 apparently didn't work correctly.
2004 * gdk/win32/rc/*.cur: Remove.
2006 * gdk/win32/rc/gdk.rc.in: Remove cursors.
2008 * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
2010 * gtk/makefile.{mingw,msc}.in: Updates.
2012 Wed Feb 21 20:56:50 2001 Jonathan Blandford <jrb@redhat.com>
2014 * gtk/gtktreemodel.h: add functions for signal emission.
2016 * gtk/gtktreestore.c: move to use above functions instead of
2019 * gtk/gtkliststore.c: ditto
2021 Wed Feb 21 15:41:34 2001 Jonathan Blandford <jrb@redhat.com>
2023 * gtk/gtktreestore.c: removed signals. Moved to inherit from
2024 GObject instead of GtkObject.
2026 * gtk/gtkliststore.c: ditto.
2028 * gtk/gtktreemodelsort.c: ditto.
2030 * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
2031 GtkTreeModelIface, instead of in each model.
2033 2001-02-21 Havoc Pennington <hp@redhat.com>
2035 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
2036 unbreak this function
2038 * gtk/gtkentry.c: apply patch from Lee Mallabone to add object
2041 * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
2044 * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object
2047 * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
2048 mean unset the max length
2050 Wed Feb 21 14:23:05 2001 Jonathan Blandford <jrb@redhat.com>
2052 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
2053 Changed name to be set_cell_data_func to make it clear what
2054 the functino does. Close bug #51069.
2056 Tue Feb 20 16:49:00 2001 Jonathan Blandford <jrb@redhat.com>
2058 * gtk/testgtk.c (main): Remove turning on of profiling malloc,
2059 have memory actually freed. Keeps box running longer.
2061 2001-02-21 Alexander Larsson <alexl@redhat.com>
2063 * gtk/gtkseparatormenuitem.[ch]:
2064 Added new menu separator item. The drawing and size handling
2065 is still done in GtkMenuItem, but the API is a bit more sane.
2068 Add gtkseparatormenuitem.[ch].
2071 Add gtkseparatormenuitem.h.
2074 * gtk/gtkmenufactory.c:
2075 * gtk/gtktextview.c:
2076 Use the new API for menu separators.
2078 * demos/gtk-demo/menus.c (create_menu):
2079 Add some GtkSeparatorMenuItem demo code.
2081 2001-02-20 Havoc Pennington <hp@redhat.com>
2083 * gtk/gtkaspectframe.c: Convert to new property API, patch from
2086 * gtk/gtkarrow.c: Convert to new property API, patch from
2089 Tue Feb 20 14:26:41 2001 Jonathan Blandford <jrb@redhat.com>
2091 * tests/testtreeview.c (toggled_callback): fix to reflect change
2092 in GtkTreeModelStore.
2094 Tue Feb 20 12:16:12 2001 Jonathan Blandford <jrb@redhat.com>
2096 * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
2097 function to create an icon set from a pixbuf.
2099 2001-02-20 Alexander Larsson <alexl@redhat.com>
2101 * gtk/gtkcellrenderertext.[ch]:
2102 Add a "markup" property.
2104 * gtk/treestoretest.c:
2105 Use the markup property, remove some leftover stuff from
2106 GtkTreeModelMapping.
2108 2001-02-20 Alexander Larsson <alexl@redhat.com>
2110 * gtk/gtklabel.c (gtk_label_set_selectable):
2111 Queue a redraw if the selectable setting was changed.
2113 2001-02-20 Alexander Larsson <alexl@redhat.com>
2115 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
2116 Actually copy the whole gc, not just the public parts.
2118 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
2119 GDK_WINDOW_TEMP are not toplevel. Fixes selectable
2122 2001-02-19 Havoc Pennington <hp@pobox.com>
2124 * gdk/gdkwindow.c: docs
2126 * gdk/gdkrgb.c: docs
2128 * gdk/gdkregion-generic.c: docs
2130 * gdk/gdkgc.c (gdk_gc_set_values): docs
2132 * gdk/gdkdraw.c: docs
2134 * gdk/gdkdrawable.h: deprecate drawable get/set data
2136 Mon Feb 19 20:37:35 2001 Jonathan Blandford <jrb@redhat.com>
2138 * demos/gtk-demo/dialog.c: Add simple new demo.
2140 2001-02-19 Havoc Pennington <hp@redhat.com>
2142 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
2143 insert_child_anchor signal, bug #50245
2145 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
2146 from create_child_anchor, so the anchor is passed in
2148 * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
2149 (_gtk_widget_segment_new): have the child anchor object passed in,
2150 instead of creating it.
2152 * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
2153 to gtk_text_buffer_get_modified
2155 2001-02-19 Havoc Pennington <hp@redhat.com>
2157 * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
2158 changed GLib without fixing GTK
2160 * gtk/gtkrange.h: Rename all the stupid implementation detail
2161 functions to have an underscore in front. Most of them should
2162 probably just go away, but for starters don't export them.
2165 2001-02-19 Havoc Pennington <hp@redhat.com>
2167 * gdk/gdkcolor.h: test was backward, so deprecated functions were
2170 * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
2171 clean up the old code a bit
2173 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
2176 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
2177 draw inconsistent state
2179 * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
2180 (create_menu): add inconsistent test
2182 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
2184 (gtk_check_menu_item_get_inconsistent): new function
2185 (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
2186 state (using etched in for now)
2188 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
2189 draw inconsistent state
2191 * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
2192 function, used when the user has selected a range of stuff in
2194 (gtk_toggle_button_get_inconsistent): accessor for that
2195 (gtk_toggle_button_paint): draw inconsistent state (etched in?
2196 don't know what else to do)
2198 2001-02-19 Hans Breuer <hans@breuer.org>
2200 * gtk/gtk.def : updated exported symbols
2202 * gtk/makefile.msc.in : updated
2204 * gtk/gtkstyle.c (gtk_style_realize) : gets called without
2205 a colormap, when invoked from testgtk::entry. I'm not sure where
2206 the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
2207 avoids immediate crashing ...
2209 * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
2212 * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
2213 0 parameter. At least msvc doesn't like macros with var args.
2214 I simply removed the extra 0, was it a feature or a typo ?
2216 * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
2217 removed the extra indirection from the GtkTreeViewColumnFunc parameter,
2218 because the value assignment to the internal struct wasn't working.
2219 I'm not absolutely sure. The problem could have been resolved by
2220 changing the "func" declartion in the struct, but was the pointer
2221 to the function pointer intended ?
2223 * gtk+/gtk/gtktreedatalist.c : include gboxed.h
2225 * gdk/gdk.def : updated exported symbols
2227 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
2228 only use SetDIBitsToDevice if there is a palette at the drawable
2229 and the image is GDK_VISUAL_PSEUDO_COLOR
2231 * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
2233 * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
2235 * gdk/*/makefile.msc : updated
2237 2001-02-19 Havoc Pennington <hp@redhat.com>
2239 * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
2240 GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
2242 * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
2243 (gdk_key_repeat_restore): nuke
2245 * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
2246 (gdk_init_check): no atexit func
2248 * gdk/gdkrgb.h: mark some stuff deprecated
2250 * gdk/gdkcolor.h: mark some stuff deprecated
2252 * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
2254 * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
2256 2001-02-16 Havoc Pennington <hp@redhat.com>
2258 * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
2261 * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
2262 steps, and add Ctrl-arrow shortcuts for paging visually as with
2263 HScale, since Page Up and Page Down move logically.
2265 * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
2266 GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
2268 * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
2270 (gtk_range_scroll): handle the visual steps
2272 * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
2275 * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
2276 steps, not the logical ones.
2278 * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
2279 (scroll_vertical): handle up/down steps
2281 2001-02-19 Alexander Larsson <alexl@redhat.com>
2283 * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
2284 Copy data and free data with free().
2286 * gdk-pixbuf/gdk-pixbuf.c:
2287 * gdk-pixbuf/io-jpeg.c:
2288 * gdk-pixbuf/io-png.c:
2289 Use g_try_malloc/g_free instead malloc/free.
2291 * gdk-pixbuf/test-gdk-pixbuf.c:
2292 Must... initialize... gobject...
2294 * gdk-pixbuf/pixops/timescale.c:
2295 * gtk/gtkcalendar.c:
2296 Use g_malloc instead of malloc.
2298 2001-02-19 Alexander Larsson <alla@lysator.liu.se>
2301 Comment out property assignments, these don't work yet.
2303 2001-02-17 Havoc Pennington <hp@pobox.com>
2305 * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
2308 2001-02-17 Havoc Pennington <hp@pobox.com>
2310 * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
2311 shadowed variables that had broken size request in some cases,
2312 leading to bogus tooltips (#50996)
2314 2001-02-06 Jon K Hellan <hellan@acm.org>
2316 Implement fast browsing of tooltips, bug #50619
2318 * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
2321 * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
2322 use_sticky_delay and last_popdown.
2323 (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
2325 (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
2327 (gtk_tooltips_recently_shown): New static function. Return true
2328 if < sticky_delay has elapsed since last popdown.
2329 (gtk_tooltips_event_handler): Display window after sticky_delay
2330 (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
2333 2001-02-17 Havoc Pennington <hp@pobox.com>
2335 * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
2336 instead of (). #6394
2338 * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
2339 G_CONST_RETURN, make it return by reference, #50473
2341 Sat Feb 17 06:47:27 2001 Tim Janik <timj@gtk.org>
2343 * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
2344 generated ENTER_NOTIFY event with 0, otherwise not explicitely
2345 setup fields contain garbage (e.g. subwindow, breaking
2346 gdk_drawable_ref() upon event copy).
2347 (gtk_menu_stop_navigating_submenu_cb): same here.
2349 * gtk/gtklist.c (gtk_list_vertical_timeout):
2350 * gtk/gtklist.c (gtk_list_horizontal_timeout):
2351 * gtk/gtkclist.c (vertical_timeout):
2352 * gtk/gtkclist.c (horizontal_timeout): change direct assignment
2353 default-zero-intialization for unions to memset(,0,), as unions are
2354 not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
2355 has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
2357 * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
2358 g_closure_sink() warning.
2360 * gtk/gtktreemodel.c (gtk_tree_model_get_valist):
2361 * gtk/gtktreestore.c (gtk_tree_store_set_valist):
2362 * gtk/gtkliststore.c (gtk_list_store_set_valist):
2363 fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
2365 Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com>
2367 * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
2368 gtk_*_store_get, and moved to GtkTreeModel.
2370 * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
2372 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
2374 * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
2376 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
2379 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
2380 freeze/thaw notify between setting all the properties for a cell.
2382 * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
2384 2001-02-15 Havoc Pennington <hp@redhat.com>
2386 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
2387 the X coordinates so they're with respect to the line, rather than
2388 with respect to the layout.
2390 * gtk/gtkalignment.c: Convert to new property API, patch from Lee
2393 * gtk/testgtk.c (create_range_controls): add vscale tests,
2396 * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix
2399 * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
2401 * gtk/gtktextiter.h (gtk_text_iter_is_last): rename
2402 gtk_text_iter_is_end
2404 * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
2405 rename gtk_text_buffer_get_end_iter
2407 * gtk/testgtk.c (create_labels): Add test for selectable
2409 * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
2410 the selection stuff. This code is kind of broken since it doesn't
2411 use the theme engine.
2413 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
2414 fix infinite loop and y offset problem
2415 (gdk_draw_layout_line_with_colors): fix foreground color handling
2417 * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag
2418 that makes the label selectable.
2420 * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
2421 layout when the style is set, since fonts etc. could have changed.
2423 Fri Feb 16 14:22:05 2001 Jonathan Blandford <jrb@redhat.com>
2425 * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
2427 * gtk/gtktreemodelsimple.[ch]: removed.
2429 2001-02-16 Alexander Larsson <alexl@redhat.com>
2431 * gtk/gtktreemodelmapping.[ch]:
2432 New files. Implement GtkTreeModelMapping.
2435 Add gtktreemodelmapping.[ch].
2438 Add gtktreemodelmapping.h
2440 * gtk/treestoretest.c:
2441 Test the GtkTreeModelMapping
2443 Tue Feb 13 13:16:09 2001 Jonathan Blandford <jrb@redhat.com>
2445 * demos/gtk-demo/panes.c (create_pane_options): If we're going to
2446 have a demo, we might as well pass in real values. Thanks to
2447 clahey for pointing this out.
2449 2001-02-14 Havoc Pennington <hp@pobox.com>
2451 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
2452 "static" to a private function
2453 (gtk_image_menu_item_class_init): remove destroy handler,
2454 add "image" object property
2456 2001-02-13 Alexander Larsson <alla@lysator.liu.se>
2458 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
2459 Add a shortcut if the window and the current clip_region doesn't
2460 overlap. This is needed when there are a lot of windows in a
2461 window. The layout test in testgtk is a good test.
2463 * gdk/linux-fb/gdkwindow-fb.c:
2466 2001-02-13 Sven Neumann <sven@convergence.de>
2468 * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
2470 2001-02-13 Alexander Larsson <alexl@redhat.com>
2472 * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
2473 Don't reference last_cursor if it is null. Fixes crash when rotating
2474 the screen before having moved the mouse.
2476 * gdk/linux-fb/gdkcc-fb.c: Zapp!
2478 * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
2480 * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw
2481 when using 90 or 270 degrees rotation.
2483 2001-02-12 Havoc Pennington <hp@pobox.com>
2485 * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where
2486 it always set the foreground, even if we were only using
2488 (gdk_draw_layout_line_with_colors): new function, allow
2490 (gdk_draw_layout_with_colors): new function, allow override
2492 (gdk_pango_layout_line_get_clip_region): function to get the clip
2493 region for a logical text range
2494 (gdk_pango_layout_get_clip_region): get the clip region for a
2497 * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
2498 (gdk_colormap_new): fix call to gdk_colormap_sync() so it has
2499 the right number of arguments.
2501 * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
2502 enhance the function to check that node data corresponds to a
2503 view still belonging to the tree.
2505 * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the
2507 (gtk_tree_view_inserted): ditto
2508 (gtk_tree_view_child_toggled): ditto
2510 * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
2513 * gtk/gtkcellrenderertext.c (get_layout): fix leak of
2516 * demos/gtk-demo/main.c (load_file): Fix leak of a GString
2518 * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
2520 * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
2521 size in the size request
2522 (gtk_menu_bar_size_allocate): consider toggle size here
2524 * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
2525 that displays a widget in the toggle slot
2527 * gtk/testgtk.c: test GtkImageMenuItem
2529 * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
2531 * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
2532 request and allocation
2534 * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
2536 * gtk/gtkcheckmenuitem.c
2537 (gtk_check_menu_item_toggle_size_request): ditto
2539 Mon Feb 12 23:43:30 2001 Owen Taylor <otaylor@redhat.com>
2541 * gtk/Makefile.am (gdk_headers): Remove gdkcc.h
2544 * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
2545 and refuse to initialize GTK+ if they fail.
2547 Mon Feb 12 15:02:07 2001 Owen Taylor <otaylor@redhat.com>
2549 * configure.in: Add check for gtk-doc version.
2551 Thu Feb 8 17:18:26 2001 Owen Taylor <otaylor@redhat.com>
2553 * gtk/gtklabel.c (gtk_label_size_request): Fix bug
2554 where the xpad/ypad was only being used on one side!
2556 2001-02-11 Tor Lillqvist <tml@iki.fi>
2558 * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
2559 function, copied from X11 version.
2561 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
2562 DestroyCursor failures. The reason for the problem (despite the
2563 inconsistent messages from GetLastError()) was that
2564 DestroyCursor() cannot be called while a cursor is set in a
2565 window. Set the new cursor first and then destroy the old one.
2566 Thanks to jpe@archaeopteryx.com.
2568 * gdk/win32/gdkcc-win32.c: Remove.
2570 * gdk/win32/Makefile.am: Remove from here, too.
2573 * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
2576 * gtk/makefile.mingw.in: Updates.
2578 2001-02-08 Havoc Pennington <hp@redhat.com>
2580 * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
2581 add a widget to a bin that already has a child.
2583 * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
2585 * docs/Changes-2.0.txt: note that GdkColorContext is gone.
2587 * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
2589 * gdk/gdk.h: remove gdkcc.h
2591 * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
2593 * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
2594 GdkPixbuf, since the previous implementation was GdkColorContext
2597 * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
2599 Thu Feb 8 19:00:00 2001 Jonathan Blandford <jrb@redhat.com>
2601 * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
2604 2001-02-08 Havoc Pennington <hp@redhat.com>
2606 * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
2609 2001-02-08 Havoc Pennington <hp@redhat.com>
2611 * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
2614 * demos/gtk-demo/main.c (create_tree): adjust to changes in text
2617 * demos/pixbuf-demo.c (timeout): remove deprecated
2620 * demos/testpixbuf-save.c (main): remove deprecated
2621 gtk_drawing_area_size
2623 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
2624 buttons even if the model isn't setup. gtk_tree_view_check_dirty()
2625 at the start of the allocation.
2626 (gtk_tree_view_check_dirty): handle column->button == NULL, handle
2627 unsetup or NULL model.
2629 * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
2630 even/odd/sorted cells in the tree view.
2632 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
2635 * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
2636 backgrounds with draw_flat_box using different detail for even/odd
2639 * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
2640 row, so we can draw the alternating colors thing
2642 * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
2643 property from a synonym property, notify for the synonym.
2644 Also, nuke the background_gdk_set and foreground_gdk_set synonyms
2645 (gtk_text_tag_get_property): Always return the font, even if
2646 all its fields aren't set
2648 * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
2649 store the attr list; it leaves us with no way to change attributes
2650 in _render according to the render flags, and no way to implement
2651 get_property. Instead store all the specific text attributes.
2652 Separate whether an attribute is enabled from its value. Sync all
2653 properties with GtkTextTag, make them all consistent, etc.
2655 * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
2656 renderers can highlight the sort row/column
2658 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
2659 accessor functions to get values; this has the side effect of
2660 showing up which accessor functions were missing. Added those.
2662 * gtk/gtktreeviewcolumn.h: Replace set_justification with
2663 set_alignment, to be consistent with GtkLabel, GtkMisc
2665 * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
2668 * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
2670 * gtk/gtktreesortable.h: updates in here
2672 2001-02-07 Sven Neumann <sven@convergence.de>
2674 * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
2675 pango dimensions after painting the background. We used to draw
2676 gigantic flat boxes here.
2678 Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
2680 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
2681 error introduced with earlier commit) (pointed out by
2684 Mon Feb 5 12:25:06 2001 Owen Taylor <otaylor@redhat.com>
2686 * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
2687 which are no longer necessary.
2689 Mon Feb 5 13:22:54 GMT 2001 Tony Gale <gale@gtk.org>
2691 * docs/faq/gtk-faq.sgml: s/MISK/MISC/
2693 2001-02-04 Tor Lillqvist <tml@iki.fi>
2696 * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
2697 Provide dummy implementations.
2699 Sun Feb 4 07:55:17 2001 Tim Janik <timj@gtk.org>
2701 * gtk/gtksignal.h: removed gtk_signal_init() compat define.
2703 * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
2704 GTypeDebugFlags debug_flags and pass it on to g_type_init ();
2705 deprecated this function.
2707 * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
2710 Sun Feb 4 07:45:45 2001 Tim Janik <timj@gtk.org>
2712 * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
2714 2001-02-03 Havoc Pennington <hp@pobox.com>
2716 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
2717 Mikael Hermansson with patch from Mikael (if there was a toggle
2718 start one after the first character in the range, this function
2719 was broken). Bug #50380
2721 Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
2723 * configure.in: Remove confusing comment about X11.
2725 Fri Feb 2 19:21:23 2001 Owen Taylor <otaylor@redhat.com>
2727 * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
2728 regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
2730 Fri Feb 2 18:31:54 2001 Owen Taylor <otaylor@redhat.com>
2732 * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
2733 it breaks things on BSD. If you want to compile GTK+ with
2734 -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE
2735 when configuring, since GTK+ simply can't be "pure ANSI"
2736 in the header files it uses. (#8170, Greg Hudson)
2738 2001-02-02 Havoc Pennington <hp@redhat.com>
2740 * gtk/gtkwindow.c: docs
2742 * gtk/gtkwidget.c: docs
2743 (gtk_widget_set_colormap): add a reference to the colormap
2744 (gtk_widget_get_default_colormap): add a reference to the colormap
2746 * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
2748 * gtk/gtktextiter.c: docs
2750 * gtk/gtkmain.c (gtk_propagate_event): docs
2752 * gtk/gtkpaned.c (gtk_paned_get_position): docs
2753 (gtk_paned_set_position): docs
2755 * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
2756 sort interface, no implementation yet.
2758 * demos/testpixbuf.c (new_testrgb_window): replace
2759 gtk_drawing_area_size() with gtk_widget_set_usize()
2761 * demos/testpixbuf-drawable.c (main): ditto
2763 * gtk/testgtk.c: remove use of GtkStatusbarMsg
2765 * gtk/gtktextbuffer.c: docs
2767 * gtk/gtkstock.c: docs
2769 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
2771 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
2773 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
2775 * gtk/gtkimage.c: add some docs in here
2776 (gtk_image_size_request): change name of
2777 gtk_widget_render_stock_icon
2778 (gtk_image_get_icon_set): don't dup returned string
2779 (gtk_image_get_icon_set): don't dup returned string
2781 * gtk/gtkwidget.c (gtk_widget_render_icon): rename from
2782 gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
2783 and gtkiconfactory.h functions
2785 * gtk/gtkiconfactory.c: add some docs in here
2787 * gtk/gtkmain.c (gtk_get_default_language): document
2788 (gtk_get_current_event): document
2789 (gtk_get_current_event_state): document
2790 (gtk_get_event_widget): document
2792 * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
2794 * gtk/gtkcontainer.c: Add some documentation
2795 (gtk_container_add): give a more explanatory warning on adding an
2796 already-parented widget, this is kind of a FAQ and also a common
2797 typo that's easier to debug with a nice warning
2799 * gtk/gtkcellrenderertoggle.c
2800 (gtk_cell_renderer_toggle_get_active): remove, I was on crack
2801 adding this, it's useless
2802 (gtk_cell_renderer_toggle_set_active): remove
2803 (gtk_cell_renderer_toggle_get_radio): add
2805 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
2806 the NULL cell renderer, that doesn't make any sense to me.
2808 * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
2809 demo code should never use deprecated features.
2811 * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
2812 code should never use deprecated features.
2814 * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
2815 gtk_widget_queue_clear_area deprecated
2817 * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
2820 * gtk/gtklabel.h: mark gtk_label_get() deprecated
2822 * gtk/gtkimage.h: mark the legacy GtkImage functions that took
2823 a GdkImage deprecated, replaced by new consistently-named
2826 * gtk/gtkmain.h: Mark gtk_exit() deprecated
2828 * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
2830 * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string
2833 * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file,
2834 so it won't appear in docs and confuse people.
2836 * gtk/gtkprogressbar.h: Mark all the old methods deprecated
2838 * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
2839 macros deprecated. (can't mark the type itself deprecated, since
2840 GtkProgressBar is not deprecated and we need the type decl to use
2843 * gtk/gtkpixmap.h: Mark deprecated
2845 * gtk/gtkoldeditable.h: Mark deprecated
2847 * gtk/gtklist.h: Mark deprecated
2849 * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used
2850 for anything anymore.
2852 * gtk/gtkctree.h: Mark deprecated
2854 * gtk/gtkclist.h: Mark deprecated
2856 * gtk/gtkpreview.h: Mark deprecated
2858 * gtk/gtkpacker.h: Mark deprecated
2860 * gtk/gtktipsquery.h: Mark deprecated
2862 * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
2864 * gtk/gtkvruler.h: Add comment that it will move out of GTK
2866 * gtk/gtkhruler.h: Add comment that it will move out of GTK
2868 * gtk/gtkruler.h: Add comment that it will move out of GTK
2870 * gtk/gtkgamma.h: Add comment that it will move out of GTK
2872 * gtk/gtkcurve.h: Add comment that it will move out of GTK
2874 Fri Feb 2 17:16:09 2001 Owen Taylor <otaylor@redhat.com>
2876 * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
2877 gdk_colormap_sync private since it was never exported
2880 * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
2881 colormap->colors[] for StaticGray, StaticColor colormaps.
2883 * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
2884 was being used as if it was image->bits_per_pixel.
2886 * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
2887 for the image in the GdkImage structure since it isn't
2888 reconstructable, and we need it to handle packed types
2890 * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
2891 the assumption that on Win32 image->bits_per_pixel == image->depth,
2894 * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
2896 * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
2897 warning message if no converter can be found.
2899 Fri Feb 2 15:09:51 2001 Owen Taylor <otaylor@redhat.com>
2901 * gtk/fnmatch.c (FOLD): Fix problem with passing signed
2902 chars to isupper() / tolower(). (#567)
2904 * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
2905 to clear up 64-bit warnings. (#567)
2907 Fri Feb 2 12:26:50 2001 Owen Taylor <otaylor@redhat.com>
2909 * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
2910 a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
2912 * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
2913 since some people set $(libdir) separately. (#1290, David Kaelbling)
2915 Thu Feb 1 18:25:46 2001 Owen Taylor <otaylor@redhat.com>
2917 * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
2918 defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
2919 MAXPATHLEN, but the code here depends on a fixed value.)
2922 Wed Jan 31 22:01:04 2001 Owen Taylor <otaylor@redhat.com>
2924 * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
2925 where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
2927 Wed Jan 31 21:20:39 2001 Owen Taylor <otaylor@redhat.com>
2929 * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
2930 viewable there is no way that moving the node will cause the
2931 focus row to become not viewable, so omit check on the visibility
2932 of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
2934 Wed Jan 31 20:38:17 2001 Owen Taylor <otaylor@redhat.com>
2936 * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
2937 selection before inserting new text.
2939 Wed Jan 31 18:49:33 2001 Owen Taylor <otaylor@redhat.com>
2941 * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
2942 Make the sensitivity of the reparented child track that of
2943 the original parent menu item. (#34218, David Hodson)
2945 * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
2946 the case where the current item is destroyed properly.
2948 * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
2949 some edge cases with child-less menuitems.
2951 Wed Jan 31 17:16:13 2001 Owen Taylor <otaylor@redhat.com>
2953 * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
2954 key pop down window. (#12074, Jon K Hellan)
2956 Wed Jan 31 16:21:42 2001 Owen Taylor <otaylor@redhat.com>
2958 * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
2959 toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan)
2960 The solution here isn't perfect - you get an extraneous
2961 emission of "toggle", which could conceivably confuse an app,
2962 but better than the current situation. LXR search seems to
2963 indicate that no apps in GNOME CVS connect to "toggle".
2965 Wed Jan 31 15:46:13 2001 Owen Taylor <otaylor@redhat.com>
2967 * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
2968 gtk_public_h_sources to directly here to avoid warning when
2969 building srcdir != builddir. (#9656)
2971 Tue Jan 30 19:49:02 2001 Owen Taylor <otaylor@redhat.com>
2973 * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
2974 handlers in gtkrange.c return the proper values (TRUE == handled)
2977 This is just the tip of the iceberg, but gtkrange.c is the
2978 most common place where the propagation is problematical,
2979 and also a place where it is almost certainly safe to change
2980 this in the stable branch.
2982 (You don't want right click popups on a range control or anything...)
2984 Tue Jan 30 18:57:59 2001 Owen Taylor <otaylor@redhat.com>
2986 * gtk/gtktext.c (clear_focus_area): We need to clear the focus
2987 area on focus out, even if a background pixmap isn't set.
2990 Tue Jan 30 18:24:10 2001 Owen Taylor <otaylor@redhat.com>
2992 * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
2993 to deal with setting the shape properly when scrolling arrows are
2994 turned on, but not visible because there is sufficient space.
2997 Tue Jan 30 16:39:25 2001 Owen Taylor <otaylor@redhat.com>
2999 * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
3000 items with submenus, destroy the item along with the submenu.
3001 (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...'
3004 * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
3007 Tue Jan 30 15:51:25 2001 Owen Taylor <otaylor@redhat.com>
3009 * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
3010 the focus widget sometimes wasn't drawn with the default if there
3011 was no default widget.
3013 * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
3014 unreference pixmaps.
3016 * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
3017 for some extra safety.
3019 Mon Jan 29 19:00:01 2001 Owen Taylor <otaylor@redhat.com>
3021 * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
3022 the text of a cell to the old pointer value better, by
3023 copying the new text before freeing the old text. Some code
3024 cleanup. (#8079, Karl Nelson)
3026 Mon Jan 29 16:50:19 2001 Owen Taylor <otaylor@redhat.com>
3028 * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
3029 gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
3031 Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
3033 * gtk/gtkmenu.c (gtk_menu_remove): When removing an
3034 item from a menu, check to see if it matches
3035 menu->old_active_menu_item, and if so, unref and clear
3036 old_active_menu_item (Patch from Pavel Cisler)
3038 * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset
3039 menu_shell->active_menu_item, if it is the child being
3040 removed. (Patch based on that of Gene Ragan, #50337)
3042 2001-01-31 Alexander Larsson <alla@lysator.liu.se>
3044 * gdk/linux-fb/gdkselection-fb.c:
3045 * gdk/linux-fb/gdkcolor-fb.c:
3046 * gdk/linux-fb/gdkdrawable-fb2.c:
3047 * gdk/linux-fb/gdkfont-fb.c:
3048 * gdk/linux-fb/gdkim-fb.c:
3049 * gdk/linux-fb/gdkinput.c:
3050 * gdk/linux-fb/gdkkeyboard-fb.c:
3051 * gdk/linux-fb/gdkmain-fb.c:
3052 * gdk/linux-fb/gdkrender-fb.c:
3053 A bunch of whitespace cleanup.
3055 2001-01-30 Havoc Pennington <hp@pobox.com>
3057 * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in
3058 #ifdef GTK_ENABLE_BROKEN.
3060 * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
3061 GTK_ENABLE_BROKEN just before including the broken headers.
3063 * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
3064 deprecated types registered.
3066 * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
3067 we have to test the broken stuff.
3069 * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
3071 2001-01-30 Havoc Pennington <hp@redhat.com>
3073 * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
3074 here where prev pointer was set to the wrong thing
3076 * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
3077 (gtk_tree_path_is_descendant): new function
3079 * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
3081 (gtk_list_store_get_iter): don't modify iter if we can't get the
3084 * gtk/gtkliststore.h (struct _GtkListStore): cache the length
3086 * gtk/gtktreednd.h: add virtual function row_drop_possible() to
3089 * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
3090 was causing segfault
3092 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
3095 * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
3097 * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
3099 (gtk_list_store_iter_children): ditto
3100 (gtk_list_store_iter_nth_child): ditto
3101 (gtk_list_store_iter_nth_child): ditto
3102 (gtk_list_store_iter_parent): ditto
3104 * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
3105 on iter->user_data != NULL instead of silently accepting it.
3106 (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
3107 we are returning TRUE.
3108 (gtk_tree_store_iter_children): ditto
3109 (gtk_tree_store_iter_nth_child): ditto
3110 (gtk_tree_store_iter_parent): ditto
3111 (gtk_tree_store_insert): remove handling of parent->user_data ==
3112 NULL, replace with parent == NULL
3114 * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
3115 and a comment explaining things
3117 * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
3118 interface support to GtkTreeStore.
3120 * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
3121 FALSE if no prev, fix
3123 * gtk/gtktreeview.c (set_source_row): use a row reference
3124 (set_dest_row): use a row reference
3126 Sat Jan 27 15:52:02 2001 Jonathan Blandford <jrb@redhat.com>
3128 * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
3129 stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
3130 (gtk_tree_selection_select_iter): The same as above.
3132 2001-01-26 Havoc Pennington <hp@redhat.com>
3134 * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
3135 which holds a handle to a specific row (particular set of values
3136 in the model, i.e. pointer-identity row).
3138 * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
3139 use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
3140 Still need to use it for the src/dest row saved on the drag context.
3142 2001-01-26 Havoc Pennington <hp@redhat.com>
3144 * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
3146 * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
3147 not offset by TREE_VIEW_HEADER_HEIGHT
3148 (gtk_tree_view_tree_to_widget_coords): fix to not offset by
3149 TREE_VIEW_HEADER_HEIGHT
3151 * configure.in (included_loaders): for me, --with-included-loaders
3152 generates the error "the specified loader yes does not exist",
3153 i.e. the arg defaults to "yes", so change test for value ""
3154 to test for value "yes", and include all loaders in that case.
3156 * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
3158 * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
3159 handle TREE_VIEW_VERTICAL_SEPARATOR
3160 (gtk_tree_view_bin_expose): fix to consider the row offset as
3161 pointing halfway into vertical separator.
3162 (gtk_tree_view_draw_node_focus_rect): ditto
3164 * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
3165 --gtk-debug=updates, which causes gdk_window_set_debug_updates
3166 (TRUE) to be called.
3168 * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
3169 debug mode where the invalid region is colored in on invalidate,
3170 so you can see the flicker and know whether your redraw code is
3173 * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
3174 tree window coordinates (clip rect is in tree window coords)
3176 * gtk/Makefile.am: add gtktreednd.[hc]
3178 * gtk/gtkliststore.c: implement gtktreednd interfaces.
3180 * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
3181 drag-and-drop data operations on a model (so we can set up tree
3182 drag-and-drop automatically)
3184 * gtk/testgtk.c: Add a window to change sensitivity in the
3185 GtkLabel test; add a way to change the entry frame in GtkEntry
3188 * gtk/gtkentry.c (gtk_entry_set_has_frame):
3189 (gtk_entry_get_has_frame): new functions to remove the frame
3191 (gtk_entry_size_request): shrink requisition if no frame
3192 (gtk_entry_draw_focus): don't draw frame if no frame
3194 * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
3195 checks inside a cell renderer
3196 (gtk_default_draw_option): ditto for options
3198 * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
3199 children from the alignment, not the button
3200 (gtk_tree_view_column_init): ref/sink the column, to emulate
3201 GObject refcounting.
3203 * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
3205 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3206 Use theme functions to draw the toggles
3208 * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
3210 * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
3211 GdkPangoAttrEmbossed to use in rendering insensitive text
3213 * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
3215 * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
3216 using new GDK features
3218 2001-01-24 Alexander Larsson <alexl@redhat.com>
3221 Splitted gtk_image_clear into gtk_image_clear() and
3222 gtk_image_reset(). Call gtk_image_clear() in ::destroy
3225 * gtk/gtklabel.c (set_markup):
3228 * gtk/gtktextlayout.c:
3229 Always free display->shaped_objects.
3231 * gtk/testgtk.c (create_clist):
3232 Don't leak custom style.
3234 2001-01-23 Alexander Larsson <alexl@redhat.com>
3236 * gtk/gtkcolorsel.c (grab_color_at_mouse):
3237 Don't leak image. Simplify using gdk_colormap_query_color().
3238 (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
3240 * linux-fb/gdkcolor-fb.c:
3241 Implemented gdk_colormap_query_color.
3243 2001-01-23 Alexander Larsson <alexl@redhat.com>
3245 * linux-fb/gdkcursor-fb.c:
3246 Don't leak built-in cursors.
3248 * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
3249 Don't leak tmp_points.
3251 * linux-fb/gdkfont-fb.c (gdk_font_from_description):
3252 Don't modify desc. Don't leak font if the PangoFont
3255 * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
3258 * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
3261 2001-01-20 Havoc Pennington <hp@pobox.com>
3263 * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
3264 from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to
3267 2001-01-22 Havoc Pennington <hp@redhat.com>
3269 * demos/testanimation.c: fix to reflect gdk-pixbuf changes
3271 * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
3273 * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
3274 Remove, move back to gdk-pixbuf
3276 * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
3277 to all the word functions
3279 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
3280 before doing anything on NULL layout or if we don't have the focus
3282 * gtk/testtext.c (fill_example_buffer): "justification"
3284 * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
3285 to be called "justification" not "justify"
3287 * demos/gtk-demo/textview.c (create_tags): "justification"
3289 * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
3291 2001-01-22 Alexander Larsson <alexl@redhat.com>
3293 * gdk/gdkwindow.c (gdk_window_invalidate_region):
3294 Don't leak visible_region. Use visible_region instead of region.
3296 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
3297 Don't do extra gdk_drawable_ref(). This is not X.
3298 (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
3299 gdk_fb_focused_window is ref:ed.
3300 (gdk_fb_window_send_crossing_events): Watch out for destroyed
3303 2001-01-22 Alexander Larsson <alexl@redhat.com>
3305 * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
3306 Don't leak the PangoFontDescriptor.
3308 Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
3310 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
3312 (gtk_tree_view_scroll_to_cell): Make work when not realized.
3313 (gtk_tree_view_realize): add scroll_to support
3314 (gtk_tree_view_finalize): add a finalize method. Populate.
3315 (gtk_tree_view_insert_column): ref and sink the column.
3316 (gtk_tree_view_append_column): ref and sink the column.
3317 (gtk_tree_view_queue_draw_node): New function to handle redrawing
3318 individual nodes. Should make the code much more efficient, if
3321 2001-01-19 Havoc Pennington <hp@redhat.com>
3323 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
3324 byte_offset variable was being used to mean both "offset into
3325 layout" and "offset into buffer line" which was no longer true
3326 with addition of preedit string; fix
3328 2001-01-19 Havoc Pennington <hp@redhat.com>
3330 * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
3332 * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
3335 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
3338 * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
3339 scroll_to_cell, matches TextView scroll functions better
3340 (gtk_tree_view_tree_to_widget_coords): new function
3341 (gtk_tree_view_widget_to_tree_coords): new function
3342 (gtk_tree_view_get_visible_rect): new function
3343 (gtk_tree_view_get_path_at_pos): accept negative coordinates
3344 (gtk_tree_view_draw_node_focus_rect): new function moved from
3345 draw_focus, also, use width of bin_window as width of the focus
3347 (gtk_tree_view_expand_row): fix bug where it didn't recognize
3348 already-expanded rows
3349 (gtk_tree_view_get_cell_rect): new function
3350 (gtk_tree_view_get_path_at_pos): return the click position
3351 relative to the passed-in cell
3352 (gtk_tree_view_set_expander_column): new function
3354 * configure.in: remove gtk-config-2.0 chmod
3356 * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
3357 and properly handle drags with targets we don't understand
3358 (gtk_text_view_drag_end): don't stop scrolling, the source isn't
3360 (gtk_text_view_drag_drop): stop scrolling here though, and set the
3363 * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
3365 (gtk_drag_dest_get_target_list): new function
3366 (gtk_drag_dest_set_target_list): new function
3368 * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
3370 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
3371 related to drag-and-drop
3373 2001-01-19 Alexander Larsson <alexl@redhat.com>
3375 * gdk/linux-fb/gdkprivate-fb.h:
3376 Define EMULATE_GDKFONT.
3377 Add extra pango_font stuff to GfkFontPrivate.
3379 * gdk/linux-fb/gdkdrawable-fb2.c:
3380 * gdk/linux-fb/gdkfont-fb.c:
3381 If EMULATE_GDKFONT defined, implement a slow lame GdkFont
3382 emulation using PangoFont.
3384 2001-01-17 Havoc Pennington <hp@pobox.com>
3386 * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
3387 all the non-deprecated set_foo functions. Added missing object
3388 properties, and added g_object_notify() to setters.
3391 2001-01-18 Tor Lillqvist <tml@iki.fi>
3394 * gtk/gtkrc.c: (Win32) Use the new
3395 g_win32_get_package_installation_(sub)directory() functions.
3397 * config.h.win32.in: New file.
3399 * config.h.win32: Removed.
3401 * configure.in: Output config.h.win32.
3403 * Makefile.am: Add it to EXTRA_DIST.
3405 * gtk/gtk.def: Update.
3407 Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
3409 * gtk/gtklabel.c (gtk_label_size_request): Set the
3410 attributes onto the PangoLayout even if they are newly
3411 created from label->pattern.
3413 Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
3415 * gdk/x11/gdkdnd-x11.c: Remove unused variable.
3417 * gtk/gtkdnd.c: Encapsulate storing and retrieving info
3418 structures in functions. Fixes bug where gtk_dataset_*
3419 was accidentally still being used in one place, causing
3420 every dest side event to be treated independently.
3422 * gtk/gtkdnd.c: Remove last vestages of handling
3423 ::draw (fixes warning)
3425 * gtk/gtkentry.[ch]: Add drag and drop support.
3427 * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
3428 new function gtk_check_drag_threshhold() for checking
3429 to check if (dx,dy) has exceeded the threshhold for starting
3430 a drag and use it everywhere.
3432 Mon Jan 8 11:58:05 2001 Owen Taylor <otaylor@redhat.com>
3434 * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
3435 add -I{includedir}/gtk-2.0.
3437 * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
3438 gdk/gdk-pixbuf.h: Doc fixups.
3440 * gtk/gtkobject.h: Remove trailing , from enum
3442 2001-01-17 Alexander Larsson <alexl@redhat.com>
3444 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
3445 Doh! Mixed up x and y.
3447 * gdk/linux-fb/gdkglobals-fb.c:
3448 Removed gdk_fb_pointer_grab_window_events,
3449 added _gdk_fb_pointer_grab_owner_events and
3450 _gdk_fb_keyboard_grab_owner_events.
3452 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
3453 Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
3454 crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
3455 (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
3456 Send crossing events after ungrab finished.
3457 (gdk_keyboard_grab): Set ..._owner_events
3458 (type_masks): Move out of function.
3459 (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
3460 gdk_fb_keyboard_event_window): New functions, return the
3461 window an event should be targeted at. Handles grabs and
3462 event propagation. Can return NULL.
3463 (gdk_event_make): Remove event_mask checking. Now always
3466 * gdk/linux-fb/gdkkeyboard-fb.c:
3467 * gdk/linux-fb/gdkproperty-fb.c:
3468 * gdk/linux-fb/gdkselection-fb.c:
3469 Use new event_window/gdk_event_make() behaviour.
3471 * gdk/linux-fb/gdkmouse-fb.c:
3472 Use new event_window/gdk_event_make() behaviour.
3473 Only send motion events if in the same window.
3474 If grabbed, use cursor from window if sibling of grabbed
3475 window, and cursor from grabbed window otherwise.
3477 * gdk/linux-fb/gdkprivate-fb.h:
3478 Update gdk_fb_window_send_crossing_events, gdk_event_make
3479 and grab varaible declarations. Add gdk_fb_*_event_window().
3481 * gdk/linux-fb/gdkwindow-fb.c:
3482 Use new event_window/gdk_event_make() behaviour.
3483 Keep correct track of focus window.
3484 (gdk_window_set_events): Set all specific button motion masks
3485 if GDK_BUTTON_MOTION_MASK set.
3487 * gtk/gtkdnd.c (gtk_drag_update):
3488 Free info->last_event if gdk_drag_motion returned FALSE.
3490 2001-01-16 Tor Lillqvist <tml@iki.fi>
3492 * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
3493 Eliminate redraws when input-only windows are shown or
3494 hidden. Thanks to jpe@archaeopteryx.com.
3496 Tue Jan 16 13:13:13 GMT 2001 Tony Gale <gale@gtk.org>
3498 * docs/faq/gtk-faq.sgml: FAQ update:
3499 - Update to bugzilla
3500 - Add GTK+ and security/SUID/SGID
3503 2001-01-16 Alexander Larsson <alla@lysator.liu.se>
3505 * gdk/linux-fb/gdkdnd-fb.c:
3508 2001-01-15 Havoc Pennington <hp@pobox.com>
3510 * tests/testtreeview.c: add test stuff for CellRendererToggle
3512 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
3515 * gtk/gtkcellrenderertoggle.c: distinguish different event types,
3516 only toggle on button press (would do release like GtkButton, but
3517 we'd need implicit grab code for treeview cells)
3519 2001-01-16 Tor Lillqvist <tml@iki.fi>
3521 * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
3523 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
3524 GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
3526 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
3527 to g_{locale,filename}_{to,from}_utf8 to match current API.
3529 * gtk/makefile.msc.in (gtk_OBJECTS)
3530 * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
3532 * gtk/gtk.def: Update.
3534 2001-01-15 Tor Lillqvist <tml@iki.fi>
3536 * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
3537 implementaion that more closely mimics the events that an X server
3538 would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
3539 GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
3540 with nested preview widgets, for instance, more responsive when
3541 you move the mouse quickly into them.
3542 (find_window_for_pointer_event): Make it actually compile.
3543 (gdk_event_translate): Set send_event to the value of
3544 InSendMessage (). This doesn't really mean the same as X11's
3545 send_event flag, but is close enough, says jpe@archaeopteryx.com
3547 2001-01-15 Alexander Larsson <alexl@redhat.com>
3549 * gdk/linux-fb/gdkdnd-fb.c:
3550 Implemented drag and drop.
3551 Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
3552 when it tries to free and then copy the same event (info->last_event).
3553 I am not sure about why this happens, but will continue looking.
3555 2001-01-15 Alexander Larsson <alexl@redhat.com>
3557 * gdk/linux-fb/gdkwindow-fb.c:
3558 Use gdk_window_invalidate_rect instead of
3559 gdk_window_invalidate_rect_clear to minimise flashing.
3560 When hiding windows you need to clear the root window though.
3562 2001-01-15 Alexander Larsson <alexl@redhat.com>
3564 * gdk/linux-fb/gdkdrawable-fb2.c:
3565 For optization, add an full_shapes argument to gdk_fb_clip_region.
3566 If this is false, only the cliprects of the shapes are used.
3568 * gdk/linux-fb/gdkprivate-fb.h:
3569 Export gdk_fb_window_peek_shape.
3570 Add full_shapes to gdk_fb_clip_region.
3572 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
3573 When moving a window, don't clear everything under the it, just the
3574 root window. Makes stuff faster and flash less.
3575 (gdk_window_get_pointer): Correctly handle offseted shapes, due to
3576 USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
3577 offset of the shape.
3580 2001-01-12 Havoc Pennington <hp@redhat.com>
3582 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the
3583 current invalid region, fixes redraw bug while scrolling the
3586 * gtk/gtktextview.c, gtk/gtktextview.h:
3587 Rearrange the scrolling/validation/etc. code in a major way,
3588 so it seems to make sense to me. Probably isn't genuinely that
3591 * gtk/gtktexttag.c (set_fg_color): fix name of property used for
3594 * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
3596 2001-01-12 Alexander Larsson <alla@lysator.liu.se>
3598 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
3599 Hide mouse pointer while rotation. Show it afterwards.
3601 2001-01-12 Alexander Larsson <alexl@redhat.com>
3603 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
3604 windows in consideration when generating clip region.
3606 * gdk/linux-fb/gdkfb.h:
3607 Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
3609 * gdk/linux-fb/gdkprivate-fb.h:
3610 Add shape to GdkWindowFBDatat.
3611 exported gdk_fb_window_get_abs_shape().
3612 removed gdk_fb_draw_lines declaration.
3614 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
3615 Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
3616 send focus changes when there is a grabbed window.
3617 (gdk_window_get_pointer): Handle shaped windows.
3618 (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
3619 (gdk_fb_window_peek_shape): Returns the shape for a window,
3620 handles GDK_FB_USE_CHILD_SHAPE.
3621 (gdk_fb_window_get_abs_shape): Returns the shape of the window,
3622 offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
3623 (gdk_window_shape_combine_mask): Implement.
3625 * gtk/gtkwindow-decorate.c:
3626 HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
3627 setting the shape of a window makes the window transparent.
3629 2001-01-11 Havoc Pennington <hp@redhat.com>
3631 * gtk/gtktreemodelsimple.h: Oops, broke some macros
3633 2001-01-10 Havoc Pennington <hp@redhat.com>
3635 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
3636 add this function, bug 40251
3638 * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
3641 2001-01-11 Alexander Larsson <alexl@redhat.com>
3644 Added ENABLE_SHADOW_FB
3647 Added --disable-shadowfb
3649 * gdk/linux-fb/gdkcursor-fb.c:
3650 Update shadowfb when updating cursor
3652 * gdk/linux-fb/gdkdrawable-fb2.c:
3653 Added wrappers for shadowfb that calls the normal drawable
3654 methods, but calls gdk_shadow_fb_update(bounding box) when
3655 GdkWindows are drawed to.
3656 Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
3657 which also returns the bounding box.
3659 * gdk/linux-fb/gdkfb.h:
3660 Added GdkFBAngle type and gdk_fb_set_rotation declaration.
3662 * gdk/linux-fb/gdkgeometry-fb.c:
3663 Update shadowfb when scrolling window.
3665 * gdk/linux-fb/gdkglobals-fb.c:
3666 Add _gdk_fb_screen_angle.
3668 * gdk/linux-fb/gdkkeyboard-fb.c:
3669 Test code for screen rotation. Shift-F2 in the xlate driver
3672 * gdk/linux-fb/gdkmain-fb.c:
3673 Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
3675 * gdk/linux-fb/gdkmouse-fb.c:
3676 Use fb_width/height instead of modeinfo.xres/yres.
3678 * gdk/linux-fb/gdkprivate-fb.h:
3679 Added fb_men, fb_width, fb_height & fb_stride. When using
3680 shadow fb these can differ from the framebuffer stuff.
3681 Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
3682 gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
3683 _gdk_fb_screen_angle. Removed CM, RP.
3685 * gdk/linux-fb/gdkrender-fb.c:
3686 Added code for shadowfb handling and screen rotation using
3689 * gdk/linux-fb/gdkwindow-fb.c:
3690 Use fb_mem, fb_stride, fb_width, fb_height.
3691 Added recompute_rowstride to reset the rowstride of all windows.
3692 Added gdk_fb_recompute_all() which recomputes rootwindow size,
3693 window abs positions and window rowstrides. Usefull when the
3694 rotation has changed.
3696 Thu Jan 11 13:16:50 GMT 2001 Tony Gale <gale@gtk.org>
3698 * docs/faq/gtk-faq.sgml: update to make web site updating easier
3700 2001-01-10 Havoc Pennington <hp@redhat.com>
3702 * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
3703 where sibling == iter
3704 (gtk_tree_store_insert_after): handle sibling == iter
3705 (gtk_tree_store_prepend): remove stamp checks
3706 (gtk_tree_store_insert_before): ditto
3707 (gtk_tree_store_append): ditto
3708 (gtk_tree_store_get_path): ditto
3709 (gtk_tree_store_get_value): ditto
3710 (gtk_tree_store_iter_has_child): ditto
3711 (gtk_tree_store_iter_n_children): ditto
3712 (gtk_tree_store_iter_nth_child): ditto
3713 (gtk_tree_store_insert_after): ditto
3714 (gtk_tree_store_is_ancestor): ditto
3715 (gtk_tree_store_iter_depth): ditto
3716 (gtk_tree_store_insert_before): assert that sibling's parent is
3717 the same as the passed-in parent
3718 (gtk_tree_store_insert_after): assert that sibling's parent is
3719 the same as the passed-in parent
3722 * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience
3723 function to get the first iterator in a model
3725 * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
3726 conventionally the "root" in this sense is just NULL afaict.
3728 * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
3729 where sibling == iter
3730 (gtk_list_store_insert_after): handle case where sibling == iter
3732 * tests/testtreeview.c (run_automated_tests): fairly lame basic
3733 automated tests for ListStore, TreeStore
3735 * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
3736 (gtk_list_store_insert): update tail pointer, and fix it to work
3737 (gtk_list_store_insert_before): update tail pointer, and fix it to work
3738 (gtk_list_store_append): use tail to be faster
3739 (gtk_list_store_prepend): fix it, update tail pointer
3740 (gtk_list_store_insert_after): fix it, update tail pointer
3742 * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for
3745 2001-01-09 Havoc Pennington <hp@redhat.com>
3747 * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
3748 is NULL due to a pending resize
3750 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
3751 column width to values less than 1
3753 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
3754 width to be between min/max width, and still set the width
3755 even if autosize is turned on, so the tree view can use this
3756 function in order to autosize.
3757 (gtk_tree_view_column_init): set initial width to 1 not 0
3759 * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
3760 setter function to modify column width, so we get notification
3761 (gtk_tree_view_insert_iter_height): ditto
3762 (gtk_tree_view_calc_size): ditto
3763 (gtk_tree_view_check_dirty): ditto
3765 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
3766 properties to change all the interesting attributes of the tree
3768 (gtk_tree_view_column_set_header_clickable): rename set_clickable
3769 (gtk_tree_view_column_get_clickable): add
3770 (gtk_tree_view_column_set_cell_renderer): don't unset the current
3771 attributes; assume a cell renderer with equivalent object
3772 properties has been swapped in. Do g_object_notify().
3773 (gtk_tree_view_column_set_visible): g_object_notify
3774 (gtk_tree_view_column_get_sizing): rename from get_col_type
3775 (gtk_tree_view_column_set_sizing): g_object_notify
3776 (gtk_tree_view_column_set_width): add g_object_notify
3777 (gtk_tree_view_column_set_min_width): ditto
3778 (gtk_tree_view_column_set_max_width): ditto
3779 (gtk_tree_view_column_set_title): ditto
3780 (gtk_tree_view_column_set_clickable): ditto
3781 (gtk_tree_view_column_set_widget): ditto
3782 (gtk_tree_view_column_set_justification): ditto
3784 2001-01-09 Havoc Pennington <hp@redhat.com>
3786 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
3787 there are no rows in the model
3789 * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
3790 NULL, then return the start of the list
3792 * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
3793 if we can't get any rows from an empty model
3795 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
3796 extraneous * after function pointer typedef usage
3798 * Makefile.am: don't specify full path to cp and rm
3800 * gtk/gtkcellrenderertextpixbuf.c
3801 (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
3802 NULL before dereferencing, fixes a segfault that happened from
3805 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3806 use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
3807 and reindent the function
3808 (gtk_cell_renderer_pixbuf_get_size): indentation
3810 * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
3812 (gtk_dialog_add_buttons_valist): add g_return_if_fail
3813 (gtk_dialog_set_default_response): New function, to set default
3815 (gtk_dialog_set_response_sensitive): New function, to set
3816 sensitivity of buttons
3818 * gtk/gtkcellrendererpixbuf.c
3819 (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
3820 (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
3822 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
3823 handle any G_TYPE_OBJECT subclass, not just the base class, and
3825 (_gtk_tree_data_list_value_to_node): ditto
3827 * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if
3830 * gtk/gtkmain.c: add GTK_DEBUG_TREE
3832 * gtk/gtkdebug.h: add GTK_DEBUG_TREE
3834 2001-01-09 Tor Lillqvist <tml@iki.fi>
3836 * gdk/win32/gdkevents-win32.c: Implement better mouse
3837 capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
3838 (find_window_for_pointer_event): New function.
3839 (gdk_event_translate): Use it when handling mouse events.
3841 2001-01-09 Alexander Larsson <alla@lysator.liu.se>
3844 Added --with-included-loaders option
3846 * gdk-pixbuf/Makefile.am:
3847 * gdk-pixbuf/gdk-pixbuf-io.c:
3848 Add support for including selected gdk-pixbuf loaders only.
3850 * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
3851 gtk_window_set_has_frame):
3852 Added inline documentation.
3854 * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
3855 * docs/reference/gdk/tmpl/windows.sgml:
3856 Added inline documentation.
3858 Mon Jan 8 14:42:06 2001 Jonathan Blandford <jrb@redhat.com>
3860 * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
3861 realizing buttons that have already been realized.
3863 Mon Jan 8 14:06:29 2001 Jonathan Blandford <jrb@redhat.com>
3865 * tests/testtreeview.c (main): Show menu items before adding to
3868 * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
3869 around if we kill them.
3871 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
3872 Return if we pass in a NULL model.
3874 2001-01-08 Havoc Pennington <hp@redhat.com>
3876 * tests/testtreeview.c: hack on this some
3878 * gtk/gtktreestore.c (gtk_tree_store_setv): rename
3879 gtk_tree_store_set_valist, v is for arrays, valist for varargs
3881 (gtk_tree_store_getv): rename gtk_tree_store_get_valist
3883 * gtk/gtkliststore.h: Add varargs set() and get() convenience
3886 2001-01-08 Alexander Larsson <alexl@redhat.com>
3888 * gtk/gtkwindow-decorate.[hc]:
3890 New files. Contains an implementation of a minimal WM for
3894 Add the possibility for GtkWindows to specify a frame. This
3895 is used for the window decoration code, but could concievably
3896 be used for X programs too (xmms style windows).
3897 GtkWindow->frame is the toplevel window if the window is framed.
3898 The signal frame_event gets all events that are targeted to
3900 (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
3903 Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
3904 Call out to gtkwindow-decorate.c for WM support in linx-fb.
3906 2001-01-08 Alexander Larsson <alexl@redhat.com>
3908 * docs/README.linux-fb:
3909 Correct filename ~/.pangoft2_aliases
3912 Added new function gdk_window_get_decorations.
3914 * gdk/linux-fb/gdkfb.h:
3915 Removed _gdk_window_get_decorations declaration.
3916 Renamed _gdk_window_set_child_handler to
3917 gdk_fb_window_set_child_handler.
3919 * gdk/linux-fb/gdkwindow-fb.c:
3920 Renamed _gdk_window_set_child_handler to
3921 gdk_fb_window_set_child_handler.
3923 * gdk/x11/gdkwindow-x11.c:
3924 New function gdk_window_get_mwm_hints().
3925 Implemented gdk_window_get_decorations.
3927 * docs/reference/gdk/tmpl/windows.sgml:
3928 * docs/reference/gdk/gdk-sections.txt:
3929 Added gdk_window_get_decorations docs.
3931 2001-01-08 Alexander Larsson <alla@lysator.liu.se>
3933 * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
3934 gdk_fb_window_find_focus, gdk_fb_send_focus_change,
3935 gdk_fb_window_send_crossing_events):
3936 Possibly send focus events when the mouse moves from one
3939 2001-01-07 Tor Lillqvist <tml@iki.fi>
3941 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
3942 gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
3943 to match current API.
3945 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
3946 environment variable is set, don't call g_error when on a
3947 palettized (PseudoColor) display. Some people want to use GTK+
3948 in 256-colour mode even though works only partially.
3952 * gtk/makefile.mingw.in: Update.
3954 2001-01-05 Havoc Pennington <hp@redhat.com>
3956 * tests/testtreeview.c: hack on this a bit
3958 * gtk/gtktextlayout.c (gtk_text_layout_class_init):
3959 s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
3961 * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS):
3962 was spelled incorrectly
3963 (GTK_IS_TREE_MODEL_SIMPLE): ditto
3965 * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
3966 from gtk_tree_view_set_headers_active
3969 (gtk_text_tag_get_property): handle PROP_DIRECTION
3970 (gtk_text_tag_set_property): g_object_notify when we toggle the _set
3971 properties, bug 40235
3973 * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
3976 Fri Jan 5 16:16:29 2001 Owen Taylor <otaylor@redhat.com>
3978 * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
3979 modules/input/gtkimcontextxim.c: Adapt to new prototypes
3980 for unicode,locale,filename conversion functions.
3982 2001-01-05 Havoc Pennington <hp@redhat.com>
3984 * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
3985 broken if called on the first position in the buffer.
3987 * gtk/gtktextlayout.c (line_display_index_to_iter): fix
3988 forward_to_delimiters to be called only if we aren't already at
3991 2001-01-05 Havoc Pennington <hp@redhat.com>
3993 * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
3995 2001-01-05 Alexander Larsson <alexl@redhat.com>
3997 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
3998 colormap in here. Sync from X port.
3999 (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
4001 (gdk_fb_clip_region): Comment out g_warning about empty clip region.
4002 This happens now and then, and i don't think it is a bug.
4003 (gdk_fb_draw_polygon): Correctly add extra point if startpoint
4005 (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
4008 * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
4009 some of the fields filled in at least.
4011 * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
4012 miLineArcD is no more, remove it from the function definition.
4014 2001-01-04 Havoc Pennington <hp@redhat.com>
4016 * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
4019 * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
4020 user_data instead of tree_node
4022 * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
4023 TREE_VIEW_COLUMN_SIZE
4025 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
4026 "size" field to "width" finishes bug 40061
4028 * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
4029 for bitfields, bug 40268
4031 2001-01-04 Havoc Pennington <hp@redhat.com>
4035 s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
4037 s/GtkModelSimple/GtkTreeModelSimple/g;
4038 s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
4039 s/gtk_model_simple/gtk_tree_model_simple/g;
4040 s/gtkmodelsimple/gtktreemodelsimple/g;
4042 s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
4044 s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
4045 s/column_set_col_type/column_set_sizing/g;
4047 s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
4048 s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
4050 s/GtkCellRendererType/GtkCellRendererState/g;
4052 * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
4053 (gtk_cell_renderer_toggle_class_init): change "state" property to
4054 "active", to match GtkToggleButton
4055 (gtk_cell_renderer_toggle_get_active): new function, bug
4057 (gtk_cell_renderer_toggle_set_active): new function
4058 (gtk_cell_renderer_toggle_set_property): route changes to toggle
4059 state through gtk_cell_renderer_set_active
4061 Thu Jan 4 15:46:18 2001 Jonathan Blandford <jrb@redhat.com>
4063 * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
4064 temporarily until they work again. Brought up to date with
4065 changes in the model.
4066 * gtk/gtkmodelsimple.h: Brought up to date with changes in the
4069 2001-01-04 Havoc Pennington <hp@redhat.com>
4071 * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
4072 equal to the line length, then position iterator before paragraph
4073 separators. Fixes crash reported by Mikael Hermansson when
4074 pressing left arrow from the start of a line.
4076 * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
4077 about byte indexes off the end
4078 (iter_set_from_char_offset): add g_error about char offsets
4081 2001-01-03 Havoc Pennington <hp@redhat.com>
4083 * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
4085 * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use
4086 of private functions; remove inclusion of private headers.
4088 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this
4089 function, so we don't need private functions in gtktextdisplay.c
4091 * gtk/gtktextiterprivate.h: underscore-ification
4093 * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
4094 to instead say "only useful to implement widgets"
4096 * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
4097 GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
4098 GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
4100 * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
4101 This function was completely broken
4103 * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
4105 * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
4107 * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
4109 * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
4111 * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
4113 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
4115 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
4118 * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
4121 * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
4122 Progress on bug 40103. Add draw_layout to draw a PangoLayout.
4123 (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
4124 which were not implemented.
4126 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
4127 insert_pixbuf signal. Rename delete_text to delete_range since it
4128 also deletes pixbufs and child anchors. This almost closes bug
4129 40245 (still need to deal with child anchors)
4131 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
4132 insert_pixbuf, change signal names as appropriate, change types of
4133 signals taking marks/tags to have the specific type, not just
4136 * gtk/gtkmain.c (gtk_get_current_event_state): Add this function;
4139 * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
4140 unnecessary remove_contents() call
4141 (gtk_option_menu_class_init): add a "changed" signal, closes
4143 (gtk_option_menu_update_contents): emit "changed" if the
4144 active menu item changes
4146 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
4147 cast to GtkObject, reported by Jonas Borgstrom
4148 (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
4149 we can't do stuff with side effects in finalize. Instead, spew a
4150 warning if the loader isn't closed.
4152 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
4153 colormap in here, non-X ports probably need to sync to this change
4155 * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove
4156 assertion that colormap != NULL, you can set the colormap to NULL
4159 * Makefile.am: remove gtk-config-2.0
4161 * configure.in: Use pkg-config to locate GLib. Remove
4162 separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
4163 and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
4164 Use pkg-config to locate Pango. Output correct Pango libs to
4165 gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
4167 * Makefile.am (pkgconfig_DATA): install only target-specific pc
4169 (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
4172 * gtk+-2.0.pc.in (Requires): require the GDK for the current target
4175 2001-01-03 Alexander Larsson <alla@lysator.liu.se>
4178 Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
4180 Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
4182 * gtk/gtktextlayout.c
4183 (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
4184 variable when moving back onto a single line.
4186 2001-01-01 Havoc Pennington <hp@redhat.com>
4188 * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
4190 * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
4192 * configure.in (LIBTOOL_EXPORT_OPTIONS): define
4193 LIBTOOL_EXPORT_OPTIONS with options to control symbol export
4195 2001-01-01 Havoc Pennington <hp@redhat.com>
4197 * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
4199 * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for
4202 * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug
4204 (gtk_text_attributes_copy_values): rename from
4205 gtk_text_attributes_copy
4206 (gtk_text_attributes_copy): a more standard GTK copy function,
4207 which returns a new object
4209 2001-01-01 Havoc Pennington <hp@redhat.com>
4211 * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
4213 * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
4214 don't fill in tree_view->priv->selection, kind of an unexpected
4217 * gtk/gtkcellrenderertext.c: Remove definition of _ and include
4220 * gtk/gtkcellrenderer.c: Remove definition of _ and include
4222 (gtk_cell_renderer_get_property): remove calls to g_value_init
4224 * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
4227 * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
4228 and include gtkintl.h
4229 (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
4232 * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
4234 (_gtk_tree_selection_new_from_with_view): rename, return
4236 (_gtk_tree_selection_set_tree_view): rename with uscore
4237 (gtk_tree_selection_get_selected): fill in the "model" out param
4238 first, so it gets filled in even if we return at the top of the
4240 (gtk_tree_selection_real_select_all): add a comment and an else{}
4241 to clarify this a bit
4242 (gtk_tree_selection_real_unselect_all): add the same else{}
4244 * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
4245 set_tree_view to have underscore prefixes, move them to the
4246 private header, fix return type of new_with_tree_view
4247 (struct _GtkTreeSelection): mark struct
4250 * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
4251 GtkTreeModelFlags, not a guint
4252 (gtk_tree_path_prev): return gboolean not gint
4253 (gtk_tree_path_up): return gboolean not gint
4255 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
4256 return GtkTreeModelFlags, not a guint
4258 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
4259 that child model is non-null before unrefing it
4260 (g_value_int_compare_func): make this a qsort compare func, not
4263 * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
4264 (add -umn to the end), and mark it unimplemented
4265 (gtk_tree_model_sort_resort): remove, this wasn't implemented, and
4266 I don't see what it's for - doesn't the model always sort itself?
4267 (gtk_tree_model_sort_set_compare): this had the wrong signature
4269 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
4270 Fix the docs to say that it destructively replaces existing
4271 attributes (previously said that it added attributes).
4272 (gtk_tree_view_column_set_visible): canonicalize bool before
4273 equality testing. Also, check for realization before
4274 hiding/showing the tree_column->window; if this window could exist
4275 before realization, then it's busted and needs fixing, we can't
4276 create GDK resources pre-realization. Also, remove
4277 superfluous queue_resize(), since set_size() does that for us.
4278 (gtk_tree_view_column_set_col_type): check realization before
4279 using tree_column->window
4281 * gtk/gtktreedatalist.c: fix filename in copyright notice
4283 2000-12-31 Havoc Pennington <hp@pobox.com>
4285 * gtk/gtktextview.c: Rearrange all the
4286 scroll-while-dragging-or-selecting code to be different, not
4287 necessarily better. ;-)
4288 (gtk_text_view_scroll_to_mark): Change this
4289 function to take within_margin as a fraction instead of a pixel
4290 value, and to take alignment arguments (indicating where to align
4291 the mark inside the visible area)
4293 * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
4296 * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
4297 behavior so that offsets past the end of the line are not
4298 allowed, and an offset equal to the line length moves the iterator
4300 (gtk_text_iter_set_line_index): make parallel change
4301 (gtk_text_iter_get_bytes_in_line): add this function
4303 * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
4304 of byte indexes off the end of the line; byte index at the end of
4305 the line now returns FALSE and doesn't fill in the requested
4306 values, byte index past the end of the line is an error. Also,
4307 don't allow -1 offset anymore, since its meaning is unclear.
4309 This change exposes some bug in visual cursor motion, where we
4310 end up with a huge invalid byte index; needs fixing. Symptom of
4311 bug is a crash when you hit up arrow.
4313 (_gtk_text_line_char_locate): match the change to byte_locate
4315 * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
4316 from start of line properly. fixes bug reported by Mikael
4317 Hermansson where backspace would delete all text before the
4320 2000-12-30 Tor Lillqvist <tml@iki.fi>
4322 * gdk/win32/gdkwindow-win32.c
4323 (gdk_window_impl_win32_get_visible_region): New function, as in
4325 (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
4326 instead of duplicating the same code here.
4328 * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
4331 * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
4333 (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
4336 * gtk/gtk.def: Update.
4338 * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
4340 2000-12-30 Havoc Pennington <hp@pobox.com>
4342 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
4343 colormap on input only windows, to avoid special cases all over
4344 the code for these windows.
4346 2000-12-26 Tor Lillqvist <tml@iki.fi>
4348 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
4349 we are on a palettized display ("PseudoColor" in X11), as the code
4350 for that doesn't work anyway, and never has.
4352 2000-12-22 Alexander Larsson <alexl@redhat.com>
4354 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
4355 Don't use isprint() for chars > 255.
4357 2000-12-21 Havoc Pennington <hp@redhat.com>
4359 * tests/testtreeview.c: more work
4361 2000-12-21 Alexander Larsson <alexl@redhat.com>
4363 * docs/README.linux-fb:
4364 Update the docs to the new pangoft2 way.
4366 2000-12-21 Alexander Larsson <alexl@redhat.com>
4369 For linux-fb get the pangoft2 cflags and libs. This needs a recent
4371 Remove modules/linux-fb/Makefile.
4373 * gdk/linux-fb/gdkdrawable-fb2.c:
4374 Render glyphs using freetype.
4376 * gdk/linux-fb/gdkfb.h:
4377 Add new fb-specific functions needed for managing windows.
4379 * gdk/linux-fb/gdkmain-fb.c:
4380 Remove gdk_font_init/fini() calls.
4382 * gdk/linux-fb/gdkpango-fb.c:
4383 Remove old implementation. Use pangoft2 instead.
4385 * gdk/linux-fb/gdkprivate-fb.h:
4386 Remove PangoFBFont and related stuff.
4388 * gdk/linux-fb/gdkwindow-fb.c:
4389 Implement drawable->get_visible_region.
4390 Implement support for _gdk_window_set_child_handler () and
4391 _gdk_window_get_decorations().
4393 * modules/Makefile.am:
4394 Remove linux-fb subdir.
4396 * modules/linux-fb/*:
4399 2000-12-20 Jonathan Blandford <jrb@redhat.com>
4401 * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
4402 calls, as they are no longer needed.
4404 * gtk/gtktreemodelsort.c: Fix up the comparison code.
4406 * gtk/gtktreemodel.h: Start work on ::reordered signal. Need to
4407 figure out how to emit a signal on an interface.
4409 2000-12-20 Havoc Pennington <hp@redhat.com>
4411 * tests: new directory to contain tests, gtk/test* should move
4412 here sometime (with appropriate on-cvs-server hackery)
4414 * tests/testtreeview.c, tests/Makefile.am: a test
4416 * configure.in (AC_OUTPUT): add tests/Makefile
4418 * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
4419 and "invisible_set" which were missing
4421 * gtk/gtkrbtree.h: some cheesy indentation fix
4423 2000-12-20 Alexander Larsson <alexl@redhat.com>
4425 * gtk/gtkinvisible.c (gtk_invisible_realize):
4426 Attach the style to the window so that the style it is not
4427 leaked when unrealizing the window.
4429 2000-12-18 Havoc Pennington <hp@redhat.com>
4431 * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
4432 begin/end user action where appropriate
4433 (gtk_text_view_commit_handler): add begin/end user action
4435 * gtk/gtktextbuffer.c: add begin/end user action signals, and
4436 bracket interactive operations with begin/end user action pair.
4438 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
4439 "interactive" arg from insert_text and delete_text signals.
4440 Add begin_user_action, end_user_action signals
4441 (gtk_text_buffer_begin_user_action):
4442 (gtk_text_buffer_end_user_action): New functions to delimit
4443 a user-visible action
4445 * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
4448 2000-12-18 Havoc Pennington <hp@redhat.com>
4450 * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
4451 was pretty non-working.
4453 * gtk/testtext.c (fill_file_buffer): make this a bit more robust
4454 by passing the length to g_utf8_validate().
4456 2000-12-16 Havoc Pennington <hp@pobox.com>
4458 * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c:
4459 Port to GObject, can go back in gdk-pixbuf after setting up
4460 a gdk-pixbuf-marshal.h header over there.
4462 * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
4463 (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
4465 (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
4467 (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
4468 here, do it when we create the buttons later
4469 (gtk_tree_view_realize_buttons): add some g_return_if_fail
4470 (gtk_tree_view_map): paranoia checks that column->button is shown
4472 (gtk_tree_view_size_request): only request visible children.
4473 Move header size calculation in here, for cleanliness, and
4474 to maintain invariants for child widgets if we eventually
4475 let users set different children inside the buttons
4476 (gtk_tree_view_map_buttons): factor out code to map buttons,
4477 since it was being called several times
4478 (gtk_tree_view_size_allocate_buttons): move_resize the drag
4479 windows instead of just moving them; their height may change
4480 if we allow random widgets in there, or the theme changes.
4481 (gtk_tree_view_size_allocate): move button size allocation
4482 above emitting the scroll signals, to ensure a sane state when we
4484 (gtk_tree_view_button_release): remove queue_resize after
4485 tree_view_set_size(), set_size() will handle any resize queuing
4487 (gtk_tree_view_focus_in): just queue a draw, don't fool with
4489 (gtk_tree_view_focus): use gtk_get_current_event() and
4490 gdk_event_get_state()
4491 (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
4492 (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
4494 (gtk_tree_view_create_button): show the button here
4495 (gtk_tree_view_button_clicked): actually emit the clicked signal
4497 (_gtk_tree_view_set_size): return right away if the size is
4498 unchanged, as a cheesy optimization
4499 (gtk_tree_view_setup_model): rename set_model_realized to
4500 setup_model to match the flag that indicates whether we've
4502 (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
4503 exist, because set_scroll_adjustment does that and it shouldn't
4504 matter what order you call these in
4505 (gtk_tree_view_get_vadjustment): ditto
4506 (gtk_tree_view_set_headers_visible): canonicalize the bool,
4508 (gtk_tree_view_set_headers_visible): call
4509 gtk_tree_view_map_buttons() instead of using cut-and-paste code
4510 (gtk_tree_view_append_column): clarify whether the return value
4511 is the count of columns before or after, and do the increment
4512 separately from the return statement so you can tell from the code.
4513 (gtk_tree_view_remove_column): ditto
4514 (gtk_tree_view_insert_column): ditto
4515 (gtk_tree_view_get_column): remove g_return_if_fail for columns
4516 outside the existing range, the docs say that outside-range
4517 columns are allowed, so we handle them as documented. (Presumably
4518 this allows a nice loop with column != NULL as test.)
4519 (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments
4520 mean (left/right/center etc.).
4521 (gtk_tree_view_collapse_all): only queue a draw if we're mapped
4522 (gtk_tree_view_expand_row): add docs
4523 (gtk_tree_view_collapse_row): add docs
4525 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
4526 function to emit the clicked signal on a column
4528 * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
4530 (gdk_event_get_time): don't treat GDK_SCROLL
4531 as a button event, remove default case from switch so gcc
4532 will whine if we don't explicitly handle all event types
4534 * gtk/gtktreeselection.h: added some FIXME
4536 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
4537 "columns" to "n_columns" and "column" to "columns" for clarity
4539 2000-12-16 Havoc Pennington <hp@pobox.com>
4541 * gtk/gtktextiter.c: General cleanup of the log attr iteration
4542 stuff. This should make e.g. the delete key work again in the
4544 (gtk_text_iter_forward_cursor_positions): handle negative count
4545 (gtk_text_iter_backward_cursor_positions): handle negative count
4546 (gtk_text_iter_forward_word_ends): handle negative count
4547 (gtk_text_iter_backward_word_starts): handle negative count
4549 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
4550 gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
4551 gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
4552 GObject. No doubt will cause breakage.
4554 * demos/gtk-demo/textview.c: remove hacks around
4555 non-GObject-ification of the text objects
4557 * demos/gtk-demo/main.c (main): use g_object_set() to manipulate
4560 2000-12-14 Havoc Pennington <hp@pobox.com>
4562 * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
4563 that we have Xrender
4565 Thu Dec 14 20:22:31 2000 Owen Taylor <otaylor@redhat.com>
4567 * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
4568 Add two virtualized functions gdk_drawable_get_clip_region - to
4569 get the clip region when drawing.
4571 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
4572 use invalidate_region.
4574 * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
4577 * acconfig.h configure.in: Check for Xft. For now, assume
4578 that if Xft is found, Pango was compiled with Xft support
4581 * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add
4582 gdk_colormap_query_color().
4584 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
4585 with Xft if appropriate.
4587 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
4588 a pangoxft context if we have XFT and the environment
4589 variable GD_USE_XFT is set.
4591 * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
4592 and also possibly an XftDraw structure.
4594 * gtk/gtkfontsel.c: Handle the case where the font from the
4595 style doesn't match any of the fonts a bit better.
4597 * gtk/testgtk.c: Add tabs between directional segments for
4598 hebrew/arabic test. (Not really necessary, just a little
4601 2000-12-14 Havoc Pennington <hp@redhat.com>
4603 * gtk/testtext.c (fill_file_buffer): fix unicode validation when
4606 2000-12-14 Havoc Pennington <hp@redhat.com>
4608 * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
4609 unused call to get_last_line()
4611 * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
4612 here until boxed is working (and maybe after that - we should
4613 really not gratuitously break old code)
4615 * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
4616 specific types for font_desc and tabs args, move them to
4617 GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
4618 fixed. Move GdkColor args to GTK_TYPE_POINTER also.
4620 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
4621 use GTK_TYPE_POINTER for signal signatures as a hack-around
4623 * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
4626 * gtk/gtktextlayout.c (line_display_iter_to_index):
4628 (line_display_index_to_iter): make static
4630 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
4631 to marshal a string not a boxed
4633 * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
4635 * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
4636 since the UTF-8 isn't validated yet
4638 * gtk/gtktextsegment.c (char_segment_check_func): don't require
4639 lines to end in '\n'
4641 * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
4642 forward_to_delimiters, and grapheme boundaries
4643 (gtk_text_view_delete_from_cursor): properly handle non-newline
4644 delimiters, and grapheme boundaries
4646 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
4647 to gtk_text_iter_forward_to_delimiters, and make it work properly
4648 if empty lines end with a character other than '\n'
4650 * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
4653 2000-12-15 Tor Lillqvist <tml@iki.fi>
4655 * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
4658 * gdk/gdk.def: Update.
4660 * gdk/win32/gdkmain-win32.c
4661 * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
4662 gdkmain-win32.c here.
4664 * gdk/win32/makefile.mingw.in (all): No need to make
4665 gdk-win32res.o here, the makefile one step up will call us to make
4668 * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
4671 * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
4673 * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
4674 call to g_source_add().
4676 * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
4677 leak. Thanks to Andreas Kemnade.
4679 2000-12-13 Havoc Pennington <hp@pobox.com>
4681 * gtk/gtktextbtree.h: Remove double _ in front of some functions
4683 * gtk/gtktext*.[hc]: update accordingly
4685 2000-12-13 Havoc Pennington <hp@pobox.com>
4687 * gtk/gtktextbtree.h: Put _ in front of every function in this
4690 * gtk/gtktext*.[hc]: update to reflect renamed btree functions
4692 2000-12-13 Alex Larsson <alexl@redhat.com>
4694 * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
4695 Add support for ps2 intellimouse.
4698 Move shift-F1 repaint handling to xlate handler only.
4700 * docs/README.linux-fb:
4702 Document the new refresh keys.
4704 Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
4706 * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
4708 * gtk/gtkbox.c: change property types from (u)long to (u)int for
4709 ::position and ::padding.
4711 * gtk/gtkcontainer.c: make ::border_width an INT property.
4713 * gtk/gtkpacker.c: make ::position an INT property.
4715 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
4716 guard against NULL h/v scrollbars, since this is used at construction
4719 * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
4720 internal gtk_clist_constructor().
4722 * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
4723 gtk_ctree_constructor().
4725 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
4726 ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
4728 * docs/reference/Makefile.am: fun stuff, disabled docs generation
4729 again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
4731 * gtk/gtkwidget.[hc]:
4732 removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
4733 and gtk_widget_get().
4734 (gtk_widget_new): use g_object_new_valist().
4735 (gtk_widget_set): use g_object_set_valist().
4737 * gtk/gtkobject.[hc]:
4738 removed gtk_object_arg_get_info(), gtk_object_getv(),
4739 gtk_object_query_args(), gtk_object_newv(),
4740 gtk_object_class_add_signals(),
4741 gtk_object_class_user_signal_new(),
4742 gtk_object_class_user_signal_newv(),
4743 gtk_object_arg_set(), gtk_object_arg_get(),
4744 gtk_object_args_collect(),
4745 gtk_object_default_construct(),
4746 gtk_object_constructed(),
4747 GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
4748 removed nsignals, signals and n_args members from GtkObjectClass.
4749 (gtk_object_new): use g_object_new_valist().
4750 (gtk_object_set): use g_object_set_valist().
4751 (gtk_object_get): use g_object_get_valist().
4753 * gtk/gtkcompat.h: define gtk_object_default_construct().
4755 * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
4758 * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
4759 fucntions, cleaned up method assignments (make sure your structures
4760 are setup properly before calling out). removed all GTK_CONSTRUCTED
4763 Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
4765 * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
4766 off-by-one error in checks. (Dave Lambert)
4768 2000-12-12 Alexander Larsson <alexl@redhat.com>
4770 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
4771 Don't free gdk_fb_keyboard twice.
4773 Tue Dec 12 08:24:42 2000 Tim Janik <timj@gtk.org>
4777 (create_statusbar): get rid of object_signal:: GtkObject argument uses,
4778 use GObject swapped_signal:: properties instead.
4780 * gtk/gtkcellrenderertoggle.c:
4781 * gtk/gtkcellrenderertextpixbuf.c:
4782 * gtk/gtkcellrenderertext.c:
4783 * gtk/gtkcellrendererpixbuf.c:
4784 * gtk/gtkcellrenderer.c:
4785 * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
4786 missing warnings for invalid property ids, install properties
4787 with g_object_class_install_property() now.
4790 (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
4792 Wed Oct 25 14:17:43 2000 Owen Taylor <otaylor@redhat.com>
4794 * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
4795 to determine if a window is the focus widget within
4798 * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
4801 * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling
4802 of the case where the container CAN_FOCUS to here instead
4803 of having it in each individual move-the-focus place.
4805 * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
4806 focusing to be geometric in a much more obvious sense. Arrowing
4807 around is still non-intuitive because it isn't perfect and
4808 because entries, etc, grab the arrow keys, but it at least
4809 usually will do what you expect now.
4811 * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
4814 * gtk/gtknotebook.c: Change tabs to be a single item in
4815 the focus chain. Make movement of focus on tabs with arrow
4818 * gtk/gtknotebook.c (gtk_notebook_find_child): Add
4819 CHECK_FIND_CHILD macro to give informative error messages
4820 instead of silent returns.
4822 * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT
4823 flag since we handle GdkReturn on the tabs.
4825 * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
4826 windows rather than sending expose events directly.
4828 * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure
4829 definition for GtkNotebookPage into .c file, since it is private.
4831 * gtk/testgtk.c (create_notebook): Add option for
4832 testing borderless notebook.
4834 * gtk/testgtk.c (page_switch): Removed egregious poking
4835 around in GTK+ internals.
4837 * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
4839 * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
4840 properly through gtk_clist_focus. Make the title headers a
4841 single item in the tab-focus chain, and make left-right wrap
4844 * gtk/gtkwindow.c (gtk_window_focus): Add a custom
4845 focus method so that wrapping around works properly.
4847 * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() -
4848 that is handled for the widget now.
4850 Mon Dec 11 11:41:12 2000 Owen Taylor <otaylor@redhat.com>
4852 * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
4853 widgets as TOPLEVEL.
4855 * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
4856 TOPLEVEL widgets are containers.
4858 * gtk/gtkinvisible.h: Remove useless include.
4860 2000-12-11 Havoc Pennington <hp@redhat.com>
4862 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
4863 Handle chopping off \r\n and 0x2029 in addition to \n before
4864 passing to PangoLayout
4866 * gtk/gtkimcontextsimple.c
4867 (gtk_im_context_simple_get_preedit_string):
4868 return an empty string if no match is pending
4870 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
4871 assertion that the returned preedit string was sane
4873 * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
4874 s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
4875 s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
4877 Mon Dec 11 10:02:26 2000 Owen Taylor <otaylor@redhat.com>
4879 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize):
4880 Fix up finalizer to chain to its parent.
4882 2000-12-11 Alexander Larsson <alexl@redhat.com>
4884 * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
4885 Clearified the difference between the keyboard types. Wrote a note
4886 about the magic sysrq key to get out of raw mode.
4888 2000-12-09 James Henstridge <james@daa.com.au>
4890 * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
4891 member to hold masks for detecting the start of a protocol packet.
4892 (mouse_devs): add packet start masks for ps2 and ms device types.
4893 Left the mask for fidmour blank, as I have no idea what it should
4895 (handle_mouse_io): skip bytes until we get to the start of a
4896 packet. My Logitech mouse seems to be passing an extra NULL pad
4897 byte, and GPM does a similar thing here.
4898 (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
4899 this is the ms mouse driver.
4900 (gdk_fb_mouse_ms_packet): fix up button handling, which was
4901 completely broken except for button1. It was checking the wrong
4902 bit in the packet for the status of the right mouse button, and
4903 wrongly assuming right == button2 rather than 3. I fixed that and
4904 also added support for middle button (button2).
4906 2000-12-08 Havoc Pennington <hp@redhat.com>
4908 * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
4909 that cause a segfault on text insertion
4911 * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix
4914 * gtk/gtktextiter.c (test_log_attrs): use
4915 _gtk_text_buffer_get_line_log_attrs to speed things up a bit
4917 * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs):
4918 Get log attrs for a line, using a cache stored on the buffer
4920 * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
4921 reported by Jeff Franks
4923 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
4925 * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
4926 /dev/ttyS0 -> /dev/mouse
4928 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
4930 * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
4931 Added dummy gdk_fontset_load.
4933 2000-12-08 Alexander Larsson <alexl@redhat.com>
4935 * docs/README.linux-fb:
4939 * gdk/linux-fb/Makefile.am:
4940 Define GDK_DATA_PREFIX.
4942 * gdk/linux-fb/gdkmain-fb.c:
4944 Change default display to /dev/fb0.
4946 * gdk/linux-fb/gdkpango-fb.c:
4947 Add $(prefix)/share/fonts/ to font path.
4949 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
4951 * gdk/linux-fb/gdkkeyboard-fb.c:
4952 New file containing the abstracted keyboard driver. Most code
4953 taken from gdkinput-ps2.c
4955 * gdk/linux-fb/gdkinput-ps2.c:
4958 * gdk/linux-fb/Makefile.am:
4959 Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
4961 * gdk/linux-fb/gdkcolor-fb.c:
4962 display->fb was renamed to display->fb_fd.
4964 * gdk/linux-fb/gdkcursor-fb.c:
4965 gdk_mouse_get_info -> gdk_fb_mouse_get_info
4967 * gdk/linux-fb/gdkinput.c:
4968 Moved gdk_input_init here from gdkinput-ps2.c
4970 * gdk/linux-fb/gdkmain-fb.c:
4971 display->fb was renamed to display->fb_fd.
4972 Now the tty and the console is opened here instead
4973 of in the keyboard driver. Also check GDK_VT to see what
4975 Move gdk_beep () here from gdkinput-ps2.c
4976 gdk_mouse_get_info -> gdk_fb_mouse_get_info
4978 * gdk/linux-fb/gdkmouse-fb.c:
4980 gdk_mouse_get_info -> gdk_fb_mouse_get_info
4981 Return correct keyboard modifiers.
4982 GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
4984 * gdk/linux-fb/gdkprivate-fb.h:
4985 Add tty and vt info to display.
4986 Add orignal modeinfo storage to display
4987 Update global functions
4989 * gdk/linux-fb/gdkwindow-fb.c:
4990 Added gdk_fb_window_find_focus().
4991 gdk_mouse_get_info -> gdk_fb_mouse_get_info
4993 2000-12-07 Havoc Pennington <hp@pobox.com>
4995 * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of
4996 function, noticed by Alex
4998 2000-12-06 Elliot Lee <sopwith@redhat.com>
5000 * configure.in: Detect freetype properly
5002 * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
5005 2000-12-06 Alexander Larsson <alexl@redhat.com>
5007 * gdk/linux-fb/Makefile.am:
5010 * gdk/linux-fb/gdkmouse-fb.c:
5011 New file. Abstracted the mouse drivers a bit.
5013 * gdk/linux-fb/gdkcursor-fb.c:
5014 The cursor hide/show functions was moved here from gdkinput-ps2.c.
5016 * gdk/linux-fb/gdkinput-ps2.c:
5017 Removed old mouse handling code. Moved cursor handling code
5018 to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
5019 gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
5022 * gdk/linux-fb/gdkmain-fb.c:
5023 Pass NULL pointers for x,y in gdk_mouse_get_info call.
5025 * gdk/linux-fb/gdkprivate-fb.h:
5026 Removed public gdk_fb_find_common_ancestor, added and renamed
5027 functions for the new mouse handling code.
5029 * gdk/linux-fb/gdkwindow-fb.c:
5030 Moved gdk_fb_window_send_crossing_events here. added global
5031 variable gdk_fb_window_containing_pointer. made
5032 gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
5033 renamed to gdk_mouse_get_info.
5035 2000-12-06 Alexander Larsson <alexl@redhat.com>
5037 * gdk/linux-fb/gdkevents-fb.c:
5038 Update to match latest gmain/gsource changes.
5040 * gdk/linux-fb/gdkinput-ps2.c:
5041 Bogus gdk_keymap_get_entries_for_keycode implementation so that
5042 it links. Will be implemented later.
5044 2000-12-03 Havoc Pennington <hp@pobox.com>
5046 * gdk/Makefile.am: add gdkkeys.[hc]
5048 * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
5049 files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
5051 * acconfig.h, configure.in: add checks and command line options
5054 * gdk/x11/gdkkeys-x11.c: Implement the above functions
5056 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
5057 and group in the key event
5059 * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
5060 field with the low-level hardware key code, and a group
5061 field with the keyboard group
5063 * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
5064 and declare a couple globals used for keymap handling
5066 * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
5067 hold down Shift-Control and type a hex number to get a Unicode
5068 character corresponding to the hex number
5069 (gtk_im_context_simple_get_preedit_string): Fix cursor position
5070 (return bytes not chars)
5072 2000-12-05 Elliot Lee <sopwith@redhat.com>
5074 * gdk/gdkcolor.h: Make GdkColor specify element sizes
5075 to avoid waste on 64-bit platforms.
5077 Tue Dec 5 15:49:31 2000 Owen Taylor <otaylor@redhat.com>
5079 * INSTALL: Fix link to PNG home, remove reference
5082 * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
5084 * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
5087 * gtk/gtkcheckmenuitem.c: Permanently turn on
5090 * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to
5091 be NULL. (Vladimir Klebanov, #26545)
5093 * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
5094 some signed/unsigned comparison problems. (#6510,
5097 * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
5098 return type to boolean (Oskar Liljeblad, #18648)
5100 2000-12-05 Alexander Larsson <alexl@redhat.com>
5102 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
5103 Remove bogus colormap setting.
5105 2000-12-05 Alexander Larsson <alexl@redhat.com>
5107 * gdk/linux-fb/gdkcolor-fb.c:
5108 More complete colormap handling. Now GdkRGB work in 8 bpp modes.
5110 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
5113 Tue Dec 5 13:17:53 GMT 2000 Tony Gale <gale@gtk.org>
5115 * docs/tutorial/gtk-tut.sgml: DND updates
5117 2000-12-05 Alexander Larsson <alla@lysator.liu.se>
5119 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
5120 Remove old debug g_warning().
5121 (gdk_fb_draw_drawable): The src argument can be either a wrapper
5122 or an implementation, just pass the implementation to draw_drawable_2.
5124 * gdk/linux-fb/gdkprivate-fb.h:
5125 Added GDK_IS_DRAWABLE_IMPL_FBDATA()
5127 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
5128 clear and invalidate area when window is destroyed.
5129 (send_map_events): Remove old commented out code.
5131 2000-12-05 Alexander Larsson <alexl@redhat.com>
5133 * gdk/linux-fb/gdkpango-fb.c:
5134 Use italic instead of oblique in font aliases.
5136 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
5137 _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
5138 other unsupported functions.
5140 2000-12-04 Havoc Pennington <hp@redhat.com>
5142 * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
5144 * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
5146 * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
5148 * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary
5149 hack to avoid infinite loops (synthetic expose event) -
5150 Owen has more appropriate fixes in a branch he'll check in later.
5152 * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
5153 separator, CR, and CRLF as line ends
5155 * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
5156 into lines using pango_find_paragraph_boundary(); other bits of
5157 the widget are still going to be broken if the boundary isn't '\n'
5160 2000-12-04 Alexander Larsson <alexl@redhat.com>
5162 * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
5165 * gdk/linux-fb/gdkpango-fb.c:
5166 Copied some 26.6 scaling macros from pango to clean up the rounding.
5167 (pango_fb_font_get_glyph_info): Correct sign on x value.
5169 * gdk/linux-fb/gdkprivate-fb.h:
5170 Removed unreferenced external functions.
5172 * modules/linux-fb/Makefile.am: Use ` instead of '.
5174 * modules/linux-fb/basic.c:
5175 Remove dead code. In particular the dummy lang engine which broke all
5176 pango layouts in GtkFB. Don't include tables-big.i anymore.
5178 * modules/linux-fb/tables-big.i:
5179 Upgrade to latest version from pango. Left for reference, basic_ranges
5182 2000-12-04 Havoc Pennington <hp@redhat.com>
5184 Fix bugs Alex found:
5186 * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
5189 * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
5191 * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
5193 * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw()
5194 implementation in here, apparently the expose() implementation was
5197 2000-12-04 Alexander Larsson <alexl@redhat.com>
5199 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
5200 Return positive descent.
5202 2000-12-02 Havoc Pennington <hp@pobox.com>
5204 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
5207 * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
5208 calls gdk_window_process_updates() to push the exposes through
5209 (gtk_widget_class_init): No more draw signal, no
5210 gtk_widget_real_draw()
5212 * gtk/gtkbin.c (gtk_bin_draw): remove
5214 * gtk/gtkbox.c (gtk_box_draw): remove
5216 * gtk/gtkbutton.c (gtk_button_draw): remove
5218 * gtk/gtkcalendar.c (gtk_calendar_draw): remove
5220 * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
5222 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
5224 * gtk/gtkclist.c (gtk_clist_draw): remove
5226 * gtk/gtkentry.c (gtk_entry_draw): remove
5228 * gtk/gtkeventbox.c (gtk_event_box_draw): remove
5230 * gtk/gtkfixed.c (gtk_fixed_draw): remove
5232 * gtk/gtkframe.c (gtk_frame_draw): remove
5234 * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
5236 * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
5238 * gtk/gtklayout.c (gtk_layout_draw): remove
5240 * gtk/gtklist.c (gtk_list_draw): remove
5242 * gtk/gtklistitem.c (gtk_list_item_draw): remove
5244 * gtk/gtkmenu.c (gtk_menu_draw): remove
5246 * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
5248 * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
5250 * gtk/gtknotebook.c (gtk_notebook_draw): remove
5252 * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
5254 * gtk/gtkpacker.c (gtk_packer_draw): remove
5256 * gtk/gtkrange.c (gtk_range_draw): remove
5258 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
5260 * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
5262 * gtk/gtktable.c (gtk_table_draw): remove
5264 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
5266 * gtk/gtktext.c (gtk_text_draw): remove
5268 * gtk/gtktextview.c (gtk_text_view_draw): remove
5270 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
5272 * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
5274 * gtk/gtktree.c (gtk_tree_draw): remove
5276 * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
5278 * gtk/gtktreeview.c (gtk_tree_view_draw): remove
5280 * gtk/gtkviewport.c (gtk_viewport_draw): remove
5282 * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
5284 * gtk/gtkvscale.c (gtk_vscale_draw): remove
5286 * gtk/gtkwindow.c (gtk_window_draw): remove
5288 2000-20-01 Anders Carlsson <andersca@gnu.org>
5290 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
5291 a GtkToggleButton is both insensitive and active, it was being
5292 drawn by the GtkButton draw handler which doesn't check the
5293 state. Now it's calling gtk_toggle_button_paint instead.
5295 2000-12-01 Havoc Pennington <hp@redhat.com>
5297 * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
5298 dangling pointers to the appearance attributes from the
5301 * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
5302 width/height to mean "full width/height of drawable"
5304 * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
5305 click to select word/line
5307 * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
5308 when getting log attrs. Get a slice, so that pixmaps and stuff
5309 are properly handled.
5311 * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
5312 paste into the selection (replaces selection now, previously
5313 crashed or added to selection). Reveals longstanding btree bug -
5314 select multiple lines, middle-click on the selection, boom. This
5315 isn't related to my changes though.
5317 * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
5318 PangoLogAttrs changes
5319 (gtk_entry_move_backward_word): ditto
5321 * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
5322 functions return bool whether the iter moved onto a
5323 dereferenceable position.
5325 * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
5326 functions for motion in terms of display lines.
5328 * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
5329 get the buffer a mark is inside
5331 2000-12-01 Alexander Larsson <alexl@redhat.com>
5333 * gdk/linux-fb/Makefile.am:
5334 * modules/linux-fb/Makefile.am:
5335 Freetype 2 final uses freetype-config
5337 * gdk/linux-fb/gdkpango-fb.c:
5338 Upgrade to use Freetype 2 final.
5339 More flexible support for font aliases, this also fixes a bug with
5340 GtkFontSelector, as the aliases must be visible in the font/family list,
5341 or GtkFontSelector reads uninitialized memory.
5343 2000-11-30 Hidetoshi Tajima <tajima@eng.sun.com>
5345 * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
5346 XGetIMValues to properly terminate variable argument list, and do
5347 NULL return check for ic_values and xim_styles.
5349 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
5350 Restore preedit state after XmbResetIC().
5352 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
5353 XvaCreateNestedList() should take XvaNestedList, but not
5356 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
5357 preedit_draw_callback, preedit_caret_callback): Match
5358 "preedit-changed" signal name to "preedit_changed" to be
5359 consistent to the spec.
5361 * gtk/gtkimcontextsimple.c (check_table):
5362 Match "preedit-changed" to "preedit_changed" to be consistent
5365 Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
5367 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
5368 gc->clip_region == NULL>
5370 2000-11-30 Tor Lillqvist <tml@iki.fi>
5372 Changes by Hans Breuer:
5374 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
5375 Dont't use negative width and height as max_hints. This fixes
5376 Owen's recent testgtk changes for win32.
5378 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
5379 gdk_win32_hdc_release): These are exported and may be called with
5380 other drawable types than our GdkDrawableImplWin32 (?).
5382 * gdk/gdkwindow.c: Backing store appears to work on Windows now,
5383 so always #define USE_BACKING_STORE.
5385 * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
5386 of printf for debugging output.
5388 * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
5390 * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
5392 * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
5395 * gtk/gtktexttypes.h: Ditto.
5397 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
5398 (GDK_VoidSymbol) also if in case of arg check failure.
5400 * gtk/gtkimcontextsimple.c
5401 (gtk_im_context_simple_get_preedit_string): Don't assign cursor
5402 position to the pointer, but to the variable it points to.
5404 * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
5406 * gtk/gtk.def: Updates.
5408 2000-11-29 Elliot Lee <sopwith@redhat.com>
5410 * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
5411 GTK_TYPE_TREE_MODEL.
5413 2000-11-29 Alexander Larsson <alexl@redhat.com>
5415 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
5416 Set the size of the font from the description.
5417 (gdk_text_width): Gross hack that calculates the width
5418 of text by text_length * size/2. This is necessary because
5419 GtkLabel does some ugly gtk_string_width call to calculate
5421 (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
5423 Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
5425 * docs/tutorial/gtk-tut.sgml: DND updates
5427 2000-11-29 Alexander Larsson <alexl@redhat.com>
5429 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
5430 If you pass width or height == 0 to gdk_window_clear_area they
5431 should be calculated from the window size.
5433 2000-11-29 Alexander Larsson <alexl@redhat.com>
5435 * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
5436 a grab, but no grab-cursor, use the cursor from the grabbed
5437 window. (gdk_fb_window_send_crossing_events): Send normal
5438 enter/leave notifications if grab and owner_events == TRUE.
5440 2000-11-29 Alexander Larsson <alexl@redhat.com>
5442 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
5443 Do implicit button grabs, even if the window doesn't
5445 (gdk_fb_window_send_crossing_events): If there is a
5446 grab, only the grabbed window gets normal enter/leave
5447 notifications. On ungrab go from grabbed window to current.
5448 Don't send any notification to b when propagating from c -> b.
5449 If setting a grab on window, don't set prev_window.
5450 (handle_mouse_input): Send enter/leave events to the window the
5451 mouse is over, not the grabbed one.
5453 2000-11-28 Elliot Lee <sopwith@redhat.com>
5455 * gdk/gdkregion-generic.c: Zap warning.
5456 * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
5457 * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
5459 2000-11-28 Alexander Larsson <alla@lysator.liu.se>
5461 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
5462 The cursor should be hidden if it is part of either the
5463 source or destination region. Not only if it is in both.
5464 (gdk_window_set_transient_for): Silence warnings.
5466 2000-11-28 Alexander Larsson <alexl@redhat.com>
5468 * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
5469 The default mode in X is Pie Arcs, therefore that is
5472 2000-11-28 Alexander Larsson <alexl@redhat.com>
5474 * gdk/linux-fb/gdkinput-ps2.c:
5475 Implement correct EnterNotify/LeaveNotify:
5476 (gdk_fb_window_send_crossing_events): New function that sends
5477 all GdkCrossingEvents from the last mouse-window to the specified
5479 (gdk_fb_window_visibility_crossing): Removed function.
5480 (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
5481 (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
5482 instead of gdk_window_get_pointer() for better readability.
5484 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
5485 gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
5487 * gdk/linux-fb/gdkprivate-fb.h:
5488 removed gdk_fb_window_visibility_crossing, added
5489 gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
5491 gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
5492 New function that finds the least common ancestor of two windows.
5493 (gdk_window_show, gdk_window_hide):
5494 Use gdk_fb_window_send_crossing_events.
5495 (gdk_fb_window_move_resize): Send configure events to toplevel
5496 windows. Use gdk_fb_window_send_crossing_events.
5498 2000-11-27 Havoc Pennington <hp@redhat.com>
5500 * gtk/gtkprivate.h (enum): Remove a trailing comma
5502 2000-11-27 Federico Mena Quintero <federico@helixcode.com>
5504 * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
5505 the "changed" callback of the adjustment. We need to redraw the
5506 spin button's arrows when the adjustment's range changes.
5507 (adjustment_changed_cb): Draw the arrows.
5508 (gtk_spin_button_value_changed): Draw the arrows.
5510 2000-11-23 Alexander Larsson <alexl@redhat.com>
5512 * gdk/linux-fb/gdkselection-fb.c:
5513 Initial selection implementation.
5515 * gtk/gtkselection.c:
5516 if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
5517 requestor in gtk_selection_request.
5519 * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
5520 Added gdk_selection_property atom.
5522 * gdk/linux-fb/gdkprivate-fb.h:
5523 Export _gdk_selection_window_destroyed.
5524 Removed mask_off_x/y from GdkCursorPrivateFB.
5525 Removed hbearing, added top, left to PangoFBGlyphInfo.
5527 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
5528 Call _gdk_selection_window_destroyed
5529 (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
5530 the root window has been created.
5531 (static_dx_hack, static_dy_hack, compare_draw_rects,
5532 gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
5533 in region. They are already sorted. Instead just traverse them in
5534 reverse if draw_direction < 0.
5536 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
5537 Double-clicks must be sent after the normal button_press.
5538 (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
5540 * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
5541 Pass _gdk_fb_screen_gc instead of NULL.
5543 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
5544 Initialize gdk_selection_property.
5545 (gdk_event_make): Remove unused code.
5547 * gdk/linux-fb/gdkcursor-fb.c:
5548 Make the pixmap for the cursor the same size as the mask. Also remove
5549 the mask_off_x/y fields in GdkCursorPrivateFB and combine
5550 _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
5551 Now the whole cursor is visible.
5553 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
5554 Fix bug where xdest+height instead of ydest+height was used
5555 to calculate if the source and dest overlapped. This fixes the
5556 redraw bug when the main window in testgtk was scrolled when
5557 partially covered by a tall window.
5558 Copy rectangles in region in order depending on draw_direction.
5559 Also moved the draw_direction flipping of start_y and end_y into
5560 the gc functions, as this might not be what all of them want.
5561 (gdk_fb_draw_lines): Support dashed lines.
5562 (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
5563 so that the text is positioned correctly (was 1 pixel high).
5565 gdk/linux-fb/gdkgc-fb.c:
5566 Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
5567 all lines were drawn a pixel to short. Also checked the default of
5568 the rest of the values, and they're the same as X now.
5570 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
5571 Clean up pixel positioning of the glyphs. Just use bgy->top and
5572 bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
5573 to all divisions to get correct rounding behaviour.
5575 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
5576 gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
5577 Moved start_y/end_y flip into draw_drawable implementations.
5578 Flip also x rendering when draw_direction < 0.
5579 Remove unneccesary multiply with draw_direction.
5581 Wed Nov 22 14:11:19 GMT 2000 Tony Gale <gale@gtk.org>
5583 * docs/tutorial/gtk-tut.sgml:
5584 - get rid of gtk_toggle_button_toggled FUD
5585 - start DND section - needs work - based on:
5586 http://wolfpack.twu.net/docs/gtkdnd/
5588 2000-11-22 Alexander Larsson <alexl@redhat.com>
5590 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
5591 Correct calculation of font metrics. Now GtkEntrys have sane
5594 2000-11-22 Alexander Larsson <alexl@redhat.com>
5597 Add new type GdkSpan
5599 * docs/reference/gdk/gdk-sections.txt,
5600 docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
5602 Implement and document gdk_region_spans_intersect_foreach.
5604 * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
5605 Add new file gdkrender-fb.c which contains all core
5607 Add gdk_fb_fill_rectangle_generic (old rectangle code) and
5608 gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
5609 (optimized rectangle fillers).
5611 * gdk/linux-fb/gdkdrawable-fb2.c:
5612 Move all rendering code to gdkrender-fb.c.
5613 Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
5614 Use the new span intersection functions in gdk_fb_fill_spans.
5615 gdk_fb_draw_rectangle() clips filled rectangles and calls
5616 gc->fill_rectangle with the result.
5617 gdk_fb_fill_spans() gets extra argument "sorted".
5619 * gdk/linux-fb/gdkevents-fb.c:
5620 Remove unused includes and defines.
5621 New function gdk_fb_get_time() to get correct time for events.
5623 * gdk/linux-fb/gdkinput-ps2.c:
5624 Use gdk method of generating multiple-clicks (gdk_event_button_generate)
5625 Make sure to set the time of all events.
5627 * gdk/linux-fb/gdkmain-fb.c:
5628 Use gdk_fb_get_time ().
5630 * gdk/linux-fb/gdkprivate-fb.h:
5631 New virtual GC calls: fill_span & fill_rectangle.
5632 Export gdk_fb_get_time().
5633 gdk_fb_fill_spans() gets extra argument "sorted".
5635 * gdk/linux-fb/mi*.c:
5636 Use GdkSpan instead of GdkRectangle.
5637 Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
5638 from XFree 4 source)
5640 2000-11-22 <jrb@redhat.com>
5642 * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
5643 reversing the order in an if statement will do. Doing so managed
5644 to make the treemodelsort half work. Other half will follow after
5645 I get the insert function fully fixed.
5647 2000-11-21 Elliot Lee <sopwith@redhat.com>
5648 * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
5649 more than 2 bits. Besides, I need to implement an evil hack. :)
5651 Tue Nov 21 14:17:51 GMT 2000 Tony Gale <gale@gtk.org>
5653 * docs/tutorial/gtk-tut.sgml: minor corrections
5655 2000-11-20 Jonathan Blandford <jrb@redhat.com>
5656 * gtk/gtktreemodelsort.h: Add convertion functions to let you
5657 convert to and from relative path's and iters.
5659 * gtk/treestoretest.c: move to having a sorted/unsorted view. Start
5660 testing sorting functions a bit better. Currently broken -- will
5663 2000-11-20 Havoc Pennington <hp@redhat.com>
5665 * gtk/gtkwidget.c: Documented a bunch of functions in here
5666 (gtk_widget_realize): Warn if you try to realize
5667 a widget with no parent that isn't a toplevel
5668 (gtk_widget_intersect): return a gboolean
5670 2000-11-20 Havoc Pennington <hp@redhat.com>
5672 * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
5673 gtk/testtext.c: Semi-finish widget embedding. Need guffaw
5674 scrolling to be implemented in GDK to finish. Also, right now
5675 we just size_allocate all children on every layout change,
5676 which is pretty lame. Test commented out of testtext.c,
5677 until it works better.
5679 2000-11-20 Alexander Larsson <alla@lysator.liu.se>
5681 * gdk/linux-fb/gdkdrawable-fb2.c:
5682 Removed unused arguments from gdk_fb_drawable_get_pixel().
5684 * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
5685 Renamed fidur specific mouse packet data in MouseDevice to
5686 generic. Used it in ps2 mouse handling code to avoid blocking
5689 Sat Nov 18 18:00:17 2000 Jonathan Blandford <jrb@redhat.com>
5691 * demos/gtk-demo/main.c: Changed to have the list become
5692 non-italic when the demo window is destroyed through an external
5693 event (like a close button). Doing so found three bugs in the
5696 * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
5698 * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
5699 we actually set the cell.
5701 * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
5703 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
5704 free a leaked path. Thanks memprof.
5706 Sat Nov 18 11:58:17 2000 Owen Taylor <otaylor@redhat.com>
5708 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix
5709 off-by-one error when destroying allocated segments
5710 on failure. (Elliot)
5712 Sat Nov 18 11:45:09 2000 Owen Taylor <otaylor@redhat.com>
5714 * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
5715 memleaks found by Evan Martin.
5717 Fri Nov 17 20:14:20 2000 Owen Taylor <otaylor@redhat.com>
5721 * NEWS: Updates for 1.3.2
5723 2000-11-17 Tor Lillqvist <tml@iki.fi>
5725 * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
5726 but in general for window system specific events.
5729 * gtk/makefile.mingw.in
5730 * gtk/makefile.msc.in: Update.
5732 * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
5734 Thu Nov 16 16:11:39 2000 Owen Taylor <otaylor@redhat.com>
5736 * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
5737 distribute gtk.immodules.
5739 * gtk/Makefile.am (install-data-local): Don't install the
5740 gtk.immodules file created for the uninstalled modules;
5741 instead run gtk-query-immodules after install
5743 Wed Nov 15 21:51:31 2000 Owen Taylor <otaylor@redhat.com>
5745 * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
5746 -rpath to the right install location.
5748 * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
5751 * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
5754 2000-11-15 Havoc Pennington <hp@pobox.com>
5756 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
5757 patch from Mikael Hermansson to temporarily stop blinking while
5758 the user is using the keyboard to type or navigate.
5760 Also, when blinking, stay on for longer than we stay off. Also,
5761 return from start_cursor_blink if !cursor_visible, to save
5762 checking that flag all over the place before we call
5765 Thu Nov 16 01:25:51 2000 Robert Brady <robert@suse.co.uk>
5767 * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
5768 only contain a "fontset" line, which is now ignored.
5770 * gtk/gtkentry.c (gtk_entry_button_release): Make
5771 double-click-to-select-word work.
5773 Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
5775 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
5776 Don't move back one char when we are actually at the end of the
5779 2000-11-15 Robert Brady <robert@suse.co.uk>
5781 * modules/input/iminuktitut.c (inuktitut_compose_seqs):
5784 * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
5785 bind_textdomain_codeset.
5787 (gtk_init_check): Make the warning about translating default:LTR
5790 Wed Nov 15 18:39:40 2000 Owen Taylor <otaylor@redhat.com>
5792 * **/Makefile.am : remove unecessary rules for win32-specific
5793 config-substituted targets. If you want these rules, use
5794 --enable-maintainer-mode (called automatically by autogen.sh).
5795 Stops a lot of unneccessary make-time warnings.
5797 * gtk/gtktext{layout,display}.c: Factor in total width as
5798 well as screen when figuring alignment for word-wrap as well as
5799 no wrap; this is necessary to handle lines that cannot be wrapped
5802 2000-11-15 Havoc Pennington <hp@redhat.com>
5804 * gtk/testtext.c: Implement essential color cycling feature
5806 2000-11-15 Havoc Pennington <hp@redhat.com>
5808 * gtk/gtktextview.c (changed_handler): Invalidate the side windows
5809 when we invalidate the main window.
5811 * gtk/testtext.c (create_view): Get rid of text_changed_callback,
5812 GtkTextView will now invalidate the side windows for us when text
5815 Wed Nov 15 16:02:20 2000 Owen Taylor <otaylor@redhat.com>
5817 * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
5818 unconditionally, since we may need to update the horizontal
5819 scrollbars even if the height didn't change.
5821 * gtk/gtktextlayout.c (add_preedit_attrs): Always get
5822 the extra attrs, since some of them affect size.
5824 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
5827 2000-11-15 Havoc Pennington <hp@redhat.com>
5829 * gtk/gtktextlayout.c (set_para_values): If indent is negative,
5830 don't move the first line out into the margin, instead move the
5831 whole paragraph in order to make space for the first line within
5834 2000-11-15 Havoc Pennington <hp@redhat.com>
5836 * gtk/gtktextview.c (changed_handler): offset redraw rect by
5837 xoffset in addition to yoffset, so horizontal scrolling doesn't
5840 2000-11-15 Havoc Pennington <hp@redhat.com>
5842 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
5844 (render_layout_line): fix reversed test that caused weird
5845 underlines to get drawn
5847 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
5849 * gdk/linux-fb/gdkprivate-fb.h:
5852 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
5854 * gdk/linux-fb/gdkprivate-fb.h:
5855 Added virtual functions set_pixel, get_color,
5856 fill_span and draw_drawable to the GC.
5857 Added global _gdk_fb_screen_gc to use instead of
5858 NULL when drawing to the screen.
5859 Added _gdk_fb_gc_calc_state() prototype.
5861 * gdk/linux-fb/gdkgc-fb.c:
5862 Call _gdk_fb_gc_calc_state() on any gc state change.
5864 * gdk/linux-fb/gdkglobals-fb.c:
5865 Add _gdk_fb_screen_gc
5867 * gdk/linux-fb/gdkdrawable-fb2.c:
5868 _gdk_fb_gc_calc_state() calculates best functions
5869 for the GC state and depth.
5870 Moved bpp specialized code to separate functions.
5871 Added optimized 24 bpp AA draw_drawable.
5873 * gdk/linux-fb/gdkevents-fb.c:
5874 Silence gcc warning.
5876 * gdk/linux-fb/gdkimage-fb.c:
5877 Use _gdk_fb_screen_gc
5879 * gdk/linux-fb/gdkwindow-fb.c:
5880 Init and use _gdk_fb_screen_gc
5882 * gdk/linux-fb/mitypes.h:
5883 Remove unused types.
5885 2000-11-14 Havoc Pennington <hp@pobox.com>
5887 * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
5890 2000-11-14 Havoc Pennington <hp@pobox.com>
5892 * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
5894 * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
5895 unknown char, no real reason we were using a variable.
5896 Remove gtk_text_unknown_char variable. Fix all the text widget
5899 * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC,
5900 since the Unicode spec seems to prefer that character for our
5903 Wed Nov 15 02:18:01 2000 Robert Brady <robert@suse.co.uk>
5905 * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return
5906 value of g_getenv() isn't freeable, so g_strdup it.
5908 * modules/input/inuktitut.c: Inuktitut input method.
5910 * modules/input/Makefile.am: Build this.
5912 2000-11-14 Elliot Lee <sopwith@redhat.com>
5914 * gtk/Makefile.am: Install gtk.immodules, needed for operation
5917 Tue Nov 14 20:13:06 2000 Owen Taylor <otaylor@redhat.com>
5919 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
5920 reversed > that was causing Home to go to end of previous line.
5922 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
5923 modified-keypresses (leave for bindings.)
5925 * modules/input/Makefile.am: Remove useless -export-dynamic
5926 from module LDFLAGS.
5928 2000-11-14 Havoc Pennington <hp@redhat.com>
5930 * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
5933 * gtk/gtktextdisplay.c (render_layout_line): Take rise into
5934 account. Also, render rise, underline, background, etc. for
5935 pixbufs as well as text. Also, draw underlines one pixel higher.
5937 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
5938 PangoAttribute for the rise, so it gets drawn properly. Also,
5939 add the GtkTextAppearance attribute for pixbuf/widget segments
5940 as well; we should go ahead and have rise, underline, background,
5941 stipple work for those
5943 * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
5946 2000-11-15 Tor Lillqvist <tml@iki.fi>
5948 * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
5950 * gtk/gtk.def: Update.
5952 * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
5954 (gtk_rc_get_im_module_file): Use run-time installation directory
5957 * gdk/win32/rc/gdk.rc: Remove.
5958 * gdk/win32/rc/gdk.rc.in: New file.
5959 * gdk/win32/rc/Makefile.am: New file
5960 * gdk/win32/Makefile.am: Corresponding changes.
5962 * gtk/gtk.rc: Remove.
5963 * gtk/gtk-win32.rc.in: New file.
5964 * gtk/Makefile.am: Corresponding changes.
5966 * configure.in: Corresponding changes.
5968 * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
5969 has a built gtkcompat.h. Developers using CVS code on Win32 can
5970 hand-edit it from gtkcompat.h.in.
5972 * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
5973 gtkcompat.h from gtkcompat.h.win32.
5975 2000-11-14 Havoc Pennington <hp@redhat.com>
5977 * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
5978 to default to GDK_ACTION_MOVE if the drag is within a single
5979 widget. Defaults to GDK_ACTION_COPY between widgets.
5981 Mon Nov 13 14:43:48 2000 Owen Taylor <otaylor@redhat.com>
5983 * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
5985 * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
5987 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
5990 * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
5992 * configure.in (GTK_VERSION): Up to 1.3.2
5994 * modules/input/Makefile.am (im_xim_la_SOURCES): Add
5997 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
5998 missing doc comment.
6000 2000-11-14 Alexander Larsson <alexl@redhat.com>
6002 * modules/linux-fb/basic.c:
6003 Use the glib iconv wrappers.
6005 2000-11-13 Havoc Pennington <hp@pobox.com>
6007 * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
6010 * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
6011 scroll the GdkWindows before realization.
6013 2000-11-13 Havoc Pennington <hp@redhat.com>
6015 * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
6016 where GC didn't always get updated properly
6018 * demos/gtk-demo/textview.c (create_tags): Use subattributes
6019 of fonts instead of setting the entire font
6021 * gtk/testtext.c (fill_example_buffer): Use "size" instead of
6024 * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
6026 * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
6027 a bunch of individually-settable font attributes. You can still
6028 use the "font" and "font_desc" args, they just set all the font
6031 2000-11-13 Elliot Lee <sopwith@redhat.com>
6033 * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
6035 Mon Nov 13 14:29:32 2000 Jonathan Blandford <jrb@redhat.com>
6037 * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
6038 * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
6040 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
6043 2000-11-13 Havoc Pennington <hp@redhat.com>
6045 * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of
6048 * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
6051 * gtk/testtext.c: Test pixels above/below/inside paragraphs
6054 * gtk/gtktextview.c: Implement object args and setters/getters for
6055 all the aspects of the GtkTextAttributes that are not set from
6056 GtkWidget attributes. This is spacing, justification, margins,
6059 (gtk_text_view_set_arg)
6060 (gtk_text_view_get_arg): implement get/set for editable, wrap mode
6062 (gtk_text_view_class_init): Add args for justify, left_margin,
6063 right_margin, indent, and tabs
6066 * gtk/gtktextlayout.c (set_para_values): fix to display indent
6069 * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute,
6070 replace with indent attribute
6072 * gtk/gtktextlayout.c (set_para_values): multiply indent by
6075 * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
6076 rearranging code to do that
6077 (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
6078 i.e. don't subtract the top_margin first, just to keep
6079 all margin-futzing in one place.
6081 * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
6083 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
6084 special case of last line, Pango now handles this itself.
6085 (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the
6087 (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
6088 (find_display_line_above): wasn't moving the byte index as it
6089 iterated over lines, so always returned byte 0. Also, port to use
6091 (find_display_line_below): same problem as
6092 find_display_line_above. Also, port to use PangoLayoutIter.
6094 2000-11-13 Alexander Larsson <alexl@redhat.com>
6096 * gdk/linux-fb/*.[ch]:
6097 Massive reindent to gtk+ standard. My hands hurt.
6099 * gdk/linux-fb/gdkcolor-fb.c:
6100 Move GdkColorPrivateFB from inherited to windowing_data
6102 * gdk/linux-fb/gdkcursor-fb.c:
6103 _gdk_cursor_new_from_pixmap made static
6105 * gdk/linux-fb/gdkdnd-fb.c:
6106 GdkDragContextPrivate moved to windowing_data
6108 * gdk/linux-fb/gdkdrawable-fb2.c:
6109 Removed endian.h, use glib endianness macros instead
6110 Some cleanups in the usage of GDK_DRAWABLE_FBDATA
6111 and GDK_DRAWABLE_IMPL_FBDATA
6113 * gdk/linux-fb/gdkfont-fb.c:
6114 Add empty gdk_font_load(). Needed for linking of Gtk+.
6116 * gdk/linux-fb/gdkimage-fb.c:
6117 Removed endian.h, use glib endianness macros instead
6118 Moved GdkImagePrivateFB to windowing_data
6119 gdk_image_new_bitmap didn't always allocate enough
6122 * gdk/linux-fb/gdkinput-ps2.c:
6123 Added semi-working support for MS serial mice.
6125 * gdk/linux-fb/gdkprivate-fb.h:
6126 s/GdkWindowPrivate/GdkWindowObject/
6127 Removed GdkWindowPrivate typedef
6128 s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
6129 Removed GDK_DRAWABLE_P
6130 Move GdkColorPrivateFB from inherited to windowing_data
6131 Moved GdkImagePrivateFB to windowing_data
6133 * gdk/linux-fb/gdkvisual-fb.c:
6134 Removed some unused debug code.
6136 * gdk/linux-fb/gdkwindow-fb.c:
6137 Use stock cursors instead of including X headers.
6138 s/GdkWindowPrivate/GdkWindowObject/
6140 * gdk/linux-fb/mitypes.h:
6141 Removed unused types.
6143 * modules/linux-fb/basic.c:
6144 Use the pango fribidi wrappers.
6146 2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
6148 * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
6149 gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
6150 gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
6151 gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
6152 GEqualFunc where applicable.
6154 * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
6155 pango_font_description_equal as changed in pango.
6157 * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
6159 * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
6161 * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
6163 * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
6165 * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
6167 * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
6169 * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
6170 gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
6172 * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
6173 gtk_rc_styles_compare -> gtk_rc_styles_equal.
6175 2000-11-12 Havoc Pennington <hp@pobox.com>
6177 * demos/gtk-demo/Makefile.am (democodedir): change demo install
6178 dir to datadir/gtk+-2.0/demo
6180 * demos/gtk-demo/textview.c: Text widget demo; reveals all
6181 sorts of text widget and Pango font bugs. Urgh.
6183 * demos/gtk-demo/Makefile.am (demos): Add textview.c
6185 * demos/gtk-demo/main.c (create_tree): Add instructions at top of
6186 tree that you should double click to see the demo. Fix
6187 types of variables to reflect changed return values from
6188 GtkTreeStore and GtkTreeViewColumn constructors.
6190 * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
6191 newly-created buffer to prepare for GObject semantics
6193 * gtk/testtext.c: don't leak the buffer with GObject semantics
6195 * gtk/testtextbuffer.c: ditto
6197 2000-11-12 Havoc Pennington <hp@pobox.com>
6199 Rename this testgtk to gtk-demo to avoid confusion, and
6200 install it so people can use it as a supplement to
6203 * demos/gtk-demo: Moved from demos/testgtk
6205 * demos/testgtk: Removed
6207 * configure.in: make Makefile in gtk-demo
6209 * demos/gtk-demo/Makefile.am: Install sample source to
6210 datadir/gtk-demo (maybe there's a better place?), and
6211 rename the binary to gtk-demo
6213 * demos/gtk-demo/main.c (load_file): Load installed sample
6214 source if source isn't found in pwd.
6216 2000-11-09 Havoc Pennington <hp@pobox.com>
6218 * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char"
6219 argument to set the char displayed when visibility == FALSE
6220 (gtk_entry_create_layout): If !entry->visible, replace
6221 all chars with the "invisible char"
6223 * gtk/testgtk.c: Test the invisible_char deal
6225 Mon Nov 13 02:16:33 2000 Robert Brady <robert@suse.co.uk>
6227 * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
6228 can't get a native font in the right encoding.
6230 Mon Nov 13 00:09:29 2000 Robert Brady <robert@suse.co.uk>
6232 * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
6235 Sun Nov 12 19:11:42 2000 Owen Taylor <otaylor@redhat.com>
6237 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
6238 Fix warning when moving between paragraphs.
6240 * gtk/gtkentry.[ch]: Change move => move_cursor,
6241 delete => delete_from_cursor, insert => insert_at_cursor
6243 Sun Nov 12 22:52:51 2000 Robert Brady <robert@suse.co.uk>
6245 * modules/input/imviqr.c: A vietnamese VIQR-based input method.
6247 * modules/input/imthai-broken.c: A Thai input method for use if
6248 Thai keys are really generating Latin1 keysyms.
6250 * modules/input/Makefile.am: Build these.
6252 Sun Nov 12 22:15:35 2000 Robert Brady <robert@suse.co.uk>
6254 * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
6255 g_filename_{to,from}_utf8 now takes an extra parameter.
6257 * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
6258 strftime into UTF-8.
6260 (column_from_x, gtk_calendar_paint_day_names): Support RTL
6263 (gtk_calendar_paint_day_names): Draw day names in the right
6266 Sun Nov 12 14:10:09 2000 Owen Taylor <otaylor@redhat.com>
6268 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
6269 problem with using result of g_get_charset() backwards -
6270 pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
6272 * gtk/gtkwindow.c (gtk_window_compute_hints): Support
6273 negative min_width/height and max_width/height to
6274 mean "requisition"; this allows setting a window
6275 to be user-resizable in only one direction easily.
6277 * gtk/testgtk.c (create_main_window): Remove hard-coded
6278 usize - set a default size in the vertical direction.
6280 Sun Nov 12 13:33:01 2000 Owen Taylor <otaylor@redhat.com>
6282 * gtk/gtkrange.c: Add some missing casts. Support
6283 2 and 3 button clicks on the arrows to mean
6284 "move by pages" and "jump to end". (Like gtkspinbutton)
6286 2000-11-12 Hans Breuer <Hans@Breuer.Org>
6288 * gdk/win32/makefile.msc : reflect build module changes
6290 * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
6291 from GdkPixmap*, cast implementation member instead.
6293 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
6294 passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src
6295 maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
6296 more Gdi functions return value checking.
6297 (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
6298 GdkImagePrivateWin32 *.
6300 * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
6301 menus useable again. Add #pragma message to keep reminded on this issue.
6302 (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
6303 windows. This allows to enable backing store on Win32!
6305 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
6306 in drawable is of impl type. Correct specific type checks appropriate.
6308 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check
6309 GDK_WINDOW_DESTROYED before allocating new resources.
6311 * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
6313 * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
6314 (gdk_window_foreign_new) initialize parent handle.
6315 (gdk_window_destroy_notify) add GDK_IS_WINDOW check
6317 * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
6318 Let the GDI invalidate the window on MoveWindow call to fix scrolling
6319 problems (e.g. main buttons in testgtk).
6321 Sat Nov 11 23:07:30 2000 Owen Taylor <otaylor@redhat.com>
6323 * gtk/gtkentry.c (gtk_entry_key_press): Call
6324 gtk_widget_activate for GDK_Return.
6326 * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
6327 of preedit cursor position.
6329 Sun Nov 5 04:24:53 2000 Owen Taylor <otaylor@redhat.com>
6331 * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
6334 Tue Sep 19 10:54:22 2000 Owen Taylor <otaylor@redhat.com>
6336 * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
6337 out support for multiple locales; that simple doesn't
6338 work reliably with current Xlib
6340 * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
6341 gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
6342 Add support for positioning the cursor within the preedit string.
6344 Mon Sep 18 23:56:32 2000 Owen Taylor <otaylor@redhat.com>
6346 * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
6347 at XIM input method module.
6349 * gtk/gtktextview.c: Check for bindings after passing
6350 events to im context filter.
6352 Mon Sep 18 11:50:51 2000 Owen Taylor <otaylor@redhat.com>
6354 * gtk/gtktextlayout.c (add_preedit_attrs): Handle
6355 empty attribute lists properly.
6357 Sun Sep 17 10:08:16 2000 Owen Taylor <otaylor@redhat.com>
6359 * gtk/queryimmodules.c (main): Return non-zero exit
6360 status if errors were encountered querying any
6363 * modules/input/Makefile.am (moduledir): remove
6364 leftover bin program target.
6366 * docs/make-todo: Fix typo in error message.
6368 Sat Sep 16 14:04:30 2000 Owen Taylor <otaylor@redhat.com>
6370 * configure.in: Add modules/input/Makefile
6372 Sat Sep 16 14:01:52 2000 Owen Taylor <otaylor@redhat.com>
6374 * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
6375 don't include gtkthemes.h.
6377 * gtk/testgtk.c gtk/testtext.c: Set environment variables
6380 * gtk/Makefile.am: Add new .c and .h files, build
6381 gtk-query-immodules and use it to create a gtk.immodules
6382 file for use of test programs.
6384 * gtk/gtkpreview.c: remove extra blank line.
6386 Sat Sep 16 13:21:04 2000 Owen Taylor <otaylor@redhat.com>
6388 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
6389 Add the ability to add extra tables beyond the default
6390 one, and also the ability to have compose sequences
6391 that are prefixes of other compose sequences.
6393 * gtk/gtkimcontextsimple.c: Export a preedit string which
6394 consists of possible candidates for keystrokes that have
6395 been entered but not yet committed.
6397 * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
6398 gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
6400 * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
6401 Add a function to add input-method switching menu items
6404 * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
6405 when switching input methods.
6407 * gtk/gtkimcontextsimple.[ch]: Change the format of
6408 the compose table to allow compose tables of different
6411 Sat Sep 16 13:05:48 2000 Owen Taylor <otaylor@redhat.com>
6413 * gtk/gtkimmodule.[ch]: Support routines for loading
6414 GtkIMContext implementations dynamically at runtime.
6416 * modules/input/imcyrillic-translit.c: A sample input
6417 method (based on GtkIMContextSimple with an extra table),
6418 which demonstrates preedit strings and the module
6419 system for input modules
6421 * gtk/queryimmodules.c: Program to query the available
6422 input modules and write the results into a file.
6424 * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
6425 extra config options "im_module_file" (cache file for
6426 input method modules), and "im_module_path" - path
6427 to look for modules when generating cache file.
6431 Sat Sep 16 13:09:06 2000 Owen Taylor <otaylor@redhat.com>
6433 * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
6434 generic code from gtkthemes into a new abstraction
6435 GtkModule which has the logic for implementing
6436 a loadable module which implements a number of
6439 Sat Sep 16 13:07:13 2000 Owen Taylor <otaylor@redhat.com>
6441 * gtk/gtkeditable.[ch]: Convert GtkEditable from
6442 a class into an interface
6444 * gtk/gtkoldeditable.[ch]: Move the old editable
6445 implementation into here, so legacy widgets can
6446 still rely on the implemenation. GtkOldEditable
6447 exports GtkEditable. Make selection handling
6448 code use new text conversion functions (and
6449 handle UTF-8 as a side-effect). Use GtkClipboard
6452 * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
6453 Adopt to match above changes.
6455 * gtk/gtkentry.[ch]: Implement GtkEditable directly,
6456 avoid GtkOldEditable implementation. Restructure
6457 to reduce number of places that modify state directly.
6458 Move to GtkBindingSet. Display the preedit string.
6459 Queue recomputation of PangoLayout and scroll position
6460 to improve effiency of doing complex changes naively.
6461 Add a menu with cut/copy/paste and input method selection.
6463 Thu Sep 14 22:11:05 2000 Owen Taylor <otaylor@redhat.com>
6465 * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
6466 to set preedit string and attributes; display preedit string by
6467 inserting string and attributes at cursor when creating the
6470 * gtk/gtktextlayout.c: Move all conversions between byte
6471 positions in PangoLayout and GtkTextIter into new functions
6472 line_display_iter_to_index/index_to_iter that properly
6473 handle the preedit string.
6475 * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
6476 it to return const char * (eventually will end up
6477 as GCONST char *, most likely.)
6479 * gtk/gtktextview.[ch]: Handle the preedit string, call
6480 gtk_im_context_reset() as necessary, add a menu to switch
6483 * gtk/gtktextlayout.[ch]: Remove useless
6484 gtk_text_layout_get_log_attrs() function.
6486 2000-11-11 Tor Lillqvist <tml@iki.fi>
6489 * gtk/gtk.def: Update.
6491 * gdk/win32/*.c: Add last argument to g_type_register_static()
6494 * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
6496 * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
6497 generated by older wheel mouse drivers. Get the correct y
6498 coordinate from WM_MOUSEWHEEL messages.
6500 * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
6501 gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
6502 gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
6503 Debugging functions.
6505 * gdk/win32/gdkprivate-win32.h: Declare them.
6507 * gdk/win32/gdkinput-win32.h: Add declaration for
6508 gdk_input_window_destroy().
6510 * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
6512 Fri Nov 10 19:06:41 2000 Jonathan Blandford <jrb@redhat.com>
6514 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
6515 function to help handle keeping things in sync.
6517 Fri Nov 10 12:10:34 2000 Jonathan Blandford <jrb@redhat.com>
6519 * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
6522 * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
6523 (gtk_list_store_class_init): use the new BOXED marshallers.
6525 * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
6526 new_with_values to new_with_types.
6527 (gtk_tree_store_get_column_type): add this.
6528 (gtk_tree_store_class_init): use the new BOXED marshallers.
6530 * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
6531 mirror some POINTER marshallers.
6533 Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com>
6535 * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
6536 allow more interesting iterators. Also, made the lifecycle of
6537 iterators more explicit.
6539 * gtk/gtktreemodelsort.[ch]: New model for sorting.
6541 * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
6544 2000-11-09 Alexander Larsson <alexl@redhat.com>
6546 * demos/testgtk/menus.c:
6547 Changes to make the new testgtk compile after
6548 gtk_menu_append was removed.
6550 * gdk/linux-fb/gdkdrawable-fb2.c
6551 (gdk_fb_get_depth, gdk_fb_get_visual,
6552 gdk_drawable_impl_fb_class_init): Implement
6553 these drawable functions. Now GtkImages work again.
6555 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
6557 * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
6559 * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
6560 gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
6561 Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
6562 GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
6564 2000-11-08 Havoc Pennington <hp@pobox.com>
6566 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
6567 visible_set args, don't know where these had gone, I thought they
6570 * gtk/testtext.c: Add a menu item to apply invisibility tag;
6571 now we can test the feature and see that it's totally broken.
6573 2000-11-08 Havoc Pennington <hp@pobox.com>
6575 Make DND copy pixbufs and tags when source and target share a
6578 * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
6579 in-process GTK_TEXT_BUFFER_CONTENTS target
6580 (gtk_text_view_drag_data_received): Paste from
6581 GTK_TEXT_BUFFER_CONTENTS if we receive it.
6583 2000-11-08 Alexander Larsson <alexl@redhat.com>
6585 * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
6588 * gtk/gtkmenu.c: Add support for scrolling menus.
6589 Remove gtk_menu_append/prepend/insert, these have been moved to
6590 gtkcompat.h as #defines.
6592 * gtk/gtkcompat.h.in:
6593 Add compatibility #defines for gtk_menu_append/prepend/insert
6595 * gtk/gtkmenu.h: Add data needed for scrolling menus.
6596 GtkMenuPositionFunc gets an extra argument push_in.
6597 gtk_menu_append/prepend/insert removed.
6599 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
6600 positioning behaviour to fit to scrolling menus.
6602 * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
6603 into menuitem->submeny. That is wrong, and broke torn
6604 off submenus of torn off menus, since they were unrealized
6605 when the first menu was unrealized.
6607 * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
6608 gtk_menu_shell_select_item() since these need to be overridden in
6611 * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
6612 positioning behaviour to fit to scrolling menus.
6613 (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
6614 the current item so that it is prelighted when the menu pops up.
6615 This is a workaround to the fact that the menu doesn't get the
6616 initial enter event (due to grabs).
6618 * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
6619 s/gtk_menu_append/gtk_menu_shell_append/
6621 * gtk/gtknotebook.c:
6622 s/gtk_menu_insert/gtk_menu_shell_insert/
6624 * gtk/testgtk.c (create_menu, create_menus):
6625 Create the first menu with 50 items so that menu scrolling
6629 Patch from Jonathan Blandford <jrb@redhat.com>
6631 * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
6632 system to handle size requests. First, we ask what the size of
6633 the toggle is. Then, when allocating the size, we allocate the
6634 toggle_size first. This way we can have multiple menu-item
6635 classes w/o needing a seperate class for each.
6637 * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
6638 * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
6640 * gtk/gtkcheckmenuitem.c
6641 (gtk_check_menu_item_toggle_size_request): New function to handle
6642 the toggle size-request.
6644 2000-11-07 Havoc Pennington <hp@redhat.com>
6646 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
6647 Half-ass somewhat fix this function, so that scrolling to the
6648 insertion point works. Pango hacking is in the future to really
6651 * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
6652 length of data, no longer used.
6654 * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
6655 method contents in here, get rid of destroy method
6656 (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
6657 that were backward. Remove debug spew.
6658 (cut_or_copy): Make the clipboard work with insert_range to
6659 preserve tags and pixbufs, not just the primary selection.
6661 2000-11-07 Havoc Pennington <hp@redhat.com>
6663 * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename
6664 to gtk_text_mark_get_visible
6666 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
6667 bug that was generating an invalid iterator
6669 * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
6670 ensure_char_offsets() in front of code placing the iter in an
6673 * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
6674 make override_location arg const
6675 (paste): Replace the selection if we paste into the
6678 * gtk/gtkselection.h: Remove "GtkSelectioData"
6679 (struct _GtkSelectionData): move the definition here.
6681 * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
6682 Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
6684 * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
6686 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
6687 (gtk_text_buffer_insert_range_interactive): implement
6688 (gtk_text_buffer_get_tags): Remove, replaced by
6689 gtk_text_iter_get_tags()
6691 * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
6692 limit parameter, to avoid infinite linear scan.
6693 (gtk_text_iter_backward_search): Add search limit
6694 (gtk_text_iter_forward_find_char): Add search limit
6695 (gtk_text_iter_backward_find_char): Add search limit
6697 2000-11-07 Alexander Larsson <alla@lysator.liu.se>
6699 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
6700 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
6701 gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
6702 gdk/linux-fb/gdkwindow-fb.c:
6703 use g_object_new() instead of g_type_create_instance() which
6704 is a private function for fundamental type implementations.
6706 * gdk/linux-fb/gdkinput-ps2.c:
6707 Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
6708 instead just store the current modifier state. Add a (somewhat broken)
6709 keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
6710 Rename exported function gdk_input_ps2_get_mouseinfo to
6711 gdk_input_get_mouseinfo.
6713 * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
6714 gdk/linux-fb/gdkwindow-fb.c:
6715 gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
6718 2000-11-02 Havoc Pennington <hp@redhat.com>
6720 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
6721 use stock buttons. Should be 100% source compatible, appropriate
6722 filesel fields now point to dialog->vbox and dialog->action_area.
6723 On the bizarre side, dialog->action_area and filesel->action_area
6724 are not the same widget.
6725 (gtk_file_selection_init): Put some padding around the selection
6726 entry, so it isn't touching the GtkDialog separator.
6728 * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
6729 use stock buttons, etc. Should also be source compatible.
6730 Set the dialog default title in _init not _new().
6732 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
6733 Use stock buttons; don't put a button box inside the existing
6734 dialog button box. Don't bother with push/pop colormap anymore.
6736 * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
6737 specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
6738 for message dialog, and necessary for the font selection and color
6739 selection with help and apply buttons.
6741 * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
6742 to the created button widget. Set GTK_CAN_DEFAULT on the button.
6743 (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
6744 between buttons, put less padding around the action area.
6745 (gtk_dialog_run): Exit on unmap rather than on destroy.
6746 This will also exit the loop if the widget is hidden.
6747 (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
6748 instead of GTK_RESPONSE_NONE; since we're already adding a bunch
6749 of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
6750 special-case delete event.
6752 * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
6755 Sun Nov 5 05:32:39 2000 Tim Janik <timj@gtk.org>
6757 * gtk/testgtk.c (uposition_stop_configure): provide a toggle
6758 button to temporarily disable position recording in the
6759 "saved position" test.
6761 Sat Nov 4 05:37:17 2000 Tim Janik <timj@gtk.org>
6763 * gtk/gtkthemes.c: added compat code that temporarily implements
6764 GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
6765 going to be revamped by owen's upcoming GtkModule patches, but
6766 untill then people want gtk to build, right? ;)
6768 2000-11-04 Havoc Pennington <hp@pobox.com>
6770 * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
6773 * docs/Changes-2.0.txt: Add note about
6774 gtk_container_get_toplevels()
6776 * gtk/gtktextview.h: formatting
6778 * gtk/gtktextview.c: don't start descriptions with "Returns",
6781 Sat Nov 4 10:12:27 2000 Owen Taylor <otaylor@redhat.com>
6783 * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
6784 look for glib-2.0.m4 not glib.m4. (Ali Abdin)
6786 2000-11-03 Havoc Pennington <hp@redhat.com>
6788 * gtk/gtktexttagtable.c: Docs
6789 (gtk_text_tag_table_size): return a signed int
6791 * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
6792 (gtk_text_tag_event): make the event_object a GObject
6794 * gtk/gtktextview.c: Write API docs for all functions.
6796 * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
6797 for gtk_text_view_get_window_type() called on one of the private
6800 * gtk/gtktextview.c: Instead of accessing text_view->buffer
6801 directly, call get_buffer() which demand-creates a default
6802 buffer. So gtk_text_view_new() can be used to create a view with a
6803 default buffer in it, if you just want an empty text box users can
6804 put data in. Useful for GUI builders also.
6806 2000-11-03 Pablo Saratxaga <pablo@mandrakesoft.com>
6808 * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
6809 the charset encodign portion MUST be in lowercase.
6810 * gtk/gtkrc.az: added file for Azeri language
6812 2000-11-03 Havoc Pennington <hp@redhat.com>
6814 Get widgets working on the btree/buffer side. Display of them
6817 * gtk/gtktextview.c: start implementing child widget stuff
6819 * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
6821 * gtk/gtktextlayout.c: handle embedded widgets
6823 * gtk/gtktextdisplay.c: handle embedded widgets
6825 * gtk/gtktextchild.c: Implement all the child anchor goo
6827 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
6830 * gtk/gtktextbtree.c: Add child anchor table to the btree struct
6831 (insert_pixbuf_or_widget_segment): abstract out common portions of
6832 creating a child anchor or a pixbuf segment.
6833 (gtk_text_btree_create_child_anchor): new function
6834 (gtk_text_btree_unregister_child_anchor): new function
6836 * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
6837 allocate_child signal on GtkTextLayout
6839 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
6841 (gtk_text_iter_get_child_anchor): new function
6843 * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
6844 default handler for the changed signal, which calls
6845 gtk_text_buffer_set_modified(), instead of just always emitting
6846 changed then calling set_modified() manually. I guess this is
6847 maybe more flexible. It seems logical.
6849 Fri Nov 3 08:58:38 2000 Tim Janik <timj@gtk.org>
6851 * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
6854 * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
6856 Thu Nov 2 14:10:51 2000 Owen Taylor <otaylor@redhat.com>
6858 * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
6861 2000-11-02 Havoc Pennington <hp@redhat.com>
6863 * gtk/testgtk.c (create_labels): had a test backward
6865 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
6866 fields, so the dest GC ends up with the correct clip origin,
6867 etc. Fixes a bug where colored labels didn't redraw
6870 2000-11-02 Alexander Larsson <alexl@redhat.com>
6872 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
6873 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
6874 gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
6875 Add last argument to t_type_register_static call.
6877 * gdk/linux-fb/gdkdrawable-fb2.c:
6878 Add last argument to t_type_register_static call.
6879 export the get_image drawable virtual function.
6881 * gdk/linux-fb/gdkimage-fb.c:
6882 Add last argument to t_type_register_static call.
6883 rename gtk_image_get to _gdk_fb_get_image and
6884 export it for use by gdkdrawable-fb2.
6886 * gdk/linux-fb/gdkprivate-fb.h:
6887 export _gdk_fb_get_image.
6889 * gdk/linux-fb/gdkselection-fb.c:
6890 Add new api call stubs.
6893 Missing ( in linux-fb part.
6895 * modules/linux-fb/Makefile.am:
6896 Must link with gdk_pixbuf or get unresolved symbol.
6898 2000-11-01 Havoc Pennington <hp@pobox.com>
6900 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use
6901 GTK_TYPE_TEXT_ITER and BOXED marshallers
6903 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
6905 * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
6907 * gtk/gtk-boxed.defs: add GtkTextIter
6909 * gtk/gtkmarshal.list: Add marshallers for text widget that
6910 properly use OBJECT and BOXED
6912 2000-11-01 Havoc Pennington <hp@redhat.com>
6914 * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
6916 * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
6917 before returning it.
6919 2000-11-01 Havoc Pennington <hp@redhat.com>
6921 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
6922 Clip the rectangle to be rendered to the drawable, since
6923 get_from_drawable() requires a region within the drawable
6925 2000-11-01 Havoc Pennington <hp@redhat.com>
6927 * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
6930 Wed Oct 25 20:10:57 2000 Owen Taylor <otaylor@redhat.com>
6932 * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
6935 2000-11-01 Havoc Pennington <hp@pobox.com>
6937 * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
6939 (gtk_label_finalize): unref the attr list if any.
6941 * gtk/testgtk.c (create_get_image): close test on second click
6942 (make_message_dialog): close dialog if it exists
6944 * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
6946 * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
6949 * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
6950 from Pango markup format
6951 (gtk_label_set_markup_with_accel): ditto but with accelerator
6954 * gtk/gtkimage.c (gtk_image_expose): reformatting.
6956 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
6957 reflect current state of GDK - use gdk_drawable_get_colormap, etc.
6958 Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to
6959 call gdk_window_get_origin().
6961 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
6962 implement GDK_PIXBUF_ALPHA_FULL
6964 Wed Nov 1 03:43:42 2000 Tim Janik <timj@gtk.org>
6966 * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
6967 g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
6968 g_signal_handlers_disconnect_matched to block/unblock and disconnect
6969 multiple handlers respectively, instead of only treating the
6970 first handler found (bug reported by owen).
6972 Mon Oct 30 19:23:50 2000 Jonathan Blandford <jrb@redhat.com>
6974 * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
6976 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
6978 * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
6979 gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
6980 gtk/gtktreeviewcolumn.h: Fixed inline docs.
6982 * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
6983 widget. Needs writing someday.
6985 * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
6988 2000-10-30 Havoc Pennington <hp@redhat.com>
6990 * gtk/gtktextview.h, gtk/gtktextview.c:
6991 Rename delete_at_cursor delete_from_cursor, and
6992 move to move_cursor.
6994 2000-10-30 Havoc Pennington <hp@redhat.com>
6996 * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
6997 gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
6998 gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
6999 gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
7000 gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
7001 gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
7002 gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
7003 gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
7004 gtktexttypes.h, gtktextview.c, gtktextview.h:
7006 Massive reindentation and reformatting. Arg alignment and comments
7007 still need fixing in various places.
7009 2000-10-30 Havoc Pennington <hp@redhat.com>
7011 * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
7012 to be named insert_at_cursor and delete_at_cursor so C++ can
7015 2000-10-28 Tor Lillqvist <tml@iki.fi>
7017 * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
7018 to get a double directory separator in case the home directory
7019 ends with one. This would cause trouble especially on Windows,
7020 where the path will be confused with the syntax for an an UNC
7021 (network share) path \\server\share\path.
7022 (gtk_rc_add_initial_default_files): Ditto.
7024 Sat Oct 28 02:33:09 2000 Robert Brady <robert@suse.co.uk>
7026 * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
7028 * gtk/gtktextview.c: Use correct marshallers.
7030 Fri Oct 27 17:56:26 2000 Jonathan Blandford <jrb@redhat.com>
7032 * gtk/gtkliststore.c: Not sure how this ever worked. Fixed it to
7033 use new iter stuff, and added all the appropriate signals et al.
7035 * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
7036 code is internal to gtk only.
7038 2000-10-28 Tor Lillqvist <tml@iki.fi>
7041 * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
7042 glib-genmarshal etc.
7044 Fri Oct 27 20:15:00 2000 Tim Janik <timj@gtk.org>
7046 * gtk/Makefile.am: added dependancies for testtextbuffer which broke
7049 Fri Oct 27 18:51:44 2000 Tim Janik <timj@gtk.org>
7051 * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
7053 2000-10-27 Robert Brady <robert@suse.co.uk>
7055 * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic),
7056 en_GB (British), ia (Interlingua).
7058 2000-10-26 Havoc Pennington <hp@redhat.com>
7060 * gtk/gtktextiter.c (my_strrstr): fix constness warning
7063 nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
7065 * gtk/gtktextsegment.c (char_segment_new): rename
7066 (_char_segment_new_from_two_strings): rename
7067 (_toggle_segment_new): rename
7069 * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
7070 (make_clipboard_widget): make it static
7071 (text_get_func): static
7072 (text_clear_func): static
7074 * gtk/gtkcolorsel.c (adjustment_changed): make this function
7076 (hex_changed): make it static
7077 (hsv_changed): make it static
7078 (opacity_entry_changed): make it static
7080 * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
7081 (toggle_segment_check_func): rename with _gtk
7083 * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
7084 (_widget_segment_new): rename
7085 (_widget_segment_add): rename
7086 (_widget_segment_remove): rename
7087 (_widget_segment_ref): rename
7088 (_widget_segment_unref): rename
7090 * gtk/gtktextmark.c (_mark_segment_new): Rename
7091 _gtk_mark_segment_new
7093 2000-10-26 Havoc Pennington <hp@redhat.com>
7095 * gtk/gtkmarshal.list: add new marshallers used by the text widget
7096 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
7099 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
7102 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
7103 gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
7104 license on these files.
7106 * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
7109 * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to
7110 runtime random number different for each tree, instead of
7111 a constant I made up.
7113 Thu Oct 26 07:36:16 2000 Tim Janik <timj@gtk.org>
7115 * gtk/Makefile.am: buncha cleanups, kludged build sources
7116 dependencies with a Makefile: oldest-source-stamp dependancy
7117 for the moment. automake is really fighting us here, with
7118 intentionally not allowing user-defined rules or dependancies
7119 prior to it's -include $(DEP_FILES) statement. sucks rocks!
7121 * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
7122 to public headers. tehy have a comment stating that they are
7123 "semi-public" aren't included by gtk.h and if enums popup there,
7124 they can be /*< skip >*/-ed.
7126 * gtk/gtktextlayout.h:
7127 * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
7128 added LGPL... <SIGH>
7130 Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com>
7132 * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
7133 GtkTreeIter. Added iterators everywhere.
7135 * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
7137 * gtk/gtktreeviewselection.c: Changed to use the iterators.
7139 * gtk/gtktreestore.c: Changed to use the iterators.
7141 * gtk/gtkliststore.c: Commented out the code. Will convert to
7144 * gtk/gtkmodelsimple.c: Commented out the code. Will convert to
7147 * gtk/treestoretest.c: Changed to use iterators.
7149 * demos/testgtk/main.c: Moved to use the new iterator system.
7151 Thu Oct 26 02:10:32 2000 Tim Janik <timj@gtk.org>
7153 * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
7154 localization misbehaviour.
7156 * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
7157 a useless type without copy/free.
7159 * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
7160 of GTK_TYPE_CTREE_NODE.
7162 Thu Oct 26 00:51:52 2000 Tim Janik <timj@gtk.org>
7165 (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
7168 * gtk/gtk-boxed.defs (GtkSelectionData): specify
7169 gtk_selection_data_copy and gtk_selection_data_free
7170 do GtkSelectionData work as params in signals.
7172 Wed Oct 25 20:47:41 2000 Tim Janik <timj@gtk.org>
7174 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
7175 implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
7176 couldn't they at least give it a non-standard name?
7178 * gtk/gtktextlayout.c: arg! yet another implementation of
7179 gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
7181 * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
7182 gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
7183 home. now i know this _is_ a conspiracy.
7185 * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
7188 * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
7189 (gtk_accel_group_create_add): marshaller signature fixups.
7191 * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
7192 pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
7194 * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
7197 Tue Oct 24 23:59:21 2000 Tim Janik <timj@gtk.org>
7199 * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
7200 due to the signal system changes, it wouldn't build currently. to
7203 * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
7205 * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
7206 so it needs gtk_marshal_VOID__ENUM() instead of
7207 gtk_marshal_NONE__UINT().
7209 * gdk/gdk*.c: adapted type registration functions.
7211 * gtk/gtkbindings.c:
7212 * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
7215 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
7218 (gtk_object_destroy):
7219 (gtk_object_shutdown): fixed recursion guards. basically we have to
7220 catch the case where any of GObject.shutdown() or gtk_object_destroy()
7221 is called during ::destroy, and avoid recursion there.
7223 * gtk/gtktypeutils.c:
7224 * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
7225 boxed_copy/boxed_free. this needs a more general solution based on a
7226 publically installed code-generator utility.
7228 * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
7229 glib's gobject has support for that now.
7230 define GtkSignalMarshaller in terms of GSignalCMarshaller.
7232 Mon Oct 23 09:36:42 2000 Tim Janik <timj@gtk.org>
7234 * gtk/gtksignal.[hc]:
7235 * gtk/gtkmarshal.[hc]:
7236 * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
7237 compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
7238 removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
7241 * *.c: marshaller name fixups.
7243 * gtk/gtkmarshal.list: added a comment briefing the format.
7245 Sun Oct 22 23:14:39 2000 Tim Janik <timj@gtk.org>
7247 * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
7248 compatibility macros here now. more specifically, most of
7249 the API is preserved (yes, _most_, nonwithstanding the
7250 following exceptions listed, the API is stil lHUGE ;)
7251 things that got removed completely:
7252 GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
7253 gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
7254 gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
7255 gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
7256 gtk_signal_remove_emission_hook().
7257 non-functional functions variants:
7258 gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
7259 the GtkCallbackMarshal argument to gtk_signal_connect_full() is
7260 not supported anymore.
7261 (gtk_signal_compat_matched): new internal function to aid
7262 implementation of the compatibility macros, it provides
7263 functionality to block/unblock/disconnect handlers based
7266 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
7268 * *.c: adaptions to new type registration API signatures.
7270 Fri Oct 20 15:26:33 2000 Tim Janik <timj@gtk.org>
7272 * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
7274 2000-10-25 Robert Brady <robert@suse.co.uk>
7276 * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
7277 gdk_property_delete): If window == NULL, assume the root window.
7278 (restoring the behaviour that was in 1.2).
7280 * gtk/testtext.c (save_buffer): Allow creation of new files when
7283 (fill_file_buffer): Don't die if a UTF-8 sequence is split across
7286 2000-10-25 Tor Lillqvist <tml@iki.fi>
7288 * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
7290 * gdk/win32/gdkdrawable-win32.c
7291 * gdk/win32/gdkimage-win32.c
7292 * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
7295 * gdk/win32/gdkcc-win32.c
7296 * gdk/win32/gdkcolor-win32.c
7297 * gdk/win32/gdkfont-win32.c
7298 * gdk/win32/gdkinput-win32.c
7299 * gdk/win32/gdkmain-win32.c
7300 * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
7302 2000-10-24 Havoc Pennington <hp@redhat.com>
7304 * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
7305 it a static function
7307 * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
7308 redraw text when a tag is applied to it.
7310 * gtk/gtktexttag.c (gtk_text_tag_affects_size)
7311 (gtk_text_tag_affects_nonsize_appearance): private functions to
7312 see if a tag requires various kinds of redraw/layout to be queued
7315 * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
7317 * gtk/testtext.c (fill_example_buffer): Put the cursor
7318 at the start of the buffer, so search works by default
7320 * gtk/gtktextiter.c (lines_match): init match_start always
7322 * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
7323 function, get iter at a line + a byte index
7325 * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
7326 to set byte position within a line
7327 (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
7329 2000-10-23 Havoc Pennington <hp@redhat.com>
7331 * gtk/testtext.c: Re-enable the "find" dialog
7333 * gtk/testgtk.c: Add test for gdk_drawable_get_image
7335 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
7336 the arguments to gdk_draw_drawable were in the wrong order
7337 (gdk_window_paint_init_bg): This function was ignoring the
7338 init_region, instead of clipping to it, so the entire backing
7339 pixmap was cleared on every begin_paint()
7340 (gdk_window_begin_paint_region): Hmm, the same list-walking bug
7341 was in here again, the loop kept using the same GtkWindowPaint
7343 (gdk_window_begin_paint_region): Fix a bug where we had two
7344 x_offset instead of x_offset and y_offset
7346 * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
7347 before we get the image.
7348 (gdk_draw_drawable): get the composite before we draw the drawable.
7349 (gdk_drawable_real_get_composite_drawable): default
7350 get_composite_drawable implementation that returns the drawable
7353 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
7354 get_composite_drawable virtual function
7356 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
7359 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
7360 make this work if the source drawable is a GdkDrawableImplX11
7361 instead of a public drawable type. This is really broken; the
7362 problem is that GdkDrawable needs a virtual method get_xid(), but
7363 of course that doesn't work in practice. Enter RTTI.
7365 Also, improve mismatched depth message.
7367 * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
7370 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
7371 install _gdk_x11_get_image as our implementation of get_image
7373 * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
7374 _gdk_x11_get_image and export for use in gdkdrawable-x11.c
7376 * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
7377 gdk_drawable_get_image
7379 * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
7381 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
7384 * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
7385 trailing semicolon after for loop
7387 Mon Oct 23 12:07:57 2000 Owen Taylor <otaylor@redhat.com>
7389 * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
7390 where font_desc for widget's context lagged widget's font_desc by
7393 2000-10-22 Tor Lillqvist <tml@iki.fi>
7395 * gdk/win32/gdkgc-win32.c
7396 * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
7398 * gtk/makefile.mingw.in
7399 * gtk/gtk.def: Updates.
7401 * gtk/testgtk.c: sleep() is called _sleep in MS's C
7404 * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
7406 * gtk/makefile.msc: Remove
7408 * gtk/makefile.msc.in: New file, like makefile.mingw.in.
7410 * gtk/Makefile.am: Add it.
7412 * configure.in: Generate it.
7414 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
7415 * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
7416 something even if not implemented, to satisfy picky MSVC.
7418 Patches by Hans Breuer:
7420 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
7421 SetBkMode() and SetTextAlign() before calling
7422 pango_win32_render().
7424 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
7425 Set hcliprgn to NULL after destroying it.
7426 (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
7428 * gdk/win32/gdkgeometry-win32.c
7429 (_gdk_windowing_window_queue_antiexpose): More effective
7432 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
7433 depth as default, not the visual's.
7435 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
7436 against empty title.
7438 * gdk/win32/gdkprivate-win32.h: Define a helper macro,
7441 * gdk/win32/gdkimage-win32.c: Use it.
7443 2000-10-22 Robert Brady <robert@suse.co.uk>
7445 * configure.in: Check for bind_textdomain_codeset
7447 * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset
7448 present, make use of it.
7450 Add a translatable string "default:LTR" which, if translated
7451 to "default:RTL", will cause the default direction to be
7454 * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget
7455 direction if marked as flippable.
7457 * gtk/gtkhscale.c: Mark widget as flippable.
7459 2000-10-04 Havoc Pennington <hp@redhat.com>
7461 * gtk/testgtk.c (create_buttons): create some stock buttons
7462 with the default accel group
7463 (create_image): test some new GtkImage features
7464 (make_message_dialog): test GtkMessageDialog
7465 (create_modal_window): fix someone's bizzarro indentation
7467 * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement
7468 GTK_WIN_POS_CENTER_ON_PARENT.
7469 Add "destroy with parent" setting, which means the window goes
7470 away with its transient parent.
7471 (gtk_window_get_default_accel_group): get the default accel group
7473 (gtk_window_set_destroy_with_parent): set/unset destroy with
7475 (gtk_window_read_rcfiles): invalidate icon set caches
7476 after reloading rcfiles
7478 * gtk/gtkenums.h (GtkWindowPosition): add
7479 GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog
7480 on its parent window when the dialog is mapped for the first time.
7482 * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add
7483 a simple message dialog class
7485 * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event
7486 handler to emit response signal, and maybe later it would
7487 honor a hide_on_delete flag - though that isn't there yet.
7488 Set border width on the vbox to 2, so we get some padding.
7489 Use a button box for the action area.
7490 (gtk_dialog_key_press): synthesize a delete event if Esc
7491 is pressed and the GtkWidget key press handler didn't
7492 handle the escape key.
7493 (gtk_dialog_new_with_buttons): new function creates a dialog
7494 with some default buttons in it.
7495 (gtk_dialog_add_action_widget): add an activatable widget
7496 as a button in the dialog - you can also add a non-activatable
7497 widget by accessing the action area directly.
7498 (gtk_dialog_add_button): add a simple button - stock ID or
7499 label - to the action area
7500 (gtk_dialog_response): emit response signal
7501 (gtk_dialog_run): block waiting for the dialog, return
7502 the response. Override normal delete_event behavior, so that
7503 delete_event does nothing inside gtk_dialog_run().
7505 * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
7506 emitted when an action widget is clicked or the dialog gets
7509 * gtk/gtk.h: add gtkmessagedialog.h
7511 * gtk/Makefile.am: add gtkmessagedialog.[hc]
7513 2000-10-18 Havoc Pennington <hp@redhat.com>
7515 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
7516 where any number of empty lines would get skipped
7518 * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
7521 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
7522 warning about invalid iterators (explain more thoroughly)
7523 (gtk_text_iter_in_region): rename gtk_text_iter_in_range
7525 * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
7528 * demos/*.c: Add error handling
7530 * gtk/gtktextbuffer.c: don't modify const iterators
7532 * gtk/gdk-pixbuf-loader.c: Add full error handling here
7534 * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
7537 * gtk/gtkiconfactory.c: Update to reflect addition of error
7538 handling to gdk-pixbuf loaders
7540 Wed Oct 18 11:14:05 2000 Owen Taylor <otaylor@redhat.com>
7542 * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
7543 move to new modularized testgtk.
7545 2000-10-17 Jonathan Blandford <jrb@redhat.com>
7547 * gtk/gtktreeview.c: Draw the arrows correctly.
7549 * gtk/gtktreemodel.c: Added user docs.
7551 * gtk/gtk.h: remove gtktreedatalist.h.
7553 * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
7554 parent when generating my type.
7556 * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
7557 POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
7559 2000-10-16 Jonathan Blandford <jrb@redhat.com>
7561 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
7562 GtkTreeModel from object to interface.
7564 2000-10-16 Havoc Pennington <hp@redhat.com>
7566 * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing
7569 2000-10-16 Jonathan Blandford <jrb@redhat.com>
7571 * gtk/gtktreeselection.c: Add API documentation to all public
7574 * gtk/gtktreeviewcolumn.c: Added API documentation to all public
7577 2000-10-15 Jonathan Blandford <jrb@redhat.com>
7579 * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
7580 proposed by Guy Harris <gharris@flashcom.net>. Also, added API
7581 docs to all public functions.
7583 * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
7584 gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
7585 gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
7586 gtk/gtktreemodel.h, gtk/gtktreeselection.c,
7587 gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
7590 2000-10-14 Robert Brady <robert@suse.co.uk>
7592 * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
7594 2000-10-12 Jonathan Blandford <jrb@redhat.com>
7596 * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
7597 values other then G_TYPE_STRING.
7598 * gtk/gtktreeselection.c: Minor commenting updates.
7599 * gtk/gtktreeview.c: Format updates.
7601 2000-10-09 Tor Lillqvist <tml@iki.fi>
7603 * README.win32: Update.
7605 * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
7606 lines that had been deleted by mistake (?).
7608 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
7609 also the case fg==white and bg==black (but still not randomly
7610 coloured cursors). Thanks to Wolfgang Sourdeau.
7612 * gdk/win32/*.c: Silence gcc -Wall.
7614 * gtk/gtk.def: Add missing entry points.
7616 Fixes by Hans Breuer:
7619 * gdk/win32/makefile.msc: Update.
7621 * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
7622 some MSVC thing, presumably), cause breakpoint on failures. Add
7623 GDK_NOR case. Call g_log_set_always_fatal.
7625 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
7626 should be pased by reference.
7628 * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
7630 * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
7632 * gdk/win32/gdkevents-win32.c
7633 * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
7635 * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
7636 implementation object.
7638 * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
7641 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
7642 Use the wrapper object.
7644 2000-10-06 Havoc Pennington <hp@redhat.com>
7646 * Makefile.am (SRC_SUBDIRS): contrib subdir
7648 * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
7649 so it can be used in Xlib version
7651 * demos/testpixbuf.c (update_timeout): error checking from 1.0
7654 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
7655 change from 1.0 tree that returns first frame of animation
7656 if the loaded file is an animation.
7658 * contrib: add new directory to hold stuff that comes with GTK+
7659 but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
7661 * configure.in: add contrib/*
7663 2000-10-05 Havoc Pennington <hp@redhat.com>
7665 * demos/testpixbuf-save.c: add pixbuf save test
7667 * demos/Makefile.am: add testpixbuf-save.c
7669 2000-10-05 Jonathan Blandford <jrb@redhat.com>
7671 * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
7672 GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
7673 * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
7674 * gtk/gtktreeselection.[ch]: Replaced
7675 "node_selected"/"node_unselected" signal with "selection_changed"
7678 2000-10-04 Jonathan Blandford <jrb@redhat.com>
7680 * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
7683 2000-10-04 Jonathan Blandford <jrb@redhat.com>
7685 * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
7688 Wed Oct 4 15:52:15 2000 Owen Taylor <otaylor@redhat.com>
7690 * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
7691 Move list pointer forwards before removing item from
7692 list. (Crash reported by Salmaso Raffaele)
7694 * gdk/gdkwindow.h: Remove spurious trailing ,
7696 * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
7697 dependencies on uninstalled libraries, sorry folks.
7699 2000-10-04 Havoc Pennington <hp@redhat.com>
7701 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
7702 gtk/gtkiconfactory.c: Fix copyrights
7704 * demos/testpixbuf.c: add inline pixbuf test
7706 Mon Sep 25 15:05:17 2000 Owen Taylor <otaylor@redhat.com>
7708 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
7709 Add gdk_window_iconify.
7711 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
7712 (gdk_window_set_geometry_hints): Add win_gravity
7713 to geometry structure.
7715 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
7716 Implement _NET_WM_PING.
7718 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
7719 Set _NET_WM_PID on the client leader.
7721 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
7722 Handle UTF-8 better.
7724 * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
7725 UTF-8 better, set _NET_WM_NAME as well. Only set
7726 icon name if it hasn't previously been explicitely
7729 2000-10-03 Havoc Pennington <hp@redhat.com>
7731 * gtk/testtextbuffer.c: clean up trailing whitespace,
7732 add extensive tests for tag toggle iteration.
7734 * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
7737 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
7738 optimize case where the tag root is on level 1
7739 (gtk_text_line_previous_could_contain_tag): attempt to implement
7740 (gtk_text_line_next_could_contain_tag): Abstract out node_compare
7743 * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
7744 Implement this, though not very efficiently.
7746 * gtk/gtktextiterprivate.h: reformat
7748 * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
7751 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
7752 this to properly revalidate the iterators.
7754 * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
7755 properly at the end of the line (and therefore on empty lines)
7757 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
7758 maybe we should return a value...
7760 2000-10-03 Tor Lillqvist <tml@iki.fi>
7762 * config.h.win32: Guard definition of alloca(). glib.h now handles
7766 * gtk/gtk.def: Add new entry points.
7768 Changes just to make GTK+ build without errors on Win32. No hope
7769 of it working in its current state, though...:
7771 * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings. Add
7772 some functions from the X11 backend, just to make GTK+ build.
7774 * gdk/makefile.mingw.in
7775 * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
7776 number. Add new object files.
7778 * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
7779 GetMessageTime to get timestamp (where on X11 uses
7780 gdk_x11_get_server_time()).
7782 2000-10-02 Havoc Pennington <hp@pobox.com>
7784 * gtk/gtktextview.c: text_window_* weren't static and should have
7786 Start work on child widgets; not yet complete, syncing to
7789 * gtk/gtktextchild.h: change this to contain a public interface,
7790 starting work on child interfaces.
7791 * gtk/gtktextchildprivate.h: move private interfaces here
7793 * gtk/Makefile.am: update to reflect gtktextchildprivate.h
7795 * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
7796 gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c,
7797 gtk/gtktextmark.c: copyright notices
7799 * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
7802 * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
7805 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
7808 2000-09-30 Havoc Pennington <hp@pobox.com>
7810 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
7811 NULL start/end pointers
7813 * gtk/gtktextbuffer.c: Write some docs
7814 (gtk_text_buffer_get_selection_bounds): Allow start/end to be
7815 NULL, so you can just check whether there's a selection.
7817 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to
7818 cleanup_line or segments_changed ourselves, it gets done
7821 * gtk/gtktextmark.h:
7822 s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
7824 * gtk/gtktextsegment.h: Clean up some indentation and naming mess
7826 * gtk/gtktextmark.c: delete some more old Tk cruft
7828 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
7829 mark before removing it, so we can emit MARK_DELETED with a valid
7831 (gtk_text_buffer_mark_set): hold ref across signal emission
7833 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
7834 whining about attempts to delete special marks
7836 * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
7837 underscore, since it's internal.
7839 * gtk/gtktextbuffer.h: Remove find_string prototype, this is
7840 now implemented in terms of iterators in gtktextiter.h
7842 * gtk/gtktextbuffer.c (gtk_text_buffer_set_text):
7843 New function, destructively sets contents of buffer. Also
7844 a convenient way to clear the buffer by setting text to ""
7846 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
7847 multiline string literal
7849 * gtk/testtext.c (text_changed_callback): Redraw line numbers if
7852 * gtk/gtktextiter.c (forward_char): Return FALSE if new location
7853 is not dereferenceable
7854 (gtk_text_iter_forward_lines): fix return value
7856 2000-09-29 Havoc Pennington <hp@redhat.com>
7858 * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
7860 * gtk/gtktextview.c: Implement drag thresholding; change functions
7861 that set border window size to have nicer name
7862 (gtk_text_view_mark_set_handler): Fix this to have the
7865 * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
7867 * gtk/testtext.c: Update with API changes, put line numbers on
7870 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
7873 * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
7874 pixbuf; delete a big block of #if 0 Tk code
7876 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
7877 insert_pixmap with insert_pixbuf
7879 2000-09-29 Martin Baulig <baulig@suse.de>
7881 * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
7882 confusion with the GdkPixbuf of the GNOME 1.x platform.
7884 2000-09-29 Havoc Pennington <hp@pobox.com>
7886 * gtk/gtktextview.c: Implement the side windows.
7888 * gtk/testtext.c: Implement simple line numbering in the
7889 left side window; seems to make scrolling sloooow. Oops.
7890 Also, cursor blink is for some reason causing redraws
7891 of the line numbers. Should investigate...
7893 2000-09-28 Havoc Pennington <hp@redhat.com>
7895 * gtk/gtktextview.c: Set up infrastructure to deal with lots of
7896 scrolling child windows, and draw focus rectangle properly.
7898 (gtk_text_view_buffer_to_window_coords):
7899 Coordinate transformation to deal with all these freaking windows
7901 (gtk_text_view_window_to_buffer_coords): transform the other way
7903 * gtk/testtext.c (create_buffer): Update to match Pango API change
7905 * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
7907 (foreach_unref): don't emit remove signal from finalize, just
7908 set tag's parent to NULL
7910 2000-09-26 Havoc Pennington <hp@redhat.com>
7912 * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
7915 2000-09-26 Havoc Pennington <hp@redhat.com>
7917 * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
7918 headers into the private header list
7920 * Makefile.am (pkgconfig_DATA): install pkg-config files
7922 * configure.in: add pkg-config files
7924 * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
7926 * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
7927 outstanding icon caches on theme change.
7929 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
7932 (GtkIconSource): Specification for creating a pixbuf
7933 appropriate for a direction/state/size triplet from
7934 a source pixbuf or filename
7936 (GtkIconSet): List of GtkIconSource objects that are used to
7937 create the "same" icon (e.g. an OK button icon), and cache for
7940 (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
7941 up the icon set for a given stock ID. GTK maintains a stack of
7942 GtkIconFactory to search, and applications or libraries can add
7943 additional icon factories on top of the stack
7945 * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
7946 the set of GtkIconSource specified for a given stock ID into
7947 a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
7948 RcStyle, under the specified stock ID.
7950 * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
7951 render_icon used to derive a GdkPixbuf from a GtkIconSource.
7952 This allows people to theme how prelight, insensitive, etc. are
7955 (gtk_style_lookup_icon_set): Look up a stock ID in the list of
7956 icon factories for a style, and return the resulting
7959 (gtk_style_render_icon): Render an icon using the render_icon
7960 method in the GtkStyleClass.
7962 * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
7963 Use the style for a given widget to look up a stock ID, get the
7964 icon set, and render an icon using the render_icon method
7967 * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
7968 (contains information about a stock item), the built-in stock item
7969 IDs, and functions to add/lookup stock items.
7971 * gtk/stock-icons/*: Stock icons that come with GTK
7973 * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
7974 a button based on a GtkStockItem
7975 (gtk_button_new_accel): Takes a uline string and accel group, and
7976 installs the accelerator.
7978 * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
7979 image-display widget.
7981 2000-09-25 Havoc Pennington <hp@redhat.com>
7983 * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
7985 * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data):
7986 Fix a bug when removing node data, we didn't properly
7987 re-splice the linked list after removing the data.
7989 * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through
7990 GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
7992 * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
7994 * gtk/gtktextlayout.c (set_para_values): Set tab array
7995 for the layout from the GtkTextTag.
7997 * gtk/gtktexttypes.h: delete tab and search cruft,
7998 remove g_convert() in favor of GLib version
8000 * gtk/gtktexttypes.c: remove tab implementation from here,
8003 * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement
8004 tab stuff using new PangoTabArray from Pango
8006 * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
8007 unused border_width stuff
8009 Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
8011 * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
8012 glib) and now useless utf_to_latin1() latin1_to_utf()
8014 * gtk/gtktextview.[ch]: Change ::move_insert and
8015 ::delete_text action signals to ::move and ::delete;
8016 create the signals with the right enumeration type,
8017 not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
8018 C-v bindings, change Home, End to move to beginning/end
8019 of line, Add C-Home C-End to move to beginning/end
8020 of buffer. Change ::cut_text to ::cut_clipboard, etc;
8021 combine ::scroll_text into ::move; use new GtkSelectionData
8022 functions to simplify DND text handling.
8024 * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
8025 deletion enumerations here, rename enumeration values to
8026 be consistently plural.
8028 * gtk/gtktextbuffer.c: Use new clipboard interfaces
8029 for cut/copy/paste and primary selection.
8031 * gtk/gtktextbuffer.[ch]: Remove excess time and
8032 'interactive' arguments from cut/copy/paste;
8033 rename cut to cut_clipboard, etc; remove
8034 gtk_text_buffer_get_clipboard_contents().
8036 * gtk/gtktextlayout.[ch]: Add
8037 gtk_text_layout_move_iter_to_line_end() to move the iter to
8040 * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
8041 Functions to set or get a UTF-8 string on the selection
8044 * gtk/gtkclipboard.[ch]: New, simplified selection handling
8047 * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
8048 created widgets - one of these is useless if we don't.
8050 * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
8051 a public function clear all targets registered for the
8054 * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
8055 Never call gtk_widget_realize() - that was just asking
8056 for bizarre side-effects.
8058 * gtk/gtkselection.c (gtk_selection_owner_set): Call
8059 gdk_selection_owner_set even if the widget is the
8060 same so that we reliably update the timestamp on
8063 * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
8064 gdk_x11_get_server_time() function.
8066 * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
8067 gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
8068 Add some tricky filtering on serial numbers for
8069 selection clear events to fix up long-standard
8070 race condition FIXME's in gtkselection.c.
8072 * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
8073 routines to convert from utf8 to compound text or
8074 STRING and from a text property to UTF-8.
8076 * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
8077 a convenience function gdk_get_current_event_time().
8079 * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
8080 and free selection_data->data properly
8082 Sat Sep 9 10:23:53 2000 Owen Taylor <otaylor@redhat.com>
8084 * gtk/gtkthemes.c: Remove some unecessary includes.
8086 2000-09-08 Jonathan Blandford <jrb@redhat.com>
8088 * gtk/gtktextdisplay.c
8089 * gtk/gtktextlayout.c
8092 * gtk/testtext.c: Change the overstrike property to strikethrough,
8093 to closer match pango.
8095 Fri Sep 8 14:28:00 2000 Owen Taylor <otaylor@redhat.com>
8097 * gtk/gtktextview.c: Fix up visibility so that focus,
8098 cursor_visible and blink interact properly. Reenable cursor blink
8099 which had been roughly disabled. Make blink and focus
8102 * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
8103 Add a flag for whether to display insertion cursor and
8104 a function to set the flag.
8106 * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
8107 get_line_y() to get_line_yrange(), to be a bit more generally
8110 Thu Sep 07 20:54:33 2000 George Lebl <jirka@5z.com>
8112 * gtk/gtkmenu.c: in gtk_menu_set_submenu_navigation_region
8113 do stop_navigating_submenu, to clear last timeout properly.
8114 Also in gtk_menu_motion_notify move ignore_enter above
8115 the conditional to make it always happen as suggested by Owen
8117 2000-09-07 Tor Lillqvist <tml@iki.fi>
8119 * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
8121 * gdk/win32/gdkwin32.h: Add more definitions missing from the free
8124 * gdk/win32/gdkprivate-win32.h: Add a couple of missing
8127 * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
8128 (gdk_win32_get_colormap): A line had been deleted by mistake.
8130 * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
8131 (gdk_event_translate): Handle more virtual keycodes to be able to
8132 generate GDK events for Control-comma, Control-period, etc.
8134 * gtk/gtk.def: Add some missing entry points.
8136 Thu Sep 7 11:47:02 2000 Owen Taylor <otaylor@redhat.com>
8138 * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
8139 Doc comment fixing. (Mostly non-matching parameter names.)
8141 * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
8142 comments a little to avoid looking like a doc comment.
8144 * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
8145 GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
8146 conversions be changed to GError?)
8148 * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT):
8149 Move private #defines into .c file.
8151 * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
8152 order of argument addition, remove duplicates.
8154 * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
8155 parent class is FrameClass, not BinClass.
8157 * gtk/gtk.h: Add gtkinvisible, which was missing.
8158 (It's occasionalyl useful for client apps, if seldom.)
8160 * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
8163 Wed Sep 6 09:53:15 2000 Owen Taylor <otaylor@redhat.com>
8165 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
8166 coordinates when creating window, instead of GDK-space
8167 coordinates. (Avoid BadValue on too large windows.)
8169 2000-09-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
8171 * configure.in (use_mmx_asm): Remove conftest* after use along the
8172 lines of AC_TRY_COMPILE.
8174 * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
8175 of g_dirname, which is deprecated.
8176 (gtk_rc_parse_any): Removed calls to
8177 g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
8179 * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
8180 Removed calls to g_hash_table_{freeze,thaw}, as they are
8183 * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
8184 instead of g_basename.
8186 2000-09-04 Elliot Lee <sopwith@redhat.com>
8188 * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
8191 Sun Sep 03 00:47:08 2000 George Lebl <jirka@5z.com>
8193 * gtk/gtkwidget.h: Add some documenting comments about
8194 GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
8195 just as owen said on irc.
8197 * gtk/gtkwindow.c (gtk_window_set_default): Don't blindly
8198 set HAS_DEFAULT. Only set it if there isn't another window
8199 holding it (a focus window which RECEIVES_DEFAULT) and only unset
8200 it if the widget is not the focused window with RECEIVES_DEFAULT.
8201 This fixes weird double default bugs in dialogs which has things
8202 call gtk_window_set_default at times.
8204 Fri Sep 1 22:39:07 2000 Owen Taylor <otaylor@redhat.com>
8206 * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
8207 Nils Barth and David Santiago to improve submenu
8208 navigation. The patch does this by creating a triangular
8209 region from the point where the pointer leaves the
8210 menu to the submenu. While the pointer is in
8211 that region and a timeout has not expired, events
8212 that would cause the active submenu to change are
8215 Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
8217 * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
8218 moving a toplevel window immediately after sizing it would
8219 result in it being sized back to the old size since
8220 impl->width, impl->height aren't updated until we hear
8221 back from the server. There is still a (longstanding) bug
8222 here that gdk_window_get_size() will give the wrong size
8223 until we do hear back.
8225 2000-08-31 Havoc Pennington <hp@redhat.com>
8227 * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
8228 gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c,
8229 gtk/gtktexttagprivate.h, gtk/gtktextview.c:
8230 Rename GtkTextStyleValues to GtkTextAttributes
8232 2000-08-31 Havoc Pennington <hp@pobox.com>
8234 * gtk/gtktextbtree.c (GtkTextBTree): cache end line,
8235 for rapid testing whether an iterator is the end iterator
8236 (gtk_text_btree_new): init end line cache
8237 (gtk_text_line_is_last): use fast cached line to
8238 see if we're the last line.
8239 (get_last_line): use cached line here too, should
8240 speed up some random unrelated code.
8242 2000-08-30 Havoc Pennington <hp@pobox.com>
8244 * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
8247 * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
8248 delete_text signals. This allows the signals to be used for
8251 * gtk/gtktextbuffer.c: Change signal handler signatures;
8252 provide "interactive" argument when emitting insert_text or
8255 2000-08-30 Havoc Pennington <hp@pobox.com>
8257 * gtk/gtktextbuffer.c: Docs
8259 Fri Aug 25 12:16:15 2000 Owen Taylor <otaylor@redhat.com>
8261 * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
8262 from switch statements, since Tor removed the enumeration
8265 * gdk/x11/gdkimage-x11.c (gdk_image_get):
8266 s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
8268 2000-08-29 Elliot Lee <sopwith@redhat.com>
8269 * */*.h: Use G_GNUC_CONST.
8271 2000-08-27 Havoc Pennington <hp@pobox.com>
8273 * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
8274 minor indentation fixes, inserted some FIXME about stuff I
8275 realized was broken while documenting it.
8276 (gtk_text_iter_get_pixmap): allow out params to be NULL, following
8279 Tue Aug 22 12:33:24 2000 Owen Taylor <otaylor@redhat.com>
8281 * gtk/testgtk.c (create_styles): Fix double free of
8284 Mon Aug 21 22:39:18 2000 Owen Taylor <otaylor@redhat.com>
8286 * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
8288 * gtk/testgtk.c (create_styles): Add a test for modifying
8289 the style through gtk_widget_modify_*.
8291 * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
8292 a function to get the current modifier style.
8294 * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
8295 of the passed in GtkRcStyle instead of ref'ing it.
8297 * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
8299 2000-08-20 Tor Lillqvist <tml@iki.fi>
8302 * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
8303 shared memory image+pixmap GdkImage type, or
8304 gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
8307 * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
8308 actually call gtk_init_abi_check(), passing also
8309 sizeof(GtkWindow). Ditto for gtk_init_check().
8312 * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
8313 New functions, used to check that the GTK+-using code has been
8314 compiled using the correct compiler and switches. In particular,
8315 with gcc one has to use the -fnative-struct switch as GTK+ is
8318 Fri Aug 18 17:27:46 2000 Owen Taylor <otaylor@redhat.com>
8320 * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
8321 ->prev fields when merging lists. (Found simultaneously
8322 by Pawel Salek and Jakub Jelinek)
8324 2000-08-12 Tor Lillqvist <tml@iki.fi>
8327 * gtk/gtk.def: Add missing entries.
8329 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
8330 OUT_TT_ONLY_PRECIS, try to get a TrueType font.
8332 * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
8333 function. Dummy implementation at this point.
8335 * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
8336 rules. Undefine GTK_COMPILATION when compiling the test programs.
8338 * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
8340 2000-08-11 Tor Lillqvist <tml@iki.fi>
8342 * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
8343 to convert back and forth from UTF-8 and the "system" (or "current
8344 locale") charset when necessary. Indentation/spacing cleanup.
8346 2000-08-10 Havoc Pennington <hp@redhat.com>
8348 * Makefile.am (snapshot): Change the format of the snapshot
8349 version to match glib
8351 * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
8352 from EXTRA_DIST since it doesn't seem to exist
8354 2000-08-10 Tor Lillqvist <tml@iki.fi>
8356 * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
8357 version of the directory name (not the UTF-8 one) when building
8358 the path name to stat().
8360 2000-08-03 Elliot Lee <sopwith@redhat.com>
8362 * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
8363 PANGO_ATTR_SHAPE set.
8365 Thu Aug 3 09:17:06 2000 Owen Taylor <otaylor@redhat.com>
8367 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
8368 Peter Osterlund to simplify the code while keeping the
8369 functionality the same.
8371 Wed Aug 2 14:57:38 2000 Owen Taylor <otaylor@redhat.com>
8373 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
8374 is_viewable() test further inside the function, since removing the
8375 window from the redraw list without clearing ->update_area
8376 was also very broken.
8378 2000-08-02 Tor Lillqvist <tml@iki.fi>
8380 * configure.in: Check for <unistd.h>.
8382 2000-08-01 Martin Baulig <baulig@suse.de>
8384 * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
8385 to display the message that this is a development version of GTK+.
8387 Mon Jul 31 18:37:36 2000 Owen Taylor <otaylor@redhat.com>
8389 * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
8390 was depending on widget->allocation instead of the width of text_area,
8391 which was incorrect for subclasses like GtkSpinButton.
8393 * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
8394 with width == 1 tests that should be width == -1.
8396 Mon Jul 31 16:45:48 2000 Owen Taylor <otaylor@redhat.com>
8398 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken,
8399 (broken, Elliot, every single window blank on X) custom code with call
8400 to gdk_window_is_viewable() which a) prevents code duplicate and
8403 2000-07-31 Elliot Lee <sopwith@redhat.com>
8405 * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
8406 to get the GDK_PARENT_ROOT() macro to work.
8407 * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
8408 * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
8409 of, windows that aren't shown.
8410 * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
8413 Mon Jul 31 13:53:16 BST 2000 Tony Gale <gale@gtk.org>
8415 * docs/gtkfaq.sgml docs/gtk-faq.sgml:
8416 s/gtk_main_iteration/g_main_iteration/
8418 Did this already in change:
8419 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
8420 don't know how it got reverted.
8422 2000-07-31 Stanislav Brabec <utx@penguin.cz>
8424 * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
8425 gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
8427 * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
8430 2000-07-30 Pablo Saratxaga <pablo@mandrakesoft.com>
8432 * configure.in,po/{sp,sr}.po: Added Serbian files
8434 2000-07-30 Tor Lillqvist <tml@iki.fi>
8436 * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
8438 * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
8439 Remove the g_pipe_readable_msg stuff. Not needed with new GLib
8440 GIOChannel implementation.
8442 * gdk/win32/gdkinput.c
8443 * gdk/win32/gdkpango-win32.c: Update license name here, too.
8445 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
8446 definition to match prototype.
8448 * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
8450 2000-07-27 Elliot Lee <sopwith@redhat.com>
8452 * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
8453 function, to allow handling image formats that cannot be detected
8454 by looking at content alone.
8456 Thu Jul 27 13:13:21 BST 2000 Tony Gale <gale@gtk.org>
8458 * docs/tutorial/*.gif *.jpg *.eps
8459 Update these to the same look-n-feel.
8460 Why does including images in DocBook suck so badly?
8462 Thu Jul 27 05:06:29 2000 Tim Janik <timj@gtk.org>
8464 * gtk/gtktable.c: applied patch from Phil Thompson
8465 <phil@river-bank.demon.co.uk> that enables space settings for
8466 the last row/columns as well.
8468 Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org>
8470 * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
8471 updates the license headers to the GNU Lesser General Public License,
8472 as well as updating the copyright year to 2000.
8474 2000-07-26 Robert Brady <rwb197@zepler.org>
8476 * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
8477 and po/Makefile, was installing and looking for them under gtk20
8478 and gtk2 respectively.
8480 2000-07-25 Havoc Pennington <hp@redhat.com>
8482 * gtk/testtext.c: Comment out some stuff that depends on the rest
8485 2000-07-25 Havoc Pennington <hp@redhat.com>
8487 * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
8490 2000-07-25 Havoc Pennington <hp@redhat.com>
8492 * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
8495 * gtk/gtktextview.h: To be consistent with usage of "line"
8496 throughout the API to mean "newline-terminated thingy", change
8497 MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
8500 (GtkTextView): Add flags for default editability, and whether to
8501 show the cursor. Add functions to get/set that. Add
8503 (gtk_text_view_get_iter_location): new function
8505 * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
8507 (g_convert): Add g_convert temporarily, will go in glib in a bit
8509 * gtk/gtktexttagtable.h: include gtktexttag.h, and define
8510 GtkTextTagTableForeach instead of brokenly using GHFunc.
8511 Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
8513 * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
8514 moved to public header.
8516 * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
8517 "invisible", since "elide" was a bad name.
8518 (gtk_text_tag_get_priority): Added
8520 (GtkTextStyleValues): put this in public header, along with
8521 functions to use it.
8523 * gtk/gtktextmarkprivate.h: Include more headers, since we no
8524 longer include gtktextbtree.h.
8526 * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
8527 gtk_text_mark_deleted
8529 * gtk/gtktextlayout.h: Don't include the "really private" headers,
8530 only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
8531 to make this possible. Now we only need to install
8532 gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
8533 (However the Makefile.am isn't changed yet because of the
8534 logistics of merging gtk-hp-patches piecemeal)
8536 * gtk/gtktextiterprivate.h: include btree header, so it compiles;
8537 rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
8538 gtk_text_iter_get_line is now used in the public API for a
8541 * gtk/gtktextiter.h: Clean up function names to be more
8542 consistent. Always call char offset "offset" and byte index
8543 "index". A "line" is always a line number.
8545 (gtk_text_iter_is_last): new function, more efficient than
8546 the existing way to check
8547 (gtk_text_iter_is_first): new function, also more efficient
8549 (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
8551 (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from
8552 gtk_text_iter_forward_char, etc.
8554 (gtk_text_iter_forward_to_tag_toggle): Renamed from
8555 forward_find_tag_toggle, since this isn't a linear search
8557 (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
8559 (gtk_text_iter_forward_search, gtk_text_iter_backward_search):
8560 New functions, search for a buffer substring.
8562 * gtk/gtktextbuffer.h: Add fields to store whether a paste is
8563 interactive and default editable (since we need to store that info
8564 until we receive the selection data).
8566 Remove all the _at_char and at_line etc. versions of functions;
8567 only have iterator versions.
8569 Add _interactive() versions of functions, that consider the
8570 editability of text. (FIXME add interactive flag to the
8571 insert/delete signals per Darin's suggestion)
8573 (gtk_text_buffer_get_tag_table): new function, demand-creates the
8574 tag table if necessary
8576 Remove declaration of gtk_text_buffer_get_iter_from_string
8578 (_gtk_text_buffer_get_btree): private/internal function, added.
8581 * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
8582 (gtk_text_line_is_last): new function
8584 2000-07-25 Havoc Pennington <hp@redhat.com>
8586 * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
8587 using GtkProgressBar. See Changes-2.0.txt for details.
8589 * gtk/gtkprogressbar.c: Add object arguments "fraction" and
8590 "pulse_step" which are the equivalent of
8591 gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
8594 * gtk/gtkprogress.h (struct _GtkProgress): Add a field
8595 (use_text_format) to mark whether text set on the progress bar is
8596 a format string. Deprecate entire GtkProgress interface.
8598 * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
8599 (gtk_progress_build_string): make this a no-op if use_text_format
8602 * docs/Changes-2.0.txt: Describe progress bar changes.
8604 2000-07-25 Tor Lillqvist <tml@iki.fi>
8606 * Makefile.am: Include the build directory.
8608 * configure.in: Generate build/Makefile, build/win32/Makefile,
8609 gdk/, gdk/win32/, and gtk/makefile.mingw.
8611 * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
8612 Add GETTEXT_PACKAGE.
8615 * gtk/gtk.def: Updates.
8618 * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
8619 need them any longer.
8621 * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
8623 * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
8624 PANGOWIN32_LIBS and gdk_pixbuf.
8626 * gdk/win32: Compiles, but no doubt doesn't work at all.
8628 * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
8630 * gdk/win32/gdkinput.c: New file, temporarily.
8632 * gdk/win32/gdkinput-win32.h: New file
8634 * gdk/win32/gdkinputprivate.h: Remove.
8636 * gdk/win32/gdkpango-win32.c: New file.
8638 * gtk/makefile.mingw.in: New file
8640 * gtk/makefile.cygwin: Removed
8642 * gtk/Makefile.am: Update accordingly.
8644 * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
8645 made externally visible.
8647 * gtk/gtkmain.c: Use it.
8649 * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
8652 * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
8654 2000-07-24 Elliot Lee <sopwith@redhat.com>
8655 * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
8656 individual backends already.
8657 * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
8658 again. Yes, there really is a good reason for this, if you are using the gdkregion
8659 internals, and if you're not, why do you care?
8660 * gdk/gdkwindow.c: Fix inverted condition
8661 * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
8662 * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
8663 * gtk/gtkrange.c: Redraw trough when moving.
8664 * gtk/gtktypeutils.c: Fix warning by adding const cast.
8665 * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
8667 2000-07-23 Tor Lillqvist <tml@iki.fi>
8669 * configure.in: Check for mkstemp and sigsetjmp. Output
8670 gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
8672 More work on GDK for Win32. Still in an intermediate state.
8674 * gdk/makefile.cygwin
8675 * gdk/win32/makefile.cygwin: Removed.
8677 * gdk/makefile.mingw.in
8678 * gdk/win32/makefile.mingw.in: New files.
8681 * gdk/win32/Makefile.am: Generate and distribute them.
8683 * gdk/win32/gdkwindow-win32.h
8684 * gdk/win32/gdkdrawable-win32.h
8685 * gdk/win32/gdkpixmap-win32.h: New files.
8687 * gdk/win32/gdkcolor-win32.c
8688 * gdk/win32/gdkcursor-win32.c
8689 * gdk/win32/gdkdrawable-win32.c
8690 * gdk/win32/gdkgc-win32.c
8691 * gdk/win32/gdkimage-win32.c
8692 * gdk/win32/gdkprivate-win32.h
8693 * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
8694 Rename fields and variables called xcursor, xid, etc (these names
8695 were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
8697 Sat Jul 22 17:41:26 2000 Owen Taylor <otaylor@redhat.com>
8699 * gtk/gtkentry.[ch]: Fix some problems with vertical
8702 * gtk/gtkentry.c (gtk_entry_find_position): Fix
8703 char/byte confusion.
8705 Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
8707 * gtk/gtktextview.c (changed_handler): Fix bug where
8708 redraw wasn't being done properly when height of
8709 dirty region changed.
8711 * demos/Makefile.am: Remove various references to
8714 Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
8716 * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
8717 PangoAttrShape to reserve space for pixmaps, add
8718 GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
8719 in the display functions.
8721 * gtk/testgtk.c (create_layout): Set some more exotic
8722 scrolled window options
8724 * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
8725 Add function to set the shadow type of a window, to allow
8726 putting a shadow around widgets such as GtkLayout or GnomeCanvas
8727 which don't draw their own frame.
8729 Fri Jul 21 16:34:42 BST 2000 Tony Gale <gale@gtk.org>
8731 * docs/tutorial/package-db-tutorial.sh: New file for
8732 packaging DocBook format tutorial
8734 Fri Jul 21 14:23:51 BST 2000 Tony Gale <gale@gtk.org>
8736 * docs/tutorial/gtk-tut.sgml: Minor updates
8738 * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
8740 2000-07-19 Tor Lillqvist <tml@iki.fi>
8742 * gtk/gtksignal.c: Fix C++ comment.
8744 * gtk/gtkimmulticontext.c
8745 * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
8746 don't return value from void functions.
8748 * gtk/gtk.def: Add gtk_rc_style_unref.
8750 2000-07-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
8752 * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
8753 gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
8754 gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
8755 gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
8756 gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
8757 gtk/gtktypeutils.h: Include files outside of the extern "C"
8758 block. Makes some C++ compiler happy. Reported by Denis Vakatov
8759 <vakatov@peony.nlm.nih.gov>.
8761 Wed Jul 19 14:07:57 BST 2000 Tony Gale <gale@gtk.org>
8763 * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
8764 Completes first pass. Hurrah!
8766 Tue Jul 18 17:17:55 BST 2000 Tony Gale <gale@gtk.org>
8768 * docs/tutorial/gtk-tut.sgml: More clean ups.
8770 Mon Jul 17 18:52:38 2000 Owen Taylor <otaylor@redhat.com>
8772 * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
8773 paint the background of the text area which was accidentally
8774 removed at some point.
8776 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]:
8778 - Move most of the functionality from the theme vtable
8779 into GtkRcStyleClass and GtkStyleClass. The moved
8780 vtable functions were changed a bit in the move to
8781 work better in their new home.
8783 - Get rid of the engine and engine_data fields from
8784 GtkRcStyle and GtkStyle; instead the theme
8785 engine derives theme-specific subclasses of GtkRcStyle
8788 - Add extra dlsym() found entry point to themes,
8789 theme_create_rc_style().
8791 * gtk/gtkstyle.c: Copy xthickness, ythickness fields
8792 in gtk_style_real_copy.
8794 * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
8795 to register a type associated with an engine. (The engine
8796 won't be unloaded as there is an instance of the type.)
8799 Mon Jul 17 18:19:06 BST 2000 Tony Gale <gale@gtk.org>
8801 * docs/tutorial/gtk-tut.sgml: Clean ups.
8803 Mon Jul 17 13:59:29 BST 2000 Tony Gale <gale@gtk.org>
8805 * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
8806 of cleaning up to do.
8808 2000-07-15 Tor Lillqvist <tml@iki.fi>
8810 * gdk/testgdk.c: New file, quick hack to test backends for
8811 pixel-by-pixel correctness of the most simple graphic operations.
8813 Fri Jul 14 20:30:25 2000 Owen Taylor <otaylor@redhat.com>
8815 * Really release 1.3.1
8817 * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
8820 Fri Jul 14 18:40:39 2000 Owen Taylor <otaylor@redhat.com>
8824 Fri Jul 14 16:21:26 2000 Owen Taylor <otaylor@redhat.com>
8826 * gtk/gtktextlayout.c: use FALSE for size_only most
8827 of the time when calling gtk_text_layout_get_line_display()
8828 to avoid causing double reshapes when a redraw follows
8831 Tue Jul 11 11:13:40 2000 Owen Taylor <otaylor@redhat.com>
8833 * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
8834 appropriate region and gdk_window_process_updates() so trough
8835 updating doesn't lag behind the window being scrolled.
8837 * gdk/gdkgc.c: Make parent_class pointer static.
8839 Sun Jul 9 21:31:23 2000 Owen Taylor <otaylor@redhat.com>
8841 * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
8844 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
8845 cut-and-paste error in computing memory offset for 4 channels.
8847 Fri Jul 14 14:05:02 2000 Owen Taylor <otaylor@redhat.com>
8849 * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
8850 gtk_rc_append_default_pixmap_path(), since it wasn't
8851 adding an interesting path and we don't have a meaningful
8852 default for this value.
8854 Fri Jul 14 12:22:49 2000 Owen Taylor <otaylor@redhat.com>
8856 * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
8857 gtk-config to gtk-config-2.0 move gtk_.m4 to
8860 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
8861 gdk/Makefile.am demos/Makefile.am: Change
8862 library names to libgtk-1.3.la, etc, so that we
8863 can distinguish gtk-1.2 and gtk-2.0 on the linkline.
8865 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
8866 gdk/Makefile.am gdk/x11/Makfile.am
8867 Move include files into /usr/include/gtk-2.0,
8868 /usr/lib/gtk-2.0/include/
8870 * autogen.sh acconfig.h configure.in gtk/gtkmain.c
8871 gtk/gtkintl.h: Change package for gettext from
8872 gtk+ to gtk20. Put hack in autogen.sh to modify
8873 po/Makefile.in.in after gettextize to make this
8876 * gtk+.spec: Some updates, not tested.
8878 * gdk-pixbuf/Makefile.am: Move loaders into
8879 $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
8881 * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
8882 $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
8883 to THEMENAME/gtk-2.0/. Move engine directory to
8884 $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
8886 2000-07-12 Tor Lillqvist <tml@iki.fi>
8888 Win32 changes, still doesn't build though.
8890 * gdk/makefile.cygwin
8891 * gdk/win32/makefile.cygwin
8892 * gtk/makefile.cygwin: Updates.
8894 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
8895 default values for fg and bg pixel as X11 does (0 and 1), not
8896 black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
8897 Use 0 for pen width by default (treated as 1 anyway later, but for
8898 apps that might check the value in the GdkGC).
8899 (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
8900 interface to gdk_gc_predraw and _postdraw.
8902 * gdk/win32/gdkwin32.h
8903 * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
8905 * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
8906 extraneous semicolon.
8908 * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
8910 * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
8911 not the Win32 bitspixel value.
8913 * gdk/win32/gdkcc-win32.c:
8914 * gdk/win32/gdkcolor-win32.c
8915 * gdk/win32/gdkprivate-win32.h
8916 * gdk/win32/gdkwin32.h: Changes to make compilable, with new
8917 GDK object structure.
8919 Tue Jul 11 20:59:35 2000 Tim Janik <timj@gtk.org>
8921 * docs/tutorial/gtk_tut_12.es.sgml (name):
8922 * docs/tutorial/gtk_tut_it.sgml (name):
8923 * docs/tutorial/gtk_tut_fr.sgml (name):
8924 * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
8925 outdated email adress: s/timj@psynet.net/timj@gtk.org/.
8927 Tue Jul 11 13:10:57 BST 2000 Tony Gale <gale@gtk.org>
8929 * docs/faq/gtk-faq.sgml: Cleanup indenting and various
8932 Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org>
8934 * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
8935 a bug here, never been here and never fixed anything ;(
8936 (don't segfault if tree->root_tree is NULL, which happens prior
8937 to widget realization, but puke instead).
8939 Tue Jul 11 06:38:42 2000 Tim Janik <timj@gtk.org>
8941 * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
8942 add the necessary tokens.
8944 * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
8945 (gtk_rc_style_to_style): copy thicknesses.
8946 (gtk_rc_init_style): apply thicknesses.
8947 (gtk_rc_parse_style): parse xthickness and ythickness.
8949 * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
8951 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new):
8953 (_gdk_windowing_window_init):
8954 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new):
8955 (gdk_pixmap_create_from_data):
8956 (gdk_bitmap_create_from_data):
8958 * gdk/x11/gdkimage-x11.c (gdk_image_get):
8960 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new):
8961 * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new):
8962 * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
8963 (gdk_colormap_get_system):
8965 * gdk/gdkwindow.c (gdk_window_init):
8966 * gtk/gtkstyle.c (gtk_style_new):
8967 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
8968 * gdk/gdkpixmap.c (gdk_pixmap_init):
8969 * gtk/gtkrc.c (gtk_rc_style_new):
8970 use g_object_new() instead of g_type_create_instance() which
8971 is a private function for fundamental type implementations.
8973 Thu Jul 6 16:12:14 2000 Owen Taylor <otaylor@redhat.com>
8975 * configure.in: Add check for db2html
8977 Thu Jul 6 14:53:05 2000 Owen Taylor <otaylor@redhat.com>
8979 * gtk/gtktypeutils.c (gtk_type_init): Add a temporary
8980 hack to set glib_debug_objects based on gtk_debug_flags.
8982 Thu Jul 6 14:12:13 2000 Owen Taylor <otaylor@redhat.com>
8984 * INSTALL.in: Update the Prerequisites section.
8986 * Makefile.am demos/Makefile.am docs/Makefile.am
8987 docs/tutorial/Makefile.am gdk/x11/Makefile.am
8988 gdk/linux-fb/Makefile.am: Dist fixes
8990 Thu Jul 6 12:26:03 2000 Owen Taylor <otaylor@redhat.com>
8992 * NEWS: 10,000 foot view of 1.3.1 changes.
8994 Thu Jul 6 11:54:03 2000 Owen Taylor <otaylor@redhat.com>
8996 * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
8997 gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
8998 gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
8999 gdk/x11/gdkmain-x11.c:
9001 Patch from George Lebl to add a GdkGrabStatus enumeration to use
9002 as a return value of gdk_*_grab(). Previously, we just
9003 returned the X11 values directly.
9005 Thu Jul 6 11:27:44 2000 Owen Taylor <otaylor@redhat.com>
9007 * gdk/x11/Makefile.am: Patch from George Lebl to
9008 install all the headers in the right place.
9010 Tue Jul 4 13:13:01 BST 2000 Tony Gale <gale@gtk.org>
9012 * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
9013 initial conversion to DocBook.
9015 2000-07-04 Tor Lillqvist <tml@iki.fi>
9017 * README.win32: Improve a bit.
9019 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
9020 WM_SYSCHAR, and other changes to get handling of Alt+nnn or
9021 Alt+0nnn on the numpad (used to enter characters by numeric code
9022 from current DOS or ANSI codepage) working correctly, as in other
9025 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
9026 same argument validity tests as in X11 version.
9027 (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
9029 * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
9030 definitions in case missing from headers.
9032 * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
9033 destroy the window-specific cursor.
9034 (RegisterGdkClass): Use the global gdk_ProgInstance instead of
9035 calling GetModuleHandle(NULL).
9036 (gdk_window_set_cursor): Reworked to always copy the passed cursor
9037 with CopyCursor before setting it as the window-specific
9038 cursor. It is OK for the caller to destroy the GdkCursor (and thus
9039 also its Windows cursor) after calling this function. Destroy any
9040 previous window-specific cursor.
9042 Mon Jul 3 17:54:49 2000 Owen Taylor <otaylor@redhat.com>
9044 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
9045 font charset is iso8859-1, not iso-8859-1.
9047 Mon Jul 3 17:08:14 2000 Owen Taylor <otaylor@redhat.com>
9049 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
9050 Use g_get_charset() instead of g_get_codeset().
9052 * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h:
9053 Comment out some strdup'ing functions to keep timj
9054 happy until we finish fighting this out.
9056 Mon Jul 3 14:24:16 2000 Owen Taylor <otaylor@redhat.com>
9058 * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
9061 * gtk/gtktable.c (gtk_table_attach): Fix missed merge
9062 from 1.2 for parent/child states.
9064 * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
9067 * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
9068 event structures, replace with a generic axes field. Replace
9069 deviceid/sourec with GdkDevice *device.
9071 * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
9072 to extract particular axis use value from event. (Also
9073 can be used for normal X/Y.)
9075 * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
9076 allow for arbitrary number of axes, namespace everything
9077 as gdk_device_*. Replace guint32 deviceid with GdkDevice *
9080 * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}:
9081 Get rid of the gdk_input_vtable setup if favor of simply
9082 defining the functions in gdkinput-none/gxi/xfree.c in
9083 a similar fashion to the way that the port structure is
9086 * gtk/gtkdnd.c: Fix fields of synthesized button press event
9087 for new event structures.
9089 * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
9090 new device interfaces.
9092 Sun Jul 2 18:19:50 2000 Owen Taylor <otaylor@redhat.com>
9094 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
9095 set the initial text.
9097 * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
9098 gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
9099 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
9100 gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
9102 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
9103 pango_layout_set_font_description to simplify.
9105 Sun Jul 2 17:43:41 2000 Owen Taylor <otaylor@redhat.com>
9107 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
9108 pango_layout_set_font_description to simplify.
9110 Sun Jul 2 17:06:40 2000 Owen Taylor <otaylor@redhat.com>
9112 * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
9113 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
9114 pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
9116 * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
9117 PANGO_PIXELS() macro.
9119 Sun Jul 2 15:24:41 2000 Owen Taylor <otaylor@redhat.com>
9121 * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
9122 that returns a PangoContext owned by the widget and updated to
9123 match future changes in the widget. Also, make
9124 gtk_widget_create_pango_layout() use this context. If we ever
9125 add a ::changed signal to PangoContext, this will make things
9126 much more convenient.
9128 * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
9129 in the appropriate places instead of destroying the layouts and
9132 * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
9133 in a few strategic places.
9135 Sun Jul 2 14:37:58 2000 Owen Taylor <otaylor@redhat.com>
9137 * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call
9138 gtk_widget_size_request() on reparented child, if one. Otherwise,
9139 queue_resize() on the child never results in it getting size-requested
9142 * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
9143 in option menus, so that (with luck) people won't copy it into
9144 their apps in the future.
9146 * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
9147 to gtk_option_menu_calc_size. This isn't perfect, but should fix
9148 a lot of problems with changing the size of the menu's menu
9149 items after adding it to the option menu.
9151 * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
9153 * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
9154 the text direction for a widget changes.
9156 * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
9157 ::direction_changed to get rid of various hacks.
9159 Sun Jul 2 13:19:12 2000 Owen Taylor <otaylor@redhat.com>
9161 * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
9164 Sun Jul 2 13:06:26 2000 Owen Taylor <otaylor@redhat.com>
9166 * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
9167 flag to the structure. Do not call XFreePixmap on pixmaps created
9168 by gdk_pixmap_foreign_new().
9170 Sun Jul 2 12:45:50 2000 Owen Taylor <otaylor@redhat.com>
9172 * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
9173 value using GdkRGB functionality given GdkColormap and GdkColor.
9174 (name not final, waiting for inspiration.)
9176 * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
9177 set the foreground/background of a GC using the GC's colormap
9178 and GdkRGB. (name not final, waiting for inspiration.)
9180 * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
9181 gdk_rgb_get_cmap(), put #define in gdkcompat.h.
9183 * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
9184 gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
9185 purely a function of the corresponding colormap. Make
9186 gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
9188 * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
9189 gdk_pixbuf_*create_from_xpm_* in terms of
9190 gdk_pixbuf_new_from_xpm_data(), move into platform independent
9193 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
9194 advantage of the new draw_rgb_32_image_dithalign.
9196 * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
9198 * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
9201 * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
9203 * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
9204 which we initialize from the drawable when the GC is created,
9205 if the drawable has a colormap.
9207 * gdk/x11/gdkgc-x11.c: include string.h for memset.
9209 * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
9211 * gtk/gtklayout.[ch]: Remove unsed configure serial member.
9213 Sat Jul 1 16:28:32 2000 Owen Taylor <otaylor@redhat.com>
9215 * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
9216 actually returning expose events, make sure to set
9217 the count field properly.
9219 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
9220 accidentally reintroced bug which always cleared
9221 the graphics_exposures value.
9223 Wed Jun 28 18:03:09 BST 2000 Tony Gale <gale@gtk.org>
9225 * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
9227 Wed Jun 28 17:49:05 BST 2000 Tony Gale <gale@gtk.org>
9229 * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
9231 Wed Jun 28 13:31:55 BST 2000 Tony Gale <gale@gtk.org>
9233 * docs/faq/gtk-faq.sgml: Start of Section 6.
9235 Mon Jun 26 19:37:04 2000 Owen Taylor <otaylor@redhat.com>
9237 * configure.in: Put 1.3.1 in warning message, not 1.3.0.
9239 (Fixes problem with drawing childless frames. Pointed out
9240 by and a first patch from Anders)
9242 * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
9243 compute a child_allocation, even if we don't have a child.
9245 * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
9246 Always chain to the parent's impl, even if we don't have a child.
9248 Mon Jun 26 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
9250 * gdk/gdkrgb.c: If possible, create only a single shm segment and
9251 use multiple parts of it instead of creating a bunch of separate
9252 segments, since the maximum number of segments per system is not
9253 large. (This might be worth backporting to GTK+-1.2.x if we make a
9256 * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
9257 structure in preparation for per-colormap GdkRGB.
9259 * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
9260 to False when we get EINVAL from shmget so that the caller of
9261 gdk_image_new can retry with a smaller segment size.
9263 Mon Jun 26 13:01:16 BST 2000 Tony Gale <gale@gtk.org>
9265 * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
9267 Fri Jun 23 17:54:23 2000 Tim Janik <timj@gtk.org>
9269 * configure.in: make the current version number 1.3.1 (binary age 0,
9272 * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
9273 gtkcompat.h is all we want.
9275 * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
9276 GLib primitive types. fixed g_type_register_fundamental() argument
9279 * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
9282 * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
9283 object code cleanup, comment trigraph fixes, etc...
9285 2000-06-23 Havoc Pennington <hp@redhat.com>
9287 * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark
9288 instead of making up a bogus name for first_para_mark
9290 * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow
9293 Thu Jun 22 17:43:51 BST 2000 Tony Gale <gale@gtk.org>
9295 * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
9297 2000-06-21 Havoc Pennington <hp@pobox.com>
9299 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
9300 we didn't check window->bg_pixmap != GDK_NO_BG.
9302 * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
9305 Thu Jun 22 14:02:19 BST 2000 Tony Gale <gale@gtk.org>
9307 * docs/faq/gtk-faq.sgm: Move file to here.
9308 TODO: Update Makfile.am
9310 Thu Jun 22 13:41:09 BST 2000 Tony Gale <gale@gtk.org>
9312 * docs/gtk-faq.sgm: Add Section 2
9314 Thu Jun 22 08:43:45 BST 2000 Tony Gale <gale@gtk.org>
9316 * docs/gtk-faq.sgm: New file. Start of DocBook
9319 Wed Jun 21 23:04:17 2000 Owen Taylor <otaylor@redhat.com>
9321 * configure.in (GDK_PIXBUF_MAJOR): Define version
9322 numbers for GDK_PIXBUF_*, as they get substituted
9323 into a header file. Need to consider versioning
9324 for gdk-pixbuf more carefully later.
9326 2000-06-21 Raja R Harinath <harinath@cs.umn.edu>
9328 Work with srcdir != builddir.
9329 * demos/testanimation.c: Don't include "gdk-pixbuf.h". Use
9330 <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
9331 * demos/testpixbuf.c: Likewise.
9332 * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
9333 * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h". Use
9335 * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h". Don't include
9337 * demos/Makefile.am (INCLUDES): Remove unneeded directories.
9339 Wed Jun 21 19:45:02 2000 Owen Taylor <otaylor@redhat.com>
9341 * TODO.xml: Change 1.4 version numbers to 2.0.
9343 Wed Jun 21 19:29:08 2000 Owen Taylor <otaylor@redhat.com>
9345 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
9346 fixups to GTK+ standard.
9348 Wed Jun 21 16:38:13 2000 Owen Taylor <otaylor@redhat.com>
9350 * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
9353 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
9356 * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
9357 gdk-pixbuf with GDK dependencies moved into GDK.
9359 * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
9360 move gdk-pixbuf-loader here until GObject has signals.
9362 * demos/: New directory of demos. Move demos from
9365 * demos/pixbuf-init.c: Small bit of code to check for
9366 loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
9367 set GDK_PIXBUF_MODULEDIR appropriately.
9369 * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
9370 define which no longer makes sense.
9372 2000-06-21 Havoc Pennington <hp@redhat.com>
9374 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
9375 gtk_get_default_language
9377 * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language):
9378 new function to get the default language
9380 * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c:
9381 s/gtk_text_view_style_values/gtk_text_style_values/
9383 * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
9384 Add a "language" field to tags.
9386 (gtk_text_tag_set_arg): Fix bug in setting
9387 "bg_full_height_set" tag.
9389 2000-06-21 Havoc Pennington <hp@redhat.com>
9391 * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
9394 * gtk/gtktexttypes.c: Remove UTF functions, use glib
9395 stuff instead when possible.
9397 * gtk/gtktexttypes.h: Delete some unused constants
9399 * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
9400 testtextbuffer.c: use glib instead of custom unicode routines
9402 Wed Jun 21 12:50:58 2000 Owen Taylor <otaylor@redhat.com>
9404 * docs/es/: Removed mistakenly added generated sgml
9406 * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
9407 Remove outdated info files.
9409 * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
9410 Moved tutorial files into subdir
9412 * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
9415 * docs/man/gtk_button.pod: Remove. (contents will be
9416 integrated into gtk-reference button page.)
9418 * configure.in docs/Makefile.am docs/tutorial/Makefile.am
9419 docs/faq/Makefile.am: Adjust for new organization
9421 2000-06-21 Christopher Blizzard <blizzard@redhat.com>
9423 * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
9424 not $(MKINSTALLDIRS)
9426 Wed Jun 21 12:24:28 2000 Owen Taylor <otaylor@redhat.com>
9428 * gtk/testgtk.c (create_text): Finish the job Elliot started
9429 of removing font setting test for text widget. (Since text widget
9430 and GdkFont are not deprecated, and cause portability problems.)
9432 Wed Jun 21 11:41:43 2000 Owen Taylor <otaylor@redhat.com>
9434 * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
9435 gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
9436 Remove use of libunicode in favor of new GLib functions.
9438 * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
9439 nano-x, framebuffer. The X11 include is just a hack until we get
9440 the necessary functions in gdkcolor.h, so there is no reason to
9441 add other includes of platforms.
9443 * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert
9444 window bigger than the screen change.
9446 * gtk/testgtk.c: Revert some random changes from Elliot
9447 that had no particular point and were causing testgtkrc
9448 not to function correctly.
9450 * gdk/gdkregion-generic.h: Revert change from Elliot. Just
9451 because GdkSegment and GdkRegionBox have the same fields,
9452 it doesn't mean that 'typedef GdkSegment GdkRegionBox'
9453 results in clearer code.
9455 * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
9456 gdk_input_translate_coordinates): Fix missed GdkObjectification
9458 2000-06-18 Elliot Lee <sopwith@redhat.com>
9460 * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
9461 * gtk/gtk{plug,socket}.h: Missed commits from previous.
9463 2000-06-20 Havoc Pennington <hp@redhat.com>
9465 * modules/linux-fb/Makefile.am: Make this compile
9466 without framebuffer enabled
9468 * gdk/linux-fb/Makefile.am: Add conditional to not build
9469 framebuffer unless specified in configure
9471 * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
9472 the size of the target instead of source if -1 was passed for
9475 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
9476 width/height confusion.
9478 2000-06-19 Havoc Pennington <hp@redhat.com>
9480 * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
9481 GDK_DRAWABLE_XID. In the future, we probably want to make it
9482 faster with G_DISABLE_CHECKS turned on.
9484 2000-06-14 Havoc Pennington <hp@redhat.com>
9486 * gdk/Makefile.am: add gdkpixmap.c
9488 * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
9489 s/gdk_image_init/_gdk_windowing_image_init
9491 * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
9494 * gdk/gdkcolor.h: make GdkColormap a GObject subclass
9496 * gdk/gdkcompat.h: remove GdkWindowType compat, since
9497 GdkWindowType is now non-deprecated;
9498 change gdk_window_get_type() compat to be
9499 gdk_window_get_window_type().
9501 * gdk/gdkdnd.h: make GdkDragContext a GObject.
9503 * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
9504 virtual GObject. Make all functions call into the vtable.
9505 Move gdk_image_put() guts in here. Remove GdkDrawableType
9506 and gdk_drawable_get_type(), these are now GdkWindow-specific.
9507 draw_image, get_depth, get_size, set_colormap, get_colormap,
9508 get_visual added to the vtable.
9510 * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
9511 GObject. Virtualize everything.
9512 (gdk_gc_new_with_values): remove check for destroyed window,
9513 because now GdkWindow::create_gc will check this.
9514 (gdk_gc_set_values): New function to set GC values, this
9515 was already implemented but wasn't in the header
9517 * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
9519 * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
9520 _gdk_window_draw_image(), remove _gdk_windowing_window_class,
9521 remove _gdk_window_class; add _gdk_window_impl_get_type() and
9522 _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
9523 _gdk_windowing_window_init, rename gdk_image_init to
9524 _gdk_windowing_image_init.
9526 * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
9527 (gdk_draw_layout): Remove check for destroyed window,
9528 because all the drawable methods already check it.
9530 * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
9531 Add gdkpixmap.c which contains implementation of GdkDrawable
9532 virtual table (by chaining to a platform-specific implementation
9535 * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
9536 GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
9537 GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
9538 GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
9541 * gdk/gdktypes.h: #include <glib-object.h>
9543 * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
9544 Move most functionality to platform-specific implementation
9545 object. GdkWindow itself now handles the backing store, then
9546 chains to the platform-specific implementation.
9547 (gdk_window_get_window_type): return GdkWindowType of the window.
9548 (gdk_window_peek_children): New routine, returns the children of
9550 (gdk_window_get_children): Was in X11-specific code and did
9551 XQueryTree. Changed to simply return a copy of window->children;
9552 so it can go in cross-platform code.
9554 * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
9556 * gdk/x11/gdkcolor-x11.c: implement X-specific parts of
9557 GdkColormap; just changed to use the new private data instead
9558 of casting to GdkColormapPrivate.
9560 * gdk/x11/gdkcursor-x11.c: added a couple typechecks to
9563 * gdk/x11/gdkdnd-x11.c: Change the way we access private fields
9564 (private data member in the GObject).
9565 (xdnd_manager_source_filter): Function had broken
9566 error handling, fix it (use gdk_error_trap_push).
9568 * gdk/x11/gdkdrawable-x11.c: This file now implements
9569 a base class for GdkWindowImplX11/GdkPixmapImplX11. This
9570 base class is purely for the convenience of the X port,
9571 and not part of the interface to cross-platform GDK.
9573 * gdk/x11/gdkevents-x11.c: Reflect various renamings.
9575 * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
9576 specific to X, and returned by the create_gc virtual method
9577 of GdkDrawableImplX11.
9578 (gdk_x11_gc_set_dashes): Change this to take an array of gint8
9579 rather than gchar, this was also changed in the GdkGC vtable.
9580 (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
9581 mask is 0, return immediately, instead of checking every flag.
9582 This is faster, and keeps us from segfaulting if values is NULL
9583 and the mask contains some nonzero flags.
9585 * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
9588 * gdk/x11/gdkglobals-x11.c: change type of grab window, since
9589 GdkWindowPrivate is gone.
9591 * gdk/x11/gdkim-x11.c: rename things that got renamed.
9593 * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
9594 remove the image_put stuff that got transferred to GdkDrawable.
9596 * gdk/x11/gdkinput.c: renamings
9598 * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
9600 * gdk/x11/gdkpixmap-x11.c: GObject conversion
9602 * gdk/x11/gdkprivate-x11.h: indentation fixes
9604 * gdk/x11/gdkproperty-x11.c: renamings
9606 * gdk/x11/gdkselection-x11.c: renamings
9608 * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
9609 implements the platform-specific "impl" object.
9610 Moved gdk_window_get_children to gdk/gdkwindow.c
9612 * gdk/x11/gdkx.h: Remove all the private structs and private datas
9613 that no longer exist. Add declaration of GdkGCX11 object here.
9614 Fix all the macros to still work.
9616 * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
9617 GdkDragContext from the boxed types since they are now GObjects.
9619 * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
9620 moved xthickness/ythickness into the instance. GtkStyleClass
9621 functions are now in the standard vtable for GtkStyle, so you have
9622 to create a GObject subclass to write a theme engine.
9623 (gtk_style_copy): fixed a leaked PangoFontDescription
9624 (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
9625 can be the standard GObject function.
9628 s/style->klass->[xy]thickness/style->[xy]thickness
9629 s/pango_layout_unref/g_object_unref/
9631 * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
9633 * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
9634 accessing GDK internals.
9636 * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
9637 accessing GDK internals.
9639 2000-06-18 Elliot Lee <sopwith@redhat.com>
9641 * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
9643 * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
9644 problem by calculating event position relative to the trough
9645 rather than the slider.
9646 * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
9648 * gdk/gdkgc.h: Add GDK_NOR.
9650 * configure.in, Makefile.am: Add modules top level dir
9651 * configure.in: Only use pangox library if building x11 target.
9652 * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
9654 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
9656 * gtk/gtkcolorsel.c: Change private class member to be named
9657 private_data throughout the file.
9659 * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
9660 private_data to avoid clashing with keyword.
9662 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
9664 * gdk/gdkdnd.h: Add comment to remove warning.
9666 Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
9668 * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
9669 Byelorussian language; changed the Makefile and file names
9672 Mon Jun 12 16:58:40 2000 Owen Taylor <otaylor@redhat.com>
9674 * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
9675 rather than gdk_window_hide; this makes things work
9676 correctly if the window is programmatically hidden while
9679 Sun Jun 11 12:46:19 2000 Owen Taylor <otaylor@redhat.com>
9681 * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
9682 cut and paste typo where wrong pixmap was being
9683 unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
9685 Sun Jun 11 10:22:36 2000 Owen Taylor <otaylor@redhat.com>
9687 * gtk/gtkselection.c (gtk_selection_bytes_per_item):
9688 Add helper function to compute format / bytes
9689 relationship. Use in a couple places to fix up
9690 errors which assume 8 * format.
9692 * gtk/gtkselection.c (gtk_selection_request): Use 32
9693 rather than 8 * sizeof (GdkAtom), to work correctly
9696 Thu Jun 8 21:54:51 2000 Christopher Blizzard <blizzard@redhat.com>
9698 * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
9700 (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
9703 * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
9704 checking macros return NULL since the function has a return value.
9706 Wed Jun 7 15:44:42 2000 Owen Taylor <otaylor@redhat.com>
9708 * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
9709 GTK+ from building at all.
9711 * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
9713 Mon Jun 5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
9715 * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
9716 gtk/Makefile.am: make it possible to configure gtk for different
9717 targets on the same platform. The library name is now
9718 libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
9719 flag. Only the x11 target compiles right now.
9720 * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
9721 gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
9722 * gdk/nanox/gdk*generic*: delete generic region code.
9723 * gdk/linux-fb/gdk*generic*: delete generic region code.
9724 * README.nanox: update information.
9726 Tue Jun 6 10:53:59 2000 Owen Taylor <otaylor@redhat.com>
9728 * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
9729 prepend not append. (Pointed out by Brett Hall.)
9731 Tue Jun 6 01:59:57 2000 Owen Taylor <otaylor@redhat.com>
9733 * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
9735 Mon Jun 5 16:00:09 2000 Owen Taylor <otaylor@redhat.com>
9737 * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
9738 need this later, and this makes sure that the atexit for
9739 glib gets called after that for GDK, so atexits are
9740 properly ordered for object leak checking.
9742 * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
9744 * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call
9745 pango_x_shutdown_display()
9747 * gtk/simple.c (main): Close window on destroy.
9749 Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
9751 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
9752 to treat initial creation different from setting with
9753 regards to the graphics-exposures parameter, so add a parameter
9754 indicating whether this is initial or not.
9756 Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
9758 * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
9759 to sort of work by adding an extra return_exposes arg
9760 to gdk_event_translate() - it might be better to simply
9761 deprecate the function altogether and force people to rewrite
9762 without it. gdk_window_scroll() handles most of it, and where
9763 gdk_window_scroll() doesn't work, simply redrawing more does.
9765 * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
9768 * gtk-config.in: Include PANGO_CFLAGS/LIBS.
9770 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
9771 bunch of pretty much useless /* Print debugging info */ comments
9772 which had drifted away from the code they were commenting.
9774 2000-06-02 Havoc Pennington <hp@pobox.com>
9776 * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
9777 is in working order.
9779 * gtk/testtext.c: Change to reflect anonymous mark API
9781 * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
9783 * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
9784 field, which was unused.
9786 * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
9789 * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*
9791 * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
9792 flag on the insertion point and selection bound
9794 Throughout, use GtkTextMark instead of GtkTextLineSegment, and
9795 make mark-manipulation functions take a GtkTextMark* instead of a
9798 * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to
9799 GtkTextMarkBody; will be used to detect attempts to delete
9800 the permanent marks (insert and selection bound)
9802 * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer
9804 Fri Jun 2 12:56:01 2000 Owen Taylor <otaylor@redhat.com>
9806 * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
9809 * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event):
9810 Honor DOUBLE_BUFFRED_FLAG
9812 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
9813 function to set the DOUBLE_BUFFERED flag.
9815 * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
9816 or not exposes done on the widget should be double-buffered.
9818 * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
9819 to be what would be expected. (Fixes problem with a
9820 g_return_if_fail() validating a TextDirection enumeration)
9822 Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
9824 * gtk/gtkwidget.c: Remove all references to
9825 offscreen flag which was no longer used.
9827 * gtk/gtkprivate.h (enum): Remove unused flags and compress.
9829 * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
9830 for non-null label_widget->parent.
9832 * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
9833 which no longer was used.
9835 * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
9837 * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
9840 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
9841 check for destroyed windows.
9843 Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
9845 * gtk/gtkimmulticontext.c: Add a finalize method and unref
9846 the slave context there.
9848 * gtk/gtkinvisible.[ch]: Make reference counting behavior
9849 identical to GtkWindow.
9851 Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
9853 * Makefile.am gdk/gdkpango.c: Copy the layout render function from
9854 pangox to here, so we can write them independent of rendering
9855 system, using GDK primitives.
9857 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
9858 gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
9859 since we have a rendering-system independent implementation in
9860 terms of draw_glyphs().
9862 * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
9863 function to render a single line.
9865 * gdk/x11/gdkpango.c: Move the guts of this file mostly
9866 into ../gdkpango.c, which simplifies things, since we
9867 don't have to deal with raw X gc's.
9869 Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
9871 * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
9872 get the logical attributes for a given GtkTextLine.
9874 Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
9876 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
9877 g_locale_get_codeset() to g_get_codeset() change.
9879 Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
9881 * gtk/testcalendar.c (calendar_font_selection_ok): Use font
9884 * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
9887 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
9888 redoing (vastly simplifying) for Pango. Still needs quite
9889 a bit of work. (Size selection is currently poor. List of
9890 predefined sizes is not a good idea, since all of these
9891 sizes won't necessarily be distinct.)
9893 Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
9895 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
9896 CODESET results for LANG=C.
9898 Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
9900 * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
9901 which takes a stringized pango font description;
9902 ignore the older 'font' and 'fontset' declarations.
9904 * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
9905 field with a GdkFont derived via gdk_font_from_description(),
9906 for compatibility. (Should we just remove it entirely?
9907 Probably too much compatibility breakage, but people
9908 should be migrating to the new Pango stuff as quickly
9911 Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
9913 * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
9915 Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
9917 * gtk/gtkcalender.c: Roughly pango-ized. Really needs
9918 redoing; there are some bugs in size allocation right
9919 now, the semi-existant distinction between header / day
9920 fonts was removed, but, with Pango, could actually
9921 be made functional in a nice way.
9923 * gtk/testcalender: Move calender from examples into this
9924 directory as a test program. (We really need to restrcture
9925 testgtk into a whole directory full of tests for every
9926 widget or functionality group, separated into multiple .c
9929 Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
9931 * gtk/testgtk.c (file_exists): Fix stupid typo that
9932 was keeping RC file from being loaded.
9934 * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
9937 Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
9939 * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
9940 Add function to load a GdkFont from a PangoFontDescription.
9942 2000-05-29 Tor Lillqvist <tml@iki.fi>
9944 * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
9945 variable should be of type GdkEventPrivate.
9947 Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
9949 * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
9950 to have any widget for the label, use a GtkLabel widget
9951 to display the text. (Based partially on a patch from
9954 (Quite a bit of code reorganization - strip 90% of the
9955 guts out of gtkaspectframe and add a single virtual
9956 func to GtkFrameClass - compute_child_allocation.)
9958 Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
9960 * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
9961 (Removed clist->row_center_offset field because caching
9962 it wasn't saving time or code, added private function
9963 _gtk_clist_create_cell_layout()).
9965 Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
9967 * gtk/gtkaccellabel.c: Pangoized.
9969 * gtk/[hv]ruler.c: Pangoized
9971 Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
9973 * gtk/gtkfilesel.c (gtk_file_selection_init):
9974 Use gtk_clist_set_column_auto_resize() to remove need
9975 need for manual column width computations.
9977 Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
9979 * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
9980 ensuring Pango correctness, and considerably simplifying the
9983 * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
9985 * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
9986 getting of numbers of lines.
9988 * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
9989 to the actual requested width of the lable, not to the wrap
9992 * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
9994 * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
9995 gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
9997 * gtk/gtktextview.c: Fix structure inheritance.
9999 * gtk/gtkprogressbar.c: Pangoize.
10001 Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
10003 * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
10006 * gtk/gtktextlayout.c (find_display_line_above): Fixed
10007 bug with computing line tops.
10009 * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
10011 Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
10013 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
10014 and y_offset coordinates to do what we need now. (The offset between
10015 buffer and layout coordinates has been reintroduced, but is a
10016 bit different than before.)
10018 * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
10019 handle the adjustments ourselves, and scroll as necessary using
10020 the new gdk_window_scroll().
10022 The advantage of this is that when we are incrementally revalidating,
10023 we are essentially rearranging things around the visible portion
10024 of the screen. With the old setup, the visible portion of the
10025 screen was moved around in the layout, so scrolling and redrawing
10026 to track that caused jumping of the display. Since we now
10027 control the scrolling ourselves, we can suppress this and
10028 only redraw when things actually change.
10030 Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
10032 * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
10033 the region not just redisplay it after-all, since we store the
10034 cursors in the LineDisplay. (Ugly interactions here between
10035 GtkLayout and GtkTextBTree here.)
10037 * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
10039 Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
10041 * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
10042 Added function to scroll contents of a window while keeping the
10043 window constant. Works by XCopyArea or guffaw-scrolling depending
10044 on the details of how the window is set up. (guffaw-scrolling
10045 still needs to be filled in.)
10047 Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
10049 * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
10050 move the debugging that was tied to a global variable
10053 * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
10055 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
10056 validated flag, in line data instead of setting height/width to
10057 -1. This allows us to perform operations with partially invalid
10058 buffer (using the old size for invalid lines) and thus to do
10059 incremental vaidation. Keep height/width aggregates up to date
10060 when deleting text and rebalancing the tree.
10062 * gtk/gtktextbtree.[ch]: Add functions validate a line
10063 (gtk_text_btree_validate_line), and to validate up
10064 to a number of pixels (gtk_text_btree_validate).
10066 * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
10067 that indicates that something is changed and a revalidation
10068 pass is needed. Change ::need_repaint to ::changed, and
10069 make it take old and new yranges instead of a rectangle.
10071 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
10072 the line_data_destroy() function from
10073 gtk_text_btree_add_view() to a virtual function in
10076 * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
10077 since we are handling partial repaints in a different fashion
10080 * gtk/gtktextbtree.[ch]: Only repaint the changed portion
10081 of the selection instead of queueing a repaint on the
10084 * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
10085 get_selection_bounds() down to btree, make the function
10086 in buffer a wrapper around the btree function.
10088 * gtk/gtktextlayout.[ch]: Add functions to check if the
10089 layout is valid and to recompute either a range of pixels
10090 aroudn a line or a certain total number of pixels.
10092 * gtk/gtktextlayout.[ch]: Cache a single line display;
10093 now that we only redraw the needed portions, the hit rate
10094 for this cache is quite high.
10096 * gtk/gtktextview.[ch]: Keep track of the first paragraph
10097 on the screen so that when re-laying-out the buffer, we can
10098 keep the same place. This requires connecting to ::value_changed
10101 * gtk/gtktextview.[ch]: Add idle functions to revalidate
10102 the buffer after we receive an ::invalidated signal.
10104 Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
10106 * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
10107 to max of allocation and layout size, not just to the
10110 * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
10111 Invalidate window so it gets redrawn properly.
10113 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
10114 to mean the entire window.
10116 * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
10117 into public header.
10119 Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
10121 * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
10122 to get the name of a mark.
10124 * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
10125 to find the paragraph from a y position.
10127 Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
10129 * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
10130 nodes have width/height >= 0, not > 0.
10132 Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
10134 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
10135 Add a size_only flag, so when we only need the size, we don't create
10136 useless appearance attributes.
10138 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
10139 duplicate setting of font description.
10141 * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
10143 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
10145 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
10146 EXTRA_DIST. It does not work well when the file that
10147 everything depends on is not in the tarball.
10149 Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
10151 * gtk/testgtk.c: Some hacks and fixes so that it basically
10152 works when not sitting in the GTK+ build tree.
10154 2000-05-03 Havoc Pennington <hp@redhat.com>
10156 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
10157 Properly determine the ordering of the tag root and the current
10158 line within the tree. Previous algorithm only worked if the tag
10159 root's immediate parent was the common root of both the current
10160 line and the tag root.
10162 Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
10164 * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
10167 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
10168 the widget text directional dynamically.
10170 * gtk/gtktextview.[ch]: Added functions to get and set default
10173 Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
10175 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
10176 in cursor location computation.
10178 Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
10180 * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
10181 vadjusment values properly when layout gets smaller.
10183 * gtk/gtktextview.c (need_repaint_handler): Areas being
10184 passed in are far completely inaccurate, and sometimes
10185 too small, so, for now, just queue a redraw on the
10186 whole visible region.
10188 2000-04-25 Havoc Pennington <hp@redhat.com>
10190 * gtk/gtktextbtree.c (summary_destroy): new function to
10191 destroy tag summary nodes
10192 (gtk_text_line_next_could_contain_tag): this function was
10193 totally broken if the line passed in wasn't below the tag
10195 (gtk_text_btree_first_could_contain_tag): In the tag == NULL
10196 "wildcard" case, we have to do a linear scan. Blah.
10197 (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
10198 we have to do the linear scan
10199 (tag_removed_cb): When a tag is removed from the tag table,
10200 remove the GtkTextTagInfo node from the btree.
10201 (gtk_text_btree_spew): Implement the spew function, for
10202 our debugging pleasure.
10204 Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
10206 * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
10207 a problem with referring to the wrong buffer.
10209 * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
10211 * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
10212 font description to gtk_style_new() - otherwise things
10213 don't work without a .gtkrc file.
10215 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
10216 tags table if we create it ourself, too.
10218 * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
10219 it was conflicting with XKB modifiers.
10221 * gtk/gtktextview.[ch]: Add simple support for
10224 Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
10226 * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
10227 with deletion from last commit.
10229 Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
10231 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
10232 in the context from the current locale.
10234 * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
10235 context, not hardcoded value.
10237 * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
10240 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
10242 * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
10243 attributes - that doesn't handle partial-glyph selection
10244 properly. Instead use new pango_layout_line_get_x_ranges()
10245 functionality to draw the selection.
10247 * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
10248 now properly handles out-of-range coordinates.
10250 * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
10252 * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
10255 * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
10256 for paragraphs opposite to the base direction of the widget.
10258 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
10260 * gtk/gtktextlayout.c: Don't split segments on marks, since that
10261 causes Arabic words to reshape as you cursor through.
10263 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
10264 cursor position when moving vertically with the arrow keys and
10265 scrolling with page-up/page-down. (Arrow keys save only the X,
10266 scrolling saves both X and Y.)
10268 This means you can line-up / line-down or page-up / page-down
10269 without losing your place, and also that moving vertically
10270 with the cursor keys keeps the same X position, not the same
10273 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
10274 arrow keys move by display lines, not paragraphs.
10276 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
10278 * gtk/gtklayout.c: Make sure that the bin window is at least
10279 as big as the allocation. (Should we also make sure that the
10280 bin window is big enough to completely cover widget->window?)
10282 * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
10283 function to get the onscreen rectangle.
10285 * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
10286 for offsets in window coordinates.
10288 Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
10290 * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
10293 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
10294 from the widget direction.
10296 * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
10297 Add a "direction" attribute.
10299 * gtk/gtktextview.c: global s/tkxt/text_view/.
10301 * gtk/testtext.c: Added long block of text in Arabic, to test out
10302 the direction attributes. (Some problems with the shaping system
10303 for arabic become obvious - like the fact the cursor splits words
10304 into unjoined pieces.)
10306 Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
10308 * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
10310 * gtk/gtktextlayout.c: Fix up alignment.
10312 * gtk/testtext.c: Add some tests for centering, wrapping.
10314 Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
10316 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
10317 Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
10318 If we wrote GTK+-specific layout-render function this could just replace
10319 the draw_layout() operation in the vtable.
10321 * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
10322 pango_layout_get_cursor_pos() and use that function.
10324 * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
10325 is a non-static symbol.
10327 * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
10328 with gtk_text_btree_find_line_by_y()
10330 * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
10331 renderer that handles GtkTextAppearance attributes.
10333 * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
10335 - Move the values in the style that don't affect geometry into a
10336 GtkTextAppearance structure.
10337 - Change underline to take a PangoUnderline and "font" a string
10338 representation of a font description
10339 - Add a "font_desc" attribute which takes a FontDescription structure.
10341 * gtk/gtktextlayout.[ch]:
10343 - Get rid of the display-line list per each line. Instead, we
10344 generate, on demand, a GtkTextLineDisplay structure which]
10345 contains a PangoLayout * and other necesary information
10346 (offsets, cursor locations) for displaying a paragraph.
10347 - Get rid of the code to wrap lines, create display chunks,
10348 etc. Instead, we just go through a paragraph and convert
10349 it into the necessary inputs to a PangoLayout.
10350 - Implement a new attribute type, GtkTextAttrAppearance. This
10351 holds a GtkTextAppearance, and is used to pass colors,
10352 stipple, etc, through from the layout to the display without
10353 having to use lots and lots of individual attributes.
10354 - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
10355 in terms of PangoLayout functions.
10357 * gtk/gtktextview.c:
10359 - Handle passing the necessary PangoContext to the layout
10360 - Some fixups in painting to deal with the automatic backing store
10361 and offsetting of GTK+-1.4
10362 - Add a style_set handler so that the default style reacts
10363 properly to theme changes.
10365 * gtk/gtktext?*.[ch]: Random code-style fixes.
10367 * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
10369 Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
10371 * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
10372 in original form preparatory to Pango-ization and gdkimcontext-ization.
10374 Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
10376 * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
10377 so that we can derive from gtkimcontext in language bindings properly.
10379 Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
10381 * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
10382 Add a compose table including (almost) all the compose combinations
10383 from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
10384 data in the XIM implementation.
10386 * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
10387 Moved functions to convert keyvalues from and to unicode here from
10388 the win32 port and made them public.
10390 Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
10392 * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
10394 Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
10396 * gtk/gtkimcontext.[ch]: Base class for new input context system
10398 * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
10399 the real input context implementation to be loaded from modules
10400 and switched on the fly.
10402 * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
10403 context that just does direct keysymbol => unicode translation.
10405 * gtk/gtkentry.[ch]: Start switching editing over to using
10406 GtkInputContext. (No handling of preedit yet.)
10408 Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
10410 * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
10411 many substitutions. (klass should not be subsituted.)
10413 Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
10415 * configure.in: Add checks for Pango
10417 * configure.in docs/Makefile.am: Add test for sgml2html
10418 and allow 'make dist' without building html, but print out
10419 warnings in that case. (For making snapshots)
10421 * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
10422 Add Pango libraries and C flags
10424 * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
10425 Add function (gdk_draw_layout) to draw a pango layout.
10427 * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
10428 for getting Pango contexts for GDK.
10430 * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
10432 * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
10435 * gtk/gtkentry.c: Hack in simple Hebrew input with direct
10436 keysym => unicode translations. More languages can be added
10437 here, but real input-method support is needed.
10439 * docs/Changes-1.4.txt: Added note about entry behavior.
10441 * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
10442 to set the reading direction for a widget and the global direction.
10443 Add test which allows toggling the global direction. Two private
10444 flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
10446 * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
10447 gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
10449 * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
10451 * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
10452 underlining now handled by Pango.
10454 * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
10455 to RCStyle and Style. (Having both this and the old font name and GdkFont
10458 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
10459 convenience functions for creating contexts and layouts for widgets.
10461 * gtk/testgtk.c: Enhance label tests with multilingual labels.
10463 2000-05-29 Jonathan Blandford <jrb@redhat.com>
10465 * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
10466 titles to be active, even if they aren't visible.
10467 (gtk_clist_column_titles_passive): Ditto.
10469 2000-05-21 Nils Barth <nils_barth@post.harvard.edu>
10473 * gtktypeutils.h: Spelling/grammar fixes in comments.
10475 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
10477 * gdk/nanox/*.h: add missing header files.
10479 Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
10481 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
10482 send_event to TRUE.
10483 (gtk_drawing_area_size): queue a resize.
10485 Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
10487 * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
10488 the handlers, also invalidate them. bug nailed down by Karl Nelson
10489 <kenelson@ece.ucdavis.edu>.
10491 Fri May 19 06:49:23 2000 Tim Janik <timj@gtk.org>
10493 * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
10494 "(nil)" foundries, patch from Grigorios Magklis.
10496 * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
10497 on non-available fonts, based on a patch by Grigorios Magklis
10498 <maglis@cs.rochester.edu>.
10500 2000-05-18 Elliot Lee <sopwith@redhat.com>
10502 * gdk/x11/gdkregion-generic.c: If a region does not have any
10503 rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
10504 instead of GDK_OVERLAP_RECTANGLE_IN.
10506 2000-05-17 Jonathan Blandford <jrb@redhat.com>
10508 * gtk/gtklayout.c (gtk_layout_map): Remove references to
10509 OFFSCREEN, as it is no longer necessary.
10511 Wed May 17 10:52:12 2000 Owen Taylor <otaylor@redhat.com>
10513 * gtk/gtkcolorsel.c: Patch from David Santiago
10514 <mrcooger@cyberverse.com> to change things so that the
10515 indicator of the active palette entry is done independently,
10516 not via the focus, since it should always be visible.
10518 2000-05-17 Tor Lillqvist <tml@iki.fi>
10520 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
10521 refcount leaks as in the X11 backend.
10523 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
10526 * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
10527 backend. Add _gdk_windowing_window_destroy().
10529 * gtk/gtkcolorsel.c: Include correct backend-specific header.
10530 Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
10531 either, but these probably do exist on nanox?)
10533 * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
10534 which isn't necessarily defined by <math.h>.
10536 * gtk/gtkobject.c (gtk_object_init): Don't go up the class
10537 ancestry past GtkObject.
10539 * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
10542 * gtk/gtk.def: Update corresponding to recent changes.
10544 * gtk/makefile.{cygwin,msc}: Updates.
10546 Fri May 12 18:46:51 2000 Owen Taylor <otaylor@redhat.com>
10548 * docs/Changes-1.4.txt: A bit of editing.
10550 * gdk/gdkwindow.c (_gdk_window_clear_update_area)
10551 * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
10552 to clear the update area for the window, and clear it
10553 when hiding a window.
10555 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
10556 if window destroyed.
10558 * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
10560 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
10561 gdk_window_destroy() to the generic code, since there was a lot of
10562 window-system-independent logic it in. Add a function:
10564 _gdk_window_destroy()
10566 to the internal API to destroy a window without unreferencing it.
10569 _gdk_windowing_window_destroy()
10571 That does the windowing-system-dependent part of destroying
10574 Fri May 12 11:07:41 2000 Owen Taylor <otaylor@redhat.com>
10576 * gtk/testgtk.c: Fix various memory leaks of pixmaps.
10578 Fri May 12 11:06:10 2000 Owen Taylor <otaylor@redhat.com>
10580 * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
10581 Make gtk_widget_shape_combine_mask() keep a reference count on
10582 the pixmap since it keeps it around.
10584 Fri May 12 10:53:29 2000 Owen Taylor <otaylor@redhat.com>
10586 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
10589 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
10590 leak with event filters.
10592 Thu May 11 14:29:44 2000 Owen Taylor <otaylor@redhat.com>
10594 * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
10595 signal handlers with the right data arguments. (Fixes
10596 some warnings when a widget was repeatedly set as a drag
10599 * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
10600 window so we can avoid avoid setting the DND properties on the
10601 toplevel window repeatedly.
10603 2000-05-13 Tor Lillqvist <tml@iki.fi>
10605 * gdk/win32/gdkwin32.h: Define more message types missing from
10608 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
10609 call gdk_window_destroy_notify(). It was never called. This
10610 probably meant that the GdkWindow was never freed. Thanks Owen for
10613 * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
10614 window as destroyed before calling DestroyWindow(). DestroyWindow()
10615 causes a call to the window procedure (gdk_WindowProc), which
10616 calls gdk_event_translate(), which calls
10617 gdk_window_destroy_notify(), which gets confused unless the window
10618 is set as destroyed.
10620 * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
10621 this function to indicate it's win32 only. Put inside #ifdef
10624 * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
10625 debugging function. (gdk_event_translate:) Add a default branch
10626 that uses the above function to print debug messages with all
10627 Windows messages symbolically.
10629 * gdk/win32/gdkprivate-win32.h: Declare it, and
10630 gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
10632 Fri May 12 20:07:32 2000 Tim Janik <timj@gtk.org>
10634 * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
10635 public header file.
10637 Fri May 12 17:13:32 2000 Tim Janik <timj@gtk.org>
10639 * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
10641 * gtk/gtktext.c: made the adjustments no-construct args, simply
10642 provide default adjustments.
10643 (gtk_text_destroy): release adjustments.
10645 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
10646 adjustment argument non-construct.
10648 * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
10649 instead of in finalize.
10650 (gtk_progress_get_text_from_value):
10651 (gtk_progress_get_current_text):
10652 (gtk_progress_set_value):
10653 (gtk_progress_get_percentage_from_value):
10654 (gtk_progress_get_current_percentage):
10655 (gtk_progress_set_percentage):
10656 (gtk_progress_configure): ensure an adjustment is present.
10658 Thu May 11 01:24:08 2000 Tim Janik <timj@gtk.org>
10660 * gtk/gtkcolorsel.[hc]:
10661 * gtk/gtkcolorseldialog.[hc]:
10662 * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
10663 their parent implementation, use bit fields for boolean values, don't
10664 create unused widgets, usage of glib types, braces go on their own
10665 lines, function argument alignment, #include directives etc. etc. etc..
10667 * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
10669 Wed May 10 23:29:52 2000 Tim Janik <timj@gtk.org>
10671 * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
10673 * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
10676 * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
10678 (gtk_combo_destroy): don't keep a pointer to a destroyed window.
10680 * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
10681 to NULL when the toplevel is getting destroyed.
10682 (gtk_menu_set_tearoff_state): same here for the tearoff_window.
10683 (gtk_menu_destroy):
10684 (gtk_menu_init): store the information of whether we have to
10685 readd the initial child ref_count during destruction in a new
10686 GtkMenu field needs_destruction_ref_count.
10688 * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
10689 here, those reading: learn from my mistake! ;)
10690 in order for set_?adjustment to support a default adjustemnt if
10691 invoked with an adjustment pointer of NULL, the code read (pseudo):
10692 if (v->adjustment) unref (v->adjustment);
10693 if (!adjustment) adjustment = adjustment_new ();
10694 if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
10695 now imagine the first unref to actually free the old adjustment and
10696 adjustment_new() creating a new adjustment from the very same memory
10697 portion. here, the latter comparision will unintendedly fail, and
10698 all hell breaks loose.
10699 (gtk_viewport_set_hadjustment):
10700 (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
10701 after unreferencing it.
10703 * gtk/gtkcontainer.[hc]: removed toplevel registration
10704 functions: gtk_container_register_toplevel(),
10705 gtk_container_unregister_toplevel() and
10706 gtk_container_get_toplevels() which had wrong semantics
10707 anyways: it didn't reference and copy the list.
10709 * gtk/gtkwindow.c: we take over the container toplevel registration
10710 bussiness now. windows are registered across multiple destructions,
10711 untill they are finalized. the initial implicit reference count
10712 users are holding on windows is removed with the first destruction
10714 (gtk_window_init): ref & sink and set has_user_ref_count, got
10715 rid of gtk_container_register_toplevel() call. add window to
10717 (gtk_window_destroy): unref the window if has_user_ref_count
10718 is still set, got rid of call to
10719 gtk_container_unregister_toplevel().
10720 (gtk_window_finalize): remove window from toplevel list.
10721 (gtk_window_list_toplevels): new function to return a newly
10722 created list with referenced toplevels.
10723 (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
10725 * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
10726 adjustment a non-construct arg.
10727 * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
10728 * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
10729 * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
10731 * gtk/gtkrange.c: added some realized checks.
10732 (gtk_range_destroy): get rid of the h/v adjustments in the
10733 destroy handler instead of finalize. remove timer.
10734 (gtk_range_get_adjustment): demand create adjustment.
10736 * gtk/gtkviewport.c: made h/v adjustment non-construct args.
10737 we simply create them on demand now and get rid of them in
10738 the destroy handler.
10739 (gtk_viewport_destroy): get rid of the h/v adjustments in the
10740 destroy handler instead of finalize.
10741 (gtk_viewport_get_hadjustment):
10742 (gtk_viewport_get_vadjustment):
10743 (gtk_viewport_size_allocate): demand create h/v adjustment
10746 * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
10747 gtk_widget_real_destroy () functionality.
10748 (gtk_widget_real_destroy): reinitialize with a new style, instead
10749 of setting widget->style to NULL.
10751 Fri May 5 13:02:09 2000 Tim Janik <timj@gtk.org>
10753 * gtk/gtkcalendar.c:
10754 * gtk/gtkbutton.c: ported _get_type() implementation over to
10755 GType, either to preserve memchunks allocation facilities,
10756 or because Gtk+ 1.0 GtkTypeInfo was still being used.
10758 * gtk/gtkobject.[hc]: derive from GObject. ported various functions
10759 over. prepare for ::destroy to be emitted multiple times.
10760 removed reference tracer magic. chain into GObjectClass.shutdown()
10761 to emit ::destroy signal.
10763 * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
10766 * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
10773 * gtk/gtkargcollector.c:
10774 * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
10775 not being a fundamental anymore, and to work with the new
10776 type system (nuked fundamental type varargs clutter).
10778 * gtk/*.c: install finalize handlers in the GObjectClass
10779 part of the class structure.
10780 changed direct GTK_OBJECT()->klass accesses to
10782 changed direct object_class->type accesses to GTK_CLASS_TYPE().
10784 * gtktypeutils.[hc]: use the reserved fundamental ids provided by
10785 GType. made most of the GTK_*() type macros and Gtk* typedefs
10786 simple wrappers around macros and types provided by GType.
10787 most notably, a significant portion of the old API vanished:
10790 GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
10791 GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
10794 GTK_TYPE_C_CALLBACK,
10798 gtk_type_set_varargs_type(),
10799 gtk_type_get_varargs_type(),
10800 gtk_type_check_object_cast(),
10801 gtk_type_check_class_cast(),
10802 gtk_type_describe_tree(),
10803 gtk_type_describe_heritage(),
10805 gtk_type_children_types(),
10806 gtk_type_set_chunk_alloc(),
10807 gtk_type_register_enum(),
10808 gtk_type_register_flags(),
10809 gtk_type_parent_class().
10810 replacements, where available are described in ../docs/Changes-1.4.txt.
10811 implemented compatibility functions for the remaining API.
10813 * configure.in: depend on glib 1.3.1, use gobject module.
10815 Thu May 11 12:39:50 2000 Owen Taylor <otaylor@redhat.com>
10817 * TODO.xml: Various updates to current status.
10819 Wed May 10 20:25:04 2000 Owen Taylor <otaylor@redhat.com>
10821 * gtk.m4: Print out version when test succeeds.
10823 Wed May 10 16:38:17 2000 Owen Taylor <otaylor@redhat.com>
10825 * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
10826 gtk/gtkhsv.[ch]: Color selection dialog rewrite.
10828 (Original triangle color selector from Simon Budig
10829 <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
10830 from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
10831 Santiago <mrcooger@cyberverse.com>)
10833 * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
10834 out into a separate widget.
10836 * gtk/testgtk.c: Add some checkbuttons for toggling palette
10837 and opacity controls.
10839 Wed May 10 16:08:09 2000 Owen Taylor <otaylor@redhat.com>
10841 * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that
10842 snuck in prematurely.
10844 2000-05-07 Tor Lillqvist <tml@iki.fi>
10846 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
10847 had deleted a ! operator by mistake, which caused
10848 GDK_SELECTION_CLEAR events never to be generated, which caused
10849 only the first copy to the clipboard from an gtkeditable to
10850 actually cause a copy to the Windows clipboard.
10852 2000-05-06 Tor Lillqvist <tml@iki.fi>
10854 * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
10855 compilation, too. Current mingw gcc distributions include the
10856 necessary headers. Also the necessary IIDs are now in mingw
10857 headers/libraries, and own definitions unnecessary.
10859 More hacking on OLE2 DND, still doesn't work though, and thus
10862 * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
10865 Sat, 6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
10867 * gdk/nanox/*: nano-X port work in progress.
10868 * gdk/simple.c: simple test for Gdk.
10869 * README.nanox: notes about the port: read this first!
10870 * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
10873 Fri May 5 11:18:47 2000 Owen Taylor <otaylor@redhat.com>
10875 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
10876 gdk_window_clear() into common code, implement in terms of
10877 gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
10878 not redirected to the backing rectangle.
10880 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
10882 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
10883 EXTRA_DIST. It does not work well when the file that
10884 everything depends on is not in the tarball.
10886 Tue Apr 25 22:20:41 2000 Owen Taylor <otaylor@redhat.com>
10888 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
10889 with recursion where process_updates() is called from
10890 an expose handler. (GtkTextView is highly broken in
10891 doing this, but it should work, so it is a nice test
10894 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
10896 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
10897 handle the case where updates are queued during processing of
10900 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
10902 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
10903 window is on gdk_display - use that instead of segfaulting.
10905 Thu May 4 02:04:46 2000 Tim Janik <timj@gtk.org>
10907 * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
10908 broken and require an empty arg, give it to them.
10910 Fri Apr 28 19:34:32 2000 Tim Janik <timj@gtk.org>
10912 * gtk/gtklabel.h: indentation fixes.
10914 2000-05-02 Tor Lillqvist <tml@iki.fi>
10916 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
10917 draw too narrow or too low arcs, they seem to fail, at least with
10918 some display drivers.
10920 * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
10922 Large changes to the Win32 backend, partially made necessary by
10923 the changes to the backend-independent internal
10924 structures. Attempts to implement similar backing store stuff as
10925 on X11. The current (CVS) version of the Win32 backend is *not* as
10926 stable as it was before the no-flicker branch was merged. A
10927 zipfile with that version is available from
10928 http://www.gimp.org/win32/. That should be use by "production"
10929 code until this CVS version is usable. (But note, the Win32
10930 backend has never been claimed to be "production quality".)
10932 * README.win32: Add the above comment about versions.
10934 * gdk/gdkwindow.c: Don't use backing store for now on Win32.
10936 * gdk/gdk.def: Update.
10938 * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
10939 presumably be replaced by some more better mechanism as 1.4 gets
10940 closer to release shape.
10942 * gdk/makefile.{cygwin,msc}: Update.
10944 * gdk/win32/*.c: Correct inclusions of the backend-specific and
10945 internal headers. Change code according to changes in these. Use
10946 gdk_drawable_*, not gdk_window_* where necessary.
10948 * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
10951 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
10952 to interpret single characters as UTF-8. Thanks to Hans Breuer.
10953 Use correct function name in warning messages.
10955 * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
10956 GSourceFuncs gdk_event_prepare and gdk_event_check.
10957 (gdk_event_get_graphics_expose): Do implement, use
10958 PeekMessage. Thanks to Hans Breuer.
10959 (event_mask_string): Debugging function to print an GdkEventMask.
10960 (gdk_pointer_grab): Use it.
10962 * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
10963 (old) book I used claimed was Hangul actually is CJK Unified
10964 Ideographs Extension A. Also, Hangul Syllables were missing.
10967 * gdk/win32/gdkgc-win32.c: Largish changes.
10969 * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
10970 g_win32_getlocale() from GLib, and not setlocale() to get current
10973 * gdk/win32/gdkprivate-win32.h
10974 * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
10975 gdkwin32.h, similarily as in the X11 backend.
10977 * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
10978 assignment was used instead of equals in if test. Thanks to Hans
10981 * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
10984 * gdk/win32/makefile.{cygwin,msc}
10985 * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
10986 path to the Win32 headers that works also with the mingw compiler.
10988 * gtk/gtkstyle.c: Include <string.h>.
10990 2000-04-26 Havoc Pennington <hp@redhat.com>
10992 * gtk/gtklabel.c (gtk_label_get_text): Add this function,
10993 replacing the broken gtk_label_get ()
10995 2000-04-15 Havoc Pennington <hp@pobox.com>
10997 * gdk/gdkdnd.h: clean up enum format, remove extra comma,
10998 this keeps scanner scripts from getting confused.
11000 * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
11001 data, rather than void
11003 2000-04-15 Tor Lillqvist <tml@iki.fi>
11005 * gtk/gtkclist.c (gtk_clist_motion)
11006 * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
11007 with is_hint FALSE, get x and y from the event. They used to be
11008 used uninitialised. The Win32 backend never sends motion events
11009 marked as hints. This for instance fixes the annoying file and
11010 font selector behaviour in the Win32 version.
11012 2000-04-14 Tor Lillqvist <tml@iki.fi>
11014 * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
11015 gtk_private_n_signals variables, they are used by some software,
11018 * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
11019 installation directory from the Registry, where the installer
11020 should have put it.
11022 Fri Apr 7 17:19:27 2000 Owen Taylor <otaylor@redhat.com>
11024 * gdk/x11/Makefile.am: Fix problem with installation directory for
11027 * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
11028 <mrcooger@cyberverse.com> so that when selecting menus with the
11029 mouse, the first item will not be selected, but when selecting
11030 with an accelerator, or navigating left-right on a menubar with
11031 the menus popped up, the first item will be selected.
11033 2000-04-05 Dan Damian <dand@dnttm.ro>
11035 * configure.in: Added "ro" to ALL_LINGUAS.
11037 Wed Apr 5 00:08:36 2000 Owen Taylor <otaylor@redhat.com>
11039 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
11042 * Makefile.am (EXTRA_DIST): Fix typo.
11044 * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
11045 to catch gdkconfig.h
11047 * gtk/gtkitemfactory.c: Added FIXME.
11049 2000-03-30 Jonathan Blandford <jrb@redhat.com>
11051 * gtk/gtkpaned.c (gtk_paned_get_position): oops.
11052 s/return_if_fail/return_val_if_fail/g and add a return value.
11054 Mon Mar 27 20:56:14 2000 Owen Taylor <otaylor@redhat.com>
11056 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up
11059 * gdk/gdkinput.h: Fix missing line from merge.
11061 Mon Mar 27 20:39:49 2000 Owen Taylor <otaylor@redhat.com>
11063 * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
11064 instead of gdkprivate.h.
11066 Sun Mar 12 15:19:24 2000 Owen Taylor <otaylor@redhat.com>
11068 * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
11069 parent class to correctly be GtkDialogClass.
11071 Thu Feb 24 23:58:21 2000 Owen Taylor <otaylor@redhat.com>
11073 * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
11074 toplevel windows and their immediate children by their parents,
11075 since the size of toplevel windows is out of our immediate
11076 control and we don't get any real benefit from trying to track
11077 this size for clipping.
11079 * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
11080 for input_only windows.
11082 * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
11083 to fix some hacks and make sure that we don't try to set the
11084 background of input only windows.
11086 Thu Feb 24 18:11:46 2000 Owen Taylor <otaylor@redhat.com>
11088 * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
11089 the _really_ internal stuff, and leave gdkprivate.h for the fake private
11090 stuff that we've traditionally exposed.
11092 * gdk/**.c: Use gdkinternals.h where appropriate.
11094 * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
11095 not include gdkprivate-x11.h, move all stuff of conceivable public
11096 interest into gdkx.h; keep all really private stuff in
11097 uninstalled header gdkprivate-x11.h.
11099 * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
11100 image->image_put on windows through a new function _gdk_window_draw_image()
11101 to allow us to do backing store for images. (Sort of ugly)
11103 * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
11104 contexts locally so that we can offset them properly when drawing
11105 onto backing pixmaps.
11107 * gdk/gdkinput.h: Reindented
11109 * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
11110 pixmap or color for the window, so we can properly initialize
11111 our double-buffer pixmaps, and also so that we temporarily set
11112 a background of None while scrolling.
11114 * gdk/gdkregion.h: Revise region boolean operators to have an
11115 interface that is actually convenient - switch from creating new
11116 regions on every op, to "methods" that modify existing regions
11117 (A = A OP B). 3 argument forms which allow dest == src, would also
11118 be possible, but the current interfaces seem to map nicely
11119 onto what needs to be done. (There is quite a lot of region
11122 * gdk/gdkregion.h: Add constructor from rectangle and a copy
11125 * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
11126 gdkpoly-generic.h: Copy region code from Xlib, switch it over
11127 to 32 bit coordinates, modify it to be mostly GTK+ style
11128 and to have interfaces that match gdkregion.h.
11130 * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
11131 double-buffered drawing. gdk_window_begin_paint_{rect,region}()
11132 create a backing pixmap and redirect all drawing to
11133 that backing pixmap until a matching gdk_window_end_paint().
11135 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
11136 Create a special drawable class for GtkWindow's that
11137 redirects the drawing to the backing pixmap as necessary
11138 and then calls the real operations in _gdk_windowing_window_class.
11140 * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
11141 Store invalid region for each window. Generate expose events for invalid
11142 region in an idle. This replaces both the expose compression
11143 and the redrawing queuing in GTK+. It is both more efficient and
11144 simpler than either one individually and far more so then the
11147 * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
11148 Emulate 32 bit coordinates for windows with 16 bit coordinates
11149 by offsetting drawing, guffaw scrolling techniques and
11150 mapping/unmapping child windows as necessary.
11152 * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
11153 where, when invalid regions are processed, the region is stored,
11154 and if expose events come in that are detectably duplicate
11155 the processed exposes (by comparison of event serial numbers),
11156 the stored region is subtracted out of those exposes.
11158 * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
11159 regions newly exposed when scrolling or resizing windows.
11160 This, combined with forcing processesing of queued invalidated
11161 regions, gives nice flicker-free scrolling.
11163 * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
11164 invalidated regions after every scroll.
11166 * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
11167 emulation in GDK. Its, for all practical purposes just a
11168 GtkViewport/GtkFixed hybrid now.
11170 * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
11171 (16-bit) structures as necessary instead of just casting.
11173 * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
11174 in terms of the structures from gdkregion-generic.c, using appropriate
11175 offsets from GDK to X11 coordinates. Cache clip mask and
11176 origin and ts origin locally and only flush to the server
11177 when drawing, to avoid constantly setting and resetting these
11178 values when offsetting GC's for scrolling and backing pixmaps.
11180 * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
11182 * gtk/gtkcontainer.c: Call process_all_updates at end
11183 of resizing to reduce flicker. (Avoids having redraw
11184 lag arbitrarily behind resize under some circumstances)
11186 * gtk/gtkentry.c: Remove old backing store code, and simply take
11187 advantage of the new backing store capabilities of GDK.
11189 * gtk/gtkmain.c: Simple implementation of widget backing
11190 store - simply push a paint while handling each expose.
11191 (Should really be configurable widget for widget.)
11193 * gtk/gtkwidget.c: Remove all the old complicated redraw
11194 code, and simply invalidate the GDK windows from
11195 gdk_window_queue_clear(), etc. (Sigh, so much carefully
11196 debugged complexity ... gone to the winds.)
11198 Remove all the code for suppressing expose events while
11199 resizes are pending; this isn't needed since the invalid
11200 areas won't be processed until after the resizes are
11201 processed, since they are in a lower priority idle.
11203 Thu Feb 24 15:37:41 2000 Owen Taylor <otaylor@redhat.com>
11205 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
11206 and height of dest rectangle for non-intersecting rectangles.
11208 Sun Feb 20 16:47:31 2000 Owen Taylor <otaylor@redhat.com>
11210 * gtk/gtkwidget.h: Make GtkAllocation just a typedef
11213 Sun Feb 20 11:27:00 2000 Owen Taylor <otaylor@redhat.com>
11215 * gdk/gdk{events,image,private,types,window}.h
11216 gdk/x11/gdkinputprivate.h: Change all coordinates
11217 from int16 to int. Also, Change width and height from
11218 unsigned to signed to avoid all the stupid C
11221 Sat Feb 19 12:01:53 2000 Owen Taylor <otaylor@redhat.com>
11223 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
11224 Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
11225 Add some more detailed checking.
11227 * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
11228 New function to retrieve the depth of a drawable.
11230 * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
11231 field, reorder fields to save memory.
11233 Mon Dec 13 14:06:03 1999 Owen Taylor <otaylor@redhat.com>
11235 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
11236 of the background image instead of scaling the background down to
11239 * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
11240 which temporarily set slider to wrong size.
11242 * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
11245 Wed Nov 17 18:36:05 1999 Owen Taylor <otaylor@redhat.com>
11247 2000-03-23 Jonathan Blandford <jrb@redhat.com>
11249 * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
11251 2000-03-17 Tor Lillqvist <tml@iki.fi>
11253 * gdk/win32/gdkevents-win32.c: Remove the #ifndef
11254 USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
11256 * gdk/win32/gdkfont-win32.c
11257 * gdk/win32/gdkproperty-win32.c
11258 * gdk/win32/gdkselection-win32.c
11259 * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
11262 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
11264 * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
11266 Mon Mar 13 18:37:55 2000 Owen Taylor <otaylor@redhat.com>
11268 * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
11269 is called without trapping X errors.
11271 Fri Feb 25 10:48:53 2000 Owen Taylor <otaylor@redhat.com>
11273 * gtk/gtkrc.*: Fix problem where stray '"' characters found their
11274 way into the fontset lists.
11276 Tue Feb 22 08:52:52 2000 Tim Janik <timj@gtk.org>
11278 * gtk/gtkthemes.h: add extern "C" scope.
11280 Mon Feb 21 20:16:42 2000 Lars Hamann <lars@gtk.org>
11282 * gtk/gtkclist.c: applied patch from Guy Harris <guy@netapp.com>
11283 to make appends to the list constant. (gtk-guy-990901-0.patch)
11285 Mon Feb 14 22:50:10 2000 Tim Janik <timj@gtk.org>
11287 * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
11288 for the typename hash table.
11290 Mon Feb 14 15:01:23 2000 Owen Taylor <otaylor@redhat.com>
11292 * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
11293 to make sure we never divide by zero.
11294 (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
11296 Mon Feb 14 12:29:38 2000 Owen Taylor <otaylor@redhat.com>
11298 * gtk/gtkfontsel.c: Apply patch from
11299 SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
11300 better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
11302 Also, some cleanups in atom handling.
11304 Sun Feb 13 08:02:21 2000 Tim Janik <timj@gtk.org>
11306 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
11309 Fri Feb 11 02:19:32 2000 Tim Janik <timj@gtk.org>
11311 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate):
11312 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate):
11313 * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
11314 more guint wrap-around bugs before going to bed.
11316 Thu Feb 10 16:16:35 2000 Tim Janik <timj@gtk.org>
11318 * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
11319 guint wrap arounds in allocation.width.
11321 * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
11322 process untill we fit the allocation given.
11324 Tue Feb 8 09:38:29 2000 Tim Janik <timj@gtk.org>
11327 (gtk_widget_unrealize): guard widget access with ref/unref
11328 around signal emission.
11329 (gtk_widget_hide): same here, but also check its destroyed
11330 state before queueing a resize.
11332 Tue Feb 8 03:05:55 2000 Tim Janik <timj@gtk.org>
11334 * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
11335 of gtk_default_insensitive_bg as insensitive base color.
11337 * gtk/gtktext.c (gtk_text_style_set): set the background color according
11338 to the widget's state.
11339 (gtk_text_realize): same here.
11340 (gtk_text_state_changed): same here.
11341 (draw_bg_rect): compare background color against base[] from
11342 GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
11344 Mon Feb 7 04:01:55 2000 Tim Janik <timj@gtk.org>
11346 * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
11347 grabs are active, unless a delete event is send to the toplevel
11348 of the currently grab holding widget.
11350 Sun Feb 6 10:13:15 2000 Owen Taylor <otaylor@redhat.com>
11352 * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
11353 debugging g_print's.
11355 Fri Feb 4 15:54:54 2000 Owen Taylor <otaylor@redhat.com>
11357 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
11358 ever make the scrolled-window requisition ever depend on the
11359 visibility state of the scrollbars for the AUTOMATIC policy.
11360 This breaks the GTK+ requisition model, and causes loops.
11362 Fri Feb 4 15:09:12 2000 Owen Taylor <otaylor@redhat.com>
11364 * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
11365 the default font to avoid problems with XFree86-4.0 where the
11366 default charset is iso10646-1, not iso8859-1.
11368 Thu Feb 3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
11374 * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
11376 * gtk/Makefile.am: minor cosmetic consistency tweak
11378 Thu Feb 3 14:46:01 2000 Owen Taylor <otaylor@redhat.com>
11380 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
11381 the activate_time to 0, so that we handle a quick
11382 press/release press/release properly and don't suppress
11383 the second release. (Red Hat bug #7545)
11385 Wed Feb 2 22:25:17 2000 Tim Janik <timj@gtk.org>
11387 * gtk/gtkctree.c (row_delete):
11388 (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
11389 bugs with destruction notifier, *always* update internal
11390 structures *before* calling user code.
11392 Sun Jan 30 20:10:52 2000 Lars Hamann <lars@gtk.org>
11394 A few more fixes for bug #5487, #2051, #2677.
11396 (gtk_clist_button_press): Reset clist->anchor to -1 if event->type is
11397 not GDK_BUTTON_PRESS.
11398 (resync_selection): resync only if selection_mode is
11399 GTK_SELECTION_EXTENDED
11400 * gtk/gtkctree.c (resync_selection): same here
11402 Sun Jan 30 12:29:20 2000 Owen Taylor <otaylor@redhat.com>
11404 * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
11405 gdk_drag_get_selection() and gtk_menu_detach().
11407 [ From Jeroen Ruigrok/Asmodai ]
11409 Sat Jan 29 10:11:56 2000 Owen Taylor <otaylor@redhat.com>
11411 * gtk/gtknotebook.c (gtk_notebook_size_request):
11412 page->tab_label can be NULL.
11414 2000-01-25 Havoc Pennington <hp@pobox.com>
11416 * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
11419 * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
11421 * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
11423 * gdk/gdkproperty.c (gdk_property_get): return boolean
11425 * gdk/gdkinput.c (gdk_input_set_mode): return boolean
11427 * gdk/gdkim.c (gdk_im_ready): return boolean
11429 * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
11431 * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
11432 glib clash, should fix glib)
11434 * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
11435 (gdk_get_show_events): return gboolean, and canonicalize
11438 * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
11439 colormap is private
11440 (gdk_colors_alloc): gboolean whether to be contiguous
11441 (gdk_color_equal): return gboolean since we are a predicate
11442 and not a qsort() (this looks semi-wrong due to glib breakage,
11443 IMO glib should be fixed)
11445 * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
11446 (gdk_get_use_xshm): return gboolean
11447 (gdk_pointer_is_grabbed): return gboolean
11449 * gdk/gdk.h: Change prototypes to match all the above changes,
11450 and re-run egtk-format-protos as required.
11452 Fri Jan 28 12:28:17 2000 Owen Taylor <otaylor@redhat.com>
11454 * gtk/gtkctree.c (resync_selection):
11455 * gtk/gtkclist.c (resync_selection):
11457 Return immediately if clist->drag_pos < 0. This is a workaround
11458 for the corrupt state that the clist gets into when a
11459 GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
11461 Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
11463 * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
11464 variable from recent commit.
11466 Thu Jan 27 15:22:09 2000 Owen Taylor <otaylor@redhat.com>
11468 * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
11470 Thu Jan 27 18:00:55 2000 Tim Janik <timj@gtk.org>
11472 * gtk/Makefile.am: prefix all autogenerated source that get build in
11473 $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
11474 in builddir. since we subsequently cd into srcdir for autogeneration,
11475 the paths have to be stripped from the target file names, thusly we
11476 use $(@F) as target names now.
11477 put a comment about configure.in's --disable-rebuilds option,
11478 which can be used for non-writable source directories, for development
11479 setups though, srcdir has to be *writable*.
11481 hu Jan 27 00:15:03 2000 Owen Taylor <otaylor@redhat.com>
11483 * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
11484 Finish the job of allowing event to be NULL.
11485 (Fixes bug #4283, reported by Chris Blizzard)
11487 * gtk/gtkentry.c (entry_adjust_scroll): When calculating
11488 things so that the cursor appears on screen, properly
11489 take into account INNER_BORDER.
11490 (Fixes bug #4754, reported by Antonio Campos)
11492 Wed Jan 26 23:12:28 2000 Owen Taylor <otaylor@redhat.com>
11494 * gtk/gtknotebook.c (gtk_notebook_map): Don't
11495 show the tab_label unless it itself is visible.
11497 gtk/gtknotebook.c (gtk_notebook_size_request):
11498 Do a better job of making sure that the visibility
11499 of the tab label corresponds to whether it should
11502 Wed Jan 26 21:17:03 2000 Owen Taylor <otaylor@redhat.com>
11504 * gtk/gtkoptionmenu.c (gtk_option_menu_position):
11505 Use the requisition, not the allocation, since the
11506 allocation has not necessarily been computed yet.
11507 (Pointed out by Eugene Osintsev)
11509 Wed Jan 26 19:44:25 2000 Owen Taylor <otaylor@redhat.com>
11511 * gtk/gtkstyle.c (gtk_style_new): Dont' set
11512 style/base[GTK_STATE_INSENSITIVE] both to
11513 gtk_default_insensitive_bg!
11514 (Bug #2187, reported by Jonathan Blandford)
11516 * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
11517 Add Alt_L, Alt_R to list of invalid accelerators.
11518 (Bug #3736, reported by Vlad Harchev)
11520 Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
11522 * gtk/gtkfilesel.c (open_ref_dir): Fix several
11523 bugs which occured after an attempt to open
11524 invalid home directory left cmpl_state->reference_dir == NULL.
11526 - completion on files in home directory didn't work
11527 - completion on an empty string caused segfault
11529 (Bug #3678, reported by Steve Ratcliffe)
11531 * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
11532 cut and paste error that was causing scales to
11533 be incorrectly positioned.
11535 patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
11537 2000-01-27 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
11539 * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
11540 when checking for dcgettext, if we've found we needed
11543 Wed Jan 26 18:06:07 2000 Owen Taylor <otaylor@redhat.com>
11545 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
11546 queue_clear on NO_WINDOW widgets during a reparent,
11547 since at that point the window and widget heirarchies
11548 are out of sync. This stops crashing in some cases
11549 (the scrolled window reparent test, for instance), and
11550 _probably_ won't cause drawing errors.
11552 * gtk/testgtk.c: Make the reparenting-a-scrolled-window
11553 test do what it was supposed to do and be robust against
11554 window closings, etc. (Bug #2443)
11556 Wed Jan 26 16:56:54 2000 Owen Taylor <otaylor@redhat.com>
11558 * gtk/gtkentry.c: Fix return values on mouse events.
11559 (Bug #2686, Sky <seb_sky@yahoo.com>)
11561 * gtk/genmarshal.pl: Fix up handling of FOREIGN.
11562 (pointed out by George Lebl)
11564 * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
11565 (From Ettore Perazzoli <ettore@helixcode.com>)
11567 Mon Jan 24 10:44:48 2000 Owen Taylor <otaylor@redhat.com>
11569 * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
11570 clicks between rows or outside calender area correctly.
11571 (Patch from Damon Chaplin)
11573 * gtk/gtkclist.c (gtk_clist_set_row_data_full):
11574 * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full):
11575 Call destroy function when overwriting existing data.
11576 (Pointed out by Damon Chaplin)
11578 Tue Jan 25 09:55:41 2000 Owen Taylor <otaylor@redhat.com>
11580 * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
11581 which was causing problems on various systems with Xmu.
11582 This hasn't been needed for a very long time.
11585 Sun Jan 23 22:27:36 2000 Owen Taylor <otaylor@redhat.com>
11587 * gdk/gdki18n.h: Include <ctype.h> when defining
11588 gdk_isw* in terms of is* as a fallback.
11589 (Bug #4106 - Dan Winship <danw@MIT.EDU>)
11591 Sun Jan 23 22:12:36 2000 Owen Taylor <otaylor@redhat.com>
11593 * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
11594 realize the widget when it is size allocated!
11597 * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
11598 Removed unused call to gdk_window_get_size() that
11599 showed up when the above was fixed.
11601 Sat Jan 22 15:44:30 2000 Owen Taylor <otaylor@redhat.com>
11603 * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
11604 fix up widget->window when the widget is a
11605 NO_WINDOW container widget.
11607 Sat Jan 22 12:40:48 2000 Owen Taylor <otaylor@redhat.com>
11609 * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
11610 to account for the fact that feof() does _not_
11611 return TRUE on errors, and thus avoid infinite loops
11612 when trying to use gdk_pixmap_create_from_xpm()
11613 on unreadable values.
11615 Fri Jan 21 18:32:43 2000 Owen Taylor <otaylor@redhat.com>
11617 * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
11619 Fri Jan 21 16:24:08 2000 Owen Taylor <otaylor@redhat.com>
11621 * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
11622 gdk_gc_set_dashes to take gint8 instead of gchar to
11623 make it clearer that it is _not_ a NULL terminated string.
11625 * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
11626 gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
11627 gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
11630 Thu Dec 30 04:51:05 1999 Tim Janik <timj@gtk.org>
11632 * gtk/gtkvscale.c (gtk_vscale_pos_background):
11633 * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
11634 background size relative to our allocation, guard against small
11635 allocations, we may have not yet been size allocated.
11637 Thu Dec 2 10:59:14 1999 Owen Taylor <otaylor@redhat.com>
11639 * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
11640 not just version == 3. We implement all 3 + most of 4 -
11641 (we don't support matching text/plain;charset=iso-8859-1
11642 to a dest that expects text/plain). We'll still advertise
11643 3 to be safe, but any client implementing version >= 3
11644 must interoperate with 3.
11646 Tue Mar 14 11:53:31 2000 Owen Taylor <otaylor@redhat.com>
11648 * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
11649 background and gc members, add a warning in gtk_tooltips_set_color()
11650 indicating that this function is deprecated.
11652 Thu Mar 9 22:10:56 GMT 2000 Tony Gale <gale@gtk.org>
11654 * docs/gtkfaq.sgml: FAQ Update:
11655 - Minor cleanups (Emmanuel, me)
11657 I need to add a new signal to a GTK+ widget. Any idea? (timj)
11658 How can I retrieve the text from a GtkMenuItem? (timj)
11659 How do I validate/limit/filter the input to a GtkEntry? (me)
11660 Memory does not seem to be released when I free the list
11661 nodes I've allocated (timj)
11663 2000-03-07 Tor Lillqvist <tml@iki.fi>
11665 * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
11666 (gdk_win32_gdi_failed) New function for reporting errors from GDI,
11667 for which it is no use to call GetLastError onWin9x.
11668 (gdk_other_api_failed) New function, for general error
11669 reporting without calling GetLastError.
11670 (gdk_win32_api_failed) OTOH, this function always calls
11671 GetLastError. (gdk_win32_last_error_string) Remove this function,
11672 GLib has the equivalent now.
11674 * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
11675 call them with function name, file name and line number in the
11678 * gdk/win32/*.c: Use the new macros for reporting errors from GDI
11681 * gtk/gtk.def: Add some missing entry points.
11683 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
11684 gtk_paned_set_gutter_size, which don't exist any longer, as void.
11686 Fixes by Hans Breuer:
11688 * gdk/makefile.msc: Update for debugging.
11690 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
11691 implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
11692 PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
11695 * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
11698 * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
11700 * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
11702 2000-03-04 Tor Lillqvist <tml@iki.fi>
11704 * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
11705 just pixel value of background colour.
11707 * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
11708 containing code snippet previously duplicated in a couple of
11711 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
11712 gdk_colormap_color.
11714 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
11715 GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
11716 events for autorepeated Shift, Control and Alt keys. Use
11717 gdk_colormap_color.
11719 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
11720 pointer is inside the window the cursor of which we are setting,
11721 call SetCursor immediately.
11723 * gdk/win32/makefile.cygwin
11724 * gtk/makefile.cygwin: If we don't have the build number stamp
11727 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
11728 gtk_paned_set_gutter_size as empty.
11730 * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
11732 Tue Feb 29 13:10:00 GMT 2000 Tony Gale <gale@gtk.org>
11734 * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
11735 gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
11736 docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
11737 docs/gtk_tut.sgml docs/gtk.texi TODO:
11739 Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
11741 Sat Feb 26 11:46:25 GMT 2000 Tony Gale <gale@gtk.org>
11743 * gtk/gtkcalendar.c: Implement num_marked_dates,
11744 and don't emit mutiple day_selected signals on
11747 2000-02-25 Jonathan Blandford <jrb@redhat.com>
11749 * docs/make-todo (lineno): let title and logo be configurable so
11750 that GNOME can use this script too.
11752 * TODO.xml: added logourl and a title
11754 Fri Feb 25 11:12:00 2000 Owen Taylor <otaylor@redhat.com>
11756 * TODO.xml: Added some UI items, and an explanatory
11757 comment at the top of the file.
11759 Thu Feb 24 09:07:28 2000 Tim Janik <timj@gtk.org>
11761 * TODO.xml: some updates, added abunch of new entries.
11762 a note for those fiddeling with this file, when done
11764 $ ./docs/make-todo TODO.xml >/dev/null
11765 and correct output errors before comitting changes.
11767 Wed Feb 23 22:59:50 2000 Owen Taylor <otaylor@redhat.com>
11769 * TODO.xml: Added XML-structured TODO file.
11770 * docs/make-todo: python script to turn TODO.xml into
11773 2000-02-23 Jonathan Blandford <jrb@redhat.com>
11775 * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
11776 the function to let it draw the seven dots, instead of the old,
11777 much maligned, method.
11778 (draw_dot): New function to draw a dot.
11780 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
11781 to draw the handle inside the border width as opposed to outside.
11782 Use paint function instead of gdk_draw_point.
11784 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
11785 to draw the handle inside the border width as opposed to outside.
11786 Use paint function instead of gdk_draw_point.
11788 * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
11789 Change indenting to be more GTK like.
11791 Wed Feb 23 10:54:14 GMT 2000 Tony Gale <gale@gtk.org>
11793 * docs/gtk_tut.sgml: New section on GtkCalendar
11794 * examples/calendar: Update example code
11796 Tue Feb 22 13:54:12 GMT 2000 Tony Gale <gale@gtk.org>
11798 * docs/gtkfaq.sgml: FAQ Update
11800 2000-02-19 Anders Carlsson <andersca@gnu.org>
11802 * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
11803 to prevent the scroll event to be propagated upwards.
11805 Fri Feb 18 14:37:29 2000 Owen Taylor <otaylor@redhat.com>
11807 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
11808 OwnerGrabButtonMask from button entries for
11809 GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
11811 * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
11812 to the event mask (which will result in button/press release
11813 being added to the event mask on Unix) so scrolling works
11814 for layouts in scroll windows.
11816 * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
11818 Patch from Anders Carlsson <andersca@gnu.org> to add
11821 * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
11822 scrolling to the "Test Scrolling" part of testgtk.
11824 * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
11826 * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
11827 it against GDK_SCROLL.
11829 * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
11830 way of mouse wheel scrolling.
11832 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
11834 * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
11836 * gtk/gtkmain.c: Removed previous mouse wheel hack.
11838 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
11839 gdk_event_mask_table.
11841 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added
11842 GdkEventScroll handler.
11844 * gdk/gdkevents.h: Added GdkEventScroll structure.
11846 Thu Feb 17 17:10:12 2000 Owen Taylor <otaylor@redhat.com>
11848 * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
11849 and Anders Carlsson to change the Paned widgets so that they
11850 can be dragged from anywhere along the length. Also change
11851 the way that this is drawn to make this apparent.
11853 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
11854 from George Lebl to check that option_menu->menu is present
11855 before getting history.
11857 2000-02-14 Tor Lillqvist <tml@iki.fi>
11859 * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
11860 before the assertion for non-NULL segment list.
11862 * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
11863 Seems that pattern brushes *must* be 8x8 pixels! At least on my
11864 machine, but it might be display driver dependent. Sigh, so make
11865 sure the stipple is that size. Does Windows suck or what?
11867 * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
11870 2000-02-13 Havoc Pennington <hp@pobox.com>
11872 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
11874 (gdk_cursor_new): init refcount to 1
11876 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
11878 2000-02-13 Tor Lillqvist <tml@iki.fi>
11880 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
11881 so that we don't have to do unnecessary settings to the HDC.
11883 * gdk/win32/gdkdrawable-win32.c
11884 * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
11887 * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
11888 the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
11889 GDI paths, call WidenPath to get the outline of the stroken path,
11890 and then fill the outline (with the brush that was built from the
11893 * gdk/win32/gdkgc-win32.c: Factor out common code from
11894 _gdk_win32_gc_new and gdk_win32_gc_set_values into
11895 gdk_win32_gc_values_to_win32values. Use correct colour for
11896 SetBkColor() (Until now the code actually used a random colour in
11897 the call to SetBkColor()... but that didn't show up as not many
11898 GDI APIs use the background colour. Pattern (opaque stippled)
11901 * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
11902 gdk_win32_api_failed): New functions for error logging.
11904 * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
11905 WIN32_API_FAILED to call them, passing function or file name and
11908 * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
11910 * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
11911 GdkColor for foreground and background in GdkGCWin32Data.
11913 * gdk/makefile.cygwin: Link in the resource object separately.
11915 * gdk/win32/rc/gdk.rc
11916 * gtk/gtk.rc (New file)
11917 * gdk/win32/makefile.cygwin
11918 * gtk/makefile.cygwin: Update build number in DLLs automatically,
11921 Sun Feb 13 08:54:45 2000 Tim Janik <timj@gtk.org>
11923 * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
11924 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
11925 * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
11926 * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
11927 parameters given and cursor->ref_count. coding style fixups.
11929 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
11932 * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
11933 fix up widget macros and add _GET_CLASS() variant.
11935 * gtk/*.c: some GtkType fixups.
11937 2000-02-09 Tor Lillqvist <tml@iki.fi>
11939 * gdk/win32/gdkproperty-win32.c
11940 * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
11943 2000-02-04 Tor Lillqvist <tml@iki.fi>
11945 * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
11946 g_filename_to_utf8 to convert the font names Windows gives us from
11947 whatever is the default codepage to UTF-8.
11948 (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
11949 in the other direction.
11951 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
11952 error in debugging output.
11954 2000-02-02 Tor Lillqvist <tml@iki.fi>
11956 * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
11957 and height parameters to gdk_window_clear_area(). Not minus one.
11959 Wed Feb 2 11:58:05 2000 Owen Taylor <otaylor@redhat.com>
11961 * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
11962 checks if the widget passed to gtk_drag_get_data() was not the
11965 2000-02-01 Tor Lillqvist <tml@iki.fi>
11967 * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
11968 g_filename_from_utf8 functions (which were added a moment ago to
11969 GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
11972 gtk_file_selection_get_filename returns the filename in the C
11973 runtime encoding. It calls g_filename_from_utf8, but copies the
11974 returned string to a static buffer, which is returned. I think
11975 this is better than returning the result from g_filename_from_utf8
11976 directly, which would mean all apps that use it would have to free
11977 the return value. Or should this function care about this issue at
11978 all? Maybe a new function with clearly defined semantics.
11980 * gtk/gtkfilesel.h: Add comment about
11981 gtk_file_selection_get_filename returning the filename in the C
11982 runtime's encoding.
11986 * gdk/makefile.{cygwin,msc}
11987 * gtk/gtk.def: Updates.
11989 * gdk/gdkcursor-win32.c: Initialise refcount.
11991 2000-01-31 Yuan-Chung Cheng <platin@linux.org.tw>
11993 * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
11995 2000-01-30 Havoc Pennington <hp@pobox.com>
11997 * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
12000 * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
12002 * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
12003 implemented in platform-specific code
12005 * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
12007 * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
12008 underscore in front
12010 * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
12011 put an underscore in front
12013 * gdk/gdkcursor.c: new file, implements
12014 gdk_cursor_ref/gdk_cursor_unref
12016 * gdk/gdkcursor.h: Refcount GdkCursor
12018 * gdk/gdkcompat.h (gdk_cursor_destroy): compat
12020 2000-01-29 Tor Lillqvist <tml@iki.fi>
12023 * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
12025 Tue Jan 25 11:43:21 2000 Owen Taylor <otaylor@redhat.com>
12027 * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
12028 structures to properly inherit from GtkWidget not GtkBin.
12030 Sun Jan 23 20:28:24 2000 Owen Taylor <otaylor@redhat.com>
12032 * gtk+.spec.in: Added lib/gtk+/include/* to %files
12033 (bug #5178 - Peter Wainright)
12035 * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
12036 so that it will be installed.
12037 (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
12039 Fri Jan 21 16:29:28 2000 Owen Taylor <otaylor@redhat.com>
12041 * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
12042 for the GtkStyleClass vtable const.
12044 * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
12045 take a const string argument like GtkTranslateFunc. This will
12046 require changes in use code.
12048 2000-01-19 Tor Lillqvist <tml@iki.fi>
12050 * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
12051 semantics (to mimic the X11 backend, which just calls XClearArea)
12052 is to check for zero width (and height), and in that case use the
12053 window's width minus x (height minus y). This fixes for instance
12054 some redraw problems with gtkclist, which were easily noticeable
12055 in the gtk file selection widget.
12057 (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
12060 2000-01-13 Tor Lillqvist <tml@iki.fi>
12064 * gdk/x11/Makefile.am
12065 * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
12067 * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
12070 2000-01-09 Tor Lillqvist <tml@iki.fi>
12072 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
12073 WM_MOVE for iconified or invisible windows. This fixes various
12074 problems when minimising windows. Thanks to Bernd Herd.
12076 2000-01-05 Tor Lillqvist <tml@iki.fi>
12078 * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
12079 backend's draw_lines method, not draw_points.
12081 2000-01-02 Tor Lillqvist <tml@iki.fi>
12083 * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
12084 before Owen's reorganisation: Don't have queued_events and
12085 queued_tail statics in this file, but use gdk_queued_events and
12086 gdk_queued_tail. This makes exposure event compression work again.
12088 (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
12091 1999-12-30 Tor Lillqvist <tml@iki.fi>
12093 * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
12094 gdkkeysyms.h to get the GDK_* keysym constants that are needed by
12095 gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
12096 doesn't do anything.
12098 * gdk/gdk.def: Add gdk_xid_table_insert.
12100 * gdk/win32/gdkprivate-win32.h
12101 * gdk/win32/gdkevents-win32.c
12102 * gdk/win32/gdkinput-win32.c
12104 * gdk/win32/gdkwindow-win32.c: Remove the superfluous
12105 extension_events field in the GdkWindowWin32Data struct. Use only
12106 the extension_events field in GdkWindowPrivate. Previously one was
12107 set, and the other one tested, which broke tablet
12108 functionality. Thanks to Keishi Suenaga for pointing this out.
12110 1999-12-18 Tor Lillqvist <tml@iki.fi>
12112 * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
12113 When handling a single character (text length == 1), don't handle
12114 it as if it was UTF-8.
12116 1999-12-11 Tor Lillqvist <tml@iki.fi>
12118 * Makefile.am: Distribute README.win32.
12121 * gdk/win32/Makefile.am: Distribute Win32 files.
12123 * gdk/makefile.msc: New file.
12125 * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
12128 * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
12129 gdk_error_code as GDKVAR, as they are referred outside GDK.
12131 * gdk/win32/makefile.msc: Update.
12133 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
12134 tweaks. Check only if at least one of those Unicode subrange bits
12135 we care for is set. If no code page bits are set, guess (wildly)
12136 based on the charset.
12138 * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
12140 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
12146 * gtk/gtkselection.c
12148 * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
12149 appropriate. There must be a cleaner way to handle this?
12151 * gtk/gtkrc.c: Must include windows.h on Win32.
12153 * gtk/testgtk.c: No need to include gdkx.h.
12155 * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
12157 1999-12-07 Tor Lillqvist <tml@iki.fi>
12159 * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
12160 the rbearing is set to the same as the width, but this should be
12163 1999-12-06 Tor Lillqvist <tml@iki.fi>
12165 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
12166 function. If Windows doesn't tell us what Unicode subranges a font
12167 covers, guesstimate based on the codepages it covers. This will
12168 hopefully help those Windows versions or fonts that don't give us
12169 any useful Unicode subrange information with GetTextCharsetInfo.
12170 Call this function in gdk_font_load_internal.
12172 * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
12175 Fri Dec 3 14:09:50 1999 Owen Taylor <otaylor@redhat.com>
12177 * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
12178 New function, long needed.
12180 Wed Dec 1 22:35:43 1999 Owen Taylor <otaylor@redhat.com>
12182 * gdk/gdkproperty.h x11/gdkproperty.c: Change
12183 only_if_exists argument of gdk_atom_intern to
12186 1999-11-25 Tor Lillqvist <tml@iki.fi>
12188 * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin):
12189 Fix two copy&paste errors.
12191 * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
12194 * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
12195 GdkWin32SingleFont struct.
12197 * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
12198 subranges of loaded fonts. Clear font signature first, in case
12199 GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
12200 ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
12202 * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
12203 Unoffset clip region.
12205 1999-11-23 Tor Lillqvist <tml@iki.fi>
12207 * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
12208 event->any.window before calling filter functions.
12210 Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
12212 * gtk/gtkgamma.h: Adapt cast macros to standard.
12214 [ Merges from 1.2 ]
12216 Tue Nov 16 10:15:54 1999 Owen Taylor <otaylor@redhat.com>
12218 * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
12219 If translation does not include a '/', use entire
12220 translation instead of crashing.
12222 Sun Oct 31 22:21:11 1999 Tim Janik <timj@gtk.org>
12224 * docs/gtk_tut.sgml:
12225 s/gtk_accel_group_attach/gtk_window_add_accel_group/.
12227 Sat Oct 30 09:09:09 1999 Owen Taylor <otaylor@redhat.com>
12229 * gtk/gtkselection.c (gtk_target_list_remove): Use
12230 g_list_remove_link, not g_list_remove.
12232 [ From Geert Bevin <gbevin@thunderstorms.org> ]
12234 Sun Oct 24 07:41:40 1999 Tim Janik <timj@gtk.org>
12236 * gtk/gtkclist.c (real_undo_selection): commented out g_print()
12237 statement upon unselection (how the heck did that slip in?).
12239 Sat Oct 23 03:03:08 1999 Tim Janik <timj@gtk.org>
12241 * gtk/gtktext.c (gtk_text_freeze):
12242 (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
12243 in frozen state (and aparently crashes). patch provided by Anders
12244 Melchiorsen <and@kampsax.dtu.dk>.
12246 Sat Oct 23 02:53:20 1999 Tim Janik <timj@gtk.org>
12248 * fix insensitive default/focus widget activation,
12249 reported by Matt Goodall <mgg@isotek.co.uk>.
12251 * gtk/gtkwindow.c (gtk_window_key_press_event):
12252 (gtk_window_activate_default):
12253 (gtk_window_activate_focus):
12254 return handled=FALSE for actiavtion of insensitive default
12255 widgets. return handled=TRUE for activation of insensitive
12256 focus widgets. don't activate in either case.
12258 Tue Oct 19 09:55:08 1999 Owen Taylor <otaylor@redhat.com>
12260 * gtk-config.in (lib_gtk): Switch order of @x_cflags@
12261 and $glib_cflags to match library order and in the
12262 theory that an old version of GLib is more likely to
12263 be in the include directory for X then vice-versa.
12266 Tue Oct 19 09:46:49 1999 Owen Taylor <otaylor@redhat.com>
12268 * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE
12269 to determine the locale for fontsets, not LC_MESSAGES;
12270 the user may want English messages with a handling
12271 for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
12272 will still be broken) (Bug #2891)
12274 Tue Oct 19 20:36:42 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
12276 * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
12278 Tue Oct 19 12:15:13 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
12280 * gtk/gtkrc.ko: Changed the Korean default fontset.
12282 Fri Oct 8 02:32:47 1999 Owen Taylor <otaylor@redhat.com>
12284 * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
12285 where when scrolling to the left or top double exposes
12286 were done, causing major slowdowns.
12288 Thu Oct 7 18:31:55 1999 Owen Taylor <otaylor@redhat.com>
12290 * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
12291 names to lowercase and alphanumeric, before looking
12294 * gtk/Makefile.am: Install codeset variant gtkrc files
12295 with normalized names.
12297 Thu Oct 7 22:52:42 1999 Tim Janik <timj@gtk.org>
12299 * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
12300 popup menus when the menu is already visible, but its parent
12301 is still hidden, (happens after tornoff window got hidden).
12303 Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
12305 * gtk/Makefile.am (install-data-local): Fix
12306 a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
12307 deleted, causing error messages on install.
12309 Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
12311 * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
12312 the handle as well, since we now sometimes ignore
12313 exposes on the handle while resizing.
12315 Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
12317 * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
12318 extra g_free introduced in one of the last one or two
12321 Wed Oct 6 16:38:36 1999 Owen Taylor <otaylor@redhat.com>
12323 * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
12324 consistent, put each style that a gtkrc.* file creates
12325 in a unique namespace, remove old files before installing.
12327 Wed Oct 6 14:31:16 1999 Owen Taylor <otaylor@redhat.com>
12329 * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
12330 gtk_rc_init is called multiple times. (Yes, people who
12331 do that have bugs in their code.)
12333 Tue Oct 5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
12335 * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
12336 Remove it since it's generated by the Makefile anyway
12338 Tue Oct 5 02:43:41 1999 Owen Taylor <otaylor@redhat.com>
12340 * gdk/gdkinputcommon.h (gdk_input_device_new): Free
12341 device->info.axes for core pointer.
12343 Thu Sep 30 13:55:25 1999 Owen Taylor <otaylor@redhat.com>
12345 * gtk/testgtk.c (destroy_idle_test): Rename idle to
12346 idle_id, to deal with obsolete, broken C libraries.
12348 Mon Sep 27 02:50:15 1999 Owen Taylor <otaylor@redhat.com>
12350 * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
12351 allocation->x/y twice!
12353 * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
12354 consistent with gtk_vscale_pos_trough().
12356 Sun Sep 26 19:44:34 1999 Owen Taylor <otaylor@redhat.com>
12358 * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
12359 be queueing a resize on a toplevel container between
12360 the time we show it and when we map it. So, we need
12361 to test GTK_WIDGET_VISIBLE() for toplevels, and only
12362 use GTK_WIDGET_DRAWABLE() for child windows.
12364 Thu Sep 23 16:41:03 1999 Owen Taylor <otaylor@redhat.com>
12366 * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS
12369 Fri Sep 24 00:51:45 1999 Tim Janik <timj@gtk.org>
12371 * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
12372 container DRAWABLE (instead of VISIBLE), so we don't queue
12373 resizes on non-toplevel containers.
12375 Sun Sep 19 18:13:31 1999 Owen Taylor <otaylor@redhat.com>
12377 * gtk/gtkselection.[ch]: Make the data argument
12380 Sat Sep 18 21:27:40 1999 Owen Taylor <otaylor@redhat.com>
12382 * gtk/gtkwindow.c: Try to behave sensibly if
12383 the focus widget is the window itself. (Should
12384 we allow this at all?)
12386 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
12388 * gtk/gtkwidget.c (gtk_widget_set_sensitive):
12389 * gtk/gtknotebook.c (gtk_notebook_set_scrollable):
12390 * gtk/gtknotebook.c (gtk_notebook_set_show_border):
12391 * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
12392 in prototypes and implementations consistent (Tomas Ogren).
12394 * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
12395 before the widget is unparented (reported by damon).
12397 * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
12398 since we provide unsigned data anyways.
12400 Thu Sep 16 21:32:01 1999 Owen Taylor <otaylor@redhat.com>
12402 * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
12403 the call to gtk_tooltips_layout_text() until later.
12405 * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
12406 Call gtk_widget_ensure_style() before using the style.
12408 Wed Sep 15 02:52:19 1999 Owen Taylor <otaylor@redhat.com>
12410 * gtk/gtkwidget.c (gtk_widget_event): Added workaround
12411 for old widgets that don't propagate draws to all
12412 children. (Namely gnome-dock for gnome-libs <= 1.0.16)
12414 Tue Sep 14 19:22:19 1999 Tim Janik <timj@gtk.org>
12416 * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
12417 for a redraw but just the widget that requested the resize.
12419 Tue Sep 14 18:29:47 1999 Tim Janik <timj@gtk.org>
12421 * gtk/gtkcontainer.c: added new widget level method
12422 gtk_container_set_reallocate_redraws() and a GtkContainer flag
12423 reallocate_redraws : 1 to reflect the setting, exported this through
12424 the argument system as a boolean ::reallocate_redraws.
12426 * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
12427 on the widget because the allocation changes, do so as well for
12428 widget->parent if the parent has reallocate_redraws set to TRUE.
12429 with that containers requesting reallocation redraws get automatically
12430 redrawn if their children changed allocation (this unfortunately
12431 affects also other children that didn't change allocation, but we
12432 cannot work around that before 1.3).
12434 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
12436 * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
12437 _and_ height are >0 (not _or_).
12439 * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
12440 instead of gtk_container_queue_resize(), which is a core gtk internal
12441 function (must have been on crack when i queued that).
12443 * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
12444 we can check more reliably if we want to discard expose events.
12445 * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
12448 * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
12449 we simply trust these events. for deciding whether to discard exposes,
12450 check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
12452 Mon Sep 13 15:01:21 1999 Owen Taylor <otaylor@redhat.com>
12454 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
12455 queues of areas that are completely off screen.
12457 * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
12458 logic for handleboxes.
12460 * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
12461 check on width/height.
12463 Mon Sep 13 02:22:47 1999 Tim Janik <timj@gtk.org>
12465 * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
12466 we are fine with using $@ the way we do (if we actually encounter
12467 brokeness with $@ in VPATH builds because of additional path prefixes,
12468 we need to use $(@F) actually).
12470 Mon Sep 13 01:34:53 1999 Tim Janik <timj@gtk.org>
12472 * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
12473 short lived bugs, that would allow language bindings to do surgeries
12476 Fri Sep 10 15:22:50 1999 Owen Taylor <otaylor@redhat.com>
12478 * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
12479 where comparison was being done against an uninitialized
12480 value causing intermittant results depending on
12481 compiler flags. Also make it clearer that we aren't
12482 ever initializing the child as 0x0 (though this will
12483 be caught in gtk_widget_size_allocate())
12485 Fri Sep 10 10:06:56 1999 Owen Taylor <otaylor@redhat.com>
12487 * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
12488 gtk_window_unset_transient_for() call after we do checks
12489 involving the old transient parent.
12490 [ From Lance Capser <lmc@cyberhighway.net> ]
12492 1999-09-07 Raja R Harinath <harinath@cs.umn.edu>
12494 * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
12497 Mon Sep 6 00:11:56 1999 Lars Hamann <lars@gtk.org>
12499 * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
12500 no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
12502 1999-09-03 Raja R Harinath <harinath@cs.umn.edu>
12504 * gtk/Makefile.am (gen_sources): Improve VPATH builds.
12505 `$@' is valid only in the build dir, not after we've done
12506 `cd $srcdir'. Also use `test -f' instead of less portable
12509 Fri Sep 3 15:59:56 1999 Owen Taylor <otaylor@redhat.com>
12511 * gtk/gtktext.c (correct_cache_insert): Rewrite
12512 for simplicity, and hopefully correctness.
12513 (Fixes bug #1322, which was a segfault when
12514 on some insertions with the properties around
12515 the insertion set up just wrong.)
12517 * gtk/gtktext.c (gtk_text_adjustment): When we receive
12518 a "changed" signal, clamp the new value to the adjustment
12519 bounds to avoid segfaulting if someone tries to change
12520 the adjustment to a bogus value. (Bug #1795)
12522 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
12524 * gtk/gtkmain.c: Ignore unexpected destroy notifies
12525 for children, for toplevel windows handle them
12528 * gtk/gtkplug.c: Add an unrealize handler so that
12529 we unref plug->socket_window when we are done
12532 Fri Sep 3 14:52:54 1999 Owen Taylor <otaylor@redhat.com>
12534 * gtk/gtktext.c (clear_area): Fix stupid signedness
12535 problem that was causing background to sometimes
12538 Fri Sep 3 12:26:33 1999 Owen Taylor <otaylor@redhat.com>
12540 [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
12542 * gtk/gtkmenu.c (gtk_menu_position): Make
12543 sure we never position menus with negative x, y,
12544 since gtk_widget_set_uposition() can't handle that.
12546 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
12547 Modify the positioning code a bit so that we always
12548 put the top-left corner onscreen. (This is for
12549 UI reasons, gtk_menu_position() now takes care of
12550 gtk_widet_set_uposition() brokeness.)
12552 Fri Sep 3 03:06:30 1999 Tim Janik <timj@gtk.org>
12554 * gtk/Makefile.am: fixed up things for -jx, x > 1.
12556 Sun Sep 5 08:48:51 1999 Owen Taylor <otaylor@redhat.com>
12558 * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
12559 RC style that is passed in. The lack of the ref
12560 before was a bug. If people worked around this
12561 bug, this will introduce a slight memory leak
12562 in their code. The code should typically look like:
12564 rc_style = gtk_rc_style_new ();
12566 gtk_widget_modify_style (widget, rc_style);
12567 gtk_rc_style_unref (rc_style);
12569 * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
12570 the style if it was already set.
12572 * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
12573 style if it was set before.
12575 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
12577 * gtk/testgtk.c (main): Add a check to see if we
12578 are being run from the correct directory and
12579 to quit nicely if we are not.
12581 * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
12584 Thu Sep 2 23:00:03 1999 Tim Janik <timj@gtk.org>
12586 * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
12589 queue resizes unconditionally (gtk_widget_queue_resize will figure
12590 what to do if the window is not realized).
12591 (gtk_window_move_resize): only recenter the window
12592 for GTK_WIN_POS_CENTER_ALWAYS.
12593 (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
12594 the same way as GTK_WIN_POS_CENTER.
12596 Thu Sep 2 22:39:27 1999 Tim Janik <timj@gtk.org>
12598 * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
12599 with (!(info->last_flags & GDK_HINT_POS)) instead of
12600 (!info->last_flags & GDK_HINT_POS).
12602 * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
12603 new_height unconditionally, because we use these values even if
12604 !default_size_changed && !hints_changed.
12605 comented the (default_size_changed || hints_changed) case with
12606 respect to resize rejects from the window manager.
12608 * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
12609 in the zvt condition hack, since this includes the window hints, set
12610 the hints after the handling_resize case.
12612 * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
12613 window is initially shown with to the geometry.
12615 Thu Sep 2 07:38:56 1999 Tim Janik <timj@gtk.org>
12617 * gtk/gtkwindow.c (gtk_window_move_resize):
12618 s/size_changed/default_size_changed/g so i know what's
12619 really going on (frying brain on smaller flame now).
12621 Thu Sep 2 05:47:47 1999 Tim Janik <timj@gtk.org>
12623 * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
12624 we have size_changed upon handling_resize. this is a gross
12625 workaround for the broken zvt widget and should be removed in
12626 1.3 again (search for FIXME).
12627 Owen provided an accurate comment for this:
12629 /* We could be here for two reasons
12630 * 1) We coincidentally got a resize while handling
12632 * 2) Our computation of size_changed was completely
12633 * screwed up, probably because one of our children
12634 * is broken. It's probably a zvt widget.
12636 * For 1), we could just go ahead and ask for the
12637 * new size right now, but doing that for 2)
12638 * might well be fighting the user (and can even
12639 * trigger a loop). Since we really don't want to
12640 * do that, we requeue a resize in hopes that
12641 * by the time it gets handled, the child has seen
12642 * the light and is willing to go along with the
12643 * new size. (this happens for the zvt widget, since
12644 * the size_allocate() above will have stored the
12645 * requisition corresponding to the new size in the
12648 * This doesn't buy us anything for 1), but it shouldn't
12649 * hurt us too badly, since it is what would have
12650 * happened if we had gotten the configure event before
12651 * the new size had been set.
12654 Wed Sep 1 20:46:11 1999 Owen Taylor <otaylor@redhat.com>
12656 * gtk/gtkrc.c: deal properly with the fact that RC
12657 style lists may include rc styles more than once.
12659 * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
12660 unused static function.
12662 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
12663 stack of directories of RC files currently being
12664 parsed and implicitely add them to pixmap path.
12666 This fixes a bug where the directory would get
12667 appended then overwritten by pixmap_path declarations.
12669 (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
12671 * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
12672 theme's exit function. (Patch from Peter Wainwright,
12675 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
12676 Add a destroy() handler to take care of removing
12677 group for menu item. (Fixes bug #1197)
12679 * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
12680 in warning message.
12682 Wed Sep 1 21:27:42 1999 Tim Janik <timj@gtk.org>
12684 * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
12685 roundtrip to figure window's width and height, since we know that
12686 anyways from widget->allocation.
12688 Wed Sep 1 12:37:44 1999 Owen Taylor <otaylor@redhat.com>
12690 * gtk/gtkwindow.c (gtk_window_move_resize): Compute
12691 the hints after we request the new size.
12693 Wed Sep 1 10:38:37 1999 Owen Taylor <otaylor@redhat.com>
12695 * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
12696 GTK_WIDGET_REALIZED() assertion - we can compute the
12697 hints before we are realized.
12699 * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
12700 hint changing so that we have a value of hints_changed
12701 when we decide whether to constrain the window size.
12703 * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
12705 * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
12706 change back to G_MAXINT.
12708 Wed Sep 1 06:54:59 1999 Tim Janik <timj@gtk.org>
12710 * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
12711 new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
12712 contain uncluttered values.
12713 (gtk_window_compute_hints): simply assert that window is realized
12714 and that geometry_info is valid, since we rely on this anyways.
12715 (gtk_window_constrain_size): major cleanups to the code.
12716 if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
12717 for the base size, instead of the minimums. use 32767 as max width
12718 and height (like in gtkwindow.c) instead of G_MAXINT.
12720 Wed Sep 1 04:41:25 1999 Tim Janik <timj@gtk.org>
12722 * cleaned up the GtkContainer.need_resize flag handling mess, we
12723 only need to force resize requests when we were prematurely
12724 realized, or our widget tree was modified when we were temporarily
12725 hidden. handling these cases directly upon showing the window (i.e.
12726 while the GdkWindow is still unmapped) avoids the need to wait for
12727 a configure event response and therefore makes the GUI more snappier
12728 and avoids blank windows during the roundtrip.
12732 (gtk_widget_show): don't queue resizes on toplevels, they know how
12733 to deal with matters.
12735 * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
12736 flag directly for not visible resize containers and spare us unecessary
12740 (gtk_window_realize): if we need to enforce premature size allocation,
12741 queue a container resize so we are correctly resized later on.
12743 (gtk_window_size_request):
12744 don't freak around with the ->need_resize flag,
12745 gtk_container_queue_resize() will care about that.
12747 handle initial resizing issues here, we can handle matters better in
12748 this place, especially since we know that our GdkWindow is still
12750 (gtk_window_move_resize):
12751 don't care about ->need_resize at all.
12752 handle size changes properly that occoured while we waited for a
12755 Tue Aug 31 15:58:46 1999 Owen Taylor <otaylor@redhat.com>
12757 * gtk/gtkwidget.c (gtk_widget_set_uposition):
12758 * gtk/gtkwindow.[hc] (gtk_window_reposition):
12759 Move the hint setting code from gtk_widget_set_uposition
12760 to here; set the hints so that we respect any previously
12761 set geometry hints.
12763 * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
12764 change the window hints here or move the window here,
12765 let that happen in gtk_window_move_resize().
12767 Tue Aug 31 06:58:52 1999 Tim Janik <timj@gtk.org>
12769 * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
12770 to already queued resizes (and therefore redraws) on a widget, check
12771 its anchestry as well.
12773 * gtk/gtkcontainer.c:
12774 (gtk_container_queue_resize): clear resize widgets for resize
12775 containers before aborting prematurely. this is especially important
12776 for toplevels which may need imemdiate processing or their resize
12777 handler to be queued.
12778 (gtk_container_dequeue_resize_handler): added new internal function for
12781 * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
12782 configure event, take possible changes in window position into account
12784 if we request a new window size, queue up a resize handler that will
12785 last until the configure event response arrives.
12786 combined the ->need_resize case (initial show) with the general size
12787 (hints) changed case and added even more comments.
12788 if !auto_shrink, only revert to the old allocation if the new size
12789 is smaller than the current allocation.
12791 Tue Aug 31 11:55:20 1999 Owen Taylor <otaylor@redhat.com>
12793 * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
12794 gtk_window_set_geometry_hints
12795 gtk_window_set_default_size):
12796 When hints are set, queue a resize so that the hints will
12797 be eventually reset on the toplevel.
12799 * gtk/gtkwindow.c (gtk_window_show): Use
12800 gtk_window_compute_default_size(). Clear the need_resize flag
12801 on the initail map so that we don't unnecessarily trigger the
12804 * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
12805 into separate functions. Compare the hints we are setting
12806 with what we set last time so that we can accurately
12807 tell when we need to reset the hints.
12809 * gtk/gtkwindow.c (gtk_window_compute_default_size): New
12810 function to figure out the size from requisition
12813 * gtk/gtkwindow.c (gtk_window_constrain_size): Function
12814 from fvwm to constrain a size to the geometry hints.
12816 * gtk/gtkwindow.c (gtk_window_compare_hints): New function
12817 to compare two sets of geometry hints.
12819 * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
12820 from gtk_window_set_hints(), just compute the hints,
12823 * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
12824 code from gtk_window_move_resize() to separate function,
12827 Tue Aug 31 13:05:03 1999 Owen Taylor <otaylor@redhat.com>
12829 * gtkrc.h: Move the ref_count member out of the GtkRcStyle
12830 structure into a new private structure.
12832 * gtkrc.c: Split GtkRcStyle into public/private.
12833 In the private part, add a list of pointers to the
12834 RcStyle lists this RcStyle participates in.
12836 * gtkrc.c: When a RcStyle is free, remove all
12837 lists referencing it from the
12838 realized_style_ht hash, and free those lists.
12840 * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
12841 gtk_rc_init(), since that adds the default styles
12842 to the list of parsed RC files again.
12844 * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
12846 Thu Aug 26 14:14:42 1999 Tim Janik <timj@gtk.org>
12848 * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
12849 checks that ensure that a widget's allocation is at least 1 in width
12850 and height. (GNOME note: this doesn't affect old panel code anymore,
12851 because GtkSocket will request width and height of at least 1 since
12854 * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
12855 allocated yet (happens if the user realizes the window prematurely),
12856 size request and allocate it.
12857 (gtk_window_size_allocate): guard against guint underflows.
12859 Wed Aug 25 19:01:36 1999 Lars Hamann <lars@gtk.org>
12861 * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
12862 in gtk_built_sources, so gtk.defs gets built prior to all other
12865 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
12868 invoke indent on gtkmarshal.*.
12869 rewrote source generation rules, use COPYING as oldest source tag for
12870 a piggyback rule to generate all sources from (don't touch it ;).
12871 major cleanups, strip spaces on build rules for GNU Make.
12873 * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
12874 source and target files from commandline arguments. don't invoke indent.
12876 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
12878 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
12879 notebook after switch to avoid drawing problems.
12880 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
12882 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
12884 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
12886 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
12888 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
12889 notebook after switch to avoid drawing problems.
12890 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
12892 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
12894 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
12896 Wed Aug 18 09:20:10 1999 Tim Janik <timj@gtk.org>
12899 we use window->need_resize from configure_event now, to indicate that
12900 the gtkwindow should keep its allocation (e.g. because the user resized
12901 the window through window manager handles). resize_count is now reliably
12902 used to figure whether we got the allocation we requested from the
12904 configure events get queued as resizes now, the real stuff (size
12905 computation and allocation) now only goes on in gtk_window_move_resize().
12906 GtkWindow's requisition now contains its *real* requisition (like all
12907 other widgets), *not* taking usize into account.
12908 geometry_info->last_{width|height} is now updated from set_hints() only
12909 so it always contains the last hints we set for the window manager.
12910 made some event handlers return TRUE instead of FALSE.
12911 the overall code should be much more straight forward now, and the
12912 significant code portions are accompanied by comments now.
12913 (gtk_window_set_hints):
12914 removed requisition argument and made it
12915 fetch the requisition through gtk_widget_get_child_requisition.
12916 we also don't move the gdkwindow here anymore, gtk_window_move_resize()
12919 ensure that the widget is realized before calling
12920 gtk_container_check_resize() (and thus gtk_window_move_resize()), also
12921 ensure that we got properly size requested and allocated before
12923 (gtk_window_configure_event):
12924 ignore plain window moves, or reallocate the widget tree through the
12925 resize queue otherwise.
12926 (gtk_window_move_resize):
12927 mostly rewrote this function to figure window manager hints more
12928 reliably, coalesce window moves and resizes to reduce configure events
12929 and do actuall size allocations.
12931 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
12933 * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
12934 that have a resize pending, because a redraw is already queued for them.
12936 * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
12937 hack to clear resize_widgets.
12939 * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
12940 for resize containers prior to size allocation. (this is also a bit
12941 ugly, but avoids side effects for stopped emissions and is thus more
12943 (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
12945 * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
12946 function from gtk_tooltips_expose, as we connect to ::expose_event
12949 1999-08-18 Federico Mena Quintero <federico@redhat.com>
12951 * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
12953 (gtk_target_list_unref): Likewise.
12955 * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
12957 Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com>
12959 * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
12960 guard against division by zero. (Fixes bug #1339)
12962 Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com>
12964 * gtk/gtkentry.c (gtk_move_{forward,backward}_word):
12965 Prevent the trivial leak of information of allowing
12966 word motion when the entry is not visible.
12968 Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com>
12970 * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
12971 modality to error dialog as well as confirmation dialogs.
12972 (Bug #1803, reported by Rosanna Wing Sze Yuen)
12974 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
12976 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
12978 (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
12980 * gtk/Makefile.am (install-data-local): Solaris apparently
12981 has various troubles with ln -f; use rm first instead.
12982 (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
12984 1999-07-30 Raja R Harinath <harinath@cs.umn.edu>
12986 * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
12987 use `cp' followed by `rm' (the `rm' was already there).
12989 July 30, 1999 Elliot Lee <sopwith@redhat.com>
12991 * configure.in: Fix autoconf warnings about cross compilation by
12992 trying to provide sane defaults for AC_TRY_RUN.
12993 * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
12994 put them into $(srcdir) when generated. Also add a dependency of
12995 gtksignal.h on gtkmarshal.h for -j builds.
12996 * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
12998 Wed Jul 28 09:29:19 1999 Owen Taylor <otaylor@redhat.com>
13000 * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
13001 GDK_THREADS_{LEAVE,ENTER} pair.
13002 (From Paul Fisher <pnfisher@redhat.com>)
13004 Fri Jul 23 01:00:15 1999 Tim Janik <timj@gtk.org>
13006 * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
13007 width and height are always >0 (owen).
13009 Fri Jul 23 00:00:47 1999 Tim Janik <timj@gtk.org>
13011 * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
13012 change that assured that a widget's allocated with and height are
13013 always >1, since this breaks *buggy* panel code. unfortunately this
13014 back-breaks the gimp's color selector.
13016 * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
13017 allocation is always >0 in width and height, before sending the
13018 configure event; this is a *gross* hack to get the gimp back to work.
13020 * marked both cases with TODO-1.3
13022 Wed Jul 21 15:47:39 1999 Owen Taylor <otaylor@redhat.com>
13024 * gtk/gtktext.c: Don't display wrap indicators when
13025 text is not editable and word wrap is on.
13027 Wed Jul 21 08:21:40 1999 Tim Janik <timj@gtk.org>
13029 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
13030 option menus here as they are not derived from menu shell, assure that
13031 the option menu has a menu we can add items to.
13033 Tue Jul 20 23:29:48 1999 Tim Janik <timj@gtk.org>
13035 * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
13036 width/height to (gint) before calculations and check against < 0 to
13037 avoid guint wraparounds.
13039 Sun Jul 18 00:35:49 1999 Tim Janik <timj@gtk.org>
13041 * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
13042 width and height is never zero. sanity check both dimensions against
13043 32767 and issue a warning if the allocation is greater than that.
13045 Wed Jul 7 15:03:30 1999 Owen Taylor <otaylor@redhat.com>
13047 * gtk/gtkmain.c (gtk_events_pending): Unlock around call
13048 to g_main_pending() as well.
13050 Wed Jul 7 14:59:01 1999 Owen Taylor <otaylor@redhat.com>
13052 * gtk/gtkmain.c (gtk_main_iteration): Unlock around
13053 call to g_main_iteration() - since that will regrab
13054 GTK+ lock to process events.
13056 Thu Jul 1 15:01:55 1999 Owen Taylor <otaylor@redhat.com>
13059 - Regularize with the rest of GTK+ by making widget->requisition
13060 not reflect the set_usize()
13061 - Always recompute geometry hints, then check if they
13062 changed before sending them to the X server. The
13063 previous checks for changes would fail in a number
13066 Thu Jul 1 11:55:59 1999 Owen Taylor <otaylor@redhat.com>
13068 * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
13070 Wed Jun 30 19:26:36 1999 Owen Taylor <otaylor@redhat.com>
13074 - Instantaneously update on modifier key presses
13075 - Allow cancellation of the drag with Escape.
13077 Tue Jun 29 17:04:09 1999 Owen Taylor <otaylor@redhat.com>
13079 * gtk/testgtk.c (create_handle_box): Set the policy
13080 to auto_shrink - otherwise the appearance is rather
13081 strange when flipping between horizontal and vertical.
13083 Mon Jun 28 09:29:52 1999 Tim Janik <timj@gtk.org>
13085 * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
13086 (gtk_window_set_default_size): don't change a value if it's < 0.
13089 Sun Jun 27 11:00:33 1999 Tim Janik <timj@gtk.org>
13091 * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
13093 Mon Jun 28 12:08:25 1999 Owen Taylor <otaylor@redhat.com>
13095 * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
13096 add an extra "/" when concating "/" + filename.
13097 (From Matt Grossman <mattg@oz.net>)
13099 Mon Jun 28 10:57:12 1999 Owen Taylor <otaylor@redhat.com>
13101 * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
13102 for fg_gc if we set it for drawing pixmap.
13104 Tue Jun 15 12:45:12 1999 Owen Taylor <otaylor@redhat.com>
13106 Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
13108 * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
13109 already set, call old engine's destroy function and
13110 unref the old engine.
13112 Thu Jun 10 17:59:38 1999 Tim Janik <timj@gtk.org>
13114 * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
13116 Wed Jun 9 15:13:16 1999 Tim Janik <timj@gtk.org>
13118 * gtk/gtkaccelgroup.h: mark certain functions as internal.
13120 Wed Jun 9 13:48:28 1999 Tim Janik <timj@gtk.org>
13122 * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
13123 expand behaviour changed.
13125 * gtk/gtklabel.c (gtk_label_set_pattern):
13126 (gtk_label_set_justify):
13127 (gtk_label_set_line_wrap):
13128 don't bother invoking queue_clear, the reallocation does
13129 that for us, always free_words so the upcoming resize will
13130 relayout the label's contents.
13132 Wed Jun 9 12:50:48 1999 Tim Janik <timj@gtk.org>
13134 * applied argument implementation patches from Elena Devdariani
13137 * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
13138 ::space_style, ::relief
13139 * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
13140 * gtk/gtkpreview.c: ::expand
13141 * gtk/gtkpaned.c: ::handle_size, ::gutter_size
13142 * gtk/gtknotebook.c: ::homogeneous
13143 * gtk/gtklabel.c: ::wrap
13144 * gtk/gtklist.c: ::selection_mode
13145 * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
13146 * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
13147 * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
13148 * gtk/gtkclist.c: ::sort_type
13149 * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
13150 * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
13152 Tue Jun 1 23:38:38 1999 Owen Taylor <otaylor@redhat.com>
13154 * gtk/gtkstyle.c: Removed ill-thought-out part of last
13157 Tue Jun 1 23:30:09 1999 Owen Taylor <otaylor@redhat.com>
13159 * gtk/gtkstyle.c (gtk_style_attach): Get the reference
13160 counting right when we have to attach a new style
13161 for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
13163 * gtk/gtkstyle.c: Documented the refcounting
13164 peculularities of gtk_style_attach.
13166 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
13168 * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
13171 * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
13172 of GTK_TOPLEVEL for creating the window.
13174 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
13176 * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
13177 the last argument (reported by Per Winkvist).
13179 Tue May 25 13:13:12 1999 Owen Taylor <otaylor@redhat.com>
13181 Fixes for invisible XOR lines (Frank Loemker
13182 <floemker@TechFak.Uni-Bielefeld.DE>)
13184 * gtk/gtkclist.c (gtk_clist_realize): Always use
13185 a non-zero pixel for GDK_XOR.
13187 * gtk/gtkvpaned.c gtk/gtkhpaned.c:
13188 Use GDK_INVERT instead of GDK_XOR.
13190 Wed May 12 21:56:40 1999 Lars Hamann <lars@gtk.org>
13192 * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
13193 signals if h/voffsets differ from adjustment values.
13194 Reportet by Jerome Bolliet <bolliet@in2p3.fr>
13196 Mon May 10 04:20:41 1999 Tim Janik <timj@gtk.org>
13198 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
13199 ::selection-done emissions up to the topmost menu shell.
13201 Fri May 7 10:15:14 1999 Owen Taylor <otaylor@redhat.com>
13203 * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
13204 the user data on the window before destroying it.
13206 * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
13207 unrealize handler to take care of destroying
13208 notebook->panel properly.
13209 (Bug #1198 - Morten Welinder <terra@diku.dk>)
13211 * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
13212 of g_new and g_realloc to stop memory leak. (Actually,
13213 we could just use g_realloc(), but I'm not 100% sure
13215 (Bug #1196 - Morten Welinder <terra@diku.dk>)
13217 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
13219 * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
13221 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
13224 * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
13225 with bin/button confusion.
13227 Thu May 6 04:53:26 1999 Tim Janik <timj@gtk.org>
13229 * gtk/testgtk.c: in the ItemFactory test, link radio items together,
13230 and show how preselection of radio items is done.
13232 Sun May 2 13:31:14 1999 Tim Janik <timj@gtk.org>
13234 * gtk/gtktreeitem.c (gtk_tree_item_set_subtree):
13235 * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
13236 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
13237 * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
13238 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add):
13239 * gtk/gtktable.c (gtk_table_attach):
13240 * gtk/gtklist.c (gtk_list_insert_items):
13241 * gtk/gtkmenushell.c (gtk_menu_shell_insert):
13242 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu):
13243 * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add):
13244 * gtk/gtkbin.c (gtk_bin_add):
13245 * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end):
13246 * gtk/gtkfixed.c (gtk_fixed_put):
13247 * gtk/gtklayout.c (gtk_layout_put):
13248 general fixups to container_add logic. always realize child if
13249 child->parent is realized, only map the child and queue a resize
13250 if child and child->parent are both visible.
13252 Fri Apr 30 09:02:28 1999 Tim Janik <timj@gtk.org>
13254 * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
13255 instead of gtk_container_foreach to walk and unrealize children, so
13256 composite children get also unrealized.
13257 (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
13258 (gtk_widget_map): assert that the widget is visible (basic constrain).
13259 (gtk_widget_real_map): assert that the widget is realized (basic
13262 Fri Apr 29 00:53:20 1999 Tim Janik <timj@gtk.org>
13264 * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
13266 Tue May 4 09:32:08 1999 Owen Taylor <otaylor@redhat.com>
13268 * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
13269 file for iso-8859-2 locales.
13271 * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
13273 Tue Apr 27 16:38:32 1999 Owen Taylor <otaylor@redhat.com>
13275 * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
13276 (Pointed out by andy@rz.uni-karlsruhe.de and others).
13277 Remove some suspicious and useless lines.
13279 Tue May 4 08:44:08 1999 Owen Taylor <otaylor@redhat.com>
13281 * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use
13282 width,height = 0, 0 to mean - here to edge of window,
13283 instead of -1, -1, since the former is all we support.
13285 Tue May 4 08:34:43 1999 Owen Taylor <otaylor@redhat.com>
13287 * gtk/gtkmain.c (gtk_main): Correctly free list nodes
13288 when removing from quit_functions list.
13290 Tue Apr 27 14:17:16 1999 Tim Janik <timj@gtk.org>
13292 * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
13294 Tue Apr 27 18:23:35 1999 Owen Taylor <otaylor@redhat.com>
13296 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
13297 When redrawing characters on non-visible entry, use appropriate
13298 '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
13300 Tue Apr 27 01:31:40 1999 Lars Hamann <lars@gtk.org>
13302 * gtk/gtkclist.c (drag_dest_cell): compute destination cell
13303 from drag coordinates.
13304 (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
13305 use drag_dest_cell.
13307 * gtk/gtktree (drag_dest_cell)
13308 (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
13311 Wed Apr 21 21:26:11 1999 Tim Janik <timj@gtk.org>
13313 * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
13314 translate_* fields.
13315 (gtk_item_factory_finalize): invoke translate_notify independant from
13317 (gtk_item_factory_set_translate_func): likewise.
13318 (gtk_item_factory_destroy): only remove ifactory pointer from those
13319 widgets that belong to us (stupid me).
13321 Mon Apr 19 12:05:31 1999 Owen Taylor <otaylor@redhat.com>
13323 * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
13324 rc_style list when lookup succeeeds.
13326 Thu Apr 15 01:11:24 1999 Lars Hamann <lars@gtk.org>
13328 * gtk/gtkctree.c (resync_selection):
13329 * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
13330 * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
13333 Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
13335 * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
13336 Add some missing GDK_THREADS_ENTER()/LEAVE around
13337 timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
13339 Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
13341 * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
13342 rather than emit_by_name.
13344 * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
13345 on the widget across multiple signal emissions.
13346 (gtk_editable_delete_text): same here.
13347 (gtk_editable_class_init): set widget_class->activate_signal after
13348 editable_signals[ACTIVATE] has been created.
13350 Wed Apr 7 22:59:47 1999 Owen Taylor <otaylor@redhat.com>
13352 * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
13353 position here prematurely -- we might not have the
13354 right ->min_position and ->max_position yet.
13356 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
13358 * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
13359 Add error traps so if the other end of the connection
13362 * gtk/gtkselection.c (gtk_selection_notify): Clean
13363 up properly when selection property retrieval fails.
13365 * gtk/gtkselection.c (gtk_selection_request): Correctly
13366 reject SelectionRequest notifies where the handler
13369 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
13371 * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
13372 when we've previously highlighted.
13374 * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
13375 emit two "drag_leave" signals for Motif drops.
13377 * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
13378 back the correct status messages when dropping from
13379 Motif onto a proxy window that is rejecting the
13382 Sat Mar 27 23:32:13 1999 Tim Janik <timj@gtk.org>
13384 * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
13385 the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
13386 to compare two argument values. added gtk_arg_to_valueloc() to set a
13387 variable from an arg through its location (pointer).
13389 * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
13390 gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
13391 as gfloat*, uchars are collected as guchar*, ints are collected as
13394 Mon Mar 29 17:45:47 1999 Owen Taylor <otaylor@redhat.com>
13396 * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
13397 Include <string.h> instead of <strings.h>.
13399 * gtk/gtkstyle.c: Fix double include of gtkthemes.h
13400 (actually, a lot more duplicate includes occur if
13401 you trace through the sequence of #include's)
13402 gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
13404 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
13406 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
13407 gtk-a-higuti-990322-[0-3]
13409 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
13410 that was causing -DX_LOCALE not to work.
13412 * gtk/gtkrc.c (gtk_rc_init):
13413 X_LOCALE will never have LC_MESSAGES defined
13415 Thu Mar 25 12:38:31 1999 Tim Janik <timj@gtk.org>
13417 * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
13418 g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
13420 * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
13421 left/right as well (gtk-michael-980726-0.patch.gz).
13423 * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
13424 for pointer values, use gchar instead of char. fixed uline allocation
13425 leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
13426 chunks instead of G_ALLOC_ONLY.
13427 (gtk_label_size_request): always alter requisition as passed and leave
13428 widget->requisition alone.
13429 (gtk_label_set_text): allow NULL strings.
13430 (gtk_label_new): likewise.
13432 Wed Mar 24 09:24:03 1999 Tim Janik <timj@gtk.org>
13434 * gtk/gtkdrawingarea.[hc]: type/macro fixups.
13436 Mon Mar 22 05:51:34 1999 Tim Janik <timj@gtk.org>
13438 * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
13439 *and* mapped (i.e. drawable).
13440 (gtk_bin_expose): only send exposes to drawable children.
13442 * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
13443 (gtk_box_expose): only send exposes to drawable children.
13445 * gtk/gtkhscale.c (gtk_hscale_draw):
13446 * gtk/gtkvscale.c (gtk_vscale_draw):
13447 hm, this is an ugly one. we first compute the size of our trough area
13448 here (window relative) and then check intersection with the draw_area
13449 which is parent relative because we're a NO_WINDOW widget, so we need
13450 to offset the trough area by allocation.x and allocation.y before the
13451 check. (this must not be done for the background area though, since
13452 that's already computed parent relative).
13454 Mon Mar 22 00:41:39 1999 Lars Hamann <lars@gtk.org>
13456 * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
13457 unrealize title buttons.
13459 Fri Mar 19 00:00:22 1999 Lars Hamann <lars@gtk.org>
13461 * gtk/gtkclist.c (gtk_clist_column_title_passive)
13462 (gtk_clist_column_title_active):
13463 only connect/disconnect to GtkWidgetClass::event to block mouse events.
13465 * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout):
13466 zero initialize event, removed superfluous gdk_window_get_pointer call
13468 * gtk/gtklist.c (gtk_list_vertical_timeout)
13469 (gtk_list_horizontal_timeout): removed superfluous
13470 gdk_window_get_pointer call
13472 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
13474 * plugging problems reported by "Bruce Mitchener, Jr."
13475 <bruce@puremagic.com> due to a purify session.
13479 (gtk_style_unref): assert ref_count to be > 0.
13481 * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
13483 (gtk_clist_set_shift): likewise.
13485 * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
13488 * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
13489 event before sending it and set send_event to TRUE (which needs to
13490 be done for *all* synthesized events).
13491 (gtk_list_vertical_timeout): likewise.
13493 * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
13496 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
13497 to TRUE when synthesizing events.
13499 [ *** end of merges from 1.2 *** ]
13501 1999-11-21 Tor Lillqvist <tml@iki.fi>
13503 * gdk/gdkconfig.h: Remove, as this is a file generated by configure
13504 (or copied from gdkconfig.h.win32 on Win32, sigh).
13506 * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
13508 * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
13510 * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
13512 * gdk/gdkconfig.h.win32: New file.
13514 * gdk/win32/makefile.cygwin: Build just a static archive here.
13516 * gdk/makefile.cygwin: New file. Get the win32-specific stuff
13517 for the DLL from the static archive built above.
13519 * gdk/gdk.def: Moved here from the win32 subdirectory.
13521 * gdk/win32/*: Adapt for the changed private struct organisation.
13523 * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
13525 Sun Nov 21 16:44:35 1999 Stefan Jeske <stefan@gtk.org>
13527 * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support
13528 for wheel mice (buttons 4 and 5).
13530 1999-11-18 Tor Lillqvist <tml@iki.fi>
13532 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
13533 drawables use just the pixel field in the foreground and
13534 background GdkColor of the GdkGC.
13536 gdk_gc_set_{fore,back}ground() are called in the GIMP with
13537 GdkColors containing uninitialized (red,green,blue) fields, and
13538 just the pixel field filled in, and furthermore in the
13539 visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
13540 It thus turns out that we really don't need to have the full
13541 GdkColor for fg and bg in GdkGCWin32Data after all. Will change
13542 it later to have just the pixel values.
13544 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
13546 * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
13548 Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
13550 * docs/gtkfaq.sgml: threads example from Erik Mouw.
13551 New question on GtkLabel background colors.
13553 * docs/gtk_tut.sgml:
13554 - Correct the example code callback
13555 function definitions.
13556 - Update the gtkdial example code, from Frans van Schaik.
13557 - Update setselection.c to current API.
13559 * examples/Makefile examples/*/*.c: Update to code
13560 listed in tutorial.
13562 1999-11-10 Tor Lillqvist <tml@iki.fi>
13564 * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
13565 subrange table (from the "Developing International Software for
13566 WIndows 95 and Windows NT" book) was missing the Hangul syllable
13567 block... Get the loaded font's charset correctly.
13569 (Note that this, and the other *-win32.c files, still really are
13570 the old ones, the win32 subdirectory is not ready for compilation
13571 yet after the reorg.)
13573 Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
13575 * gtk/gtkclist.c: Fix off-by-one bug in parameter
13578 Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
13580 * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
13581 on results of XQueryDeviceState().
13583 Mon Nov 8 16:40:43 1999 Owen Taylor <otaylor@redhat.com>
13585 * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
13586 we need to accesss only ->children. We need an accessor
13589 * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
13590 DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
13591 to get rid of gdkx.h include.
13593 * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
13594 and random references to 'None'.
13596 * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
13597 Get rid of unused #include <gdk/gdkx.h>
13599 * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
13600 gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
13603 1999-11-08 Tor Lillqvist <tml@iki.fi>
13605 * gdk/win32/gdkdraw.c
13606 * gdk/win32/gdkfont.c
13607 * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
13608 following yesterday's changes. (Unrelated to Owen's reorg.)
13610 Mon Nov 8 16:18:25 1999 Owen Taylor <otaylor@redhat.com>
13612 * gdk/x11/gdkinput-gxi.c: Add missing include,
13613 fix GdkWindowPrivate => GdkDrawablePrivate.
13615 * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
13617 * gdk/x11/Makefile.am (xinput_sources): Add missing
13618 backslash to fix building with --with-xinput=none
13620 Mon Nov 8 14:47:04 1999 Owen Taylor <otaylor@redhat.com>
13622 Move all X specific code into the x11/ directory.
13623 Aside from shuffling things around, did the following:
13625 * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
13626 gdk_arg_context_* - a simple argument parsing system
13627 in the style of popt.
13629 * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
13630 gdk/x11/gdkprivate-x11.h:
13631 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
13632 add ->klass and ->klass_data fields. The klass_data
13633 field points to an auxilliary structure that is
13634 windowing system dependent.
13636 * gdk/gdkfont.c: Make most of the measurement functions
13637 simply wrappers around gdk_text_extents().
13639 * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
13640 _gdk_font_strlen() function that hides the weird
13641 behavior in gtk+-1.[02] where a string is interpreted
13642 differently for 8-bit and 16-bit fonts.
13644 * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
13645 to store common code for synthesizing double/triple
13648 * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
13649 Make all the function that modify an existing GC
13650 simply wrappers around gdk_gc_set_values().
13652 * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
13653 for throwing out later.
13655 * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
13656 GdkImagePrivate and GdkColormapPrivate to have a
13657 windowing system dependent part (GdkFontPrivateX etc.)
13658 that "derives" from the system-independent part.
13660 * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
13661 Got rid of the included-source-files for XInput in
13662 favor of automake conditionals. (Which didn't exist
13663 when XInput support was originally added.)
13665 * gdk/gdkrgb.c: Remove the visual id from the debugging
13666 statements since that is X11 specific; print out
13667 type/depth info instead.
13670 Wed Nov 3 18:14:49 1999 Owen Taylor <otaylor@redhat.com>
13672 * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
13673 loading duplicates of hashed fonts.
13675 * gdk/gdk.c (gdk_keysym_convert_case): rename
13676 gdk_XConvertCase to gdk_keysym_convert_case, allow
13677 results to be NULL in the GTK+ style.
13679 * gdk/gdkcompat.h: Started compatibility header
13682 1999-11-07 Tor Lillqvist <tml@iki.fi>
13684 * gdk/win32/gdkprivate.h: New font private structures, related to
13687 * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
13688 gdk_font_list_free(). On X11, will just be wrappers to
13689 XListFonts() and XFreeFontNames(). On Win32, the code previously
13690 in gtkfontsel.c is now here.
13692 New function gdk_font_xlfd_create(). On X11 will get the FONT
13693 property of the font (for GDK_FONT_FONTs), or call
13694 XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
13695 builds a XLFD style name from the font information in the LOGFONT
13698 New function gdk_font_xlfd_free(), which correspondingly frees the
13699 string returned by gdk_font_xlfd_create().
13701 Implement fontsets on Win32. Add a function that iterates over a
13702 wide char string and calls a callback function for each substring
13703 of wide chars from the same Unicode subrange (and thus probably
13704 available in the same real font).
13706 Improve the XLFD emulation a bit.
13708 * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
13710 * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
13711 Beta3, WM_IME_CHAR messages don't seem to contain the composed
13712 multi-byte char as with the Active IMM on Win9x. Oh well, handle
13713 WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
13714 ImmGetCompositionStringW() to get the composed Unicode chars.
13716 * gdk/win32/gdkgc.c
13717 * gdk/win32/gdkdraw.c: Changes needed because of the font private
13720 * gdk/win32/gdk.def: Add the new functions.
13722 1999-11-04 Tor Lillqvist <tml@iki.fi>
13724 * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
13725 get the Platform SDK to get <dimm.h>.
13727 * gdk/win32/gdkevents.c: More event handling fixes and
13728 simplification. Never generate motion events with is_hint true. We
13729 used to do that on bogus grounds earlier. Windows sends
13730 WM_MOUSEMOVE messages on button events even if the mouse hasn't
13731 moved, ignore these.
13733 * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
13735 * gdk/win32/gdkglobals.c
13736 * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
13737 the TrackMouseEvent function, and use it.
13739 * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
13740 char before calling WideCharToMultiByte in order to get a string
13741 for the window title.
13743 * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
13745 * gdk/win32/gdk.def: Remove obsolete functions.
13747 * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
13748 /nodefaultlib and /defaultlib switches.
13750 * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
13752 1999-10-31 Tor Lillqvist <tml@iki.fi>
13754 * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
13757 * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
13758 same type as GdkWChar, especially on Win32.
13760 * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
13762 * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
13763 before passing to Windows GDI for drawing etc. Convert to the
13764 system default codepage before passing to Windows as window
13767 * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
13768 support changing input locale on the fly.
13770 * gdk/win32/gdkevent.c: Support input language (keyboard locale)
13771 on-the-fly changes. Convert incoming characters from the current
13772 codepage to Unicode (and then to a UTF-8 multi-byte string) based
13773 on the current input language. Use keysym<->Unicode mapping tables
13774 and functions borrowed from xterm sources.
13776 Support IMEs (Input Method Editors) for CJK languages. On non-CJK
13777 editions of Win9x, use the ActiveX-based Active IMM (Input Method
13778 Manager) if available. IMEs and the Active IMM are available under
13779 the disguise of Chinese, Korean and Japanese support for IE and
13780 Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
13781 support is present in all editions (as long as you install it).
13783 Call DispatchMessage from gdk_events_queue() (and thus
13784 gdk_WindowProc()), instead of duplicating the code in
13787 Reworked the grab handling and propagation code, factored out
13788 duplicated code snippets into separate functions. Other cleanups,
13791 * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
13792 the <dimm.h> header describing the Active IMM.
13794 * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
13795 just do the same as for "single" fonts.
13797 * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
13798 gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
13799 the new keysyms from gdkkeysyms.h.
13801 * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
13802 fontset, so that gtkentry uses wide characters.
13804 * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
13805 GTk+'s system directory "gtk+", not "gtk".
13807 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
13809 * docs/gtkfaq.sgml: FAQ update
13811 1999-10-21 Tor Lillqvist <tml@iki.fi>
13813 * gdk/win32/gdkprivate.h: Add more font private data.
13815 * gdk/win32/gdkfont.c
13816 * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
13817 fonts and strings. Now works much better. You still have to
13818 have a correct font selected, though. No fontset emulation yet.
13820 1999-10-19 Tor Lillqvist <tml@iki.fi>
13822 * gtk/maketypes.awk: Use G_OS_WIN32.
13824 * gtk/gtk.def: Add some missing entry points. Also some non-public
13825 ones, but PyGTK porter claims to need them.
13827 * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
13828 built-in type generation.
13830 1999-10-14 Tor Lillqvist <tml@iki.fi>
13832 * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
13833 GDK_FONT_FONT fonts (which is all we have for now, we don't
13834 emulate fontsets). The X11 version uses plain XDrawString in that
13835 case, too. The string passed to gdk_draw_text_wc seems to be in
13836 fact (at least, when used by gtkentry and gtktext) either in a
13837 single-byte charset, or a DBCS. Not Unicode.
13839 This fixes the problem in gtkfontsel, where even if you had
13840 selected a font with a non-Latin1 charset (windows-greek, for
13841 instance), the preview still used Latin-1 glyphs.
13843 * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
13844 use GetTextExtentPoint32W, use GetTextExtentPoint32A.
13845 (gdk_font_load): Recognize the demibold etc weights, even if we
13846 don't have the corresponding constants in the headers.
13847 (gdk_font_hash_insert): Use same hash mechanism as in the X11
13848 version. Should save font resources a bit, when we don't have
13849 multiple HFONTs for the same font.
13851 * gdk/win32/gdkprivate.h: Add the names field as in the X11
13854 1999-10-11 ERDI Gergo <cactus@cactus.rulez.org>
13856 * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
13859 1999-10-09 ERDI Gergo <cactus@cactus.rulez.org>
13861 * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
13862 layout support (as mentioned on
13863 http://www.jcinteractive.com/gnome-ui/software/widgets/)
13865 Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
13868 * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
13870 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
13872 * configure.in (ALL_LINGUAS): Added Galician (gl)
13874 1999-10-05 Tor Lillqvist <tml@iki.fi>
13876 * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
13878 * gdk/win32/gdkcompat.c: New file, actually provide an
13879 implementation for the deprecated functions. (Just temporarily.)
13881 * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
13883 * gtk/makefile.{cygwin,msc}: Update gdk_headers.
13885 * gdk/win32/gdk.def gtk/gtk.def: Updates.
13887 1999-10-05 Kjartan Maraas <kmaraas@online.no>
13889 * configure.in: Added "uk" to ALL_LINGUAS.
13891 Mon Oct 4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
13893 * configure.in: correct checking for BeOS check
13898 * gtk/gtkitemfactory.c
13900 * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
13902 Mon Oct 4 16:16:53 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
13904 * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
13905 encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
13906 languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
13909 Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com>
13911 * gtk/gtkwidget.c (gtk_reset_shapes_recurse):
13912 Fix a reference to window_private->destroyed.
13914 * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
13915 (ugly) setting of an internal GdkWindow member to use
13916 a _slightly_ cleaner macro.
13918 * gdk/gdkprivate.h: Split GdkWindowPrivate into
13919 GdkDrawablePrivate and GdkWindowPrivate.
13920 Add extra macros for accessing GDK_DRAWABLE_ components.
13922 * *.[ch]: Massive adjustments for the above, use the
13923 new macros in a lot of places.
13925 Sun Oct 3 15:16:24 1999 Owen Taylor <otaylor@redhat.com>
13927 * gdk/gdktypes.h: Make GdkDrawable the base type,
13930 Sun Oct 3 15:08:44 1999 Owen Taylor <otaylor@redhat.com>
13932 * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
13934 Sun Oct 3 14:26:15 1999 Owen Taylor <otaylor@redhat.com>
13936 * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
13938 Sun Oct 3 14:16:23 1999 Owen Taylor <otaylor@redhat.com>
13940 * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
13941 gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
13943 * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
13945 * docs/gtk-config.1: Now autogenerated.
13946 * docs/Changes-1.4.txt: started
13948 1999-10-03 Tor Lillqvist <tml@iki.fi>
13950 * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
13951 to #ifdef also here.
13953 * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
13954 Owen did to the X11 backend.
13956 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
13957 ScrollWindowEx when blitting inside a window, it can't be correct
13958 in the general case.
13960 * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
13961 WM_GETMINMAXINFO is easier.
13963 * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
13964 depth equal to the bitspixel value, not the visual's depth.
13966 * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
13967 to 24 even if the bitspixel value is 32.
13969 * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
13970 need to check for depth==32 when bpp==32, depth will always be 24.
13972 Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com>
13974 * docs/Changes-1.4.txt: Started
13976 * gtk/Makefile.am (gdk_headers): Include all the new headers.
13978 * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
13980 * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
13983 * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
13984 header to gdkinputprivate.h.
13986 * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
13987 unused since before 1.2.
13989 1999-09-30 Tor Lillqvist <tml@iki.fi>
13991 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
13992 expand possible hex escapes in the font family (put there by
13993 logfont_to_xlfd if the font name isn't a legal XLFD font family,
13994 mainly if it contains slashes). (gtk_font_selection_create_xlfd):
13995 On Win32, add hex escapes here, too.
13997 Wed Sep 29 19:55:35 1999 Owen Taylor <otaylor@redhat.com>
13999 * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
14000 to #ifdef GDK_WINDOWING_X11.
14002 [ Merges from gtk-1-2 ]
14004 Wed Sep 8 07:13:29 1999 Tim Janik <timj@gtk.org>
14006 * configure.in: fixed "GNU Make" check to pass with new make version
14009 Fri Sep 3 16:04:41 1999 Tim Janik <timj@gtk.org>
14011 * gtk-config.in (--version): don't echo @GTK_VERSION@, but
14012 @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
14013 AM_PATH_GTK() macros don't get confused by the -pre1.
14015 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
14017 * configure.in (REBUILD): Change check for perl5
14018 to check explicitely for v >= 5.002. (5.001
14019 does not work with our scripts.)
14021 Wed Aug 25 15:45:46 1999 Tim Janik <timj@gtk.org>
14023 * configure.in: evaluate $PERL for the perl version check. added
14024 --disable-rebuilds to give the user an option to completely disable
14025 any source autogeneration rules.
14027 Mon Aug 23 23:16:14 1999 Tim Janik <timj@gtk.org>
14029 * configure.in: evaluate $ac_make when checking for GNU Make.
14031 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
14033 * docs/Makefile.am: added generation.txt.
14035 * Makefile.am: require automake 1.4, build README from README.in and
14036 INSTALL from INSTALL.in in dist-hook.
14039 * INSTALL.in: new files to autogenerate README and INSTALL from.
14041 * configure.in: figure whether we have GNU Make
14043 * docs/generation.txt: minor additions/corrections.
14045 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
14047 * docs/gtkfaq.sgml: FAQ Update
14049 July 30, 1999 Elliot Lee <sopwith@redhat.com>
14051 * configure.in: Fix autoconf warnings about cross compilation by
14052 trying to provide sane defaults for AC_TRY_RUN.
14054 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
14057 * ltmain.sh: upgrade to libtool 1.3.3
14059 Thu Jul 8 11:30:18 1999 Owen Taylor <otaylor@redhat.com>
14061 * INSTALL: Indicate that the --with-glib= configure
14062 time flag is unsupported.
14064 Mon Jul 5 20:36:03 1999 Owen Taylor <otaylor@redhat.com>
14066 * docs/generation.txt: Added a file that gives
14067 documenation about the autogeneration process for
14068 various autogenerated files.
14070 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
14072 * configure.in (LIBS): Look for libgmodule in the
14075 Thu Jun 17 13:57:31 1999 Owen Taylor <otaylor@redhat.com>
14077 * docs/gtk_tut.sgml: Removed references to
14078 code examples in my directory on gtk.org as
14079 they should all be in the tutorial now.
14081 * docs/gtk_tut.sgml: Added sources for dial-test
14082 and scribble-xinput programs that were previously
14085 Fri Jun 4 00:08:59 1999 Owen Taylor <otaylor@redhat.com>
14087 * TODO: Added entry about menu keyboard navigation, removed
14088 some finished items.
14090 Mon May 31 00:11:24 1999 Owen Taylor <otaylor@redhat.com>
14092 * acinclude.m4: Standardize on func_dgettext
14093 not func_gettext, so that the checks for dgettext
14094 actually are paid attention to.
14096 Wed May 5 10:47:54 1999 Owen Taylor <otaylor@redhat.com>
14098 * configure.in (LIBS): Add $INTLLIBS into $LIBS
14099 directly, rather than repeating the checks for
14102 * INSTALL: Added information about gettext and
14105 * acinclude.m4 (LIBM): Check for dgettext, not
14106 just gettext. This should hopefully fix things wrt
14107 systems with old versions of GNU gettext installed.
14109 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
14111 * configure.in (LIBS): Look for libgmodule in the
14114 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
14116 * autogen.sh: add --enable-maintainer-mode
14118 * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
14120 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
14122 * docs/gtk-config.1.in:
14124 configure.in: gtk-config is now generated.
14126 * docs/gtk-config.1: Removed, now generated.
14128 Thu Sep 23 17:59:59 1999 Tim Janik <timj@gtk.org>
14130 * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
14131 handle CreateNotify itself, still put out a debuging message for
14132 --gdk-debug=events. made the ReparentNotify debugging message more
14134 wrap xcoords translation for ConfigureEvents into an error trap,
14135 a destroy event may already be pending, and in that case, the
14136 actuall coordinate values are not at all critical.
14138 Sat Sep 18 22:24:15 1999 Owen Taylor <otaylor@redhat.com>
14140 * gdk/gdkcc.c: Stop leaking the color_hash all over
14141 the place. Simplify and improve the logic.
14143 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
14145 * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
14146 for prototypes and function implementations consistent (reported
14149 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
14151 * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
14152 send_event set in debugging output.
14153 (gdk_compress_exposures): default initialize the event so we don't
14154 operate on bogus values (namely send_event).
14156 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
14158 * gdk/gdkwindow.c: When we receive an unexpected
14159 destroy notify on one of our windows, don't just
14160 warn about it, also mark our windows as destroyed.
14162 Sun Sep 5 08:10:53 1999 Owen Taylor <otaylor@redhat.com>
14164 * gdk/gdkfont.c (gdk_font_hash_insert): Add
14165 name => font and name => fontset hashes. The
14166 name => fontset hash is a _big_ win since we
14167 weren't previously caching fontsets at all and loading
14168 fontsets is expensive. The name => font hash
14169 is less of a win, but it does save us from doing
14170 repeated XQueryFont calls on the same font.
14172 * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
14173 list so we can remove font/fontset from hash.
14175 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
14177 * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
14178 and slightly confusing test. [ XInternAtom (,,TRUE)
14179 will never return None ].
14181 Sat Sep 4 08:39:26 1999 Owen Taylor <otaylor@redhat.com>
14183 * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
14184 gdk/gdkwindow.c (gdk_window_set_hints):
14186 Don't omit setting the properties if flags == 0 -
14187 there may be an existing set of properties there
14188 already. (Very old bug. Would it be better to
14189 delete the property instead?)
14191 * gdk/gdkselection.c (gdk_selection_property_get): Fix
14192 spelling error in comment.
14194 Wed Sep 1 14:05:30 1999 Owen Taylor <otaylor@redhat.com>
14196 * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
14197 to avoid stomping over gdk_error_warnings.
14199 * gdk/gdkimage.c (gdk_image_new): compute image->bpp
14200 as (bits_per_pixel + 7) / 8. This gives the same
14201 result as before for multiples of 8, but actually
14202 a "reasonable" value for 1bit or 4bit displays.
14204 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
14206 * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
14209 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
14211 * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
14212 discarding configure events.
14214 1999-08-18 Federico Mena Quintero <federico@redhat.com>
14216 * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
14217 refcount is greater than zero.
14219 * gdk/gdkwindow.c (gdk_window_unref): Likewise.
14221 * gdk/gdkfont.c (gdk_font_unref): Likewise.
14223 * gdk/gdkgc.c (gdk_gc_unref): Likewise.
14225 * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
14227 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
14229 * gdk/gdkproperty.c (gdk_property_get): Fix assumption
14230 that format 32 => sizeof(item) == 4. It really is
14233 Tue Jun 29 23:02:42 1999 Owen Taylor <otaylor@redhat.com>
14235 * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
14236 core dump at all on X IO errors, only core dump
14237 if --enable-debug for X errors.
14239 Thu Jun 24 17:06:23 1999 Tim Janik <timj@gtk.org>
14241 * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
14242 unknown window:" message. disabled ConfigureNotify discarding code,
14243 because it led to events being processed out of order.
14245 Thu Jun 24 12:22:02 1999 Tim Janik <timj@gtk.org>
14247 * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
14249 * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
14250 we export this function, supress error warnings and don't reset the
14251 error code in the first half of this function.
14253 * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
14254 code (instead of just -1) so gdk_error_trap_pop() reveals something
14255 actually informative about the error that happened.
14258 don't rely on gdk_error_code being -1 if an error occoured, but just
14259 gdk_error_code != 0.
14261 Thu Jun 24 11:50:07 1999 Tim Janik <timj@gtk.org>
14263 * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
14264 pointer *before* invoking the filter function, so we at least don't
14265 crash if a filter is removed that is currently executed. window filters
14266 *really* need to be made truely reentrant at some point.
14268 Mon Jun 14 11:10:15 1999 Tim Janik <timj@gtk.org>
14270 * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
14271 PropertyNotify debug messages.
14273 Wed May 5 22:51:06 1999 Owen Taylor <otaylor@redhat.com>
14275 Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
14277 * gdk/gdkim.c: Fix cut-and-paste errors for
14278 x/y and PreeditAttributes/StatusAttributes.
14280 Wed May 5 22:24:21 1999 Owen Taylor <otaylor@redhat.com>
14282 * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
14283 G_MAXINT to 2^16 to alleviate overflow problems in
14284 various window managers.
14286 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
14288 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
14291 Wed May 5 12:42:01 1999 Owen Taylor <otaylor@redhat.com>
14293 * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
14294 Initialize size_hints.x and size_hints.y because kwm
14295 brokenly pays attention to them.
14296 (Bug #1181 - Lars Heete <hel@admin.de>)
14298 Wed May 5 11:38:56 1999 Owen Taylor <otaylor@redhat.com>
14300 * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
14301 return value of gdk_list_visuals().
14302 (Bug #1193 - Morten Welinder <terra@diku.dk>)
14304 Tue May 4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
14306 * gdk/gdkim.c (gdk_im_real_open): cast the return value of
14307 XSetIMValues to (void *) when comparing to NULL, to workaround
14308 the problem of some compilers barfing since older X headers don't
14309 have the prototype for it.
14311 Mon Apr 19 10:11:12 1999 Owen Taylor <otaylor@redhat.com>
14313 * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
14314 for pseudocolor where colormap->colors was double
14317 * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
14318 color value in the hash table with the pixel filled
14319 in so when we do later hash table lookups, the color
14322 Sun May 2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
14324 * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
14327 Tue Apr 27 11:17:35 1999 Owen Taylor <otaylor@redhat.com>
14329 * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
14330 pointed out by Morten Welinder <terra@diku.dk>.
14332 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
14334 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
14335 default filter from the list
14337 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
14339 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
14340 default filter from the list
14342 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
14344 * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
14346 * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
14347 g_strdup_printf instead of calcing the length separately
14349 Tue Apr 13 02:49:33 1999 Owen Taylor <otaylor@redhat.com>
14351 * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
14352 that we don't do in many other places. (Fixing duplicate
14353 #include of config.h)
14355 * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
14356 Otherwise, #ifndef XINPUT_NONE check in the latter
14357 doesn't work. (Bug #546)
14359 Sun Apr 11 14:38:03 1999 Tim Janik <timj@gtk.org>
14361 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
14362 "None" case insensitive.
14364 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
14366 * gdk/gdkselection.c:
14367 Add error traps so if the other end of the connection
14370 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
14372 * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
14373 dest_xid field into two fields - one for the window
14374 to send in messages, one to indicate the last looked
14375 up window for caching purposes. This is needed, so
14376 that Leave messages get the correct window.
14378 Mon Apr 5 13:21:30 1999 Owen Taylor <otaylor@redhat.com>
14380 * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
14381 Fix warning created by people mucking around
14382 with the gsource API.
14384 * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
14385 Change mapping between GIOCondition and GdkInputCondition
14386 to match the way the Linux kernel does it. This should
14387 fix problems where closed pipes were no longer signalling
14388 GDK_INPUT_READ on systems with a native poll().
14390 Mon Apr 5 17:11:57 1999 Owen Taylor <otaylor@redhat.com>
14392 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
14393 explicitly for the string "None" - it is in the XPM
14394 spec and some servers treat unknown colors in odd ways
14395 (like asking the user!)
14397 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
14399 * gdk/gdkevents.c: made "->" into a "." of previous change so
14402 Thu Apr 1 18:41:25 1999 Owen Taylor <otaylor@redhat.com>
14404 * gdk/gdkevents.c (gdk_compress_exposures): Set the
14405 window field of the event structure before calling
14408 1999-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
14410 * gdk/gdk.c (gdk_init_check): Use False as the last argument to
14411 XInternAtom() here. This is a particularly Old And Nasty(tm) bug.
14413 Mon Mar 29 17:31:52 1999 Owen Taylor <otaylor@redhat.com>
14415 * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
14416 intermediate text property - prevents major memory
14417 leak when gdk_use_mb.
14418 gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
14420 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
14422 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
14423 gtk-a-higuti-990322-[0-3]
14425 * gdk/gdkfont.c (gdk_text_extents_wc): Make work when
14426 sizeof(wchar_t) != sizeof (GdkWChar)
14428 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
14429 that was causing -DX_LOCALE not to work.
14431 * gtk/gtkrc.c (gtk_rc_init):
14432 X_LOCALE will never have LC_MESSAGES defined
14434 * gdk/gdk.c (gdk_init_check):
14435 Remove --xim-preedit and --xim-status from argv properly.
14437 * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
14438 that the client window is present on the X server
14439 before we pass it to the input method.
14441 Tue Mar 9 10:46:49 1999 Owen Taylor <otaylor@redhat.com>
14443 * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
14444 if --display is specified on the command line, than
14445 the drag window will not be created on that display.
14447 Tue Mar 9 10:38:24 1999 Owen Taylor <otaylor@redhat.com>
14449 * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
14450 lookups with only_if_exists == TRUE were inserting
14451 bogus values into the atom cache.
14453 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
14455 * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
14456 then reset it to NULL.
14460 (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
14461 key for g_hash_table_remove() in both functions, this prevents us
14462 from accessing possibly uninitialized portions of a GdkColor structure
14463 where we are only interested in its pixel value.
14465 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
14467 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
14468 font hash table, if we have a GdkFontPrivate entry for this font
14469 already, simply increment its reference count, provided by Olaf Dietsche
14470 <olaf.dietsche+list.gtk@netcologne.de>.
14472 1999-09-21 Tor Lillqvist <tml@iki.fi>
14474 * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
14477 * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
14478 unused variables, leftovers from the X11 version.
14480 * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
14482 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
14483 downcase fields on X11.
14485 Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
14487 * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
14488 Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
14490 1999-09-17 Tor Lillqvist <tml@iki.fi>
14492 * gdk/win32/gdk.def: Add gdk_threads_mutex.
14494 * gtk/makefile.msc: Correct path to libintl.
14496 Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
14497 use of gint vs. int, and gint vs. gboolean in headers and
14498 definitions. Use GtkType for the *_get_type functions. Note that
14499 these changes preserve binary compatibility.
14503 * gdk/gdk.h: Fix inconsistencies: gint vs int.
14507 * gtk/gtkmenufactory.c
14508 * gtk/gtknotebook.c
14509 * gtk/gtkwidget.c: Fix inconsistencies, also gint
14512 * gtk/gtkcolorsel.[ch]
14513 * gtk/gtkcombo.[ch]
14514 * gtk/gtkdrawingarea.[ch]
14515 * gtk/gtkgamma.[ch]
14516 * gtk/gtkhandlebox.[ch]
14517 * gtk/gtkhpaned.[ch]
14518 * gtk/gtkhruler.[ch]
14520 * gtk/gtkpreview.[ch]
14521 * gtk/gtkruler.[ch]
14522 * gtk/gtksocket.[ch]
14523 * gtk/gtkstatusbar.[ch]
14524 * gtk/gtktoolbar.[ch]
14525 * gtk/gtkvbbox.[ch]
14526 * gtk/gtkvpaned.[ch]
14527 * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
14530 * gtk/gtkgamma.h: Fix bug, missing () in call of
14531 gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
14533 1999-09-14 Tor Lillqvist <tml@iki.fi>
14535 * gdk/gdkcolor.c (gdk_colormap_new)
14536 * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
14537 colormap->colors was allocated twice.
14539 * gdk/win32/gdk.c: Remove some unused stuff.
14541 * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
14544 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
14545 * gtk/gtklabel.h (gtk_label_get_type)
14546 * gtk/gtktipsquery.c (gtk_tips_query_get_type)
14547 * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
14548 in a couple of places, not guint.
14550 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
14552 * configure.in,po/et.po: added Estonian language file
14554 Wed Sep 1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
14556 * configure.in,po/da.po: added Danish file
14558 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
14560 * docs/gtkfaq.sgml: Minor FAQ Update
14562 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
14564 * docs/gtkfaq.sgml: FAQ update
14566 1999-08-27 Tor Lillqvist <tml@iki.fi>
14568 Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
14569 way to get window contents continually refreshed while resizing. I
14570 didn't like the effects myself, so it's not on by default.
14572 * gdk/win32/gdkprivate.h: New flag variable
14573 gdk_event_func_from_window_proc, FALSE by default.
14575 * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
14576 environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
14577 are passed --gdk-event-func-from-window-proc.
14579 * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
14580 and we have am event_func, call it instead of enqueing the event.
14582 1999-08-23 Tor Lillqvist <tml@iki.fi>
14584 * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
14585 Kelley: Set expose_count in GdkEventExposes correctly.
14587 * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
14588 MULTIPLE_WINDOW_CLASSES).
14590 * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
14591 for bug in NT, apparently NT *does* draw the end pixel, too, in
14592 LineTo with a one-pixel pen, so we don't have to do it ourselves.
14594 1999-08-21 Tor Lillqvist <tml@iki.fi>
14596 Improvements by Hans Breuer:
14598 * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
14600 * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
14601 CS_?REDRAW flags as they cause lots of (late) redraws when "show
14602 window contents while dragging" is turned on. Allocate at least
14603 one unique class for every GdkWindowType. If support for single
14604 window-specific icons is ever needed (eg. Dialog specific), every
14605 such window should get its own class.
14607 1999-08-19 Tor Lillqvist <tml@iki.fi>
14609 * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
14610 error that caused crashes.
14612 1999-08-17 Tor Lillqvist <tml@iki.fi>
14614 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
14615 window, use ScrollWindowEx, and call UpdateWindow. This prevents
14616 bugs when for instance part of the window was outside the
14617 display. Thanks to Philippe Colantoni for finding and fixing this.
14619 1999-08-16 Tor Lillqvist <tml@iki.fi>
14621 * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
14622 endpoint calculations which were totally wrong. (A little RTFMing
14625 * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
14626 from a separate directory, not from gettext, because of licensing
14627 issues (we want to use the LGPL version).
14629 * README.win32: Mention the intl from glibc vs from gettext issue.
14631 1999-08-13 Tor Lillqvist <tml@iki.fi>
14633 * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
14634 in the key event handling: Now AltGr chars work again. Also,
14635 now Alt-digits are passed up as well as Control-digits.
14636 Pass keypad plus and minus as normal plus and minus.
14638 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
14640 * docs/gtkfaq.sgml: FAQ Update
14642 1999-07-25 Tor Lillqvist <tml@iki.fi>
14645 * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
14648 * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
14649 OK, but getting closer. Guard against bogus tilt data from Wacom
14650 ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
14651 enable easier building without Wintab.
14653 * gdk/win32/gdkinput.h
14654 * gdk/win32/gdkevents.c
14655 * gdk/win32/gdkwindow.c: Minor changes related related to above.
14657 * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
14658 code. As we have just one visual on Win32, no sense to have it in a
14659 table, and no need for the hash table.
14661 * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
14662 better on white background.
14664 1999-07-21 Tor Lillqvist <tml@iki.fi>
14666 * README.win32: Update gcc build instructions. Mention gettext is
14669 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
14670 supported cursor size with GetSystemMetrics.
14672 * gdk/win32/gdkfont.c
14673 * gtk/gtkfontsel.c: Guard against some font weight and charset
14674 symbols being undefined (in mingw32 headers).
14676 * gdk/win32/makefile.cygwin
14677 * gtk/makefile.cygwin
14678 * gtk/gtkthemes.c: No longer need to have differently named
14679 gcc-built DLLs when using gcc-2.95 and -fnative-struct.
14681 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
14683 * docs/gtkfaq.sgml: Long awaited FAQ update.
14685 1999-07-15 Tor Lillqvist <tml@iki.fi>
14687 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
14688 it. Obscure bit manipulation needed.
14690 * gdk/win32/gdkevents.c: Logging.
14692 * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
14693 style (file name include compiler name) for theme engines.
14695 1999-07-13 Tor Lillqvist <tml@iki.fi>
14697 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
14699 * gdk/win32/gdkevents.c: Fix long-standing bug in key
14700 events. The key.string wasn't zero-terminated, still we strdup'ed
14701 it in gdk_event_copy(). Synthesize crossing events for button
14702 events before possible propagation.
14704 * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
14706 * gdk/win32/makefile.cygwin
14707 * gtk/makefile.cygwin: Use new DLL naming style for the
14710 * gdk/win32/makefile.msc
14711 * gtk/makefile.msc: Cosmetics mostly.
14713 * gtk/gtk.def: Add missing entry points.
14715 * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
14717 1999-07-09 Tor Lillqvist <tml@iki.fi>
14719 * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
14720 or height is zero. Don't print a warning if Pie or Arc fails, they
14721 always fail (?) for very narrow ellipses.
14723 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
14724 the part or the destination window corresponding to source area
14725 outside of the source drawable's boundary.
14727 * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
14728 anything if less than two points.
14730 * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
14731 return NULL. Gtk cut-and-paste inside a single program works
14732 better this way. (It always gets the clipboard contents from
14733 Windows, not from its own copy, which is cleared anyway. I can't
14734 say I fully understand what happens... Emulating the X selection
14735 and property stuff is a bit of a mess.)
14737 * gdk/win32/gdkevents.c
14738 * gdk/win32/gdkproperty.c: A bit more verbose logging.
14740 * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
14741 that never got deleted). Revamp gdk_region_shrink.
14743 * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
14746 * gtk/gtk.def: Add some missing entry points.
14748 * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
14751 1999-07-04 Tor Lillqvist <tml@iki.fi>
14753 * gdk/win32/gdkevents.c (gdk_event_translate): Handle
14754 Control-digits specially.
14756 1999-07-03 Tor Lillqvist <tml@iki.fi>
14758 * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
14760 1999-06-28 Tor Lillqvist <tml@iki.fi>
14762 * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
14763 bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
14766 1999-06-01 Jose H Mercado <jmercado@mit.edu>
14768 * gtk+.spec.in: Corrected some typos in files section.
14770 1999-06-15 Tor Lillqvist <tml@iki.fi>
14772 * README.win32: Mention using GNU gettext.
14773 * config.h.win32: Enable NLS stuff.
14774 * gtk/makefile.msc: Use GNU gettext.
14775 * gdk/win32/gdkdnd.c: Minor header reorg.
14776 * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
14778 * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
14779 * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
14781 Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
14787 * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
14789 1999-05-30 Tor Lillqvist <tml@iki.fi>
14791 * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
14792 SafeAdjustWindowRectEx. Don't override all calls to
14793 AdjustWindowRectEx by it, but use it only in two places: When
14794 creating a new top-level window and when moving a top-level
14797 Use screen coordinate rectangle, not client rectangle, in
14798 gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
14799 when we try to place a window so that the decoration (mainly,
14800 title bar) isn't visible.
14802 These changes fix the bug that showed up for instance as the
14803 GIMP's saved top-level windows moving right and down (by an amount
14804 equal to the window decoration) for each session. This bug showed
14805 up also in testgtk's "Saved Position".
14807 gdk_window_resize also redone a bit.
14809 1999-05-25 Tor Lillqvist <tml@iki.fi>
14811 * gtk/testgtkrc: Add (commented out) Windows-style theme
14814 * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
14816 1999-05-18 Tor Lillqvist <tml@iki.fi>
14818 * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
14819 gdkx.h to a gdk subdirectory, so that applications can include
14820 these with <gdk/*.h> without trouble.
14822 * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
14823 (gdk_image_destroy): Plug resource leak, some GdkImages didn't
14824 have their bitmap destroyed.
14826 * gdk/win32/gdk.def: Add gdk_root_parent.
14828 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
14834 gtk/Makefile.am: changes to compile nicely (with xlib)
14837 Sat May 1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
14843 * ltmain.sh: upgrade to libtool 1.3
14845 Fri Apr 30 13:38:16 1999 Lars Hamann <lars@gtk.org>
14848 * gtk/gtkctree.c: merges from gtk-1-2
14850 1999-04-25 Tor Lillqvist <tml@iki.fi>
14852 Support added for building using a GNU toolchain on Win32,
14853 gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
14855 * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
14856 * config.h.win32: Changes for gcc.
14857 * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
14858 * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
14859 * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
14860 * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
14861 Protect shl stuff unavaiilable with mingw32 headers.
14862 * gdk/win32/gdkevents.c: Fix typo.
14863 * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
14864 * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
14865 * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
14866 * gdk/win32/gdkprivate.h: Make up for some stuff missing from
14867 the mingw32 headers.
14868 * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
14869 * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
14870 definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
14871 * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
14872 Test for NATIVE_WIN32, not _MSC_VER.
14873 * gtk/gtkmain.c: No use warning about developer version on Win32,
14874 there aren't any non-developer versions anyhow.
14875 * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
14876 * gtk/makefile.msc: Use pthread from another directory. Minor other
14879 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
14881 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
14882 default filter from the list
14884 Mon Mar 8 12:52:53 1999 Owen Taylor <otaylor@redhat.com>
14886 * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
14887 when gtk_widget_grab_default() is called for a widget that
14888 is not within a GtkWindow.
14890 Sat Apr 10 13:52:54 BST 1999 Tony Gale <gale@gtk.org>
14892 * docs/gtk_tut.sgml, examples/clist.c: use a
14893 scrolled window in the clist example. Minor
14896 Fri Apr 2 09:19:20 BST 1999 Tony Gale <gale@gtk.org>
14898 * docs/gtk_tut.sgml: Style check from David King
14899 <dking@youvegotmail.net>
14901 1999-03-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
14903 * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
14904 compile with unknown value of GDK_WINDOWING
14906 1999-03-28 Raja R Harinath <harinath@cs.umn.edu>
14908 * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
14909 after the rule is fired.
14910 (install-exec-local): Install gdkconfig.h only if the contents are
14911 different from the currently installed gdkconfig.h.
14913 1999-03-26 Raja R Harinath <harinath@cs.umn.edu>
14915 * gdk/Makefile.am (configexecincludedir): Rename from
14916 configincludedir so that gdkconfig.h will be installed
14917 as part of `make install-exec'.
14919 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
14925 * ltmain.sh: upgrade to libtool 1.2f
14927 * autogen.sh: libtool is not required to autogen gtk+
14929 * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
14932 1999-03-18 Tor Lillqvist <tml@iki.fi>
14934 * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
14935 declaring gdk variables exported/imported from the DLL. New image
14936 type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
14937 drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
14938 GDK_DRAG_PROTO_OLE2.
14940 * gdk/gdk.h: Merge in Win32 version: Two new functions,
14941 gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
14942 declared only for the Win32 version, but could be in the X11
14943 version as well. (Needed for a Xlib-less gdk_imlib.)
14944 gdk_color_hash should have only one parameter. Declare
14945 gdk_threads_mutex with GDKVAR.
14947 * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
14948 just one parameter.
14950 * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
14951 per pixel, not bits.
14953 * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
14954 Fetch bpp (which means bits-per-pixel here) from another place on
14955 Win32. Accept also depth==32 (which we might get on Win32) with
14958 * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
14959 gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
14960 gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
14961 Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
14962 in the backend-dependent directory, not in the common gdk
14965 * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
14968 Wed Mar 17 05:06:49 1999 Tim Janik <timj@gtk.org>
14970 * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
14971 want to use the Gtk+ devel version (which is true, and yes - even i am
14972 currently working with the 1.2.x branch). so everyone reading this, you
14973 probably want to issue
14974 cvs checkout -r glib-1-2 glib
14976 cvs checkout -r gtk-1-2 gtk+
14977 as your next two comands.
14979 Wed Mar 17 02:49:32 1999 Tim Janik <timj@gtk.org>
14981 * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
14982 gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
14984 * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
14985 file. strongly deprecated the GTK_HAVE_* macros, we provide
14986 GTK_CHECK_VERSION() for people that need to check for certain
14989 * gtk/gtkcompat.h: removed this from CVS.
14990 * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
14991 idea right from the start, it just didn't seem like that back then.
14993 Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
14995 * merges from gtk-1-2:
14997 Tue Mar 16 17:43:33 1999 Tim Janik <timj@gtk.org>
14999 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
15000 item factory class has been created.
15001 (gtk_item_factory_parse_rc): likewise.
15004 keep proper references for old_active_menu_item.
15005 (gtk_menu_reparent): unset the usize of the new parent,
15006 so the menu can sanely be size requested and we don't get nasty screen
15007 artefacts upon next reparentation.
15008 (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
15009 enter notify. only synthesize enter notifies if the pointer really is
15010 inside the event window.
15011 (gtk_menu_popdown): use gtk_menu_shell_deselect().
15012 (gtk_menu_popup): move the background setting stuff into
15013 gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
15015 * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
15016 gtk_menu_shell_select_item() to select the new item.
15017 (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
15018 do the right thing for deselection as well.
15020 Sat Mar 15 20:10:33 1999 Tim Janik <timj@gtk.org>
15022 * gtk/gtkwidget.[hc]:
15023 (gtk_widget_accelerators_locked): return whether a widget's accelerators
15026 * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
15027 existing accelerators if the widget's accelerators are locked.
15029 Sat Mar 14 19:44:05 1999 Tim Janik <timj@gtk.org>
15031 * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
15033 * gtk/gtkmenu.c: truely forward key press and key release events to
15034 the menu widget from the toplevel or tearoff window. we can't simply
15035 connect to that, we need to stop further processing of the events as
15038 Sat Mar 13 13:14:17 1999 Tim Janik <timj@gtk.org>
15041 (gtk_menu_key_press): pass event->keyval, event->state to
15042 gtk_accelerator_valid, instead of event->keyval twice.
15043 refuse to install single letter accelerators for menus that use
15044 single letter shortcuts.
15046 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
15047 gtk_menu_ensure_uline_accel_group().
15049 * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
15050 which will always return an uline accel group, made
15051 gtk_menu_get_uline_accel_group() return NULL if the group isn't
15054 Mon Mar 15 01:03:27 1999 Lars Hamann <lars@gtk.org>
15056 * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
15058 * gtk/gtkclist.c (gtk_clist_column_title_passive):
15059 Leave button sensitive, trap button_press, button_release,
15060 motion_notify, enter_notify and leave_notify events instead.
15061 (gtk_clist_column_title_active): disconnect event handler.
15062 (gtk_clist_drag_data_get): fixed memory leak. Reported by
15063 Guillaume Laurent <glaurent@worldnet.fr>
15065 Wed Mar 10 23:49:55 1999 Lars Hamann <lars@gtk.org>
15067 * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
15068 width/height mixups.
15070 * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
15073 Wed Mar 10 00:11:32 1999 Tim Janik <timj@gtk.org>
15075 * gtk/testgtk.c (create_item_factory): unref the item factory after
15076 window's destruction.
15078 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
15079 count on the menu shell around the menu item's activation, since the
15080 signal emission may cause menu shell destruction.
15082 * gtk/gtkitemfactory.c:
15083 the previous code leaked one accel group per menu. we use
15084 gtk_menu_get_uline_accel_group() now to fix that, and with that
15085 also create the underline accelerator group of the menus only if
15086 required (i.e. an underline accelerator has been specified).
15087 (gtk_item_factory_construct):
15088 (gtk_item_factory_create_item): removed code that would create an
15089 extra accel group for the menu (and leak references).
15090 (gtk_item_factory_create_item): adapted the underline accelerator
15091 installation code to properly feature gtk_menu_get_uline_accel_group().
15093 * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
15094 menu->accel_group, this may return NULL if the accelerator group
15095 hasn't been set yet.
15096 added gtk_menu_get_uline_accel_group() to retrive the underline
15097 accelerator group of the menu, this will be created on demand
15098 and proper care is taken about its reference count.
15100 * gtk/gtkitemfactory.h:
15101 * gtk/gtkitemfactory.c:
15102 dumped the approach of keeping a widgets by action list on the
15103 factory since the factory<->widget destroy negotiation didn't work
15104 and would be hard to get going at all. instead we keep a list of
15105 GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
15106 persistant throughout a program's life time).
15107 also, i removed the static const gchar *key_* variables, and made
15108 them inline strings (they weren't actually used anyways).
15109 (gtk_item_factory_add_item): update ifactory->items.
15110 (gtk_item_factory_destroy): destroy ifactory->items (and remove
15111 the item factory pointer from the remaining ifactory widgets).
15112 (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
15113 list to find the widget.
15114 (gtk_item_factory_get_item): new function that works around
15115 gtk_item_factory_get_widget() limitations, this function will only
15116 return menu items, even for <Branch> entries.
15118 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
15120 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
15121 font hash table, if we have a GdkFontPrivate entry for this font
15122 already, simply increment its reference count, provided by Olaf Dietsche
15123 <olaf.dietsche+list.gtk@netcologne.de>.
15125 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
15126 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
15128 Sun Mar 7 06:13:29 1999 Tim Janik <timj@gtk.org>
15130 * gtk/gtkcontainer.c:
15131 (gtk_container_add_with_args):
15132 (gtk_container_addv):
15133 (gtk_container_add): before adding a child to a conatiner, make sure
15134 it is (default) constructed, this is neccessary because under certain
15135 circumstances the child will get relized and mapped immediatedly, in
15136 which case it has to be constructed already.
15138 Mon Mar 1 17:58:21 1999 Tim Janik <timj@gtk.org>
15140 * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
15141 values > 1 as TRUE also.
15143 1999-03-16 Tor Lillqvist <tml@iki.fi>
15145 * README.win32: New file.
15147 * configure.in: Check for lstat.
15149 * config.h.win32: Add non-definition of HAVE_LSTAT, just for
15152 * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
15154 * gtk/gtk.def: Removed CRs.
15156 * gtk/makefile.msc: Correct include path to Win32 GDK version (in
15159 * gdk/win32/makefile.msc: Correct upwards relative paths.
15161 Mon Mar 15 03:38:34 1999 George Lebl <jirka@5z.com>
15163 * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
15164 gtk_drag_highlight_expose and gtk_drag_highlight_paint since
15165 it was connecting a void function to expose_event and the int
15166 returning function to the draw signal
15168 1999-03-14 Jeff Garzik <jgarzik@pobox.com>
15171 Use correct path to libgmodule.la when ref'ing uninstalled copy
15172 of glib. (Already in stable branch, Bug #417)
15174 1999-03-15 Tor Lillqvist <tml@iki.fi>
15176 Win32 merge and general portability stuff:
15178 * acconfig.h,configure.in: Check for <sys/time.h>.
15180 * gdk/win32: New directory (actually, been there for a while).
15182 * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
15183 NATIVE_WIN32, and use these. Always case fold on Win32. No
15184 backslashed escapes on native Win32.
15186 * gtk/{gtk.def,makefile.msc}: New files.
15188 * gtk/Makefile.am: Add above new files.
15190 * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
15191 instead of <strings.h>.
15193 * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
15194 config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
15195 <unistd.h> appropriately.
15197 * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
15198 Use ABS() (from <glib.h>) instead of abs().
15200 * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
15201 of gtk (and thus glib) headers, so that WIN32 will be
15202 defined. With MS C, include <direct.h> for mkdir prototype.
15204 * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
15205 some casts, needed by MS C.
15207 * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
15210 * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
15211 <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>. Use
15212 G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
15214 * gtk/gtkmain.h: Mark variables for export/import on Win32.
15216 * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
15217 the event is not a hint, or its window is not the slider. Needed
15218 on Win32, at least.
15220 * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
15221 unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
15222 G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
15223 a subdirectory of the Windows directory as gtk system
15224 configuration directory.
15226 * gtk/gtkselection.c: No chunks on Win32.
15228 * gtk/gtksocket.c: Not implemented on Win32.
15230 * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
15232 * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
15234 * gtk/maketypes.awk: Declare variables with a macro that expands to
15235 necessary export/import magic in the case of Win32.
15237 * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
15239 1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
15241 * configure.in (gdk_wc): Move widechar tests from `glib' to here,
15242 since those were meant only for gdki18n.h.
15243 * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
15244 for widechar tests.
15245 * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
15247 1999-03-13 Tor Lillqvist <tml@iki.fi>
15249 * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
15250 gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
15252 * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
15253 installed) to CFLAGS.
15255 * gdk/Makefile.am: Add rules for gdkconfig.h.
15257 * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
15260 * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
15261 gdkx.h anyway when compiling for X11.
15262 (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
15263 general): Merge in Win32 version.
15265 * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
15266 version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
15267 expansion (if we don't have HAVE_PWD_H), allow for drive
15268 letters. UNC paths (\\server\share\...) are not handled yet. Also,
15269 included code from Craig Setera's port to Win32 (the one that uses
15270 X11, and the cygwin dll), even if it probably will be abandoned.
15272 * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
15273 the user entered one herself. This way one can complete *.h and
15274 don't get matches on any .help files, for instance.
15276 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
15278 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
15279 font hash table, if we have a GdkFontPrivate entry for this font
15280 already, simply increment its reference count, provided by Olaf Dietsche
15281 <olaf.dietsche+list.gtk@netcologne.de>.
15283 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
15284 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
15286 1999-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
15288 * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
15289 the number of calls to gdk_draw_point() (and thus to X) by
15290 clipping the points by hand.
15292 * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
15293 the clip parameter.
15294 (gtk_handle_box_paint): Only paint the handle if the expose area
15297 Sun Mar 7 18:46:37 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
15299 * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
15301 Sun Mar 7 11:43:34 1999 ape@spacetec.no (Asbjorn Pettersen)
15303 * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
15304 Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
15306 Fri Mar 5 09:12:24 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
15308 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
15309 textmode (O_TEXT) for OS/2 version.
15311 Sun Feb 28 16:46:02 1999 Stefan Jeske <stefan@gtk.org>
15313 * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to
15314 GtkSpinButton, "input" and "output", to make the output more flexible.
15315 The user has to provide a mapping between adjustment->value and the
15316 output string (and vice versa, if the spin button is editable).
15317 See testgtk for examples.
15319 Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
15321 * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
15324 * configure.in: set gtk+ version to 1.3.0.