1 Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
3 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
4 Don't move back one char when we are actually at the end of the
7 2000-11-15 Robert Brady <robert@suse.co.uk>
9 * modules/input/iminuktitut.c (inuktitut_compose_seqs):
12 * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
13 bind_textdomain_codeset.
15 (gtk_init_check): Make the warning about translating default:LTR
18 Wed Nov 15 18:39:40 2000 Owen Taylor <otaylor@redhat.com>
20 * **/Makefile.am : remove unecessary rules for win32-specific
21 config-substituted targets. If you want these rules, use
22 --enable-maintainer-mode (called automatically by autogen.sh).
23 Stops a lot of unneccessary make-time warnings.
25 * gtk/gtktext{layout,display}.c: Factor in total width as
26 well as screen when figuring alignment for word-wrap as well as
27 no wrap; this is necessary to handle lines that cannot be wrapped
30 2000-11-15 Havoc Pennington <hp@redhat.com>
32 * gtk/testtext.c: Implement essential color cycling feature
34 2000-11-15 Havoc Pennington <hp@redhat.com>
36 * gtk/gtktextview.c (changed_handler): Invalidate the side windows
37 when we invalidate the main window.
39 * gtk/testtext.c (create_view): Get rid of text_changed_callback,
40 GtkTextView will now invalidate the side windows for us when text
43 Wed Nov 15 16:02:20 2000 Owen Taylor <otaylor@redhat.com>
45 * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
46 unconditionally, since we may need to update the horizontal
47 scrollbars even if the height didn't change.
49 * gtk/gtktextlayout.c (add_preedit_attrs): Always get
50 the extra attrs, since some of them affect size.
52 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
55 2000-11-15 Havoc Pennington <hp@redhat.com>
57 * gtk/gtktextlayout.c (set_para_values): If indent is negative,
58 don't move the first line out into the margin, instead move the
59 whole paragraph in order to make space for the first line within
62 2000-11-15 Havoc Pennington <hp@redhat.com>
64 * gtk/gtktextview.c (changed_handler): offset redraw rect by
65 xoffset in addition to yoffset, so horizontal scrolling doesn't
68 2000-11-15 Havoc Pennington <hp@redhat.com>
70 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
72 (render_layout_line): fix reversed test that caused weird
73 underlines to get drawn
75 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
77 * gdk/linux-fb/gdkprivate-fb.h:
80 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
82 * gdk/linux-fb/gdkprivate-fb.h:
83 Added virtual functions set_pixel, get_color,
84 fill_span and draw_drawable to the GC.
85 Added global _gdk_fb_screen_gc to use instead of
86 NULL when drawing to the screen.
87 Added _gdk_fb_gc_calc_state() prototype.
89 * gdk/linux-fb/gdkgc-fb.c:
90 Call _gdk_fb_gc_calc_state() on any gc state change.
92 * gdk/linux-fb/gdkglobals-fb.c:
95 * gdk/linux-fb/gdkdrawable-fb2.c:
96 _gdk_fb_gc_calc_state() calculates best functions
97 for the GC state and depth.
98 Moved bpp specialized code to separate functions.
99 Added optimized 24 bpp AA draw_drawable.
101 * gdk/linux-fb/gdkevents-fb.c:
104 * gdk/linux-fb/gdkimage-fb.c:
105 Use _gdk_fb_screen_gc
107 * gdk/linux-fb/gdkwindow-fb.c:
108 Init and use _gdk_fb_screen_gc
110 * gdk/linux-fb/mitypes.h:
113 2000-11-14 Havoc Pennington <hp@pobox.com>
115 * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
118 2000-11-14 Havoc Pennington <hp@pobox.com>
120 * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
122 * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
123 unknown char, no real reason we were using a variable.
124 Remove gtk_text_unknown_char variable. Fix all the text widget
127 * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC,
128 since the Unicode spec seems to prefer that character for our
131 Wed Nov 15 02:18:01 2000 Robert Brady <robert@suse.co.uk>
133 * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return
134 value of g_getenv() isn't freeable, so g_strdup it.
136 * modules/input/inuktitut.c: Inuktitut input method.
138 * modules/input/Makefile.am: Build this.
140 2000-11-14 Elliot Lee <sopwith@redhat.com>
142 * gtk/Makefile.am: Install gtk.immodules, needed for operation
145 Tue Nov 14 20:13:06 2000 Owen Taylor <otaylor@redhat.com>
147 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
148 reversed > that was causing Home to go to end of previous line.
150 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
151 modified-keypresses (leave for bindings.)
153 * modules/input/Makefile.am: Remove useless -export-dynamic
156 2000-11-14 Havoc Pennington <hp@redhat.com>
158 * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
161 * gtk/gtktextdisplay.c (render_layout_line): Take rise into
162 account. Also, render rise, underline, background, etc. for
163 pixbufs as well as text. Also, draw underlines one pixel higher.
165 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
166 PangoAttribute for the rise, so it gets drawn properly. Also,
167 add the GtkTextAppearance attribute for pixbuf/widget segments
168 as well; we should go ahead and have rise, underline, background,
169 stipple work for those
171 * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
174 2000-11-15 Tor Lillqvist <tml@iki.fi>
176 * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
178 * gtk/gtk.def: Update.
180 * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
182 (gtk_rc_get_im_module_file): Use run-time installation directory
185 * gdk/win32/rc/gdk.rc: Remove.
186 * gdk/win32/rc/gdk.rc.in: New file.
187 * gdk/win32/rc/Makefile.am: New file
188 * gdk/win32/Makefile.am: Corresponding changes.
190 * gtk/gtk.rc: Remove.
191 * gtk/gtk-win32.rc.in: New file.
192 * gtk/Makefile.am: Corresponding changes.
194 * configure.in: Corresponding changes.
196 * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
197 has a built gtkcompat.h. Developers using CVS code on Win32 can
198 hand-edit it from gtkcompat.h.in.
200 * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
201 gtkcompat.h from gtkcompat.h.win32.
203 2000-11-14 Havoc Pennington <hp@redhat.com>
205 * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
206 to default to GDK_ACTION_MOVE if the drag is within a single
207 widget. Defaults to GDK_ACTION_COPY between widgets.
209 Mon Nov 13 14:43:48 2000 Owen Taylor <otaylor@redhat.com>
211 * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
213 * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
215 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
218 * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
220 * configure.in (GTK_VERSION): Up to 1.3.2
222 * modules/input/Makefile.am (im_xim_la_SOURCES): Add
225 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
228 2000-11-14 Alexander Larsson <alexl@redhat.com>
230 * modules/linux-fb/basic.c:
231 Use the glib iconv wrappers.
233 2000-11-13 Havoc Pennington <hp@pobox.com>
235 * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
238 * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
239 scroll the GdkWindows before realization.
241 2000-11-13 Havoc Pennington <hp@redhat.com>
243 * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
244 where GC didn't always get updated properly
246 * demos/gtk-demo/textview.c (create_tags): Use subattributes
247 of fonts instead of setting the entire font
249 * gtk/testtext.c (fill_example_buffer): Use "size" instead of
252 * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
254 * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
255 a bunch of individually-settable font attributes. You can still
256 use the "font" and "font_desc" args, they just set all the font
259 2000-11-13 Elliot Lee <sopwith@redhat.com>
261 * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
263 Mon Nov 13 14:29:32 2000 Jonathan Blandford <jrb@redhat.com>
265 * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
266 * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
268 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
271 2000-11-13 Havoc Pennington <hp@redhat.com>
273 * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of
276 * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
279 * gtk/testtext.c: Test pixels above/below/inside paragraphs
282 * gtk/gtktextview.c: Implement object args and setters/getters for
283 all the aspects of the GtkTextAttributes that are not set from
284 GtkWidget attributes. This is spacing, justification, margins,
287 (gtk_text_view_set_arg)
288 (gtk_text_view_get_arg): implement get/set for editable, wrap mode
290 (gtk_text_view_class_init): Add args for justify, left_margin,
291 right_margin, indent, and tabs
294 * gtk/gtktextlayout.c (set_para_values): fix to display indent
297 * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute,
298 replace with indent attribute
300 * gtk/gtktextlayout.c (set_para_values): multiply indent by
303 * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
304 rearranging code to do that
305 (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
306 i.e. don't subtract the top_margin first, just to keep
307 all margin-futzing in one place.
309 * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
311 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
312 special case of last line, Pango now handles this itself.
313 (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the
315 (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
316 (find_display_line_above): wasn't moving the byte index as it
317 iterated over lines, so always returned byte 0. Also, port to use
319 (find_display_line_below): same problem as
320 find_display_line_above. Also, port to use PangoLayoutIter.
322 2000-11-13 Alexander Larsson <alexl@redhat.com>
324 * gdk/linux-fb/*.[ch]:
325 Massive reindent to gtk+ standard. My hands hurt.
327 * gdk/linux-fb/gdkcolor-fb.c:
328 Move GdkColorPrivateFB from inherited to windowing_data
330 * gdk/linux-fb/gdkcursor-fb.c:
331 _gdk_cursor_new_from_pixmap made static
333 * gdk/linux-fb/gdkdnd-fb.c:
334 GdkDragContextPrivate moved to windowing_data
336 * gdk/linux-fb/gdkdrawable-fb2.c:
337 Removed endian.h, use glib endianness macros instead
338 Some cleanups in the usage of GDK_DRAWABLE_FBDATA
339 and GDK_DRAWABLE_IMPL_FBDATA
341 * gdk/linux-fb/gdkfont-fb.c:
342 Add empty gdk_font_load(). Needed for linking of Gtk+.
344 * gdk/linux-fb/gdkimage-fb.c:
345 Removed endian.h, use glib endianness macros instead
346 Moved GdkImagePrivateFB to windowing_data
347 gdk_image_new_bitmap didn't always allocate enough
350 * gdk/linux-fb/gdkinput-ps2.c:
351 Added semi-working support for MS serial mice.
353 * gdk/linux-fb/gdkprivate-fb.h:
354 s/GdkWindowPrivate/GdkWindowObject/
355 Removed GdkWindowPrivate typedef
356 s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
357 Removed GDK_DRAWABLE_P
358 Move GdkColorPrivateFB from inherited to windowing_data
359 Moved GdkImagePrivateFB to windowing_data
361 * gdk/linux-fb/gdkvisual-fb.c:
362 Removed some unused debug code.
364 * gdk/linux-fb/gdkwindow-fb.c:
365 Use stock cursors instead of including X headers.
366 s/GdkWindowPrivate/GdkWindowObject/
368 * gdk/linux-fb/mitypes.h:
369 Removed unused types.
371 * modules/linux-fb/basic.c:
372 Use the pango fribidi wrappers.
374 2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
376 * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
377 gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
378 gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
379 gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
380 GEqualFunc where applicable.
382 * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
383 pango_font_description_equal as changed in pango.
385 * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
387 * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
389 * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
391 * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
393 * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
395 * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
397 * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
398 gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
400 * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
401 gtk_rc_styles_compare -> gtk_rc_styles_equal.
403 2000-11-12 Havoc Pennington <hp@pobox.com>
405 * demos/gtk-demo/Makefile.am (democodedir): change demo install
406 dir to datadir/gtk+-2.0/demo
408 * demos/gtk-demo/textview.c: Text widget demo; reveals all
409 sorts of text widget and Pango font bugs. Urgh.
411 * demos/gtk-demo/Makefile.am (demos): Add textview.c
413 * demos/gtk-demo/main.c (create_tree): Add instructions at top of
414 tree that you should double click to see the demo. Fix
415 types of variables to reflect changed return values from
416 GtkTreeStore and GtkTreeViewColumn constructors.
418 * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
419 newly-created buffer to prepare for GObject semantics
421 * gtk/testtext.c: don't leak the buffer with GObject semantics
423 * gtk/testtextbuffer.c: ditto
425 2000-11-12 Havoc Pennington <hp@pobox.com>
427 Rename this testgtk to gtk-demo to avoid confusion, and
428 install it so people can use it as a supplement to
431 * demos/gtk-demo: Moved from demos/testgtk
433 * demos/testgtk: Removed
435 * configure.in: make Makefile in gtk-demo
437 * demos/gtk-demo/Makefile.am: Install sample source to
438 datadir/gtk-demo (maybe there's a better place?), and
439 rename the binary to gtk-demo
441 * demos/gtk-demo/main.c (load_file): Load installed sample
442 source if source isn't found in pwd.
444 2000-11-09 Havoc Pennington <hp@pobox.com>
446 * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char"
447 argument to set the char displayed when visibility == FALSE
448 (gtk_entry_create_layout): If !entry->visible, replace
449 all chars with the "invisible char"
451 * gtk/testgtk.c: Test the invisible_char deal
453 Mon Nov 13 02:16:33 2000 Robert Brady <robert@suse.co.uk>
455 * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
456 can't get a native font in the right encoding.
458 Mon Nov 13 00:09:29 2000 Robert Brady <robert@suse.co.uk>
460 * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
463 Sun Nov 12 19:11:42 2000 Owen Taylor <otaylor@redhat.com>
465 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
466 Fix warning when moving between paragraphs.
468 * gtk/gtkentry.[ch]: Change move => move_cursor,
469 delete => delete_from_cursor, insert => insert_at_cursor
471 Sun Nov 12 22:52:51 2000 Robert Brady <robert@suse.co.uk>
473 * modules/input/imviqr.c: A vietnamese VIQR-based input method.
475 * modules/input/imthai-broken.c: A Thai input method for use if
476 Thai keys are really generating Latin1 keysyms.
478 * modules/input/Makefile.am: Build these.
480 Sun Nov 12 22:15:35 2000 Robert Brady <robert@suse.co.uk>
482 * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
483 g_filename_{to,from}_utf8 now takes an extra parameter.
485 * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
488 (column_from_x, gtk_calendar_paint_day_names): Support RTL
491 (gtk_calendar_paint_day_names): Draw day names in the right
494 Sun Nov 12 14:10:09 2000 Owen Taylor <otaylor@redhat.com>
496 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
497 problem with using result of g_get_charset() backwards -
498 pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
500 * gtk/gtkwindow.c (gtk_window_compute_hints): Support
501 negative min_width/height and max_width/height to
502 mean "requisition"; this allows setting a window
503 to be user-resizable in only one direction easily.
505 * gtk/testgtk.c (create_main_window): Remove hard-coded
506 usize - set a default size in the vertical direction.
508 Sun Nov 12 13:33:01 2000 Owen Taylor <otaylor@redhat.com>
510 * gtk/gtkrange.c: Add some missing casts. Support
511 2 and 3 button clicks on the arrows to mean
512 "move by pages" and "jump to end". (Like gtkspinbutton)
514 2000-11-12 Hans Breuer <Hans@Breuer.Org>
516 * gdk/win32/makefile.msc : reflect build module changes
518 * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
519 from GdkPixmap*, cast implementation member instead.
521 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
522 passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src
523 maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
524 more Gdi functions return value checking.
525 (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
526 GdkImagePrivateWin32 *.
528 * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
529 menus useable again. Add #pragma message to keep reminded on this issue.
530 (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
531 windows. This allows to enable backing store on Win32!
533 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
534 in drawable is of impl type. Correct specific type checks appropriate.
536 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check
537 GDK_WINDOW_DESTROYED before allocating new resources.
539 * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
541 * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
542 (gdk_window_foreign_new) initialize parent handle.
543 (gdk_window_destroy_notify) add GDK_IS_WINDOW check
545 * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
546 Let the GDI invalidate the window on MoveWindow call to fix scrolling
547 problems (e.g. main buttons in testgtk).
549 Sat Nov 11 23:07:30 2000 Owen Taylor <otaylor@redhat.com>
551 * gtk/gtkentry.c (gtk_entry_key_press): Call
552 gtk_widget_activate for GDK_Return.
554 * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
555 of preedit cursor position.
557 Sun Nov 5 04:24:53 2000 Owen Taylor <otaylor@redhat.com>
559 * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
562 Tue Sep 19 10:54:22 2000 Owen Taylor <otaylor@redhat.com>
564 * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
565 out support for multiple locales; that simple doesn't
566 work reliably with current Xlib
568 * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
569 gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
570 Add support for positioning the cursor within the preedit string.
572 Mon Sep 18 23:56:32 2000 Owen Taylor <otaylor@redhat.com>
574 * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
575 at XIM input method module.
577 * gtk/gtktextview.c: Check for bindings after passing
578 events to im context filter.
580 Mon Sep 18 11:50:51 2000 Owen Taylor <otaylor@redhat.com>
582 * gtk/gtktextlayout.c (add_preedit_attrs): Handle
583 empty attribute lists properly.
585 Sun Sep 17 10:08:16 2000 Owen Taylor <otaylor@redhat.com>
587 * gtk/queryimmodules.c (main): Return non-zero exit
588 status if errors were encountered querying any
591 * modules/input/Makefile.am (moduledir): remove
592 leftover bin program target.
594 * docs/make-todo: Fix typo in error message.
596 Sat Sep 16 14:04:30 2000 Owen Taylor <otaylor@redhat.com>
598 * configure.in: Add modules/input/Makefile
600 Sat Sep 16 14:01:52 2000 Owen Taylor <otaylor@redhat.com>
602 * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
603 don't include gtkthemes.h.
605 * gtk/testgtk.c gtk/testtext.c: Set environment variables
608 * gtk/Makefile.am: Add new .c and .h files, build
609 gtk-query-immodules and use it to create a gtk.immodules
610 file for use of test programs.
612 * gtk/gtkpreview.c: remove extra blank line.
614 Sat Sep 16 13:21:04 2000 Owen Taylor <otaylor@redhat.com>
616 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
617 Add the ability to add extra tables beyond the default
618 one, and also the ability to have compose sequences
619 that are prefixes of other compose sequences.
621 * gtk/gtkimcontextsimple.c: Export a preedit string which
622 consists of possible candidates for keystrokes that have
623 been entered but not yet committed.
625 * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
626 gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
628 * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
629 Add a function to add input-method switching menu items
632 * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
633 when switching input methods.
635 * gtk/gtkimcontextsimple.[ch]: Change the format of
636 the compose table to allow compose tables of different
639 Sat Sep 16 13:05:48 2000 Owen Taylor <otaylor@redhat.com>
641 * gtk/gtkimmodule.[ch]: Support routines for loading
642 GtkIMContext implementations dynamically at runtime.
644 * modules/input/imcyrillic-translit.c: A sample input
645 method (based on GtkIMContextSimple with an extra table),
646 which demonstrates preedit strings and the module
647 system for input modules
649 * gtk/queryimmodules.c: Program to query the available
650 input modules and write the results into a file.
652 * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
653 extra config options "im_module_file" (cache file for
654 input method modules), and "im_module_path" - path
655 to look for modules when generating cache file.
659 Sat Sep 16 13:09:06 2000 Owen Taylor <otaylor@redhat.com>
661 * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
662 generic code from gtkthemes into a new abstraction
663 GtkModule which has the logic for implementing
664 a loadable module which implements a number of
667 Sat Sep 16 13:07:13 2000 Owen Taylor <otaylor@redhat.com>
669 * gtk/gtkeditable.[ch]: Convert GtkEditable from
670 a class into an interface
672 * gtk/gtkoldeditable.[ch]: Move the old editable
673 implementation into here, so legacy widgets can
674 still rely on the implemenation. GtkOldEditable
675 exports GtkEditable. Make selection handling
676 code use new text conversion functions (and
677 handle UTF-8 as a side-effect). Use GtkClipboard
680 * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
681 Adopt to match above changes.
683 * gtk/gtkentry.[ch]: Implement GtkEditable directly,
684 avoid GtkOldEditable implementation. Restructure
685 to reduce number of places that modify state directly.
686 Move to GtkBindingSet. Display the preedit string.
687 Queue recomputation of PangoLayout and scroll position
688 to improve effiency of doing complex changes naively.
689 Add a menu with cut/copy/paste and input method selection.
691 Thu Sep 14 22:11:05 2000 Owen Taylor <otaylor@redhat.com>
693 * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
694 to set preedit string and attributes; display preedit string by
695 inserting string and attributes at cursor when creating the
698 * gtk/gtktextlayout.c: Move all conversions between byte
699 positions in PangoLayout and GtkTextIter into new functions
700 line_display_iter_to_index/index_to_iter that properly
701 handle the preedit string.
703 * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
704 it to return const char * (eventually will end up
705 as GCONST char *, most likely.)
707 * gtk/gtktextview.[ch]: Handle the preedit string, call
708 gtk_im_context_reset() as necessary, add a menu to switch
711 * gtk/gtktextlayout.[ch]: Remove useless
712 gtk_text_layout_get_log_attrs() function.
714 2000-11-11 Tor Lillqvist <tml@iki.fi>
717 * gtk/gtk.def: Update.
719 * gdk/win32/*.c: Add last argument to g_type_register_static()
722 * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
724 * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
725 generated by older wheel mouse drivers. Get the correct y
726 coordinate from WM_MOUSEWHEEL messages.
728 * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
729 gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
730 gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
733 * gdk/win32/gdkprivate-win32.h: Declare them.
735 * gdk/win32/gdkinput-win32.h: Add declaration for
736 gdk_input_window_destroy().
738 * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
740 Fri Nov 10 19:06:41 2000 Jonathan Blandford <jrb@redhat.com>
742 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
743 function to help handle keeping things in sync.
745 Fri Nov 10 12:10:34 2000 Jonathan Blandford <jrb@redhat.com>
747 * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
750 * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
751 (gtk_list_store_class_init): use the new BOXED marshallers.
753 * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
754 new_with_values to new_with_types.
755 (gtk_tree_store_get_column_type): add this.
756 (gtk_tree_store_class_init): use the new BOXED marshallers.
758 * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
759 mirror some POINTER marshallers.
761 Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com>
763 * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
764 allow more interesting iterators. Also, made the lifecycle of
765 iterators more explicit.
767 * gtk/gtktreemodelsort.[ch]: New model for sorting.
769 * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
772 2000-11-09 Alexander Larsson <alexl@redhat.com>
774 * demos/testgtk/menus.c:
775 Changes to make the new testgtk compile after
776 gtk_menu_append was removed.
778 * gdk/linux-fb/gdkdrawable-fb2.c
779 (gdk_fb_get_depth, gdk_fb_get_visual,
780 gdk_drawable_impl_fb_class_init): Implement
781 these drawable functions. Now GtkImages work again.
783 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
785 * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
787 * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
788 gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
789 Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
790 GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
792 2000-11-08 Havoc Pennington <hp@pobox.com>
794 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
795 visible_set args, don't know where these had gone, I thought they
798 * gtk/testtext.c: Add a menu item to apply invisibility tag;
799 now we can test the feature and see that it's totally broken.
801 2000-11-08 Havoc Pennington <hp@pobox.com>
803 Make DND copy pixbufs and tags when source and target share a
806 * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
807 in-process GTK_TEXT_BUFFER_CONTENTS target
808 (gtk_text_view_drag_data_received): Paste from
809 GTK_TEXT_BUFFER_CONTENTS if we receive it.
811 2000-11-08 Alexander Larsson <alexl@redhat.com>
813 * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
816 * gtk/gtkmenu.c: Add support for scrolling menus.
817 Remove gtk_menu_append/prepend/insert, these have been moved to
818 gtkcompat.h as #defines.
820 * gtk/gtkcompat.h.in:
821 Add compatibility #defines for gtk_menu_append/prepend/insert
823 * gtk/gtkmenu.h: Add data needed for scrolling menus.
824 GtkMenuPositionFunc gets an extra argument push_in.
825 gtk_menu_append/prepend/insert removed.
827 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
828 positioning behaviour to fit to scrolling menus.
830 * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
831 into menuitem->submeny. That is wrong, and broke torn
832 off submenus of torn off menus, since they were unrealized
833 when the first menu was unrealized.
835 * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
836 gtk_menu_shell_select_item() since these need to be overridden in
839 * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
840 positioning behaviour to fit to scrolling menus.
841 (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
842 the current item so that it is prelighted when the menu pops up.
843 This is a workaround to the fact that the menu doesn't get the
844 initial enter event (due to grabs).
846 * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
847 s/gtk_menu_append/gtk_menu_shell_append/
850 s/gtk_menu_insert/gtk_menu_shell_insert/
852 * gtk/testgtk.c (create_menu, create_menus):
853 Create the first menu with 50 items so that menu scrolling
857 Patch from Jonathan Blandford <jrb@redhat.com>
859 * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
860 system to handle size requests. First, we ask what the size of
861 the toggle is. Then, when allocating the size, we allocate the
862 toggle_size first. This way we can have multiple menu-item
863 classes w/o needing a seperate class for each.
865 * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
866 * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
868 * gtk/gtkcheckmenuitem.c
869 (gtk_check_menu_item_toggle_size_request): New function to handle
870 the toggle size-request.
872 2000-11-07 Havoc Pennington <hp@redhat.com>
874 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
875 Half-ass somewhat fix this function, so that scrolling to the
876 insertion point works. Pango hacking is in the future to really
879 * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
880 length of data, no longer used.
882 * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
883 method contents in here, get rid of destroy method
884 (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
885 that were backward. Remove debug spew.
886 (cut_or_copy): Make the clipboard work with insert_range to
887 preserve tags and pixbufs, not just the primary selection.
889 2000-11-07 Havoc Pennington <hp@redhat.com>
891 * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename
892 to gtk_text_mark_get_visible
894 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
895 bug that was generating an invalid iterator
897 * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
898 ensure_char_offsets() in front of code placing the iter in an
901 * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
902 make override_location arg const
903 (paste): Replace the selection if we paste into the
906 * gtk/gtkselection.h: Remove "GtkSelectioData"
907 (struct _GtkSelectionData): move the definition here.
909 * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
910 Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
912 * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
914 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
915 (gtk_text_buffer_insert_range_interactive): implement
916 (gtk_text_buffer_get_tags): Remove, replaced by
917 gtk_text_iter_get_tags()
919 * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
920 limit parameter, to avoid infinite linear scan.
921 (gtk_text_iter_backward_search): Add search limit
922 (gtk_text_iter_forward_find_char): Add search limit
923 (gtk_text_iter_backward_find_char): Add search limit
925 2000-11-07 Alexander Larsson <alla@lysator.liu.se>
927 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
928 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
929 gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
930 gdk/linux-fb/gdkwindow-fb.c:
931 use g_object_new() instead of g_type_create_instance() which
932 is a private function for fundamental type implementations.
934 * gdk/linux-fb/gdkinput-ps2.c:
935 Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
936 instead just store the current modifier state. Add a (somewhat broken)
937 keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
938 Rename exported function gdk_input_ps2_get_mouseinfo to
939 gdk_input_get_mouseinfo.
941 * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
942 gdk/linux-fb/gdkwindow-fb.c:
943 gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
946 2000-11-02 Havoc Pennington <hp@redhat.com>
948 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
949 use stock buttons. Should be 100% source compatible, appropriate
950 filesel fields now point to dialog->vbox and dialog->action_area.
951 On the bizarre side, dialog->action_area and filesel->action_area
952 are not the same widget.
953 (gtk_file_selection_init): Put some padding around the selection
954 entry, so it isn't touching the GtkDialog separator.
956 * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
957 use stock buttons, etc. Should also be source compatible.
958 Set the dialog default title in _init not _new().
960 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
961 Use stock buttons; don't put a button box inside the existing
962 dialog button box. Don't bother with push/pop colormap anymore.
964 * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
965 specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
966 for message dialog, and necessary for the font selection and color
967 selection with help and apply buttons.
969 * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
970 to the created button widget. Set GTK_CAN_DEFAULT on the button.
971 (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
972 between buttons, put less padding around the action area.
973 (gtk_dialog_run): Exit on unmap rather than on destroy.
974 This will also exit the loop if the widget is hidden.
975 (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
976 instead of GTK_RESPONSE_NONE; since we're already adding a bunch
977 of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
978 special-case delete event.
980 * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
983 Sun Nov 5 05:32:39 2000 Tim Janik <timj@gtk.org>
985 * gtk/testgtk.c (uposition_stop_configure): provide a toggle
986 button to temporarily disable position recording in the
987 "saved position" test.
989 Sat Nov 4 05:37:17 2000 Tim Janik <timj@gtk.org>
991 * gtk/gtkthemes.c: added compat code that temporarily implements
992 GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
993 going to be revamped by owen's upcoming GtkModule patches, but
994 untill then people want gtk to build, right? ;)
996 2000-11-04 Havoc Pennington <hp@pobox.com>
998 * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
1001 * docs/Changes-2.0.txt: Add note about
1002 gtk_container_get_toplevels()
1004 * gtk/gtktextview.h: formatting
1006 * gtk/gtktextview.c: don't start descriptions with "Returns",
1009 Sat Nov 4 10:12:27 2000 Owen Taylor <otaylor@redhat.com>
1011 * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
1012 look for glib-2.0.m4 not glib.m4. (Ali Abdin)
1014 2000-11-03 Havoc Pennington <hp@redhat.com>
1016 * gtk/gtktexttagtable.c: Docs
1017 (gtk_text_tag_table_size): return a signed int
1019 * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
1020 (gtk_text_tag_event): make the event_object a GObject
1022 * gtk/gtktextview.c: Write API docs for all functions.
1024 * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
1025 for gtk_text_view_get_window_type() called on one of the private
1028 * gtk/gtktextview.c: Instead of accessing text_view->buffer
1029 directly, call get_buffer() which demand-creates a default
1030 buffer. So gtk_text_view_new() can be used to create a view with a
1031 default buffer in it, if you just want an empty text box users can
1032 put data in. Useful for GUI builders also.
1034 2000-11-03 Pablo Saratxaga <pablo@mandrakesoft.com>
1036 * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
1037 the charset encodign portion MUST be in lowercase.
1038 * gtk/gtkrc.az: added file for Azeri language
1040 2000-11-03 Havoc Pennington <hp@redhat.com>
1042 Get widgets working on the btree/buffer side. Display of them
1045 * gtk/gtktextview.c: start implementing child widget stuff
1047 * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
1049 * gtk/gtktextlayout.c: handle embedded widgets
1051 * gtk/gtktextdisplay.c: handle embedded widgets
1053 * gtk/gtktextchild.c: Implement all the child anchor goo
1055 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
1058 * gtk/gtktextbtree.c: Add child anchor table to the btree struct
1059 (insert_pixbuf_or_widget_segment): abstract out common portions of
1060 creating a child anchor or a pixbuf segment.
1061 (gtk_text_btree_create_child_anchor): new function
1062 (gtk_text_btree_unregister_child_anchor): new function
1064 * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
1065 allocate_child signal on GtkTextLayout
1067 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
1069 (gtk_text_iter_get_child_anchor): new function
1071 * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
1072 default handler for the changed signal, which calls
1073 gtk_text_buffer_set_modified(), instead of just always emitting
1074 changed then calling set_modified() manually. I guess this is
1075 maybe more flexible. It seems logical.
1077 Fri Nov 3 08:58:38 2000 Tim Janik <timj@gtk.org>
1079 * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
1082 * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
1084 Thu Nov 2 14:10:51 2000 Owen Taylor <otaylor@redhat.com>
1086 * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
1089 2000-11-02 Havoc Pennington <hp@redhat.com>
1091 * gtk/testgtk.c (create_labels): had a test backward
1093 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
1094 fields, so the dest GC ends up with the correct clip origin,
1095 etc. Fixes a bug where colored labels didn't redraw
1098 2000-11-02 Alexander Larsson <alexl@redhat.com>
1100 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
1101 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
1102 gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
1103 Add last argument to t_type_register_static call.
1105 * gdk/linux-fb/gdkdrawable-fb2.c:
1106 Add last argument to t_type_register_static call.
1107 export the get_image drawable virtual function.
1109 * gdk/linux-fb/gdkimage-fb.c:
1110 Add last argument to t_type_register_static call.
1111 rename gtk_image_get to _gdk_fb_get_image and
1112 export it for use by gdkdrawable-fb2.
1114 * gdk/linux-fb/gdkprivate-fb.h:
1115 export _gdk_fb_get_image.
1117 * gdk/linux-fb/gdkselection-fb.c:
1118 Add new api call stubs.
1121 Missing ( in linux-fb part.
1123 * modules/linux-fb/Makefile.am:
1124 Must link with gdk_pixbuf or get unresolved symbol.
1126 2000-11-01 Havoc Pennington <hp@pobox.com>
1128 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use
1129 GTK_TYPE_TEXT_ITER and BOXED marshallers
1131 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
1133 * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
1135 * gtk/gtk-boxed.defs: add GtkTextIter
1137 * gtk/gtkmarshal.list: Add marshallers for text widget that
1138 properly use OBJECT and BOXED
1140 2000-11-01 Havoc Pennington <hp@redhat.com>
1142 * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
1144 * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
1145 before returning it.
1147 2000-11-01 Havoc Pennington <hp@redhat.com>
1149 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
1150 Clip the rectangle to be rendered to the drawable, since
1151 get_from_drawable() requires a region within the drawable
1153 2000-11-01 Havoc Pennington <hp@redhat.com>
1155 * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
1158 Wed Oct 25 20:10:57 2000 Owen Taylor <otaylor@redhat.com>
1160 * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
1163 2000-11-01 Havoc Pennington <hp@pobox.com>
1165 * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
1167 (gtk_label_finalize): unref the attr list if any.
1169 * gtk/testgtk.c (create_get_image): close test on second click
1170 (make_message_dialog): close dialog if it exists
1172 * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
1174 * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
1177 * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
1178 from Pango markup format
1179 (gtk_label_set_markup_with_accel): ditto but with accelerator
1182 * gtk/gtkimage.c (gtk_image_expose): reformatting.
1184 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
1185 reflect current state of GDK - use gdk_drawable_get_colormap, etc.
1186 Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to
1187 call gdk_window_get_origin().
1189 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
1190 implement GDK_PIXBUF_ALPHA_FULL
1192 Wed Nov 1 03:43:42 2000 Tim Janik <timj@gtk.org>
1194 * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
1195 g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
1196 g_signal_handlers_disconnect_matched to block/unblock and disconnect
1197 multiple handlers respectively, instead of only treating the
1198 first handler found (bug reported by owen).
1200 Mon Oct 30 19:23:50 2000 Jonathan Blandford <jrb@redhat.com>
1202 * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
1204 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
1206 * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
1207 gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
1208 gtk/gtktreeviewcolumn.h: Fixed inline docs.
1210 * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
1211 widget. Needs writing someday.
1213 * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
1216 2000-10-30 Havoc Pennington <hp@redhat.com>
1218 * gtk/gtktextview.h, gtk/gtktextview.c:
1219 Rename delete_at_cursor delete_from_cursor, and
1220 move to move_cursor.
1222 2000-10-30 Havoc Pennington <hp@redhat.com>
1224 * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
1225 gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
1226 gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
1227 gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
1228 gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
1229 gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
1230 gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
1231 gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
1232 gtktexttypes.h, gtktextview.c, gtktextview.h:
1234 Massive reindentation and reformatting. Arg alignment and comments
1235 still need fixing in various places.
1237 2000-10-30 Havoc Pennington <hp@redhat.com>
1239 * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
1240 to be named insert_at_cursor and delete_at_cursor so C++ can
1243 2000-10-28 Tor Lillqvist <tml@iki.fi>
1245 * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
1246 to get a double directory separator in case the home directory
1247 ends with one. This would cause trouble especially on Windows,
1248 where the path will be confused with the syntax for an an UNC
1249 (network share) path \\server\share\path.
1250 (gtk_rc_add_initial_default_files): Ditto.
1252 Sat Oct 28 02:33:09 2000 Robert Brady <robert@suse.co.uk>
1254 * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
1256 * gtk/gtktextview.c: Use correct marshallers.
1258 Fri Oct 27 17:56:26 2000 Jonathan Blandford <jrb@redhat.com>
1260 * gtk/gtkliststore.c: Not sure how this ever worked. Fixed it to
1261 use new iter stuff, and added all the appropriate signals et al.
1263 * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
1264 code is internal to gtk only.
1266 2000-10-28 Tor Lillqvist <tml@iki.fi>
1269 * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
1270 glib-genmarshal etc.
1272 Fri Oct 27 20:15:00 2000 Tim Janik <timj@gtk.org>
1274 * gtk/Makefile.am: added dependancies for testtextbuffer which broke
1277 Fri Oct 27 18:51:44 2000 Tim Janik <timj@gtk.org>
1279 * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
1281 2000-10-27 Robert Brady <robert@suse.co.uk>
1283 * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic),
1284 en_GB (British), ia (Interlingua).
1286 2000-10-26 Havoc Pennington <hp@redhat.com>
1288 * gtk/gtktextiter.c (my_strrstr): fix constness warning
1291 nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
1293 * gtk/gtktextsegment.c (char_segment_new): rename
1294 (_char_segment_new_from_two_strings): rename
1295 (_toggle_segment_new): rename
1297 * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
1298 (make_clipboard_widget): make it static
1299 (text_get_func): static
1300 (text_clear_func): static
1302 * gtk/gtkcolorsel.c (adjustment_changed): make this function
1304 (hex_changed): make it static
1305 (hsv_changed): make it static
1306 (opacity_entry_changed): make it static
1308 * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
1309 (toggle_segment_check_func): rename with _gtk
1311 * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
1312 (_widget_segment_new): rename
1313 (_widget_segment_add): rename
1314 (_widget_segment_remove): rename
1315 (_widget_segment_ref): rename
1316 (_widget_segment_unref): rename
1318 * gtk/gtktextmark.c (_mark_segment_new): Rename
1319 _gtk_mark_segment_new
1321 2000-10-26 Havoc Pennington <hp@redhat.com>
1323 * gtk/gtkmarshal.list: add new marshallers used by the text widget
1324 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
1327 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
1330 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
1331 gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
1332 license on these files.
1334 * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
1337 * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to
1338 runtime random number different for each tree, instead of
1339 a constant I made up.
1341 Thu Oct 26 07:36:16 2000 Tim Janik <timj@gtk.org>
1343 * gtk/Makefile.am: buncha cleanups, kludged build sources
1344 dependencies with a Makefile: oldest-source-stamp dependancy
1345 for the moment. automake is really fighting us here, with
1346 intentionally not allowing user-defined rules or dependancies
1347 prior to it's -include $(DEP_FILES) statement. sucks rocks!
1349 * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
1350 to public headers. tehy have a comment stating that they are
1351 "semi-public" aren't included by gtk.h and if enums popup there,
1352 they can be /*< skip >*/-ed.
1354 * gtk/gtktextlayout.h:
1355 * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
1356 added LGPL... <SIGH>
1358 Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com>
1360 * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
1361 GtkTreeIter. Added iterators everywhere.
1363 * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
1365 * gtk/gtktreeviewselection.c: Changed to use the iterators.
1367 * gtk/gtktreestore.c: Changed to use the iterators.
1369 * gtk/gtkliststore.c: Commented out the code. Will convert to
1372 * gtk/gtkmodelsimple.c: Commented out the code. Will convert to
1375 * gtk/treestoretest.c: Changed to use iterators.
1377 * demos/testgtk/main.c: Moved to use the new iterator system.
1379 Thu Oct 26 02:10:32 2000 Tim Janik <timj@gtk.org>
1381 * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
1382 localization misbehaviour.
1384 * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
1385 a useless type without copy/free.
1387 * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
1388 of GTK_TYPE_CTREE_NODE.
1390 Thu Oct 26 00:51:52 2000 Tim Janik <timj@gtk.org>
1393 (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
1396 * gtk/gtk-boxed.defs (GtkSelectionData): specify
1397 gtk_selection_data_copy and gtk_selection_data_free
1398 do GtkSelectionData work as params in signals.
1400 Wed Oct 25 20:47:41 2000 Tim Janik <timj@gtk.org>
1402 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
1403 implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
1404 couldn't they at least give it a non-standard name?
1406 * gtk/gtktextlayout.c: arg! yet another implementation of
1407 gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
1409 * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
1410 gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
1411 home. now i know this _is_ a conspiracy.
1413 * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
1416 * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
1417 (gtk_accel_group_create_add): marshaller signature fixups.
1419 * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
1420 pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
1422 * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
1425 Tue Oct 24 23:59:21 2000 Tim Janik <timj@gtk.org>
1427 * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
1428 due to the signal system changes, it wouldn't build currently. to
1431 * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
1433 * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
1434 so it needs gtk_marshal_VOID__ENUM() instead of
1435 gtk_marshal_NONE__UINT().
1437 * gdk/gdk*.c: adapted type registration functions.
1439 * gtk/gtkbindings.c:
1440 * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
1443 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
1446 (gtk_object_destroy):
1447 (gtk_object_shutdown): fixed recursion guards. basically we have to
1448 catch the case where any of GObject.shutdown() or gtk_object_destroy()
1449 is called during ::destroy, and avoid recursion there.
1451 * gtk/gtktypeutils.c:
1452 * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
1453 boxed_copy/boxed_free. this needs a more general solution based on a
1454 publically installed code-generator utility.
1456 * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
1457 glib's gobject has support for that now.
1458 define GtkSignalMarshaller in terms of GSignalCMarshaller.
1460 Mon Oct 23 09:36:42 2000 Tim Janik <timj@gtk.org>
1462 * gtk/gtksignal.[hc]:
1463 * gtk/gtkmarshal.[hc]:
1464 * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
1465 compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
1466 removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
1469 * *.c: marshaller name fixups.
1471 * gtk/gtkmarshal.list: added a comment briefing the format.
1473 Sun Oct 22 23:14:39 2000 Tim Janik <timj@gtk.org>
1475 * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
1476 compatibility macros here now. more specifically, most of
1477 the API is preserved (yes, _most_, nonwithstanding the
1478 following exceptions listed, the API is stil lHUGE ;)
1479 things that got removed completely:
1480 GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
1481 gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
1482 gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
1483 gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
1484 gtk_signal_remove_emission_hook().
1485 non-functional functions variants:
1486 gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
1487 the GtkCallbackMarshal argument to gtk_signal_connect_full() is
1488 not supported anymore.
1489 (gtk_signal_compat_matched): new internal function to aid
1490 implementation of the compatibility macros, it provides
1491 functionality to block/unblock/disconnect handlers based
1494 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
1496 * *.c: adaptions to new type registration API signatures.
1498 Fri Oct 20 15:26:33 2000 Tim Janik <timj@gtk.org>
1500 * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
1502 2000-10-25 Robert Brady <robert@suse.co.uk>
1504 * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
1505 gdk_property_delete): If window == NULL, assume the root window.
1506 (restoring the behaviour that was in 1.2).
1508 * gtk/testtext.c (save_buffer): Allow creation of new files when
1511 (fill_file_buffer): Don't die if a UTF-8 sequence is split across
1514 2000-10-25 Tor Lillqvist <tml@iki.fi>
1516 * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
1518 * gdk/win32/gdkdrawable-win32.c
1519 * gdk/win32/gdkimage-win32.c
1520 * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
1523 * gdk/win32/gdkcc-win32.c
1524 * gdk/win32/gdkcolor-win32.c
1525 * gdk/win32/gdkfont-win32.c
1526 * gdk/win32/gdkinput-win32.c
1527 * gdk/win32/gdkmain-win32.c
1528 * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
1530 2000-10-24 Havoc Pennington <hp@redhat.com>
1532 * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
1533 it a static function
1535 * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
1536 redraw text when a tag is applied to it.
1538 * gtk/gtktexttag.c (gtk_text_tag_affects_size)
1539 (gtk_text_tag_affects_nonsize_appearance): private functions to
1540 see if a tag requires various kinds of redraw/layout to be queued
1543 * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
1545 * gtk/testtext.c (fill_example_buffer): Put the cursor
1546 at the start of the buffer, so search works by default
1548 * gtk/gtktextiter.c (lines_match): init match_start always
1550 * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
1551 function, get iter at a line + a byte index
1553 * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
1554 to set byte position within a line
1555 (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
1557 2000-10-23 Havoc Pennington <hp@redhat.com>
1559 * gtk/testtext.c: Re-enable the "find" dialog
1561 * gtk/testgtk.c: Add test for gdk_drawable_get_image
1563 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
1564 the arguments to gdk_draw_drawable were in the wrong order
1565 (gdk_window_paint_init_bg): This function was ignoring the
1566 init_region, instead of clipping to it, so the entire backing
1567 pixmap was cleared on every begin_paint()
1568 (gdk_window_begin_paint_region): Hmm, the same list-walking bug
1569 was in here again, the loop kept using the same GtkWindowPaint
1571 (gdk_window_begin_paint_region): Fix a bug where we had two
1572 x_offset instead of x_offset and y_offset
1574 * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
1575 before we get the image.
1576 (gdk_draw_drawable): get the composite before we draw the drawable.
1577 (gdk_drawable_real_get_composite_drawable): default
1578 get_composite_drawable implementation that returns the drawable
1581 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
1582 get_composite_drawable virtual function
1584 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
1587 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
1588 make this work if the source drawable is a GdkDrawableImplX11
1589 instead of a public drawable type. This is really broken; the
1590 problem is that GdkDrawable needs a virtual method get_xid(), but
1591 of course that doesn't work in practice. Enter RTTI.
1593 Also, improve mismatched depth message.
1595 * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
1598 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
1599 install _gdk_x11_get_image as our implementation of get_image
1601 * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
1602 _gdk_x11_get_image and export for use in gdkdrawable-x11.c
1604 * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
1605 gdk_drawable_get_image
1607 * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
1609 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
1612 * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
1613 trailing semicolon after for loop
1615 Mon Oct 23 12:07:57 2000 Owen Taylor <otaylor@redhat.com>
1617 * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
1618 where font_desc for widget's context lagged widget's font_desc by
1621 2000-10-22 Tor Lillqvist <tml@iki.fi>
1623 * gdk/win32/gdkgc-win32.c
1624 * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
1626 * gtk/makefile.mingw.in
1627 * gtk/gtk.def: Updates.
1629 * gtk/testgtk.c: sleep() is called _sleep in MS's C
1632 * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
1634 * gtk/makefile.msc: Remove
1636 * gtk/makefile.msc.in: New file, like makefile.mingw.in.
1638 * gtk/Makefile.am: Add it.
1640 * configure.in: Generate it.
1642 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
1643 * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
1644 something even if not implemented, to satisfy picky MSVC.
1646 Patches by Hans Breuer:
1648 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
1649 SetBkMode() and SetTextAlign() before calling
1650 pango_win32_render().
1652 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
1653 Set hcliprgn to NULL after destroying it.
1654 (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
1656 * gdk/win32/gdkgeometry-win32.c
1657 (_gdk_windowing_window_queue_antiexpose): More effective
1660 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
1661 depth as default, not the visual's.
1663 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
1664 against empty title.
1666 * gdk/win32/gdkprivate-win32.h: Define a helper macro,
1669 * gdk/win32/gdkimage-win32.c: Use it.
1671 2000-10-22 Robert Brady <robert@suse.co.uk>
1673 * configure.in: Check for bind_textdomain_codeset
1675 * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset
1676 present, make use of it.
1678 Add a translatable string "default:LTR" which, if translated
1679 to "default:RTL", will cause the default direction to be
1682 * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget
1683 direction if marked as flippable.
1685 * gtk/gtkhscale.c: Mark widget as flippable.
1687 2000-10-04 Havoc Pennington <hp@redhat.com>
1689 * gtk/testgtk.c (create_buttons): create some stock buttons
1690 with the default accel group
1691 (create_image): test some new GtkImage features
1692 (make_message_dialog): test GtkMessageDialog
1693 (create_modal_window): fix someone's bizzarro indentation
1695 * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement
1696 GTK_WIN_POS_CENTER_ON_PARENT.
1697 Add "destroy with parent" setting, which means the window goes
1698 away with its transient parent.
1699 (gtk_window_get_default_accel_group): get the default accel group
1701 (gtk_window_set_destroy_with_parent): set/unset destroy with
1703 (gtk_window_read_rcfiles): invalidate icon set caches
1704 after reloading rcfiles
1706 * gtk/gtkenums.h (GtkWindowPosition): add
1707 GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog
1708 on its parent window when the dialog is mapped for the first time.
1710 * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add
1711 a simple message dialog class
1713 * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event
1714 handler to emit response signal, and maybe later it would
1715 honor a hide_on_delete flag - though that isn't there yet.
1716 Set border width on the vbox to 2, so we get some padding.
1717 Use a button box for the action area.
1718 (gtk_dialog_key_press): synthesize a delete event if Esc
1719 is pressed and the GtkWidget key press handler didn't
1720 handle the escape key.
1721 (gtk_dialog_new_with_buttons): new function creates a dialog
1722 with some default buttons in it.
1723 (gtk_dialog_add_action_widget): add an activatable widget
1724 as a button in the dialog - you can also add a non-activatable
1725 widget by accessing the action area directly.
1726 (gtk_dialog_add_button): add a simple button - stock ID or
1727 label - to the action area
1728 (gtk_dialog_response): emit response signal
1729 (gtk_dialog_run): block waiting for the dialog, return
1730 the response. Override normal delete_event behavior, so that
1731 delete_event does nothing inside gtk_dialog_run().
1733 * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
1734 emitted when an action widget is clicked or the dialog gets
1737 * gtk/gtk.h: add gtkmessagedialog.h
1739 * gtk/Makefile.am: add gtkmessagedialog.[hc]
1741 2000-10-18 Havoc Pennington <hp@redhat.com>
1743 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
1744 where any number of empty lines would get skipped
1746 * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
1749 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
1750 warning about invalid iterators (explain more thoroughly)
1751 (gtk_text_iter_in_region): rename gtk_text_iter_in_range
1753 * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
1756 * demos/*.c: Add error handling
1758 * gtk/gtktextbuffer.c: don't modify const iterators
1760 * gtk/gdk-pixbuf-loader.c: Add full error handling here
1762 * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
1765 * gtk/gtkiconfactory.c: Update to reflect addition of error
1766 handling to gdk-pixbuf loaders
1768 Wed Oct 18 11:14:05 2000 Owen Taylor <otaylor@redhat.com>
1770 * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
1771 move to new modularized testgtk.
1773 2000-10-17 Jonathan Blandford <jrb@redhat.com>
1775 * gtk/gtktreeview.c: Draw the arrows correctly.
1777 * gtk/gtktreemodel.c: Added user docs.
1779 * gtk/gtk.h: remove gtktreedatalist.h.
1781 * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
1782 parent when generating my type.
1784 * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
1785 POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
1787 2000-10-16 Jonathan Blandford <jrb@redhat.com>
1789 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
1790 GtkTreeModel from object to interface.
1792 2000-10-16 Havoc Pennington <hp@redhat.com>
1794 * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing
1797 2000-10-16 Jonathan Blandford <jrb@redhat.com>
1799 * gtk/gtktreeselection.c: Add API documentation to all public
1802 * gtk/gtktreeviewcolumn.c: Added API documentation to all public
1805 2000-10-15 Jonathan Blandford <jrb@redhat.com>
1807 * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
1808 proposed by Guy Harris <gharris@flashcom.net>. Also, added API
1809 docs to all public functions.
1811 * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
1812 gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
1813 gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
1814 gtk/gtktreemodel.h, gtk/gtktreeselection.c,
1815 gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
1818 2000-10-14 Robert Brady <robert@suse.co.uk>
1820 * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
1822 2000-10-12 Jonathan Blandford <jrb@redhat.com>
1824 * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
1825 values other then G_TYPE_STRING.
1826 * gtk/gtktreeselection.c: Minor commenting updates.
1827 * gtk/gtktreeview.c: Format updates.
1829 2000-10-09 Tor Lillqvist <tml@iki.fi>
1831 * README.win32: Update.
1833 * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
1834 lines that had been deleted by mistake (?).
1836 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
1837 also the case fg==white and bg==black (but still not randomly
1838 coloured cursors). Thanks to Wolfgang Sourdeau.
1840 * gdk/win32/*.c: Silence gcc -Wall.
1842 * gtk/gtk.def: Add missing entry points.
1844 Fixes by Hans Breuer:
1847 * gdk/win32/makefile.msc: Update.
1849 * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
1850 some MSVC thing, presumably), cause breakpoint on failures. Add
1851 GDK_NOR case. Call g_log_set_always_fatal.
1853 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
1854 should be pased by reference.
1856 * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
1858 * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
1860 * gdk/win32/gdkevents-win32.c
1861 * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
1863 * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
1864 implementation object.
1866 * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
1869 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
1870 Use the wrapper object.
1872 2000-10-06 Havoc Pennington <hp@redhat.com>
1874 * Makefile.am (SRC_SUBDIRS): contrib subdir
1876 * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
1877 so it can be used in Xlib version
1879 * demos/testpixbuf.c (update_timeout): error checking from 1.0
1882 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
1883 change from 1.0 tree that returns first frame of animation
1884 if the loaded file is an animation.
1886 * contrib: add new directory to hold stuff that comes with GTK+
1887 but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
1889 * configure.in: add contrib/*
1891 2000-10-05 Havoc Pennington <hp@redhat.com>
1893 * demos/testpixbuf-save.c: add pixbuf save test
1895 * demos/Makefile.am: add testpixbuf-save.c
1897 2000-10-05 Jonathan Blandford <jrb@redhat.com>
1899 * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
1900 GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
1901 * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
1902 * gtk/gtktreeselection.[ch]: Replaced
1903 "node_selected"/"node_unselected" signal with "selection_changed"
1906 2000-10-04 Jonathan Blandford <jrb@redhat.com>
1908 * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
1911 2000-10-04 Jonathan Blandford <jrb@redhat.com>
1913 * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
1916 Wed Oct 4 15:52:15 2000 Owen Taylor <otaylor@redhat.com>
1918 * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
1919 Move list pointer forwards before removing item from
1920 list. (Crash reported by Salmaso Raffaele)
1922 * gdk/gdkwindow.h: Remove spurious trailing ,
1924 * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
1925 dependencies on uninstalled libraries, sorry folks.
1927 2000-10-04 Havoc Pennington <hp@redhat.com>
1929 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
1930 gtk/gtkiconfactory.c: Fix copyrights
1932 * demos/testpixbuf.c: add inline pixbuf test
1934 Mon Sep 25 15:05:17 2000 Owen Taylor <otaylor@redhat.com>
1936 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
1937 Add gdk_window_iconify.
1939 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
1940 (gdk_window_set_geometry_hints): Add win_gravity
1941 to geometry structure.
1943 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
1944 Implement _NET_WM_PING.
1946 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
1947 Set _NET_WM_PID on the client leader.
1949 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
1950 Handle UTF-8 better.
1952 * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
1953 UTF-8 better, set _NET_WM_NAME as well. Only set
1954 icon name if it hasn't previously been explicitely
1957 2000-10-03 Havoc Pennington <hp@redhat.com>
1959 * gtk/testtextbuffer.c: clean up trailing whitespace,
1960 add extensive tests for tag toggle iteration.
1962 * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
1965 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
1966 optimize case where the tag root is on level 1
1967 (gtk_text_line_previous_could_contain_tag): attempt to implement
1968 (gtk_text_line_next_could_contain_tag): Abstract out node_compare
1971 * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
1972 Implement this, though not very efficiently.
1974 * gtk/gtktextiterprivate.h: reformat
1976 * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
1979 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
1980 this to properly revalidate the iterators.
1982 * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
1983 properly at the end of the line (and therefore on empty lines)
1985 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
1986 maybe we should return a value...
1988 2000-10-03 Tor Lillqvist <tml@iki.fi>
1990 * config.h.win32: Guard definition of alloca(). glib.h now handles
1994 * gtk/gtk.def: Add new entry points.
1996 Changes just to make GTK+ build without errors on Win32. No hope
1997 of it working in its current state, though...:
1999 * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings. Add
2000 some functions from the X11 backend, just to make GTK+ build.
2002 * gdk/makefile.mingw.in
2003 * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
2004 number. Add new object files.
2006 * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
2007 GetMessageTime to get timestamp (where on X11 uses
2008 gdk_x11_get_server_time()).
2010 2000-10-02 Havoc Pennington <hp@pobox.com>
2012 * gtk/gtktextview.c: text_window_* weren't static and should have
2014 Start work on child widgets; not yet complete, syncing to
2017 * gtk/gtktextchild.h: change this to contain a public interface,
2018 starting work on child interfaces.
2019 * gtk/gtktextchildprivate.h: move private interfaces here
2021 * gtk/Makefile.am: update to reflect gtktextchildprivate.h
2023 * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
2024 gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c,
2025 gtk/gtktextmark.c: copyright notices
2027 * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
2030 * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
2033 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
2036 2000-09-30 Havoc Pennington <hp@pobox.com>
2038 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
2039 NULL start/end pointers
2041 * gtk/gtktextbuffer.c: Write some docs
2042 (gtk_text_buffer_get_selection_bounds): Allow start/end to be
2043 NULL, so you can just check whether there's a selection.
2045 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to
2046 cleanup_line or segments_changed ourselves, it gets done
2049 * gtk/gtktextmark.h:
2050 s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
2052 * gtk/gtktextsegment.h: Clean up some indentation and naming mess
2054 * gtk/gtktextmark.c: delete some more old Tk cruft
2056 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
2057 mark before removing it, so we can emit MARK_DELETED with a valid
2059 (gtk_text_buffer_mark_set): hold ref across signal emission
2061 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
2062 whining about attempts to delete special marks
2064 * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
2065 underscore, since it's internal.
2067 * gtk/gtktextbuffer.h: Remove find_string prototype, this is
2068 now implemented in terms of iterators in gtktextiter.h
2070 * gtk/gtktextbuffer.c (gtk_text_buffer_set_text):
2071 New function, destructively sets contents of buffer. Also
2072 a convenient way to clear the buffer by setting text to ""
2074 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
2075 multiline string literal
2077 * gtk/testtext.c (text_changed_callback): Redraw line numbers if
2080 * gtk/gtktextiter.c (forward_char): Return FALSE if new location
2081 is not dereferenceable
2082 (gtk_text_iter_forward_lines): fix return value
2084 2000-09-29 Havoc Pennington <hp@redhat.com>
2086 * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
2088 * gtk/gtktextview.c: Implement drag thresholding; change functions
2089 that set border window size to have nicer name
2090 (gtk_text_view_mark_set_handler): Fix this to have the
2093 * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
2095 * gtk/testtext.c: Update with API changes, put line numbers on
2098 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
2101 * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
2102 pixbuf; delete a big block of #if 0 Tk code
2104 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
2105 insert_pixmap with insert_pixbuf
2107 2000-09-29 Martin Baulig <baulig@suse.de>
2109 * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
2110 confusion with the GdkPixbuf of the GNOME 1.x platform.
2112 2000-09-29 Havoc Pennington <hp@pobox.com>
2114 * gtk/gtktextview.c: Implement the side windows.
2116 * gtk/testtext.c: Implement simple line numbering in the
2117 left side window; seems to make scrolling sloooow. Oops.
2118 Also, cursor blink is for some reason causing redraws
2119 of the line numbers. Should investigate...
2121 2000-09-28 Havoc Pennington <hp@redhat.com>
2123 * gtk/gtktextview.c: Set up infrastructure to deal with lots of
2124 scrolling child windows, and draw focus rectangle properly.
2126 (gtk_text_view_buffer_to_window_coords):
2127 Coordinate transformation to deal with all these freaking windows
2129 (gtk_text_view_window_to_buffer_coords): transform the other way
2131 * gtk/testtext.c (create_buffer): Update to match Pango API change
2133 * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
2135 (foreach_unref): don't emit remove signal from finalize, just
2136 set tag's parent to NULL
2138 2000-09-26 Havoc Pennington <hp@redhat.com>
2140 * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
2143 2000-09-26 Havoc Pennington <hp@redhat.com>
2145 * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
2146 headers into the private header list
2148 * Makefile.am (pkgconfig_DATA): install pkg-config files
2150 * configure.in: add pkg-config files
2152 * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
2154 * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
2155 outstanding icon caches on theme change.
2157 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
2160 (GtkIconSource): Specification for creating a pixbuf
2161 appropriate for a direction/state/size triplet from
2162 a source pixbuf or filename
2164 (GtkIconSet): List of GtkIconSource objects that are used to
2165 create the "same" icon (e.g. an OK button icon), and cache for
2168 (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
2169 up the icon set for a given stock ID. GTK maintains a stack of
2170 GtkIconFactory to search, and applications or libraries can add
2171 additional icon factories on top of the stack
2173 * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
2174 the set of GtkIconSource specified for a given stock ID into
2175 a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
2176 RcStyle, under the specified stock ID.
2178 * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
2179 render_icon used to derive a GdkPixbuf from a GtkIconSource.
2180 This allows people to theme how prelight, insensitive, etc. are
2183 (gtk_style_lookup_icon_set): Look up a stock ID in the list of
2184 icon factories for a style, and return the resulting
2187 (gtk_style_render_icon): Render an icon using the render_icon
2188 method in the GtkStyleClass.
2190 * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
2191 Use the style for a given widget to look up a stock ID, get the
2192 icon set, and render an icon using the render_icon method
2195 * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
2196 (contains information about a stock item), the built-in stock item
2197 IDs, and functions to add/lookup stock items.
2199 * gtk/stock-icons/*: Stock icons that come with GTK
2201 * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
2202 a button based on a GtkStockItem
2203 (gtk_button_new_accel): Takes a uline string and accel group, and
2204 installs the accelerator.
2206 * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
2207 image-display widget.
2209 2000-09-25 Havoc Pennington <hp@redhat.com>
2211 * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
2213 * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data):
2214 Fix a bug when removing node data, we didn't properly
2215 re-splice the linked list after removing the data.
2217 * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through
2218 GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
2220 * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
2222 * gtk/gtktextlayout.c (set_para_values): Set tab array
2223 for the layout from the GtkTextTag.
2225 * gtk/gtktexttypes.h: delete tab and search cruft,
2226 remove g_convert() in favor of GLib version
2228 * gtk/gtktexttypes.c: remove tab implementation from here,
2231 * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement
2232 tab stuff using new PangoTabArray from Pango
2234 * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
2235 unused border_width stuff
2237 Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
2239 * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
2240 glib) and now useless utf_to_latin1() latin1_to_utf()
2242 * gtk/gtktextview.[ch]: Change ::move_insert and
2243 ::delete_text action signals to ::move and ::delete;
2244 create the signals with the right enumeration type,
2245 not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
2246 C-v bindings, change Home, End to move to beginning/end
2247 of line, Add C-Home C-End to move to beginning/end
2248 of buffer. Change ::cut_text to ::cut_clipboard, etc;
2249 combine ::scroll_text into ::move; use new GtkSelectionData
2250 functions to simplify DND text handling.
2252 * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
2253 deletion enumerations here, rename enumeration values to
2254 be consistently plural.
2256 * gtk/gtktextbuffer.c: Use new clipboard interfaces
2257 for cut/copy/paste and primary selection.
2259 * gtk/gtktextbuffer.[ch]: Remove excess time and
2260 'interactive' arguments from cut/copy/paste;
2261 rename cut to cut_clipboard, etc; remove
2262 gtk_text_buffer_get_clipboard_contents().
2264 * gtk/gtktextlayout.[ch]: Add
2265 gtk_text_layout_move_iter_to_line_end() to move the iter to
2268 * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
2269 Functions to set or get a UTF-8 string on the selection
2272 * gtk/gtkclipboard.[ch]: New, simplified selection handling
2275 * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
2276 created widgets - one of these is useless if we don't.
2278 * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
2279 a public function clear all targets registered for the
2282 * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
2283 Never call gtk_widget_realize() - that was just asking
2284 for bizarre side-effects.
2286 * gtk/gtkselection.c (gtk_selection_owner_set): Call
2287 gdk_selection_owner_set even if the widget is the
2288 same so that we reliably update the timestamp on
2291 * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
2292 gdk_x11_get_server_time() function.
2294 * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
2295 gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
2296 Add some tricky filtering on serial numbers for
2297 selection clear events to fix up long-standard
2298 race condition FIXME's in gtkselection.c.
2300 * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
2301 routines to convert from utf8 to compound text or
2302 STRING and from a text property to UTF-8.
2304 * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
2305 a convenience function gdk_get_current_event_time().
2307 * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
2308 and free selection_data->data properly
2310 Sat Sep 9 10:23:53 2000 Owen Taylor <otaylor@redhat.com>
2312 * gtk/gtkthemes.c: Remove some unecessary includes.
2314 2000-09-08 Jonathan Blandford <jrb@redhat.com>
2316 * gtk/gtktextdisplay.c
2317 * gtk/gtktextlayout.c
2320 * gtk/testtext.c: Change the overstrike property to strikethrough,
2321 to closer match pango.
2323 Fri Sep 8 14:28:00 2000 Owen Taylor <otaylor@redhat.com>
2325 * gtk/gtktextview.c: Fix up visibility so that focus,
2326 cursor_visible and blink interact properly. Reenable cursor blink
2327 which had been roughly disabled. Make blink and focus
2330 * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
2331 Add a flag for whether to display insertion cursor and
2332 a function to set the flag.
2334 * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
2335 get_line_y() to get_line_yrange(), to be a bit more generally
2338 Thu Sep 07 20:54:33 2000 George Lebl <jirka@5z.com>
2340 * gtk/gtkmenu.c: in gtk_menu_set_submenu_navigation_region
2341 do stop_navigating_submenu, to clear last timeout properly.
2342 Also in gtk_menu_motion_notify move ignore_enter above
2343 the conditional to make it always happen as suggested by Owen
2345 2000-09-07 Tor Lillqvist <tml@iki.fi>
2347 * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
2349 * gdk/win32/gdkwin32.h: Add more definitions missing from the free
2352 * gdk/win32/gdkprivate-win32.h: Add a couple of missing
2355 * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
2356 (gdk_win32_get_colormap): A line had been deleted by mistake.
2358 * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
2359 (gdk_event_translate): Handle more virtual keycodes to be able to
2360 generate GDK events for Control-comma, Control-period, etc.
2362 * gtk/gtk.def: Add some missing entry points.
2364 Thu Sep 7 11:47:02 2000 Owen Taylor <otaylor@redhat.com>
2366 * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
2367 Doc comment fixing. (Mostly non-matching parameter names.)
2369 * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
2370 comments a little to avoid looking like a doc comment.
2372 * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
2373 GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
2374 conversions be changed to GError?)
2376 * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT):
2377 Move private #defines into .c file.
2379 * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
2380 order of argument addition, remove duplicates.
2382 * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
2383 parent class is FrameClass, not BinClass.
2385 * gtk/gtk.h: Add gtkinvisible, which was missing.
2386 (It's occasionalyl useful for client apps, if seldom.)
2388 * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
2391 Wed Sep 6 09:53:15 2000 Owen Taylor <otaylor@redhat.com>
2393 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
2394 coordinates when creating window, instead of GDK-space
2395 coordinates. (Avoid BadValue on too large windows.)
2397 2000-09-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
2399 * configure.in (use_mmx_asm): Remove conftest* after use along the
2400 lines of AC_TRY_COMPILE.
2402 * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
2403 of g_dirname, which is deprecated.
2404 (gtk_rc_parse_any): Removed calls to
2405 g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
2407 * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
2408 Removed calls to g_hash_table_{freeze,thaw}, as they are
2411 * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
2412 instead of g_basename.
2414 2000-09-04 Elliot Lee <sopwith@redhat.com>
2416 * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
2419 Sun Sep 03 00:47:08 2000 George Lebl <jirka@5z.com>
2421 * gtk/gtkwidget.h: Add some documenting comments about
2422 GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
2423 just as owen said on irc.
2425 * gtk/gtkwindow.c (gtk_window_set_default): Don't blindly
2426 set HAS_DEFAULT. Only set it if there isn't another window
2427 holding it (a focus window which RECEIVES_DEFAULT) and only unset
2428 it if the widget is not the focused window with RECEIVES_DEFAULT.
2429 This fixes weird double default bugs in dialogs which has things
2430 call gtk_window_set_default at times.
2432 Fri Sep 1 22:39:07 2000 Owen Taylor <otaylor@redhat.com>
2434 * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
2435 Nils Barth and David Santiago to improve submenu
2436 navigation. The patch does this by creating a triangular
2437 region from the point where the pointer leaves the
2438 menu to the submenu. While the pointer is in
2439 that region and a timeout has not expired, events
2440 that would cause the active submenu to change are
2443 Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
2445 * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
2446 moving a toplevel window immediately after sizing it would
2447 result in it being sized back to the old size since
2448 impl->width, impl->height aren't updated until we hear
2449 back from the server. There is still a (longstanding) bug
2450 here that gdk_window_get_size() will give the wrong size
2451 until we do hear back.
2453 2000-08-31 Havoc Pennington <hp@redhat.com>
2455 * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
2456 gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c,
2457 gtk/gtktexttagprivate.h, gtk/gtktextview.c:
2458 Rename GtkTextStyleValues to GtkTextAttributes
2460 2000-08-31 Havoc Pennington <hp@pobox.com>
2462 * gtk/gtktextbtree.c (GtkTextBTree): cache end line,
2463 for rapid testing whether an iterator is the end iterator
2464 (gtk_text_btree_new): init end line cache
2465 (gtk_text_line_is_last): use fast cached line to
2466 see if we're the last line.
2467 (get_last_line): use cached line here too, should
2468 speed up some random unrelated code.
2470 2000-08-30 Havoc Pennington <hp@pobox.com>
2472 * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
2475 * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
2476 delete_text signals. This allows the signals to be used for
2479 * gtk/gtktextbuffer.c: Change signal handler signatures;
2480 provide "interactive" argument when emitting insert_text or
2483 2000-08-30 Havoc Pennington <hp@pobox.com>
2485 * gtk/gtktextbuffer.c: Docs
2487 Fri Aug 25 12:16:15 2000 Owen Taylor <otaylor@redhat.com>
2489 * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
2490 from switch statements, since Tor removed the enumeration
2493 * gdk/x11/gdkimage-x11.c (gdk_image_get):
2494 s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
2496 2000-08-29 Elliot Lee <sopwith@redhat.com>
2497 * */*.h: Use G_GNUC_CONST.
2499 2000-08-27 Havoc Pennington <hp@pobox.com>
2501 * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
2502 minor indentation fixes, inserted some FIXME about stuff I
2503 realized was broken while documenting it.
2504 (gtk_text_iter_get_pixmap): allow out params to be NULL, following
2507 Tue Aug 22 12:33:24 2000 Owen Taylor <otaylor@redhat.com>
2509 * gtk/testgtk.c (create_styles): Fix double free of
2512 Mon Aug 21 22:39:18 2000 Owen Taylor <otaylor@redhat.com>
2514 * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
2516 * gtk/testgtk.c (create_styles): Add a test for modifying
2517 the style through gtk_widget_modify_*.
2519 * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
2520 a function to get the current modifier style.
2522 * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
2523 of the passed in GtkRcStyle instead of ref'ing it.
2525 * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
2527 2000-08-20 Tor Lillqvist <tml@iki.fi>
2530 * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
2531 shared memory image+pixmap GdkImage type, or
2532 gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
2535 * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
2536 actually call gtk_init_abi_check(), passing also
2537 sizeof(GtkWindow). Ditto for gtk_init_check().
2540 * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
2541 New functions, used to check that the GTK+-using code has been
2542 compiled using the correct compiler and switches. In particular,
2543 with gcc one has to use the -fnative-struct switch as GTK+ is
2546 Fri Aug 18 17:27:46 2000 Owen Taylor <otaylor@redhat.com>
2548 * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
2549 ->prev fields when merging lists. (Found simultaneously
2550 by Pawel Salek and Jakub Jelinek)
2552 2000-08-12 Tor Lillqvist <tml@iki.fi>
2555 * gtk/gtk.def: Add missing entries.
2557 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
2558 OUT_TT_ONLY_PRECIS, try to get a TrueType font.
2560 * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
2561 function. Dummy implementation at this point.
2563 * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
2564 rules. Undefine GTK_COMPILATION when compiling the test programs.
2566 * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
2568 2000-08-11 Tor Lillqvist <tml@iki.fi>
2570 * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
2571 to convert back and forth from UTF-8 and the "system" (or "current
2572 locale") charset when necessary. Indentation/spacing cleanup.
2574 2000-08-10 Havoc Pennington <hp@redhat.com>
2576 * Makefile.am (snapshot): Change the format of the snapshot
2577 version to match glib
2579 * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
2580 from EXTRA_DIST since it doesn't seem to exist
2582 2000-08-10 Tor Lillqvist <tml@iki.fi>
2584 * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
2585 version of the directory name (not the UTF-8 one) when building
2586 the path name to stat().
2588 2000-08-03 Elliot Lee <sopwith@redhat.com>
2590 * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
2591 PANGO_ATTR_SHAPE set.
2593 Thu Aug 3 09:17:06 2000 Owen Taylor <otaylor@redhat.com>
2595 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
2596 Peter Osterlund to simplify the code while keeping the
2597 functionality the same.
2599 Wed Aug 2 14:57:38 2000 Owen Taylor <otaylor@redhat.com>
2601 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
2602 is_viewable() test further inside the function, since removing the
2603 window from the redraw list without clearing ->update_area
2604 was also very broken.
2606 2000-08-02 Tor Lillqvist <tml@iki.fi>
2608 * configure.in: Check for <unistd.h>.
2610 2000-08-01 Martin Baulig <baulig@suse.de>
2612 * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
2613 to display the message that this is a development version of GTK+.
2615 Mon Jul 31 18:37:36 2000 Owen Taylor <otaylor@redhat.com>
2617 * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
2618 was depending on widget->allocation instead of the width of text_area,
2619 which was incorrect for subclasses like GtkSpinButton.
2621 * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
2622 with width == 1 tests that should be width == -1.
2624 Mon Jul 31 16:45:48 2000 Owen Taylor <otaylor@redhat.com>
2626 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken,
2627 (broken, Elliot, every single window blank on X) custom code with call
2628 to gdk_window_is_viewable() which a) prevents code duplicate and
2631 2000-07-31 Elliot Lee <sopwith@redhat.com>
2633 * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() macro to work.
2634 * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
2635 * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces of, windows that aren't shown.
2636 * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of pointer grab stuff.
2638 Mon Jul 31 13:53:16 BST 2000 Tony Gale <gale@gtk.org>
2640 * docs/gtkfaq.sgml docs/gtk-faq.sgml:
2641 s/gtk_main_iteration/g_main_iteration/
2643 Did this already in change:
2644 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
2645 don't know how it got reverted.
2647 2000-07-31 Stanislav Brabec <utx@penguin.cz>
2649 * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
2650 gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
2652 * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
2655 2000-07-30 Pablo Saratxaga <pablo@mandrakesoft.com>
2657 * configure.in,po/{sp,sr}.po: Added Serbian files
2659 2000-07-30 Tor Lillqvist <tml@iki.fi>
2661 * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
2663 * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
2664 Remove the g_pipe_readable_msg stuff. Not needed with new GLib
2665 GIOChannel implementation.
2667 * gdk/win32/gdkinput.c
2668 * gdk/win32/gdkpango-win32.c: Update license name here, too.
2670 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
2671 definition to match prototype.
2673 * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
2675 2000-07-27 Elliot Lee <sopwith@redhat.com>
2677 * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
2678 function, to allow handling image formats that cannot be detected
2679 by looking at content alone.
2681 Thu Jul 27 13:13:21 BST 2000 Tony Gale <gale@gtk.org>
2683 * docs/tutorial/*.gif *.jpg *.eps
2684 Update these to the same look-n-feel.
2685 Why does including images in DocBook suck so badly?
2687 Thu Jul 27 05:06:29 2000 Tim Janik <timj@gtk.org>
2689 * gtk/gtktable.c: applied patch from Phil Thompson
2690 <phil@river-bank.demon.co.uk> that enables space settings for
2691 the last row/columns as well.
2693 Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org>
2695 * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
2696 updates the license headers to the GNU Lesser General Public License,
2697 as well as updating the copyright year to 2000.
2699 2000-07-26 Robert Brady <rwb197@zepler.org>
2701 * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
2702 and po/Makefile, was installing and looking for them under gtk20
2703 and gtk2 respectively.
2705 2000-07-25 Havoc Pennington <hp@redhat.com>
2707 * gtk/testtext.c: Comment out some stuff that depends on the rest
2710 2000-07-25 Havoc Pennington <hp@redhat.com>
2712 * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
2715 2000-07-25 Havoc Pennington <hp@redhat.com>
2717 * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
2720 * gtk/gtktextview.h: To be consistent with usage of "line"
2721 throughout the API to mean "newline-terminated thingy", change
2722 MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
2725 (GtkTextView): Add flags for default editability, and whether to
2726 show the cursor. Add functions to get/set that. Add
2728 (gtk_text_view_get_iter_location): new function
2730 * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
2732 (g_convert): Add g_convert temporarily, will go in glib in a bit
2734 * gtk/gtktexttagtable.h: include gtktexttag.h, and define
2735 GtkTextTagTableForeach instead of brokenly using GHFunc.
2736 Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
2738 * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
2739 moved to public header.
2741 * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
2742 "invisible", since "elide" was a bad name.
2743 (gtk_text_tag_get_priority): Added
2745 (GtkTextStyleValues): put this in public header, along with
2746 functions to use it.
2748 * gtk/gtktextmarkprivate.h: Include more headers, since we no
2749 longer include gtktextbtree.h.
2751 * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
2752 gtk_text_mark_deleted
2754 * gtk/gtktextlayout.h: Don't include the "really private" headers,
2755 only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
2756 to make this possible. Now we only need to install
2757 gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
2758 (However the Makefile.am isn't changed yet because of the
2759 logistics of merging gtk-hp-patches piecemeal)
2761 * gtk/gtktextiterprivate.h: include btree header, so it compiles;
2762 rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
2763 gtk_text_iter_get_line is now used in the public API for a
2766 * gtk/gtktextiter.h: Clean up function names to be more
2767 consistent. Always call char offset "offset" and byte index
2768 "index". A "line" is always a line number.
2770 (gtk_text_iter_is_last): new function, more efficient than
2771 the existing way to check
2772 (gtk_text_iter_is_first): new function, also more efficient
2774 (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
2776 (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from
2777 gtk_text_iter_forward_char, etc.
2779 (gtk_text_iter_forward_to_tag_toggle): Renamed from
2780 forward_find_tag_toggle, since this isn't a linear search
2782 (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
2784 (gtk_text_iter_forward_search, gtk_text_iter_backward_search):
2785 New functions, search for a buffer substring.
2787 * gtk/gtktextbuffer.h: Add fields to store whether a paste is
2788 interactive and default editable (since we need to store that info
2789 until we receive the selection data).
2791 Remove all the _at_char and at_line etc. versions of functions;
2792 only have iterator versions.
2794 Add _interactive() versions of functions, that consider the
2795 editability of text. (FIXME add interactive flag to the
2796 insert/delete signals per Darin's suggestion)
2798 (gtk_text_buffer_get_tag_table): new function, demand-creates the
2799 tag table if necessary
2801 Remove declaration of gtk_text_buffer_get_iter_from_string
2803 (_gtk_text_buffer_get_btree): private/internal function, added.
2806 * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
2807 (gtk_text_line_is_last): new function
2809 2000-07-25 Havoc Pennington <hp@redhat.com>
2811 * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
2812 using GtkProgressBar. See Changes-2.0.txt for details.
2814 * gtk/gtkprogressbar.c: Add object arguments "fraction" and
2815 "pulse_step" which are the equivalent of
2816 gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
2819 * gtk/gtkprogress.h (struct _GtkProgress): Add a field
2820 (use_text_format) to mark whether text set on the progress bar is
2821 a format string. Deprecate entire GtkProgress interface.
2823 * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
2824 (gtk_progress_build_string): make this a no-op if use_text_format
2827 * docs/Changes-2.0.txt: Describe progress bar changes.
2829 2000-07-25 Tor Lillqvist <tml@iki.fi>
2831 * Makefile.am: Include the build directory.
2833 * configure.in: Generate build/Makefile, build/win32/Makefile,
2834 gdk/, gdk/win32/, and gtk/makefile.mingw.
2836 * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
2837 Add GETTEXT_PACKAGE.
2840 * gtk/gtk.def: Updates.
2843 * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
2844 need them any longer.
2846 * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
2848 * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
2849 PANGOWIN32_LIBS and gdk_pixbuf.
2851 * gdk/win32: Compiles, but no doubt doesn't work at all.
2853 * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
2855 * gdk/win32/gdkinput.c: New file, temporarily.
2857 * gdk/win32/gdkinput-win32.h: New file
2859 * gdk/win32/gdkinputprivate.h: Remove.
2861 * gdk/win32/gdkpango-win32.c: New file.
2863 * gtk/makefile.mingw.in: New file
2865 * gtk/makefile.cygwin: Removed
2867 * gtk/Makefile.am: Update accordingly.
2869 * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
2870 made externally visible.
2872 * gtk/gtkmain.c: Use it.
2874 * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
2877 * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
2879 2000-07-24 Elliot Lee <sopwith@redhat.com>
2880 * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
2881 individual backends already.
2882 * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
2883 again. Yes, there really is a good reason for this, if you are using the gdkregion
2884 internals, and if you're not, why do you care?
2885 * gdk/gdkwindow.c: Fix inverted condition
2886 * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
2887 * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
2888 * gtk/gtkrange.c: Redraw trough when moving.
2889 * gtk/gtktypeutils.c: Fix warning by adding const cast.
2890 * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
2892 2000-07-23 Tor Lillqvist <tml@iki.fi>
2894 * configure.in: Check for mkstemp and sigsetjmp. Output
2895 gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
2897 More work on GDK for Win32. Still in an intermediate state.
2899 * gdk/makefile.cygwin
2900 * gdk/win32/makefile.cygwin: Removed.
2902 * gdk/makefile.mingw.in
2903 * gdk/win32/makefile.mingw.in: New files.
2906 * gdk/win32/Makefile.am: Generate and distribute them.
2908 * gdk/win32/gdkwindow-win32.h
2909 * gdk/win32/gdkdrawable-win32.h
2910 * gdk/win32/gdkpixmap-win32.h: New files.
2912 * gdk/win32/gdkcolor-win32.c
2913 * gdk/win32/gdkcursor-win32.c
2914 * gdk/win32/gdkdrawable-win32.c
2915 * gdk/win32/gdkgc-win32.c
2916 * gdk/win32/gdkimage-win32.c
2917 * gdk/win32/gdkprivate-win32.h
2918 * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
2919 Rename fields and variables called xcursor, xid, etc (these names
2920 were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
2922 Sat Jul 22 17:41:26 2000 Owen Taylor <otaylor@redhat.com>
2924 * gtk/gtkentry.[ch]: Fix some problems with vertical
2927 * gtk/gtkentry.c (gtk_entry_find_position): Fix
2928 char/byte confusion.
2930 Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
2932 * gtk/gtktextview.c (changed_handler): Fix bug where
2933 redraw wasn't being done properly when height of
2934 dirty region changed.
2936 * demos/Makefile.am: Remove various references to
2939 Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
2941 * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
2942 PangoAttrShape to reserve space for pixmaps, add
2943 GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
2944 in the display functions.
2946 * gtk/testgtk.c (create_layout): Set some more exotic
2947 scrolled window options
2949 * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
2950 Add function to set the shadow type of a window, to allow
2951 putting a shadow around widgets such as GtkLayout or GnomeCanvas
2952 which don't draw their own frame.
2954 Fri Jul 21 16:34:42 BST 2000 Tony Gale <gale@gtk.org>
2956 * docs/tutorial/package-db-tutorial.sh: New file for
2957 packaging DocBook format tutorial
2959 Fri Jul 21 14:23:51 BST 2000 Tony Gale <gale@gtk.org>
2961 * docs/tutorial/gtk-tut.sgml: Minor updates
2963 * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
2965 2000-07-19 Tor Lillqvist <tml@iki.fi>
2967 * gtk/gtksignal.c: Fix C++ comment.
2969 * gtk/gtkimmulticontext.c
2970 * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
2971 don't return value from void functions.
2973 * gtk/gtk.def: Add gtk_rc_style_unref.
2975 2000-07-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
2977 * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
2978 gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
2979 gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
2980 gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
2981 gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
2982 gtk/gtktypeutils.h: Include files outside of the extern "C"
2983 block. Makes some C++ compiler happy. Reported by Denis Vakatov
2984 <vakatov@peony.nlm.nih.gov>.
2986 Wed Jul 19 14:07:57 BST 2000 Tony Gale <gale@gtk.org>
2988 * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
2989 Completes first pass. Hurrah!
2991 Tue Jul 18 17:17:55 BST 2000 Tony Gale <gale@gtk.org>
2993 * docs/tutorial/gtk-tut.sgml: More clean ups.
2995 Mon Jul 17 18:52:38 2000 Owen Taylor <otaylor@redhat.com>
2997 * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
2998 paint the background of the text area which was accidentally
2999 removed at some point.
3001 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]:
3003 - Move most of the functionality from the theme vtable
3004 into GtkRcStyleClass and GtkStyleClass. The moved
3005 vtable functions were changed a bit in the move to
3006 work better in their new home.
3008 - Get rid of the engine and engine_data fields from
3009 GtkRcStyle and GtkStyle; instead the theme
3010 engine derives theme-specific subclasses of GtkRcStyle
3013 - Add extra dlsym() found entry point to themes,
3014 theme_create_rc_style().
3016 * gtk/gtkstyle.c: Copy xthickness, ythickness fields
3017 in gtk_style_real_copy.
3019 * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
3020 to register a type associated with an engine. (The engine
3021 won't be unloaded as there is an instance of the type.)
3024 Mon Jul 17 18:19:06 BST 2000 Tony Gale <gale@gtk.org>
3026 * docs/tutorial/gtk-tut.sgml: Clean ups.
3028 Mon Jul 17 13:59:29 BST 2000 Tony Gale <gale@gtk.org>
3030 * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
3031 of cleaning up to do.
3033 2000-07-15 Tor Lillqvist <tml@iki.fi>
3035 * gdk/testgdk.c: New file, quick hack to test backends for
3036 pixel-by-pixel correctness of the most simple graphic operations.
3038 Fri Jul 14 20:30:25 2000 Owen Taylor <otaylor@redhat.com>
3040 * Really release 1.3.1
3042 * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
3045 Fri Jul 14 18:40:39 2000 Owen Taylor <otaylor@redhat.com>
3049 Fri Jul 14 16:21:26 2000 Owen Taylor <otaylor@redhat.com>
3051 * gtk/gtktextlayout.c: use FALSE for size_only most
3052 of the time when calling gtk_text_layout_get_line_display()
3053 to avoid causing double reshapes when a redraw follows
3056 Tue Jul 11 11:13:40 2000 Owen Taylor <otaylor@redhat.com>
3058 * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
3059 appropriate region and gdk_window_process_updates() so trough
3060 updating doesn't lag behind the window being scrolled.
3062 * gdk/gdkgc.c: Make parent_class pointer static.
3064 Sun Jul 9 21:31:23 2000 Owen Taylor <otaylor@redhat.com>
3066 * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
3069 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
3070 cut-and-paste error in computing memory offset for 4 channels.
3072 Fri Jul 14 14:05:02 2000 Owen Taylor <otaylor@redhat.com>
3074 * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
3075 gtk_rc_append_default_pixmap_path(), since it wasn't
3076 adding an interesting path and we don't have a meaningful
3077 default for this value.
3079 Fri Jul 14 12:22:49 2000 Owen Taylor <otaylor@redhat.com>
3081 * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
3082 gtk-config to gtk-config-2.0 move gtk_.m4 to
3085 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
3086 gdk/Makefile.am demos/Makefile.am: Change
3087 library names to libgtk-1.3.la, etc, so that we
3088 can distinguish gtk-1.2 and gtk-2.0 on the linkline.
3090 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
3091 gdk/Makefile.am gdk/x11/Makfile.am
3092 Move include files into /usr/include/gtk-2.0,
3093 /usr/lib/gtk-2.0/include/
3095 * autogen.sh acconfig.h configure.in gtk/gtkmain.c
3096 gtk/gtkintl.h: Change package for gettext from
3097 gtk+ to gtk20. Put hack in autogen.sh to modify
3098 po/Makefile.in.in after gettextize to make this
3101 * gtk+.spec: Some updates, not tested.
3103 * gdk-pixbuf/Makefile.am: Move loaders into
3104 $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
3106 * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
3107 $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
3108 to THEMENAME/gtk-2.0/. Move engine directory to
3109 $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
3111 2000-07-12 Tor Lillqvist <tml@iki.fi>
3113 Win32 changes, still doesn't build though.
3115 * gdk/makefile.cygwin
3116 * gdk/win32/makefile.cygwin
3117 * gtk/makefile.cygwin: Updates.
3119 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
3120 default values for fg and bg pixel as X11 does (0 and 1), not
3121 black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
3122 Use 0 for pen width by default (treated as 1 anyway later, but for
3123 apps that might check the value in the GdkGC).
3124 (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
3125 interface to gdk_gc_predraw and _postdraw.
3127 * gdk/win32/gdkwin32.h
3128 * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
3130 * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
3131 extraneous semicolon.
3133 * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
3135 * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
3136 not the Win32 bitspixel value.
3138 * gdk/win32/gdkcc-win32.c:
3139 * gdk/win32/gdkcolor-win32.c
3140 * gdk/win32/gdkprivate-win32.h
3141 * gdk/win32/gdkwin32.h: Changes to make compilable, with new
3142 GDK object structure.
3144 Tue Jul 11 20:59:35 2000 Tim Janik <timj@gtk.org>
3146 * docs/tutorial/gtk_tut_12.es.sgml (name):
3147 * docs/tutorial/gtk_tut_it.sgml (name):
3148 * docs/tutorial/gtk_tut_fr.sgml (name):
3149 * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
3150 outdated email adress: s/timj@psynet.net/timj@gtk.org/.
3152 Tue Jul 11 13:10:57 BST 2000 Tony Gale <gale@gtk.org>
3154 * docs/faq/gtk-faq.sgml: Cleanup indenting and various
3157 Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org>
3159 * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
3160 a bug here, never been here and never fixed anything ;(
3161 (don't segfault if tree->root_tree is NULL, which happens prior
3162 to widget realization, but puke instead).
3164 Tue Jul 11 06:38:42 2000 Tim Janik <timj@gtk.org>
3166 * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
3167 add the necessary tokens.
3169 * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
3170 (gtk_rc_style_to_style): copy thicknesses.
3171 (gtk_rc_init_style): apply thicknesses.
3172 (gtk_rc_parse_style): parse xthickness and ythickness.
3174 * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
3176 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new):
3178 (_gdk_windowing_window_init):
3179 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new):
3180 (gdk_pixmap_create_from_data):
3181 (gdk_bitmap_create_from_data):
3183 * gdk/x11/gdkimage-x11.c (gdk_image_get):
3185 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new):
3186 * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new):
3187 * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
3188 (gdk_colormap_get_system):
3190 * gdk/gdkwindow.c (gdk_window_init):
3191 * gtk/gtkstyle.c (gtk_style_new):
3192 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
3193 * gdk/gdkpixmap.c (gdk_pixmap_init):
3194 * gtk/gtkrc.c (gtk_rc_style_new):
3195 use g_object_new() instead of g_type_create_instance() which
3196 is a private function for fundamental type implementations.
3198 Thu Jul 6 16:12:14 2000 Owen Taylor <otaylor@redhat.com>
3200 * configure.in: Add check for db2html
3202 Thu Jul 6 14:53:05 2000 Owen Taylor <otaylor@redhat.com>
3204 * gtk/gtktypeutils.c (gtk_type_init): Add a temporary
3205 hack to set glib_debug_objects based on gtk_debug_flags.
3207 Thu Jul 6 14:12:13 2000 Owen Taylor <otaylor@redhat.com>
3209 * INSTALL.in: Update the Prerequisites section.
3211 * Makefile.am demos/Makefile.am docs/Makefile.am
3212 docs/tutorial/Makefile.am gdk/x11/Makefile.am
3213 gdk/linux-fb/Makefile.am: Dist fixes
3215 Thu Jul 6 12:26:03 2000 Owen Taylor <otaylor@redhat.com>
3217 * NEWS: 10,000 foot view of 1.3.1 changes.
3219 Thu Jul 6 11:54:03 2000 Owen Taylor <otaylor@redhat.com>
3221 * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
3222 gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
3223 gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
3224 gdk/x11/gdkmain-x11.c:
3226 Patch from George Lebl to add a GdkGrabStatus enumeration to use
3227 as a return value of gdk_*_grab(). Previously, we just
3228 returned the X11 values directly.
3230 Thu Jul 6 11:27:44 2000 Owen Taylor <otaylor@redhat.com>
3232 * gdk/x11/Makefile.am: Patch from George Lebl to
3233 install all the headers in the right place.
3235 Tue Jul 4 13:13:01 BST 2000 Tony Gale <gale@gtk.org>
3237 * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
3238 initial conversion to DocBook.
3240 2000-07-04 Tor Lillqvist <tml@iki.fi>
3242 * README.win32: Improve a bit.
3244 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
3245 WM_SYSCHAR, and other changes to get handling of Alt+nnn or
3246 Alt+0nnn on the numpad (used to enter characters by numeric code
3247 from current DOS or ANSI codepage) working correctly, as in other
3250 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
3251 same argument validity tests as in X11 version.
3252 (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
3254 * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
3255 definitions in case missing from headers.
3257 * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
3258 destroy the window-specific cursor.
3259 (RegisterGdkClass): Use the global gdk_ProgInstance instead of
3260 calling GetModuleHandle(NULL).
3261 (gdk_window_set_cursor): Reworked to always copy the passed cursor
3262 with CopyCursor before setting it as the window-specific
3263 cursor. It is OK for the caller to destroy the GdkCursor (and thus
3264 also its Windows cursor) after calling this function. Destroy any
3265 previous window-specific cursor.
3267 Mon Jul 3 17:54:49 2000 Owen Taylor <otaylor@redhat.com>
3269 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
3270 font charset is iso8859-1, not iso-8859-1.
3272 Mon Jul 3 17:08:14 2000 Owen Taylor <otaylor@redhat.com>
3274 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
3275 Use g_get_charset() instead of g_get_codeset().
3277 * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h:
3278 Comment out some strdup'ing functions to keep timj
3279 happy until we finish fighting this out.
3281 Mon Jul 3 14:24:16 2000 Owen Taylor <otaylor@redhat.com>
3283 * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
3286 * gtk/gtktable.c (gtk_table_attach): Fix missed merge
3287 from 1.2 for parent/child states.
3289 * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
3292 * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
3293 event structures, replace with a generic axes field. Replace
3294 deviceid/sourec with GdkDevice *device.
3296 * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
3297 to extract particular axis use value from event. (Also
3298 can be used for normal X/Y.)
3300 * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
3301 allow for arbitrary number of axes, namespace everything
3302 as gdk_device_*. Replace guint32 deviceid with GdkDevice *
3305 * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}:
3306 Get rid of the gdk_input_vtable setup if favor of simply
3307 defining the functions in gdkinput-none/gxi/xfree.c in
3308 a similar fashion to the way that the port structure is
3311 * gtk/gtkdnd.c: Fix fields of synthesized button press event
3312 for new event structures.
3314 * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
3315 new device interfaces.
3317 Sun Jul 2 18:19:50 2000 Owen Taylor <otaylor@redhat.com>
3319 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
3320 set the initial text.
3322 * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
3323 gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
3324 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
3325 gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
3327 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
3328 pango_layout_set_font_description to simplify.
3330 Sun Jul 2 17:43:41 2000 Owen Taylor <otaylor@redhat.com>
3332 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
3333 pango_layout_set_font_description to simplify.
3335 Sun Jul 2 17:06:40 2000 Owen Taylor <otaylor@redhat.com>
3337 * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
3338 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
3339 pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
3341 * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
3342 PANGO_PIXELS() macro.
3344 Sun Jul 2 15:24:41 2000 Owen Taylor <otaylor@redhat.com>
3346 * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
3347 that returns a PangoContext owned by the widget and updated to
3348 match future changes in the widget. Also, make
3349 gtk_widget_create_pango_layout() use this context. If we ever
3350 add a ::changed signal to PangoContext, this will make things
3351 much more convenient.
3353 * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
3354 in the appropriate places instead of destroying the layouts and
3357 * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
3358 in a few strategic places.
3360 Sun Jul 2 14:37:58 2000 Owen Taylor <otaylor@redhat.com>
3362 * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call
3363 gtk_widget_size_request() on reparented child, if one. Otherwise,
3364 queue_resize() on the child never results in it getting size-requested
3367 * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
3368 in option menus, so that (with luck) people won't copy it into
3369 their apps in the future.
3371 * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
3372 to gtk_option_menu_calc_size. This isn't perfect, but should fix
3373 a lot of problems with changing the size of the menu's menu
3374 items after adding it to the option menu.
3376 * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
3378 * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
3379 the text direction for a widget changes.
3381 * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
3382 ::direction_changed to get rid of various hacks.
3384 Sun Jul 2 13:19:12 2000 Owen Taylor <otaylor@redhat.com>
3386 * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
3389 Sun Jul 2 13:06:26 2000 Owen Taylor <otaylor@redhat.com>
3391 * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
3392 flag to the structure. Do not call XFreePixmap on pixmaps created
3393 by gdk_pixmap_foreign_new().
3395 Sun Jul 2 12:45:50 2000 Owen Taylor <otaylor@redhat.com>
3397 * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
3398 value using GdkRGB functionality given GdkColormap and GdkColor.
3399 (name not final, waiting for inspiration.)
3401 * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
3402 set the foreground/background of a GC using the GC's colormap
3403 and GdkRGB. (name not final, waiting for inspiration.)
3405 * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
3406 gdk_rgb_get_cmap(), put #define in gdkcompat.h.
3408 * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
3409 gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
3410 purely a function of the corresponding colormap. Make
3411 gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
3413 * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
3414 gdk_pixbuf_*create_from_xpm_* in terms of
3415 gdk_pixbuf_new_from_xpm_data(), move into platform independent
3418 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
3419 advantage of the new draw_rgb_32_image_dithalign.
3421 * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
3423 * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
3426 * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
3428 * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
3429 which we initialize from the drawable when the GC is created,
3430 if the drawable has a colormap.
3432 * gdk/x11/gdkgc-x11.c: include string.h for memset.
3434 * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
3436 * gtk/gtklayout.[ch]: Remove unsed configure serial member.
3438 Sat Jul 1 16:28:32 2000 Owen Taylor <otaylor@redhat.com>
3440 * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
3441 actually returning expose events, make sure to set
3442 the count field properly.
3444 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
3445 accidentally reintroced bug which always cleared
3446 the graphics_exposures value.
3448 Wed Jun 28 18:03:09 BST 2000 Tony Gale <gale@gtk.org>
3450 * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
3452 Wed Jun 28 17:49:05 BST 2000 Tony Gale <gale@gtk.org>
3454 * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
3456 Wed Jun 28 13:31:55 BST 2000 Tony Gale <gale@gtk.org>
3458 * docs/faq/gtk-faq.sgml: Start of Section 6.
3460 Mon Jun 26 19:37:04 2000 Owen Taylor <otaylor@redhat.com>
3462 * configure.in: Put 1.3.1 in warning message, not 1.3.0.
3464 (Fixes problem with drawing childless frames. Pointed out
3465 by and a first patch from Anders)
3467 * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
3468 compute a child_allocation, even if we don't have a child.
3470 * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
3471 Always chain to the parent's impl, even if we don't have a child.
3473 Mon Jun 26 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
3475 * gdk/gdkrgb.c: If possible, create only a single shm segment and
3476 use multiple parts of it instead of creating a bunch of separate
3477 segments, since the maximum number of segments per system is not
3478 large. (This might be worth backporting to GTK+-1.2.x if we make a
3481 * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
3482 structure in preparation for per-colormap GdkRGB.
3484 * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
3485 to False when we get EINVAL from shmget so that the caller of
3486 gdk_image_new can retry with a smaller segment size.
3488 Mon Jun 26 13:01:16 BST 2000 Tony Gale <gale@gtk.org>
3490 * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
3492 Fri Jun 23 17:54:23 2000 Tim Janik <timj@gtk.org>
3494 * configure.in: make the current version number 1.3.1 (binary age 0,
3497 * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
3498 gtkcompat.h is all we want.
3500 * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
3501 GLib primitive types. fixed g_type_register_fundamental() argument
3504 * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
3507 * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
3508 object code cleanup, comment trigraph fixes, etc...
3510 2000-06-23 Havoc Pennington <hp@redhat.com>
3512 * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark
3513 instead of making up a bogus name for first_para_mark
3515 * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow
3518 Thu Jun 22 17:43:51 BST 2000 Tony Gale <gale@gtk.org>
3520 * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
3522 2000-06-21 Havoc Pennington <hp@pobox.com>
3524 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
3525 we didn't check window->bg_pixmap != GDK_NO_BG.
3527 * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
3530 Thu Jun 22 14:02:19 BST 2000 Tony Gale <gale@gtk.org>
3532 * docs/faq/gtk-faq.sgm: Move file to here.
3533 TODO: Update Makfile.am
3535 Thu Jun 22 13:41:09 BST 2000 Tony Gale <gale@gtk.org>
3537 * docs/gtk-faq.sgm: Add Section 2
3539 Thu Jun 22 08:43:45 BST 2000 Tony Gale <gale@gtk.org>
3541 * docs/gtk-faq.sgm: New file. Start of DocBook
3544 Wed Jun 21 23:04:17 2000 Owen Taylor <otaylor@redhat.com>
3546 * configure.in (GDK_PIXBUF_MAJOR): Define version
3547 numbers for GDK_PIXBUF_*, as they get substituted
3548 into a header file. Need to consider versioning
3549 for gdk-pixbuf more carefully later.
3551 2000-06-21 Raja R Harinath <harinath@cs.umn.edu>
3553 Work with srcdir != builddir.
3554 * demos/testanimation.c: Don't include "gdk-pixbuf.h". Use
3555 <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
3556 * demos/testpixbuf.c: Likewise.
3557 * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
3558 * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h". Use
3560 * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h". Don't include
3562 * demos/Makefile.am (INCLUDES): Remove unneeded directories.
3564 Wed Jun 21 19:45:02 2000 Owen Taylor <otaylor@redhat.com>
3566 * TODO.xml: Change 1.4 version numbers to 2.0.
3568 Wed Jun 21 19:29:08 2000 Owen Taylor <otaylor@redhat.com>
3570 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
3571 fixups to GTK+ standard.
3573 Wed Jun 21 16:38:13 2000 Owen Taylor <otaylor@redhat.com>
3575 * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
3578 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
3581 * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
3582 gdk-pixbuf with GDK dependencies moved into GDK.
3584 * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
3585 move gdk-pixbuf-loader here until GObject has signals.
3587 * demos/: New directory of demos. Move demos from
3590 * demos/pixbuf-init.c: Small bit of code to check for
3591 loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
3592 set GDK_PIXBUF_MODULEDIR appropriately.
3594 * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
3595 define which no longer makes sense.
3597 2000-06-21 Havoc Pennington <hp@redhat.com>
3599 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
3600 gtk_get_default_language
3602 * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language):
3603 new function to get the default language
3605 * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c:
3606 s/gtk_text_view_style_values/gtk_text_style_values/
3608 * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
3609 Add a "language" field to tags.
3611 (gtk_text_tag_set_arg): Fix bug in setting
3612 "bg_full_height_set" tag.
3614 2000-06-21 Havoc Pennington <hp@redhat.com>
3616 * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
3619 * gtk/gtktexttypes.c: Remove UTF functions, use glib
3620 stuff instead when possible.
3622 * gtk/gtktexttypes.h: Delete some unused constants
3624 * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
3625 testtextbuffer.c: use glib instead of custom unicode routines
3627 Wed Jun 21 12:50:58 2000 Owen Taylor <otaylor@redhat.com>
3629 * docs/es/: Removed mistakenly added generated sgml
3631 * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
3632 Remove outdated info files.
3634 * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
3635 Moved tutorial files into subdir
3637 * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
3640 * docs/man/gtk_button.pod: Remove. (contents will be
3641 integrated into gtk-reference button page.)
3643 * configure.in docs/Makefile.am docs/tutorial/Makefile.am
3644 docs/faq/Makefile.am: Adjust for new organization
3646 2000-06-21 Christopher Blizzard <blizzard@redhat.com>
3648 * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
3649 not $(MKINSTALLDIRS)
3651 Wed Jun 21 12:24:28 2000 Owen Taylor <otaylor@redhat.com>
3653 * gtk/testgtk.c (create_text): Finish the job Elliot started
3654 of removing font setting test for text widget. (Since text widget
3655 and GdkFont are not deprecated, and cause portability problems.)
3657 Wed Jun 21 11:41:43 2000 Owen Taylor <otaylor@redhat.com>
3659 * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
3660 gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
3661 Remove use of libunicode in favor of new GLib functions.
3663 * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
3664 nano-x, framebuffer. The X11 include is just a hack until we get
3665 the necessary functions in gdkcolor.h, so there is no reason to
3666 add other includes of platforms.
3668 * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert
3669 window bigger than the screen change.
3671 * gtk/testgtk.c: Revert some random changes from Elliot
3672 that had no particular point and were causing testgtkrc
3673 not to function correctly.
3675 * gdk/gdkregion-generic.h: Revert change from Elliot. Just
3676 because GdkSegment and GdkRegionBox have the same fields,
3677 it doesn't mean that 'typedef GdkSegment GdkRegionBox'
3678 results in clearer code.
3680 * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
3681 gdk_input_translate_coordinates): Fix missed GdkObjectification
3683 2000-06-18 Elliot Lee <sopwith@redhat.com>
3685 * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
3686 * gtk/gtk{plug,socket}.h: Missed commits from previous.
3688 2000-06-20 Havoc Pennington <hp@redhat.com>
3690 * modules/linux-fb/Makefile.am: Make this compile
3691 without framebuffer enabled
3693 * gdk/linux-fb/Makefile.am: Add conditional to not build
3694 framebuffer unless specified in configure
3696 * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
3697 the size of the target instead of source if -1 was passed for
3700 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
3701 width/height confusion.
3703 2000-06-19 Havoc Pennington <hp@redhat.com>
3705 * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
3706 GDK_DRAWABLE_XID. In the future, we probably want to make it
3707 faster with G_DISABLE_CHECKS turned on.
3709 2000-06-14 Havoc Pennington <hp@redhat.com>
3711 * gdk/Makefile.am: add gdkpixmap.c
3713 * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
3714 s/gdk_image_init/_gdk_windowing_image_init
3716 * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
3719 * gdk/gdkcolor.h: make GdkColormap a GObject subclass
3721 * gdk/gdkcompat.h: remove GdkWindowType compat, since
3722 GdkWindowType is now non-deprecated;
3723 change gdk_window_get_type() compat to be
3724 gdk_window_get_window_type().
3726 * gdk/gdkdnd.h: make GdkDragContext a GObject.
3728 * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
3729 virtual GObject. Make all functions call into the vtable.
3730 Move gdk_image_put() guts in here. Remove GdkDrawableType
3731 and gdk_drawable_get_type(), these are now GdkWindow-specific.
3732 draw_image, get_depth, get_size, set_colormap, get_colormap,
3733 get_visual added to the vtable.
3735 * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
3736 GObject. Virtualize everything.
3737 (gdk_gc_new_with_values): remove check for destroyed window,
3738 because now GdkWindow::create_gc will check this.
3739 (gdk_gc_set_values): New function to set GC values, this
3740 was already implemented but wasn't in the header
3742 * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
3744 * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
3745 _gdk_window_draw_image(), remove _gdk_windowing_window_class,
3746 remove _gdk_window_class; add _gdk_window_impl_get_type() and
3747 _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
3748 _gdk_windowing_window_init, rename gdk_image_init to
3749 _gdk_windowing_image_init.
3751 * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
3752 (gdk_draw_layout): Remove check for destroyed window,
3753 because all the drawable methods already check it.
3755 * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
3756 Add gdkpixmap.c which contains implementation of GdkDrawable
3757 virtual table (by chaining to a platform-specific implementation
3760 * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
3761 GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
3762 GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
3763 GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
3766 * gdk/gdktypes.h: #include <glib-object.h>
3768 * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
3769 Move most functionality to platform-specific implementation
3770 object. GdkWindow itself now handles the backing store, then
3771 chains to the platform-specific implementation.
3772 (gdk_window_get_window_type): return GdkWindowType of the window.
3773 (gdk_window_peek_children): New routine, returns the children of
3775 (gdk_window_get_children): Was in X11-specific code and did
3776 XQueryTree. Changed to simply return a copy of window->children;
3777 so it can go in cross-platform code.
3779 * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
3781 * gdk/x11/gdkcolor-x11.c: implement X-specific parts of
3782 GdkColormap; just changed to use the new private data instead
3783 of casting to GdkColormapPrivate.
3785 * gdk/x11/gdkcursor-x11.c: added a couple typechecks to
3788 * gdk/x11/gdkdnd-x11.c: Change the way we access private fields
3789 (private data member in the GObject).
3790 (xdnd_manager_source_filter): Function had broken
3791 error handling, fix it (use gdk_error_trap_push).
3793 * gdk/x11/gdkdrawable-x11.c: This file now implements
3794 a base class for GdkWindowImplX11/GdkPixmapImplX11. This
3795 base class is purely for the convenience of the X port,
3796 and not part of the interface to cross-platform GDK.
3798 * gdk/x11/gdkevents-x11.c: Reflect various renamings.
3800 * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
3801 specific to X, and returned by the create_gc virtual method
3802 of GdkDrawableImplX11.
3803 (gdk_x11_gc_set_dashes): Change this to take an array of gint8
3804 rather than gchar, this was also changed in the GdkGC vtable.
3805 (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
3806 mask is 0, return immediately, instead of checking every flag.
3807 This is faster, and keeps us from segfaulting if values is NULL
3808 and the mask contains some nonzero flags.
3810 * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
3813 * gdk/x11/gdkglobals-x11.c: change type of grab window, since
3814 GdkWindowPrivate is gone.
3816 * gdk/x11/gdkim-x11.c: rename things that got renamed.
3818 * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
3819 remove the image_put stuff that got transferred to GdkDrawable.
3821 * gdk/x11/gdkinput.c: renamings
3823 * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
3825 * gdk/x11/gdkpixmap-x11.c: GObject conversion
3827 * gdk/x11/gdkprivate-x11.h: indentation fixes
3829 * gdk/x11/gdkproperty-x11.c: renamings
3831 * gdk/x11/gdkselection-x11.c: renamings
3833 * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
3834 implements the platform-specific "impl" object.
3835 Moved gdk_window_get_children to gdk/gdkwindow.c
3837 * gdk/x11/gdkx.h: Remove all the private structs and private datas
3838 that no longer exist. Add declaration of GdkGCX11 object here.
3839 Fix all the macros to still work.
3841 * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
3842 GdkDragContext from the boxed types since they are now GObjects.
3844 * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
3845 moved xthickness/ythickness into the instance. GtkStyleClass
3846 functions are now in the standard vtable for GtkStyle, so you have
3847 to create a GObject subclass to write a theme engine.
3848 (gtk_style_copy): fixed a leaked PangoFontDescription
3849 (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
3850 can be the standard GObject function.
3853 s/style->klass->[xy]thickness/style->[xy]thickness
3854 s/pango_layout_unref/g_object_unref/
3856 * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
3858 * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
3859 accessing GDK internals.
3861 * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
3862 accessing GDK internals.
3864 2000-06-18 Elliot Lee <sopwith@redhat.com>
3866 * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
3868 * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
3869 problem by calculating event position relative to the trough
3870 rather than the slider.
3871 * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
3873 * gdk/gdkgc.h: Add GDK_NOR.
3875 * configure.in, Makefile.am: Add modules top level dir
3876 * configure.in: Only use pangox library if building x11 target.
3877 * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
3879 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
3881 * gtk/gtkcolorsel.c: Change private class member to be named
3882 private_data throughout the file.
3884 * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
3885 private_data to avoid clashing with keyword.
3887 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
3889 * gdk/gdkdnd.h: Add comment to remove warning.
3891 Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
3893 * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
3894 Byelorussian language; changed the Makefile and file names
3897 Mon Jun 12 16:58:40 2000 Owen Taylor <otaylor@redhat.com>
3899 * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
3900 rather than gdk_window_hide; this makes things work
3901 correctly if the window is programmatically hidden while
3904 Sun Jun 11 12:46:19 2000 Owen Taylor <otaylor@redhat.com>
3906 * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
3907 cut and paste typo where wrong pixmap was being
3908 unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
3910 Sun Jun 11 10:22:36 2000 Owen Taylor <otaylor@redhat.com>
3912 * gtk/gtkselection.c (gtk_selection_bytes_per_item):
3913 Add helper function to compute format / bytes
3914 relationship. Use in a couple places to fix up
3915 errors which assume 8 * format.
3917 * gtk/gtkselection.c (gtk_selection_request): Use 32
3918 rather than 8 * sizeof (GdkAtom), to work correctly
3921 Thu Jun 8 21:54:51 2000 Christopher Blizzard <blizzard@redhat.com>
3923 * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
3925 (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
3928 * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
3929 checking macros return NULL since the function has a return value.
3931 Wed Jun 7 15:44:42 2000 Owen Taylor <otaylor@redhat.com>
3933 * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
3934 GTK+ from building at all.
3936 * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
3938 Mon Jun 5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
3940 * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
3941 gtk/Makefile.am: make it possible to configure gtk for different
3942 targets on the same platform. The library name is now
3943 libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
3944 flag. Only the x11 target compiles right now.
3945 * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
3946 gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
3947 * gdk/nanox/gdk*generic*: delete generic region code.
3948 * gdk/linux-fb/gdk*generic*: delete generic region code.
3949 * README.nanox: update information.
3951 Tue Jun 6 10:53:59 2000 Owen Taylor <otaylor@redhat.com>
3953 * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
3954 prepend not append. (Pointed out by Brett Hall.)
3956 Tue Jun 6 01:59:57 2000 Owen Taylor <otaylor@redhat.com>
3958 * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
3960 Mon Jun 5 16:00:09 2000 Owen Taylor <otaylor@redhat.com>
3962 * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
3963 need this later, and this makes sure that the atexit for
3964 glib gets called after that for GDK, so atexits are
3965 properly ordered for object leak checking.
3967 * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
3969 * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call
3970 pango_x_shutdown_display()
3972 * gtk/simple.c (main): Close window on destroy.
3974 Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
3976 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
3977 to treat initial creation different from setting with
3978 regards to the graphics-exposures parameter, so add a parameter
3979 indicating whether this is initial or not.
3981 Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
3983 * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
3984 to sort of work by adding an extra return_exposes arg
3985 to gdk_event_translate() - it might be better to simply
3986 deprecate the function altogether and force people to rewrite
3987 without it. gdk_window_scroll() handles most of it, and where
3988 gdk_window_scroll() doesn't work, simply redrawing more does.
3990 * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
3993 * gtk-config.in: Include PANGO_CFLAGS/LIBS.
3995 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
3996 bunch of pretty much useless /* Print debugging info */ comments
3997 which had drifted away from the code they were commenting.
3999 2000-06-02 Havoc Pennington <hp@pobox.com>
4001 * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
4002 is in working order.
4004 * gtk/testtext.c: Change to reflect anonymous mark API
4006 * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
4008 * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
4009 field, which was unused.
4011 * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
4014 * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*
4016 * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
4017 flag on the insertion point and selection bound
4019 Throughout, use GtkTextMark instead of GtkTextLineSegment, and
4020 make mark-manipulation functions take a GtkTextMark* instead of a
4023 * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to
4024 GtkTextMarkBody; will be used to detect attempts to delete
4025 the permanent marks (insert and selection bound)
4027 * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer
4029 Fri Jun 2 12:56:01 2000 Owen Taylor <otaylor@redhat.com>
4031 * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
4034 * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event):
4035 Honor DOUBLE_BUFFRED_FLAG
4037 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
4038 function to set the DOUBLE_BUFFERED flag.
4040 * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
4041 or not exposes done on the widget should be double-buffered.
4043 * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
4044 to be what would be expected. (Fixes problem with a
4045 g_return_if_fail() validating a TextDirection enumeration)
4047 Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
4049 * gtk/gtkwidget.c: Remove all references to
4050 offscreen flag which was no longer used.
4052 * gtk/gtkprivate.h (enum): Remove unused flags and compress.
4054 * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
4055 for non-null label_widget->parent.
4057 * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
4058 which no longer was used.
4060 * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
4062 * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
4065 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
4066 check for destroyed windows.
4068 Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
4070 * gtk/gtkimmulticontext.c: Add a finalize method and unref
4071 the slave context there.
4073 * gtk/gtkinvisible.[ch]: Make reference counting behavior
4074 identical to GtkWindow.
4076 Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
4078 * Makefile.am gdk/gdkpango.c: Copy the layout render function from
4079 pangox to here, so we can write them independent of rendering
4080 system, using GDK primitives.
4082 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
4083 gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
4084 since we have a rendering-system independent implementation in
4085 terms of draw_glyphs().
4087 * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
4088 function to render a single line.
4090 * gdk/x11/gdkpango.c: Move the guts of this file mostly
4091 into ../gdkpango.c, which simplifies things, since we
4092 don't have to deal with raw X gc's.
4094 Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
4096 * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
4097 get the logical attributes for a given GtkTextLine.
4099 Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
4101 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
4102 g_locale_get_codeset() to g_get_codeset() change.
4104 Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
4106 * gtk/testcalendar.c (calendar_font_selection_ok): Use font
4109 * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
4112 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
4113 redoing (vastly simplifying) for Pango. Still needs quite
4114 a bit of work. (Size selection is currently poor. List of
4115 predefined sizes is not a good idea, since all of these
4116 sizes won't necessarily be distinct.)
4118 Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
4120 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
4121 CODESET results for LANG=C.
4123 Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
4125 * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
4126 which takes a stringized pango font description;
4127 ignore the older 'font' and 'fontset' declarations.
4129 * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
4130 field with a GdkFont derived via gdk_font_from_description(),
4131 for compatibility. (Should we just remove it entirely?
4132 Probably too much compatibility breakage, but people
4133 should be migrating to the new Pango stuff as quickly
4136 Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
4138 * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
4140 Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
4142 * gtk/gtkcalender.c: Roughly pango-ized. Really needs
4143 redoing; there are some bugs in size allocation right
4144 now, the semi-existant distinction between header / day
4145 fonts was removed, but, with Pango, could actually
4146 be made functional in a nice way.
4148 * gtk/testcalender: Move calender from examples into this
4149 directory as a test program. (We really need to restrcture
4150 testgtk into a whole directory full of tests for every
4151 widget or functionality group, separated into multiple .c
4154 Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
4156 * gtk/testgtk.c (file_exists): Fix stupid typo that
4157 was keeping RC file from being loaded.
4159 * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
4162 Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
4164 * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
4165 Add function to load a GdkFont from a PangoFontDescription.
4167 2000-05-29 Tor Lillqvist <tml@iki.fi>
4169 * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
4170 variable should be of type GdkEventPrivate.
4172 Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
4174 * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
4175 to have any widget for the label, use a GtkLabel widget
4176 to display the text. (Based partially on a patch from
4179 (Quite a bit of code reorganization - strip 90% of the
4180 guts out of gtkaspectframe and add a single virtual
4181 func to GtkFrameClass - compute_child_allocation.)
4183 Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
4185 * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
4186 (Removed clist->row_center_offset field because caching
4187 it wasn't saving time or code, added private function
4188 _gtk_clist_create_cell_layout()).
4190 Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
4192 * gtk/gtkaccellabel.c: Pangoized.
4194 * gtk/[hv]ruler.c: Pangoized
4196 Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
4198 * gtk/gtkfilesel.c (gtk_file_selection_init):
4199 Use gtk_clist_set_column_auto_resize() to remove need
4200 need for manual column width computations.
4202 Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
4204 * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
4205 ensuring Pango correctness, and considerably simplifying the
4208 * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
4210 * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
4211 getting of numbers of lines.
4213 * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
4214 to the actual requested width of the lable, not to the wrap
4217 * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
4219 * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
4220 gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
4222 * gtk/gtktextview.c: Fix structure inheritance.
4224 * gtk/gtkprogressbar.c: Pangoize.
4226 Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
4228 * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
4231 * gtk/gtktextlayout.c (find_display_line_above): Fixed
4232 bug with computing line tops.
4234 * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
4236 Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
4238 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
4239 and y_offset coordinates to do what we need now. (The offset between
4240 buffer and layout coordinates has been reintroduced, but is a
4241 bit different than before.)
4243 * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
4244 handle the adjustments ourselves, and scroll as necessary using
4245 the new gdk_window_scroll().
4247 The advantage of this is that when we are incrementally revalidating,
4248 we are essentially rearranging things around the visible portion
4249 of the screen. With the old setup, the visible portion of the
4250 screen was moved around in the layout, so scrolling and redrawing
4251 to track that caused jumping of the display. Since we now
4252 control the scrolling ourselves, we can suppress this and
4253 only redraw when things actually change.
4255 Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
4257 * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
4258 the region not just redisplay it after-all, since we store the
4259 cursors in the LineDisplay. (Ugly interactions here between
4260 GtkLayout and GtkTextBTree here.)
4262 * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
4264 Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
4266 * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
4267 Added function to scroll contents of a window while keeping the
4268 window constant. Works by XCopyArea or guffaw-scrolling depending
4269 on the details of how the window is set up. (guffaw-scrolling
4270 still needs to be filled in.)
4272 Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
4274 * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
4275 move the debugging that was tied to a global variable
4278 * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
4280 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
4281 validated flag, in line data instead of setting height/width to
4282 -1. This allows us to perform operations with partially invalid
4283 buffer (using the old size for invalid lines) and thus to do
4284 incremental vaidation. Keep height/width aggregates up to date
4285 when deleting text and rebalancing the tree.
4287 * gtk/gtktextbtree.[ch]: Add functions validate a line
4288 (gtk_text_btree_validate_line), and to validate up
4289 to a number of pixels (gtk_text_btree_validate).
4291 * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
4292 that indicates that something is changed and a revalidation
4293 pass is needed. Change ::need_repaint to ::changed, and
4294 make it take old and new yranges instead of a rectangle.
4296 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
4297 the line_data_destroy() function from
4298 gtk_text_btree_add_view() to a virtual function in
4301 * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
4302 since we are handling partial repaints in a different fashion
4305 * gtk/gtktextbtree.[ch]: Only repaint the changed portion
4306 of the selection instead of queueing a repaint on the
4309 * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
4310 get_selection_bounds() down to btree, make the function
4311 in buffer a wrapper around the btree function.
4313 * gtk/gtktextlayout.[ch]: Add functions to check if the
4314 layout is valid and to recompute either a range of pixels
4315 aroudn a line or a certain total number of pixels.
4317 * gtk/gtktextlayout.[ch]: Cache a single line display;
4318 now that we only redraw the needed portions, the hit rate
4319 for this cache is quite high.
4321 * gtk/gtktextview.[ch]: Keep track of the first paragraph
4322 on the screen so that when re-laying-out the buffer, we can
4323 keep the same place. This requires connecting to ::value_changed
4326 * gtk/gtktextview.[ch]: Add idle functions to revalidate
4327 the buffer after we receive an ::invalidated signal.
4329 Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
4331 * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
4332 to max of allocation and layout size, not just to the
4335 * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
4336 Invalidate window so it gets redrawn properly.
4338 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
4339 to mean the entire window.
4341 * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
4344 Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
4346 * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
4347 to get the name of a mark.
4349 * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
4350 to find the paragraph from a y position.
4352 Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
4354 * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
4355 nodes have width/height >= 0, not > 0.
4357 Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
4359 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
4360 Add a size_only flag, so when we only need the size, we don't create
4361 useless appearance attributes.
4363 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
4364 duplicate setting of font description.
4366 * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
4368 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
4370 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
4371 EXTRA_DIST. It does not work well when the file that
4372 everything depends on is not in the tarball.
4374 Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
4376 * gtk/testgtk.c: Some hacks and fixes so that it basically
4377 works when not sitting in the GTK+ build tree.
4379 2000-05-03 Havoc Pennington <hp@redhat.com>
4381 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
4382 Properly determine the ordering of the tag root and the current
4383 line within the tree. Previous algorithm only worked if the tag
4384 root's immediate parent was the common root of both the current
4385 line and the tag root.
4387 Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
4389 * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
4392 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
4393 the widget text directional dynamically.
4395 * gtk/gtktextview.[ch]: Added functions to get and set default
4398 Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
4400 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
4401 in cursor location computation.
4403 Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
4405 * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
4406 vadjusment values properly when layout gets smaller.
4408 * gtk/gtktextview.c (need_repaint_handler): Areas being
4409 passed in are far completely inaccurate, and sometimes
4410 too small, so, for now, just queue a redraw on the
4411 whole visible region.
4413 2000-04-25 Havoc Pennington <hp@redhat.com>
4415 * gtk/gtktextbtree.c (summary_destroy): new function to
4416 destroy tag summary nodes
4417 (gtk_text_line_next_could_contain_tag): this function was
4418 totally broken if the line passed in wasn't below the tag
4420 (gtk_text_btree_first_could_contain_tag): In the tag == NULL
4421 "wildcard" case, we have to do a linear scan. Blah.
4422 (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
4423 we have to do the linear scan
4424 (tag_removed_cb): When a tag is removed from the tag table,
4425 remove the GtkTextTagInfo node from the btree.
4426 (gtk_text_btree_spew): Implement the spew function, for
4427 our debugging pleasure.
4429 Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
4431 * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
4432 a problem with referring to the wrong buffer.
4434 * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
4436 * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
4437 font description to gtk_style_new() - otherwise things
4438 don't work without a .gtkrc file.
4440 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
4441 tags table if we create it ourself, too.
4443 * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
4444 it was conflicting with XKB modifiers.
4446 * gtk/gtktextview.[ch]: Add simple support for
4449 Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
4451 * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
4452 with deletion from last commit.
4454 Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
4456 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
4457 in the context from the current locale.
4459 * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
4460 context, not hardcoded value.
4462 * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
4465 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
4467 * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
4468 attributes - that doesn't handle partial-glyph selection
4469 properly. Instead use new pango_layout_line_get_x_ranges()
4470 functionality to draw the selection.
4472 * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
4473 now properly handles out-of-range coordinates.
4475 * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
4477 * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
4480 * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
4481 for paragraphs opposite to the base direction of the widget.
4483 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
4485 * gtk/gtktextlayout.c: Don't split segments on marks, since that
4486 causes Arabic words to reshape as you cursor through.
4488 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
4489 cursor position when moving vertically with the arrow keys and
4490 scrolling with page-up/page-down. (Arrow keys save only the X,
4491 scrolling saves both X and Y.)
4493 This means you can line-up / line-down or page-up / page-down
4494 without losing your place, and also that moving vertically
4495 with the cursor keys keeps the same X position, not the same
4498 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
4499 arrow keys move by display lines, not paragraphs.
4501 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
4503 * gtk/gtklayout.c: Make sure that the bin window is at least
4504 as big as the allocation. (Should we also make sure that the
4505 bin window is big enough to completely cover widget->window?)
4507 * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
4508 function to get the onscreen rectangle.
4510 * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
4511 for offsets in window coordinates.
4513 Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
4515 * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
4518 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
4519 from the widget direction.
4521 * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
4522 Add a "direction" attribute.
4524 * gtk/gtktextview.c: global s/tkxt/text_view/.
4526 * gtk/testtext.c: Added long block of text in Arabic, to test out
4527 the direction attributes. (Some problems with the shaping system
4528 for arabic become obvious - like the fact the cursor splits words
4529 into unjoined pieces.)
4531 Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
4533 * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
4535 * gtk/gtktextlayout.c: Fix up alignment.
4537 * gtk/testtext.c: Add some tests for centering, wrapping.
4539 Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
4541 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
4542 Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
4543 If we wrote GTK+-specific layout-render function this could just replace
4544 the draw_layout() operation in the vtable.
4546 * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
4547 pango_layout_get_cursor_pos() and use that function.
4549 * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
4550 is a non-static symbol.
4552 * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
4553 with gtk_text_btree_find_line_by_y()
4555 * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
4556 renderer that handles GtkTextAppearance attributes.
4558 * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
4560 - Move the values in the style that don't affect geometry into a
4561 GtkTextAppearance structure.
4562 - Change underline to take a PangoUnderline and "font" a string
4563 representation of a font description
4564 - Add a "font_desc" attribute which takes a FontDescription structure.
4566 * gtk/gtktextlayout.[ch]:
4568 - Get rid of the display-line list per each line. Instead, we
4569 generate, on demand, a GtkTextLineDisplay structure which]
4570 contains a PangoLayout * and other necesary information
4571 (offsets, cursor locations) for displaying a paragraph.
4572 - Get rid of the code to wrap lines, create display chunks,
4573 etc. Instead, we just go through a paragraph and convert
4574 it into the necessary inputs to a PangoLayout.
4575 - Implement a new attribute type, GtkTextAttrAppearance. This
4576 holds a GtkTextAppearance, and is used to pass colors,
4577 stipple, etc, through from the layout to the display without
4578 having to use lots and lots of individual attributes.
4579 - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
4580 in terms of PangoLayout functions.
4582 * gtk/gtktextview.c:
4584 - Handle passing the necessary PangoContext to the layout
4585 - Some fixups in painting to deal with the automatic backing store
4586 and offsetting of GTK+-1.4
4587 - Add a style_set handler so that the default style reacts
4588 properly to theme changes.
4590 * gtk/gtktext?*.[ch]: Random code-style fixes.
4592 * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
4594 Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
4596 * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
4597 in original form preparatory to Pango-ization and gdkimcontext-ization.
4599 Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
4601 * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
4602 so that we can derive from gtkimcontext in language bindings properly.
4604 Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
4606 * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
4607 Add a compose table including (almost) all the compose combinations
4608 from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
4609 data in the XIM implementation.
4611 * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
4612 Moved functions to convert keyvalues from and to unicode here from
4613 the win32 port and made them public.
4615 Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
4617 * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
4619 Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
4621 * gtk/gtkimcontext.[ch]: Base class for new input context system
4623 * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
4624 the real input context implementation to be loaded from modules
4625 and switched on the fly.
4627 * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
4628 context that just does direct keysymbol => unicode translation.
4630 * gtk/gtkentry.[ch]: Start switching editing over to using
4631 GtkInputContext. (No handling of preedit yet.)
4633 Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
4635 * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
4636 many substitutions. (klass should not be subsituted.)
4638 Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
4640 * configure.in: Add checks for Pango
4642 * configure.in docs/Makefile.am: Add test for sgml2html
4643 and allow 'make dist' without building html, but print out
4644 warnings in that case. (For making snapshots)
4646 * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
4647 Add Pango libraries and C flags
4649 * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
4650 Add function (gdk_draw_layout) to draw a pango layout.
4652 * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
4653 for getting Pango contexts for GDK.
4655 * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
4657 * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
4660 * gtk/gtkentry.c: Hack in simple Hebrew input with direct
4661 keysym => unicode translations. More languages can be added
4662 here, but real input-method support is needed.
4664 * docs/Changes-1.4.txt: Added note about entry behavior.
4666 * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
4667 to set the reading direction for a widget and the global direction.
4668 Add test which allows toggling the global direction. Two private
4669 flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
4671 * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
4672 gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
4674 * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
4676 * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
4677 underlining now handled by Pango.
4679 * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
4680 to RCStyle and Style. (Having both this and the old font name and GdkFont
4683 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
4684 convenience functions for creating contexts and layouts for widgets.
4686 * gtk/testgtk.c: Enhance label tests with multilingual labels.
4688 2000-05-29 Jonathan Blandford <jrb@redhat.com>
4690 * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
4691 titles to be active, even if they aren't visible.
4692 (gtk_clist_column_titles_passive): Ditto.
4694 2000-05-21 Nils Barth <nils_barth@post.harvard.edu>
4698 * gtktypeutils.h: Spelling/grammar fixes in comments.
4700 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
4702 * gdk/nanox/*.h: add missing header files.
4704 Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
4706 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
4708 (gtk_drawing_area_size): queue a resize.
4710 Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
4712 * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
4713 the handlers, also invalidate them. bug nailed down by Karl Nelson
4714 <kenelson@ece.ucdavis.edu>.
4716 Fri May 19 06:49:23 2000 Tim Janik <timj@gtk.org>
4718 * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
4719 "(nil)" foundries, patch from Grigorios Magklis.
4721 * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
4722 on non-available fonts, based on a patch by Grigorios Magklis
4723 <maglis@cs.rochester.edu>.
4725 2000-05-18 Elliot Lee <sopwith@redhat.com>
4727 * gdk/x11/gdkregion-generic.c: If a region does not have any
4728 rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
4729 instead of GDK_OVERLAP_RECTANGLE_IN.
4731 2000-05-17 Jonathan Blandford <jrb@redhat.com>
4733 * gtk/gtklayout.c (gtk_layout_map): Remove references to
4734 OFFSCREEN, as it is no longer necessary.
4736 Wed May 17 10:52:12 2000 Owen Taylor <otaylor@redhat.com>
4738 * gtk/gtkcolorsel.c: Patch from David Santiago
4739 <mrcooger@cyberverse.com> to change things so that the
4740 indicator of the active palette entry is done independently,
4741 not via the focus, since it should always be visible.
4743 2000-05-17 Tor Lillqvist <tml@iki.fi>
4745 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
4746 refcount leaks as in the X11 backend.
4748 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
4751 * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
4752 backend. Add _gdk_windowing_window_destroy().
4754 * gtk/gtkcolorsel.c: Include correct backend-specific header.
4755 Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
4756 either, but these probably do exist on nanox?)
4758 * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
4759 which isn't necessarily defined by <math.h>.
4761 * gtk/gtkobject.c (gtk_object_init): Don't go up the class
4762 ancestry past GtkObject.
4764 * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
4767 * gtk/gtk.def: Update corresponding to recent changes.
4769 * gtk/makefile.{cygwin,msc}: Updates.
4771 Fri May 12 18:46:51 2000 Owen Taylor <otaylor@redhat.com>
4773 * docs/Changes-1.4.txt: A bit of editing.
4775 * gdk/gdkwindow.c (_gdk_window_clear_update_area)
4776 * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
4777 to clear the update area for the window, and clear it
4778 when hiding a window.
4780 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
4781 if window destroyed.
4783 * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
4785 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
4786 gdk_window_destroy() to the generic code, since there was a lot of
4787 window-system-independent logic it in. Add a function:
4789 _gdk_window_destroy()
4791 to the internal API to destroy a window without unreferencing it.
4794 _gdk_windowing_window_destroy()
4796 That does the windowing-system-dependent part of destroying
4799 Fri May 12 11:07:41 2000 Owen Taylor <otaylor@redhat.com>
4801 * gtk/testgtk.c: Fix various memory leaks of pixmaps.
4803 Fri May 12 11:06:10 2000 Owen Taylor <otaylor@redhat.com>
4805 * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
4806 Make gtk_widget_shape_combine_mask() keep a reference count on
4807 the pixmap since it keeps it around.
4809 Fri May 12 10:53:29 2000 Owen Taylor <otaylor@redhat.com>
4811 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
4814 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
4815 leak with event filters.
4817 Thu May 11 14:29:44 2000 Owen Taylor <otaylor@redhat.com>
4819 * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
4820 signal handlers with the right data arguments. (Fixes
4821 some warnings when a widget was repeatedly set as a drag
4824 * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
4825 window so we can avoid avoid setting the DND properties on the
4826 toplevel window repeatedly.
4828 2000-05-13 Tor Lillqvist <tml@iki.fi>
4830 * gdk/win32/gdkwin32.h: Define more message types missing from
4833 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
4834 call gdk_window_destroy_notify(). It was never called. This
4835 probably meant that the GdkWindow was never freed. Thanks Owen for
4838 * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
4839 window as destroyed before calling DestroyWindow(). DestroyWindow()
4840 causes a call to the window procedure (gdk_WindowProc), which
4841 calls gdk_event_translate(), which calls
4842 gdk_window_destroy_notify(), which gets confused unless the window
4843 is set as destroyed.
4845 * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
4846 this function to indicate it's win32 only. Put inside #ifdef
4849 * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
4850 debugging function. (gdk_event_translate:) Add a default branch
4851 that uses the above function to print debug messages with all
4852 Windows messages symbolically.
4854 * gdk/win32/gdkprivate-win32.h: Declare it, and
4855 gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
4857 Fri May 12 20:07:32 2000 Tim Janik <timj@gtk.org>
4859 * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
4862 Fri May 12 17:13:32 2000 Tim Janik <timj@gtk.org>
4864 * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
4866 * gtk/gtktext.c: made the adjustments no-construct args, simply
4867 provide default adjustments.
4868 (gtk_text_destroy): release adjustments.
4870 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
4871 adjustment argument non-construct.
4873 * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
4874 instead of in finalize.
4875 (gtk_progress_get_text_from_value):
4876 (gtk_progress_get_current_text):
4877 (gtk_progress_set_value):
4878 (gtk_progress_get_percentage_from_value):
4879 (gtk_progress_get_current_percentage):
4880 (gtk_progress_set_percentage):
4881 (gtk_progress_configure): ensure an adjustment is present.
4883 Thu May 11 01:24:08 2000 Tim Janik <timj@gtk.org>
4885 * gtk/gtkcolorsel.[hc]:
4886 * gtk/gtkcolorseldialog.[hc]:
4887 * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
4888 their parent implementation, use bit fields for boolean values, don't
4889 create unused widgets, usage of glib types, braces go on their own
4890 lines, function argument alignment, #include directives etc. etc. etc..
4892 * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
4894 Wed May 10 23:29:52 2000 Tim Janik <timj@gtk.org>
4896 * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
4898 * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
4901 * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
4903 (gtk_combo_destroy): don't keep a pointer to a destroyed window.
4905 * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
4906 to NULL when the toplevel is getting destroyed.
4907 (gtk_menu_set_tearoff_state): same here for the tearoff_window.
4909 (gtk_menu_init): store the information of whether we have to
4910 readd the initial child ref_count during destruction in a new
4911 GtkMenu field needs_destruction_ref_count.
4913 * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
4914 here, those reading: learn from my mistake! ;)
4915 in order for set_?adjustment to support a default adjustemnt if
4916 invoked with an adjustment pointer of NULL, the code read (pseudo):
4917 if (v->adjustment) unref (v->adjustment);
4918 if (!adjustment) adjustment = adjustment_new ();
4919 if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
4920 now imagine the first unref to actually free the old adjustment and
4921 adjustment_new() creating a new adjustment from the very same memory
4922 portion. here, the latter comparision will unintendedly fail, and
4923 all hell breaks loose.
4924 (gtk_viewport_set_hadjustment):
4925 (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
4926 after unreferencing it.
4928 * gtk/gtkcontainer.[hc]: removed toplevel registration
4929 functions: gtk_container_register_toplevel(),
4930 gtk_container_unregister_toplevel() and
4931 gtk_container_get_toplevels() which had wrong semantics
4932 anyways: it didn't reference and copy the list.
4934 * gtk/gtkwindow.c: we take over the container toplevel registration
4935 bussiness now. windows are registered across multiple destructions,
4936 untill they are finalized. the initial implicit reference count
4937 users are holding on windows is removed with the first destruction
4939 (gtk_window_init): ref & sink and set has_user_ref_count, got
4940 rid of gtk_container_register_toplevel() call. add window to
4942 (gtk_window_destroy): unref the window if has_user_ref_count
4943 is still set, got rid of call to
4944 gtk_container_unregister_toplevel().
4945 (gtk_window_finalize): remove window from toplevel list.
4946 (gtk_window_list_toplevels): new function to return a newly
4947 created list with referenced toplevels.
4948 (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
4950 * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
4951 adjustment a non-construct arg.
4952 * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
4953 * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
4954 * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
4956 * gtk/gtkrange.c: added some realized checks.
4957 (gtk_range_destroy): get rid of the h/v adjustments in the
4958 destroy handler instead of finalize. remove timer.
4959 (gtk_range_get_adjustment): demand create adjustment.
4961 * gtk/gtkviewport.c: made h/v adjustment non-construct args.
4962 we simply create them on demand now and get rid of them in
4963 the destroy handler.
4964 (gtk_viewport_destroy): get rid of the h/v adjustments in the
4965 destroy handler instead of finalize.
4966 (gtk_viewport_get_hadjustment):
4967 (gtk_viewport_get_vadjustment):
4968 (gtk_viewport_size_allocate): demand create h/v adjustment
4971 * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
4972 gtk_widget_real_destroy () functionality.
4973 (gtk_widget_real_destroy): reinitialize with a new style, instead
4974 of setting widget->style to NULL.
4976 Fri May 5 13:02:09 2000 Tim Janik <timj@gtk.org>
4978 * gtk/gtkcalendar.c:
4979 * gtk/gtkbutton.c: ported _get_type() implementation over to
4980 GType, either to preserve memchunks allocation facilities,
4981 or because Gtk+ 1.0 GtkTypeInfo was still being used.
4983 * gtk/gtkobject.[hc]: derive from GObject. ported various functions
4984 over. prepare for ::destroy to be emitted multiple times.
4985 removed reference tracer magic. chain into GObjectClass.shutdown()
4986 to emit ::destroy signal.
4988 * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
4991 * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
4998 * gtk/gtkargcollector.c:
4999 * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
5000 not being a fundamental anymore, and to work with the new
5001 type system (nuked fundamental type varargs clutter).
5003 * gtk/*.c: install finalize handlers in the GObjectClass
5004 part of the class structure.
5005 changed direct GTK_OBJECT()->klass accesses to
5007 changed direct object_class->type accesses to GTK_CLASS_TYPE().
5009 * gtktypeutils.[hc]: use the reserved fundamental ids provided by
5010 GType. made most of the GTK_*() type macros and Gtk* typedefs
5011 simple wrappers around macros and types provided by GType.
5012 most notably, a significant portion of the old API vanished:
5015 GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
5016 GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
5019 GTK_TYPE_C_CALLBACK,
5023 gtk_type_set_varargs_type(),
5024 gtk_type_get_varargs_type(),
5025 gtk_type_check_object_cast(),
5026 gtk_type_check_class_cast(),
5027 gtk_type_describe_tree(),
5028 gtk_type_describe_heritage(),
5030 gtk_type_children_types(),
5031 gtk_type_set_chunk_alloc(),
5032 gtk_type_register_enum(),
5033 gtk_type_register_flags(),
5034 gtk_type_parent_class().
5035 replacements, where available are described in ../docs/Changes-1.4.txt.
5036 implemented compatibility functions for the remaining API.
5038 * configure.in: depend on glib 1.3.1, use gobject module.
5040 Thu May 11 12:39:50 2000 Owen Taylor <otaylor@redhat.com>
5042 * TODO.xml: Various updates to current status.
5044 Wed May 10 20:25:04 2000 Owen Taylor <otaylor@redhat.com>
5046 * gtk.m4: Print out version when test succeeds.
5048 Wed May 10 16:38:17 2000 Owen Taylor <otaylor@redhat.com>
5050 * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
5051 gtk/gtkhsv.[ch]: Color selection dialog rewrite.
5053 (Original triangle color selector from Simon Budig
5054 <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
5055 from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
5056 Santiago <mrcooger@cyberverse.com>)
5058 * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
5059 out into a separate widget.
5061 * gtk/testgtk.c: Add some checkbuttons for toggling palette
5062 and opacity controls.
5064 Wed May 10 16:08:09 2000 Owen Taylor <otaylor@redhat.com>
5066 * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that
5067 snuck in prematurely.
5069 2000-05-07 Tor Lillqvist <tml@iki.fi>
5071 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
5072 had deleted a ! operator by mistake, which caused
5073 GDK_SELECTION_CLEAR events never to be generated, which caused
5074 only the first copy to the clipboard from an gtkeditable to
5075 actually cause a copy to the Windows clipboard.
5077 2000-05-06 Tor Lillqvist <tml@iki.fi>
5079 * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
5080 compilation, too. Current mingw gcc distributions include the
5081 necessary headers. Also the necessary IIDs are now in mingw
5082 headers/libraries, and own definitions unnecessary.
5084 More hacking on OLE2 DND, still doesn't work though, and thus
5087 * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
5090 Sat, 6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
5092 * gdk/nanox/*: nano-X port work in progress.
5093 * gdk/simple.c: simple test for Gdk.
5094 * README.nanox: notes about the port: read this first!
5095 * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
5098 Fri May 5 11:18:47 2000 Owen Taylor <otaylor@redhat.com>
5100 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
5101 gdk_window_clear() into common code, implement in terms of
5102 gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
5103 not redirected to the backing rectangle.
5105 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
5107 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
5108 EXTRA_DIST. It does not work well when the file that
5109 everything depends on is not in the tarball.
5111 Tue Apr 25 22:20:41 2000 Owen Taylor <otaylor@redhat.com>
5113 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
5114 with recursion where process_updates() is called from
5115 an expose handler. (GtkTextView is highly broken in
5116 doing this, but it should work, so it is a nice test
5119 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
5121 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
5122 handle the case where updates are queued during processing of
5125 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
5127 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
5128 window is on gdk_display - use that instead of segfaulting.
5130 Thu May 4 02:04:46 2000 Tim Janik <timj@gtk.org>
5132 * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
5133 broken and require an empty arg, give it to them.
5135 Fri Apr 28 19:34:32 2000 Tim Janik <timj@gtk.org>
5137 * gtk/gtklabel.h: indentation fixes.
5139 2000-05-02 Tor Lillqvist <tml@iki.fi>
5141 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
5142 draw too narrow or too low arcs, they seem to fail, at least with
5143 some display drivers.
5145 * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
5147 Large changes to the Win32 backend, partially made necessary by
5148 the changes to the backend-independent internal
5149 structures. Attempts to implement similar backing store stuff as
5150 on X11. The current (CVS) version of the Win32 backend is *not* as
5151 stable as it was before the no-flicker branch was merged. A
5152 zipfile with that version is available from
5153 http://www.gimp.org/win32/. That should be use by "production"
5154 code until this CVS version is usable. (But note, the Win32
5155 backend has never been claimed to be "production quality".)
5157 * README.win32: Add the above comment about versions.
5159 * gdk/gdkwindow.c: Don't use backing store for now on Win32.
5161 * gdk/gdk.def: Update.
5163 * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
5164 presumably be replaced by some more better mechanism as 1.4 gets
5165 closer to release shape.
5167 * gdk/makefile.{cygwin,msc}: Update.
5169 * gdk/win32/*.c: Correct inclusions of the backend-specific and
5170 internal headers. Change code according to changes in these. Use
5171 gdk_drawable_*, not gdk_window_* where necessary.
5173 * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
5176 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
5177 to interpret single characters as UTF-8. Thanks to Hans Breuer.
5178 Use correct function name in warning messages.
5180 * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
5181 GSourceFuncs gdk_event_prepare and gdk_event_check.
5182 (gdk_event_get_graphics_expose): Do implement, use
5183 PeekMessage. Thanks to Hans Breuer.
5184 (event_mask_string): Debugging function to print an GdkEventMask.
5185 (gdk_pointer_grab): Use it.
5187 * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
5188 (old) book I used claimed was Hangul actually is CJK Unified
5189 Ideographs Extension A. Also, Hangul Syllables were missing.
5192 * gdk/win32/gdkgc-win32.c: Largish changes.
5194 * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
5195 g_win32_getlocale() from GLib, and not setlocale() to get current
5198 * gdk/win32/gdkprivate-win32.h
5199 * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
5200 gdkwin32.h, similarily as in the X11 backend.
5202 * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
5203 assignment was used instead of equals in if test. Thanks to Hans
5206 * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
5209 * gdk/win32/makefile.{cygwin,msc}
5210 * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
5211 path to the Win32 headers that works also with the mingw compiler.
5213 * gtk/gtkstyle.c: Include <string.h>.
5215 2000-04-26 Havoc Pennington <hp@redhat.com>
5217 * gtk/gtklabel.c (gtk_label_get_text): Add this function,
5218 replacing the broken gtk_label_get ()
5220 2000-04-15 Havoc Pennington <hp@pobox.com>
5222 * gdk/gdkdnd.h: clean up enum format, remove extra comma,
5223 this keeps scanner scripts from getting confused.
5225 * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
5226 data, rather than void
5228 2000-04-15 Tor Lillqvist <tml@iki.fi>
5230 * gtk/gtkclist.c (gtk_clist_motion)
5231 * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
5232 with is_hint FALSE, get x and y from the event. They used to be
5233 used uninitialised. The Win32 backend never sends motion events
5234 marked as hints. This for instance fixes the annoying file and
5235 font selector behaviour in the Win32 version.
5237 2000-04-14 Tor Lillqvist <tml@iki.fi>
5239 * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
5240 gtk_private_n_signals variables, they are used by some software,
5243 * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
5244 installation directory from the Registry, where the installer
5247 Fri Apr 7 17:19:27 2000 Owen Taylor <otaylor@redhat.com>
5249 * gdk/x11/Makefile.am: Fix problem with installation directory for
5252 * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
5253 <mrcooger@cyberverse.com> so that when selecting menus with the
5254 mouse, the first item will not be selected, but when selecting
5255 with an accelerator, or navigating left-right on a menubar with
5256 the menus popped up, the first item will be selected.
5258 2000-04-05 Dan Damian <dand@dnttm.ro>
5260 * configure.in: Added "ro" to ALL_LINGUAS.
5262 Wed Apr 5 00:08:36 2000 Owen Taylor <otaylor@redhat.com>
5264 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
5267 * Makefile.am (EXTRA_DIST): Fix typo.
5269 * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
5270 to catch gdkconfig.h
5272 * gtk/gtkitemfactory.c: Added FIXME.
5274 2000-03-30 Jonathan Blandford <jrb@redhat.com>
5276 * gtk/gtkpaned.c (gtk_paned_get_position): oops.
5277 s/return_if_fail/return_val_if_fail/g and add a return value.
5279 Mon Mar 27 20:56:14 2000 Owen Taylor <otaylor@redhat.com>
5281 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up
5284 * gdk/gdkinput.h: Fix missing line from merge.
5286 Mon Mar 27 20:39:49 2000 Owen Taylor <otaylor@redhat.com>
5288 * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
5289 instead of gdkprivate.h.
5291 Sun Mar 12 15:19:24 2000 Owen Taylor <otaylor@redhat.com>
5293 * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
5294 parent class to correctly be GtkDialogClass.
5296 Thu Feb 24 23:58:21 2000 Owen Taylor <otaylor@redhat.com>
5298 * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
5299 toplevel windows and their immediate children by their parents,
5300 since the size of toplevel windows is out of our immediate
5301 control and we don't get any real benefit from trying to track
5302 this size for clipping.
5304 * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
5305 for input_only windows.
5307 * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
5308 to fix some hacks and make sure that we don't try to set the
5309 background of input only windows.
5311 Thu Feb 24 18:11:46 2000 Owen Taylor <otaylor@redhat.com>
5313 * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
5314 the _really_ internal stuff, and leave gdkprivate.h for the fake private
5315 stuff that we've traditionally exposed.
5317 * gdk/**.c: Use gdkinternals.h where appropriate.
5319 * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
5320 not include gdkprivate-x11.h, move all stuff of conceivable public
5321 interest into gdkx.h; keep all really private stuff in
5322 uninstalled header gdkprivate-x11.h.
5324 * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
5325 image->image_put on windows through a new function _gdk_window_draw_image()
5326 to allow us to do backing store for images. (Sort of ugly)
5328 * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
5329 contexts locally so that we can offset them properly when drawing
5330 onto backing pixmaps.
5332 * gdk/gdkinput.h: Reindented
5334 * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
5335 pixmap or color for the window, so we can properly initialize
5336 our double-buffer pixmaps, and also so that we temporarily set
5337 a background of None while scrolling.
5339 * gdk/gdkregion.h: Revise region boolean operators to have an
5340 interface that is actually convenient - switch from creating new
5341 regions on every op, to "methods" that modify existing regions
5342 (A = A OP B). 3 argument forms which allow dest == src, would also
5343 be possible, but the current interfaces seem to map nicely
5344 onto what needs to be done. (There is quite a lot of region
5347 * gdk/gdkregion.h: Add constructor from rectangle and a copy
5350 * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
5351 gdkpoly-generic.h: Copy region code from Xlib, switch it over
5352 to 32 bit coordinates, modify it to be mostly GTK+ style
5353 and to have interfaces that match gdkregion.h.
5355 * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
5356 double-buffered drawing. gdk_window_begin_paint_{rect,region}()
5357 create a backing pixmap and redirect all drawing to
5358 that backing pixmap until a matching gdk_window_end_paint().
5360 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
5361 Create a special drawable class for GtkWindow's that
5362 redirects the drawing to the backing pixmap as necessary
5363 and then calls the real operations in _gdk_windowing_window_class.
5365 * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
5366 Store invalid region for each window. Generate expose events for invalid
5367 region in an idle. This replaces both the expose compression
5368 and the redrawing queuing in GTK+. It is both more efficient and
5369 simpler than either one individually and far more so then the
5372 * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
5373 Emulate 32 bit coordinates for windows with 16 bit coordinates
5374 by offsetting drawing, guffaw scrolling techniques and
5375 mapping/unmapping child windows as necessary.
5377 * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
5378 where, when invalid regions are processed, the region is stored,
5379 and if expose events come in that are detectably duplicate
5380 the processed exposes (by comparison of event serial numbers),
5381 the stored region is subtracted out of those exposes.
5383 * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
5384 regions newly exposed when scrolling or resizing windows.
5385 This, combined with forcing processesing of queued invalidated
5386 regions, gives nice flicker-free scrolling.
5388 * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
5389 invalidated regions after every scroll.
5391 * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
5392 emulation in GDK. Its, for all practical purposes just a
5393 GtkViewport/GtkFixed hybrid now.
5395 * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
5396 (16-bit) structures as necessary instead of just casting.
5398 * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
5399 in terms of the structures from gdkregion-generic.c, using appropriate
5400 offsets from GDK to X11 coordinates. Cache clip mask and
5401 origin and ts origin locally and only flush to the server
5402 when drawing, to avoid constantly setting and resetting these
5403 values when offsetting GC's for scrolling and backing pixmaps.
5405 * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
5407 * gtk/gtkcontainer.c: Call process_all_updates at end
5408 of resizing to reduce flicker. (Avoids having redraw
5409 lag arbitrarily behind resize under some circumstances)
5411 * gtk/gtkentry.c: Remove old backing store code, and simply take
5412 advantage of the new backing store capabilities of GDK.
5414 * gtk/gtkmain.c: Simple implementation of widget backing
5415 store - simply push a paint while handling each expose.
5416 (Should really be configurable widget for widget.)
5418 * gtk/gtkwidget.c: Remove all the old complicated redraw
5419 code, and simply invalidate the GDK windows from
5420 gdk_window_queue_clear(), etc. (Sigh, so much carefully
5421 debugged complexity ... gone to the winds.)
5423 Remove all the code for suppressing expose events while
5424 resizes are pending; this isn't needed since the invalid
5425 areas won't be processed until after the resizes are
5426 processed, since they are in a lower priority idle.
5428 Thu Feb 24 15:37:41 2000 Owen Taylor <otaylor@redhat.com>
5430 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
5431 and height of dest rectangle for non-intersecting rectangles.
5433 Sun Feb 20 16:47:31 2000 Owen Taylor <otaylor@redhat.com>
5435 * gtk/gtkwidget.h: Make GtkAllocation just a typedef
5438 Sun Feb 20 11:27:00 2000 Owen Taylor <otaylor@redhat.com>
5440 * gdk/gdk{events,image,private,types,window}.h
5441 gdk/x11/gdkinputprivate.h: Change all coordinates
5442 from int16 to int. Also, Change width and height from
5443 unsigned to signed to avoid all the stupid C
5446 Sat Feb 19 12:01:53 2000 Owen Taylor <otaylor@redhat.com>
5448 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
5449 Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
5450 Add some more detailed checking.
5452 * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
5453 New function to retrieve the depth of a drawable.
5455 * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
5456 field, reorder fields to save memory.
5458 Mon Dec 13 14:06:03 1999 Owen Taylor <otaylor@redhat.com>
5460 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
5461 of the background image instead of scaling the background down to
5464 * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
5465 which temporarily set slider to wrong size.
5467 * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
5470 Wed Nov 17 18:36:05 1999 Owen Taylor <otaylor@redhat.com>
5472 2000-03-23 Jonathan Blandford <jrb@redhat.com>
5474 * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
5476 2000-03-17 Tor Lillqvist <tml@iki.fi>
5478 * gdk/win32/gdkevents-win32.c: Remove the #ifndef
5479 USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
5481 * gdk/win32/gdkfont-win32.c
5482 * gdk/win32/gdkproperty-win32.c
5483 * gdk/win32/gdkselection-win32.c
5484 * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
5487 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
5489 * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
5491 Mon Mar 13 18:37:55 2000 Owen Taylor <otaylor@redhat.com>
5493 * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
5494 is called without trapping X errors.
5496 Fri Feb 25 10:48:53 2000 Owen Taylor <otaylor@redhat.com>
5498 * gtk/gtkrc.*: Fix problem where stray '"' characters found their
5499 way into the fontset lists.
5501 Tue Feb 22 08:52:52 2000 Tim Janik <timj@gtk.org>
5503 * gtk/gtkthemes.h: add extern "C" scope.
5505 Mon Feb 21 20:16:42 2000 Lars Hamann <lars@gtk.org>
5507 * gtk/gtkclist.c: applied patch from Guy Harris <guy@netapp.com>
5508 to make appends to the list constant. (gtk-guy-990901-0.patch)
5510 Mon Feb 14 22:50:10 2000 Tim Janik <timj@gtk.org>
5512 * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
5513 for the typename hash table.
5515 Mon Feb 14 15:01:23 2000 Owen Taylor <otaylor@redhat.com>
5517 * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
5518 to make sure we never divide by zero.
5519 (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
5521 Mon Feb 14 12:29:38 2000 Owen Taylor <otaylor@redhat.com>
5523 * gtk/gtkfontsel.c: Apply patch from
5524 SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
5525 better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
5527 Also, some cleanups in atom handling.
5529 Sun Feb 13 08:02:21 2000 Tim Janik <timj@gtk.org>
5531 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
5534 Fri Feb 11 02:19:32 2000 Tim Janik <timj@gtk.org>
5536 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate):
5537 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate):
5538 * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
5539 more guint wrap-around bugs before going to bed.
5541 Thu Feb 10 16:16:35 2000 Tim Janik <timj@gtk.org>
5543 * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
5544 guint wrap arounds in allocation.width.
5546 * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
5547 process untill we fit the allocation given.
5549 Tue Feb 8 09:38:29 2000 Tim Janik <timj@gtk.org>
5552 (gtk_widget_unrealize): guard widget access with ref/unref
5553 around signal emission.
5554 (gtk_widget_hide): same here, but also check its destroyed
5555 state before queueing a resize.
5557 Tue Feb 8 03:05:55 2000 Tim Janik <timj@gtk.org>
5559 * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
5560 of gtk_default_insensitive_bg as insensitive base color.
5562 * gtk/gtktext.c (gtk_text_style_set): set the background color according
5563 to the widget's state.
5564 (gtk_text_realize): same here.
5565 (gtk_text_state_changed): same here.
5566 (draw_bg_rect): compare background color against base[] from
5567 GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
5569 Mon Feb 7 04:01:55 2000 Tim Janik <timj@gtk.org>
5571 * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
5572 grabs are active, unless a delete event is send to the toplevel
5573 of the currently grab holding widget.
5575 Sun Feb 6 10:13:15 2000 Owen Taylor <otaylor@redhat.com>
5577 * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
5578 debugging g_print's.
5580 Fri Feb 4 15:54:54 2000 Owen Taylor <otaylor@redhat.com>
5582 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
5583 ever make the scrolled-window requisition ever depend on the
5584 visibility state of the scrollbars for the AUTOMATIC policy.
5585 This breaks the GTK+ requisition model, and causes loops.
5587 Fri Feb 4 15:09:12 2000 Owen Taylor <otaylor@redhat.com>
5589 * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
5590 the default font to avoid problems with XFree86-4.0 where the
5591 default charset is iso10646-1, not iso8859-1.
5593 Thu Feb 3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
5599 * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
5601 * gtk/Makefile.am: minor cosmetic consistency tweak
5603 Thu Feb 3 14:46:01 2000 Owen Taylor <otaylor@redhat.com>
5605 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
5606 the activate_time to 0, so that we handle a quick
5607 press/release press/release properly and don't suppress
5608 the second release. (Red Hat bug #7545)
5610 Wed Feb 2 22:25:17 2000 Tim Janik <timj@gtk.org>
5612 * gtk/gtkctree.c (row_delete):
5613 (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
5614 bugs with destruction notifier, *always* update internal
5615 structures *before* calling user code.
5617 Sun Jan 30 20:10:52 2000 Lars Hamann <lars@gtk.org>
5619 A few more fixes for bug #5487, #2051, #2677.
5621 (gtk_clist_button_press): Reset clist->anchor to -1 if event->type is
5622 not GDK_BUTTON_PRESS.
5623 (resync_selection): resync only if selection_mode is
5624 GTK_SELECTION_EXTENDED
5625 * gtk/gtkctree.c (resync_selection): same here
5627 Sun Jan 30 12:29:20 2000 Owen Taylor <otaylor@redhat.com>
5629 * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
5630 gdk_drag_get_selection() and gtk_menu_detach().
5632 [ From Jeroen Ruigrok/Asmodai ]
5634 Sat Jan 29 10:11:56 2000 Owen Taylor <otaylor@redhat.com>
5636 * gtk/gtknotebook.c (gtk_notebook_size_request):
5637 page->tab_label can be NULL.
5639 2000-01-25 Havoc Pennington <hp@pobox.com>
5641 * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
5644 * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
5646 * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
5648 * gdk/gdkproperty.c (gdk_property_get): return boolean
5650 * gdk/gdkinput.c (gdk_input_set_mode): return boolean
5652 * gdk/gdkim.c (gdk_im_ready): return boolean
5654 * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
5656 * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
5657 glib clash, should fix glib)
5659 * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
5660 (gdk_get_show_events): return gboolean, and canonicalize
5663 * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
5665 (gdk_colors_alloc): gboolean whether to be contiguous
5666 (gdk_color_equal): return gboolean since we are a predicate
5667 and not a qsort() (this looks semi-wrong due to glib breakage,
5668 IMO glib should be fixed)
5670 * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
5671 (gdk_get_use_xshm): return gboolean
5672 (gdk_pointer_is_grabbed): return gboolean
5674 * gdk/gdk.h: Change prototypes to match all the above changes,
5675 and re-run egtk-format-protos as required.
5677 Fri Jan 28 12:28:17 2000 Owen Taylor <otaylor@redhat.com>
5679 * gtk/gtkctree.c (resync_selection):
5680 * gtk/gtkclist.c (resync_selection):
5682 Return immediately if clist->drag_pos < 0. This is a workaround
5683 for the corrupt state that the clist gets into when a
5684 GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
5686 Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
5688 * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
5689 variable from recent commit.
5691 Thu Jan 27 15:22:09 2000 Owen Taylor <otaylor@redhat.com>
5693 * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
5695 Thu Jan 27 18:00:55 2000 Tim Janik <timj@gtk.org>
5697 * gtk/Makefile.am: prefix all autogenerated source that get build in
5698 $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
5699 in builddir. since we subsequently cd into srcdir for autogeneration,
5700 the paths have to be stripped from the target file names, thusly we
5701 use $(@F) as target names now.
5702 put a comment about configure.in's --disable-rebuilds option,
5703 which can be used for non-writable source directories, for development
5704 setups though, srcdir has to be *writable*.
5706 hu Jan 27 00:15:03 2000 Owen Taylor <otaylor@redhat.com>
5708 * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
5709 Finish the job of allowing event to be NULL.
5710 (Fixes bug #4283, reported by Chris Blizzard)
5712 * gtk/gtkentry.c (entry_adjust_scroll): When calculating
5713 things so that the cursor appears on screen, properly
5714 take into account INNER_BORDER.
5715 (Fixes bug #4754, reported by Antonio Campos)
5717 Wed Jan 26 23:12:28 2000 Owen Taylor <otaylor@redhat.com>
5719 * gtk/gtknotebook.c (gtk_notebook_map): Don't
5720 show the tab_label unless it itself is visible.
5722 gtk/gtknotebook.c (gtk_notebook_size_request):
5723 Do a better job of making sure that the visibility
5724 of the tab label corresponds to whether it should
5727 Wed Jan 26 21:17:03 2000 Owen Taylor <otaylor@redhat.com>
5729 * gtk/gtkoptionmenu.c (gtk_option_menu_position):
5730 Use the requisition, not the allocation, since the
5731 allocation has not necessarily been computed yet.
5732 (Pointed out by Eugene Osintsev)
5734 Wed Jan 26 19:44:25 2000 Owen Taylor <otaylor@redhat.com>
5736 * gtk/gtkstyle.c (gtk_style_new): Dont' set
5737 style/base[GTK_STATE_INSENSITIVE] both to
5738 gtk_default_insensitive_bg!
5739 (Bug #2187, reported by Jonathan Blandford)
5741 * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
5742 Add Alt_L, Alt_R to list of invalid accelerators.
5743 (Bug #3736, reported by Vlad Harchev)
5745 Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
5747 * gtk/gtkfilesel.c (open_ref_dir): Fix several
5748 bugs which occured after an attempt to open
5749 invalid home directory left cmpl_state->reference_dir == NULL.
5751 - completion on files in home directory didn't work
5752 - completion on an empty string caused segfault
5754 (Bug #3768, reported by Steve Ratcliffe)
5756 * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
5757 cut and paste error that was causing scales to
5758 be incorrectly positioned.
5760 patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
5762 2000-01-27 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
5764 * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
5765 when checking for dcgettext, if we've found we needed
5768 Wed Jan 26 18:06:07 2000 Owen Taylor <otaylor@redhat.com>
5770 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
5771 queue_clear on NO_WINDOW widgets during a reparent,
5772 since at that point the window and widget heirarchies
5773 are out of sync. This stops crashing in some cases
5774 (the scrolled window reparent test, for instance), and
5775 _probably_ won't cause drawing errors.
5777 * gtk/testgtk.c: Make the reparenting-a-scrolled-window
5778 test do what it was supposed to do and be robust against
5779 window closings, etc. (Bug #2443)
5781 Wed Jan 26 16:56:54 2000 Owen Taylor <otaylor@redhat.com>
5783 * gtk/gtkentry.c: Fix return values on mouse events.
5784 (Bug #2686, Sky <seb_sky@yahoo.com>)
5786 * gtk/genmarshal.pl: Fix up handling of FOREIGN.
5787 (pointed out by George Lebl)
5789 * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
5790 (From Ettore Perazzoli <ettore@helixcode.com>)
5792 Mon Jan 24 10:44:48 2000 Owen Taylor <otaylor@redhat.com>
5794 * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
5795 clicks between rows or outside calender area correctly.
5796 (Patch from Damon Chaplin)
5798 * gtk/gtkclist.c (gtk_clist_set_row_data_full):
5799 * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full):
5800 Call destroy function when overwriting existing data.
5801 (Pointed out by Damon Chaplin)
5803 Tue Jan 25 09:55:41 2000 Owen Taylor <otaylor@redhat.com>
5805 * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
5806 which was causing problems on various systems with Xmu.
5807 This hasn't been needed for a very long time.
5810 Sun Jan 23 22:27:36 2000 Owen Taylor <otaylor@redhat.com>
5812 * gdk/gdki18n.h: Include <ctype.h> when defining
5813 gdk_isw* in terms of is* as a fallback.
5814 (Bug #4106 - Dan Winship <danw@MIT.EDU>)
5816 Sun Jan 23 22:12:36 2000 Owen Taylor <otaylor@redhat.com>
5818 * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
5819 realize the widget when it is size allocated!
5822 * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
5823 Removed unused call to gdk_window_get_size() that
5824 showed up when the above was fixed.
5826 Sat Jan 22 15:44:30 2000 Owen Taylor <otaylor@redhat.com>
5828 * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
5829 fix up widget->window when the widget is a
5830 NO_WINDOW container widget.
5832 Sat Jan 22 12:40:48 2000 Owen Taylor <otaylor@redhat.com>
5834 * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
5835 to account for the fact that feof() does _not_
5836 return TRUE on errors, and thus avoid infinite loops
5837 when trying to use gdk_pixmap_create_from_xpm()
5838 on unreadable values.
5840 Fri Jan 21 18:32:43 2000 Owen Taylor <otaylor@redhat.com>
5842 * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
5844 Fri Jan 21 16:24:08 2000 Owen Taylor <otaylor@redhat.com>
5846 * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
5847 gdk_gc_set_dashes to take gint8 instead of gchar to
5848 make it clearer that it is _not_ a NULL terminated string.
5850 * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
5851 gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
5852 gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
5855 Thu Dec 30 04:51:05 1999 Tim Janik <timj@gtk.org>
5857 * gtk/gtkvscale.c (gtk_vscale_pos_background):
5858 * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
5859 background size relative to our allocation, guard against small
5860 allocations, we may have not yet been size allocated.
5862 Thu Dec 2 10:59:14 1999 Owen Taylor <otaylor@redhat.com>
5864 * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
5865 not just version == 3. We implement all 3 + most of 4 -
5866 (we don't support matching text/plain;charset=iso-8859-1
5867 to a dest that expects text/plain). We'll still advertise
5868 3 to be safe, but any client implementing version >= 3
5869 must interoperate with 3.
5871 Tue Mar 14 11:53:31 2000 Owen Taylor <otaylor@redhat.com>
5873 * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
5874 background and gc members, add a warning in gtk_tooltips_set_color()
5875 indicating that this function is deprecated.
5877 Thu Mar 9 22:10:56 GMT 2000 Tony Gale <gale@gtk.org>
5879 * docs/gtkfaq.sgml: FAQ Update:
5880 - Minor cleanups (Emmanuel, me)
5882 I need to add a new signal to a GTK+ widget. Any idea? (timj)
5883 How can I retrieve the text from a GtkMenuItem? (timj)
5884 How do I validate/limit/filter the input to a GtkEntry? (me)
5885 Memory does not seem to be released when I free the list
5886 nodes I've allocated (timj)
5888 2000-03-07 Tor Lillqvist <tml@iki.fi>
5890 * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
5891 (gdk_win32_gdi_failed) New function for reporting errors from GDI,
5892 for which it is no use to call GetLastError onWin9x.
5893 (gdk_other_api_failed) New function, for general error
5894 reporting without calling GetLastError.
5895 (gdk_win32_api_failed) OTOH, this function always calls
5896 GetLastError. (gdk_win32_last_error_string) Remove this function,
5897 GLib has the equivalent now.
5899 * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
5900 call them with function name, file name and line number in the
5903 * gdk/win32/*.c: Use the new macros for reporting errors from GDI
5906 * gtk/gtk.def: Add some missing entry points.
5908 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
5909 gtk_paned_set_gutter_size, which don't exist any longer, as void.
5911 Fixes by Hans Breuer:
5913 * gdk/makefile.msc: Update for debugging.
5915 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
5916 implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
5917 PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
5920 * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
5923 * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
5925 * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
5927 2000-03-04 Tor Lillqvist <tml@iki.fi>
5929 * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
5930 just pixel value of background colour.
5932 * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
5933 containing code snippet previously duplicated in a couple of
5936 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
5939 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
5940 GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
5941 events for autorepeated Shift, Control and Alt keys. Use
5944 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
5945 pointer is inside the window the cursor of which we are setting,
5946 call SetCursor immediately.
5948 * gdk/win32/makefile.cygwin
5949 * gtk/makefile.cygwin: If we don't have the build number stamp
5952 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
5953 gtk_paned_set_gutter_size as empty.
5955 * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
5957 Tue Feb 29 13:10:00 GMT 2000 Tony Gale <gale@gtk.org>
5959 * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
5960 gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
5961 docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
5962 docs/gtk_tut.sgml docs/gtk.texi TODO:
5964 Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
5966 Sat Feb 26 11:46:25 GMT 2000 Tony Gale <gale@gtk.org>
5968 * gtk/gtkcalendar.c: Implement num_marked_dates,
5969 and don't emit mutiple day_selected signals on
5972 2000-02-25 Jonathan Blandford <jrb@redhat.com>
5974 * docs/make-todo (lineno): let title and logo be configurable so
5975 that GNOME can use this script too.
5977 * TODO.xml: added logourl and a title
5979 Fri Feb 25 11:12:00 2000 Owen Taylor <otaylor@redhat.com>
5981 * TODO.xml: Added some UI items, and an explanatory
5982 comment at the top of the file.
5984 Thu Feb 24 09:07:28 2000 Tim Janik <timj@gtk.org>
5986 * TODO.xml: some updates, added abunch of new entries.
5987 a note for those fiddeling with this file, when done
5989 $ ./docs/make-todo TODO.xml >/dev/null
5990 and correct output errors before comitting changes.
5992 Wed Feb 23 22:59:50 2000 Owen Taylor <otaylor@redhat.com>
5994 * TODO.xml: Added XML-structured TODO file.
5995 * docs/make-todo: python script to turn TODO.xml into
5998 2000-02-23 Jonathan Blandford <jrb@redhat.com>
6000 * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
6001 the function to let it draw the seven dots, instead of the old,
6002 much maligned, method.
6003 (draw_dot): New function to draw a dot.
6005 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
6006 to draw the handle inside the border width as opposed to outside.
6007 Use paint function instead of gdk_draw_point.
6009 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
6010 to draw the handle inside the border width as opposed to outside.
6011 Use paint function instead of gdk_draw_point.
6013 * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
6014 Change indenting to be more GTK like.
6016 Wed Feb 23 10:54:14 GMT 2000 Tony Gale <gale@gtk.org>
6018 * docs/gtk_tut.sgml: New section on GtkCalendar
6019 * examples/calendar: Update example code
6021 Tue Feb 22 13:54:12 GMT 2000 Tony Gale <gale@gtk.org>
6023 * docs/gtkfaq.sgml: FAQ Update
6025 2000-02-19 Anders Carlsson <andersca@gnu.org>
6027 * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
6028 to prevent the scroll event to be propagated upwards.
6030 Fri Feb 18 14:37:29 2000 Owen Taylor <otaylor@redhat.com>
6032 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
6033 OwnerGrabButtonMask from button entries for
6034 GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
6036 * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
6037 to the event mask (which will result in button/press release
6038 being added to the event mask on Unix) so scrolling works
6039 for layouts in scroll windows.
6041 * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
6043 Patch from Anders Carlsson <andersca@gnu.org> to add
6046 * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
6047 scrolling to the "Test Scrolling" part of testgtk.
6049 * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
6051 * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
6052 it against GDK_SCROLL.
6054 * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
6055 way of mouse wheel scrolling.
6057 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
6059 * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
6061 * gtk/gtkmain.c: Removed previous mouse wheel hack.
6063 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
6064 gdk_event_mask_table.
6066 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added
6067 GdkEventScroll handler.
6069 * gdk/gdkevents.h: Added GdkEventScroll structure.
6071 Thu Feb 17 17:10:12 2000 Owen Taylor <otaylor@redhat.com>
6073 * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
6074 and Anders Carlsson to change the Paned widgets so that they
6075 can be dragged from anywhere along the length. Also change
6076 the way that this is drawn to make this apparent.
6078 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
6079 from George Lebl to check that option_menu->menu is present
6080 before getting history.
6082 2000-02-14 Tor Lillqvist <tml@iki.fi>
6084 * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
6085 before the assertion for non-NULL segment list.
6087 * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
6088 Seems that pattern brushes *must* be 8x8 pixels! At least on my
6089 machine, but it might be display driver dependent. Sigh, so make
6090 sure the stipple is that size. Does Windows suck or what?
6092 * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
6095 2000-02-13 Havoc Pennington <hp@pobox.com>
6097 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
6099 (gdk_cursor_new): init refcount to 1
6101 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
6103 2000-02-13 Tor Lillqvist <tml@iki.fi>
6105 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
6106 so that we don't have to do unnecessary settings to the HDC.
6108 * gdk/win32/gdkdrawable-win32.c
6109 * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
6112 * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
6113 the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
6114 GDI paths, call WidenPath to get the outline of the stroken path,
6115 and then fill the outline (with the brush that was built from the
6118 * gdk/win32/gdkgc-win32.c: Factor out common code from
6119 _gdk_win32_gc_new and gdk_win32_gc_set_values into
6120 gdk_win32_gc_values_to_win32values. Use correct colour for
6121 SetBkColor() (Until now the code actually used a random colour in
6122 the call to SetBkColor()... but that didn't show up as not many
6123 GDI APIs use the background colour. Pattern (opaque stippled)
6126 * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
6127 gdk_win32_api_failed): New functions for error logging.
6129 * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
6130 WIN32_API_FAILED to call them, passing function or file name and
6133 * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
6135 * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
6136 GdkColor for foreground and background in GdkGCWin32Data.
6138 * gdk/makefile.cygwin: Link in the resource object separately.
6140 * gdk/win32/rc/gdk.rc
6141 * gtk/gtk.rc (New file)
6142 * gdk/win32/makefile.cygwin
6143 * gtk/makefile.cygwin: Update build number in DLLs automatically,
6146 Sun Feb 13 08:54:45 2000 Tim Janik <timj@gtk.org>
6148 * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
6149 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
6150 * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
6151 * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
6152 parameters given and cursor->ref_count. coding style fixups.
6154 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
6157 * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
6158 fix up widget macros and add _GET_CLASS() variant.
6160 * gtk/*.c: some GtkType fixups.
6162 2000-02-09 Tor Lillqvist <tml@iki.fi>
6164 * gdk/win32/gdkproperty-win32.c
6165 * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
6168 2000-02-04 Tor Lillqvist <tml@iki.fi>
6170 * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
6171 g_filename_to_utf8 to convert the font names Windows gives us from
6172 whatever is the default codepage to UTF-8.
6173 (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
6174 in the other direction.
6176 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
6177 error in debugging output.
6179 2000-02-02 Tor Lillqvist <tml@iki.fi>
6181 * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
6182 and height parameters to gdk_window_clear_area(). Not minus one.
6184 Wed Feb 2 11:58:05 2000 Owen Taylor <otaylor@redhat.com>
6186 * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
6187 checks if the widget passed to gtk_drag_get_data() was not the
6190 2000-02-01 Tor Lillqvist <tml@iki.fi>
6192 * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
6193 g_filename_from_utf8 functions (which were added a moment ago to
6194 GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
6197 gtk_file_selection_get_filename returns the filename in the C
6198 runtime encoding. It calls g_filename_from_utf8, but copies the
6199 returned string to a static buffer, which is returned. I think
6200 this is better than returning the result from g_filename_from_utf8
6201 directly, which would mean all apps that use it would have to free
6202 the return value. Or should this function care about this issue at
6203 all? Maybe a new function with clearly defined semantics.
6205 * gtk/gtkfilesel.h: Add comment about
6206 gtk_file_selection_get_filename returning the filename in the C
6211 * gdk/makefile.{cygwin,msc}
6212 * gtk/gtk.def: Updates.
6214 * gdk/gdkcursor-win32.c: Initialise refcount.
6216 2000-01-31 Yuan-Chung Cheng <platin@linux.org.tw>
6218 * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
6220 2000-01-30 Havoc Pennington <hp@pobox.com>
6222 * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
6225 * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
6227 * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
6228 implemented in platform-specific code
6230 * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
6232 * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
6235 * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
6236 put an underscore in front
6238 * gdk/gdkcursor.c: new file, implements
6239 gdk_cursor_ref/gdk_cursor_unref
6241 * gdk/gdkcursor.h: Refcount GdkCursor
6243 * gdk/gdkcompat.h (gdk_cursor_destroy): compat
6245 2000-01-29 Tor Lillqvist <tml@iki.fi>
6248 * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
6250 Tue Jan 25 11:43:21 2000 Owen Taylor <otaylor@redhat.com>
6252 * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
6253 structures to properly inherit from GtkWidget not GtkBin.
6255 Sun Jan 23 20:28:24 2000 Owen Taylor <otaylor@redhat.com>
6257 * gtk+.spec.in: Added lib/gtk+/include/* to %files
6258 (bug #5178 - Peter Wainright)
6260 * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
6261 so that it will be installed.
6262 (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
6264 Fri Jan 21 16:29:28 2000 Owen Taylor <otaylor@redhat.com>
6266 * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
6267 for the GtkStyleClass vtable const.
6269 * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
6270 take a const string argument like GtkTranslateFunc. This will
6271 require changes in use code.
6273 2000-01-19 Tor Lillqvist <tml@iki.fi>
6275 * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
6276 semantics (to mimic the X11 backend, which just calls XClearArea)
6277 is to check for zero width (and height), and in that case use the
6278 window's width minus x (height minus y). This fixes for instance
6279 some redraw problems with gtkclist, which were easily noticeable
6280 in the gtk file selection widget.
6282 (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
6285 2000-01-13 Tor Lillqvist <tml@iki.fi>
6289 * gdk/x11/Makefile.am
6290 * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
6292 * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
6295 2000-01-09 Tor Lillqvist <tml@iki.fi>
6297 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
6298 WM_MOVE for iconified or invisible windows. This fixes various
6299 problems when minimising windows. Thanks to Bernd Herd.
6301 2000-01-05 Tor Lillqvist <tml@iki.fi>
6303 * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
6304 backend's draw_lines method, not draw_points.
6306 2000-01-02 Tor Lillqvist <tml@iki.fi>
6308 * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
6309 before Owen's reorganisation: Don't have queued_events and
6310 queued_tail statics in this file, but use gdk_queued_events and
6311 gdk_queued_tail. This makes exposure event compression work again.
6313 (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
6316 1999-12-30 Tor Lillqvist <tml@iki.fi>
6318 * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
6319 gdkkeysyms.h to get the GDK_* keysym constants that are needed by
6320 gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
6321 doesn't do anything.
6323 * gdk/gdk.def: Add gdk_xid_table_insert.
6325 * gdk/win32/gdkprivate-win32.h
6326 * gdk/win32/gdkevents-win32.c
6327 * gdk/win32/gdkinput-win32.c
6329 * gdk/win32/gdkwindow-win32.c: Remove the superfluous
6330 extension_events field in the GdkWindowWin32Data struct. Use only
6331 the extension_events field in GdkWindowPrivate. Previously one was
6332 set, and the other one tested, which broke tablet
6333 functionality. Thanks to Keishi Suenaga for pointing this out.
6335 1999-12-18 Tor Lillqvist <tml@iki.fi>
6337 * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
6338 When handling a single character (text length == 1), don't handle
6339 it as if it was UTF-8.
6341 1999-12-11 Tor Lillqvist <tml@iki.fi>
6343 * Makefile.am: Distribute README.win32.
6346 * gdk/win32/Makefile.am: Distribute Win32 files.
6348 * gdk/makefile.msc: New file.
6350 * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
6353 * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
6354 gdk_error_code as GDKVAR, as they are referred outside GDK.
6356 * gdk/win32/makefile.msc: Update.
6358 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
6359 tweaks. Check only if at least one of those Unicode subrange bits
6360 we care for is set. If no code page bits are set, guess (wildly)
6361 based on the charset.
6363 * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
6365 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
6371 * gtk/gtkselection.c
6373 * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
6374 appropriate. There must be a cleaner way to handle this?
6376 * gtk/gtkrc.c: Must include windows.h on Win32.
6378 * gtk/testgtk.c: No need to include gdkx.h.
6380 * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
6382 1999-12-07 Tor Lillqvist <tml@iki.fi>
6384 * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
6385 the rbearing is set to the same as the width, but this should be
6388 1999-12-06 Tor Lillqvist <tml@iki.fi>
6390 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
6391 function. If Windows doesn't tell us what Unicode subranges a font
6392 covers, guesstimate based on the codepages it covers. This will
6393 hopefully help those Windows versions or fonts that don't give us
6394 any useful Unicode subrange information with GetTextCharsetInfo.
6395 Call this function in gdk_font_load_internal.
6397 * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
6400 Fri Dec 3 14:09:50 1999 Owen Taylor <otaylor@redhat.com>
6402 * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
6403 New function, long needed.
6405 Wed Dec 1 22:35:43 1999 Owen Taylor <otaylor@redhat.com>
6407 * gdk/gdkproperty.h x11/gdkproperty.c: Change
6408 only_if_exists argument of gdk_atom_intern to
6411 1999-11-25 Tor Lillqvist <tml@iki.fi>
6413 * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin):
6414 Fix two copy&paste errors.
6416 * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
6419 * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
6420 GdkWin32SingleFont struct.
6422 * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
6423 subranges of loaded fonts. Clear font signature first, in case
6424 GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
6425 ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
6427 * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
6428 Unoffset clip region.
6430 1999-11-23 Tor Lillqvist <tml@iki.fi>
6432 * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
6433 event->any.window before calling filter functions.
6435 Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
6437 * gtk/gtkgamma.h: Adapt cast macros to standard.
6441 Tue Nov 16 10:15:54 1999 Owen Taylor <otaylor@redhat.com>
6443 * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
6444 If translation does not include a '/', use entire
6445 translation instead of crashing.
6447 Sun Oct 31 22:21:11 1999 Tim Janik <timj@gtk.org>
6449 * docs/gtk_tut.sgml:
6450 s/gtk_accel_group_attach/gtk_window_add_accel_group/.
6452 Sat Oct 30 09:09:09 1999 Owen Taylor <otaylor@redhat.com>
6454 * gtk/gtkselection.c (gtk_target_list_remove): Use
6455 g_list_remove_link, not g_list_remove.
6457 [ From Geert Bevin <gbevin@thunderstorms.org> ]
6459 Sun Oct 24 07:41:40 1999 Tim Janik <timj@gtk.org>
6461 * gtk/gtkclist.c (real_undo_selection): commented out g_print()
6462 statement upon unselection (how the heck did that slip in?).
6464 Sat Oct 23 03:03:08 1999 Tim Janik <timj@gtk.org>
6466 * gtk/gtktext.c (gtk_text_freeze):
6467 (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
6468 in frozen state (and aparently crashes). patch provided by Anders
6469 Melchiorsen <and@kampsax.dtu.dk>.
6471 Sat Oct 23 02:53:20 1999 Tim Janik <timj@gtk.org>
6473 * fix insensitive default/focus widget activation,
6474 reported by Matt Goodall <mgg@isotek.co.uk>.
6476 * gtk/gtkwindow.c (gtk_window_key_press_event):
6477 (gtk_window_activate_default):
6478 (gtk_window_activate_focus):
6479 return handled=FALSE for actiavtion of insensitive default
6480 widgets. return handled=TRUE for activation of insensitive
6481 focus widgets. don't activate in either case.
6483 Tue Oct 19 09:55:08 1999 Owen Taylor <otaylor@redhat.com>
6485 * gtk-config.in (lib_gtk): Switch order of @x_cflags@
6486 and $glib_cflags to match library order and in the
6487 theory that an old version of GLib is more likely to
6488 be in the include directory for X then vice-versa.
6491 Tue Oct 19 09:46:49 1999 Owen Taylor <otaylor@redhat.com>
6493 * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE
6494 to determine the locale for fontsets, not LC_MESSAGES;
6495 the user may want English messages with a handling
6496 for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
6497 will still be broken) (Bug #2891)
6499 Tue Oct 19 20:36:42 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
6501 * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
6503 Tue Oct 19 12:15:13 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
6505 * gtk/gtkrc.ko: Changed the Korean default fontset.
6507 Fri Oct 8 02:32:47 1999 Owen Taylor <otaylor@redhat.com>
6509 * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
6510 where when scrolling to the left or top double exposes
6511 were done, causing major slowdowns.
6513 Thu Oct 7 18:31:55 1999 Owen Taylor <otaylor@redhat.com>
6515 * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
6516 names to lowercase and alphanumeric, before looking
6519 * gtk/Makefile.am: Install codeset variant gtkrc files
6520 with normalized names.
6522 Thu Oct 7 22:52:42 1999 Tim Janik <timj@gtk.org>
6524 * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
6525 popup menus when the menu is already visible, but its parent
6526 is still hidden, (happens after tornoff window got hidden).
6528 Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
6530 * gtk/Makefile.am (install-data-local): Fix
6531 a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
6532 deleted, causing error messages on install.
6534 Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
6536 * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
6537 the handle as well, since we now sometimes ignore
6538 exposes on the handle while resizing.
6540 Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
6542 * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
6543 extra g_free introduced in one of the last one or two
6546 Wed Oct 6 16:38:36 1999 Owen Taylor <otaylor@redhat.com>
6548 * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
6549 consistent, put each style that a gtkrc.* file creates
6550 in a unique namespace, remove old files before installing.
6552 Wed Oct 6 14:31:16 1999 Owen Taylor <otaylor@redhat.com>
6554 * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
6555 gtk_rc_init is called multiple times. (Yes, people who
6556 do that have bugs in their code.)
6558 Tue Oct 5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
6560 * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
6561 Remove it since it's generated by the Makefile anyway
6563 Tue Oct 5 02:43:41 1999 Owen Taylor <otaylor@redhat.com>
6565 * gdk/gdkinputcommon.h (gdk_input_device_new): Free
6566 device->info.axes for core pointer.
6568 Thu Sep 30 13:55:25 1999 Owen Taylor <otaylor@redhat.com>
6570 * gtk/testgtk.c (destroy_idle_test): Rename idle to
6571 idle_id, to deal with obsolete, broken C libraries.
6573 Mon Sep 27 02:50:15 1999 Owen Taylor <otaylor@redhat.com>
6575 * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
6576 allocation->x/y twice!
6578 * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
6579 consistent with gtk_vscale_pos_trough().
6581 Sun Sep 26 19:44:34 1999 Owen Taylor <otaylor@redhat.com>
6583 * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
6584 be queueing a resize on a toplevel container between
6585 the time we show it and when we map it. So, we need
6586 to test GTK_WIDGET_VISIBLE() for toplevels, and only
6587 use GTK_WIDGET_DRAWABLE() for child windows.
6589 Thu Sep 23 16:41:03 1999 Owen Taylor <otaylor@redhat.com>
6591 * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS
6594 Fri Sep 24 00:51:45 1999 Tim Janik <timj@gtk.org>
6596 * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
6597 container DRAWABLE (instead of VISIBLE), so we don't queue
6598 resizes on non-toplevel containers.
6600 Sun Sep 19 18:13:31 1999 Owen Taylor <otaylor@redhat.com>
6602 * gtk/gtkselection.[ch]: Make the data argument
6605 Sat Sep 18 21:27:40 1999 Owen Taylor <otaylor@redhat.com>
6607 * gtk/gtkwindow.c: Try to behave sensibly if
6608 the focus widget is the window itself. (Should
6609 we allow this at all?)
6611 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
6613 * gtk/gtkwidget.c (gtk_widget_set_sensitive):
6614 * gtk/gtknotebook.c (gtk_notebook_set_scrollable):
6615 * gtk/gtknotebook.c (gtk_notebook_set_show_border):
6616 * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
6617 in prototypes and implementations consistent (Tomas Ogren).
6619 * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
6620 before the widget is unparented (reported by damon).
6622 * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
6623 since we provide unsigned data anyways.
6625 Thu Sep 16 21:32:01 1999 Owen Taylor <otaylor@redhat.com>
6627 * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
6628 the call to gtk_tooltips_layout_text() until later.
6630 * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
6631 Call gtk_widget_ensure_style() before using the style.
6633 Wed Sep 15 02:52:19 1999 Owen Taylor <otaylor@redhat.com>
6635 * gtk/gtkwidget.c (gtk_widget_event): Added workaround
6636 for old widgets that don't propagate draws to all
6637 children. (Namely gnome-dock for gnome-libs <= 1.0.16)
6639 Tue Sep 14 19:22:19 1999 Tim Janik <timj@gtk.org>
6641 * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
6642 for a redraw but just the widget that requested the resize.
6644 Tue Sep 14 18:29:47 1999 Tim Janik <timj@gtk.org>
6646 * gtk/gtkcontainer.c: added new widget level method
6647 gtk_container_set_reallocate_redraws() and a GtkContainer flag
6648 reallocate_redraws : 1 to reflect the setting, exported this through
6649 the argument system as a boolean ::reallocate_redraws.
6651 * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
6652 on the widget because the allocation changes, do so as well for
6653 widget->parent if the parent has reallocate_redraws set to TRUE.
6654 with that containers requesting reallocation redraws get automatically
6655 redrawn if their children changed allocation (this unfortunately
6656 affects also other children that didn't change allocation, but we
6657 cannot work around that before 1.3).
6659 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
6661 * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
6662 _and_ height are >0 (not _or_).
6664 * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
6665 instead of gtk_container_queue_resize(), which is a core gtk internal
6666 function (must have been on crack when i queued that).
6668 * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
6669 we can check more reliably if we want to discard expose events.
6670 * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
6673 * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
6674 we simply trust these events. for deciding whether to discard exposes,
6675 check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
6677 Mon Sep 13 15:01:21 1999 Owen Taylor <otaylor@redhat.com>
6679 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
6680 queues of areas that are completely off screen.
6682 * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
6683 logic for handleboxes.
6685 * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
6686 check on width/height.
6688 Mon Sep 13 02:22:47 1999 Tim Janik <timj@gtk.org>
6690 * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
6691 we are fine with using $@ the way we do (if we actually encounter
6692 brokeness with $@ in VPATH builds because of additional path prefixes,
6693 we need to use $(@F) actually).
6695 Mon Sep 13 01:34:53 1999 Tim Janik <timj@gtk.org>
6697 * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
6698 short lived bugs, that would allow language bindings to do surgeries
6701 Fri Sep 10 15:22:50 1999 Owen Taylor <otaylor@redhat.com>
6703 * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
6704 where comparison was being done against an uninitialized
6705 value causing intermittant results depending on
6706 compiler flags. Also make it clearer that we aren't
6707 ever initializing the child as 0x0 (though this will
6708 be caught in gtk_widget_size_allocate())
6710 Fri Sep 10 10:06:56 1999 Owen Taylor <otaylor@redhat.com>
6712 * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
6713 gtk_window_unset_transient_for() call after we do checks
6714 involving the old transient parent.
6715 [ From Lance Capser <lmc@cyberhighway.net> ]
6717 1999-09-07 Raja R Harinath <harinath@cs.umn.edu>
6719 * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
6722 Mon Sep 6 00:11:56 1999 Lars Hamann <lars@gtk.org>
6724 * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
6725 no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
6727 1999-09-03 Raja R Harinath <harinath@cs.umn.edu>
6729 * gtk/Makefile.am (gen_sources): Improve VPATH builds.
6730 `$@' is valid only in the build dir, not after we've done
6731 `cd $srcdir'. Also use `test -f' instead of less portable
6734 Fri Sep 3 15:59:56 1999 Owen Taylor <otaylor@redhat.com>
6736 * gtk/gtktext.c (correct_cache_insert): Rewrite
6737 for simplicity, and hopefully correctness.
6738 (Fixes bug #1322, which was a segfault when
6739 on some insertions with the properties around
6740 the insertion set up just wrong.)
6742 * gtk/gtktext.c (gtk_text_adjustment): When we receive
6743 a "changed" signal, clamp the new value to the adjustment
6744 bounds to avoid segfaulting if someone tries to change
6745 the adjustment to a bogus value. (Bug #1795)
6747 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
6749 * gtk/gtkmain.c: Ignore unexpected destroy notifies
6750 for children, for toplevel windows handle them
6753 * gtk/gtkplug.c: Add an unrealize handler so that
6754 we unref plug->socket_window when we are done
6757 Fri Sep 3 14:52:54 1999 Owen Taylor <otaylor@redhat.com>
6759 * gtk/gtktext.c (clear_area): Fix stupid signedness
6760 problem that was causing background to sometimes
6763 Fri Sep 3 12:26:33 1999 Owen Taylor <otaylor@redhat.com>
6765 [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
6767 * gtk/gtkmenu.c (gtk_menu_position): Make
6768 sure we never position menus with negative x, y,
6769 since gtk_widget_set_uposition() can't handle that.
6771 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
6772 Modify the positioning code a bit so that we always
6773 put the top-left corner onscreen. (This is for
6774 UI reasons, gtk_menu_position() now takes care of
6775 gtk_widet_set_uposition() brokeness.)
6777 Fri Sep 3 03:06:30 1999 Tim Janik <timj@gtk.org>
6779 * gtk/Makefile.am: fixed up things for -jx, x > 1.
6781 Sun Sep 5 08:48:51 1999 Owen Taylor <otaylor@redhat.com>
6783 * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
6784 RC style that is passed in. The lack of the ref
6785 before was a bug. If people worked around this
6786 bug, this will introduce a slight memory leak
6787 in their code. The code should typically look like:
6789 rc_style = gtk_rc_style_new ();
6791 gtk_widget_modify_style (widget, rc_style);
6792 gtk_rc_style_unref (rc_style);
6794 * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
6795 the style if it was already set.
6797 * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
6798 style if it was set before.
6800 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
6802 * gtk/testgtk.c (main): Add a check to see if we
6803 are being run from the correct directory and
6804 to quit nicely if we are not.
6806 * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
6809 Thu Sep 2 23:00:03 1999 Tim Janik <timj@gtk.org>
6811 * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
6814 queue resizes unconditionally (gtk_widget_queue_resize will figure
6815 what to do if the window is not realized).
6816 (gtk_window_move_resize): only recenter the window
6817 for GTK_WIN_POS_CENTER_ALWAYS.
6818 (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
6819 the same way as GTK_WIN_POS_CENTER.
6821 Thu Sep 2 22:39:27 1999 Tim Janik <timj@gtk.org>
6823 * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
6824 with (!(info->last_flags & GDK_HINT_POS)) instead of
6825 (!info->last_flags & GDK_HINT_POS).
6827 * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
6828 new_height unconditionally, because we use these values even if
6829 !default_size_changed && !hints_changed.
6830 comented the (default_size_changed || hints_changed) case with
6831 respect to resize rejects from the window manager.
6833 * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
6834 in the zvt condition hack, since this includes the window hints, set
6835 the hints after the handling_resize case.
6837 * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
6838 window is initially shown with to the geometry.
6840 Thu Sep 2 07:38:56 1999 Tim Janik <timj@gtk.org>
6842 * gtk/gtkwindow.c (gtk_window_move_resize):
6843 s/size_changed/default_size_changed/g so i know what's
6844 really going on (frying brain on smaller flame now).
6846 Thu Sep 2 05:47:47 1999 Tim Janik <timj@gtk.org>
6848 * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
6849 we have size_changed upon handling_resize. this is a gross
6850 workaround for the broken zvt widget and should be removed in
6851 1.3 again (search for FIXME).
6852 Owen provided an accurate comment for this:
6854 /* We could be here for two reasons
6855 * 1) We coincidentally got a resize while handling
6857 * 2) Our computation of size_changed was completely
6858 * screwed up, probably because one of our children
6859 * is broken. It's probably a zvt widget.
6861 * For 1), we could just go ahead and ask for the
6862 * new size right now, but doing that for 2)
6863 * might well be fighting the user (and can even
6864 * trigger a loop). Since we really don't want to
6865 * do that, we requeue a resize in hopes that
6866 * by the time it gets handled, the child has seen
6867 * the light and is willing to go along with the
6868 * new size. (this happens for the zvt widget, since
6869 * the size_allocate() above will have stored the
6870 * requisition corresponding to the new size in the
6873 * This doesn't buy us anything for 1), but it shouldn't
6874 * hurt us too badly, since it is what would have
6875 * happened if we had gotten the configure event before
6876 * the new size had been set.
6879 Wed Sep 1 20:46:11 1999 Owen Taylor <otaylor@redhat.com>
6881 * gtk/gtkrc.c: deal properly with the fact that RC
6882 style lists may include rc styles more than once.
6884 * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
6885 unused static function.
6887 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
6888 stack of directories of RC files currently being
6889 parsed and implicitely add them to pixmap path.
6891 This fixes a bug where the directory would get
6892 appended then overwritten by pixmap_path declarations.
6894 (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
6896 * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
6897 theme's exit function. (Patch from Peter Wainwright,
6900 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
6901 Add a destroy() handler to take care of removing
6902 group for menu item. (Fixes bug #1197)
6904 * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
6907 Wed Sep 1 21:27:42 1999 Tim Janik <timj@gtk.org>
6909 * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
6910 roundtrip to figure window's width and height, since we know that
6911 anyways from widget->allocation.
6913 Wed Sep 1 12:37:44 1999 Owen Taylor <otaylor@redhat.com>
6915 * gtk/gtkwindow.c (gtk_window_move_resize): Compute
6916 the hints after we request the new size.
6918 Wed Sep 1 10:38:37 1999 Owen Taylor <otaylor@redhat.com>
6920 * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
6921 GTK_WIDGET_REALIZED() assertion - we can compute the
6922 hints before we are realized.
6924 * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
6925 hint changing so that we have a value of hints_changed
6926 when we decide whether to constrain the window size.
6928 * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
6930 * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
6931 change back to G_MAXINT.
6933 Wed Sep 1 06:54:59 1999 Tim Janik <timj@gtk.org>
6935 * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
6936 new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
6937 contain uncluttered values.
6938 (gtk_window_compute_hints): simply assert that window is realized
6939 and that geometry_info is valid, since we rely on this anyways.
6940 (gtk_window_constrain_size): major cleanups to the code.
6941 if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
6942 for the base size, instead of the minimums. use 32767 as max width
6943 and height (like in gtkwindow.c) instead of G_MAXINT.
6945 Wed Sep 1 04:41:25 1999 Tim Janik <timj@gtk.org>
6947 * cleaned up the GtkContainer.need_resize flag handling mess, we
6948 only need to force resize requests when we were prematurely
6949 realized, or our widget tree was modified when we were temporarily
6950 hidden. handling these cases directly upon showing the window (i.e.
6951 while the GdkWindow is still unmapped) avoids the need to wait for
6952 a configure event response and therefore makes the GUI more snappier
6953 and avoids blank windows during the roundtrip.
6957 (gtk_widget_show): don't queue resizes on toplevels, they know how
6958 to deal with matters.
6960 * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
6961 flag directly for not visible resize containers and spare us unecessary
6965 (gtk_window_realize): if we need to enforce premature size allocation,
6966 queue a container resize so we are correctly resized later on.
6968 (gtk_window_size_request):
6969 don't freak around with the ->need_resize flag,
6970 gtk_container_queue_resize() will care about that.
6972 handle initial resizing issues here, we can handle matters better in
6973 this place, especially since we know that our GdkWindow is still
6975 (gtk_window_move_resize):
6976 don't care about ->need_resize at all.
6977 handle size changes properly that occoured while we waited for a
6980 Tue Aug 31 15:58:46 1999 Owen Taylor <otaylor@redhat.com>
6982 * gtk/gtkwidget.c (gtk_widget_set_uposition):
6983 * gtk/gtkwindow.[hc] (gtk_window_reposition):
6984 Move the hint setting code from gtk_widget_set_uposition
6985 to here; set the hints so that we respect any previously
6988 * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
6989 change the window hints here or move the window here,
6990 let that happen in gtk_window_move_resize().
6992 Tue Aug 31 06:58:52 1999 Tim Janik <timj@gtk.org>
6994 * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
6995 to already queued resizes (and therefore redraws) on a widget, check
6996 its anchestry as well.
6998 * gtk/gtkcontainer.c:
6999 (gtk_container_queue_resize): clear resize widgets for resize
7000 containers before aborting prematurely. this is especially important
7001 for toplevels which may need imemdiate processing or their resize
7002 handler to be queued.
7003 (gtk_container_dequeue_resize_handler): added new internal function for
7006 * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
7007 configure event, take possible changes in window position into account
7009 if we request a new window size, queue up a resize handler that will
7010 last until the configure event response arrives.
7011 combined the ->need_resize case (initial show) with the general size
7012 (hints) changed case and added even more comments.
7013 if !auto_shrink, only revert to the old allocation if the new size
7014 is smaller than the current allocation.
7016 Tue Aug 31 11:55:20 1999 Owen Taylor <otaylor@redhat.com>
7018 * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
7019 gtk_window_set_geometry_hints
7020 gtk_window_set_default_size):
7021 When hints are set, queue a resize so that the hints will
7022 be eventually reset on the toplevel.
7024 * gtk/gtkwindow.c (gtk_window_show): Use
7025 gtk_window_compute_default_size(). Clear the need_resize flag
7026 on the initail map so that we don't unnecessarily trigger the
7029 * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
7030 into separate functions. Compare the hints we are setting
7031 with what we set last time so that we can accurately
7032 tell when we need to reset the hints.
7034 * gtk/gtkwindow.c (gtk_window_compute_default_size): New
7035 function to figure out the size from requisition
7038 * gtk/gtkwindow.c (gtk_window_constrain_size): Function
7039 from fvwm to constrain a size to the geometry hints.
7041 * gtk/gtkwindow.c (gtk_window_compare_hints): New function
7042 to compare two sets of geometry hints.
7044 * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
7045 from gtk_window_set_hints(), just compute the hints,
7048 * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
7049 code from gtk_window_move_resize() to separate function,
7052 Tue Aug 31 13:05:03 1999 Owen Taylor <otaylor@redhat.com>
7054 * gtkrc.h: Move the ref_count member out of the GtkRcStyle
7055 structure into a new private structure.
7057 * gtkrc.c: Split GtkRcStyle into public/private.
7058 In the private part, add a list of pointers to the
7059 RcStyle lists this RcStyle participates in.
7061 * gtkrc.c: When a RcStyle is free, remove all
7062 lists referencing it from the
7063 realized_style_ht hash, and free those lists.
7065 * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
7066 gtk_rc_init(), since that adds the default styles
7067 to the list of parsed RC files again.
7069 * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
7071 Thu Aug 26 14:14:42 1999 Tim Janik <timj@gtk.org>
7073 * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
7074 checks that ensure that a widget's allocation is at least 1 in width
7075 and height. (GNOME note: this doesn't affect old panel code anymore,
7076 because GtkSocket will request width and height of at least 1 since
7079 * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
7080 allocated yet (happens if the user realizes the window prematurely),
7081 size request and allocate it.
7082 (gtk_window_size_allocate): guard against guint underflows.
7084 Wed Aug 25 19:01:36 1999 Lars Hamann <lars@gtk.org>
7086 * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
7087 in gtk_built_sources, so gtk.defs gets built prior to all other
7090 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
7093 invoke indent on gtkmarshal.*.
7094 rewrote source generation rules, use COPYING as oldest source tag for
7095 a piggyback rule to generate all sources from (don't touch it ;).
7096 major cleanups, strip spaces on build rules for GNU Make.
7098 * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
7099 source and target files from commandline arguments. don't invoke indent.
7101 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
7103 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
7104 notebook after switch to avoid drawing problems.
7105 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
7107 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
7109 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
7111 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
7113 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
7114 notebook after switch to avoid drawing problems.
7115 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
7117 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
7119 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
7121 Wed Aug 18 09:20:10 1999 Tim Janik <timj@gtk.org>
7124 we use window->need_resize from configure_event now, to indicate that
7125 the gtkwindow should keep its allocation (e.g. because the user resized
7126 the window through window manager handles). resize_count is now reliably
7127 used to figure whether we got the allocation we requested from the
7129 configure events get queued as resizes now, the real stuff (size
7130 computation and allocation) now only goes on in gtk_window_move_resize().
7131 GtkWindow's requisition now contains its *real* requisition (like all
7132 other widgets), *not* taking usize into account.
7133 geometry_info->last_{width|height} is now updated from set_hints() only
7134 so it always contains the last hints we set for the window manager.
7135 made some event handlers return TRUE instead of FALSE.
7136 the overall code should be much more straight forward now, and the
7137 significant code portions are accompanied by comments now.
7138 (gtk_window_set_hints):
7139 removed requisition argument and made it
7140 fetch the requisition through gtk_widget_get_child_requisition.
7141 we also don't move the gdkwindow here anymore, gtk_window_move_resize()
7144 ensure that the widget is realized before calling
7145 gtk_container_check_resize() (and thus gtk_window_move_resize()), also
7146 ensure that we got properly size requested and allocated before
7148 (gtk_window_configure_event):
7149 ignore plain window moves, or reallocate the widget tree through the
7150 resize queue otherwise.
7151 (gtk_window_move_resize):
7152 mostly rewrote this function to figure window manager hints more
7153 reliably, coalesce window moves and resizes to reduce configure events
7154 and do actuall size allocations.
7156 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
7158 * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
7159 that have a resize pending, because a redraw is already queued for them.
7161 * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
7162 hack to clear resize_widgets.
7164 * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
7165 for resize containers prior to size allocation. (this is also a bit
7166 ugly, but avoids side effects for stopped emissions and is thus more
7168 (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
7170 * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
7171 function from gtk_tooltips_expose, as we connect to ::expose_event
7174 1999-08-18 Federico Mena Quintero <federico@redhat.com>
7176 * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
7178 (gtk_target_list_unref): Likewise.
7180 * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
7182 Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com>
7184 * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
7185 guard against division by zero. (Fixes bug #1339)
7187 Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com>
7189 * gtk/gtkentry.c (gtk_move_{forward,backward}_word):
7190 Prevent the trivial leak of information of allowing
7191 word motion when the entry is not visible.
7193 Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com>
7195 * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
7196 modality to error dialog as well as confirmation dialogs.
7197 (Bug #1803, reported by Rosanna Wing Sze Yuen)
7199 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
7201 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
7203 (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
7205 * gtk/Makefile.am (install-data-local): Solaris apparently
7206 has various troubles with ln -f; use rm first instead.
7207 (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
7209 1999-07-30 Raja R Harinath <harinath@cs.umn.edu>
7211 * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
7212 use `cp' followed by `rm' (the `rm' was already there).
7214 July 30, 1999 Elliot Lee <sopwith@redhat.com>
7216 * configure.in: Fix autoconf warnings about cross compilation by
7217 trying to provide sane defaults for AC_TRY_RUN.
7218 * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
7219 put them into $(srcdir) when generated. Also add a dependency of
7220 gtksignal.h on gtkmarshal.h for -j builds.
7221 * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
7223 Wed Jul 28 09:29:19 1999 Owen Taylor <otaylor@redhat.com>
7225 * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
7226 GDK_THREADS_{LEAVE,ENTER} pair.
7227 (From Paul Fisher <pnfisher@redhat.com>)
7229 Fri Jul 23 01:00:15 1999 Tim Janik <timj@gtk.org>
7231 * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
7232 width and height are always >0 (owen).
7234 Fri Jul 23 00:00:47 1999 Tim Janik <timj@gtk.org>
7236 * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
7237 change that assured that a widget's allocated with and height are
7238 always >1, since this breaks *buggy* panel code. unfortunately this
7239 back-breaks the gimp's color selector.
7241 * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
7242 allocation is always >0 in width and height, before sending the
7243 configure event; this is a *gross* hack to get the gimp back to work.
7245 * marked both cases with TODO-1.3
7247 Wed Jul 21 15:47:39 1999 Owen Taylor <otaylor@redhat.com>
7249 * gtk/gtktext.c: Don't display wrap indicators when
7250 text is not editable and word wrap is on.
7252 Wed Jul 21 08:21:40 1999 Tim Janik <timj@gtk.org>
7254 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
7255 option menus here as they are not derived from menu shell, assure that
7256 the option menu has a menu we can add items to.
7258 Tue Jul 20 23:29:48 1999 Tim Janik <timj@gtk.org>
7260 * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
7261 width/height to (gint) before calculations and check against < 0 to
7262 avoid guint wraparounds.
7264 Sun Jul 18 00:35:49 1999 Tim Janik <timj@gtk.org>
7266 * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
7267 width and height is never zero. sanity check both dimensions against
7268 32767 and issue a warning if the allocation is greater than that.
7270 Wed Jul 7 15:03:30 1999 Owen Taylor <otaylor@redhat.com>
7272 * gtk/gtkmain.c (gtk_events_pending): Unlock around call
7273 to g_main_pending() as well.
7275 Wed Jul 7 14:59:01 1999 Owen Taylor <otaylor@redhat.com>
7277 * gtk/gtkmain.c (gtk_main_iteration): Unlock around
7278 call to g_main_iteration() - since that will regrab
7279 GTK+ lock to process events.
7281 Thu Jul 1 15:01:55 1999 Owen Taylor <otaylor@redhat.com>
7284 - Regularize with the rest of GTK+ by making widget->requisition
7285 not reflect the set_usize()
7286 - Always recompute geometry hints, then check if they
7287 changed before sending them to the X server. The
7288 previous checks for changes would fail in a number
7291 Thu Jul 1 11:55:59 1999 Owen Taylor <otaylor@redhat.com>
7293 * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
7295 Wed Jun 30 19:26:36 1999 Owen Taylor <otaylor@redhat.com>
7299 - Instantaneously update on modifier key presses
7300 - Allow cancellation of the drag with Escape.
7302 Tue Jun 29 17:04:09 1999 Owen Taylor <otaylor@redhat.com>
7304 * gtk/testgtk.c (create_handle_box): Set the policy
7305 to auto_shrink - otherwise the appearance is rather
7306 strange when flipping between horizontal and vertical.
7308 Mon Jun 28 09:29:52 1999 Tim Janik <timj@gtk.org>
7310 * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
7311 (gtk_window_set_default_size): don't change a value if it's < 0.
7314 Sun Jun 27 11:00:33 1999 Tim Janik <timj@gtk.org>
7316 * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
7318 Mon Jun 28 12:08:25 1999 Owen Taylor <otaylor@redhat.com>
7320 * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
7321 add an extra "/" when concating "/" + filename.
7322 (From Matt Grossman <mattg@oz.net>)
7324 Mon Jun 28 10:57:12 1999 Owen Taylor <otaylor@redhat.com>
7326 * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
7327 for fg_gc if we set it for drawing pixmap.
7329 Tue Jun 15 12:45:12 1999 Owen Taylor <otaylor@redhat.com>
7331 Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
7333 * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
7334 already set, call old engine's destroy function and
7335 unref the old engine.
7337 Thu Jun 10 17:59:38 1999 Tim Janik <timj@gtk.org>
7339 * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
7341 Wed Jun 9 15:13:16 1999 Tim Janik <timj@gtk.org>
7343 * gtk/gtkaccelgroup.h: mark certain functions as internal.
7345 Wed Jun 9 13:48:28 1999 Tim Janik <timj@gtk.org>
7347 * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
7348 expand behaviour changed.
7350 * gtk/gtklabel.c (gtk_label_set_pattern):
7351 (gtk_label_set_justify):
7352 (gtk_label_set_line_wrap):
7353 don't bother invoking queue_clear, the reallocation does
7354 that for us, always free_words so the upcoming resize will
7355 relayout the label's contents.
7357 Wed Jun 9 12:50:48 1999 Tim Janik <timj@gtk.org>
7359 * applied argument implementation patches from Elena Devdariani
7362 * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
7363 ::space_style, ::relief
7364 * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
7365 * gtk/gtkpreview.c: ::expand
7366 * gtk/gtkpaned.c: ::handle_size, ::gutter_size
7367 * gtk/gtknotebook.c: ::homogeneous
7368 * gtk/gtklabel.c: ::wrap
7369 * gtk/gtklist.c: ::selection_mode
7370 * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
7371 * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
7372 * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
7373 * gtk/gtkclist.c: ::sort_type
7374 * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
7375 * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
7377 Tue Jun 1 23:38:38 1999 Owen Taylor <otaylor@redhat.com>
7379 * gtk/gtkstyle.c: Removed ill-thought-out part of last
7382 Tue Jun 1 23:30:09 1999 Owen Taylor <otaylor@redhat.com>
7384 * gtk/gtkstyle.c (gtk_style_attach): Get the reference
7385 counting right when we have to attach a new style
7386 for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
7388 * gtk/gtkstyle.c: Documented the refcounting
7389 peculularities of gtk_style_attach.
7391 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
7393 * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
7396 * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
7397 of GTK_TOPLEVEL for creating the window.
7399 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
7401 * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
7402 the last argument (reported by Per Winkvist).
7404 Tue May 25 13:13:12 1999 Owen Taylor <otaylor@redhat.com>
7406 Fixes for invisible XOR lines (Frank Loemker
7407 <floemker@TechFak.Uni-Bielefeld.DE>)
7409 * gtk/gtkclist.c (gtk_clist_realize): Always use
7410 a non-zero pixel for GDK_XOR.
7412 * gtk/gtkvpaned.c gtk/gtkhpaned.c:
7413 Use GDK_INVERT instead of GDK_XOR.
7415 Wed May 12 21:56:40 1999 Lars Hamann <lars@gtk.org>
7417 * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
7418 signals if h/voffsets differ from adjustment values.
7419 Reportet by Jerome Bolliet <bolliet@in2p3.fr>
7421 Mon May 10 04:20:41 1999 Tim Janik <timj@gtk.org>
7423 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
7424 ::selection-done emissions up to the topmost menu shell.
7426 Fri May 7 10:15:14 1999 Owen Taylor <otaylor@redhat.com>
7428 * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
7429 the user data on the window before destroying it.
7431 * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
7432 unrealize handler to take care of destroying
7433 notebook->panel properly.
7434 (Bug #1198 - Morten Welinder <terra@diku.dk>)
7436 * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
7437 of g_new and g_realloc to stop memory leak. (Actually,
7438 we could just use g_realloc(), but I'm not 100% sure
7440 (Bug #1196 - Morten Welinder <terra@diku.dk>)
7442 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
7444 * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
7446 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
7449 * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
7450 with bin/button confusion.
7452 Thu May 6 04:53:26 1999 Tim Janik <timj@gtk.org>
7454 * gtk/testgtk.c: in the ItemFactory test, link radio items together,
7455 and show how preselection of radio items is done.
7457 Sun May 2 13:31:14 1999 Tim Janik <timj@gtk.org>
7459 * gtk/gtktreeitem.c (gtk_tree_item_set_subtree):
7460 * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
7461 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
7462 * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
7463 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add):
7464 * gtk/gtktable.c (gtk_table_attach):
7465 * gtk/gtklist.c (gtk_list_insert_items):
7466 * gtk/gtkmenushell.c (gtk_menu_shell_insert):
7467 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu):
7468 * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add):
7469 * gtk/gtkbin.c (gtk_bin_add):
7470 * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end):
7471 * gtk/gtkfixed.c (gtk_fixed_put):
7472 * gtk/gtklayout.c (gtk_layout_put):
7473 general fixups to container_add logic. always realize child if
7474 child->parent is realized, only map the child and queue a resize
7475 if child and child->parent are both visible.
7477 Fri Apr 30 09:02:28 1999 Tim Janik <timj@gtk.org>
7479 * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
7480 instead of gtk_container_foreach to walk and unrealize children, so
7481 composite children get also unrealized.
7482 (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
7483 (gtk_widget_map): assert that the widget is visible (basic constrain).
7484 (gtk_widget_real_map): assert that the widget is realized (basic
7487 Fri Apr 29 00:53:20 1999 Tim Janik <timj@gtk.org>
7489 * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
7491 Tue May 4 09:32:08 1999 Owen Taylor <otaylor@redhat.com>
7493 * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
7494 file for iso-8859-2 locales.
7496 * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
7498 Tue Apr 27 16:38:32 1999 Owen Taylor <otaylor@redhat.com>
7500 * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
7501 (Pointed out by andy@rz.uni-karlsruhe.de and others).
7502 Remove some suspicious and useless lines.
7504 Tue May 4 08:44:08 1999 Owen Taylor <otaylor@redhat.com>
7506 * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use
7507 width,height = 0, 0 to mean - here to edge of window,
7508 instead of -1, -1, since the former is all we support.
7510 Tue May 4 08:34:43 1999 Owen Taylor <otaylor@redhat.com>
7512 * gtk/gtkmain.c (gtk_main): Correctly free list nodes
7513 when removing from quit_functions list.
7515 Tue Apr 27 14:17:16 1999 Tim Janik <timj@gtk.org>
7517 * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
7519 Tue Apr 27 18:23:35 1999 Owen Taylor <otaylor@redhat.com>
7521 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
7522 When redrawing characters on non-visible entry, use appropriate
7523 '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
7525 Tue Apr 27 01:31:40 1999 Lars Hamann <lars@gtk.org>
7527 * gtk/gtkclist.c (drag_dest_cell): compute destination cell
7528 from drag coordinates.
7529 (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
7532 * gtk/gtktree (drag_dest_cell)
7533 (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
7536 Wed Apr 21 21:26:11 1999 Tim Janik <timj@gtk.org>
7538 * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
7540 (gtk_item_factory_finalize): invoke translate_notify independant from
7542 (gtk_item_factory_set_translate_func): likewise.
7543 (gtk_item_factory_destroy): only remove ifactory pointer from those
7544 widgets that belong to us (stupid me).
7546 Mon Apr 19 12:05:31 1999 Owen Taylor <otaylor@redhat.com>
7548 * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
7549 rc_style list when lookup succeeeds.
7551 Thu Apr 15 01:11:24 1999 Lars Hamann <lars@gtk.org>
7553 * gtk/gtkctree.c (resync_selection):
7554 * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
7555 * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
7558 Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
7560 * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
7561 Add some missing GDK_THREADS_ENTER()/LEAVE around
7562 timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
7564 Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
7566 * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
7567 rather than emit_by_name.
7569 * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
7570 on the widget across multiple signal emissions.
7571 (gtk_editable_delete_text): same here.
7572 (gtk_editable_class_init): set widget_class->activate_signal after
7573 editable_signals[ACTIVATE] has been created.
7575 Wed Apr 7 22:59:47 1999 Owen Taylor <otaylor@redhat.com>
7577 * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
7578 position here prematurely -- we might not have the
7579 right ->min_position and ->max_position yet.
7581 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
7583 * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
7584 Add error traps so if the other end of the connection
7587 * gtk/gtkselection.c (gtk_selection_notify): Clean
7588 up properly when selection property retrieval fails.
7590 * gtk/gtkselection.c (gtk_selection_request): Correctly
7591 reject SelectionRequest notifies where the handler
7594 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
7596 * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
7597 when we've previously highlighted.
7599 * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
7600 emit two "drag_leave" signals for Motif drops.
7602 * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
7603 back the correct status messages when dropping from
7604 Motif onto a proxy window that is rejecting the
7607 Sat Mar 27 23:32:13 1999 Tim Janik <timj@gtk.org>
7609 * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
7610 the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
7611 to compare two argument values. added gtk_arg_to_valueloc() to set a
7612 variable from an arg through its location (pointer).
7614 * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
7615 gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
7616 as gfloat*, uchars are collected as guchar*, ints are collected as
7619 Mon Mar 29 17:45:47 1999 Owen Taylor <otaylor@redhat.com>
7621 * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
7622 Include <string.h> instead of <strings.h>.
7624 * gtk/gtkstyle.c: Fix double include of gtkthemes.h
7625 (actually, a lot more duplicate includes occur if
7626 you trace through the sequence of #include's)
7627 gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
7629 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
7631 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
7632 gtk-a-higuti-990322-[0-3]
7634 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
7635 that was causing -DX_LOCALE not to work.
7637 * gtk/gtkrc.c (gtk_rc_init):
7638 X_LOCALE will never have LC_MESSAGES defined
7640 Thu Mar 25 12:38:31 1999 Tim Janik <timj@gtk.org>
7642 * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
7643 g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
7645 * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
7646 left/right as well (gtk-michael-980726-0.patch.gz).
7648 * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
7649 for pointer values, use gchar instead of char. fixed uline allocation
7650 leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
7651 chunks instead of G_ALLOC_ONLY.
7652 (gtk_label_size_request): always alter requisition as passed and leave
7653 widget->requisition alone.
7654 (gtk_label_set_text): allow NULL strings.
7655 (gtk_label_new): likewise.
7657 Wed Mar 24 09:24:03 1999 Tim Janik <timj@gtk.org>
7659 * gtk/gtkdrawingarea.[hc]: type/macro fixups.
7661 Mon Mar 22 05:51:34 1999 Tim Janik <timj@gtk.org>
7663 * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
7664 *and* mapped (i.e. drawable).
7665 (gtk_bin_expose): only send exposes to drawable children.
7667 * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
7668 (gtk_box_expose): only send exposes to drawable children.
7670 * gtk/gtkhscale.c (gtk_hscale_draw):
7671 * gtk/gtkvscale.c (gtk_vscale_draw):
7672 hm, this is an ugly one. we first compute the size of our trough area
7673 here (window relative) and then check intersection with the draw_area
7674 which is parent relative because we're a NO_WINDOW widget, so we need
7675 to offset the trough area by allocation.x and allocation.y before the
7676 check. (this must not be done for the background area though, since
7677 that's already computed parent relative).
7679 Mon Mar 22 00:41:39 1999 Lars Hamann <lars@gtk.org>
7681 * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
7682 unrealize title buttons.
7684 Fri Mar 19 00:00:22 1999 Lars Hamann <lars@gtk.org>
7686 * gtk/gtkclist.c (gtk_clist_column_title_passive)
7687 (gtk_clist_column_title_active):
7688 only connect/disconnect to GtkWidgetClass::event to block mouse events.
7690 * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout):
7691 zero initialize event, removed superfluous gdk_window_get_pointer call
7693 * gtk/gtklist.c (gtk_list_vertical_timeout)
7694 (gtk_list_horizontal_timeout): removed superfluous
7695 gdk_window_get_pointer call
7697 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
7699 * plugging problems reported by "Bruce Mitchener, Jr."
7700 <bruce@puremagic.com> due to a purify session.
7704 (gtk_style_unref): assert ref_count to be > 0.
7706 * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
7708 (gtk_clist_set_shift): likewise.
7710 * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
7713 * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
7714 event before sending it and set send_event to TRUE (which needs to
7715 be done for *all* synthesized events).
7716 (gtk_list_vertical_timeout): likewise.
7718 * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
7721 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
7722 to TRUE when synthesizing events.
7724 [ *** end of merges from 1.2 *** ]
7726 1999-11-21 Tor Lillqvist <tml@iki.fi>
7728 * gdk/gdkconfig.h: Remove, as this is a file generated by configure
7729 (or copied from gdkconfig.h.win32 on Win32, sigh).
7731 * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
7733 * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
7735 * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
7737 * gdk/gdkconfig.h.win32: New file.
7739 * gdk/win32/makefile.cygwin: Build just a static archive here.
7741 * gdk/makefile.cygwin: New file. Get the win32-specific stuff
7742 for the DLL from the static archive built above.
7744 * gdk/gdk.def: Moved here from the win32 subdirectory.
7746 * gdk/win32/*: Adapt for the changed private struct organisation.
7748 * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
7750 Sun Nov 21 16:44:35 1999 Stefan Jeske <stefan@gtk.org>
7752 * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support
7753 for wheel mice (buttons 4 and 5).
7755 1999-11-18 Tor Lillqvist <tml@iki.fi>
7757 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
7758 drawables use just the pixel field in the foreground and
7759 background GdkColor of the GdkGC.
7761 gdk_gc_set_{fore,back}ground() are called in the GIMP with
7762 GdkColors containing uninitialized (red,green,blue) fields, and
7763 just the pixel field filled in, and furthermore in the
7764 visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
7765 It thus turns out that we really don't need to have the full
7766 GdkColor for fg and bg in GdkGCWin32Data after all. Will change
7767 it later to have just the pixel values.
7769 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
7771 * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
7773 Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
7775 * docs/gtkfaq.sgml: threads example from Erik Mouw.
7776 New question on GtkLabel background colors.
7778 * docs/gtk_tut.sgml:
7779 - Correct the example code callback
7780 function definitions.
7781 - Update the gtkdial example code, from Frans van Schaik.
7782 - Update setselection.c to current API.
7784 * examples/Makefile examples/*/*.c: Update to code
7787 1999-11-10 Tor Lillqvist <tml@iki.fi>
7789 * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
7790 subrange table (from the "Developing International Software for
7791 WIndows 95 and Windows NT" book) was missing the Hangul syllable
7792 block... Get the loaded font's charset correctly.
7794 (Note that this, and the other *-win32.c files, still really are
7795 the old ones, the win32 subdirectory is not ready for compilation
7796 yet after the reorg.)
7798 Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
7800 * gtk/gtkclist.c: Fix off-by-one bug in parameter
7803 Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
7805 * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
7806 on results of XQueryDeviceState().
7808 Mon Nov 8 16:40:43 1999 Owen Taylor <otaylor@redhat.com>
7810 * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
7811 we need to accesss only ->children. We need an accessor
7814 * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
7815 DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
7816 to get rid of gdkx.h include.
7818 * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
7819 and random references to 'None'.
7821 * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
7822 Get rid of unused #include <gdk/gdkx.h>
7824 * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
7825 gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
7828 1999-11-08 Tor Lillqvist <tml@iki.fi>
7830 * gdk/win32/gdkdraw.c
7831 * gdk/win32/gdkfont.c
7832 * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
7833 following yesterday's changes. (Unrelated to Owen's reorg.)
7835 Mon Nov 8 16:18:25 1999 Owen Taylor <otaylor@redhat.com>
7837 * gdk/x11/gdkinput-gxi.c: Add missing include,
7838 fix GdkWindowPrivate => GdkDrawablePrivate.
7840 * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
7842 * gdk/x11/Makefile.am (xinput_sources): Add missing
7843 backslash to fix building with --with-xinput=none
7845 Mon Nov 8 14:47:04 1999 Owen Taylor <otaylor@redhat.com>
7847 Move all X specific code into the x11/ directory.
7848 Aside from shuffling things around, did the following:
7850 * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
7851 gdk_arg_context_* - a simple argument parsing system
7852 in the style of popt.
7854 * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
7855 gdk/x11/gdkprivate-x11.h:
7856 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
7857 add ->klass and ->klass_data fields. The klass_data
7858 field points to an auxilliary structure that is
7859 windowing system dependent.
7861 * gdk/gdkfont.c: Make most of the measurement functions
7862 simply wrappers around gdk_text_extents().
7864 * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
7865 _gdk_font_strlen() function that hides the weird
7866 behavior in gtk+-1.[02] where a string is interpreted
7867 differently for 8-bit and 16-bit fonts.
7869 * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
7870 to store common code for synthesizing double/triple
7873 * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
7874 Make all the function that modify an existing GC
7875 simply wrappers around gdk_gc_set_values().
7877 * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
7878 for throwing out later.
7880 * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
7881 GdkImagePrivate and GdkColormapPrivate to have a
7882 windowing system dependent part (GdkFontPrivateX etc.)
7883 that "derives" from the system-independent part.
7885 * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
7886 Got rid of the included-source-files for XInput in
7887 favor of automake conditionals. (Which didn't exist
7888 when XInput support was originally added.)
7890 * gdk/gdkrgb.c: Remove the visual id from the debugging
7891 statements since that is X11 specific; print out
7892 type/depth info instead.
7895 Wed Nov 3 18:14:49 1999 Owen Taylor <otaylor@redhat.com>
7897 * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
7898 loading duplicates of hashed fonts.
7900 * gdk/gdk.c (gdk_keysym_convert_case): rename
7901 gdk_XConvertCase to gdk_keysym_convert_case, allow
7902 results to be NULL in the GTK+ style.
7904 * gdk/gdkcompat.h: Started compatibility header
7907 1999-11-07 Tor Lillqvist <tml@iki.fi>
7909 * gdk/win32/gdkprivate.h: New font private structures, related to
7912 * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
7913 gdk_font_list_free(). On X11, will just be wrappers to
7914 XListFonts() and XFreeFontNames(). On Win32, the code previously
7915 in gtkfontsel.c is now here.
7917 New function gdk_font_xlfd_create(). On X11 will get the FONT
7918 property of the font (for GDK_FONT_FONTs), or call
7919 XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
7920 builds a XLFD style name from the font information in the LOGFONT
7923 New function gdk_font_xlfd_free(), which correspondingly frees the
7924 string returned by gdk_font_xlfd_create().
7926 Implement fontsets on Win32. Add a function that iterates over a
7927 wide char string and calls a callback function for each substring
7928 of wide chars from the same Unicode subrange (and thus probably
7929 available in the same real font).
7931 Improve the XLFD emulation a bit.
7933 * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
7935 * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
7936 Beta3, WM_IME_CHAR messages don't seem to contain the composed
7937 multi-byte char as with the Active IMM on Win9x. Oh well, handle
7938 WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
7939 ImmGetCompositionStringW() to get the composed Unicode chars.
7942 * gdk/win32/gdkdraw.c: Changes needed because of the font private
7945 * gdk/win32/gdk.def: Add the new functions.
7947 1999-11-04 Tor Lillqvist <tml@iki.fi>
7949 * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
7950 get the Platform SDK to get <dimm.h>.
7952 * gdk/win32/gdkevents.c: More event handling fixes and
7953 simplification. Never generate motion events with is_hint true. We
7954 used to do that on bogus grounds earlier. Windows sends
7955 WM_MOUSEMOVE messages on button events even if the mouse hasn't
7956 moved, ignore these.
7958 * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
7960 * gdk/win32/gdkglobals.c
7961 * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
7962 the TrackMouseEvent function, and use it.
7964 * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
7965 char before calling WideCharToMultiByte in order to get a string
7966 for the window title.
7968 * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
7970 * gdk/win32/gdk.def: Remove obsolete functions.
7972 * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
7973 /nodefaultlib and /defaultlib switches.
7975 * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
7977 1999-10-31 Tor Lillqvist <tml@iki.fi>
7979 * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
7982 * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
7983 same type as GdkWChar, especially on Win32.
7985 * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
7987 * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
7988 before passing to Windows GDI for drawing etc. Convert to the
7989 system default codepage before passing to Windows as window
7992 * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
7993 support changing input locale on the fly.
7995 * gdk/win32/gdkevent.c: Support input language (keyboard locale)
7996 on-the-fly changes. Convert incoming characters from the current
7997 codepage to Unicode (and then to a UTF-8 multi-byte string) based
7998 on the current input language. Use keysym<->Unicode mapping tables
7999 and functions borrowed from xterm sources.
8001 Support IMEs (Input Method Editors) for CJK languages. On non-CJK
8002 editions of Win9x, use the ActiveX-based Active IMM (Input Method
8003 Manager) if available. IMEs and the Active IMM are available under
8004 the disguise of Chinese, Korean and Japanese support for IE and
8005 Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
8006 support is present in all editions (as long as you install it).
8008 Call DispatchMessage from gdk_events_queue() (and thus
8009 gdk_WindowProc()), instead of duplicating the code in
8012 Reworked the grab handling and propagation code, factored out
8013 duplicated code snippets into separate functions. Other cleanups,
8016 * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
8017 the <dimm.h> header describing the Active IMM.
8019 * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
8020 just do the same as for "single" fonts.
8022 * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
8023 gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
8024 the new keysyms from gdkkeysyms.h.
8026 * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
8027 fontset, so that gtkentry uses wide characters.
8029 * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
8030 GTk+'s system directory "gtk+", not "gtk".
8032 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
8034 * docs/gtkfaq.sgml: FAQ update
8036 1999-10-21 Tor Lillqvist <tml@iki.fi>
8038 * gdk/win32/gdkprivate.h: Add more font private data.
8040 * gdk/win32/gdkfont.c
8041 * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
8042 fonts and strings. Now works much better. You still have to
8043 have a correct font selected, though. No fontset emulation yet.
8045 1999-10-19 Tor Lillqvist <tml@iki.fi>
8047 * gtk/maketypes.awk: Use G_OS_WIN32.
8049 * gtk/gtk.def: Add some missing entry points. Also some non-public
8050 ones, but PyGTK porter claims to need them.
8052 * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
8053 built-in type generation.
8055 1999-10-14 Tor Lillqvist <tml@iki.fi>
8057 * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
8058 GDK_FONT_FONT fonts (which is all we have for now, we don't
8059 emulate fontsets). The X11 version uses plain XDrawString in that
8060 case, too. The string passed to gdk_draw_text_wc seems to be in
8061 fact (at least, when used by gtkentry and gtktext) either in a
8062 single-byte charset, or a DBCS. Not Unicode.
8064 This fixes the problem in gtkfontsel, where even if you had
8065 selected a font with a non-Latin1 charset (windows-greek, for
8066 instance), the preview still used Latin-1 glyphs.
8068 * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
8069 use GetTextExtentPoint32W, use GetTextExtentPoint32A.
8070 (gdk_font_load): Recognize the demibold etc weights, even if we
8071 don't have the corresponding constants in the headers.
8072 (gdk_font_hash_insert): Use same hash mechanism as in the X11
8073 version. Should save font resources a bit, when we don't have
8074 multiple HFONTs for the same font.
8076 * gdk/win32/gdkprivate.h: Add the names field as in the X11
8079 1999-10-11 ERDI Gergo <cactus@cactus.rulez.org>
8081 * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
8084 1999-10-09 ERDI Gergo <cactus@cactus.rulez.org>
8086 * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
8087 layout support (as mentioned on
8088 http://www.jcinteractive.com/gnome-ui/software/widgets/)
8090 Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
8093 * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
8095 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
8097 * configure.in (ALL_LINGUAS): Added Galician (gl)
8099 1999-10-05 Tor Lillqvist <tml@iki.fi>
8101 * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
8103 * gdk/win32/gdkcompat.c: New file, actually provide an
8104 implementation for the deprecated functions. (Just temporarily.)
8106 * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
8108 * gtk/makefile.{cygwin,msc}: Update gdk_headers.
8110 * gdk/win32/gdk.def gtk/gtk.def: Updates.
8112 1999-10-05 Kjartan Maraas <kmaraas@online.no>
8114 * configure.in: Added "uk" to ALL_LINGUAS.
8116 Mon Oct 4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
8118 * configure.in: correct checking for BeOS check
8123 * gtk/gtkitemfactory.c
8125 * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
8127 Mon Oct 4 16:16:53 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
8129 * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
8130 encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
8131 languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
8134 Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com>
8136 * gtk/gtkwidget.c (gtk_reset_shapes_recurse):
8137 Fix a reference to window_private->destroyed.
8139 * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
8140 (ugly) setting of an internal GdkWindow member to use
8141 a _slightly_ cleaner macro.
8143 * gdk/gdkprivate.h: Split GdkWindowPrivate into
8144 GdkDrawablePrivate and GdkWindowPrivate.
8145 Add extra macros for accessing GDK_DRAWABLE_ components.
8147 * *.[ch]: Massive adjustments for the above, use the
8148 new macros in a lot of places.
8150 Sun Oct 3 15:16:24 1999 Owen Taylor <otaylor@redhat.com>
8152 * gdk/gdktypes.h: Make GdkDrawable the base type,
8155 Sun Oct 3 15:08:44 1999 Owen Taylor <otaylor@redhat.com>
8157 * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
8159 Sun Oct 3 14:26:15 1999 Owen Taylor <otaylor@redhat.com>
8161 * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
8163 Sun Oct 3 14:16:23 1999 Owen Taylor <otaylor@redhat.com>
8165 * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
8166 gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
8168 * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
8170 * docs/gtk-config.1: Now autogenerated.
8171 * docs/Changes-1.4.txt: started
8173 1999-10-03 Tor Lillqvist <tml@iki.fi>
8175 * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
8176 to #ifdef also here.
8178 * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
8179 Owen did to the X11 backend.
8181 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
8182 ScrollWindowEx when blitting inside a window, it can't be correct
8183 in the general case.
8185 * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
8186 WM_GETMINMAXINFO is easier.
8188 * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
8189 depth equal to the bitspixel value, not the visual's depth.
8191 * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
8192 to 24 even if the bitspixel value is 32.
8194 * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
8195 need to check for depth==32 when bpp==32, depth will always be 24.
8197 Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com>
8199 * docs/Changes-1.4.txt: Started
8201 * gtk/Makefile.am (gdk_headers): Include all the new headers.
8203 * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
8205 * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
8208 * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
8209 header to gdkinputprivate.h.
8211 * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
8212 unused since before 1.2.
8214 1999-09-30 Tor Lillqvist <tml@iki.fi>
8216 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
8217 expand possible hex escapes in the font family (put there by
8218 logfont_to_xlfd if the font name isn't a legal XLFD font family,
8219 mainly if it contains slashes). (gtk_font_selection_create_xlfd):
8220 On Win32, add hex escapes here, too.
8222 Wed Sep 29 19:55:35 1999 Owen Taylor <otaylor@redhat.com>
8224 * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
8225 to #ifdef GDK_WINDOWING_X11.
8227 [ Merges from gtk-1-2 ]
8229 Wed Sep 8 07:13:29 1999 Tim Janik <timj@gtk.org>
8231 * configure.in: fixed "GNU Make" check to pass with new make version
8234 Fri Sep 3 16:04:41 1999 Tim Janik <timj@gtk.org>
8236 * gtk-config.in (--version): don't echo @GTK_VERSION@, but
8237 @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
8238 AM_PATH_GTK() macros don't get confused by the -pre1.
8240 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
8242 * configure.in (REBUILD): Change check for perl5
8243 to check explicitely for v >= 5.002. (5.001
8244 does not work with our scripts.)
8246 Wed Aug 25 15:45:46 1999 Tim Janik <timj@gtk.org>
8248 * configure.in: evaluate $PERL for the perl version check. added
8249 --disable-rebuilds to give the user an option to completely disable
8250 any source autogeneration rules.
8252 Mon Aug 23 23:16:14 1999 Tim Janik <timj@gtk.org>
8254 * configure.in: evaluate $ac_make when checking for GNU Make.
8256 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
8258 * docs/Makefile.am: added generation.txt.
8260 * Makefile.am: require automake 1.4, build README from README.in and
8261 INSTALL from INSTALL.in in dist-hook.
8264 * INSTALL.in: new files to autogenerate README and INSTALL from.
8266 * configure.in: figure whether we have GNU Make
8268 * docs/generation.txt: minor additions/corrections.
8270 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
8272 * docs/gtkfaq.sgml: FAQ Update
8274 July 30, 1999 Elliot Lee <sopwith@redhat.com>
8276 * configure.in: Fix autoconf warnings about cross compilation by
8277 trying to provide sane defaults for AC_TRY_RUN.
8279 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
8282 * ltmain.sh: upgrade to libtool 1.3.3
8284 Thu Jul 8 11:30:18 1999 Owen Taylor <otaylor@redhat.com>
8286 * INSTALL: Indicate that the --with-glib= configure
8287 time flag is unsupported.
8289 Mon Jul 5 20:36:03 1999 Owen Taylor <otaylor@redhat.com>
8291 * docs/generation.txt: Added a file that gives
8292 documenation about the autogeneration process for
8293 various autogenerated files.
8295 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
8297 * configure.in (LIBS): Look for libgmodule in the
8300 Thu Jun 17 13:57:31 1999 Owen Taylor <otaylor@redhat.com>
8302 * docs/gtk_tut.sgml: Removed references to
8303 code examples in my directory on gtk.org as
8304 they should all be in the tutorial now.
8306 * docs/gtk_tut.sgml: Added sources for dial-test
8307 and scribble-xinput programs that were previously
8310 Fri Jun 4 00:08:59 1999 Owen Taylor <otaylor@redhat.com>
8312 * TODO: Added entry about menu keyboard navigation, removed
8313 some finished items.
8315 Mon May 31 00:11:24 1999 Owen Taylor <otaylor@redhat.com>
8317 * acinclude.m4: Standardize on func_dgettext
8318 not func_gettext, so that the checks for dgettext
8319 actually are paid attention to.
8321 Wed May 5 10:47:54 1999 Owen Taylor <otaylor@redhat.com>
8323 * configure.in (LIBS): Add $INTLLIBS into $LIBS
8324 directly, rather than repeating the checks for
8327 * INSTALL: Added information about gettext and
8330 * acinclude.m4 (LIBM): Check for dgettext, not
8331 just gettext. This should hopefully fix things wrt
8332 systems with old versions of GNU gettext installed.
8334 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
8336 * configure.in (LIBS): Look for libgmodule in the
8339 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
8341 * autogen.sh: add --enable-maintainer-mode
8343 * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
8345 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
8347 * docs/gtk-config.1.in:
8349 configure.in: gtk-config is now generated.
8351 * docs/gtk-config.1: Removed, now generated.
8353 Thu Sep 23 17:59:59 1999 Tim Janik <timj@gtk.org>
8355 * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
8356 handle CreateNotify itself, still put out a debuging message for
8357 --gdk-debug=events. made the ReparentNotify debugging message more
8359 wrap xcoords translation for ConfigureEvents into an error trap,
8360 a destroy event may already be pending, and in that case, the
8361 actuall coordinate values are not at all critical.
8363 Sat Sep 18 22:24:15 1999 Owen Taylor <otaylor@redhat.com>
8365 * gdk/gdkcc.c: Stop leaking the color_hash all over
8366 the place. Simplify and improve the logic.
8368 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
8370 * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
8371 for prototypes and function implementations consistent (reported
8374 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
8376 * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
8377 send_event set in debugging output.
8378 (gdk_compress_exposures): default initialize the event so we don't
8379 operate on bogus values (namely send_event).
8381 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
8383 * gdk/gdkwindow.c: When we receive an unexpected
8384 destroy notify on one of our windows, don't just
8385 warn about it, also mark our windows as destroyed.
8387 Sun Sep 5 08:10:53 1999 Owen Taylor <otaylor@redhat.com>
8389 * gdk/gdkfont.c (gdk_font_hash_insert): Add
8390 name => font and name => fontset hashes. The
8391 name => fontset hash is a _big_ win since we
8392 weren't previously caching fontsets at all and loading
8393 fontsets is expensive. The name => font hash
8394 is less of a win, but it does save us from doing
8395 repeated XQueryFont calls on the same font.
8397 * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
8398 list so we can remove font/fontset from hash.
8400 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
8402 * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
8403 and slightly confusing test. [ XInternAtom (,,TRUE)
8404 will never return None ].
8406 Sat Sep 4 08:39:26 1999 Owen Taylor <otaylor@redhat.com>
8408 * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
8409 gdk/gdkwindow.c (gdk_window_set_hints):
8411 Don't omit setting the properties if flags == 0 -
8412 there may be an existing set of properties there
8413 already. (Very old bug. Would it be better to
8414 delete the property instead?)
8416 * gdk/gdkselection.c (gdk_selection_property_get): Fix
8417 spelling error in comment.
8419 Wed Sep 1 14:05:30 1999 Owen Taylor <otaylor@redhat.com>
8421 * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
8422 to avoid stomping over gdk_error_warnings.
8424 * gdk/gdkimage.c (gdk_image_new): compute image->bpp
8425 as (bits_per_pixel + 7) / 8. This gives the same
8426 result as before for multiples of 8, but actually
8427 a "reasonable" value for 1bit or 4bit displays.
8429 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
8431 * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
8434 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
8436 * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
8437 discarding configure events.
8439 1999-08-18 Federico Mena Quintero <federico@redhat.com>
8441 * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
8442 refcount is greater than zero.
8444 * gdk/gdkwindow.c (gdk_window_unref): Likewise.
8446 * gdk/gdkfont.c (gdk_font_unref): Likewise.
8448 * gdk/gdkgc.c (gdk_gc_unref): Likewise.
8450 * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
8452 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
8454 * gdk/gdkproperty.c (gdk_property_get): Fix assumption
8455 that format 32 => sizeof(item) == 4. It really is
8458 Tue Jun 29 23:02:42 1999 Owen Taylor <otaylor@redhat.com>
8460 * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
8461 core dump at all on X IO errors, only core dump
8462 if --enable-debug for X errors.
8464 Thu Jun 24 17:06:23 1999 Tim Janik <timj@gtk.org>
8466 * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
8467 unknown window:" message. disabled ConfigureNotify discarding code,
8468 because it led to events being processed out of order.
8470 Thu Jun 24 12:22:02 1999 Tim Janik <timj@gtk.org>
8472 * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
8474 * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
8475 we export this function, supress error warnings and don't reset the
8476 error code in the first half of this function.
8478 * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
8479 code (instead of just -1) so gdk_error_trap_pop() reveals something
8480 actually informative about the error that happened.
8483 don't rely on gdk_error_code being -1 if an error occoured, but just
8484 gdk_error_code != 0.
8486 Thu Jun 24 11:50:07 1999 Tim Janik <timj@gtk.org>
8488 * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
8489 pointer *before* invoking the filter function, so we at least don't
8490 crash if a filter is removed that is currently executed. window filters
8491 *really* need to be made truely reentrant at some point.
8493 Mon Jun 14 11:10:15 1999 Tim Janik <timj@gtk.org>
8495 * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
8496 PropertyNotify debug messages.
8498 Wed May 5 22:51:06 1999 Owen Taylor <otaylor@redhat.com>
8500 Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
8502 * gdk/gdkim.c: Fix cut-and-paste errors for
8503 x/y and PreeditAttributes/StatusAttributes.
8505 Wed May 5 22:24:21 1999 Owen Taylor <otaylor@redhat.com>
8507 * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
8508 G_MAXINT to 2^16 to alleviate overflow problems in
8509 various window managers.
8511 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
8513 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
8516 Wed May 5 12:42:01 1999 Owen Taylor <otaylor@redhat.com>
8518 * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
8519 Initialize size_hints.x and size_hints.y because kwm
8520 brokenly pays attention to them.
8521 (Bug #1181 - Lars Heete <hel@admin.de>)
8523 Wed May 5 11:38:56 1999 Owen Taylor <otaylor@redhat.com>
8525 * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
8526 return value of gdk_list_visuals().
8527 (Bug #1193 - Morten Welinder <terra@diku.dk>)
8529 Tue May 4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
8531 * gdk/gdkim.c (gdk_im_real_open): cast the return value of
8532 XSetIMValues to (void *) when comparing to NULL, to workaround
8533 the problem of some compilers barfing since older X headers don't
8534 have the prototype for it.
8536 Mon Apr 19 10:11:12 1999 Owen Taylor <otaylor@redhat.com>
8538 * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
8539 for pseudocolor where colormap->colors was double
8542 * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
8543 color value in the hash table with the pixel filled
8544 in so when we do later hash table lookups, the color
8547 Sun May 2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
8549 * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
8552 Tue Apr 27 11:17:35 1999 Owen Taylor <otaylor@redhat.com>
8554 * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
8555 pointed out by Morten Welinder <terra@diku.dk>.
8557 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
8559 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
8560 default filter from the list
8562 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
8564 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
8565 default filter from the list
8567 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
8569 * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
8571 * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
8572 g_strdup_printf instead of calcing the length separately
8574 Tue Apr 13 02:49:33 1999 Owen Taylor <otaylor@redhat.com>
8576 * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
8577 that we don't do in many other places. (Fixing duplicate
8578 #include of config.h)
8580 * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
8581 Otherwise, #ifndef XINPUT_NONE check in the latter
8582 doesn't work. (Bug #546)
8584 Sun Apr 11 14:38:03 1999 Tim Janik <timj@gtk.org>
8586 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
8587 "None" case insensitive.
8589 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
8591 * gdk/gdkselection.c:
8592 Add error traps so if the other end of the connection
8595 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
8597 * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
8598 dest_xid field into two fields - one for the window
8599 to send in messages, one to indicate the last looked
8600 up window for caching purposes. This is needed, so
8601 that Leave messages get the correct window.
8603 Mon Apr 5 13:21:30 1999 Owen Taylor <otaylor@redhat.com>
8605 * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
8606 Fix warning created by people mucking around
8607 with the gsource API.
8609 * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
8610 Change mapping between GIOCondition and GdkInputCondition
8611 to match the way the Linux kernel does it. This should
8612 fix problems where closed pipes were no longer signalling
8613 GDK_INPUT_READ on systems with a native poll().
8615 Mon Apr 5 17:11:57 1999 Owen Taylor <otaylor@redhat.com>
8617 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
8618 explicitly for the string "None" - it is in the XPM
8619 spec and some servers treat unknown colors in odd ways
8620 (like asking the user!)
8622 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
8624 * gdk/gdkevents.c: made "->" into a "." of previous change so
8627 Thu Apr 1 18:41:25 1999 Owen Taylor <otaylor@redhat.com>
8629 * gdk/gdkevents.c (gdk_compress_exposures): Set the
8630 window field of the event structure before calling
8633 1999-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
8635 * gdk/gdk.c (gdk_init_check): Use False as the last argument to
8636 XInternAtom() here. This is a particularly Old And Nasty(tm) bug.
8638 Mon Mar 29 17:31:52 1999 Owen Taylor <otaylor@redhat.com>
8640 * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
8641 intermediate text property - prevents major memory
8642 leak when gdk_use_mb.
8643 gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
8645 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
8647 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
8648 gtk-a-higuti-990322-[0-3]
8650 * gdk/gdkfont.c (gdk_text_extents_wc): Make work when
8651 sizeof(wchar_t) != sizeof (GdkWChar)
8653 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
8654 that was causing -DX_LOCALE not to work.
8656 * gtk/gtkrc.c (gtk_rc_init):
8657 X_LOCALE will never have LC_MESSAGES defined
8659 * gdk/gdk.c (gdk_init_check):
8660 Remove --xim-preedit and --xim-status from argv properly.
8662 * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
8663 that the client window is present on the X server
8664 before we pass it to the input method.
8666 Tue Mar 9 10:46:49 1999 Owen Taylor <otaylor@redhat.com>
8668 * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
8669 if --display is specified on the command line, than
8670 the drag window will not be created on that display.
8672 Tue Mar 9 10:38:24 1999 Owen Taylor <otaylor@redhat.com>
8674 * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
8675 lookups with only_if_exists == TRUE were inserting
8676 bogus values into the atom cache.
8678 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
8680 * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
8681 then reset it to NULL.
8685 (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
8686 key for g_hash_table_remove() in both functions, this prevents us
8687 from accessing possibly uninitialized portions of a GdkColor structure
8688 where we are only interested in its pixel value.
8690 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
8692 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
8693 font hash table, if we have a GdkFontPrivate entry for this font
8694 already, simply increment its reference count, provided by Olaf Dietsche
8695 <olaf.dietsche+list.gtk@netcologne.de>.
8697 1999-09-21 Tor Lillqvist <tml@iki.fi>
8699 * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
8702 * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
8703 unused variables, leftovers from the X11 version.
8705 * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
8707 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
8708 downcase fields on X11.
8710 Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
8712 * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
8713 Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
8715 1999-09-17 Tor Lillqvist <tml@iki.fi>
8717 * gdk/win32/gdk.def: Add gdk_threads_mutex.
8719 * gtk/makefile.msc: Correct path to libintl.
8721 Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
8722 use of gint vs. int, and gint vs. gboolean in headers and
8723 definitions. Use GtkType for the *_get_type functions. Note that
8724 these changes preserve binary compatibility.
8728 * gdk/gdk.h: Fix inconsistencies: gint vs int.
8732 * gtk/gtkmenufactory.c
8734 * gtk/gtkwidget.c: Fix inconsistencies, also gint
8737 * gtk/gtkcolorsel.[ch]
8739 * gtk/gtkdrawingarea.[ch]
8741 * gtk/gtkhandlebox.[ch]
8742 * gtk/gtkhpaned.[ch]
8743 * gtk/gtkhruler.[ch]
8745 * gtk/gtkpreview.[ch]
8747 * gtk/gtksocket.[ch]
8748 * gtk/gtkstatusbar.[ch]
8749 * gtk/gtktoolbar.[ch]
8751 * gtk/gtkvpaned.[ch]
8752 * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
8755 * gtk/gtkgamma.h: Fix bug, missing () in call of
8756 gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
8758 1999-09-14 Tor Lillqvist <tml@iki.fi>
8760 * gdk/gdkcolor.c (gdk_colormap_new)
8761 * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
8762 colormap->colors was allocated twice.
8764 * gdk/win32/gdk.c: Remove some unused stuff.
8766 * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
8769 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
8770 * gtk/gtklabel.h (gtk_label_get_type)
8771 * gtk/gtktipsquery.c (gtk_tips_query_get_type)
8772 * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
8773 in a couple of places, not guint.
8775 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
8777 * configure.in,po/et.po: added Estonian language file
8779 Wed Sep 1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
8781 * configure.in,po/da.po: added Danish file
8783 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
8785 * docs/gtkfaq.sgml: Minor FAQ Update
8787 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
8789 * docs/gtkfaq.sgml: FAQ update
8791 1999-08-27 Tor Lillqvist <tml@iki.fi>
8793 Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
8794 way to get window contents continually refreshed while resizing. I
8795 didn't like the effects myself, so it's not on by default.
8797 * gdk/win32/gdkprivate.h: New flag variable
8798 gdk_event_func_from_window_proc, FALSE by default.
8800 * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
8801 environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
8802 are passed --gdk-event-func-from-window-proc.
8804 * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
8805 and we have am event_func, call it instead of enqueing the event.
8807 1999-08-23 Tor Lillqvist <tml@iki.fi>
8809 * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
8810 Kelley: Set expose_count in GdkEventExposes correctly.
8812 * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
8813 MULTIPLE_WINDOW_CLASSES).
8815 * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
8816 for bug in NT, apparently NT *does* draw the end pixel, too, in
8817 LineTo with a one-pixel pen, so we don't have to do it ourselves.
8819 1999-08-21 Tor Lillqvist <tml@iki.fi>
8821 Improvements by Hans Breuer:
8823 * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
8825 * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
8826 CS_?REDRAW flags as they cause lots of (late) redraws when "show
8827 window contents while dragging" is turned on. Allocate at least
8828 one unique class for every GdkWindowType. If support for single
8829 window-specific icons is ever needed (eg. Dialog specific), every
8830 such window should get its own class.
8832 1999-08-19 Tor Lillqvist <tml@iki.fi>
8834 * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
8835 error that caused crashes.
8837 1999-08-17 Tor Lillqvist <tml@iki.fi>
8839 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
8840 window, use ScrollWindowEx, and call UpdateWindow. This prevents
8841 bugs when for instance part of the window was outside the
8842 display. Thanks to Philippe Colantoni for finding and fixing this.
8844 1999-08-16 Tor Lillqvist <tml@iki.fi>
8846 * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
8847 endpoint calculations which were totally wrong. (A little RTFMing
8850 * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
8851 from a separate directory, not from gettext, because of licensing
8852 issues (we want to use the LGPL version).
8854 * README.win32: Mention the intl from glibc vs from gettext issue.
8856 1999-08-13 Tor Lillqvist <tml@iki.fi>
8858 * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
8859 in the key event handling: Now AltGr chars work again. Also,
8860 now Alt-digits are passed up as well as Control-digits.
8861 Pass keypad plus and minus as normal plus and minus.
8863 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
8865 * docs/gtkfaq.sgml: FAQ Update
8867 1999-07-25 Tor Lillqvist <tml@iki.fi>
8870 * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
8873 * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
8874 OK, but getting closer. Guard against bogus tilt data from Wacom
8875 ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
8876 enable easier building without Wintab.
8878 * gdk/win32/gdkinput.h
8879 * gdk/win32/gdkevents.c
8880 * gdk/win32/gdkwindow.c: Minor changes related related to above.
8882 * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
8883 code. As we have just one visual on Win32, no sense to have it in a
8884 table, and no need for the hash table.
8886 * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
8887 better on white background.
8889 1999-07-21 Tor Lillqvist <tml@iki.fi>
8891 * README.win32: Update gcc build instructions. Mention gettext is
8894 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
8895 supported cursor size with GetSystemMetrics.
8897 * gdk/win32/gdkfont.c
8898 * gtk/gtkfontsel.c: Guard against some font weight and charset
8899 symbols being undefined (in mingw32 headers).
8901 * gdk/win32/makefile.cygwin
8902 * gtk/makefile.cygwin
8903 * gtk/gtkthemes.c: No longer need to have differently named
8904 gcc-built DLLs when using gcc-2.95 and -fnative-struct.
8906 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
8908 * docs/gtkfaq.sgml: Long awaited FAQ update.
8910 1999-07-15 Tor Lillqvist <tml@iki.fi>
8912 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
8913 it. Obscure bit manipulation needed.
8915 * gdk/win32/gdkevents.c: Logging.
8917 * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
8918 style (file name include compiler name) for theme engines.
8920 1999-07-13 Tor Lillqvist <tml@iki.fi>
8922 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
8924 * gdk/win32/gdkevents.c: Fix long-standing bug in key
8925 events. The key.string wasn't zero-terminated, still we strdup'ed
8926 it in gdk_event_copy(). Synthesize crossing events for button
8927 events before possible propagation.
8929 * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
8931 * gdk/win32/makefile.cygwin
8932 * gtk/makefile.cygwin: Use new DLL naming style for the
8935 * gdk/win32/makefile.msc
8936 * gtk/makefile.msc: Cosmetics mostly.
8938 * gtk/gtk.def: Add missing entry points.
8940 * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
8942 1999-07-09 Tor Lillqvist <tml@iki.fi>
8944 * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
8945 or height is zero. Don't print a warning if Pie or Arc fails, they
8946 always fail (?) for very narrow ellipses.
8948 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
8949 the part or the destination window corresponding to source area
8950 outside of the source drawable's boundary.
8952 * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
8953 anything if less than two points.
8955 * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
8956 return NULL. Gtk cut-and-paste inside a single program works
8957 better this way. (It always gets the clipboard contents from
8958 Windows, not from its own copy, which is cleared anyway. I can't
8959 say I fully understand what happens... Emulating the X selection
8960 and property stuff is a bit of a mess.)
8962 * gdk/win32/gdkevents.c
8963 * gdk/win32/gdkproperty.c: A bit more verbose logging.
8965 * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
8966 that never got deleted). Revamp gdk_region_shrink.
8968 * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
8971 * gtk/gtk.def: Add some missing entry points.
8973 * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
8976 1999-07-04 Tor Lillqvist <tml@iki.fi>
8978 * gdk/win32/gdkevents.c (gdk_event_translate): Handle
8979 Control-digits specially.
8981 1999-07-03 Tor Lillqvist <tml@iki.fi>
8983 * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
8985 1999-06-28 Tor Lillqvist <tml@iki.fi>
8987 * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
8988 bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
8991 1999-06-01 Jose H Mercado <jmercado@mit.edu>
8993 * gtk+.spec.in: Corrected some typos in files section.
8995 1999-06-15 Tor Lillqvist <tml@iki.fi>
8997 * README.win32: Mention using GNU gettext.
8998 * config.h.win32: Enable NLS stuff.
8999 * gtk/makefile.msc: Use GNU gettext.
9000 * gdk/win32/gdkdnd.c: Minor header reorg.
9001 * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
9003 * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
9004 * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
9006 Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
9012 * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
9014 1999-05-30 Tor Lillqvist <tml@iki.fi>
9016 * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
9017 SafeAdjustWindowRectEx. Don't override all calls to
9018 AdjustWindowRectEx by it, but use it only in two places: When
9019 creating a new top-level window and when moving a top-level
9022 Use screen coordinate rectangle, not client rectangle, in
9023 gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
9024 when we try to place a window so that the decoration (mainly,
9025 title bar) isn't visible.
9027 These changes fix the bug that showed up for instance as the
9028 GIMP's saved top-level windows moving right and down (by an amount
9029 equal to the window decoration) for each session. This bug showed
9030 up also in testgtk's "Saved Position".
9032 gdk_window_resize also redone a bit.
9034 1999-05-25 Tor Lillqvist <tml@iki.fi>
9036 * gtk/testgtkrc: Add (commented out) Windows-style theme
9039 * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
9041 1999-05-18 Tor Lillqvist <tml@iki.fi>
9043 * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
9044 gdkx.h to a gdk subdirectory, so that applications can include
9045 these with <gdk/*.h> without trouble.
9047 * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
9048 (gdk_image_destroy): Plug resource leak, some GdkImages didn't
9049 have their bitmap destroyed.
9051 * gdk/win32/gdk.def: Add gdk_root_parent.
9053 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
9059 gtk/Makefile.am: changes to compile nicely (with xlib)
9062 Sat May 1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
9068 * ltmain.sh: upgrade to libtool 1.3
9070 Fri Apr 30 13:38:16 1999 Lars Hamann <lars@gtk.org>
9073 * gtk/gtkctree.c: merges from gtk-1-2
9075 1999-04-25 Tor Lillqvist <tml@iki.fi>
9077 Support added for building using a GNU toolchain on Win32,
9078 gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
9080 * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
9081 * config.h.win32: Changes for gcc.
9082 * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
9083 * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
9084 * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
9085 * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
9086 Protect shl stuff unavaiilable with mingw32 headers.
9087 * gdk/win32/gdkevents.c: Fix typo.
9088 * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
9089 * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
9090 * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
9091 * gdk/win32/gdkprivate.h: Make up for some stuff missing from
9092 the mingw32 headers.
9093 * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
9094 * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
9095 definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
9096 * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
9097 Test for NATIVE_WIN32, not _MSC_VER.
9098 * gtk/gtkmain.c: No use warning about developer version on Win32,
9099 there aren't any non-developer versions anyhow.
9100 * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
9101 * gtk/makefile.msc: Use pthread from another directory. Minor other
9104 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
9106 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
9107 default filter from the list
9109 Mon Mar 8 12:52:53 1999 Owen Taylor <otaylor@redhat.com>
9111 * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
9112 when gtk_widget_grab_default() is called for a widget that
9113 is not within a GtkWindow.
9115 Sat Apr 10 13:52:54 BST 1999 Tony Gale <gale@gtk.org>
9117 * docs/gtk_tut.sgml, examples/clist.c: use a
9118 scrolled window in the clist example. Minor
9121 Fri Apr 2 09:19:20 BST 1999 Tony Gale <gale@gtk.org>
9123 * docs/gtk_tut.sgml: Style check from David King
9124 <dking@youvegotmail.net>
9126 1999-03-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
9128 * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
9129 compile with unknown value of GDK_WINDOWING
9131 1999-03-28 Raja R Harinath <harinath@cs.umn.edu>
9133 * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
9134 after the rule is fired.
9135 (install-exec-local): Install gdkconfig.h only if the contents are
9136 different from the currently installed gdkconfig.h.
9138 1999-03-26 Raja R Harinath <harinath@cs.umn.edu>
9140 * gdk/Makefile.am (configexecincludedir): Rename from
9141 configincludedir so that gdkconfig.h will be installed
9142 as part of `make install-exec'.
9144 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
9150 * ltmain.sh: upgrade to libtool 1.2f
9152 * autogen.sh: libtool is not required to autogen gtk+
9154 * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
9157 1999-03-18 Tor Lillqvist <tml@iki.fi>
9159 * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
9160 declaring gdk variables exported/imported from the DLL. New image
9161 type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
9162 drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
9163 GDK_DRAG_PROTO_OLE2.
9165 * gdk/gdk.h: Merge in Win32 version: Two new functions,
9166 gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
9167 declared only for the Win32 version, but could be in the X11
9168 version as well. (Needed for a Xlib-less gdk_imlib.)
9169 gdk_color_hash should have only one parameter. Declare
9170 gdk_threads_mutex with GDKVAR.
9172 * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
9175 * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
9176 per pixel, not bits.
9178 * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
9179 Fetch bpp (which means bits-per-pixel here) from another place on
9180 Win32. Accept also depth==32 (which we might get on Win32) with
9183 * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
9184 gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
9185 gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
9186 Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
9187 in the backend-dependent directory, not in the common gdk
9190 * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
9193 Wed Mar 17 05:06:49 1999 Tim Janik <timj@gtk.org>
9195 * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
9196 want to use the Gtk+ devel version (which is true, and yes - even i am
9197 currently working with the 1.2.x branch). so everyone reading this, you
9198 probably want to issue
9199 cvs checkout -r glib-1-2 glib
9201 cvs checkout -r gtk-1-2 gtk+
9202 as your next two comands.
9204 Wed Mar 17 02:49:32 1999 Tim Janik <timj@gtk.org>
9206 * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
9207 gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
9209 * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
9210 file. strongly deprecated the GTK_HAVE_* macros, we provide
9211 GTK_CHECK_VERSION() for people that need to check for certain
9214 * gtk/gtkcompat.h: removed this from CVS.
9215 * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
9216 idea right from the start, it just didn't seem like that back then.
9218 Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
9220 * merges from gtk-1-2:
9222 Tue Mar 16 17:43:33 1999 Tim Janik <timj@gtk.org>
9224 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
9225 item factory class has been created.
9226 (gtk_item_factory_parse_rc): likewise.
9229 keep proper references for old_active_menu_item.
9230 (gtk_menu_reparent): unset the usize of the new parent,
9231 so the menu can sanely be size requested and we don't get nasty screen
9232 artefacts upon next reparentation.
9233 (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
9234 enter notify. only synthesize enter notifies if the pointer really is
9235 inside the event window.
9236 (gtk_menu_popdown): use gtk_menu_shell_deselect().
9237 (gtk_menu_popup): move the background setting stuff into
9238 gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
9240 * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
9241 gtk_menu_shell_select_item() to select the new item.
9242 (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
9243 do the right thing for deselection as well.
9245 Sat Mar 15 20:10:33 1999 Tim Janik <timj@gtk.org>
9247 * gtk/gtkwidget.[hc]:
9248 (gtk_widget_accelerators_locked): return whether a widget's accelerators
9251 * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
9252 existing accelerators if the widget's accelerators are locked.
9254 Sat Mar 14 19:44:05 1999 Tim Janik <timj@gtk.org>
9256 * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
9258 * gtk/gtkmenu.c: truely forward key press and key release events to
9259 the menu widget from the toplevel or tearoff window. we can't simply
9260 connect to that, we need to stop further processing of the events as
9263 Sat Mar 13 13:14:17 1999 Tim Janik <timj@gtk.org>
9266 (gtk_menu_key_press): pass event->keyval, event->state to
9267 gtk_accelerator_valid, instead of event->keyval twice.
9268 refuse to install single letter accelerators for menus that use
9269 single letter shortcuts.
9271 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
9272 gtk_menu_ensure_uline_accel_group().
9274 * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
9275 which will always return an uline accel group, made
9276 gtk_menu_get_uline_accel_group() return NULL if the group isn't
9279 Mon Mar 15 01:03:27 1999 Lars Hamann <lars@gtk.org>
9281 * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
9283 * gtk/gtkclist.c (gtk_clist_column_title_passive):
9284 Leave button sensitive, trap button_press, button_release,
9285 motion_notify, enter_notify and leave_notify events instead.
9286 (gtk_clist_column_title_active): disconnect event handler.
9287 (gtk_clist_drag_data_get): fixed memory leak. Reported by
9288 Guillaume Laurent <glaurent@worldnet.fr>
9290 Wed Mar 10 23:49:55 1999 Lars Hamann <lars@gtk.org>
9292 * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
9293 width/height mixups.
9295 * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
9298 Wed Mar 10 00:11:32 1999 Tim Janik <timj@gtk.org>
9300 * gtk/testgtk.c (create_item_factory): unref the item factory after
9301 window's destruction.
9303 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
9304 count on the menu shell around the menu item's activation, since the
9305 signal emission may cause menu shell destruction.
9307 * gtk/gtkitemfactory.c:
9308 the previous code leaked one accel group per menu. we use
9309 gtk_menu_get_uline_accel_group() now to fix that, and with that
9310 also create the underline accelerator group of the menus only if
9311 required (i.e. an underline accelerator has been specified).
9312 (gtk_item_factory_construct):
9313 (gtk_item_factory_create_item): removed code that would create an
9314 extra accel group for the menu (and leak references).
9315 (gtk_item_factory_create_item): adapted the underline accelerator
9316 installation code to properly feature gtk_menu_get_uline_accel_group().
9318 * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
9319 menu->accel_group, this may return NULL if the accelerator group
9320 hasn't been set yet.
9321 added gtk_menu_get_uline_accel_group() to retrive the underline
9322 accelerator group of the menu, this will be created on demand
9323 and proper care is taken about its reference count.
9325 * gtk/gtkitemfactory.h:
9326 * gtk/gtkitemfactory.c:
9327 dumped the approach of keeping a widgets by action list on the
9328 factory since the factory<->widget destroy negotiation didn't work
9329 and would be hard to get going at all. instead we keep a list of
9330 GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
9331 persistant throughout a program's life time).
9332 also, i removed the static const gchar *key_* variables, and made
9333 them inline strings (they weren't actually used anyways).
9334 (gtk_item_factory_add_item): update ifactory->items.
9335 (gtk_item_factory_destroy): destroy ifactory->items (and remove
9336 the item factory pointer from the remaining ifactory widgets).
9337 (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
9338 list to find the widget.
9339 (gtk_item_factory_get_item): new function that works around
9340 gtk_item_factory_get_widget() limitations, this function will only
9341 return menu items, even for <Branch> entries.
9343 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
9345 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
9346 font hash table, if we have a GdkFontPrivate entry for this font
9347 already, simply increment its reference count, provided by Olaf Dietsche
9348 <olaf.dietsche+list.gtk@netcologne.de>.
9350 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
9351 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
9353 Sun Mar 7 06:13:29 1999 Tim Janik <timj@gtk.org>
9355 * gtk/gtkcontainer.c:
9356 (gtk_container_add_with_args):
9357 (gtk_container_addv):
9358 (gtk_container_add): before adding a child to a conatiner, make sure
9359 it is (default) constructed, this is neccessary because under certain
9360 circumstances the child will get relized and mapped immediatedly, in
9361 which case it has to be constructed already.
9363 Mon Mar 1 17:58:21 1999 Tim Janik <timj@gtk.org>
9365 * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
9366 values > 1 as TRUE also.
9368 1999-03-16 Tor Lillqvist <tml@iki.fi>
9370 * README.win32: New file.
9372 * configure.in: Check for lstat.
9374 * config.h.win32: Add non-definition of HAVE_LSTAT, just for
9377 * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
9379 * gtk/gtk.def: Removed CRs.
9381 * gtk/makefile.msc: Correct include path to Win32 GDK version (in
9384 * gdk/win32/makefile.msc: Correct upwards relative paths.
9386 Mon Mar 15 03:38:34 1999 George Lebl <jirka@5z.com>
9388 * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
9389 gtk_drag_highlight_expose and gtk_drag_highlight_paint since
9390 it was connecting a void function to expose_event and the int
9391 returning function to the draw signal
9393 1999-03-14 Jeff Garzik <jgarzik@pobox.com>
9396 Use correct path to libgmodule.la when ref'ing uninstalled copy
9397 of glib. (Already in stable branch, Bug #417)
9399 1999-03-15 Tor Lillqvist <tml@iki.fi>
9401 Win32 merge and general portability stuff:
9403 * acconfig.h,configure.in: Check for <sys/time.h>.
9405 * gdk/win32: New directory (actually, been there for a while).
9407 * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
9408 NATIVE_WIN32, and use these. Always case fold on Win32. No
9409 backslashed escapes on native Win32.
9411 * gtk/{gtk.def,makefile.msc}: New files.
9413 * gtk/Makefile.am: Add above new files.
9415 * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
9416 instead of <strings.h>.
9418 * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
9419 config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
9420 <unistd.h> appropriately.
9422 * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
9423 Use ABS() (from <glib.h>) instead of abs().
9425 * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
9426 of gtk (and thus glib) headers, so that WIN32 will be
9427 defined. With MS C, include <direct.h> for mkdir prototype.
9429 * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
9430 some casts, needed by MS C.
9432 * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
9435 * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
9436 <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>. Use
9437 G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
9439 * gtk/gtkmain.h: Mark variables for export/import on Win32.
9441 * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
9442 the event is not a hint, or its window is not the slider. Needed
9445 * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
9446 unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
9447 G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
9448 a subdirectory of the Windows directory as gtk system
9449 configuration directory.
9451 * gtk/gtkselection.c: No chunks on Win32.
9453 * gtk/gtksocket.c: Not implemented on Win32.
9455 * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
9457 * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
9459 * gtk/maketypes.awk: Declare variables with a macro that expands to
9460 necessary export/import magic in the case of Win32.
9462 * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
9464 1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
9466 * configure.in (gdk_wc): Move widechar tests from `glib' to here,
9467 since those were meant only for gdki18n.h.
9468 * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
9470 * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
9472 1999-03-13 Tor Lillqvist <tml@iki.fi>
9474 * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
9475 gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
9477 * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
9478 installed) to CFLAGS.
9480 * gdk/Makefile.am: Add rules for gdkconfig.h.
9482 * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
9485 * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
9486 gdkx.h anyway when compiling for X11.
9487 (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
9488 general): Merge in Win32 version.
9490 * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
9491 version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
9492 expansion (if we don't have HAVE_PWD_H), allow for drive
9493 letters. UNC paths (\\server\share\...) are not handled yet. Also,
9494 included code from Craig Setera's port to Win32 (the one that uses
9495 X11, and the cygwin dll), even if it probably will be abandoned.
9497 * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
9498 the user entered one herself. This way one can complete *.h and
9499 don't get matches on any .help files, for instance.
9501 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
9503 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
9504 font hash table, if we have a GdkFontPrivate entry for this font
9505 already, simply increment its reference count, provided by Olaf Dietsche
9506 <olaf.dietsche+list.gtk@netcologne.de>.
9508 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
9509 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
9511 1999-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
9513 * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
9514 the number of calls to gdk_draw_point() (and thus to X) by
9515 clipping the points by hand.
9517 * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
9519 (gtk_handle_box_paint): Only paint the handle if the expose area
9522 Sun Mar 7 18:46:37 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
9524 * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
9526 Sun Mar 7 11:43:34 1999 ape@spacetec.no (Asbjorn Pettersen)
9528 * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
9529 Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
9531 Fri Mar 5 09:12:24 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
9533 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
9534 textmode (O_TEXT) for OS/2 version.
9536 Sun Feb 28 16:46:02 1999 Stefan Jeske <stefan@gtk.org>
9538 * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to
9539 GtkSpinButton, "input" and "output", to make the output more flexible.
9540 The user has to provide a mapping between adjustment->value and the
9541 output string (and vice versa, if the spin button is editable).
9542 See testgtk for examples.
9544 Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
9546 * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
9549 * configure.in: set gtk+ version to 1.3.0.